Commit ad1da5c6 authored by Ricardo Soares Ribolli's avatar Ricardo Soares Ribolli
Browse files

Caveira com a bolinha

parent 38c793a1
......@@ -44,6 +44,9 @@ NativeWrapper::NativeWrapper(sc_core::sc_module_name name) : sc_module(name),
irq("irq")
{
SC_THREAD(compute);
SC_METHOD(interrupt_handler_internal);
sensitive << irq;
dont_initialize();
}
void NativeWrapper::hal_write32(unsigned int addr, unsigned int data)
......
......@@ -16,6 +16,8 @@ INCLUDE = -I. -I../..
OBJS = main.o boot.o it.o
EXEC = a.out
CFLAGS = -c -std=c99
# Disassembly of the generated executable.
dump.dis: $(EXEC)
$(TARGET_OBJDUMP) -d $< > $@
......@@ -25,12 +27,14 @@ sections.txt: $(EXEC)
$(TARGET_READELF) -S $< > $@
$(EXEC): # TODO: dependencies
echo "Rule for linking not implemented."; exit 1
$(EXEC): $(OBJS)
$(TARGET_LD) -T ldscript $^
#echo "Rule for linking not implemented."; exit 1
# TODO: use $(TARGET_LD), and use the -T option to point to linker script ldscript
main.o: # TODO: dependencies
echo "Rule for compilation not implemented"; exit 1
main.o: ../main.c
$(TARGET_CC) $(INCLUDE) $(CFLAGS) $<
#echo "Rule for compilation not implemented"; exit 1
# TODO: compile with target C compiler
%.o: %.s
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment