sunflower-embedded-system-emulator icon indicating copy to clipboard operation
sunflower-embedded-system-emulator copied to clipboard

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

Open btsouts opened this issue 5 years ago • 1 comments

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.

btsouts avatar Dec 19 '19 17:12 btsouts

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

phillipstanleymarbell avatar Apr 07 '20 06:04 phillipstanleymarbell