cpu-common.h revision 4c37c32b924cb13b821f9d2e01f42cabbd3d9cf9
#ifndef CPU_COMMON_H
#define CPU_COMMON_H 1
/* CPU interfaces that are target indpendent. */
#define WORDS_ALIGNED
#endif
#include "bswap.h"
/* address in the RAM (different from a physical address) */
#ifdef CONFIG_KQEMU
/* FIXME: This is wrong. */
typedef uint32_t ram_addr_t;
#else
typedef unsigned long ram_addr_t;
#endif
/* memory API */
{
}
/* This should only be used for ram local to a device. */
/* This should not be used by devices. */
void *opaque);
void cpu_unregister_io_memory(int table_address);
{
}
{
}
int is_write);
void cpu_unregister_map_client(void *cookie);
#define IO_MEM_SHIFT 3
/* Acts like a ROM when read and like a device when written. */
#define IO_MEM_ROMD (1)
#define IO_MEM_SUBPAGE (2)
#define IO_MEM_SUBWIDTH (4)
#endif /* !CPU_COMMON_H */