+2001-08-03 matthew green <mrg@redhat.com>
+
+ * cache.h (~cache_component): Add prototype.
+ * cacheutil.cxx (std::operator==, operator==): Move this into the
+ global name space.
+ (std::cerr, std::hex, std::setw, std::setfill, std::endl, std::dec):
+ Use these.
+ * cacheutil.h (std::operator==, operator==): Move this into the
+ global name space.
+
2001-07-13 Ben Elliston <bje@redhat.com>
* Makefile.am (check-local): Rename target from "checkme".
cache_component (unsigned asoctvty, unsigned cache_sz,
unsigned line_sz, cache_replacement_algorithm& replacer);
+ ~cache_component () throw();
+
template <typename DataType> bus::status
write_any (host_int_4 addr, DataType data);
#include "cacheutil.h"
bool
-std::operator== (const cache_tag& tag, const cache_line& line)
+operator== (const cache_tag& tag, const cache_line& line)
{
return (line.valid_p () && tag == line.tag ());
}
bool
-std::operator== (const cache_line& line, const cache_tag& tag)
+operator== (const cache_line& line, const cache_tag& tag)
{
return (line.valid_p () && tag == line.tag ());
}
return *this;
}
+using std::cerr;
+using std::hex;
+using std::setw;
+using std::setfill;
+using std::endl;
+using std::dec;
+
void
cache_line::dump () const
{
cache_line::cache_line (unsigned line_size)
:size (line_size), valid_bit (false), dirty_bit (false), lock_bit (false), atag (0)
{
- data = new byte[line_size];
+ data = new byte [line_size];
memset (data, 0, line_size);
}
cache_line::cache_line (unsigned line_size, cache_tag t)
:size (line_size), valid_bit (false), dirty_bit (false), lock_bit (false), atag (t)
{
- data = new byte[line_size];
+ data = new byte [line_size];
memset (data, 0, line_size);
}
-cache_line::cache_line (unsigned line_size, cache_tag t, vector<byte> initial_data)
+cache_line::cache_line (unsigned line_size, cache_tag t, std::vector <byte> initial_data)
:size (line_size), valid_bit (false), dirty_bit (false), lock_bit (false), atag (t)
{
assert (initial_data.size () == line_size);
- data = new byte[line_size];
+ data = new byte [line_size];
for (unsigned i = 0; i < line_size; i++)
data[i] = initial_data[i];
}
};
// Allow cache tags and a line's cache tag to be compared directly.
-
-bool std::operator== (const cache_tag&, const cache_line&);
-bool std::operator== (const cache_line&, const cache_tag&);
-
+bool operator== (const cache_tag&, const cache_line&);
+bool operator== (const cache_line&, const cache_tag&);
// A class from which all replacement algorithms should be derived.
+2001-08-03 matthew green <mrg@redhat.com>
+
+ * cgen-cpu.h (~cgen_bi_endian_cpu): Add throw() specifier.
+ * compCGEN.cxx (~cgen_bi_endian_cpu): Likewise.
+
2001-07-27 Dave Brolley <brolley@redhat.com>
* cgen-ops.h (ADDCDI): New function.
+2001-08-03 matthew green <mrg@redhat.com>
+
+ * arm7f.h (dtor): Add throw() specifier.
+
2001-07-13 Ben Elliston <bje@redhat.com>
* Makefile.am (check-local): Rename target from "checkme".
{
public:
arm7f_cpu ();
- ~arm7f_cpu () {}
+ ~arm7f_cpu () throw() {}
// Called by the semantic code to perform a branch.
// The result is the new address.
void end_trace ();
public:
- cgen_bi_endian_cpu();
- ~cgen_bi_endian_cpu();
+ cgen_bi_endian_cpu ();
+ ~cgen_bi_endian_cpu () throw();
public:
// rtl memory access methods
}
-cgen_bi_endian_cpu::~cgen_bi_endian_cpu ()
+cgen_bi_endian_cpu::~cgen_bi_endian_cpu () throw()
{
}
+2001-08-03 matthew green <mrg@redhat.com>
+
+ * m32rbf.h (dtor): Add throw() specifier.
+
2001-07-13 Ben Elliston <bje@redhat.com>
* Makefile.am (check-local): Rename target from "checkme".
public:
m32rbf_cpu ();
+ ~m32rbf_cpu () throw() { };
void set_pc (host_int_4 v)
{
this->hardware.h_pc = (PCADDR) v;
+2001-08-03 matthew green <mrg@redhat.com>
+
+ * components.h (~socketio): Add prototype.
+
2001-07-13 Ben Elliston <bje@redhat.com>
* Makefile.am (check-local): Rename target from "checkme".
public:
- socketio(bool server_p);
+ socketio (bool server_p);
+ ~socketio () throw();
};
+2001-08-03 matthew green <mrg@redhat.com>
+
+ * gdb.cxx (std::hex, std::setw, std::dec): Use these.
+ (dtor): Add throw() specifier.
+ * gdb.h (dtor): Add throw() specifier.
+
2001-07-30 Frank Ch. Eigler <fche@redhat.com>
* gdb.h (gdb::hw_breakpoint_pc_mask): New member variable.
}
}
+using std::hex;
+using std::setw;
+using std::dec;
int
gdb::process_set_reg (int reg)
-gdb::~gdb()
+gdb::~gdb() throw()
{
// Do nothing here; disconnection and gdbserv memory cleanup ought
// to have occurred during deinit / detach earlier.
{
public:
gdb();
- ~gdb();
+ ~gdb() throw();
private:
friend class callback_pin<gdb>;
+2001-08-03 matthew green <mrg@redhat.com>
+
+ * gloss.cxx (~gloss32): Add throw() specifier.
+ (gloss32::read): Use `std::min' not `min.'
+ * gloss.h (~gloss32, ~gloss64): Add throw() specifier.
+
2001-07-13 Ben Elliston <bje@redhat.com>
* Makefile.am (check-local): Rename target from "checkme".
fd_table = 0;
}
-gloss32::~gloss32()
+gloss32::~gloss32() throw()
{
if (host_ops)
delete host_ops;
if (rx_buffer.size() > 0)
{
- count_read = min (len, rx_buffer.size());
+ count_read = std::min (len, rx_buffer.size());
for (int i = 0; i < count_read; ++i)
{
c = rx_buffer.front();
public:
gloss32();
- virtual ~gloss32();
+ virtual ~gloss32() throw();
protected:
public:
gloss64();
- virtual ~gloss64();
+ virtual ~gloss64() throw();
protected:
+2001-08-03 matthew green <mrg@redhat.com>
+
+ * glue.cxx (~sequence_component): Add prototype.
+ (~attr_storage_component, ~probing_bus, ~bus_mux): Add throw()
+ specifier.
+
2001-07-13 Ben Elliston <bje@redhat.com>
* Makefile.am (check-local): Rename target from "checkme".
public:
- sequence_component(unsigned nc = 0);
+ sequence_component (unsigned nc = 0);
+ ~sequence_component () throw() { };
};
public:
attr_storage_component() {}
- ~attr_storage_component() {}
+ ~attr_storage_component() throw() {}
vector<string>
attribute_names() throw()
{
assert (this->prober);
}
- ~probing_bus () {}
+ ~probing_bus () throw() {}
};
add_pin ("switch", &switch_pin);
add_attribute ("switch", &switch_pin, "pin");
}
- ~bus_mux () {}
+ ~bus_mux () throw() {}
void handle_switch_pin (host_int_4 value)
{
+2001-08-03 matthew green <mrg@redhat.com>
+
+ * compIDE.cxx (~ide_hooking_register_bus): Add prototype.
+ (~ide_controller): Add throw() specifier.
+
2001-07-13 Ben Elliston <bje@redhat.com>
* Makefile.am (check-local): Rename target from "checkme".
public:
ide_hooking_register_bus(ide_controller* f): foe(f) {}
+ ~ide_hooking_register_bus () throw() {}
};
ide_controller_ctor_0();
}
- ~ide_controller() {}
+ ~ide_controller() throw() {}
};
+2001-08-03 matthew green <mrg@redhat.com>
+
+ * HD44780U.cxx (ctor): Remove unnecessary parens GCC 3.0 is
+ unable to deal with.
+ * HD44780U.h (dtor): Add throw() specifier.
+ * T6963C.cxx (ctor): Remove unnecessary parens GCC 3.0 is
+ unable to deal with.
+ * T6963C.h (dtor): Add throw() specifier.
+ * lcd-char-display.cxx (ctor): Remove unnecessary parens GCC 3.0 is
+ unable to deal with.
+ * lcd-char-display.h (dtor): Add throw() specifier.
+
2001-07-20 Ben Elliston <bje@redhat.com>
* lcd-char-display.cxx (set_pixel): Guard against w = nil.
extern void init_rom_5X10( unsigned char rom[][11] );
HD44780U :: HD44780U( bool use_japan_rom ) :
- busif( this, &(HD44780U::busRead), &(HD44780U::busWrite) ),
- refresh_sync( "refresh-sync", this, &(HD44780U::refresh) ),
+ busif( this, &HD44780U::busRead, &HD44780U::busWrite ),
+ refresh_sync( "refresh-sync", this, &HD44780U::refresh ),
trigger_mgr( this )
{
int i, j;
void reset();
- ~HD44780U() {}
+ ~HD44780U () throw() {}
// save & restore
extern void init_rom_t6963c( bool japanese, unsigned char rom[][8] );
T6963C :: T6963C( bool use_japan_rom ) :
- busif( this, &(T6963C::busRead), &(T6963C::busWrite) ),
- refresh_sync( "refresh-sync", this, &(T6963C::refresh) ),
+ busif( this, &T6963C::busRead, &T6963C::busWrite ),
+ refresh_sync( "refresh-sync", this, &T6963C::refresh ),
trigger_mgr( this )
{
add_pin( "row-col", &row_col );
void reset();
- ~T6963C() {}
+ ~T6963C() throw() {}
};
#endif // T6963C_DEF_H
public:
lcd_char_display();
- ~lcd_char_display();
+ ~lcd_char_display() throw ();
// Save & restore state
string save_state ();
};
lcd_char_display :: lcd_char_display() :
- row_col_pin( this, &(lcd_char_display::set_pixel) ),
- frame_pin( this, &(lcd_char_display::new_frame) ),
- init_pin( this, &(lcd_char_display::init) ),
+ row_col_pin( this, &lcd_char_display::set_pixel ),
+ frame_pin( this, &lcd_char_display::new_frame ),
+ init_pin( this, &lcd_char_display::init ),
trigger_mgr( this )
{
add_pin( "row-col", &row_col_pin );
#endif
}
-lcd_char_display :: ~lcd_char_display() {
+lcd_char_display :: ~lcd_char_display() throw () {
#ifdef HAVE_CURSES_H
endwin();
#endif
+2001-08-03 matthew green <mrg@redhat.com>
+
+ * hd-5X10.h (dtor): Add throw() specifier.
+ * hd-europe.h (dtor): Add throw() specifier.
+ * hd-one-line.h (dtor): Add throw() specifier.
+ * hd-tester.h (dtor): Add throw() specifier.
+ * hd-two-line.h (dtor): Add throw() specifier.
+ * t6963c-japan.h (dtor): Add throw() specifier.
+ * t6963c-tester.h (dtor): Add throw() specifier.
+
2001-08-01 Frank Ch. Eigler <fche@redhat.com>
* Makefile.am (all-local): Tolerate $srcdir==$builddir.
hd_5X10() { add_pin( "force-refresh", &refresh ); }
- ~hd_5X10() {}
+ ~hd_5X10() throw() {}
};
#endif // HD44780U_TESTER_DEF_H
hd_europe() {}
- ~hd_europe() {}
+ ~hd_europe() throw() {}
};
#endif // HD_EUROPE_DEF_H
hd_one_line() { add_pin( "force-refresh", &refresh ); }
- ~hd_one_line() {}
+ ~hd_one_line() throw () {}
};
#endif // HD_ONE_LINE_DEF_H
HD44780U_tester();
- ~HD44780U_tester() {}
+ ~HD44780U_tester() throw() {}
};
#endif // HD44780U_TESTER_DEF_H
hd_two_line() {}
- ~hd_two_line() {}
+ ~hd_two_line() throw() {}
};
#endif // HD_TWO_LINE_DEF_H
void run( host_int_4 );
- ~T6963C_tester() {}
+ ~T6963C_tester() throw() {}
};
#endif // T6963C_JAPAN_DEF_H
void run( host_int_4 );
- ~T6963C_tester() {}
+ ~T6963C_tester() throw() {}
};
#endif // T6963C_TESTER_DEF_H
+2001-08-03 matthew green <mrg@redhat.com>
+
+ * compLoader.cxx (~generic_loader): Add prototype.
+
2001-06-22 Ben Elliston <bje@redhat.com>
* compLoader.cxx (elf_loader::load_function): Don't loop while
& generic_loader::save_state,
& generic_loader::restore_state);
}
+ ~generic_loader() throw() { }
};
+2001-08-03 matthew green <mrg@redhat.com>
+
+ * compMapper.cxx (~generic_mapper_bus, ~generic_mapper): Add
+ throw() specifier.
+
2001-07-23 graydon hoare <graydon@redhat.com>
* compMapper.cxx (make_name_mapping): Support mapping
#undef SID_GB_WRITE
#undef SID_GB_READ
- ~generic_mapper_bus ();
+ ~generic_mapper_bus () throw ();
private:
generic_mapper* target;
mutable struct mapping_record* tlb;
};
-generic_mapper_bus::~generic_mapper_bus () {
+generic_mapper_bus::~generic_mapper_bus () throw () {
}
{
public:
generic_mapper ();
- ~generic_mapper () {}
+ ~generic_mapper () throw() {}
std::vector<string> accessor_names () throw();
component::status connect_accessor (const string& name, bus* bus) throw();
add_bus( "bus", &bus );
}
- ~Busif() {}
+ ~Busif() throw () {}
};
static vector<string>
+2001-08-03 matthew green <mrg@redhat.com>
+
+ * generic.cxx (~generic_memory): Add throw() specifier.
+ * generic.h (~generic_memory): Add throw() specifier.
+
2001-07-13 Ben Elliston <bje@redhat.com>
* Makefile.am (check-local): Rename target from "checkme".
}
-generic_memory::~generic_memory ()
+generic_memory::~generic_memory () throw()
{
assert (this->buffer);
if (this->mmapping_p)
{
public:
generic_memory() throw (bad_alloc);
- ~generic_memory();
+ ~generic_memory() throw ();
protected:
// memory buffers
+2001-08-03 matthew green <mrg@redhat.com>
+
+ * ps2.h (dtor): Add prototype.
+
2001-07-13 Ben Elliston <bje@redhat.com>
* Makefile.am (check-local): Rename target from "checkme".
{
public:
ParPort();
+ ~ParPort() throw ();
void reset(host_int_4);
private:
+2001-08-03 matthew green <mrg@redhat.com>
+
+ * gprof.cxx (~gprof_component): Add prototype.
+
2001-07-13 Ben Elliston <bje@redhat.com>
* Makefile.am (check-local): Rename target from "checkme".
add_attribute ("output-file-endianness", & this->output_file_format, "setting");
add_uni_relation ("target-component", & this->target_component);
}
+ ~gprof_component () throw () { }
};
+2001-08-03 matthew green <mrg@redhat.com>
+
+ * components.h (~ds1642): Add prototype.
+ (~sidrtc): Add throw() specifier.
+
2001-07-13 Ben Elliston <bje@redhat.com>
* Makefile.am (check-local): Rename target from "checkme".
{
public:
ds1642();
+ ~ds1642() throw () { }
protected:
virtual bus::status read_7f8(host_int_4 addr, host_int_1& data);
public:
sidrtc();
- ~sidrtc() {}
+ ~sidrtc() throw () {}
};
+2001-08-03 matthew green <mrg@redhat.com>
+
+ * compSched.cxx (~scheduler_component): Add prototype.
+ (~scheduler_client, ~scheduler_component_base): Add throw() specifier.
+
2001-07-13 Ben Elliston <bje@redhat.com>
* Makefile.am (check-local): Rename target from "checkme".
}
public:
- ~scheduler_client()
+ ~scheduler_client() throw ()
{
// unschedule my events
set_time (0);
scheduler_component_base():
recursion_limited ("advancing", 1)
{}
- ~scheduler_component_base() {}
+ ~scheduler_component_base() throw () {}
};
scheduler_component_ctor_2();
scheduler_component_ctor_3();
}
+ ~scheduler_component() throw () { }
};
+2001-08-03 matthew green <mrg@redhat.com>
+
+ * arm7t-timer.h (dtor): Add prototype.
+
2001-07-06 Frank Ch. Eigler <fche@redhat.com>
* Makefile.am (ACLOCAL_AMFLAGS): Define.
{
public:
armTimer();
+ ~armTimer() throw () { }
private:
class bus_interface: public word_bus<little_int_4>
+2001-08-03 matthew green <mrg@redhat.com>
+
+ * Uart.cxx (ctor): Remove unnecessary parens GCC 3.0 is unable to
+ deal with.
+ * Uart.h (dtor): Add throw() specifier.
+
2000-11-21 Frank Ch. Eigler <fche@redhat.com>
* Makefile.in: Regenerated.
Uart :: Uart()
:triggerpoint_manager(this),
- busif( this, &(Uart::busReadHandler), &(Uart::busWriteHandler) ),
+ busif( this, &Uart::busReadHandler, &Uart::busWriteHandler ),
sin( this, &Uart::sinHandler ),
- reset_pin( this, &(Uart::reset) ),
+ reset_pin( this, &Uart::reset ),
rx_timeout( "rx-timeout", this, &Uart::rxWatchdog ),
tx_timeout( "tx-timeout", this, &Uart::txWatchdog )
{
public:
Uart();
- ~Uart() {}
+ ~Uart() throw () {}
void reset( host_int_4 );
};
+2001-08-03 matthew green <mrg@redhat.com>
+
+ * Devices.h (~DeviceDriver): Add throw() specifier.
+
2000-11-21 Frank Ch. Eigler <fche@redhat.com>
* Makefile.in: Regenerated.
void write( char *s );
int read( char *buf );
- ~DeviceDriver() {}
+ ~DeviceDriver() throw () {}
};
class SerialSink : public virtual component,
+2001-08-03 matthew green <mrg@redhat.com>
+
+ * sidbusutil.h (~control_register_bank): Add missing prototype.
+ * sidcpuutil.h (basic_cpu::new, basic_cpu::delete): Fix namespace
+ issues.
+
2001-07-12 matthew green <mrg@redhat.com>
* sidattrutil.h (attribute_coder_base, attribute_coder_virtual,
sid::host_int_4 address);
void add_readwrite_register(control_register<DataType>* reg,
sid::host_int_4 address);
+ ~control_register_bank () throw () { }
private:
typedef std::vector<control_register<DataType>*> reg_vector;
public:
void* operator new (size_t sz)
{
- void* p = std::operator new (sz);
+ void* p = ::operator new (sz);
// Initialize the object with garbage, to ease detection of missing initialization.
char* q = (char*) p;
char deadbeef[] = { 0xde, 0xad, 0xbe, 0xef };
}
void operator delete (void* p)
{
- std::operator delete (p);
+ ::operator delete (p);
}
// recursion protection
+2001-08-03 matthew green <mrg@redhat.com>
+
+ * timer.cxx (~Timer): Add prototype.
+
2000-11-21 Frank Ch. Eigler <fche@redhat.com>
* configure, Makefile.in, aclocal.m4: Regenerated.
public:
Timer()
:scheduler_pin(0), clock_pin(this), bus(this), enabled(false) { }
+ ~Timer() throw () { }
// Provide implementations for abstract methods in sid::component.
// See include/sidcomp.h.