mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 01:03:55 -06:00
TCG/Sparc64: use stack for TCG temps
Use stack instead of temp_buf array in CPUState for TCG temps. On Sparc64, stack pointer is not aligned but there is a fixed bias of 2047, so don't try to enforce alignment. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
ac0275dcfe
commit
f44c99607a
2 changed files with 6 additions and 3 deletions
|
@ -1439,9 +1439,11 @@ static void temp_allocate_frame(TCGContext *s, int temp)
|
|||
{
|
||||
TCGTemp *ts;
|
||||
ts = &s->temps[temp];
|
||||
#ifndef __sparc_v9__ /* Sparc64 stack is accessed with offset of 2047 */
|
||||
s->current_frame_offset = (s->current_frame_offset +
|
||||
(tcg_target_long)sizeof(tcg_target_long) - 1) &
|
||||
~(sizeof(tcg_target_long) - 1);
|
||||
#endif
|
||||
if (s->current_frame_offset + (tcg_target_long)sizeof(tcg_target_long) >
|
||||
s->frame_end) {
|
||||
tcg_abort();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue