Re: [Qemu-devel] [PATCH 3/3] ram: RAMBlock->offset is always aligned to a word

2019-07-17 Thread Wei Yang
On Wed, Jul 17, 2019 at 11:17:50AM +0200, Paolo Bonzini wrote: >On 30/04/19 05:44, Wei Yang wrote: >> RAMBlock->offset is calculated by find_ram_offset, which makes sure the >> offset is aligned to a word. >> >> This patch removes the alignment check on offset and unnecessary >> variable *word*.

Re: [Qemu-devel] [PATCH 3/3] ram: RAMBlock->offset is always aligned to a word

2019-07-17 Thread Paolo Bonzini
On 30/04/19 05:44, Wei Yang wrote: > RAMBlock->offset is calculated by find_ram_offset, which makes sure the > offset is aligned to a word. > > This patch removes the alignment check on offset and unnecessary > variable *word*. > > Signed-off-by: Wei Yang I would add an assertion instead, but

[Qemu-devel] [PATCH 3/3] ram: RAMBlock->offset is always aligned to a word

2019-04-29 Thread Wei Yang
RAMBlock->offset is calculated by find_ram_offset, which makes sure the offset is aligned to a word. This patch removes the alignment check on offset and unnecessary variable *word*. Signed-off-by: Wei Yang --- include/exec/ram_addr.h | 15 +-- 1 file changed, 9 insertions(+), 6