Line 1... |
Line 1... |
/* sim-config.h -- Simulator configuration header file
|
/* sim-config.h -- Simulator configuration header file
|
|
|
Copyright (C) 1999 Damjan Lampret, lampret@opencores.org
|
Copyright (C) 1999 Damjan Lampret, lampret@opencores.org
|
|
Copyright (C) 2008 Embecosm Limited
|
|
|
|
Contributor Jeremy Bennett <jeremy.bennett@embecosm.com>
|
|
|
This file is part of OpenRISC 1000 Architectural Simulator.
|
This file is part of OpenRISC 1000 Architectural Simulator.
|
|
|
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify it
|
it under the terms of the GNU General Public License as published by
|
under the terms of the GNU General Public License as published by the Free
|
the Free Software Foundation; either version 2 of the License, or
|
Software Foundation; either version 3 of the License, or (at your option)
|
(at your option) any later version.
|
any later version.
|
|
|
This program is distributed in the hope that it will be useful,
|
This program is distributed in the hope that it will be useful, but WITHOUT
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
GNU General Public License for more details.
|
more details.
|
|
|
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License along
|
along with this program; if not, write to the Free Software
|
with this program. If not, see <http://www.gnu.org/licenses/>. */
|
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
|
|
|
|
#ifndef _CONFIG_H_
|
#ifndef _CONFIG_H_
|
#define _CONFIG_H_
|
#define _CONFIG_H_
|
|
|
#include <stdio.h>
|
#include <stdio.h>
|
Line 82... |
Line 86... |
#endif
|
#endif
|
} bpb;
|
} bpb;
|
|
|
struct {
|
struct {
|
unsigned long upr; /* Unit present register */
|
unsigned long upr; /* Unit present register */
|
|
unsigned long cfgr; /* CPU configuration register */
|
unsigned long ver, rev; /* Version register */
|
unsigned long ver, rev; /* Version register */
|
int sr; /* Supervision register */
|
int sr; /* Supervision register */
|
int superscalar; /* superscalara analysis */
|
int superscalar; /* superscalara analysis */
|
int hazards; /* dependency hazards analysis */
|
int hazards; /* dependency hazards analysis */
|
int dependstats; /* dependency statistics */
|
int dependstats; /* dependency statistics */
|
Line 113... |
Line 118... |
long clkcycle_ps; /* Clock duration in ps */
|
long clkcycle_ps; /* Clock duration in ps */
|
long system_kfreq; /* System frequency in kHz*/
|
long system_kfreq; /* System frequency in kHz*/
|
} sim;
|
} sim;
|
|
|
struct {
|
struct {
|
int enabled; /* Whether is debug module enabled */
|
int enabled; /* Is debug module enabled */
|
int gdb_enabled; /* Whether is debugging with gdb possible */
|
int gdb_enabled; /* Is debugging with gdb possible */
|
int server_port; /* A user specified port number for services */
|
int server_port; /* A user specified port for services */
|
unsigned long vapi_id; /* "Fake" vapi device id for JTAG proxy */
|
unsigned long vapi_id; /* "Fake" vapi dev id for JTAG proxy */
|
|
unsigned long int cfgr; /* JPB: Debug config SPR */
|
} debug;
|
} debug;
|
|
|
struct { /* Verification API, part of Advanced Core Verification */
|
struct { /* Verification API, part of Advanced Core Verification */
|
int enabled; /* Whether is VAPI module enabled */
|
int enabled; /* Whether is VAPI module enabled */
|
int server_port; /* A user specified port number for services */
|
int server_port; /* A user specified port number for services */
|