mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 09:13:55 -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(); \
|
||||
gen_addr_reg_index(ctx, EA); \
|
||||
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) { \
|
||||
gen_qemu_ld64_i64(ctx, avr, EA); \
|
||||
set_avr64(rD(ctx->opcode), avr, false); \
|
||||
|
@ -61,8 +63,10 @@ static void gen_st##name(DisasContext *ctx) \
|
|||
EA = tcg_temp_new(); \
|
||||
gen_addr_reg_index(ctx, EA); \
|
||||
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) { \
|
||||
get_avr64(avr, rD(ctx->opcode), false); \
|
||||
gen_qemu_st64_i64(ctx, avr, EA); \
|
||||
|
@ -306,7 +310,7 @@ static void glue(gen_, name)(DisasContext *ctx)
|
|||
ra = gen_avr_ptr(rA(ctx->opcode)); \
|
||||
rb = gen_avr_ptr(rB(ctx->opcode)); \
|
||||
rd = gen_avr_ptr(rD(ctx->opcode)); \
|
||||
gen_helper_##name (rd, ra, rb); \
|
||||
gen_helper_##name(rd, ra, rb); \
|
||||
tcg_temp_free_ptr(ra); \
|
||||
tcg_temp_free_ptr(rb); \
|
||||
tcg_temp_free_ptr(rd); \
|
||||
|
@ -767,7 +771,7 @@ static void glue(gen_, name)(DisasContext *ctx)
|
|||
} \
|
||||
rb = gen_avr_ptr(rB(ctx->opcode)); \
|
||||
rd = gen_avr_ptr(rD(ctx->opcode)); \
|
||||
gen_helper_##name (rd, rb); \
|
||||
gen_helper_##name(rd, rb); \
|
||||
tcg_temp_free_ptr(rb); \
|
||||
tcg_temp_free_ptr(rd); \
|
||||
}
|
||||
|
@ -943,7 +947,7 @@ static void gen_vsldoi(DisasContext *ctx)
|
|||
rb = gen_avr_ptr(rB(ctx->opcode));
|
||||
rd = gen_avr_ptr(rD(ctx->opcode));
|
||||
sh = tcg_const_i32(VSH(ctx->opcode));
|
||||
gen_helper_vsldoi (rd, ra, rb, sh);
|
||||
gen_helper_vsldoi(rd, ra, rb, sh);
|
||||
tcg_temp_free_ptr(ra);
|
||||
tcg_temp_free_ptr(rb);
|
||||
tcg_temp_free_ptr(rd);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue