mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
Implement missing MIPS supervisor mode bits.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3472 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
8e129e0748
commit
623a930ec3
8 changed files with 51 additions and 37 deletions
|
@ -374,7 +374,7 @@ static inline void init_thread(struct target_pt_regs *_regs, struct image_info *
|
|||
|
||||
static inline void init_thread(struct target_pt_regs *regs, struct image_info *infop)
|
||||
{
|
||||
regs->cp0_status = CP0St_UM;
|
||||
regs->cp0_status = 2 << CP0St_KSU;
|
||||
regs->cp0_epc = infop->entry;
|
||||
regs->regs[29] = infop->start_stack;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue