qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] Moniter The Ram Access On QEMU


From: stefan weids
Subject: Re: [Qemu-devel] Moniter The Ram Access On QEMU
Date: Thu, 29 Mar 2012 18:51:15 +0800

Hi Chenwj,

Thanks for your kindly help. Would you mind give me more help?

Now I have some probem with the exception handle. I found the funciton "do_interrupt" in "target-arm/helper.c" and "gen_exception" in "target-arm/translate.c" seems to handle the exceptions. But I am comfused with those two functions, which function will do the really work about generating an exception. As my understanding, I think “do_interrupt” seems to do some preparations before enter exceptions just like operate some registers and accumulate the exception handler address. And "gen_exception" seems to do the read job to generate a exception. But I'm not sure.

Any comments are appreciated.

Thanks.

BR,
Stefan


在 2012年3月29日 上午11:28,陳韋任 <address@hidden>写道:
> Now I want to moniter memory access on QEMU (guest virtual or guest
> physical).
> I found that QEMU will translate arm instructions into TCG instructions,
> and the TCG instructions will be translated into X86 instructions.
>
> The function "tcg_out_op"(tcg/i386/tcg_target.c) will translate the TCG
> instructions into X86 instructions eventually.
> Does the case statement just like "OP_32_64(ld8u)" and
> "INDEX_op_qemu_ld8u".etc includes all memory access routines on X86 view.
> Is it proper for me to add some codes in TCG -> X86 to moniter the ram
> access on QEMU?

 TGC ops like qemu_ld/qemu_st is for address translations (guest virtual to
host virtual) in system mode, that's all I can tell.

Regards,
chenwj

--
Wei-Ren Chen (陳韋任)
Computer Systems Lab, Institute of Information Science,
Academia Sinica, Taiwan (R.O.C.)
Tel:886-2-2788-3799 #1667
Homepage: http://people.cs.nctu.edu.tw/~chenwj


reply via email to

[Prev in Thread] Current Thread [Next in Thread]