mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
TCG: Fix 32-bit host allocation typo
The second half register of a 64-bit temp on a 32-bit host was allocated with the wrong base_type. The base_type of the second half register is never checked, but for consistency it should be the same as the first half. Signed-off-by: Richard Henderson <rth@twiddle.net>
This commit is contained in:
parent
0dbcf95a1e
commit
f6aa2f7dee
1 changed files with 1 additions and 1 deletions
|
@ -526,7 +526,7 @@ static inline int tcg_temp_new_internal(TCGType type, int temp_local)
|
|||
ts->temp_local = temp_local;
|
||||
ts->name = NULL;
|
||||
ts++;
|
||||
ts->base_type = TCG_TYPE_I32;
|
||||
ts->base_type = type;
|
||||
ts->type = TCG_TYPE_I32;
|
||||
ts->temp_allocated = 1;
|
||||
ts->temp_local = temp_local;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue