how to open x2apic under bochs 2.6

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
miaowei
Member
Member
Posts: 84
Joined: Wed Dec 18, 2013 9:10 am

how to open x2apic under bochs 2.6

Post by miaowei »

I compiled from source code v2.6 under that 'x2apic' is included by default,and i use the default pre-defined cpu:
cpu: model = core2_penryn_t9600 ...
The problem is that x2apic is not supported, i have tried other cpu parameters
------------------------------
# corei5_lynnfield_750 Intel(R) Core(TM) i5 750 (Lynnfield)
# corei5_arrandale_m520 Intel(R) Core(TM) i5 M 520 (Arrandale)
# corei7_sandy_bridge_2600k Intel(R) Core(TM) i7-2600K (Sandy Bridge)
# corei7_ivy_bridge_3770k Intel(R) Core(TM) i7-3770K CPU (Ivy Bridge)
-----------------------------
They done't support xapic, let alone x2apic.

I also tried this way:turn off model option, uncomment the following lines:
------------------------------
#cpuid: x86_64=1, mmx=1, sep=1, sse=sse4_2, apic=x2apic, aes=1, movbe=1, xsave=1
#cpuid: family=6, model=0x1a, stepping=5
------------------------------
But it doesn't work, either.
Any one familer with smp under bochs, i want to test x2apic.
Thanks!
miaowei
Member
Member
Posts: 84
Joined: Wed Dec 18, 2013 9:10 am

Re: how to open x2apic under bochs 2.6

Post by miaowei »

OK,the last approach works at last.
But i don't know why it didn't work when i first had the first try.
Post Reply