cpu-defs.h (79e4208506651660b866f536616a5f8f3175f909) cpu-defs.h (74433bf083b0766aba81534f92de13194f23ff3e)
1/*
2 * common defines for all CPUs
3 *
4 * Copyright (c) 2003 Fabrice Bellard
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either

--- 20 unchanged lines hidden (view full) ---

29#ifdef CONFIG_TCG
30#include "tcg-target.h"
31#endif
32#ifndef CONFIG_USER_ONLY
33#include "exec/hwaddr.h"
34#endif
35#include "exec/memattrs.h"
36
1/*
2 * common defines for all CPUs
3 *
4 * Copyright (c) 2003 Fabrice Bellard
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either

--- 20 unchanged lines hidden (view full) ---

29#ifdef CONFIG_TCG
30#include "tcg-target.h"
31#endif
32#ifndef CONFIG_USER_ONLY
33#include "exec/hwaddr.h"
34#endif
35#include "exec/memattrs.h"
36
37#include "cpu-param.h"
38
37#ifndef TARGET_LONG_BITS
39#ifndef TARGET_LONG_BITS
38#error TARGET_LONG_BITS must be defined before including this header
40# error TARGET_LONG_BITS must be defined in cpu-param.h
39#endif
41#endif
42#ifndef NB_MMU_MODES
43# error NB_MMU_MODES must be defined in cpu-param.h
44#endif
45#ifndef TARGET_PHYS_ADDR_SPACE_BITS
46# error TARGET_PHYS_ADDR_SPACE_BITS must be defined in cpu-param.h
47#endif
48#ifndef TARGET_VIRT_ADDR_SPACE_BITS
49# error TARGET_VIRT_ADDR_SPACE_BITS must be defined in cpu-param.h
50#endif
51#ifndef TARGET_PAGE_BITS
52# ifdef TARGET_PAGE_BITS_VARY
53# ifndef TARGET_PAGE_BITS_MIN
54# error TARGET_PAGE_BITS_MIN must be defined in cpu-param.h
55# endif
56# else
57# error TARGET_PAGE_BITS must be defined in cpu-param.h
58# endif
59#endif
40
41#define TARGET_LONG_SIZE (TARGET_LONG_BITS / 8)
42
43/* target_ulong is the type of a virtual address */
44#if TARGET_LONG_SIZE == 4
45typedef int32_t target_long;
46typedef uint32_t target_ulong;
47#define TARGET_FMT_lx "%08x"

--- 154 unchanged lines hidden ---
60
61#define TARGET_LONG_SIZE (TARGET_LONG_BITS / 8)
62
63/* target_ulong is the type of a virtual address */
64#if TARGET_LONG_SIZE == 4
65typedef int32_t target_long;
66typedef uint32_t target_ulong;
67#define TARGET_FMT_lx "%08x"

--- 154 unchanged lines hidden ---