Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ce147c74 authored by Vineet Gupta's avatar Vineet Gupta
Browse files

ARC: unaligned access emulation broken if callee-reg dest of LD/ST



The fixup code correctly updates the callee-regs on stack, but
fails to unwind it into actual register file. Thus userspace won't see
the update.

Reported-by: default avatarNoam Camus <noamc@ezchip.com>
Signed-off-by: default avatarVineet Gupta <vgupta@synopsys.com>
parent c723ea46
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -396,7 +396,9 @@ ARC_ENTRY EV_TLBProtV

	bl  do_misaligned_access

	DISCARD_CALLEE_SAVED_USER
	; TBD: optimize - do this only if a callee reg was involved
	; either a dst of emulated LD/ST or src with address-writeback
	RESTORE_CALLEE_SAVED_USER
#else
	bl  do_misaligned_error
#endif