mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
linux-user/hppa: Force all code addresses to PRIV_USER
The kernel does this along the return path to user mode. Reviewed-by: Helge Deller <deller@gmx.de> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
a0ea4becca
commit
3c13b0ffe7
8 changed files with 31 additions and 17 deletions
|
@ -1887,8 +1887,8 @@ static inline void init_thread(struct target_pt_regs *regs,
|
|||
static inline void init_thread(struct target_pt_regs *regs,
|
||||
struct image_info *infop)
|
||||
{
|
||||
regs->iaoq[0] = infop->entry;
|
||||
regs->iaoq[1] = infop->entry + 4;
|
||||
regs->iaoq[0] = infop->entry | PRIV_USER;
|
||||
regs->iaoq[1] = regs->iaoq[0] + 4;
|
||||
regs->gr[23] = 0;
|
||||
regs->gr[24] = infop->argv;
|
||||
regs->gr[25] = infop->argc;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue