Summary: Fix device tree creation for domU for js20/1 under SLOF
The device tree of dom0 on js20 and js21 with SLOF does not have the cpus'
d and i cache sets nor does it have the l2 cache subdirectory.
Signed-off-by: Maria Butrico <butrico@xxxxxxxxxxxxxx>
diff -r 326e6736d92b tools/python/xen/xend/FlatDeviceTree.py
--- a/tools/python/xen/xend/FlatDeviceTree.py Mon Aug 21 10:04:37 2006 -0400
+++ b/tools/python/xen/xend/FlatDeviceTree.py Mon Aug 21 14:38:46 2006 -0400
@@ -245,24 +245,23 @@ def build(imghandler):
cpu.addprop('reg', i)
cpu.addprop('cpu#', i)
cpu.addprop('device_type', 'cpu\0')
- for prop in ('d-cache-size', 'd-cache-line-size', 'd-cache-sets',
- 'i-cache-size', 'i-cache-line-size', 'i-cache-sets',
- 'clock-frequency', 'timebase-frequency',
- 'timebases-in-sync'):
+ for prop in ('d-cache-size', 'd-cache-line-size',
+ 'i-cache-size', 'i-cache-line-size',
+ 'clock-frequency', 'timebase-frequency'):
val = _getprop(os.path.join('cpus/PowerPC,970@0', prop))
cpu.addprop(prop, val)
# XXX 64-bit, more
# L2 cache
- l2 = cpu.addnode('l2-cache')
- l2.addprop('name', 'l2-cache\0')
- l2.addprop('device_type', 'cache\0')
- for prop in ('d-cache-size', 'd-cache-sets',
- 'i-cache-size', 'i-cache-sets',
- 'cache-unified'):
- fullprop = os.path.join('cpus/PowerPC,970@%d/l2-cache' % i, prop)
- val = _getprop(fullprop)
- l2.addprop(prop, val)
+ #l2 = cpu.addnode('l2-cache')
+ #l2.addprop('name', 'l2-cache\0')
+ #l2.addprop('device_type', 'cache\0')
+ #for prop in ('d-cache-size', 'd-cache-sets',
+ # 'i-cache-size', 'i-cache-sets',
+ # 'cache-unified'):
+ # fullprop = os.path.join('cpus/PowerPC,970@%d/l2-cache' % i, prop)
+ # val = _getprop(fullprop)
+ # l2.addprop(prop, val)
# set default CPU
if cpu0 == None:
_______________________________________________
Xen-ppc-devel mailing list
Xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ppc-devel
|