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

superH memory read/write functions bugs on sunflower for embedded systems #154

Open
btsouts opened this issue Dec 19, 2019 · 1 comment
Open
Assignees
Labels

Comments

@btsouts
Copy link
Collaborator

btsouts commented Dec 19, 2019

Describe the bug
Functions:

uchar superHreadbyte(Engine *, State *S, ulong addr);
ulong superHreadlong(Engine *, State *S, ulong addr);
ushort superHreadword(Engine *, State *S, ulong addr);
void superHwritelong(Engine *, State *S, ulong addr, ulong data);
void superHwriteword(Engine *, State *S, ulong addr, ulong data);
void superHwritebyte(Engine *, State *S, ulong addr, ulong data);

produce segmentation faults when executed since all the structures
related to numa have not been initialized or are NULL.

To Reproduce
Steps to reproduce the behavior (on PC):

  1. Clone Helium-firmware@4f14f6 with sunflower-simulator@t8d5601e.
  2. Apply patches for spresense (according to README).
  3. Modify sim/main.c so that sunflower can be compiled natively.
  4. Execute any m file.

Steps to reproduce the behavior (on spresense):

  1. Clone Helium-firmware@4f14f6 with sunflower-simulator@t8d5601e.
  2. Compile for spresense (according to README).
  3. Run spresense and load an srec file in sunflower.
  4. Run the simulator.
@phillipstanleymarbell
Copy link
Member

This is now fixed. @btsouts please tag with the corresponding issue / commit that addressed this.

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