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

dumppipe segfaults for superH when SF_NUMA is 0 #187

Open
btsouts opened this issue Nov 3, 2020 · 0 comments
Open

dumppipe segfaults for superH when SF_NUMA is 0 #187

btsouts opened this issue Nov 3, 2020 · 0 comments
Assignees
Labels

Comments

@btsouts
Copy link
Collaborator

btsouts commented Nov 3, 2020

Describe the bug
dumppipe segfaults for superH when SF_NUMA is 0

To Reproduce
Steps to reproduce the behavior:

  1. Set SF_NUMA to 0 in config.h.
  2. Re-compile sf.
  3. Run sf.
  4. Execute dumppipe command.

Expected behavior
Initialized random number generator with seed 1012339143...

Sunflower 1.1 (build 08-19-2020-09:03:41-vt298@ip-172-31-19-5-Linux)
Authored, 1999-2018: Phillip Stanley-Marbell [email protected]. 20018-onwards: See CONTRIBUTORS.TXT.
This software is provided with ABSOLUTELY NO WARRANTY. Read LICENSE.txt

New node created with node ID 0

[ID=0 of 1][PC=0x8000000][3.3E+00V, 6.0E+01MHz] dumpregs
R0 0000 0000 0000 0000 0000 0000 0000 0000 [0x00000000]
R1 0000 0000 0000 0000 0000 0000 0000 0000 [0x00000000]
R2 0000 0000 0000 0000 0000 0000 0000 0000 [0x00000000]
R3 0000 0000 0000 0000 0000 0000 0000 0000 [0x00000000]
R4 0000 0000 0000 0000 0000 0000 0000 0000 [0x00000000]
R5 0000 0000 0000 0000 0000 0000 0000 0000 [0x00000000]
R6 0000 0000 0000 0000 0000 0000 0000 0000 [0x00000000]
R7 0000 0000 0000 0000 0000 0000 0000 0000 [0x00000000]
R8 0000 0000 0000 0000 0000 0000 0000 0000 [0x00000000]
R9 0000 0000 0000 0000 0000 0000 0000 0000 [0x00000000]
R10 0000 0000 0000 0000 0000 0000 0000 0000 [0x00000000]
R11 0000 0000 0000 0000 0000 0000 0000 0000 [0x00000000]
R12 0000 0000 0000 0000 0000 0000 0000 0000 [0x00000000]
R13 0000 0000 0000 0000 0000 0000 0000 0000 [0x00000000]
R14 0000 0000 0000 0000 0000 0000 0000 0000 [0x00000000]
R15 0000 0000 0000 0000 0000 0000 0000 0000 [0x00000000]
[ID=0 of 1][PC=0x8000000][3.3E+00V, 6.0E+01MHz] dumppipe

node ID=0, PC=0x8000000, ICLK=0, sleep?=0
Segmentation fault (core dumped)

Solution
Guard
mprint(E, S, nodeinfo, "buslock=%d, buslocker=%d, EX touches mem = %d\n", S->superH->B->pbuslock, S->superH->B->pbuslocker, superHEXtouchesmem(S));

in sim/pipeline-hitachi-sh.c with if (SF_NUMA).

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

No branches or pull requests

2 participants