diff options
author | Greg Kurz | 2019-03-22 19:03:51 +0100 |
---|---|---|
committer | David Gibson | 2019-03-29 00:22:22 +0100 |
commit | d0db7caddb1939e103a7bc6bbf09b3cd58dcf092 (patch) | |
tree | 8c334c87d5c17fb6cf2d5dbfb022df6ede6bc2ff /hw/ppc/ppc.c | |
parent | target/ppc: Enable "decrement and test CTR" version of bcctr (diff) | |
download | qemu-d0db7caddb1939e103a7bc6bbf09b3cd58dcf092.tar.gz qemu-d0db7caddb1939e103a7bc6bbf09b3cd58dcf092.tar.xz qemu-d0db7caddb1939e103a7bc6bbf09b3cd58dcf092.zip |
target/ppc: Consolidate 64-bit server processor detection in a helper
We use PPC_SEGMENT_64B in various places to guard code that is specific
to 64-bit server processors compliant with arch 2.x. Consolidate the
logic in a helper macro with an explicit name.
Signed-off-by: Greg Kurz <groug@kaod.org>
Message-Id: <155327783157.1283071.3747129891004927299.stgit@bahia.lan>
Tested-by: Suraj Jitindar Singh <sjitindarsingh@gmail.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'hw/ppc/ppc.c')
-rw-r--r-- | hw/ppc/ppc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/ppc/ppc.c b/hw/ppc/ppc.c index 49d57469fb..ad20584f26 100644 --- a/hw/ppc/ppc.c +++ b/hw/ppc/ppc.c @@ -1101,7 +1101,7 @@ clk_setup_cb cpu_ppc_tb_init (CPUPPCState *env, uint32_t freq) tb_env = g_malloc0(sizeof(ppc_tb_t)); env->tb_env = tb_env; tb_env->flags = PPC_DECR_UNDERFLOW_TRIGGERED; - if (env->insns_flags & PPC_SEGMENT_64B) { + if (is_book3s_arch2x(env)) { /* All Book3S 64bit CPUs implement level based DEC logic */ tb_env->flags |= PPC_DECR_UNDERFLOW_LEVEL; } |