Commit bffd92fed9393021200915586be8d1b0cc711286
1 parent
2f0a5008
Fix compiler warning
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4003 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
2 additions
and
0 deletions
tcg/x86_64/tcg-target.c
| @@ -294,6 +294,7 @@ static inline void tcg_out_modrm_offset(TCGContext *s, int opc, int r, int rm, | @@ -294,6 +294,7 @@ static inline void tcg_out_modrm_offset(TCGContext *s, int opc, int r, int rm, | ||
| 294 | } | 294 | } |
| 295 | } | 295 | } |
| 296 | 296 | ||
| 297 | +#if defined(CONFIG_SOFTMMU) | ||
| 297 | /* XXX: incomplete. index must be different from ESP */ | 298 | /* XXX: incomplete. index must be different from ESP */ |
| 298 | static void tcg_out_modrm_offset2(TCGContext *s, int opc, int r, int rm, | 299 | static void tcg_out_modrm_offset2(TCGContext *s, int opc, int r, int rm, |
| 299 | int index, int shift, | 300 | int index, int shift, |
| @@ -330,6 +331,7 @@ static void tcg_out_modrm_offset2(TCGContext *s, int opc, int r, int rm, | @@ -330,6 +331,7 @@ static void tcg_out_modrm_offset2(TCGContext *s, int opc, int r, int rm, | ||
| 330 | tcg_out32(s, offset); | 331 | tcg_out32(s, offset); |
| 331 | } | 332 | } |
| 332 | } | 333 | } |
| 334 | +#endif | ||
| 333 | 335 | ||
| 334 | static inline void tcg_out_mov(TCGContext *s, int ret, int arg) | 336 | static inline void tcg_out_mov(TCGContext *s, int ret, int arg) |
| 335 | { | 337 | { |