hw/m68k/mcf5206: Reduce m5206_mbar_read/write() offset arg to 16-bit
commitccff1ae4df08ad79d055ad255fd578786f17a313
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Tue, 26 May 2020 09:40:51 +0000 (26 11:40 +0200)
committerThomas Huth <huth@tuxfamily.org>
Sat, 30 May 2020 07:16:28 +0000 (30 09:16 +0200)
treefb25e9779ba9226f42638a5074e71409b82038b2
parentc86274bc2e34295764fb44c2aef3cf29623f9b4b
hw/m68k/mcf5206: Reduce m5206_mbar_read/write() offset arg to 16-bit

All calls to m5206_mbar_read/m5206_mbar_write are used with
'offset = hwaddr & 0x3ff', so we are sure the offset fits
in 16-bit.

Suggested-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20200526094052.1723-2-f4bug@amsat.org>
Signed-off-by: Thomas Huth <huth@tuxfamily.org>
hw/m68k/mcf5206.c