Skip to contentSkip to conversation

target/hppa: use tb_cflags() to access tb->cflags

PATCH Applied Emilio G. Cota 2 participants 2 messages Feb 15, 2018 – Feb 19, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 target/hppa: use tb_cflags() to access tb->cflags

---
 target/hppa/translate.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
target/hppa/translate.c +1 -1
index 6499b39..b4b74a8 100644
@@ -2075,7 +2075,7 @@ static DisasJumpType trans_mfctl(DisasContext *ctx, uint32_t insn,
         /* FIXME: Respect PSW_S bit.  */
         nullify_over(ctx);
         tmp = dest_gpr(ctx, rt);
-        if (ctx->base.tb->cflags & CF_USE_ICOUNT) {
+        if (tb_cflags(ctx->base.tb) & CF_USE_ICOUNT) {
             gen_io_start();
             gen_helper_read_interval_timer(tmp);
             gen_io_end();
Signature · 1 line
2.7.4
#1 lore raw
Quoted 10 lines · Emilio G. Cota
---
 target/hppa/translate.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
target/hppa/translate.c +0 -0
index 6499b39..b4b74a8 100644

target/hppa/translate.c static DisasJumpType trans_mfctl(DisasContext *ctx, uint32_t insn, · line 2078

Quoted 5 lines
target/hppa/translate.c +1 -1
@@ -2075,7 +2075,7 @@ static DisasJumpType trans_mfctl(DisasContext *ctx, uint32_t insn,
         /* FIXME: Respect PSW_S bit.  */
         nullify_over(ctx);
         tmp = dest_gpr(ctx, rt);
-        if (ctx->base.tb->cflags & CF_USE_ICOUNT) {
+        if (tb_cflags(ctx->base.tb) & CF_USE_ICOUNT) {

Applied to tgt-hppa. Thanks.

r~