[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v4 04/16] cputlb: Use optimize_away in load/store_helpers
From: |
David Hildenbrand |
Subject: |
Re: [PATCH v4 04/16] cputlb: Use optimize_away in load/store_helpers |
Date: |
Tue, 24 Sep 2019 09:47:40 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 |
On 24.09.19 00:59, Richard Henderson wrote:
> Increase the current runtime assert to a compile-time assert.
>
> Signed-off-by: Richard Henderson <address@hidden>
> ---
> accel/tcg/cputlb.c | 5 ++---
> 1 file changed, 2 insertions(+), 3 deletions(-)
>
> diff --git a/accel/tcg/cputlb.c b/accel/tcg/cputlb.c
> index 2222b87764..e529af6d09 100644
> --- a/accel/tcg/cputlb.c
> +++ b/accel/tcg/cputlb.c
> @@ -1396,7 +1396,7 @@ load_helper(CPUArchState *env, target_ulong addr,
> TCGMemOpIdx oi,
> res = ldq_le_p(haddr);
> break;
> default:
> - g_assert_not_reached();
> + optimize_away();
> }
>
> return res;
> @@ -1680,8 +1680,7 @@ store_helper(CPUArchState *env, target_ulong addr,
> uint64_t val,
> stq_le_p(haddr, val);
> break;
> default:
> - g_assert_not_reached();
> - break;
> + optimize_away();
> }
> }
>
>
Reviewed-by: David Hildenbrand <address@hidden>
--
Thanks,
David / dhildenb
- [PATCH v4 01/16] exec: Use TARGET_PAGE_BITS_MIN for TLB flags, (continued)
- [PATCH v4 04/16] cputlb: Use optimize_away in load/store_helpers, Richard Henderson, 2019/09/23
- [PATCH v4 06/16] cputlb: Introduce TLB_BSWAP, Richard Henderson, 2019/09/23
- [PATCH v4 07/16] exec: Adjust notdirty tracing, Richard Henderson, 2019/09/23
- [PATCH v4 05/16] cputlb: Split out load/store_memop, Richard Henderson, 2019/09/23
- [PATCH v4 08/16] cputlb: Move ROM handling from I/O path to TLB path, Richard Henderson, 2019/09/23