Revision 86178a57 target-ppc/translate.c
b/target-ppc/translate.c | ||
---|---|---|
2814 | 2814 |
#endif |
2815 | 2815 |
/*** Integer load and store with byte reverse ***/ |
2816 | 2816 |
/* lhbrx */ |
2817 |
static void inline gen_qemu_ld16ur(DisasContext *ctx, TCGv arg1, TCGv arg2)
|
|
2817 |
static inline void gen_qemu_ld16ur(DisasContext *ctx, TCGv arg1, TCGv arg2)
|
|
2818 | 2818 |
{ |
2819 | 2819 |
tcg_gen_qemu_ld16u(arg1, arg2, ctx->mem_idx); |
2820 | 2820 |
if (likely(!ctx->le_mode)) { |
... | ... | |
2824 | 2824 |
GEN_LDX(lhbr, ld16ur, 0x16, 0x18, PPC_INTEGER); |
2825 | 2825 |
|
2826 | 2826 |
/* lwbrx */ |
2827 |
static void inline gen_qemu_ld32ur(DisasContext *ctx, TCGv arg1, TCGv arg2)
|
|
2827 |
static inline void gen_qemu_ld32ur(DisasContext *ctx, TCGv arg1, TCGv arg2)
|
|
2828 | 2828 |
{ |
2829 | 2829 |
tcg_gen_qemu_ld32u(arg1, arg2, ctx->mem_idx); |
2830 | 2830 |
if (likely(!ctx->le_mode)) { |
... | ... | |
2834 | 2834 |
GEN_LDX(lwbr, ld32ur, 0x16, 0x10, PPC_INTEGER); |
2835 | 2835 |
|
2836 | 2836 |
/* sthbrx */ |
2837 |
static void inline gen_qemu_st16r(DisasContext *ctx, TCGv arg1, TCGv arg2)
|
|
2837 |
static inline void gen_qemu_st16r(DisasContext *ctx, TCGv arg1, TCGv arg2)
|
|
2838 | 2838 |
{ |
2839 | 2839 |
if (likely(!ctx->le_mode)) { |
2840 | 2840 |
TCGv t0 = tcg_temp_new(); |
... | ... | |
2849 | 2849 |
GEN_STX(sthbr, st16r, 0x16, 0x1C, PPC_INTEGER); |
2850 | 2850 |
|
2851 | 2851 |
/* stwbrx */ |
2852 |
static void inline gen_qemu_st32r(DisasContext *ctx, TCGv arg1, TCGv arg2)
|
|
2852 |
static inline void gen_qemu_st32r(DisasContext *ctx, TCGv arg1, TCGv arg2)
|
|
2853 | 2853 |
{ |
2854 | 2854 |
if (likely(!ctx->le_mode)) { |
2855 | 2855 |
TCGv t0 = tcg_temp_new(); |
Also available in: Unified diff