ppc: fix crash during branch stepping
commite150ac89fbcf4ea15535f6718d0194310c39280d
authorRoman Kapl <rka@sysgo.com>
Tue, 12 Feb 2019 12:12:55 +0000 (12 13:12 +0100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Sun, 17 Feb 2019 10:54:02 +0000 (17 21:54 +1100)
tree9f1ea48dd9d48777ba6eb2c6fda856f9b9256e2b
parent4c668f4a3d684ec133a52d936314379f6edd672e
ppc: fix crash during branch stepping

The PPC BRANCH exception could bubble up, but this is an QEMU internal exception
and QEMU then crased. Instead it should trigger TRACE exception, according to
PPC 2.07 book. It could happen only when using branch stepping, which is not
commonly used.

Change gen_prep_dbgex do do trigger TRACE. The excp, argument is now removed,
since the type of exception can be inferred from the singlestep_enabled flags.
removed the guards around gen_exception, since they are unnecessary.

Fixes: 0e3bf48909 ("ppc: add DBCR based debugging").
Signed-off-by: Roman Kapl <rka@sysgo.com>
Message-Id: <20190212121255.2279-1-rka@sysgo.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
target/ppc/translate.c