qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] Bad icount read when running qemu-system-ppc64 and mfsp


From: Emilio G. Cota
Subject: Re: [Qemu-devel] Bad icount read when running qemu-system-ppc64 and mfspr atbu guest instruction
Date: Wed, 11 Apr 2018 18:17:42 -0400
User-agent: Mutt/1.5.24 (2015-08-30)

On Wed, Apr 11, 2018 at 18:18:18 +0000, Darrell Leinwand wrote:
> Hi,
> 
> When I enable icount using an e5500 core I get an exit with “Bad icount read” 
> when the guest software executes a load atbu command.
> 
> It looks like in qemu/accel/tcg/cpu_exec.c:166 sets can_do_io false when 
> using icount.
>     cpu->can_do_io = !use_icount;
>     ret = tcg_qemu_tb_exec(env, tb_ptr);
>     cpu->can_do_io = 1;
> 
> Since can_do_io is set to false there and the cpu_get_icount_raw() function 
> checks that flag qemu/cpus.c:260:
>         if (!cpu->can_do_io) {
>             fprintf(stderr, "Bad icount read\n");
>             exit(1);
>         }
> 
> The load_atbu function will always fail. I commented out the !use_icount and 
> set it to a 1 in cpu_exec.c and it continues and seems to run normally, but I 
> am not sure what side effects while running icount that could have since it 
> may allow actual IO to occur while translation is happening.

Can you reproduce with the current master, i.e. 38e83a71d02 ?
A few patches have very recently been merged that might fix
your problem.

If master is still broken and it used to work in the past for you,
it would be useful if you could bisect this to point out the commit
that broke this.

Thanks,

                Emilio



reply via email to

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