diff options
| author | Mikhail Ilyin <m.ilin@samsung.com> | 2015-03-16 12:30:47 +0000 |
|---|---|---|
| committer | Peter Maydell <peter.maydell@linaro.org> | 2015-03-16 12:30:47 +0000 |
| commit | b8d43285a4db12156c40ba6fdbd8002c383fcbca (patch) | |
| tree | d0b18b66b55e9cbd14d182bfaa617f09ded2fdd5 /hw/core/qdev.c | |
| parent | fcf83ab103dce6d2951f24f48e30820e7dbb3622 (diff) | |
| download | focaccia-qemu-b8d43285a4db12156c40ba6fdbd8002c383fcbca.tar.gz focaccia-qemu-b8d43285a4db12156c40ba6fdbd8002c383fcbca.zip | |
linux-user: Access correct register for get/set_tls syscalls on ARM TZ CPUs
When support was added for TrustZone to ARM CPU emulation, we failed to correctly update the support for the linux-user implementation of the get/set_tls syscalls. This meant that accesses to the TPIDRURO register via the syscalls were always using the non-secure copy of the register even if native MRC/MCR accesses were using the secure register. This inconsistency caused most binaries to segfault on startup if the CPU type was explicitly set to one of the TZ-enabled ones like cortex-a15. (The default "any" CPU doesn't have TZ enabled and so is not affected.) Use access_secure_reg() to determine whether we should be using the secure or the nonsecure copy of TPIDRURO when emulating these syscalls. Signed-off-by: Mikhail Ilyin <m.ilin@samsung.com> Message-id: 1426505198-2411-1-git-send-email-m.ilin@samsung.com [PMM: rewrote commit message to more clearly explain the issue and its consequences.] Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/core/qdev.c')
0 files changed, 0 insertions, 0 deletions