[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PULL 53/85] target/hppa: Implement IDTLBT, IITLBT
|
From: |
Peter Maydell |
|
Subject: |
Re: [PULL 53/85] target/hppa: Implement IDTLBT, IITLBT |
|
Date: |
Thu, 9 Nov 2023 15:13:38 +0000 |
On Tue, 7 Nov 2023 at 03:08, Richard Henderson
<richard.henderson@linaro.org> wrote:
>
> Rename the existing insert tlb helpers to emphasize that they
> are for pa1.1 cpus. Implement a combined i/d tlb for pa2.0.
> Still missing is the new 'P' tlb bit.
>
> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
>
> +static void itlbt_pa20(CPUHPPAState *env, target_ureg r1,
> + target_ureg r2, vaddr va_b)
> +{
> + HPPATLBEntry *ent;
> + vaddr va_e;
> + uint64_t va_size;
> + int mask_shift;
> +
> + mask_shift = 2 * (r1 & 0xf);
> + va_size = TARGET_PAGE_SIZE << mask_shift;
Coverity suggests this needs a cast too, for the same reason:
shift of a 32-bit value by a shift that might overflow.
(CID 1523908)
> + va_b &= -va_size;
> + va_e = va_b + va_size - 1;
> +
thanks
-- PMM
- [PULL 44/85] target/hppa: Decode d for cmpb instructions, (continued)
- [PULL 44/85] target/hppa: Decode d for cmpb instructions, Richard Henderson, 2023/11/06
- [PULL 41/85] target/hppa: Decode d for add instructions, Richard Henderson, 2023/11/06
- [PULL 43/85] target/hppa: Decode d for bb instructions, Richard Henderson, 2023/11/06
- [PULL 46/85] target/hppa: Decode ADDB double-word, Richard Henderson, 2023/11/06
- [PULL 47/85] target/hppa: Implement LDD, LDCD, LDDA, STD, STDA, Richard Henderson, 2023/11/06
- [PULL 48/85] target/hppa: Implement DEPD, DEPDI, Richard Henderson, 2023/11/06
- [PULL 51/85] target/hppa: Implement CLRBTS, POPBTS, PUSHBTS, PUSHNOM, Richard Henderson, 2023/11/06
- [PULL 50/85] target/hppa: Implement SHRPD, Richard Henderson, 2023/11/06
- [PULL 52/85] target/hppa: Implement STDBY, Richard Henderson, 2023/11/06
- [PULL 53/85] target/hppa: Implement IDTLBT, IITLBT, Richard Henderson, 2023/11/06
- Re: [PULL 53/85] target/hppa: Implement IDTLBT, IITLBT,
Peter Maydell <=
- [PULL 54/85] hw/hppa: Use uint32_t instead of target_ureg, Richard Henderson, 2023/11/06
- [PULL 57/85] target/hppa: Remove remaining TARGET_REGISTER_BITS redirections, Richard Henderson, 2023/11/06
- [PULL 55/85] target/hppa: Remove TARGET_REGISTER_BITS, Richard Henderson, 2023/11/06
- [PULL 45/85] target/hppa: Decode CMPIB double-word, Richard Henderson, 2023/11/06
- [PULL 49/85] target/hppa: Implement EXTRD, Richard Henderson, 2023/11/06
- [PULL 56/85] target/hppa: Remove most of the TARGET_REGISTER_BITS redirections, Richard Henderson, 2023/11/06
- [PULL 60/85] target/hppa: Replace tcg_gen_*_tl with tcg_gen_*_i64, Richard Henderson, 2023/11/06
- [PULL 62/85] target/hppa: Implement HSUB, Richard Henderson, 2023/11/06
- [PULL 58/85] target/hppa: Adjust vmstate_env for pa2.0 tlb, Richard Henderson, 2023/11/06
- [PULL 64/85] target/hppa: Implement HSHL, HSHR, Richard Henderson, 2023/11/06