Subversion Repositories Kolibri OS

Rev

Rev 5191 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
5191 serge 1
/* This file defines the interface between the cr16 simulator and gdb.
2
 
6324 serge 3
   Copyright (C) 2008-2015 Free Software Foundation, Inc.
5191 serge 4
 
5
   This file is part of GDB.
6
 
7
   This program is free software; you can redistribute it and/or modify
8
   it under the terms of the GNU General Public License as published by
9
   the Free Software Foundation; either version 3 of the License, or
10
   (at your option) any later version.
11
 
12
   This program is distributed in the hope that it will be useful,
13
   but WITHOUT ANY WARRANTY; without even the implied warranty of
14
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15
   GNU General Public License for more details.
16
 
17
   You should have received a copy of the GNU General Public License
18
   along with this program; if not, see .  */
19
 
20
#if !defined (SIM_CR16_H)
21
#define SIM_CR16_H
22
 
23
#ifdef __cplusplus
24
extern "C" { // }
25
#endif
26
 
27
enum
28
  {
29
    SIM_CR16_MEMORY_UNIFIED = 0x00000000,
30
    SIM_CR16_MEMORY_INSN    = 0x10000000,
31
    SIM_CR16_MEMORY_DATA    = 0x10000000,
32
    SIM_CR16_MEMORY_DMAP    = 0x10000000,
33
    SIM_CR16_MEMORY_IMAP    = 0x10000000
34
  };
35
 
36
/* The simulator makes use of the following register information. */
37
 
38
enum sim_cr16_regs
39
{
40
  SIM_CR16_R0_REGNUM,
41
  SIM_CR16_R1_REGNUM,
42
  SIM_CR16_R2_REGNUM,
43
  SIM_CR16_R3_REGNUM,
44
  SIM_CR16_R4_REGNUM,
45
  SIM_CR16_R5_REGNUM,
46
  SIM_CR16_R6_REGNUM,
47
  SIM_CR16_R7_REGNUM,
48
  SIM_CR16_R8_REGNUM,
49
  SIM_CR16_R9_REGNUM,
50
  SIM_CR16_R10_REGNUM,
51
  SIM_CR16_R11_REGNUM,
52
  SIM_CR16_R12_REGNUM,
53
  SIM_CR16_R13_REGNUM,
54
  SIM_CR16_R14_REGNUM,
55
  SIM_CR16_R15_REGNUM,
56
 
57
  SIM_CR16_PC_REGNUM,
58
  SIM_CR16_ISP_REGNUM,
59
  SIM_CR16_USP_REGNUM,
60
  SIM_CR16_INTBASE_REGNUM,
61
  SIM_CR16_PSR_REGNUM,
62
  SIM_CR16_CFG_REGNUM,
63
  SIM_CR16_DBS_REGNUM,
64
  SIM_CR16_DCR_REGNUM,
65
  SIM_CR16_DSR_REGNUM,
66
  SIM_CR16_CAR0_REGNUM,
67
  SIM_CR16_CAR1_REGNUM
68
};
69
 
70
enum
71
{
72
  SIM_CR16_NR_R_REGS = 16,
73
  SIM_CR16_NR_A_REGS = 2,
74
  SIM_CR16_NR_IMAP_REGS = 2,
75
  SIM_CR16_NR_DMAP_REGS = 4,
76
  SIM_CR16_NR_CR_REGS = 11
77
};
78
 
79
#ifdef __cplusplus
80
}
81
#endif
82
 
83
#endif