gcc uses trap 33 for profiling, but the simulator didn't support it.
authorJoern Rennecke <joern.rennecke@embecosm.com>
Fri, 11 Oct 2002 15:31:28 +0000 (15:31 +0000)
committerJoern Rennecke <joern.rennecke@embecosm.com>
Fri, 11 Oct 2002 15:31:28 +0000 (15:31 +0000)
commitfd8f4948fe9454ec1cc6cb8a33c4992f6145c43d
treeee978366c913795d35da5d763f6c26ec63e3c625
parent6c381eeb71e6f61062fb64795097e144d48fa798
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