]> xenbits.xensource.com Git - qemu-xen.git/commit
target/arm: Use M_REG_NUM_BANKS rather than hardcoding 2
authorPeter Maydell <peter.maydell@linaro.org>
Thu, 14 Sep 2017 17:43:16 +0000 (18:43 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 14 Sep 2017 17:43:16 +0000 (18:43 +0100)
commit4a16724f06ead684a5962477a557c26c677c2729
tree320f967ccbafb6708aa4a6258e0ddf5ca81af646
parent3dabde1128b671f36ac6cb36b97b273139964420
target/arm: Use M_REG_NUM_BANKS rather than hardcoding 2

Use a symbolic constant M_REG_NUM_BANKS for the array size for
registers which are banked by M profile security state, rather
than hardcoding lots of 2s.

Suggested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Alistair Francis <alistair.francis@xilinx.com>
Message-id: 1505137930-13255-2-git-send-email-peter.maydell@linaro.org
target/arm/cpu.h