[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH for-2.5 15/30] m68k: add more modes to movem
From: |
Richard Henderson |
Subject: |
Re: [Qemu-devel] [PATCH for-2.5 15/30] m68k: add more modes to movem |
Date: |
Wed, 12 Aug 2015 08:13:04 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 |
On 08/12/2015 01:07 AM, Andreas Schwab wrote:
> Richard Henderson <address@hidden> writes:
>
>> On 08/09/2015 01:13 PM, Laurent Vivier wrote:
>>> + opsize = (insn & 0x40) != 0 ? OS_LONG : OS_WORD;
>>> + incr = opsize_bytes(opsize);
>>> + if (!is_load && (insn & 070) == 040) {
>>> + for (i = 15; i >= 0; i--, mask >>= 1) {
>>
>> This has got to be wrong. Just because it's pre-decrement doesn't mean
>> you should skip all of the loads.
>
> Pre-dec only supports reg-to-mem, and is special because mask is bit
> reversed.
Ah, I'd never noticed that. A comment to that effect would be good.
r~
[Qemu-devel] [PATCH for-2.5 17/30] m68k: ori/andi/subi/addi/eori/cmpi can modify SR/CCR, Laurent Vivier, 2015/08/09
[Qemu-devel] [PATCH for-2.5 18/30] m68k: addq/subq can work with all the data sizes., Laurent Vivier, 2015/08/09