[Qemu-devel] [PATCH] log disasm insns when nochain + in_asm enabled

2015-11-03 Thread Sergey Smolov
for this task to be implemented. Sergey Smolov (1): log disasm insns when nochain + in_asm enabled cpu-exec.c| 20 disas.c | 18 +- include/disas/disas.h | 14 ++ qemu-log.c|2 +- 4 files changed,

[Qemu-devel] [PATCH] log disasm insns when nochain + in_asm enabled

2015-11-03 Thread Sergey Smolov
When 'nochain' and 'in_asm' debug options are enabled, disassembled forms of all executed translation blocks (TB) are printed to log. For this task a mapping between disassembled instructions and executed TBs is created and used. Signed-off-by: Sergey Smolov --- cpu-exec

Re: [Qemu-devel] QEMU+Aarch64: in_asm log skips instructions of loop-programs

2015-11-03 Thread Sergey Smolov
Hi Christopher, I've send my patch to the mailing list. Sorry for the great delay in answers. 18.09.2015 18:26, Christopher Covington пишет: On 09/18/2015 04:15 AM, Sergey Smolov wrote: Hi Christopher, 18.09.2015 02:02, Christopher Covington пишет: Hi Sergey, On 09/04/2015 12:

[Qemu-devel] log every write to register

2015-11-03 Thread Sergey Smolov
accomplish such a task? If yes, where shall I find functions that implement "writing to register" functionality? Thanks in advance! Sincerely yours, Sergey Smolov

Re: [Qemu-devel] log every write to register

2015-11-17 Thread Sergey Smolov
03.11.2015 20:29, Peter Crosthwaite пишет: On Tue, Nov 3, 2015 at 8:14 AM, Peter Maydell wrote: On 3 November 2015 at 13:17, Sergey Smolov wrote: I have a collection of ARMv8 register names. I need to add special logging mode to QEMU so that every time it is enabled, every write access to

Re: [Qemu-devel] QEMU+Aarch64: in_asm log skips instructions of loop-programs

2015-09-18 Thread Sergey Smolov
Hi Christopher, 18.09.2015 02:02, Christopher Covington пишет: Hi Sergey, On 09/04/2015 12:38 PM, Sergey Smolov wrote: 03.09.2015 19:35, Peter Maydell пишет: On 3 September 2015 at 15:31, Sergey Smolov wrote: Do you think it is possible to implement another QEMU logger which will make a

Re: [Qemu-devel] QEMU+Aarch64: in_asm log skips instructions of loop-programs

2015-09-03 Thread Sergey Smolov
03.09.2015 10:33, Peter Maydell пишет: On 3 September 2015 at 06:27, Sergey Smolov wrote: I mean that in this example QEMU does not write to log "intermediate" SUBS instructions which appear in loop-unrolling process. For me it woulb be ok if QEMU generate the following in_asm log:

[Qemu-devel] Fwd: Re: QEMU+Aarch64: in_asm log skips instructions of loop-programs

2015-09-03 Thread Sergey Smolov
Перенаправленное сообщение Тема: Re: [Qemu-devel] QEMU+Aarch64: in_asm log skips instructions of loop-programs Дата: Thu, 03 Sep 2015 18:22:16 +0300 От: Sergey Smolov Кому: Richard Henderson Richard Henderson писал 2015-09-03 17:28: On 09/02/2015 11:33 PM

Re: [Qemu-devel] QEMU+Aarch64: in_asm log skips instructions of loop-programs

