Statistics
| Branch: | Revision:

root / cpu-defs.h @ 3b22c470

History | View | Annotate | Download (1.2 kB)

1 ab93bbe2 bellard
/*
2 ab93bbe2 bellard
 * common defines for all CPUs
3 ab93bbe2 bellard
 * 
4 ab93bbe2 bellard
 * Copyright (c) 2003 Fabrice Bellard
5 ab93bbe2 bellard
 *
6 ab93bbe2 bellard
 * This library is free software; you can redistribute it and/or
7 ab93bbe2 bellard
 * modify it under the terms of the GNU Lesser General Public
8 ab93bbe2 bellard
 * License as published by the Free Software Foundation; either
9 ab93bbe2 bellard
 * version 2 of the License, or (at your option) any later version.
10 ab93bbe2 bellard
 *
11 ab93bbe2 bellard
 * This library is distributed in the hope that it will be useful,
12 ab93bbe2 bellard
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 ab93bbe2 bellard
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14 ab93bbe2 bellard
 * Lesser General Public License for more details.
15 ab93bbe2 bellard
 *
16 ab93bbe2 bellard
 * You should have received a copy of the GNU Lesser General Public
17 ab93bbe2 bellard
 * License along with this library; if not, write to the Free Software
18 ab93bbe2 bellard
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19 ab93bbe2 bellard
 */
20 ab93bbe2 bellard
#ifndef CPU_DEFS_H
21 ab93bbe2 bellard
#define CPU_DEFS_H
22 ab93bbe2 bellard
23 ab93bbe2 bellard
#include "config.h"
24 ab93bbe2 bellard
#include <setjmp.h>
25 ab93bbe2 bellard
26 ab93bbe2 bellard
#define EXCP_INTERRUPT         256 /* async interruption */
27 ab93bbe2 bellard
#define EXCP_HLT        257 /* hlt instruction reached */
28 ab93bbe2 bellard
#define EXCP_DEBUG      258 /* cpu stopped after a breakpoint or singlestep */
29 ab93bbe2 bellard
30 ab93bbe2 bellard
#define MAX_BREAKPOINTS 32
31 ab93bbe2 bellard
32 ab93bbe2 bellard
#define CPU_TLB_SIZE 256
33 ab93bbe2 bellard
34 ab93bbe2 bellard
typedef struct CPUTLBEntry {
35 ab93bbe2 bellard
    uint32_t address;
36 ab93bbe2 bellard
    uint32_t addend;
37 ab93bbe2 bellard
} CPUTLBEntry;
38 ab93bbe2 bellard
39 ab93bbe2 bellard
#endif