Message ID | 1586337380-25217-1-git-send-email-chenhc@lemote.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | [1/3] target/mips: Support variable page size | expand |
сре, 8. апр 2020. у 11:07 Huacai Chen <chenhc@lemote.com> је написао/ла: > > Traditionally, MIPS use 4KB page size, but Loongson prefer 16KB page > size in system emulator. So, let's define TARGET_PAGE_BITS_VARY and > TARGET_PAGE_BITS_MIN to support variable page size. > > Cc: Jiaxun Yang <jiaxun.yang@flygoat.com> > Signed-off-by: Huacai Chen <chenhc@lemote.com> > --- > target/mips/cpu-param.h | 5 +++++ > 1 file changed, 5 insertions(+) > Reviewed-by: Aleksandar Markovic <aleksandar.qemu.devel@gmail.com> > diff --git a/target/mips/cpu-param.h b/target/mips/cpu-param.h > index 308660d..9c4a6ea 100644 > --- a/target/mips/cpu-param.h > +++ b/target/mips/cpu-param.h > @@ -23,7 +23,12 @@ > # define TARGET_VIRT_ADDR_SPACE_BITS 32 > #endif > #endif > +#ifdef CONFIG_USER_ONLY > #define TARGET_PAGE_BITS 12 > +#else > +#define TARGET_PAGE_BITS_VARY > +#define TARGET_PAGE_BITS_MIN 12 > +#endif > #define NB_MMU_MODES 4 > > #endif > -- > 2.7.0 >
On Wed, Apr 8, 2020 at 4:41 PM Huacai Chen <chenhc@lemote.com> wrote: > > Traditionally, MIPS use 4KB page size, but Loongson prefer 16KB page > size in system emulator. So, let's define TARGET_PAGE_BITS_VARY and > TARGET_PAGE_BITS_MIN to support variable page size. > > Cc: Jiaxun Yang <jiaxun.yang@flygoat.com> > Signed-off-by: Huacai Chen <chenhc@lemote.com> > --- Applied to MIPS queue. Thanks and Regards, Aleksandar > target/mips/cpu-param.h | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/target/mips/cpu-param.h b/target/mips/cpu-param.h > index 308660d..9c4a6ea 100644 > --- a/target/mips/cpu-param.h > +++ b/target/mips/cpu-param.h > @@ -23,7 +23,12 @@ > # define TARGET_VIRT_ADDR_SPACE_BITS 32 > #endif > #endif > +#ifdef CONFIG_USER_ONLY > #define TARGET_PAGE_BITS 12 > +#else > +#define TARGET_PAGE_BITS_VARY > +#define TARGET_PAGE_BITS_MIN 12 > +#endif > #define NB_MMU_MODES 4 > > #endif > -- > 2.7.0 > >
On Wed, Apr 8, 2020 at 4:41 PM Huacai Chen <chenhc@lemote.com> wrote: > > Traditionally, MIPS use 4KB page size, but Loongson prefer 16KB page > size in system emulator. So, let's define TARGET_PAGE_BITS_VARY and > TARGET_PAGE_BITS_MIN to support variable page size. > > Cc: Jiaxun Yang <jiaxun.yang@flygoat.com> > Signed-off-by: Huacai Chen <chenhc@lemote.com> > --- Applied to MIPS queue. I hope this email will find you and all citizens of China in good health and spirits! Aleksandar > target/mips/cpu-param.h | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/target/mips/cpu-param.h b/target/mips/cpu-param.h > index 308660d..9c4a6ea 100644 > --- a/target/mips/cpu-param.h > +++ b/target/mips/cpu-param.h > @@ -23,7 +23,12 @@ > # define TARGET_VIRT_ADDR_SPACE_BITS 32 > #endif > #endif > +#ifdef CONFIG_USER_ONLY > #define TARGET_PAGE_BITS 12 > +#else > +#define TARGET_PAGE_BITS_VARY > +#define TARGET_PAGE_BITS_MIN 12 > +#endif > #define NB_MMU_MODES 4 > > #endif > -- > 2.7.0 > >
diff --git a/target/mips/cpu-param.h b/target/mips/cpu-param.h index 308660d..9c4a6ea 100644 --- a/target/mips/cpu-param.h +++ b/target/mips/cpu-param.h @@ -23,7 +23,12 @@ # define TARGET_VIRT_ADDR_SPACE_BITS 32 #endif #endif +#ifdef CONFIG_USER_ONLY #define TARGET_PAGE_BITS 12 +#else +#define TARGET_PAGE_BITS_VARY +#define TARGET_PAGE_BITS_MIN 12 +#endif #define NB_MMU_MODES 4 #endif
Traditionally, MIPS use 4KB page size, but Loongson prefer 16KB page size in system emulator. So, let's define TARGET_PAGE_BITS_VARY and TARGET_PAGE_BITS_MIN to support variable page size. Cc: Jiaxun Yang <jiaxun.yang@flygoat.com> Signed-off-by: Huacai Chen <chenhc@lemote.com> --- target/mips/cpu-param.h | 5 +++++ 1 file changed, 5 insertions(+)