xref: /openbmc/qemu/include/exec/memory-internal.h (revision 90ce6e26)
1 /*
2  * Declarations for obsolete exec.c functions
3  *
4  * Copyright 2011 Red Hat, Inc. and/or its affiliates
5  *
6  * Authors:
7  *  Avi Kivity <avi@redhat.com>
8  *
9  * This work is licensed under the terms of the GNU GPL, version 2 or
10  * later.  See the COPYING file in the top-level directory.
11  *
12  */
13 
14 /*
15  * This header is for use by exec.c and memory.c ONLY.  Do not include it.
16  * The functions declared here will be removed soon.
17  */
18 
19 #ifndef MEMORY_INTERNAL_H
20 #define MEMORY_INTERNAL_H
21 
22 #ifndef CONFIG_USER_ONLY
23 typedef struct AddressSpaceDispatch AddressSpaceDispatch;
24 
25 void address_space_init_dispatch(AddressSpace *as);
26 void address_space_unregister(AddressSpace *as);
27 void address_space_destroy_dispatch(AddressSpace *as);
28 
29 extern const MemoryRegionOps unassigned_mem_ops;
30 
31 bool memory_region_access_valid(MemoryRegion *mr, hwaddr addr,
32                                 unsigned size, bool is_write);
33 
34 #endif
35 #endif
36