]> git.proxmox.com Git - mirror_qemu.git/commit - hw/intc/riscv_aclint.c
RISC-V: Replace hardcoded constants with enum values
authorMichael Clark <mjc@sifive.com>
Sat, 3 Mar 2018 01:30:07 +0000 (14:30 +1300)
committerMichael Clark <mjc@sifive.com>
Sat, 5 May 2018 22:39:38 +0000 (10:39 +1200)
commit2a8756ed7d64f8fed6ad50fb062f7118e47c856c
treee51ad53bef7471fad7c2ae36bc48ccf483a56238
parentc8b7e627b4269a3bc3ae41d9f420547a47e6d9b9
RISC-V: Replace hardcoded constants with enum values

The RISC-V device-tree code has a number of hard-coded
constants and this change moves them into header enums.

Cc: Sagar Karandikar <sagark@eecs.berkeley.edu>
Cc: Bastian Koppelmann <kbastian@mail.uni-paderborn.de>
Signed-off-by: Michael Clark <mjc@sifive.com>
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
hw/riscv/sifive_clint.c
hw/riscv/sifive_u.c
hw/riscv/spike.c
hw/riscv/virt.c
include/hw/riscv/sifive_clint.h
include/hw/riscv/sifive_u.h
include/hw/riscv/spike.h
include/hw/riscv/virt.h