2015-09-04 Thread Sergey Smolov
03.09.2015 19:35, Peter Maydell пишет: On 3 September 2015 at 15:31, Sergey Smolov wrote: Do you think it is possible to implement another QEMU logger which will make a record for every executed block, Yes (this would just need to disable the TB linking optimisation, which we've disc

Re: [Qemu-devel] QEMU+Aarch64: in_asm log skips instructions of loop-programs

2015-09-04 Thread Sergey Smolov
03.09.2015 19:35, Peter Maydell пишет: On 3 September 2015 at 15:31, Sergey Smolov wrote: Do you think it is possible to implement another QEMU logger which will make a record for every executed block, Yes (this would just need to disable the TB linking optimisation, which we've disc

Re: [Qemu-devel] QEMU+Aarch64: in_asm log skips instructions of loop-programs

2015-09-02 Thread Sergey Smolov
02.09.2015 16:55, Sergey Smolov пишет: Hello, List! I've found that while running Aarch64 assembler programs on QEMU with "-d in_asm" option enabled I receive not complete logs. For example, on the following assembler program which contains a loop : [assembler] .globl _

[Qemu-devel] QEMU+Aarch64: in_asm log skips instructions of loop-programs

2015-09-02 Thread Sergey Smolov
structions when generates "in_asm" log. How to eliminate this? Thanks in advance! Sincerely yours, Sergey Smolov

Re: [Qemu-devel] QEMU+Aarch64: in_asm log skips instructions of loop-programs

2015-09-02 Thread Sergey Smolov
Peter Maydell писал 2015-09-02 19:39: On 2 September 2015 at 14:50, Sergey Smolov wrote: 02.09.2015 16:55, Sergey Smolov пишет: It seems that QEMU skips some internal instructions when generates "in_asm" log. How to eliminate this? It might help if you said what you thought w

[Qemu-devel] log every write to Aarch64 regs

2016-11-22 Thread Sergey Smolov
yours, Sergey Smolov

[Qemu-devel] Concerning " [PULL 6/6] curses: Use cursesw instead of curses"

2016-11-07 Thread Sergey Smolov
configure with --disable-werror to bypass this check. I've attached a config.log to this e-mail. Thanks in advance! -- Sincerely yours, Sergey Smolov # QEMU configure log Пн. нояб. 7 19:12:21 MSK 2016 # Configured with: './configure' '--target-list=aarch64-softm

Re: [Qemu-devel] Concerning " [PULL 6/6] curses: Use cursesw instead of curses"

2016-11-08 Thread Sergey Smolov
On 08.11.2016 19:49, Stefan Hajnoczi wrote: On Tue, Nov 08, 2016 at 10:40:20AM +0300, Sergey Smolov wrote: Dear List! I've encountered the same problem as was discussed in this thread: https://lists.gnu.org/archive/html/qemu-devel/2016-10/msg07898.html Does anybody succeeded in solvin

Re: [Qemu-devel] Concerning " [PULL 6/6] curses: Use cursesw instead of curses"

2016-11-08 Thread Sergey Smolov
On 08.11.2016 20:28, Cornelia Huck wrote: On Tue, 8 Nov 2016 16:49:51 + Stefan Hajnoczi wrote: On Tue, Nov 08, 2016 at 10:40:20AM +0300, Sergey Smolov wrote: Dear List! I've encountered the same problem as was discussed in this thread: https://lists.gnu.org/archive/html/qemu-devel

Re: [Qemu-devel] [PATCH] Fix legacy ncurses detection.

2016-11-09 Thread Sergey Smolov
S if test "$curses_found" = "yes" ; then It works, thank you! Is it planned to publish this patch into master? -- Thanks, Sergey Smolov

[Qemu-devel] EL2\EL3 support for Aarch64

2017-05-18 Thread Sergey Smolov
Hello, List! Could you tell me, what is the current state for EL2\EL3 (Aarch64)? Whether they are fully supported, or not? Am I need to use any command line options to enable them for Aarch64 assembler programs simulation? Thanks in advance! -- Sincerely yours, Sergey Smolov Institute for

[Qemu-devel] MIPS 'move' insn emulation

2017-09-12 Thread Sergey Smolov
it possible to extract this value somehow? I've tried the following constructions: GET_TCG_I32(cpu_gpr[rs]) ((CPUMIPSState *)tcg_ctx.cpu)->active_tc.gpr[rs] but they do not provide me the correct value. Could you help me in solving this problem? Thanks in advance, Sergey Smolov

Re: [Qemu-devel] MIPS 'move' insn emulation

2017-09-12 Thread Sergey Smolov
On 12.09.2017 17:32, Peter Maydell wrote: On 12 September 2017 at 15:14, Sergey Smolov wrote: I've the code I probably need to modify in target/mips/translate.c: [code] static void gen_logic(DisasContext *ctx, uint32_t opc, int rd, int rs, int rt) { ... } else i

Re: [Qemu-devel] MIPS 'move' insn emulation

2017-09-13 Thread Sergey Smolov
On 12.09.2017 18:06, Peter Maydell wrote: On 12 September 2017 at 15:53, Sergey Smolov wrote: Generally speaking, is it possible at "run time" to detect write accesses to MIPS GPR registers? If true, which parts of code should I look in? We don't currently support tracing at

Re: [Qemu-devel] MIPS 'move' insn emulation

2017-09-14 Thread Sergey Smolov
ips/translate.c:2913:13: warning: passing argument 2 of ‘gen_helper_trace_reg_access’ makes pointer from integer without a cast [enabled by default] What am I missing here? -- Sincerely yours, Sergey Smolov

Re: [Qemu-devel] MIPS 'move' insn emulation

2017-09-14 Thread Sergey Smolov
and $9 registers here. PS: there's no point passing the env pointer into the function if you're not going to use it... I thought that I need to pass env pointer to helper function because of some convention. Again, thank you for the note. -- Sincerely yours, Sergey Smolov

Re: [Qemu-devel] MIPS 'move' insn emulation

2017-09-14 Thread Sergey Smolov
On 14.09.2017 17:23, Yongbok Kim wrote: On 14/09/2017 15:16, Sergey Smolov wrote: On 14.09.2017 16:58, Peter Maydell wrote: At translate time it is generating some extra code which at runtime will call the helper_trace_reg_access() function, passing it the values in the registers at this

[Qemu-devel] emulation cycle number implementation

2017-09-07 Thread Sergey Smolov
s number should be an integer increasing value that is similar to real hardware clock. How to implement this in QEMU? May QEMU timers be helpful in solving such a problem? Thanks in advance. -- Sincerely yours, Sergey Smolov

Re: [Qemu-devel] emulation cycle number implementation

2017-09-08 Thread Sergey Smolov
On 07.09.2017 19:37, Peter Maydell wrote: On 7 September 2017 at 17:30, Sergey Smolov wrote: I'm running MIPS assembler programs on QEMU. I need to log some events that happen through emulation (writes to some registers, for example). When an event happens, I need to print not only the