public inbox for binutils-cvs@sourceware.org
 help / color / mirror / Atom feed
* [binutils-gdb] Libvtv: Add loongarch support.
@ 2023-08-12  0:59 Alan Modra
  0 siblings, 0 replies; only message in thread
From: Alan Modra @ 2023-08-12  0:59 UTC (permalink / raw)
  To: bfd-cvs

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=a5e58a41647619c048335b91b60de621f88edd73

commit a5e58a41647619c048335b91b60de621f88edd73
Author: Lulu Cheng <chenglulu@loongson.cn>
Date:   Mon Aug 7 13:07:05 2023 +0200

    Libvtv: Add loongarch support.
    
    The loongarch64 specification permits page sizes of 4KiB, 16KiB and 64KiB,
    but only 16KiB pages are supported for now.
    
    Co-Authored-By: qijingwen <qijingwen@loongson.cn>
    
    include/
            * vtv-change-permission.h (defined): Determines whether the macro
            __loongarch_lp64 is defined
            (VTV_PAGE_SIZE): Set VTV_PAGE_SIZE to 16KiB for loongarch64.

Diff:
---
 include/vtv-change-permission.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/include/vtv-change-permission.h b/include/vtv-change-permission.h
index 5906e7d78cc..ffb5312522c 100644
--- a/include/vtv-change-permission.h
+++ b/include/vtv-change-permission.h
@@ -48,6 +48,10 @@ extern void __VLTChangePermission (int);
 #else 
 #if defined(__sun__) && defined(__svr4__) && defined(__sparc__)
 #define VTV_PAGE_SIZE 8192
+#elif defined(__loongarch_lp64)
+/* The page size is configurable by the kernel to be 4, 16 or 64 KiB.
+   For now, only the default page size of 16KiB is supported.  */
+#define VTV_PAGE_SIZE 16384
 #else
 #define VTV_PAGE_SIZE 4096
 #endif

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-08-12  0:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-12  0:59 [binutils-gdb] Libvtv: Add loongarch support Alan Modra

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 read-only IMAP folder(s) and NNTP newsgroup(s).