OSDN Git Service

gcc uses trap 33 for profiling, but the simulator didn't support it.
authoramylaar <amylaar>
Fri, 11 Oct 2002 15:31:28 +0000 (15:31 +0000)
committeramylaar <amylaar>
Fri, 11 Oct 2002 15:31:28 +0000 (15:31 +0000)
commit02fc1fb605ddbe4571bd35b258f3db4f83b33418
treeaab0f3608123e2109b28c427e6efdedb9a67f963
parentc93bdb8ea82a938268b5f774dfc12b02505bd554
gcc uses trap 33 for profiling, but the simulator didn't support it.
This patch fixes the gcc.dg/nest.c failures for sh-elf.

Fri Oct 11 16:22:28 2002  J"orn Rennecke <joern.rennecke@superh.com>

* interp.c (trap): Return int.  Take extra parameter for address
of the trap instruction.  Changed all callers.
Add case 33 for profiling.
* gencode.c (trapa): Handle trap 33 using the trap function.
Add read of vector for generic traps.
sim/sh/ChangeLog
sim/sh/gencode.c
sim/sh/interp.c