Commit: MSP430 sim: Fix detection of illegal memory accesses
Nick Clifton
nickc@redhat.com
Tue Feb 24 10:26:00 GMT 2015
Hi Guys,
I am applying the attached patch to fix a couple of problems with the
MSP430 simulator. The first was that the code to detect illegal
memory accesses was not taking into account the address size of the
instruction, nor did the simulator's memory map match that used by the
linker scripts. The second problem was that the simulator insisted on
loading an executable file, but some GDB tests run without an
executable.
Tested with no regressions with an msp430-elf toolchain.
Cheers
Nick
sim/msp430/ChangeLog
2015-02-24 Nick Clifton <nickc@redhat.com>
* msp430-sim.c (sim_open): Allocate memory regions matching those
declared in the libgloss/msp430 linker scripts.
Allow sim_load_file to fail.
(get_op): Test the correct address bit when checking for out of
range addresses.
Include the address in the error message when an illegal access to
the hardware multiplier is detected.
(put_op): Test the correct address bit when checking for out of
range addresses.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: msp430-sim.c.patch
Type: text/x-patch
Size: 5769 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20150224/381d0f16/attachment.bin>
More information about the Gdb-patches
mailing list