OSDN Git Service

2001-01-03 Jeff Johnston <jjohnstn@redhat.com>
authorjjohnstn <jjohnstn>
Thu, 4 Jan 2001 01:00:11 +0000 (01:00 +0000)
committerjjohnstn <jjohnstn>
Thu, 4 Jan 2001 01:00:11 +0000 (01:00 +0000)
        * gdb.cxx (restart_program): Added code to drive
        new "restart" output pin.
        * gdb.h (restart_pin): New output pin.

sid/component/gdb/ChangeLog
sid/component/gdb/gdb.cxx
sid/component/gdb/gdb.h

index f048dbf..9bd1f61 100644 (file)
@@ -1,3 +1,9 @@
+2001-01-03  Jeff Johnston  <jjohnstn@redhat.com>
+
+        * 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  <fche@redhat.com>
 
        * Makefile.in: Regenerated.
index 2efa308..725d42d 100644 (file)
@@ -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");
index 0bb3537..cac0162 100644 (file)
@@ -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<component*> 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