+#!/usr/bin/python
+
+# Copyright (c) 2003 Intel Corporation
+# All rights reserved.
+#
+# Copyright (c) 2004-2006 The Trustees of Princeton University
+# All rights reserved.
+
+
import string
MINHW = 0x001
AMD = 0x010
NUMA = 0x020
GEODE = 0x040
+BADHD = 0x080
LAST = 0x100
+RAWDISK = 0x200
+NAT = 0x400
modeloptions = {'smp':SMP,
'x64':X86_64,
'a32':AMD,
'numa':NUMA,
'geode':GEODE,
- 'minhw':MINHW}
+ 'badhd':BADHD,
+ 'minhw':MINHW,
+ 'rawdisk':RAWDISK,
+ 'nat':NAT}
def Get(model):
modelinfo = string.split(model,'/')
options = options | modeloptions.get(info,0)
return options
+