diff options
author | Richard Henderson | 2017-10-09 19:17:24 +0200 |
---|---|---|
committer | Richard Henderson | 2018-01-30 19:08:18 +0100 |
commit | 3d68ee7bbe34278d5792f5341ba0246069c6191c (patch) | |
tree | e3e5dff266fe0eb24e5d6bb0ea75964ee4e3bf52 /target/hppa/cpu.c | |
parent | target/hppa: Split address size from register size (diff) | |
download | qemu-3d68ee7bbe34278d5792f5341ba0246069c6191c.tar.gz qemu-3d68ee7bbe34278d5792f5341ba0246069c6191c.tar.xz qemu-3d68ee7bbe34278d5792f5341ba0246069c6191c.zip |
target/hppa: Implement mmu_idx from IA privilege level
Most aspects of privilege are not yet handled. But this
gives us the start from which to begin checking.
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'target/hppa/cpu.c')
-rw-r--r-- | target/hppa/cpu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/hppa/cpu.c b/target/hppa/cpu.c index f6d92de972..9962ab71ee 100644 --- a/target/hppa/cpu.c +++ b/target/hppa/cpu.c @@ -39,7 +39,7 @@ static void hppa_cpu_synchronize_from_tb(CPUState *cs, TranslationBlock *tb) cpu->env.iaoq_f = tb->pc; cpu->env.iaoq_b = tb->cs_base; - cpu->env.psw_n = tb->flags & 1; + cpu->env.psw_n = (tb->flags & PSW_N) != 0; } static void hppa_cpu_disas_set_info(CPUState *cs, disassemble_info *info) |