Skip to content

Commit

Permalink
Merge pull request #312 from VisorFolks/development
Browse files Browse the repository at this point in the history
Development
  • Loading branch information
akashkollipara authored Jul 14, 2024
2 parents c1f64e7 + 899d144 commit 044d0b6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
10 changes: 7 additions & 3 deletions mk/qemu.mk
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,12 @@

T_ALLOWLIST += get_qemu clean_qemu qemu_test

QEMU_CHECKOUT := v7.2.0
QEMU_CHECKOUT := v9.0.0
QEMU_PATH := $(TOOLS_ROOT)/qemu
QEMU_BUILD_PATH := $(QEMU_PATH)/build
QEMU_OUT_PATH := $(TOOLS_ROOT)/cc_qemu
QEMU_TLIST := avr-softmmu,arm-softmmu,riscv32-softmmu
QEMU_TLIST := avr-softmmu arm-softmmu aarch64-softmmu
QEMU_TLIST += riscv32-softmmu riscv64-softmmu x86_64-softmmu

get_qemu: $(QEMU_OUT_PATH)

Expand All @@ -27,10 +28,13 @@ $(TOOLS_ROOT)/qemu:
@echo "< / > Done !"


s := $() $()
c := ,

$(QEMU_OUT_PATH): $(QEMU_PATH)
@echo "< ! > Building qemu ..."
@echo "< ? > Please be patient as this might take a while ..."
cd $<; ./configure --prefix=$(QEMU_OUT_PATH) --target-list=$(QEMU_TLIST) 2> /dev/null 1> /dev/null
cd $<; ./configure --prefix=$(QEMU_OUT_PATH) --target-list=$(subst $(s),$(c),$(QEMU_TLIST)) 2> /dev/null 1> /dev/null
make -j $(N_JOBS) -C $< install 2> /dev/null 1> /dev/null
@echo "< ! > Cleaning up build space ..."
rm -rf $(QEMU_PATH)
Expand Down
2 changes: 1 addition & 1 deletion src/platform/sifive/qemu-sifive-e/resources/dp.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ create_module(prci0, prci, 0x10008000, 0x1000, 0, 0);

create_module(aon0, (aon | 0), 0x10000000, 0x1000, 0, 0);

create_module(timer_core0, (timer | 0), 0, 0, 1e7, 0,
create_module(timer_core0, (timer | 0), 0, 0, 32768, 0,
add_irq(0, int_local, 7, int_level));

create_gpio_module(port0, (gpio | PORTA), 0x10012000, 0x4c);
Expand Down

0 comments on commit 044d0b6

Please sign in to comment.