target-arm: Pull "add one cpreg to hashtable" into its own function
commit6e6efd612f58726189893fd4d948b7fc10acd872
authorPeter Maydell <peter.maydell@linaro.org>
Sun, 22 Dec 2013 22:32:30 +0000 (22 22:32 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Sat, 4 Jan 2014 22:15:44 +0000 (4 22:15 +0000)
treef9bf3b87c5f5f7787bf544a4851bcc1eef2b589c
parentce5458e82e250c66fe31c716d0e44fac5b1bc349
target-arm: Pull "add one cpreg to hashtable" into its own function

define_one_arm_cp_reg_with_opaque() has a set of nested loops which
insert a cpreg entry into the hashtable for each of the possible
opc/crn/crm values allowed by wildcard specifications. We're about
to add an extra loop to this nesting, so pull the core of the loop
(which adds a single entry to the hashtable) out into its own
function for clarity.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <rth@twiddle.net>
target-arm/helper.c