sunflower-embedded-system-emulator
sunflower-embedded-system-emulator copied to clipboard
superH memory read/write functions bugs on sunflower for embedded systems
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):
- Clone Helium-firmware@4f14f6 with sunflower-simulator@t8d5601e.
- Apply patches for spresense (according to README).
- Modify sim/main.c so that sunflower can be compiled natively.
- Execute any m file.
Steps to reproduce the behavior (on spresense):
- Clone Helium-firmware@4f14f6 with sunflower-simulator@t8d5601e.
- Compile for spresense (according to README).
- Run spresense and load an srec file in sunflower.
- Run the simulator.
This is now fixed. @btsouts please tag with the corresponding issue / commit that addressed this.