qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 03/23] PPC: Add CPU definitions for up to 32 guest C


From: Alexander Graf
Subject: [Qemu-devel] [PATCH 03/23] PPC: Add CPU definitions for up to 32 guest CPUs
Date: Thu, 21 Jul 2011 03:27:14 +0200

All guest CPUs need to be specified in the device trees. Since removing nodes
is easy with FDT, but adding nodes is not, we just put 32 CPU nodes into the
device tree and remove them later on init when not used.

Signed-off-by: Alexander Graf <address@hidden>
---
 pc-bios/mpc8544ds.dtb |  Bin 2277 -> 9699 bytes
 pc-bios/mpc8544ds.dts |  437 +++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 437 insertions(+), 0 deletions(-)

diff --git a/pc-bios/mpc8544ds.dtb b/pc-bios/mpc8544ds.dtb
index 
ae318b1fe83846cc2e133951a3666fcfcdf87f79..18667f87588e390018149e548468e1a119433eea
 100644
GIT binary patch
literal 9699
zcmds7&5zqe6dzMaDNxwu`<qBhB|address@hidden>i<xFW}%-B|S(9;e;qR5)=1
ziT|KSPWvbH#+3{AMM%AIhYRq2Z#<5ZW^MJD8EN8qpYwh*9>>o!zg_+JFCnh|DTLS;
z;_XAazC(4J>K0Wh&d<buS+|#doszml*C)_EIJ~|;8V*1GQVYO;address@hidden)`0v`
zs^|;84Bahh$BRNwNkt^f-lS`9SEW8W8Oy#dyGrJv7mbIbejl0(-QmT$dv)EX$>x*Y
z%n#Y;KDlK#;t{$yem3U-O1~Gy3k&Bky)E;@>phN7J299h<Oe#2J^(?*&^M^vt<nAp
zO~!YKRq21fLjMRM731%&CM)`^Mqi=!y&zQHG?GD$|0K14Rauz01w<@?zsITm&XoS)
zaaqDTV1em-9oG8%ZZ_8UTd`t%%vfwT)(={-0;e5Vhpkw#_U*trYQ_4PHCXprv39J%
z`e7^9%hq6}x0M=}b^kf|-?C%9e$<K;|LJyM^;)swUDFP%(^jl_C$j^q--`7qYq09K
zYBO)address@hidden(d_+hVSk_^ErY7HPtOHJ9&address@hidden;
z+k=%8*rs`X)*h^!z&2rh&K|6sz&2sUw>Tr;@MjYzum;PzXVVMzVC4k13G0jYVC4k1
z3F}MtVC4k12`j$28~KK>S59CJmUZj(6??F90^5Z3ReP{<0^5Z3HG8o71f^P!>+a##
zYw`_WubjX(&FdTXVC4k12`ly;address@hidden)&^tceaTqHX?{v5^qk>)_hf~K
address@hidden&address@hidden)UNMgc30>address@hidden)KI!Z?ehJ1uvQ;RoNh?o$=#_(Arp
z^*Nq%CYfpayvr==cV&m$$Z6l63uwlv^(r3xb`mw%8;z=5zQq0+i2$d<cLstAd_m`L
zs_#+7*p&S_xWY(}SGnt6?xdGG0x_9!ddQeQFHKE<;-O>8LVrBOsQ~gs1u;=^>Uj_5
z5yfD7m)ZuS9vghcLe)C>cGdA`dDcranYh#gi`X9D+$YQI%J0V{Gvh$soN-C>*d0gd
z)QjAC5k_GVN~O;-kcRFPF?Nnr)QdAd>fj#Fi~1P^9Va5wH<address@hidden;gNcpj
z2*$A6qFU>#?~<L7VH74cnslA7^sNCEE|_EZIVTwz{=m%g2l%V|address@hidden(ED
zcotS=h{^b+>rX^h#qdk}C7J23v|o~${z{!C*-C$A46C&OTg(U63*Oh^qvScasg3d<
zRq*;$??VCQURlxZQbq8l{9ziJ30uT*cIlt-FLW(w2lp;CjJ!*2(?9faA3=tS7!S_H
z9lC5$)%S=$OO;GOvJU;vIp1A;W~Mq{!{anN&18NnRB6uk;GtfL(?CYTPvguhLYyMm
address@hidden|-ZI_^mA4`gzqC`Z^GFuk}SBZ-u`6x*-1|m&YP-eb1jsHwqK!!dQe4
zaE#89n292c<&+K)xktJDW-b%|RL~>2M)^_d->address@hidden
z;RtX<address@hidden;{FbU*|address@hidden(Dve$vZk
qUJ}r-Vg1iM<>spJ^O}d)%iP#gH<wuqih~l`jVgk4UQhtVO#BbQm&eTj

delta 282
address@hidden>3j(nK5CZ{YE>address@hidden;ahZFdmp(
zAn(n1eDWUoXwgeRX)PdT0%B$$W&z^6lXVo7f${+gxa1EgD9JIrL(&4W3<RJ?Ffvb4
z3>Opu3NRuGN=?pCOlDM?d`3|nX!;jLYes{~21?S5&XawVURg2RMN-ZIWP_Y00mLw;
o0mT>tfqW4755yq541gHu9c6Du=E-}MgBhb23#c$oHd9>-0N>d!9smFU

diff --git a/pc-bios/mpc8544ds.dts b/pc-bios/mpc8544ds.dts
index a88b47c..b127992 100644
--- a/pc-bios/mpc8544ds.dts
+++ b/pc-bios/mpc8544ds.dts
@@ -36,6 +36,443 @@
                        timebase-frequency = <0>;
                        bus-frequency = <0>;
                        clock-frequency = <0>;
+                       status = "disabled";
+                       enable-method = "spin-table";
+                       cpu-release-addr = <0 0>;
+               };
+               PowerPC,address@hidden {
+                       device_type = "cpu";
+                       reg = <0x1>;
+                       d-cache-line-size = <32>;       // 32 bytes
+                       i-cache-line-size = <32>;       // 32 bytes
+                       d-cache-size = <0x8000>;                // L1, 32K
+                       i-cache-size = <0x8000>;                // L1, 32K
+                       timebase-frequency = <0>;
+                       bus-frequency = <0>;
+                       clock-frequency = <0>;
+                       status = "disabled";
+                       enable-method = "spin-table";
+                       cpu-release-addr = <0 0>;
+               };
+               PowerPC,address@hidden {
+                       device_type = "cpu";
+                       reg = <0x2>;
+                       d-cache-line-size = <32>;       // 32 bytes
+                       i-cache-line-size = <32>;       // 32 bytes
+                       d-cache-size = <0x8000>;                // L1, 32K
+                       i-cache-size = <0x8000>;                // L1, 32K
+                       timebase-frequency = <0>;
+                       bus-frequency = <0>;
+                       clock-frequency = <0>;
+                       status = "disabled";
+                       enable-method = "spin-table";
+                       cpu-release-addr = <0 0>;
+               };
+               PowerPC,address@hidden {
+                       device_type = "cpu";
+                       reg = <0x3>;
+                       d-cache-line-size = <32>;       // 32 bytes
+                       i-cache-line-size = <32>;       // 32 bytes
+                       d-cache-size = <0x8000>;                // L1, 32K
+                       i-cache-size = <0x8000>;                // L1, 32K
+                       timebase-frequency = <0>;
+                       bus-frequency = <0>;
+                       clock-frequency = <0>;
+                       status = "disabled";
+                       enable-method = "spin-table";
+                       cpu-release-addr = <0 0>;
+               };
+               PowerPC,address@hidden {
+                       device_type = "cpu";
+                       reg = <0x4>;
+                       d-cache-line-size = <32>;       // 32 bytes
+                       i-cache-line-size = <32>;       // 32 bytes
+                       d-cache-size = <0x8000>;                // L1, 32K
+                       i-cache-size = <0x8000>;                // L1, 32K
+                       timebase-frequency = <0>;
+                       bus-frequency = <0>;
+                       clock-frequency = <0>;
+                       status = "disabled";
+                       enable-method = "spin-table";
+                       cpu-release-addr = <0 0>;
+               };
+               PowerPC,address@hidden {
+                       device_type = "cpu";
+                       reg = <0x5>;
+                       d-cache-line-size = <32>;       // 32 bytes
+                       i-cache-line-size = <32>;       // 32 bytes
+                       d-cache-size = <0x8000>;                // L1, 32K
+                       i-cache-size = <0x8000>;                // L1, 32K
+                       timebase-frequency = <0>;
+                       bus-frequency = <0>;
+                       clock-frequency = <0>;
+                       status = "disabled";
+                       enable-method = "spin-table";
+                       cpu-release-addr = <0 0>;
+               };
+               PowerPC,address@hidden {
+                       device_type = "cpu";
+                       reg = <0x6>;
+                       d-cache-line-size = <32>;       // 32 bytes
+                       i-cache-line-size = <32>;       // 32 bytes
+                       d-cache-size = <0x8000>;                // L1, 32K
+                       i-cache-size = <0x8000>;                // L1, 32K
+                       timebase-frequency = <0>;
+                       bus-frequency = <0>;
+                       clock-frequency = <0>;
+                       status = "disabled";
+                       enable-method = "spin-table";
+                       cpu-release-addr = <0 0>;
+               };
+               PowerPC,address@hidden {
+                       device_type = "cpu";
+                       reg = <0x7>;
+                       d-cache-line-size = <32>;       // 32 bytes
+                       i-cache-line-size = <32>;       // 32 bytes
+                       d-cache-size = <0x8000>;                // L1, 32K
+                       i-cache-size = <0x8000>;                // L1, 32K
+                       timebase-frequency = <0>;
+                       bus-frequency = <0>;
+                       clock-frequency = <0>;
+                       status = "disabled";
+                       enable-method = "spin-table";
+                       cpu-release-addr = <0 0>;
+               };
+               PowerPC,address@hidden {
+                       device_type = "cpu";
+                       reg = <0x8>;
+                       d-cache-line-size = <32>;       // 32 bytes
+                       i-cache-line-size = <32>;       // 32 bytes
+                       d-cache-size = <0x8000>;                // L1, 32K
+                       i-cache-size = <0x8000>;                // L1, 32K
+                       timebase-frequency = <0>;
+                       bus-frequency = <0>;
+                       clock-frequency = <0>;
+                       status = "disabled";
+                       enable-method = "spin-table";
+                       cpu-release-addr = <0 0>;
+               };
+               PowerPC,address@hidden {
+                       device_type = "cpu";
+                       reg = <0x9>;
+                       d-cache-line-size = <32>;       // 32 bytes
+                       i-cache-line-size = <32>;       // 32 bytes
+                       d-cache-size = <0x8000>;                // L1, 32K
+                       i-cache-size = <0x8000>;                // L1, 32K
+                       timebase-frequency = <0>;
+                       bus-frequency = <0>;
+                       clock-frequency = <0>;
+                       status = "disabled";
+                       enable-method = "spin-table";
+                       cpu-release-addr = <0 0>;
+               };
+               PowerPC,address@hidden {
+                       device_type = "cpu";
+                       reg = <0xa>;
+                       d-cache-line-size = <32>;       // 32 bytes
+                       i-cache-line-size = <32>;       // 32 bytes
+                       d-cache-size = <0x8000>;                // L1, 32K
+                       i-cache-size = <0x8000>;                // L1, 32K
+                       timebase-frequency = <0>;
+                       bus-frequency = <0>;
+                       clock-frequency = <0>;
+                       status = "disabled";
+                       enable-method = "spin-table";
+                       cpu-release-addr = <0 0>;
+               };
+               PowerPC,address@hidden {
+                       device_type = "cpu";
+                       reg = <0xb>;
+                       d-cache-line-size = <32>;       // 32 bytes
+                       i-cache-line-size = <32>;       // 32 bytes
+                       d-cache-size = <0x8000>;                // L1, 32K
+                       i-cache-size = <0x8000>;                // L1, 32K
+                       timebase-frequency = <0>;
+                       bus-frequency = <0>;
+                       clock-frequency = <0>;
+                       status = "disabled";
+                       enable-method = "spin-table";
+                       cpu-release-addr = <0 0>;
+               };
+               PowerPC,address@hidden {
+                       device_type = "cpu";
+                       reg = <0xc>;
+                       d-cache-line-size = <32>;       // 32 bytes
+                       i-cache-line-size = <32>;       // 32 bytes
+                       d-cache-size = <0x8000>;                // L1, 32K
+                       i-cache-size = <0x8000>;                // L1, 32K
+                       timebase-frequency = <0>;
+                       bus-frequency = <0>;
+                       clock-frequency = <0>;
+                       status = "disabled";
+                       enable-method = "spin-table";
+                       cpu-release-addr = <0 0>;
+               };
+               PowerPC,address@hidden {
+                       device_type = "cpu";
+                       reg = <0xd>;
+                       d-cache-line-size = <32>;       // 32 bytes
+                       i-cache-line-size = <32>;       // 32 bytes
+                       d-cache-size = <0x8000>;                // L1, 32K
+                       i-cache-size = <0x8000>;                // L1, 32K
+                       timebase-frequency = <0>;
+                       bus-frequency = <0>;
+                       clock-frequency = <0>;
+                       status = "disabled";
+                       enable-method = "spin-table";
+                       cpu-release-addr = <0 0>;
+               };
+               PowerPC,address@hidden {
+                       device_type = "cpu";
+                       reg = <0xe>;
+                       d-cache-line-size = <32>;       // 32 bytes
+                       i-cache-line-size = <32>;       // 32 bytes
+                       d-cache-size = <0x8000>;                // L1, 32K
+                       i-cache-size = <0x8000>;                // L1, 32K
+                       timebase-frequency = <0>;
+                       bus-frequency = <0>;
+                       clock-frequency = <0>;
+                       status = "disabled";
+                       enable-method = "spin-table";
+                       cpu-release-addr = <0 0>;
+               };
+               PowerPC,address@hidden {
+                       device_type = "cpu";
+                       reg = <0xf>;
+                       d-cache-line-size = <32>;       // 32 bytes
+                       i-cache-line-size = <32>;       // 32 bytes
+                       d-cache-size = <0x8000>;                // L1, 32K
+                       i-cache-size = <0x8000>;                // L1, 32K
+                       timebase-frequency = <0>;
+                       bus-frequency = <0>;
+                       clock-frequency = <0>;
+                       status = "disabled";
+                       enable-method = "spin-table";
+                       cpu-release-addr = <0 0>;
+               };
+               PowerPC,address@hidden {
+                       device_type = "cpu";
+                       reg = <0x10>;
+                       d-cache-line-size = <32>;       // 32 bytes
+                       i-cache-line-size = <32>;       // 32 bytes
+                       d-cache-size = <0x8000>;                // L1, 32K
+                       i-cache-size = <0x8000>;                // L1, 32K
+                       timebase-frequency = <0>;
+                       bus-frequency = <0>;
+                       clock-frequency = <0>;
+                       status = "disabled";
+                       enable-method = "spin-table";
+                       cpu-release-addr = <0 0>;
+               };
+               PowerPC,address@hidden {
+                       device_type = "cpu";
+                       reg = <0x11>;
+                       d-cache-line-size = <32>;       // 32 bytes
+                       i-cache-line-size = <32>;       // 32 bytes
+                       d-cache-size = <0x8000>;                // L1, 32K
+                       i-cache-size = <0x8000>;                // L1, 32K
+                       timebase-frequency = <0>;
+                       bus-frequency = <0>;
+                       clock-frequency = <0>;
+                       status = "disabled";
+                       enable-method = "spin-table";
+                       cpu-release-addr = <0 0>;
+               };
+               PowerPC,address@hidden {
+                       device_type = "cpu";
+                       reg = <0x12>;
+                       d-cache-line-size = <32>;       // 32 bytes
+                       i-cache-line-size = <32>;       // 32 bytes
+                       d-cache-size = <0x8000>;                // L1, 32K
+                       i-cache-size = <0x8000>;                // L1, 32K
+                       timebase-frequency = <0>;
+                       bus-frequency = <0>;
+                       clock-frequency = <0>;
+                       status = "disabled";
+                       enable-method = "spin-table";
+                       cpu-release-addr = <0 0>;
+               };
+               PowerPC,address@hidden {
+                       device_type = "cpu";
+                       reg = <0x13>;
+                       d-cache-line-size = <32>;       // 32 bytes
+                       i-cache-line-size = <32>;       // 32 bytes
+                       d-cache-size = <0x8000>;                // L1, 32K
+                       i-cache-size = <0x8000>;                // L1, 32K
+                       timebase-frequency = <0>;
+                       bus-frequency = <0>;
+                       clock-frequency = <0>;
+                       status = "disabled";
+                       enable-method = "spin-table";
+                       cpu-release-addr = <0 0>;
+               };
+               PowerPC,address@hidden {
+                       device_type = "cpu";
+                       reg = <0x14>;
+                       d-cache-line-size = <32>;       // 32 bytes
+                       i-cache-line-size = <32>;       // 32 bytes
+                       d-cache-size = <0x8000>;                // L1, 32K
+                       i-cache-size = <0x8000>;                // L1, 32K
+                       timebase-frequency = <0>;
+                       bus-frequency = <0>;
+                       clock-frequency = <0>;
+                       status = "disabled";
+                       enable-method = "spin-table";
+                       cpu-release-addr = <0 0>;
+               };
+               PowerPC,address@hidden {
+                       device_type = "cpu";
+                       reg = <0x15>;
+                       d-cache-line-size = <32>;       // 32 bytes
+                       i-cache-line-size = <32>;       // 32 bytes
+                       d-cache-size = <0x8000>;                // L1, 32K
+                       i-cache-size = <0x8000>;                // L1, 32K
+                       timebase-frequency = <0>;
+                       bus-frequency = <0>;
+                       clock-frequency = <0>;
+                       status = "disabled";
+                       enable-method = "spin-table";
+                       cpu-release-addr = <0 0>;
+               };
+               PowerPC,address@hidden {
+                       device_type = "cpu";
+                       reg = <0x16>;
+                       d-cache-line-size = <32>;       // 32 bytes
+                       i-cache-line-size = <32>;       // 32 bytes
+                       d-cache-size = <0x8000>;                // L1, 32K
+                       i-cache-size = <0x8000>;                // L1, 32K
+                       timebase-frequency = <0>;
+                       bus-frequency = <0>;
+                       clock-frequency = <0>;
+                       status = "disabled";
+                       enable-method = "spin-table";
+                       cpu-release-addr = <0 0>;
+               };
+               PowerPC,address@hidden {
+                       device_type = "cpu";
+                       reg = <0x17>;
+                       d-cache-line-size = <32>;       // 32 bytes
+                       i-cache-line-size = <32>;       // 32 bytes
+                       d-cache-size = <0x8000>;                // L1, 32K
+                       i-cache-size = <0x8000>;                // L1, 32K
+                       timebase-frequency = <0>;
+                       bus-frequency = <0>;
+                       clock-frequency = <0>;
+                       status = "disabled";
+                       enable-method = "spin-table";
+                       cpu-release-addr = <0 0>;
+               };
+               PowerPC,address@hidden {
+                       device_type = "cpu";
+                       reg = <0x18>;
+                       d-cache-line-size = <32>;       // 32 bytes
+                       i-cache-line-size = <32>;       // 32 bytes
+                       d-cache-size = <0x8000>;                // L1, 32K
+                       i-cache-size = <0x8000>;                // L1, 32K
+                       timebase-frequency = <0>;
+                       bus-frequency = <0>;
+                       clock-frequency = <0>;
+                       status = "disabled";
+                       enable-method = "spin-table";
+                       cpu-release-addr = <0 0>;
+               };
+               PowerPC,address@hidden {
+                       device_type = "cpu";
+                       reg = <0x19>;
+                       d-cache-line-size = <32>;       // 32 bytes
+                       i-cache-line-size = <32>;       // 32 bytes
+                       d-cache-size = <0x8000>;                // L1, 32K
+                       i-cache-size = <0x8000>;                // L1, 32K
+                       timebase-frequency = <0>;
+                       bus-frequency = <0>;
+                       clock-frequency = <0>;
+                       status = "disabled";
+                       enable-method = "spin-table";
+                       cpu-release-addr = <0 0>;
+               };
+               PowerPC,address@hidden {
+                       device_type = "cpu";
+                       reg = <0x1a>;
+                       d-cache-line-size = <32>;       // 32 bytes
+                       i-cache-line-size = <32>;       // 32 bytes
+                       d-cache-size = <0x8000>;                // L1, 32K
+                       i-cache-size = <0x8000>;                // L1, 32K
+                       timebase-frequency = <0>;
+                       bus-frequency = <0>;
+                       clock-frequency = <0>;
+                       status = "disabled";
+                       enable-method = "spin-table";
+                       cpu-release-addr = <0 0>;
+               };
+               PowerPC,address@hidden {
+                       device_type = "cpu";
+                       reg = <0x1b>;
+                       d-cache-line-size = <32>;       // 32 bytes
+                       i-cache-line-size = <32>;       // 32 bytes
+                       d-cache-size = <0x8000>;                // L1, 32K
+                       i-cache-size = <0x8000>;                // L1, 32K
+                       timebase-frequency = <0>;
+                       bus-frequency = <0>;
+                       clock-frequency = <0>;
+                       status = "disabled";
+                       enable-method = "spin-table";
+                       cpu-release-addr = <0 0>;
+               };
+               PowerPC,address@hidden {
+                       device_type = "cpu";
+                       reg = <0x1c>;
+                       d-cache-line-size = <32>;       // 32 bytes
+                       i-cache-line-size = <32>;       // 32 bytes
+                       d-cache-size = <0x8000>;                // L1, 32K
+                       i-cache-size = <0x8000>;                // L1, 32K
+                       timebase-frequency = <0>;
+                       bus-frequency = <0>;
+                       clock-frequency = <0>;
+                       status = "disabled";
+                       enable-method = "spin-table";
+                       cpu-release-addr = <0 0>;
+               };
+               PowerPC,address@hidden {
+                       device_type = "cpu";
+                       reg = <0x1d>;
+                       d-cache-line-size = <32>;       // 32 bytes
+                       i-cache-line-size = <32>;       // 32 bytes
+                       d-cache-size = <0x8000>;                // L1, 32K
+                       i-cache-size = <0x8000>;                // L1, 32K
+                       timebase-frequency = <0>;
+                       bus-frequency = <0>;
+                       clock-frequency = <0>;
+                       status = "disabled";
+                       enable-method = "spin-table";
+                       cpu-release-addr = <0 0>;
+               };
+               PowerPC,address@hidden {
+                       device_type = "cpu";
+                       reg = <0x1e>;
+                       d-cache-line-size = <32>;       // 32 bytes
+                       i-cache-line-size = <32>;       // 32 bytes
+                       d-cache-size = <0x8000>;                // L1, 32K
+                       i-cache-size = <0x8000>;                // L1, 32K
+                       timebase-frequency = <0>;
+                       bus-frequency = <0>;
+                       clock-frequency = <0>;
+                       status = "disabled";
+                       enable-method = "spin-table";
+                       cpu-release-addr = <0 0>;
+               };
+               PowerPC,address@hidden {
+                       device_type = "cpu";
+                       reg = <0x1f>;
+                       d-cache-line-size = <32>;       // 32 bytes
+                       i-cache-line-size = <32>;       // 32 bytes
+                       d-cache-size = <0x8000>;                // L1, 32K
+                       i-cache-size = <0x8000>;                // L1, 32K
+                       timebase-frequency = <0>;
+                       bus-frequency = <0>;
+                       clock-frequency = <0>;
+                       status = "disabled";
+                       enable-method = "spin-table";
+                       cpu-release-addr = <0 0>;
                };
        };
 
-- 
1.6.0.2




reply via email to

[Prev in Thread] Current Thread [Next in Thread]