-
Notifications
You must be signed in to change notification settings - Fork 14
[sw-sysemu] Fix second thread starting #62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,7 +6,6 @@ VERBOSE ?= 0 | |
| BUILD_DIR := build | ||
| EMU := ../../build/erbium_emu | ||
| RISCV ?= /opt/et/bin | ||
| EMU_ARGS ?= -minions 0xff -mins_dis | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just leave EMU_ARGS empty. |
||
|
|
||
| # Verbosity | ||
| VERBOSE_0 := @ | ||
|
|
@@ -62,7 +61,7 @@ run: $(tests_elf) | |
| @npass=0; nfail=0; \ | ||
| for test in $(tests); do \ | ||
| echo "+ running $$test"; \ | ||
| $(EMU) -l $(EMU_ARGS) -elf_load $(BUILD_DIR)/$$test.elf > $(BUILD_DIR)/$$test.out 2>&1; \ | ||
| $(EMU) -l -elf_load $(BUILD_DIR)/$$test.elf > $(BUILD_DIR)/$$test.out 2>&1; \ | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. See above. |
||
| if grep -q "Signal end test with FAIL" $(BUILD_DIR)/$$test.out; then \ | ||
| echo " FAIL"; \ | ||
| nfail=$$((nfail + 1)); \ | ||
|
|
@@ -85,7 +84,7 @@ run: $(tests_elf) | |
| # Run individual test | ||
| run/%: $(BUILD_DIR)/%.elf | ||
| @echo "+ running $*" | ||
| @$(EMU) -l $(EMU_ARGS) -elf_load $< > $(BUILD_DIR)/$*.out 2>&1; \ | ||
| @$(EMU) -l -elf_load $< > $(BUILD_DIR)/$*.out 2>&1; \ | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. See above. |
||
| if grep -q "Signal end test with FAIL" $(BUILD_DIR)/$*.out; then \ | ||
| echo " FAIL"; exit 1; \ | ||
| elif grep -q "Signal end test with PASS" $(BUILD_DIR)/$*.out; then \ | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Either we remove HAS_SVCPROC and use ETSOC1 -- something we said we shouldn't. But this can be considered external to the simulator core so we should use EMU_ETSOC1 and EMU_ERBIUM.
This mixes different types of EMU arguments, let's be consistent.