hw/misc/a9scu: Simplify setting MemoryRegionOps::valid fields
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Tue, 1 Sep 2020 14:40:58 +0000 (16:40 +0200)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 14 Sep 2020 13:23:19 +0000 (14:23 +0100)
commit7b56d1f4aebf25d81d7b73fe1e2aac2d66b8c0ce
tree25509af00620a1ffe308d9c4b06c9520993aab81
parent14a560359d24d0f30ced8a2613b83323e9302490
hw/misc/a9scu: Simplify setting MemoryRegionOps::valid fields

Per the datasheet (DDI0407 r2p0):

  "All SCU registers are byte accessible" and are 32-bit aligned.

Set MemoryRegionOps::valid min/max fields and simplify the write()
handler.

Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20200901144100.116742-3-f4bug@amsat.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/misc/a9scu.c