qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Stefan Markovic <smarkovic@wavecomp.com>
To: Aleksandar Markovic <aleksandar.markovic@rt-rk.com>,
	"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>
Cc: "aurelien@aurel32.net" <aurelien@aurel32.net>,
	Aleksandar Markovic <amarkovic@wavecomp.com>,
	Aleksandar Rikalo <arikalo@wavecomp.com>
Subject: Re: [Qemu-devel] [PATCH 4/8] target/mips: Add fields for SAARI and SAAR CP0 registers
Date: Thu, 17 Jan 2019 14:59:52 +0000	[thread overview]
Message-ID: <49dd5885-c4b8-cfe6-0faa-aadfe29a3f5f@wavecomp.com> (raw)
In-Reply-To: <1546533252-26601-5-git-send-email-aleksandar.markovic@rt-rk.com>


On 3.1.19. 17:34, Aleksandar Markovic wrote:
> From: Yongbok Kim <yongbok.kim@mips.com>
>
> Add fields for SAARI and SAAR CP0 registers.
>
> Signed-off-by: Yongbok Kim <yongbok.kim@mips.com>
> Signed-off-by: Aleksandar Markovic <amarkovic@wavecomp.com>
> ---
>   target/mips/cpu.h     | 10 ++++++++--
>   target/mips/machine.c |  6 ++++--
>   2 files changed, 12 insertions(+), 4 deletions(-)


Reviewed-by: Stefan Markovic <smarokvic@wavecomp.com>


> diff --git a/target/mips/cpu.h b/target/mips/cpu.h
> index b095422..1c2c682 100644
> --- a/target/mips/cpu.h
> +++ b/target/mips/cpu.h
> @@ -164,8 +164,8 @@ typedef struct mips_def_t mips_def_t;
>    * 3   BadInstrX
>    * 4                                       GuestCtl1         GuestCtl0Ext
>    * 5                                       GuestCtl2
> - * 6                                       GuestCtl3
> - * 7
> + * 6                     SAARI             GuestCtl3
> + * 7                     SAAR
>    *
>    *
>    *     Register 12       Register 13       Register 14       Register 15
> @@ -546,6 +546,12 @@ struct CPUMIPSState {
>    * CP0 Register 9
>    */
>       int32_t CP0_Count;
> +    uint32_t CP0_SAARI;
> +#define CP0SAARI_TARGET 0    /*  5..0  */
> +    uint64_t CP0_SAAR[2];
> +#define CP0SAAR_BASE    12   /* 43..12 */
> +#define CP0SAAR_SIZE    1    /*  5..1  */
> +#define CP0SAAR_EN      0
>   /*
>    * CP0 Register 10
>    */
> diff --git a/target/mips/machine.c b/target/mips/machine.c
> index 704e9c0..111d7c3 100644
> --- a/target/mips/machine.c
> +++ b/target/mips/machine.c
> @@ -214,8 +214,8 @@ const VMStateDescription vmstate_tlb = {
>   
>   const VMStateDescription vmstate_mips_cpu = {
>       .name = "cpu",
> -    .version_id = 15,
> -    .minimum_version_id = 15,
> +    .version_id = 16,
> +    .minimum_version_id = 16,
>       .post_load = cpu_post_load,
>       .fields = (VMStateField[]) {
>           /* Active TC */
> @@ -274,6 +274,8 @@ const VMStateDescription vmstate_mips_cpu = {
>           VMSTATE_UINT32(env.CP0_BadInstrP, MIPSCPU),
>           VMSTATE_UINT32(env.CP0_BadInstrX, MIPSCPU),
>           VMSTATE_INT32(env.CP0_Count, MIPSCPU),
> +        VMSTATE_UINT32(env.CP0_SAARI, MIPSCPU),
> +        VMSTATE_UINT64_ARRAY(env.CP0_SAAR, MIPSCPU, 2),
>           VMSTATE_UINTTL(env.CP0_EntryHi, MIPSCPU),
>           VMSTATE_INT32(env.CP0_Compare, MIPSCPU),
>           VMSTATE_INT32(env.CP0_Status, MIPSCPU),

  reply	other threads:[~2019-01-17 15:00 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-03 16:34 [Qemu-devel] [PATCH 0/8] target/mips: Update Inter-Thread Communication Unit support Aleksandar Markovic
2019-01-03 16:34 ` [Qemu-devel] [PATCH 1/8] target/mips: Move comment containing summary of CP0 registers Aleksandar Markovic
2019-01-08 12:15   ` Aleksandar Markovic
2019-01-17 14:56   ` Stefan Markovic
2019-01-19  0:20     ` Aleksandar Markovic
2019-01-03 16:34 ` [Qemu-devel] [PATCH 2/8] target/mips: Add preprocessor constants for 32 major " Aleksandar Markovic
2019-01-17 14:57   ` Stefan Markovic
2019-01-03 16:34 ` [Qemu-devel] [PATCH 3/8] target/mips: Use " Aleksandar Markovic
2019-01-17 14:58   ` Stefan Markovic
2019-01-03 16:34 ` [Qemu-devel] [PATCH 4/8] target/mips: Add fields for SAARI and SAAR " Aleksandar Markovic
2019-01-17 14:59   ` Stefan Markovic [this message]
2019-01-03 16:34 ` [Qemu-devel] [PATCH 5/8] target/mips: Provide R/W access to " Aleksandar Markovic
2019-01-17 15:00   ` Stefan Markovic
2019-01-19  0:41     ` Aleksandar Markovic
2019-01-03 16:34 ` [Qemu-devel] [PATCH 6/8] target/mips: Add field and R/W access to ITU control register ICR0 Aleksandar Markovic
2019-01-17 15:01   ` Stefan Markovic
2019-01-03 16:34 ` [Qemu-devel] [PATCH 7/8] target/mips: Update ITU to utilize SAARI and SAAR CP0 registers Aleksandar Markovic
2019-01-17 15:02   ` Stefan Markovic
2019-01-03 16:34 ` [Qemu-devel] [PATCH 8/8] target/mips: Update ITU to handle bus errors Aleksandar Markovic
2019-01-17 15:04   ` Stefan Markovic
2019-01-23 13:17 ` [Qemu-devel] [PATCH 0/8] target/mips: Update Inter-Thread Communication Unit support no-reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=49dd5885-c4b8-cfe6-0faa-aadfe29a3f5f@wavecomp.com \
    --to=smarkovic@wavecomp.com \
    --cc=aleksandar.markovic@rt-rk.com \
    --cc=amarkovic@wavecomp.com \
    --cc=arikalo@wavecomp.com \
    --cc=aurelien@aurel32.net \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).