[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v3 05/25] tcg: Allow extra data to be attached t
From: |
Kevin O'Connor |
Subject: |
Re: [Qemu-devel] [PATCH v3 05/25] tcg: Allow extra data to be attached to insn_start |
Date: |
Wed, 23 Sep 2015 10:55:49 -0400 |
User-agent: |
Mutt/1.5.23 (2014-03-12) |
On Tue, Sep 22, 2015 at 01:24:47PM -0700, Richard Henderson wrote:
> With an eye toward having this data replace the gen_opc_* arrays
> that each target collects in order to enable restore_state_from_tb.
Hi Richard,
Instead of having each architecture front-end determine the constants
to be restored on an exception, have you considered having the tcg
liveness pass automatically detect them?
What I was thinking was if:
- each front-end stored each constant on every instruction using
regular "movi" ops
- tcg_liveness_analysis() tracked which global memory "sync" writes
are purely due to an op that can raise an exception
- then tcg_liveness_analysis() could remove "movi" instructions with
outputs that are needed only during an exception and place the
constant directly in the compressed table itself.
I'm curious if this was considered and if there is a reason it
wouldn't work well.
-Kevin
- [Qemu-devel] [PATCH v3 00/25] Do away with TB retranslation, Richard Henderson, 2015/09/22
- [Qemu-devel] [PATCH v3 01/25] tcg: Rename debug_insn_start to insn_start, Richard Henderson, 2015/09/22
- [Qemu-devel] [PATCH v3 02/25] target-*: Unconditionally emit tcg_gen_insn_start, Richard Henderson, 2015/09/22
- [Qemu-devel] [PATCH v3 03/25] target-*: Increment num_insns immediately after tcg_gen_insn_start, Richard Henderson, 2015/09/22
- [Qemu-devel] [PATCH v3 06/25] target-arm: Add condexec state to insn_start, Richard Henderson, 2015/09/22
- [Qemu-devel] [PATCH v3 05/25] tcg: Allow extra data to be attached to insn_start, Richard Henderson, 2015/09/22
- Re: [Qemu-devel] [PATCH v3 05/25] tcg: Allow extra data to be attached to insn_start,
Kevin O'Connor <=
- [Qemu-devel] [PATCH v3 04/25] target-*: Introduce and use cpu_breakpoint_test, Richard Henderson, 2015/09/22
- [Qemu-devel] [PATCH v3 09/25] target-s390x: Add cc_op state to insn_start, Richard Henderson, 2015/09/22
- [Qemu-devel] [PATCH v3 07/25] target-i386: Add cc_op state to insn_start, Richard Henderson, 2015/09/22
- [Qemu-devel] [PATCH v3 08/25] target-mips: Add delayed branch state to insn_start, Richard Henderson, 2015/09/22
- [Qemu-devel] [PATCH v3 10/25] target-sh4: Add flags state to insn_start, Richard Henderson, 2015/09/22
- [Qemu-devel] [PATCH v3 12/25] target-sparc: Tidy gen_branch_a interface, Richard Henderson, 2015/09/22