[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [Qemu-arm] [PATCH 6/6] target/arm: Allow execution from
From: |
Philippe Mathieu-Daudé |
Subject: |
Re: [Qemu-devel] [Qemu-arm] [PATCH 6/6] target/arm: Allow execution from small regions |
Date: |
Wed, 11 Jul 2018 12:09:25 -0300 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.0 |
On 07/10/2018 01:00 PM, Peter Maydell wrote:
> Now that we have full support for small regions, including execution,
> we can remove the workarounds where we marked all small regions as
> non-executable for the M-profile MPU and SAU.
>
> Signed-off-by: Peter Maydell <address@hidden>
Reviewed-by: Philippe Mathieu-Daudé <address@hidden>
> ---
> target/arm/helper.c | 23 -----------------------
> 1 file changed, 23 deletions(-)
>
> diff --git a/target/arm/helper.c b/target/arm/helper.c
> index a2ac96084e7..ed96e6c02fb 100644
> --- a/target/arm/helper.c
> +++ b/target/arm/helper.c
> @@ -9784,17 +9784,6 @@ static bool get_phys_addr_pmsav7(CPUARMState *env,
> uint32_t address,
>
> fi->type = ARMFault_Permission;
> fi->level = 1;
> - /*
> - * Core QEMU code can't handle execution from small pages yet, so
> - * don't try it. This way we'll get an MPU exception, rather than
> - * eventually causing QEMU to exit in get_page_addr_code().
> - */
> - if (*page_size < TARGET_PAGE_SIZE && (*prot & PAGE_EXEC)) {
> - qemu_log_mask(LOG_UNIMP,
> - "MPU: No support for execution from regions "
> - "smaller than 1K\n");
> - *prot &= ~PAGE_EXEC;
> - }
> return !(*prot & (1 << access_type));
> }
>
> @@ -10014,18 +10003,6 @@ static bool pmsav8_mpu_lookup(CPUARMState *env,
> uint32_t address,
>
> fi->type = ARMFault_Permission;
> fi->level = 1;
> - /*
> - * Core QEMU code can't handle execution from small pages yet, so
> - * don't try it. This means any attempted execution will generate
> - * an MPU exception, rather than eventually causing QEMU to exit in
> - * get_page_addr_code().
> - */
> - if (*is_subpage && (*prot & PAGE_EXEC)) {
> - qemu_log_mask(LOG_UNIMP,
> - "MPU: No support for execution from regions "
> - "smaller than 1K\n");
> - *prot &= ~PAGE_EXEC;
> - }
> return !(*prot & (1 << access_type));
> }
>
>
- [Qemu-devel] [PATCH 1/6] accel/tcg: Pass read access type through to io_readx(), (continued)
- [Qemu-devel] [PATCH 1/6] accel/tcg: Pass read access type through to io_readx(), Peter Maydell, 2018/07/10
- [Qemu-devel] [PATCH 3/6] accel/tcg: Handle get_page_addr_code() returning -1 in tb_check_watchpoint(), Peter Maydell, 2018/07/10
- [Qemu-devel] [PATCH 4/6] accel/tcg: tb_gen_code(): Create single-insn TB for execution from non-RAM, Peter Maydell, 2018/07/10
- [Qemu-devel] [PATCH 6/6] target/arm: Allow execution from small regions, Peter Maydell, 2018/07/10
- [Qemu-devel] [PATCH 5/6] accel/tcg: Return -1 for execution from MMIO regions in get_page_addr_code(), Peter Maydell, 2018/07/10
- Re: [Qemu-devel] [Qemu-arm] [PATCH 0/6] accel/tcg: Support execution from MMIO and small MMU regions, Philippe Mathieu-Daudé, 2018/07/11
- Re: [Qemu-devel] [PATCH 0/6] accel/tcg: Support execution from MMIO and small MMU regions, KONRAD Frederic, 2018/07/16
- Re: [Qemu-devel] [PATCH 0/6] accel/tcg: Support execution from MMIO and small MMU regions, Cédric Le Goater, 2018/07/23