translate.c (43507e47e14e92e4460fdd29cf9f3798b401589f) | translate.c (a1b05c06255c2136bd4076017c48546035a8cb40) |
---|---|
1/* 2 * PowerPC emulation for qemu: main translation routines. 3 * 4 * Copyright (c) 2003-2007 Jocelyn Mayer 5 * Copyright (C) 2011 Freescale Semiconductor, Inc. 6 * 7 * This library is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU Lesser General Public --- 5452 unchanged lines hidden (view full) --- 5461 5462 CHK_SV(ctx); 5463 5464 gen_helper_slbia(cpu_env, t0); 5465 tcg_temp_free_i32(t0); 5466#endif /* defined(CONFIG_USER_ONLY) */ 5467} 5468 | 1/* 2 * PowerPC emulation for qemu: main translation routines. 3 * 4 * Copyright (c) 2003-2007 Jocelyn Mayer 5 * Copyright (C) 2011 Freescale Semiconductor, Inc. 6 * 7 * This library is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU Lesser General Public --- 5452 unchanged lines hidden (view full) --- 5461 5462 CHK_SV(ctx); 5463 5464 gen_helper_slbia(cpu_env, t0); 5465 tcg_temp_free_i32(t0); 5466#endif /* defined(CONFIG_USER_ONLY) */ 5467} 5468 |
5469/* slbieg */ 5470static void gen_slbieg(DisasContext *ctx) 5471{ 5472#if defined(CONFIG_USER_ONLY) 5473 GEN_PRIV(ctx); 5474#else 5475 CHK_SV(ctx); 5476 5477 gen_helper_slbieg(cpu_env, cpu_gpr[rB(ctx->opcode)]); 5478#endif /* defined(CONFIG_USER_ONLY) */ 5479} 5480 | |
5481/* slbsync */ 5482static void gen_slbsync(DisasContext *ctx) 5483{ 5484#if defined(CONFIG_USER_ONLY) 5485 GEN_PRIV(ctx); 5486#else 5487 CHK_SV(ctx); 5488 gen_check_tlb_flush(ctx, true); --- 1388 unchanged lines hidden (view full) --- 6877GEN_HANDLER(tlbia, 0x1F, 0x12, 0x0B, 0x03FFFC01, PPC_MEM_TLBIA), 6878/* 6879 * XXX Those instructions will need to be handled differently for 6880 * different ISA versions 6881 */ 6882GEN_HANDLER(tlbsync, 0x1F, 0x16, 0x11, 0x03FFF801, PPC_MEM_TLBSYNC), 6883#if defined(TARGET_PPC64) 6884GEN_HANDLER(slbia, 0x1F, 0x12, 0x0F, 0x031FFC01, PPC_SLBI), | 5469/* slbsync */ 5470static void gen_slbsync(DisasContext *ctx) 5471{ 5472#if defined(CONFIG_USER_ONLY) 5473 GEN_PRIV(ctx); 5474#else 5475 CHK_SV(ctx); 5476 gen_check_tlb_flush(ctx, true); --- 1388 unchanged lines hidden (view full) --- 6865GEN_HANDLER(tlbia, 0x1F, 0x12, 0x0B, 0x03FFFC01, PPC_MEM_TLBIA), 6866/* 6867 * XXX Those instructions will need to be handled differently for 6868 * different ISA versions 6869 */ 6870GEN_HANDLER(tlbsync, 0x1F, 0x16, 0x11, 0x03FFF801, PPC_MEM_TLBSYNC), 6871#if defined(TARGET_PPC64) 6872GEN_HANDLER(slbia, 0x1F, 0x12, 0x0F, 0x031FFC01, PPC_SLBI), |
6885GEN_HANDLER_E(slbieg, 0x1F, 0x12, 0x0E, 0x001F0001, PPC_NONE, PPC2_ISA300), | |
6886GEN_HANDLER_E(slbsync, 0x1F, 0x12, 0x0A, 0x03FFF801, PPC_NONE, PPC2_ISA300), 6887#endif 6888GEN_HANDLER(eciwx, 0x1F, 0x16, 0x0D, 0x00000001, PPC_EXTERN), 6889GEN_HANDLER(ecowx, 0x1F, 0x16, 0x09, 0x00000001, PPC_EXTERN), 6890GEN_HANDLER2(tlbld_6xx, "tlbld", 0x1F, 0x12, 0x1E, 0x03FF0001, PPC_6xx_TLB), 6891GEN_HANDLER2(tlbli_6xx, "tlbli", 0x1F, 0x12, 0x1F, 0x03FF0001, PPC_6xx_TLB), 6892GEN_HANDLER(mfapidi, 0x1F, 0x13, 0x08, 0x0000F801, PPC_MFAPIDI), 6893GEN_HANDLER(tlbiva, 0x1F, 0x12, 0x18, 0x03FFF801, PPC_TLBIVA), --- 872 unchanged lines hidden --- | 6873GEN_HANDLER_E(slbsync, 0x1F, 0x12, 0x0A, 0x03FFF801, PPC_NONE, PPC2_ISA300), 6874#endif 6875GEN_HANDLER(eciwx, 0x1F, 0x16, 0x0D, 0x00000001, PPC_EXTERN), 6876GEN_HANDLER(ecowx, 0x1F, 0x16, 0x09, 0x00000001, PPC_EXTERN), 6877GEN_HANDLER2(tlbld_6xx, "tlbld", 0x1F, 0x12, 0x1E, 0x03FF0001, PPC_6xx_TLB), 6878GEN_HANDLER2(tlbli_6xx, "tlbli", 0x1F, 0x12, 0x1F, 0x03FF0001, PPC_6xx_TLB), 6879GEN_HANDLER(mfapidi, 0x1F, 0x13, 0x08, 0x0000F801, PPC_MFAPIDI), 6880GEN_HANDLER(tlbiva, 0x1F, 0x12, 0x18, 0x03FFF801, PPC_TLBIVA), --- 872 unchanged lines hidden --- |