Re: [Qemu-discuss] How to check cpu running mode?

2018-08-20 Thread krishnaLee
Jakob, I know very few things about write low level asm-code and compile it,I should collect more informations if I want to continue, may be I should using some debugger to observe the various registers and avoid writing this code. but thank you very much, krishna. At 2018-08-21 07:

Re: [Qemu-discuss] How to check cpu running mode?

2018-08-20 Thread Jakob Bohm
On 18/08/2018 05:59, krishnaLee wrote: Jakob: I need more help,just now,I'm trigger a page fault in 64-bit mode,see this picture: https://github.com/krishna116/test/blob/master/test-qemu-in-64bit-mode.png so I can write some system mode code accroding to this information, but my follow code se

Re: [Qemu-discuss] How to check cpu running mode?

2018-08-17 Thread krishnaLee
Jakob: I need more help,just now,I'm trigger a page fault in 64-bit mode,see this picture: https://github.com/krishna116/test/blob/master/test-qemu-in-64bit-mode.png so I can write some system mode code accroding to this information, but my follow code seems can't get the right answer, is my alg

Re: [Qemu-discuss] How to check cpu running mode?

2018-08-17 Thread krishnaLee
it looks excellent code,although I'm not very familiar with ASM code,I will dig into it, thank you,Jakob! by krishna. At 2018-08-17 22:00:40, "Jakob Bohm" wrote: >On 17/08/2018 15:32, Jakob Bohm wrote: >> On 17/08/2018 12:27, krishnaLee wrote: >>> Hi, >>> as to my known,intel x64 cpu c

Re: [Qemu-discuss] How to check cpu running mode?

2018-08-17 Thread Jakob Bohm
On 17/08/2018 15:32, Jakob Bohm wrote: On 17/08/2018 12:27, krishnaLee wrote: Hi, as to my known,intel  x64 cpu can work at 64-bit mode or Compatibility mode, so thery are two kind of  x64-mode, I find QEMU can run at each of them, I want  to write som C code to check it if it is running at 64

Re: [Qemu-discuss] How to check cpu running mode?

2018-08-17 Thread Jakob Bohm
On 17/08/2018 12:27, krishnaLee wrote: Hi, as to my known,intel x64 cpu can work at 64-bit mode or Compatibility mode, so thery are two kind of x64-mode, I find QEMU can run at each of them, I want to write som C code to check it if it is running at 64-bit mode or Compatibility mode, what's t

[Qemu-discuss] How to check cpu running mode?

2018-08-17 Thread krishnaLee
Hi, as to my known,intel x64 cpu can work at 64-bit mode or Compatibility mode, so thery are two kind of x64-mode, I find QEMU can run at each of them, I want to write som C code to check it if it is running at 64-bit mode or Compatibility mode, what's the key? thank you, by krishna.