From 1e6eac9d882703e27283b0fffdb7ce3e1ebd071f Mon Sep 17 00:00:00 2001 From: jjohnstn Date: Thu, 4 Jan 2001 01:00:11 +0000 Subject: [PATCH] 2001-01-03 Jeff Johnston * gdb.cxx (restart_program): Added code to drive new "restart" output pin. * gdb.h (restart_pin): New output pin. --- sid/component/gdb/ChangeLog | 6 ++++++ sid/component/gdb/gdb.cxx | 6 ++++-- sid/component/gdb/gdb.h | 3 ++- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/sid/component/gdb/ChangeLog b/sid/component/gdb/ChangeLog index f048dbf2ba..9bd1f6194e 100644 --- a/sid/component/gdb/ChangeLog +++ b/sid/component/gdb/ChangeLog @@ -1,3 +1,9 @@ +2001-01-03 Jeff Johnston + + * gdb.cxx (restart_program): Added code to drive + new "restart" output pin. + * gdb.h (restart_pin): New output pin. + 2000-11-21 Frank Ch. Eigler * Makefile.in: Regenerated. diff --git a/sid/component/gdb/gdb.cxx b/sid/component/gdb/gdb.cxx index 2efa30878c..725d42d019 100644 --- a/sid/component/gdb/gdb.cxx +++ b/sid/component/gdb/gdb.cxx @@ -1,6 +1,6 @@ // gdb.cxx - GDB stub implementation. -*- C++ -*- -// Copyright (C) 1999, 2000 Red Hat. +// Copyright (C) 1999, 2000, 2001 Red Hat. // This file is part of SID and is licensed under the GPL. // See the file COPYING.SID for conditions for redistribution. @@ -776,7 +776,8 @@ gdb::restart_program () if (trace_gdbsid) cerr << "restart_program " << endl; - // XXX: what to do here? + // Drive restart pin so reset can be performed + this->restart_pin.drive (1); } @@ -1116,6 +1117,7 @@ gdb::gdb (): add_attribute ("deinit", & deinit_pin, "pin"); add_pin ("trap-code", & cpu_trap_code_pin); add_pin ("process-signal", & process_signal_pin); + add_pin ("restart", & restart_pin); add_pin ("gloss-process-signal", & gloss_process_signal_pin); add_pin ("remote-rx", & remote_rx_pin); add_attribute ("remote-rx", & remote_rx_pin, "pin"); diff --git a/sid/component/gdb/gdb.h b/sid/component/gdb/gdb.h index 0bb353702a..cac0162be5 100644 --- a/sid/component/gdb/gdb.h +++ b/sid/component/gdb/gdb.h @@ -1,6 +1,6 @@ // gdb.h - description. -*- C++ -*- -// Copyright (C) 1999, 2000 Red Hat. +// Copyright (C) 1999, 2000, 2001 Red Hat. // This file is part of SID and is licensed under the GPL. // See the file COPYING.SID for conditions for redistribution. @@ -115,6 +115,7 @@ private: vector host_schedulers; // turn target subsystem on/off output_pin process_signal_pin; // signal to cfgroot + output_pin restart_pin; // signal to hw-reset void target_power (bool on); // hw breakpoint tracking -- 2.11.0