summaryrefslogtreecommitdiffstats
path: root/target-i386/cpu.h
diff options
context:
space:
mode:
authorEduardo Habkost <ehabkost@redhat.com>2013-01-22 18:25:04 -0200
committerAndreas Färber <afaerber@suse.de>2013-01-27 14:34:27 +0100
commitcb41bad3c2c7d82405cbe057c944ed4fd176d82a (patch)
tree5cfa51d80a7db52baab50723b37ff14e9b08ca57 /target-i386/cpu.h
parent83b17af5e619abdf11721826b08fa4f30e9dc4ee (diff)
downloadhqemu-cb41bad3c2c7d82405cbe057c944ed4fd176d82a.zip
hqemu-cb41bad3c2c7d82405cbe057c944ed4fd176d82a.tar.gz
target-i386: Introduce x86_cpu_apic_id_from_index() function
This function will be used by both the CPU initialization code and the fw_cfg table initialization code. Later this function will be updated to generate APIC IDs according to the CPU topology. Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'target-i386/cpu.h')
-rw-r--r--target-i386/cpu.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/target-i386/cpu.h b/target-i386/cpu.h
index 9d4fcf9..9442f08 100644
--- a/target-i386/cpu.h
+++ b/target-i386/cpu.h
@@ -1255,4 +1255,6 @@ void disable_kvm_pv_eoi(void);
/* Return name of 32-bit register, from a R_* constant */
const char *get_register_name_32(unsigned int reg);
+uint32_t x86_cpu_apic_id_from_index(unsigned int cpu_index);
+
#endif /* CPU_I386_H */
OpenPOWER on IntegriCloud