[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v3 0/4] target-arm: Handle tagged addresses when
From: |
Peter Maydell |
Subject: |
Re: [Qemu-devel] [PATCH v3 0/4] target-arm: Handle tagged addresses when loading PC |
Date: |
Thu, 13 Oct 2016 22:14:57 +0100 |
On 13 October 2016 at 20:09, Tom Hanson <address@hidden> wrote:
> Looking at arm_cpu_do_interrupt_aarch64() and the ARM spec, the
> new PC value is always an offset from the appropriate VBAR. The
> only place I can find the the VBAR being set is at boot time
> (i.e. UEFI).
Any guest system software can set the VBAR any time it likes.
In practice it gets set once at bootup and then left that way
because there's no good reason to move it aronud.
> Can the boot code use a tagged pointer to specify the VBAR?
Yes, exactly, you can have a tagged pointer in the VBAR.
The point is that the spec says that when the value is read
out of the VBAR the tag bits must handled appropriately:
check the pseudocode AArch64.TakeException(), which calls
BranchTo(VBAR[] + vect_offset, ...)
and BranchTo() handles the tag bits (in the same way as
any other 'branch to arbitrary new PC value').
thanks
-- PMM
- [Qemu-devel] [PATCH v3 0/4] target-arm: Handle tagged addresses when loading PC, Thomas Hanson, 2016/10/12
- [Qemu-devel] [PATCH v3 1/4] target-arm: Infrastucture changes to enable handling of tagged address loading into PC, Thomas Hanson, 2016/10/12
- [Qemu-devel] [PATCH v3 3/4] target-arm: Comments to mark location of pending work for 56 bit addresses, Thomas Hanson, 2016/10/12
- [Qemu-devel] [PATCH v3 4/4] target-arm: Comments added to identify cases in a switch, Thomas Hanson, 2016/10/12
- [Qemu-devel] [PATCH v3 2/4] target-arm: Code changes to implement overwrite of tag field on PC load, Thomas Hanson, 2016/10/12
- Re: [Qemu-devel] [PATCH v3 0/4] target-arm: Handle tagged addresses when loading PC, Tom Hanson, 2016/10/13
- Re: [Qemu-devel] [PATCH v3 0/4] target-arm: Handle tagged addresses when loading PC,
Peter Maydell <=
- Re: [Qemu-devel] [PATCH v3 0/4] target-arm: Handle tagged addresses when loading PC, Peter Maydell, 2016/10/17