Skip to content
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

Crash while running tests #48

Open
Shadlock0133 opened this issue Oct 20, 2018 · 2 comments
Open

Crash while running tests #48

Shadlock0133 opened this issue Oct 20, 2018 · 2 comments

Comments

@Shadlock0133
Copy link

Shadlock0133 commented Oct 20, 2018

  • make test-sim
  • make test-sys
  • rv-jit build/riscv64-unknown-elf/bin/test-dhrystone

All of them crash with an error message illegal hardware instruction (core dumped)

I'm guessing jit emits instructions from sse3 or higher.

Cpu: Intel(R) Core(TM)2 Duo CPU T5900 @ 2.20GHz with flags fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts rep_good nopl cpuid aperfmperf pni dtes64 monitor ds_cpl est tm2 ssse3 cx16 xtpr pdcm lahf_lm pti dtherm

Edit: It looks like it crashes here on __asm__ volatile ("rdtscp\n" : "=a" (a), "=d" (d));

@michaeljclark
Copy link
Owner

michaeljclark commented Oct 21, 2018 via email

@cheery
Copy link

cheery commented Feb 4, 2019

I'm also getting this with Intel(R) Core(TM)2 Quad CPU Q9550 @ 2.83GHz. It's working with the CFLAGS modification.

Also had to add "$@" into the end of the bin/ -scripts to have them run in the first place.

$ bin/rv-jit build/riscv64-unknown-elf/bin/test-dhrystone
Dhrystone(1.1-mc), 10000000 passes, 542163 microseconds, 10476 DMIPS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants