opentitan: Rename memmap enum constants
authorEduardo Habkost <ehabkost@redhat.com>
Tue, 25 Aug 2020 19:20:03 +0000 (15:20 -0400)
committerEduardo Habkost <ehabkost@redhat.com>
Thu, 27 Aug 2020 18:04:54 +0000 (14:04 -0400)
commit30c717cb50a6a2b65ffbdb7c95672feb09b26bba
treee44c63ea8b751f8e9d0dbf7c6eb47ec60610ef30
parent347df6f87616fbc496a1fef597dda2ab7b73be36
opentitan: Rename memmap enum constants

Some of the enum constant names conflict with the QOM type check
macros (IBEX_PLIC, IBEX_UART).  This needs to be addressed to
allow us to transform the QOM type check macros into functions
generated by OBJECT_DECLARE_TYPE().

Rename all the constants to IBEX_DEV_*, to avoid conflicts.

Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Tested-By: Roman Bolshakov <r.bolshakov@yadro.com>
Message-Id: <20200825192110.3528606-8-ehabkost@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
hw/riscv/opentitan.c
include/hw/riscv/opentitan.h