qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Philippe Mathieu-Daudé" <philmd@linaro.org>
To: Anton Johansson <anjo@rev.ng>, qemu-devel@nongnu.org
Cc: ale@rev.ng, richard.henderson@linaro.org, pbonzini@redhat.com,
	eduardo@habkost.net, peter.maydell@linaro.org, mrolnik@gmail.com,
	tsimpson@quicinc.com, gaosong@loongson.cn,
	yangxiaojuan@loongson.cn, edgar.iglesias@gmail.com,
	shorne@gmail.com, palmer@dabbelt.com, alistair.francis@wdc.com,
	bin.meng@windriver.com, ysato@users.sourceforge.jp,
	mark.cave-ayland@ilande.co.uk, atar4qemu@gmail.com,
	kbastian@mail.uni-paderborn.de
Subject: Re: [PATCH 01/23] include/exec: Set default `NB_MMU_MODES` to 16
Date: Mon, 6 Mar 2023 19:48:58 +0100	[thread overview]
Message-ID: <0be0019e-58da-3438-654c-2fabe0e7c5cd@linaro.org> (raw)
In-Reply-To: <20230306175230.7110-2-anjo@rev.ng>

On 6/3/23 18:52, Anton Johansson wrote:
> Signed-off-by: Anton Johansson <anjo@rev.ng>
> ---
>   include/exec/cpu-defs.h | 11 ++++++++---
>   1 file changed, 8 insertions(+), 3 deletions(-)
> 
> diff --git a/include/exec/cpu-defs.h b/include/exec/cpu-defs.h
> index be920d4208..69cd62c19b 100644
> --- a/include/exec/cpu-defs.h
> +++ b/include/exec/cpu-defs.h
> @@ -36,9 +36,6 @@
>   #ifndef TARGET_LONG_BITS
>   # error TARGET_LONG_BITS must be defined in cpu-param.h
>   #endif
> -#ifndef NB_MMU_MODES
> -# error NB_MMU_MODES must be defined in cpu-param.h
> -#endif
>   #ifndef TARGET_PHYS_ADDR_SPACE_BITS
>   # error TARGET_PHYS_ADDR_SPACE_BITS must be defined in cpu-param.h
>   #endif
> @@ -55,6 +52,14 @@
>   # endif
>   #endif
>   
> +/*
> + * Fix the maxiumum number of mmu modes to 16.  This is larger than all current
> + * targets, and also the maximum supported by the softmmu tlb api.

Typo "maximum".

I'd keep "larger than all current targets, and also" for the commit 
description and not commit as comment in the code.

> + */
> +#ifndef NB_MMU_MODES
> +#define NB_MMU_MODES 16
> +#endif
> +
>   #define TARGET_LONG_SIZE (TARGET_LONG_BITS / 8)
>   
>   /* target_ulong is the type of a virtual address */



  reply	other threads:[~2023-03-06 18:49 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-06 17:52 [PATCH 00/23] Fix NB_MMU_MODES to 16 Anton Johansson via
2023-03-06 17:52 ` [PATCH 01/23] include/exec: Set default `NB_MMU_MODES` " Anton Johansson via
2023-03-06 18:48   ` Philippe Mathieu-Daudé [this message]
2023-03-06 17:52 ` [PATCH 02/23] target/alpha: Remove `NB_MMU_MODES` define Anton Johansson via
2023-03-06 17:52 ` [PATCH 03/23] target/arm: " Anton Johansson via
2023-03-06 18:51   ` Philippe Mathieu-Daudé
2023-03-06 17:52 ` [PATCH 04/23] target/avr: " Anton Johansson via
2023-03-06 17:52 ` [PATCH 05/23] target/cris: " Anton Johansson via
2023-03-06 17:52 ` [PATCH 06/23] target/hexagon: " Anton Johansson via
2023-03-06 17:52 ` [PATCH 07/23] target/hppa: " Anton Johansson via
2023-03-06 17:52 ` [PATCH 08/23] target/i386: " Anton Johansson via
2023-03-06 17:52 ` [PATCH 09/23] target/loongarch: " Anton Johansson via
2023-03-06 17:52 ` [PATCH 10/23] target/m68k: " Anton Johansson via
2023-03-06 17:52 ` [PATCH 11/23] target/microblaze: " Anton Johansson via
2023-03-06 17:52 ` [PATCH 12/23] target/mips: " Anton Johansson via
2023-03-06 17:52 ` [PATCH 13/23] target/nios2: " Anton Johansson via
2023-03-06 17:52 ` [PATCH 14/23] target/openrisc: " Anton Johansson via
2023-03-06 17:52 ` [PATCH 15/23] target/ppc: " Anton Johansson via
2023-03-06 17:52 ` [PATCH 16/23] target/riscv: " Anton Johansson via
2023-03-06 17:52 ` [PATCH 17/23] target/rx: " Anton Johansson via
2023-03-06 17:52 ` [PATCH 18/23] target/s390x: " Anton Johansson via
2023-03-06 17:52 ` [PATCH 19/23] target/sh4: " Anton Johansson via
2023-03-06 17:52 ` [PATCH 20/23] target/sparc: " Anton Johansson via
2023-03-06 17:52 ` [PATCH 21/23] target/tricore: " Anton Johansson via
2023-03-06 17:52 ` [PATCH 22/23] target/xtensa: " Anton Johansson via
2023-03-06 17:52 ` [PATCH 23/23] include/exec: Remove guards around `NB_MMU_MODES` Anton Johansson via
2023-03-06 18:54 ` [PATCH 00/23] Fix NB_MMU_MODES to 16 Alex Bennée
2023-03-06 18:56 ` Philippe Mathieu-Daudé
2023-03-06 21:30   ` Philippe Mathieu-Daudé
2023-03-06 18:58 ` Richard Henderson
2023-03-07  0:58 ` Richard Henderson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=0be0019e-58da-3438-654c-2fabe0e7c5cd@linaro.org \
    --to=philmd@linaro.org \
    --cc=ale@rev.ng \
    --cc=alistair.francis@wdc.com \
    --cc=anjo@rev.ng \
    --cc=atar4qemu@gmail.com \
    --cc=bin.meng@windriver.com \
    --cc=edgar.iglesias@gmail.com \
    --cc=eduardo@habkost.net \
    --cc=gaosong@loongson.cn \
    --cc=kbastian@mail.uni-paderborn.de \
    --cc=mark.cave-ayland@ilande.co.uk \
    --cc=mrolnik@gmail.com \
    --cc=palmer@dabbelt.com \
    --cc=pbonzini@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=richard.henderson@linaro.org \
    --cc=shorne@gmail.com \
    --cc=tsimpson@quicinc.com \
    --cc=yangxiaojuan@loongson.cn \
    --cc=ysato@users.sourceforge.jp \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).