Skip to contentSkip to conversation

linux-user: ARM: Ignore immediate value for svc in thumb mode

PATCH Peter Maydell 1 participant 1 message Jun 22, 2012 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Peter Maydell

author Reviewed-by
#1 lore raw
Quoted 7 lines · Alexander Graf

When running in thumb mode, Linux doesn't evaluate the immediate value of the svc instruction, but instead just always assumes the syscall number to be in r7.

This fixes executing go_bootstrap while building go for me.

Yep, there's no OABI back-compat for thumb so it is always EABI. (I think the code emitting Thumb SVCs with non-zero immediate values is probably broken though.)

-- PMM