mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 01:03:55 -06:00
hw/arm/bcm2836: Rename bcm2836 type/struct to bcm283x
Our BCM2836 type is really a generic one that can be any of the bcm283x family. Rename it accordingly. We change only the names which are visible via the header file to the rest of the QEMU code, leaving private function names in bcm2836.c as they are. This is a preliminary to making bcm283x be an abstract parent class to specific types for the bcm2836 and bcm2837. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Andrew Baumann <Andrew.Baumann@microsoft.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Message-id: 20180313153458.26822-6-peter.maydell@linaro.org
This commit is contained in:
parent
3d260cf3c6
commit
926dcdf073
3 changed files with 23 additions and 22 deletions
|
@ -15,12 +15,12 @@
|
|||
#include "hw/arm/bcm2835_peripherals.h"
|
||||
#include "hw/intc/bcm2836_control.h"
|
||||
|
||||
#define TYPE_BCM2836 "bcm2836"
|
||||
#define BCM2836(obj) OBJECT_CHECK(BCM2836State, (obj), TYPE_BCM2836)
|
||||
#define TYPE_BCM283X "bcm283x"
|
||||
#define BCM283X(obj) OBJECT_CHECK(BCM283XState, (obj), TYPE_BCM283X)
|
||||
|
||||
#define BCM2836_NCPUS 4
|
||||
#define BCM283X_NCPUS 4
|
||||
|
||||
typedef struct BCM2836State {
|
||||
typedef struct BCM283XState {
|
||||
/*< private >*/
|
||||
DeviceState parent_obj;
|
||||
/*< public >*/
|
||||
|
@ -28,9 +28,9 @@ typedef struct BCM2836State {
|
|||
char *cpu_type;
|
||||
uint32_t enabled_cpus;
|
||||
|
||||
ARMCPU cpus[BCM2836_NCPUS];
|
||||
ARMCPU cpus[BCM283X_NCPUS];
|
||||
BCM2836ControlState control;
|
||||
BCM2835PeripheralState peripherals;
|
||||
} BCM2836State;
|
||||
} BCM283XState;
|
||||
|
||||
#endif /* BCM2836_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue