diff options
author | Taylor Simpson <tsimpson@quicinc.com> | 2022-11-08 08:29:00 -0800 |
---|---|---|
committer | Taylor Simpson <tsimpson@quicinc.com> | 2022-12-16 10:10:28 -0800 |
commit | 40085901dbe339bdcd16ecf1bb70b63a5f119b4f (patch) | |
tree | c98123b2cab680c739daa43541fe489c52a7ffb2 /target/hexagon/gen_tcg.h | |
parent | fb67c2bf24f4399bb0347580324740409e1bb2d7 (diff) | |
download | qemu-40085901dbe339bdcd16ecf1bb70b63a5f119b4f.zip qemu-40085901dbe339bdcd16ecf1bb70b63a5f119b4f.tar.gz qemu-40085901dbe339bdcd16ecf1bb70b63a5f119b4f.tar.bz2 |
Hexagon (target/hexagon) Remove PC from the runtime state
Add pc field to Packet structure
For helpers that need PC, pass an extra argument
Remove slot arg from conditional jump helpers
On a trap0, copy pkt->pc into hex_gpr[HEX_REG_PC]
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Taylor Simpson <tsimpson@quicinc.com>
Message-Id: <20221108162906.3166-6-tsimpson@quicinc.com>
Diffstat (limited to 'target/hexagon/gen_tcg.h')
-rw-r--r-- | target/hexagon/gen_tcg.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/target/hexagon/gen_tcg.h b/target/hexagon/gen_tcg.h index b5fe22a..d38db72 100644 --- a/target/hexagon/gen_tcg.h +++ b/target/hexagon/gen_tcg.h @@ -750,4 +750,11 @@ RsV = RsV; \ } while (0) +#define fGEN_TCG_J2_trap0(SHORTCODE) \ + do { \ + uiV = uiV; \ + tcg_gen_movi_tl(hex_gpr[HEX_REG_PC], ctx->pkt->pc); \ + TCGv excp = tcg_constant_tl(HEX_EXCP_TRAP0); \ + gen_helper_raise_exception(cpu_env, excp); \ + } while (0) #endif |