[Qemu-devel] [PATCH] target/hppa: use tb_cflags() to access tb->cflags

Emilio G. Cota posted 1 patch 7 years, 8 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/1518663946-2326-1-git-send-email-cota@braap.org
Test checkpatch passed
Test docker-build@min-glib passed
Test docker-mingw@fedora passed
Test docker-quick@centos6 passed
Test ppcbe passed
Test ppcle passed
Test s390x passed
target/hppa/translate.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[Qemu-devel] [PATCH] target/hppa: use tb_cflags() to access tb->cflags
Posted by Emilio G. Cota 7 years, 8 months ago
Signed-off-by: Emilio G. Cota <cota@braap.org>
---
 target/hppa/translate.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target/hppa/translate.c b/target/hppa/translate.c
index 6499b39..b4b74a8 100644
--- a/target/hppa/translate.c
+++ b/target/hppa/translate.c
@@ -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();
-- 
2.7.4


Re: [Qemu-devel] [PATCH] target/hppa: use tb_cflags() to access tb->cflags
Posted by Richard Henderson 7 years, 8 months ago
On 02/14/2018 07:05 PM, Emilio G. Cota wrote:
> Signed-off-by: Emilio G. Cota <cota@braap.org>
> ---
>  target/hppa/translate.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/target/hppa/translate.c b/target/hppa/translate.c
> index 6499b39..b4b74a8 100644
> --- a/target/hppa/translate.c
> +++ b/target/hppa/translate.c
> @@ -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~