[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 05/35] target/mips: Add nanoMIPS 16bit ld/st ins
From: |
Richard Henderson |
Subject: |
Re: [Qemu-devel] [PATCH 05/35] target/mips: Add nanoMIPS 16bit ld/st instructions |
Date: |
Thu, 21 Jun 2018 16:48:39 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 |
On 06/20/2018 05:05 AM, Yongbok Kim wrote:
> Add nanoMIPS 16bit load and store instructions
>
> Signed-off-by: Yongbok Kim <address@hidden>
> ---
> target/mips/translate.c | 110
> ++++++++++++++++++++++++++++++++++++++++++++++++
> 1 file changed, 110 insertions(+)
>
> diff --git a/target/mips/translate.c b/target/mips/translate.c
> index 633d0b4..f5b7e14 100644
> --- a/target/mips/translate.c
> +++ b/target/mips/translate.c
> @@ -16207,6 +16207,14 @@ static int mmreg_nanomips(int r)
> return map[r & 0x7];
> }
>
> +/* Used for 16-bit store instructions. */
> +static int mmreg2_nanomips(int r)
> +{
> + static const int map[] = { 0, 17, 18, 19, 4, 5, 6, 7 };
> +
> + return map[r & 0x7];
This is called gpr3.src.store in the manual.
Why the name change to "reg2"?
r~
- [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
- [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
- Re: [Qemu-devel] [PATCH 05/35] target/mips: Add nanoMIPS 16bit ld/st instructions,
Richard Henderson <=
- [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
- [Qemu-devel] [PATCH 08/35] target/mips: Add nanoMIPS 32bit instructions, Yongbok Kim, 2018/06/20
- [Qemu-devel] [PATCH 09/35] target/mips: Add nanoMIPS 48bit instructions, Yongbok Kim, 2018/06/20
- [Qemu-devel] [PATCH 10/35] target/mips: Add nanoMIPS pool32f instructions, Yongbok Kim, 2018/06/20
- [Qemu-devel] [PATCH 11/35] target/mips: Add nanoMIPS pool32a0 instructions, Yongbok Kim, 2018/06/20