mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 01:33:56 -06:00
target/ppc: Style fixes for translate/vmx-impl.inc.c
Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Reviewed-by: Cédric Le Goater <clg@kaod.org> Reviewed-by: Greg Kurz <groug@kaod.org>
This commit is contained in:
parent
34b2300cbb
commit
3255386633
1 changed files with 15 additions and 11 deletions
|
@ -28,8 +28,10 @@ static void glue(gen_, name)(DisasContext *ctx)
|
||||||
EA = tcg_temp_new(); \
|
EA = tcg_temp_new(); \
|
||||||
gen_addr_reg_index(ctx, EA); \
|
gen_addr_reg_index(ctx, EA); \
|
||||||
tcg_gen_andi_tl(EA, EA, ~0xf); \
|
tcg_gen_andi_tl(EA, EA, ~0xf); \
|
||||||
/* We only need to swap high and low halves. gen_qemu_ld64_i64 does \
|
/* \
|
||||||
necessary 64-bit byteswap already. */ \
|
* We only need to swap high and low halves. gen_qemu_ld64_i64 \
|
||||||
|
* does necessary 64-bit byteswap already. \
|
||||||
|
*/ \
|
||||||
if (ctx->le_mode) { \
|
if (ctx->le_mode) { \
|
||||||
gen_qemu_ld64_i64(ctx, avr, EA); \
|
gen_qemu_ld64_i64(ctx, avr, EA); \
|
||||||
set_avr64(rD(ctx->opcode), avr, false); \
|
set_avr64(rD(ctx->opcode), avr, false); \
|
||||||
|
@ -61,8 +63,10 @@ static void gen_st##name(DisasContext *ctx) \
|
||||||
EA = tcg_temp_new(); \
|
EA = tcg_temp_new(); \
|
||||||
gen_addr_reg_index(ctx, EA); \
|
gen_addr_reg_index(ctx, EA); \
|
||||||
tcg_gen_andi_tl(EA, EA, ~0xf); \
|
tcg_gen_andi_tl(EA, EA, ~0xf); \
|
||||||
/* We only need to swap high and low halves. gen_qemu_st64_i64 does \
|
/* \
|
||||||
necessary 64-bit byteswap already. */ \
|
* We only need to swap high and low halves. gen_qemu_st64_i64 \
|
||||||
|
* does necessary 64-bit byteswap already. \
|
||||||
|
*/ \
|
||||||
if (ctx->le_mode) { \
|
if (ctx->le_mode) { \
|
||||||
get_avr64(avr, rD(ctx->opcode), false); \
|
get_avr64(avr, rD(ctx->opcode), false); \
|
||||||
gen_qemu_st64_i64(ctx, avr, EA); \
|
gen_qemu_st64_i64(ctx, avr, EA); \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue