OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /
    from Rev 121 to Rev 122
    Reverse comparison

Rev 121 → Rev 122

/trunk/insight/gdb/config/or1k/tm-or1k.h
25,6 → 25,8
#define TARGET_OR1K
#endif
 
#include "defs.h"
 
struct value;
 
struct struct_or1k_implementation
58,10 → 60,10
 
/* Read register.
Does not fail, places error no. in err instead or call error(), if fatal. */
unsigned long long int (*to_read_reg) PARAMS ((unsigned int regno));
ULONGEST (*to_read_reg) PARAMS ((unsigned int regno));
/* Write register.
Does not fail, places error no. in err instead or call error(), if fatal. */
void (*to_write_reg) PARAMS ((unsigned int regno, unsigned long long int value));
void (*to_write_reg) PARAMS ((unsigned int regno, ULONGEST value));
/* Selects scan chain. All register accesses are related to current scan chain.
Does not fail, places error no. in err instead or call error(), if fatal.
/trunk/insight/gdb/remote-or1k.c
42,8 → 42,8
 
/* JTAG or1k target ops. */
extern void jtag_init PARAMS ((char * args));
extern unsigned long long int jtag_read_reg PARAMS ((unsigned int regno));
extern void jtag_write_reg PARAMS ((unsigned int regno, unsigned long long int data));
extern ULONGEST jtag_read_reg PARAMS ((unsigned int regno));
extern void jtag_write_reg PARAMS ((unsigned int regno, ULONGEST data));
extern void jtag_done PARAMS ((void));
extern void jtag_set_chain PARAMS ((int chain));
struct target_ops or1k_jtag_ops;
248,7 → 248,7
static void
or1k_write_reg (regno, data)
unsigned int regno;
unsigned long long int data;
ULONGEST data;
{
if (current_or1k_target != NULL && current_or1k_target->to_write_reg != NULL)
current_or1k_target->to_write_reg (regno, data);
256,7 → 256,7
 
/* Reads register/memory from regno. */
 
static unsigned long long int
static ULONGEST
or1k_read_reg (regno)
unsigned int regno;
{
411,9 → 411,10
}
 
or1k_status = TARGET_CONNECTING;
or1k_reset ();
if (current_or1k_target != NULL && current_or1k_target->to_init != NULL)
current_or1k_target->to_init (args);
 
or1k_reset ();
/* Determine implementation configuration. */
or1k_implementation.VR = or1k_read_spr_reg (VR_SPRNUM);
564,7 → 565,7
or1k_read_trace ()
{
struct htrace_data_struct data;
long long int tmp;
ULONGEST tmp;
int first = 1;
FILE *fd;
if ((fd = fopen (TRACE_FILENAME, "ab")) == NULL)
/trunk/gdb-5.0/gdb/jtag.c
156,7 → 156,7
 
static void
jp1_write_stream (stream, len, set_last_bit)
unsigned long long int stream;
ULONGEST stream;
int len;
int set_last_bit;
{
173,7 → 173,7
 
/* Gets bitstream. MS bit first. */
 
static unsigned long long int
static ULONGEST
jp1_read_stream (len, stream, set_last_bit)
int len;
unsigned long stream;
180,7 → 180,7
int set_last_bit;
{
int i;
unsigned long long int data;
ULONGEST data;
 
if (len <= 0) return;
data = 0;
217,7 → 217,7
void
jtag_write_reg (regno, data)
int regno;
unsigned long long int data;
ULONGEST data;
{
int crc_read, crc_write, crc_ok, retry;
 
270,11 → 270,11
 
/* Reads register/memory from regno. */
 
unsigned long long int
ULONGEST
jtag_read_reg (regno)
unsigned int regno;
{
unsigned long long int data;
ULONGEST data;
int crc_read, crc_write, crc_actual_read, retry, crc_ok;
 
if (!select_dr)
/trunk/gdb-5.0/gdb/remote-or1k.c
42,8 → 42,8
 
/* JTAG or1k target ops. */
extern void jtag_init PARAMS ((char * args));
extern unsigned long long int jtag_read_reg PARAMS ((unsigned int regno));
extern void jtag_write_reg PARAMS ((unsigned int regno, unsigned long long int data));
extern ULONGEST jtag_read_reg PARAMS ((unsigned int regno));
extern void jtag_write_reg PARAMS ((unsigned int regno, ULONGEST data));
extern void jtag_done PARAMS ((void));
extern void jtag_set_chain PARAMS ((int chain));
struct target_ops or1k_jtag_ops;
248,7 → 248,7
static void
or1k_write_reg (regno, data)
unsigned int regno;
unsigned long long int data;
ULONGEST data;
{
if (current_or1k_target != NULL && current_or1k_target->to_write_reg != NULL)
current_or1k_target->to_write_reg (regno, data);
256,7 → 256,7
 
/* Reads register/memory from regno. */
 
static unsigned long long int
static ULONGEST
or1k_read_reg (regno)
unsigned int regno;
{
411,9 → 411,10
}
 
or1k_status = TARGET_CONNECTING;
or1k_reset ();
if (current_or1k_target != NULL && current_or1k_target->to_init != NULL)
current_or1k_target->to_init (args);
 
or1k_reset ();
/* Determine implementation configuration. */
or1k_implementation.VR = or1k_read_spr_reg (VR_SPRNUM);
564,7 → 565,7
or1k_read_trace ()
{
struct htrace_data_struct data;
long long int tmp;
ULONGEST tmp;
int first = 1;
FILE *fd;
if ((fd = fopen (TRACE_FILENAME, "ab")) == NULL)
/trunk/gdb-5.0/gdb/config/or1k/tm-or1k.h
25,6 → 25,8
#define TARGET_OR1K
#endif
 
#include "defs.h"
 
struct value;
 
struct struct_or1k_implementation
58,10 → 60,10
 
/* Read register.
Does not fail, places error no. in err instead or call error(), if fatal. */
unsigned long long int (*to_read_reg) PARAMS ((unsigned int regno));
ULONGEST (*to_read_reg) PARAMS ((unsigned int regno));
/* Write register.
Does not fail, places error no. in err instead or call error(), if fatal. */
void (*to_write_reg) PARAMS ((unsigned int regno, unsigned long long int value));
void (*to_write_reg) PARAMS ((unsigned int regno, ULONGEST value));
/* Selects scan chain. All register accesses are related to current scan chain.
Does not fail, places error no. in err instead or call error(), if fatal.

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.