[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 02/35] target/mips: Fix microMIPS on reset
From: |
Aleksandar Markovic |
Subject: |
Re: [Qemu-devel] [PATCH 02/35] target/mips: Fix microMIPS on reset |
Date: |
Fri, 22 Jun 2018 13:45:34 +0000 |
> From: Yongbok Kim <address@hidden>
>
> Fix to activate microMIPS (and nanoMIPS) on reset when Config3.ISA == {1, 3}
>
> Signed-off-by: Yongbok Kim <address@hidden>
Reviewed-by: Aleksandar Markovic <address@hidden>
> ---
> target/mips/translate.c | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/target/mips/translate.c b/target/mips/translate.c
> index e57d71e..bfbc300 100644
> --- a/target/mips/translate.c
> +++ b/target/mips/translate.c
> @@ -20713,6 +20713,11 @@ void cpu_state_reset(CPUMIPSState *env)
> env->CP0_Status |= (1 << CP0St_FR);
> }
>
> + if (env->CP0_Config3 & (1 << CP0C3_ISA)) {
> + /* microMIPS/nanoMIPS on reset when Config3.ISA == {1, 3} */
> + env->hflags |= MIPS_HFLAG_M16;
> + }
> +
> /* MSA */
> if (env->CP0_Config3 & (1 << CP0C3_MSAP)) {
> msa_reset(env);
> --
> 1.9.1
- [Qemu-devel] [PATCH 00/35] nanoMIPS, Yongbok Kim, 2018/06/20
- [Qemu-devel] [PATCH 01/35] target/mips: Raise a RI when given fs is n/a from CTC1, Yongbok Kim, 2018/06/20
- [Qemu-devel] [PATCH 02/35] target/mips: Fix microMIPS on reset, Yongbok Kim, 2018/06/20
- Re: [Qemu-devel] [PATCH 02/35] target/mips: Fix microMIPS on reset,
Aleksandar Markovic <=
- [Qemu-devel] [PATCH 03/35] target/mips: Add nanoMIPS OPCODE table, Yongbok Kim, 2018/06/20
- [Qemu-devel] [PATCH 04/35] target/mips: Add decode_nanomips_opc(), Yongbok Kim, 2018/06/20
- [Qemu-devel] [PATCH 05/35] target/mips: Add nanoMIPS 16bit ld/st instructions, Yongbok Kim, 2018/06/20
- [Qemu-devel] [PATCH 06/35] target/mips: Add nanoMIPS pool16c instructions, Yongbok Kim, 2018/06/20
- [Qemu-devel] [PATCH 07/35] target/mips: Add nanoMIPS save and restore, Yongbok Kim, 2018/06/20