diff mbox series

[v5,22/28] target/mips: Add CP0 Config2 to DisasContext

Message ID 1539362376-12010-23-git-send-email-aleksandar.markovic@rt-rk.com
State New
Headers show
Series Misc MIPS fixes and improvements for October 2018 | expand

Commit Message

Aleksandar Markovic Oct. 12, 2018, 4:39 p.m. UTC
From: Stefan Markovic <smarkovic@wavecomp.com>

Add field corresponding to CP0 Config2 to DisasContext. This is
needed for availability control via Config2 bits.

Signed-off-by: Stefan Markovic <smarkovic@wavecomp.com>
Signed-off-by: Aleksandar Markovic <amarkovic@wavecomp.com>
---
 target/mips/translate.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Aleksandar Markovic Oct. 12, 2018, 6:41 p.m. UTC | #1
> Subject: [PATCH v5 22/28] target/mips: Add CP0 Config2 to DisasContext
>
> From: Stefan Markovic <smarkovic@wavecomp.com>
>
> Add field corresponding to CP0 Config2 to DisasContext. This is
needed for availability control via Config2 bits.
>
> Signed-off-by: Stefan Markovic <smarkovic@wavecomp.com>
> Signed-off-by: Aleksandar Markovic <amarkovic@wavecomp.com>
> ---

Reviewed-by: Aleksandar Markovic <amarkovic@wavecomp.com>
Philippe Mathieu-Daudé via Oct. 14, 2018, 10:22 p.m. UTC | #2
On Fri, Oct 12, 2018 at 6:58 PM Aleksandar Markovic
<aleksandar.markovic@rt-rk.com> wrote:
>
> From: Stefan Markovic <smarkovic@wavecomp.com>
>
> Add field corresponding to CP0 Config2 to DisasContext. This is
> needed for availability control via Config2 bits.
>
> Signed-off-by: Stefan Markovic <smarkovic@wavecomp.com>
> Signed-off-by: Aleksandar Markovic <amarkovic@wavecomp.com>

Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>

> ---
>  target/mips/translate.c | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/target/mips/translate.c b/target/mips/translate.c
> index e7bc3d4..9e4aae5 100644
> --- a/target/mips/translate.c
> +++ b/target/mips/translate.c
> @@ -1449,6 +1449,7 @@ typedef struct DisasContext {
>      uint32_t opcode;
>      int insn_flags;
>      int32_t CP0_Config1;
> +    int32_t CP0_Config2;
>      int32_t CP0_Config3;
>      int32_t CP0_Config5;
>      /* Routine used to access memory */
> @@ -25517,6 +25518,7 @@ static void mips_tr_init_disas_context(DisasContextBase *dcbase, CPUState *cs)
>      ctx->saved_pc = -1;
>      ctx->insn_flags = env->insn_flags;
>      ctx->CP0_Config1 = env->CP0_Config1;
> +    ctx->CP0_Config2 = env->CP0_Config2;
>      ctx->CP0_Config3 = env->CP0_Config3;
>      ctx->CP0_Config5 = env->CP0_Config5;
>      ctx->btarget = 0;
> --
> 2.7.4
>
>
diff mbox series

Patch

diff --git a/target/mips/translate.c b/target/mips/translate.c
index e7bc3d4..9e4aae5 100644
--- a/target/mips/translate.c
+++ b/target/mips/translate.c
@@ -1449,6 +1449,7 @@  typedef struct DisasContext {
     uint32_t opcode;
     int insn_flags;
     int32_t CP0_Config1;
+    int32_t CP0_Config2;
     int32_t CP0_Config3;
     int32_t CP0_Config5;
     /* Routine used to access memory */
@@ -25517,6 +25518,7 @@  static void mips_tr_init_disas_context(DisasContextBase *dcbase, CPUState *cs)
     ctx->saved_pc = -1;
     ctx->insn_flags = env->insn_flags;
     ctx->CP0_Config1 = env->CP0_Config1;
+    ctx->CP0_Config2 = env->CP0_Config2;
     ctx->CP0_Config3 = env->CP0_Config3;
     ctx->CP0_Config5 = env->CP0_Config5;
     ctx->btarget = 0;