qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v5 23/76] target/mips: Add emulation of nanoMIPS


From: Richard Henderson
Subject: Re: [Qemu-devel] [PATCH v5 23/76] target/mips: Add emulation of nanoMIPS 16-bit load and store instructions
Date: Mon, 30 Jul 2018 17:03:29 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1

On 07/30/2018 12:11 PM, Aleksandar Markovic wrote:
>      case NM_P16_LB:
> +        rd = extract32(ctx->opcode, 0, 2);
> +        switch (extract32(ctx->opcode, 2, 2)) {
...
>      case NM_P16_LH:
> +        rd = extract32(ctx->opcode, 1, 2) << 1;
> +        switch ((extract32(ctx->opcode, 3, 1) << 1) | (ctx->opcode & 1)) {
...
>      case NM_LW16:
> +        rd = extract32(ctx->opcode, 0, 4) << 2;
> +        gen_ld(ctx, OPC_LW, rt, rs, rd);

Again, do not use RD to hold anything other than a register.
In these cases and more through this patch, RD being set to
the immediate offset to the memory operation.


r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]