mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-11 03:24:58 -06:00
linux-user/hppa: Fixes for TARGET_ABI32
Avoid target_ulong and use abi_* types. Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
59963d8fdf
commit
0c01f9ba2d
1 changed files with 3 additions and 3 deletions
|
@ -86,7 +86,7 @@ static void setup_sigcontext(struct target_sigcontext *sc, CPUArchState *env)
|
||||||
|
|
||||||
static void restore_sigcontext(CPUArchState *env, struct target_sigcontext *sc)
|
static void restore_sigcontext(CPUArchState *env, struct target_sigcontext *sc)
|
||||||
{
|
{
|
||||||
target_ulong psw;
|
abi_ulong psw;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
__get_user(psw, &sc->sc_gr[0]);
|
__get_user(psw, &sc->sc_gr[0]);
|
||||||
|
@ -150,10 +150,10 @@ void setup_rt_frame(int sig, struct target_sigaction *ka,
|
||||||
haddr = ka->_sa_handler;
|
haddr = ka->_sa_handler;
|
||||||
if (haddr & 2) {
|
if (haddr & 2) {
|
||||||
/* Function descriptor. */
|
/* Function descriptor. */
|
||||||
target_ulong *fdesc, dest;
|
abi_ptr *fdesc, dest;
|
||||||
|
|
||||||
haddr &= -4;
|
haddr &= -4;
|
||||||
fdesc = lock_user(VERIFY_READ, haddr, 2 * sizeof(target_ulong), 1);
|
fdesc = lock_user(VERIFY_READ, haddr, 2 * sizeof(abi_ptr), 1);
|
||||||
if (!fdesc) {
|
if (!fdesc) {
|
||||||
goto give_sigsegv;
|
goto give_sigsegv;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue