aboutsummaryrefslogtreecommitdiff
path: root/cache-utils.c
diff options
context:
space:
mode:
authorScott Wood <scottwood@freescale.com>2012-12-13 16:11:59 +0000
committerAlexander Graf <agraf@suse.de>2013-01-07 17:37:08 +0100
commit71c6cacb241689bbf99d54467dc2ae6912ffdab9 (patch)
treeb3bc48cbe24745c7d7a26c83b61d688d28cea019 /cache-utils.c
parent8e4a424b305e29dc0e454f52df3b35577f342975 (diff)
downloadqemu-71c6cacb241689bbf99d54467dc2ae6912ffdab9.zip
qemu-71c6cacb241689bbf99d54467dc2ae6912ffdab9.tar.gz
qemu-71c6cacb241689bbf99d54467dc2ae6912ffdab9.tar.bz2
openpic: symbolicize some magic numbers
Deefine symbolic names for some register bits, and use some that have already been defined. Also convert some register values from hex to decimal when it improves readability. IPVP_PRIORITY_MASK is corrected from (0x1F << 16) to (0xF << 16), in conjunction with making wider use of the symbolic name. I looked at Freescale and IBM MPIC docs and at the base OpenPIC spec, and all three had priority as 4 bits rather than 5. Plus, the magic nubmer that is being replaced with symbolic values treated the field as 4 bits wide. Signed-off-by: Scott Wood <scottwood@freescale.com> Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'cache-utils.c')
0 files changed, 0 insertions, 0 deletions