]> git.proxmox.com Git - mirror_qemu.git/commitdiff
exec: Rename target specific page-vary.c -> page-vary-target.c
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Thu, 14 Sep 2023 18:57:13 +0000 (20:57 +0200)
committerRichard Henderson <richard.henderson@linaro.org>
Wed, 4 Oct 2023 18:03:54 +0000 (11:03 -0700)
This matches the target agnostic 'page-vary-common.c' counterpart.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Anton Johansson <anjo@rev.ng>
Message-Id: <20230914185718.76241-8-philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
MAINTAINERS
meson.build
page-vary-target.c [new file with mode: 0644]
page-vary.c [deleted file]

index f82b78afa86a05e7f0a856253307af02dc33b6d5..cb2dbd967e72d9e11a337ac39b944476d2ffe160 100644 (file)
@@ -141,7 +141,7 @@ F: softmmu/cpus.c
 F: softmmu/watchpoint.c
 F: cpu-common.c
 F: cpu-target.c
-F: page-vary.c
+F: page-vary-target.c
 F: page-vary-common.c
 F: accel/tcg/
 F: accel/stubs/tcg-stub.c
index 0760c29857746efe8972603d92015ba3b10af32d..12df8fe0de433eaae1882855f15650e7ef1c0476 100644 (file)
@@ -3454,7 +3454,7 @@ if get_option('b_lto')
   pagevary = declare_dependency(link_with: pagevary)
 endif
 common_ss.add(pagevary)
-specific_ss.add(files('page-vary.c'))
+specific_ss.add(files('page-vary-target.c'))
 
 subdir('backends')
 subdir('disas')
diff --git a/page-vary-target.c b/page-vary-target.c
new file mode 100644 (file)
index 0000000..343b4ad
--- /dev/null
@@ -0,0 +1,41 @@
+/*
+ * Variable page size handling -- target specific part.
+ *
+ *  Copyright (c) 2003 Fabrice Bellard
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, see <http://www.gnu.org/licenses/>.
+ */
+
+#define IN_PAGE_VARY 1
+
+#include "qemu/osdep.h"
+#include "exec/page-vary.h"
+#include "exec/exec-all.h"
+
+bool set_preferred_target_page_bits(int bits)
+{
+#ifdef TARGET_PAGE_BITS_VARY
+    assert(bits >= TARGET_PAGE_BITS_MIN);
+    return set_preferred_target_page_bits_common(bits);
+#else
+    return true;
+#endif
+}
+
+void finalize_target_page_bits(void)
+{
+#ifdef TARGET_PAGE_BITS_VARY
+    finalize_target_page_bits_common(TARGET_PAGE_BITS_MIN);
+#endif
+}
diff --git a/page-vary.c b/page-vary.c
deleted file mode 100644 (file)
index 343b4ad..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-/*
- * Variable page size handling -- target specific part.
- *
- *  Copyright (c) 2003 Fabrice Bellard
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, see <http://www.gnu.org/licenses/>.
- */
-
-#define IN_PAGE_VARY 1
-
-#include "qemu/osdep.h"
-#include "exec/page-vary.h"
-#include "exec/exec-all.h"
-
-bool set_preferred_target_page_bits(int bits)
-{
-#ifdef TARGET_PAGE_BITS_VARY
-    assert(bits >= TARGET_PAGE_BITS_MIN);
-    return set_preferred_target_page_bits_common(bits);
-#else
-    return true;
-#endif
-}
-
-void finalize_target_page_bits(void)
-{
-#ifdef TARGET_PAGE_BITS_VARY
-    finalize_target_page_bits_common(TARGET_PAGE_BITS_MIN);
-#endif
-}