[prev in list] [next in list] [prev in thread] [next in thread]
List: qemu-devel
Subject: Re: [Qemu-devel] [PATCH 2/2] target-mips: implement UserLocal Register
From: James Hogan <james () albanarts ! com>
Date: 2014-05-22 0:03:55
Message-ID: 4276173.dYlcVoRku8 () radagast
[Download RAW message or body]
Hi Petar,
On Friday 16 May 2014 20:13:34 Petar Jovanovic wrote:
> From: Petar Jovanovic <petar.jovanovic@imgtec.com>
>
> From MIPS documentation (Volume III):
>
> UserLocal Register (CP0 Register 4, Select 2)
> Compliance Level: Recommended.
>
> The UserLocal register is a read-write register that is not interpreted by
> the hardware and conditionally readable via the RDHWR instruction.
>
> This register only exists if the Config3-ULRI register field is set.
>
> Privileged software may write this register with arbitrary information and
> make it accessable to unprivileged software via register 29 (ULR) of the
> RDHWR instruction. To do so, bit 29 of the HWREna register must be set to a
> 1 to enable unprivileged access to the register.
>
> Signed-off-by: Petar Jovanovic <petar.jovanovic@imgtec.com>
> ---
> target-mips/cpu.h | 2 ++
> target-mips/helper.h | 1 +
> target-mips/op_helper.c | 20 +++++++++++++++++++-
> target-mips/translate.c | 43 +++++++++++++++++++++++++++++++++++++++++--
> 4 files changed, 63 insertions(+), 3 deletions(-)
I think you need to add it to cpu_save/cpu_load in target-mips/machine.c too,
otherwise snapshotting and live migration may break.
Cheers
James
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic