]> git.proxmox.com Git - mirror_qemu.git/commit
target-arm: Allow STATE_BOTH reginfo descriptions for more than cp14
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 19 Aug 2014 17:56:25 +0000 (18:56 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 19 Aug 2014 18:02:03 +0000 (19:02 +0100)
commit58a1d8ceabbbf0ddaa8d6d81faa2f77816d35e18
tree40b9603544ba1137a4a8c4752d320da5611d7621
parent503006983a19be0b481946afac2cab0bdd21f124
target-arm: Allow STATE_BOTH reginfo descriptions for more than cp14

Currently the STATE_BOTH shorthand for allowing a single reginfo struct
to define handling for both AArch32 and AArch64 views of a register
only permits this where the AArch32 view is in cp15. It turns out that
the debug registers in cp14 also have neatly lined up encodings;
allow these also to share reginfo structs by permitting a STATE_BOTH
reginfo to specify the .cp field (and continue to default to 15 if
it is not specified).

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
target-arm/helper.c