Skip to content

Commit ec5f7ca

Browse files
elmarcobonzini
authored andcommitted
include: move target page bits declaration to page-vary.h
Since the implementation unit is page-vary.c. Signed-off-by: Marc-André Lureau <[email protected]> Reviewed-by: Richard Henderson <[email protected]> Message-Id: <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
1 parent 1f269c1 commit ec5f7ca

File tree

6 files changed

+22
-20
lines changed

6 files changed

+22
-20
lines changed

include/exec/page-vary.h

+18
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,22 @@ extern bool set_preferred_target_page_bits_common(int bits);
3131
extern void finalize_target_page_bits_common(int min);
3232
#endif
3333

34+
/**
35+
* set_preferred_target_page_bits:
36+
* @bits: number of bits needed to represent an address within the page
37+
*
38+
* Set the preferred target page size (the actual target page
39+
* size may be smaller than any given CPU's preference).
40+
* Returns true on success, false on failure (which can only happen
41+
* if this is called after the system has already finalized its
42+
* choice of page size and the requested page size is smaller than that).
43+
*/
44+
bool set_preferred_target_page_bits(int bits);
45+
46+
/**
47+
* finalize_target_page_bits:
48+
* Commit the final value set by set_preferred_target_page_bits.
49+
*/
50+
void finalize_target_page_bits(void);
51+
3452
#endif /* EXEC_PAGE_VARY_H */

include/qemu-common.h

-17
Original file line numberDiff line numberDiff line change
@@ -24,23 +24,6 @@
2424
int qemu_main(int argc, char **argv, char **envp);
2525
#endif
2626

27-
/**
28-
* set_preferred_target_page_bits:
29-
* @bits: number of bits needed to represent an address within the page
30-
*
31-
* Set the preferred target page size (the actual target page
32-
* size may be smaller than any given CPU's preference).
33-
* Returns true on success, false on failure (which can only happen
34-
* if this is called after the system has already finalized its
35-
* choice of page size and the requested page size is smaller than that).
36-
*/
37-
bool set_preferred_target_page_bits(int bits);
38-
39-
/**
40-
* finalize_target_page_bits:
41-
* Commit the final value set by set_preferred_target_page_bits.
42-
*/
43-
void finalize_target_page_bits(void);
4427

4528
void qemu_progress_init(int enabled, float min_skip);
4629
void qemu_progress_end(void);

page-vary.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#define IN_PAGE_VARY 1
2121

2222
#include "qemu/osdep.h"
23-
#include "qemu-common.h"
23+
#include "exec/page-vary.h"
2424
#include "exec/exec-all.h"
2525

2626
bool set_preferred_target_page_bits(int bits)

softmmu/physmem.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*/
1919

2020
#include "qemu/osdep.h"
21-
#include "qemu-common.h"
21+
#include "exec/page-vary.h"
2222
#include "qapi/error.h"
2323

2424
#include "qemu/cutils.h"

softmmu/vl.c

+1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
#include "qemu/datadir.h"
2828
#include "qemu/units.h"
2929
#include "exec/cpu-common.h"
30+
#include "exec/page-vary.h"
3031
#include "hw/qdev-properties.h"
3132
#include "qapi/compat-policy.h"
3233
#include "qapi/error.h"

target/arm/cpu.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
#include "qemu/qemu-print.h"
2323
#include "qemu/timer.h"
2424
#include "qemu/log.h"
25-
#include "qemu-common.h"
25+
#include "exec/page-vary.h"
2626
#include "target/arm/idau.h"
2727
#include "qemu/module.h"
2828
#include "qapi/error.h"

0 commit comments

Comments
 (0)