Main Page | Modules | Class Hierarchy | Class List | File List | Class Members | File Members | Related Pages | Examples

ac_gdb_interface.H

Go to the documentation of this file.
00001 
00158 #ifndef _AC_GDB_INTERFACE_H_
00159 #define _AC_GDB_INTERFACE_H_
00160 
00161 #include "archc.H"
00162 
00163 /* 
00164  * NOTE: 
00165  *
00166  * Declaring a method:
00167  *         virtual method=0
00168  * makes the class pure virtual, meaning that all methods MUST be implemented.
00169  */
00170 
00174 class AC_GDB_Interface {
00175 public:
00176 
00177   /* Register Support */
00178 
00184   virtual int nRegs() = 0; 
00185   
00193   virtual ac_word reg_read( int reg ) = 0;
00194   
00201   virtual void reg_write( int reg, ac_word value ) = 0;
00202   
00203 
00204 
00205   /* Memory Access *************************************************************/
00206   
00214   virtual unsigned char  mem_read( unsigned int address ) = 0;
00215   
00222   virtual void mem_write( unsigned int address, unsigned char byte ) = 0;
00223 };
00224 
00225 #endif /* _AC_GDB_INTERFACE_H_ */

Generated on Thu Jun 24 08:30:05 2004 for ArchC by doxygen 1.3.4