diff options
author | BALATON Zoltan <balaton@eik.bme.hu> | 2021-10-29 23:02:09 +0200 |
---|---|---|
committer | Philippe Mathieu-Daudé <f4bug@amsat.org> | 2021-10-30 18:39:37 +0200 |
commit | dc6f1734b704e5563e4c512393e2629799093681 (patch) | |
tree | 1bf39004bfb4e29628a8b9ff11dd0213bdb8b0ae /blockdev.c | |
parent | cfaf2806e87b0eb962866e041a0fd75a524394d8 (diff) | |
download | qemu-dc6f1734b704e5563e4c512393e2629799093681.zip qemu-dc6f1734b704e5563e4c512393e2629799093681.tar.gz qemu-dc6f1734b704e5563e4c512393e2629799093681.tar.bz2 |
hw/intc/sh_intc: Turn some defines into an enum
Turn the INTC_MODE defines into an enum and clean up the function
returning these to make it clearer by removing nested ifs and
superfluous parenthesis. The one remaining #define is a flag which is
moved further apart by changing its value from 8 to 0x80 to leave some
spare bits as this is or-ed with the enum value at some places.
Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
Message-Id: <4adf4e1ac9d2e728e5a536c69e310d77f0c4455a.1635541329.git.balaton@eik.bme.hu>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Diffstat (limited to 'blockdev.c')
0 files changed, 0 insertions, 0 deletions