diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2013-11-22 17:17:12 +0000 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2013-12-10 13:28:30 +0000 |
commit | 54d3e3f52e5d540766af35f99fe0fa415c40cac2 (patch) | |
tree | 08de6a58f3566a451c6df5ca0d41decdce32aaf7 /target-arm/cpu-qom.h | |
parent | a22ec1e6825c7a00d25648027d08d4a332c29c84 (diff) | |
download | hqemu-54d3e3f52e5d540766af35f99fe0fa415c40cac2.zip hqemu-54d3e3f52e5d540766af35f99fe0fa415c40cac2.tar.gz |
target-arm: Add ARMCPU field for Linux device-tree 'compatible' string
Linux requires device tree CPU nodes to include a 'compatible'
string describing the CPU. Add a field in the ARMCPU struct for
this so that boards which construct a device tree can insert
the correct CPU nodes.
Note that there is currently no officially specified 'compatible'
string for the TI925T, Cortex-M3 or SA1110 CPUs.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Christoffer Dall <christoffer.dall@linaro.org>
Message-id: 1385140638-10444-6-git-send-email-peter.maydell@linaro.org
Diffstat (limited to 'target-arm/cpu-qom.h')
-rw-r--r-- | target-arm/cpu-qom.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/target-arm/cpu-qom.h b/target-arm/cpu-qom.h index b55306a..cbb9eec 100644 --- a/target-arm/cpu-qom.h +++ b/target-arm/cpu-qom.h @@ -91,6 +91,9 @@ typedef struct ARMCPU { /* GPIO outputs for generic timer */ qemu_irq gt_timer_outputs[NUM_GTIMERS]; + /* 'compatible' string for this CPU for Linux device trees */ + const char *dtb_compatible; + /* The instance init functions for implementation-specific subclasses * set these fields to specify the implementation-dependent values of * various constant registers and reset values of non-constant |