blob: 25c43c06e9129babc212876fdb3d47f6cd16dc1d [file] [log] [blame]
Avi Kivity67d95c12011-12-15 15:25:22 +02001/*
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 *
Paolo Bonzini6b620ca2012-01-13 17:44:23 +01009 * 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.
Avi Kivity67d95c12011-12-15 15:25:22 +020011 *
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
Avi Kivity7762c2c2012-09-20 16:02:51 +030019#ifndef MEMORY_INTERNAL_H
20#define MEMORY_INTERNAL_H
Avi Kivity67d95c12011-12-15 15:25:22 +020021
22#ifndef CONFIG_USER_ONLY
Avi Kivityac1970f2012-10-03 16:22:53 +020023typedef struct AddressSpaceDispatch AddressSpaceDispatch;
24
Avi Kivityac1970f2012-10-03 16:22:53 +020025void address_space_init_dispatch(AddressSpace *as);
Avi Kivity83f3c252012-10-07 12:59:55 +020026void address_space_destroy_dispatch(AddressSpace *as);
Avi Kivityac1970f2012-10-03 16:22:53 +020027
Paolo Bonzinid1970632013-05-24 13:23:38 +020028extern const MemoryRegionOps unassigned_mem_ops;
29
Paolo Bonzinid2702032013-05-24 11:55:06 +020030bool memory_region_access_valid(MemoryRegion *mr, hwaddr addr,
31 unsigned size, bool is_write);
32
Avi Kivity67d95c12011-12-15 15:25:22 +020033#endif
Avi Kivity67d95c12011-12-15 15:25:22 +020034#endif