Skip to content

Commit

Permalink
Added ATTR_COLD to common lifecycle methods for many files in src/dev…
Browse files Browse the repository at this point in the history
…ices. (#12822)
  • Loading branch information
holub authored Sep 26, 2024
1 parent 0125087 commit 48933ef
Show file tree
Hide file tree
Showing 2,975 changed files with 10,555 additions and 10,555 deletions.
8 changes: 4 additions & 4 deletions src/devices/bus/a1bus/a1bus.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ class a1bus_slot_device : public device_t, public device_single_card_slot_interf
a1bus_slot_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock);

// device_t implementation
virtual void device_resolve_objects() override;
virtual void device_start() override;
virtual void device_resolve_objects() override ATTR_COLD;
virtual void device_start() override ATTR_COLD;

// configuration
required_device<a1bus_device> m_a1bus;
Expand Down Expand Up @@ -78,8 +78,8 @@ class a1bus_device : public device_t
a1bus_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock);

// device_t implementation
virtual void device_start() override;
virtual void device_reset() override;
virtual void device_start() override ATTR_COLD;
virtual void device_reset() override ATTR_COLD;

// internal state
required_address_space m_space;
Expand Down
8 changes: 4 additions & 4 deletions src/devices/bus/a1bus/a1cassette.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ class a1bus_cassette_device:
protected:
a1bus_cassette_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock);

virtual void device_start() override;
virtual void device_reset() override;
virtual void device_start() override ATTR_COLD;
virtual void device_reset() override ATTR_COLD;
// optional information overrides
virtual void device_add_mconfig(machine_config &config) override;
virtual const tiny_rom_entry *device_rom_region() const override;
virtual void device_add_mconfig(machine_config &config) override ATTR_COLD;
virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD;


void cassette_toggle_output();
Expand Down
8 changes: 4 additions & 4 deletions src/devices/bus/a1bus/a1cffa.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@ class a1bus_cffa_device:
protected:
a1bus_cffa_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock);

virtual void device_start() override;
virtual void device_reset() override;
virtual void device_start() override ATTR_COLD;
virtual void device_reset() override ATTR_COLD;
// optional information overrides
virtual void device_add_mconfig(machine_config &config) override;
virtual const tiny_rom_entry *device_rom_region() const override;
virtual void device_add_mconfig(machine_config &config) override ATTR_COLD;
virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD;

required_device<ata_interface_device> m_ata;

Expand Down
4 changes: 2 additions & 2 deletions src/devices/bus/a2bus/4play.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ class a2bus_4play_device:
protected:
a2bus_4play_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock);

virtual void device_start() override;
virtual ioport_constructor device_input_ports() const override;
virtual void device_start() override ATTR_COLD;
virtual ioport_constructor device_input_ports() const override ATTR_COLD;

virtual uint8_t read_c0nx(uint8_t offset) override;

Expand Down
8 changes: 4 additions & 4 deletions src/devices/bus/a2bus/a2alfam2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ class a2bus_alfam2_device:
// construction/destruction
a2bus_alfam2_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock);

virtual void device_start() override;
virtual void device_reset() override;
virtual void device_add_mconfig(machine_config &config) override;
virtual void device_start() override ATTR_COLD;
virtual void device_reset() override ATTR_COLD;
virtual void device_add_mconfig(machine_config &config) override ATTR_COLD;

// overrides of standard a2bus slot functions
virtual uint8_t read_c0nx(uint8_t offset) override;
Expand All @@ -66,7 +66,7 @@ class a2bus_aesms_device : public a2bus_alfam2_device
}

protected:
virtual void device_add_mconfig(machine_config &config) override;
virtual void device_add_mconfig(machine_config &config) override ATTR_COLD;
};

/***************************************************************************
Expand Down
12 changes: 6 additions & 6 deletions src/devices/bus/a2bus/a2applicard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ class a2bus_applicard_device:
protected:
a2bus_applicard_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock);

virtual void device_start() override;
virtual void device_reset() override;
virtual const tiny_rom_entry *device_rom_region() const override;
virtual void device_add_mconfig(machine_config &config) override;
virtual void device_start() override ATTR_COLD;
virtual void device_reset() override ATTR_COLD;
virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD;
virtual void device_add_mconfig(machine_config &config) override ATTR_COLD;

// overrides of standard a2bus slot functions
virtual uint8_t read_c0nx(uint8_t offset) override;
Expand All @@ -71,8 +71,8 @@ class a2bus_applicard_device:
uint8_t dma_r(offs_t offset);
void dma_w(offs_t offset, uint8_t data);

void z80_io(address_map &map);
void z80_mem(address_map &map);
void z80_io(address_map &map) ATTR_COLD;
void z80_mem(address_map &map) ATTR_COLD;
};

/***************************************************************************
Expand Down
6 changes: 3 additions & 3 deletions src/devices/bus/a2bus/a2arcadebd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ class a2bus_arcboard_device:
protected:
a2bus_arcboard_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock);

virtual void device_start() override;
virtual void device_reset() override;
virtual void device_add_mconfig(machine_config &config) override;
virtual void device_start() override ATTR_COLD;
virtual void device_reset() override ATTR_COLD;
virtual void device_add_mconfig(machine_config &config) override ATTR_COLD;

// overrides of standard a2bus slot functions
virtual uint8_t read_c0nx(uint8_t offset) override;
Expand Down
8 changes: 4 additions & 4 deletions src/devices/bus/a2bus/a2bus.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ class a2bus_slot_device : public device_t, public device_single_card_slot_interf
a2bus_slot_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock);

// device_t implementation
virtual void device_resolve_objects() override;
virtual void device_start() override;
virtual void device_resolve_objects() override ATTR_COLD;
virtual void device_start() override ATTR_COLD;

// configuration
required_device<a2bus_device> m_a2bus;
Expand Down Expand Up @@ -107,8 +107,8 @@ class a2bus_device : public device_t
a2bus_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock);

// device_t implementation
virtual void device_start() override;
virtual void device_reset() override;
virtual void device_start() override ATTR_COLD;
virtual void device_reset() override ATTR_COLD;

// internal state
required_address_space m_maincpu_space;
Expand Down
10 changes: 5 additions & 5 deletions src/devices/bus/a2bus/a2cffa.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ class a2bus_cffa2000_device:
// construction/destruction
a2bus_cffa2000_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock);

virtual void device_start() override;
virtual void device_reset() override;
virtual void device_add_mconfig(machine_config &config) override;
virtual const tiny_rom_entry *device_rom_region() const override;
virtual void device_start() override ATTR_COLD;
virtual void device_reset() override ATTR_COLD;
virtual void device_add_mconfig(machine_config &config) override ATTR_COLD;
virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD;

// overrides of standard a2bus slot functions
virtual uint8_t read_c0nx(uint8_t offset) override;
Expand Down Expand Up @@ -86,7 +86,7 @@ class a2bus_cffa2_6502_device : public a2bus_cffa2000_device, public device_nvra
{
public:
a2bus_cffa2_6502_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
virtual const tiny_rom_entry *device_rom_region() const override;
virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD;

protected:
// device_config_nvram_interface overrides
Expand Down
8 changes: 4 additions & 4 deletions src/devices/bus/a2bus/a2corvus.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ class a2bus_corvus_device:
protected:
a2bus_corvus_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock);

virtual void device_start() override;
virtual void device_reset() override;
virtual void device_add_mconfig(machine_config &config) override;
virtual const tiny_rom_entry *device_rom_region() const override;
virtual void device_start() override ATTR_COLD;
virtual void device_reset() override ATTR_COLD;
virtual void device_add_mconfig(machine_config &config) override ATTR_COLD;
virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD;

// overrides of standard a2bus slot functions
virtual uint8_t read_c0nx(uint8_t offset) override;
Expand Down
20 changes: 10 additions & 10 deletions src/devices/bus/a2bus/a2diskiing.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ class diskiing_device:
// construction/destruction
diskiing_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock);

virtual void device_start() override;
virtual void device_reset() override;
virtual void device_add_mconfig(machine_config &config) override;
virtual const tiny_rom_entry *device_rom_region() const override;
virtual void device_start() override ATTR_COLD;
virtual void device_reset() override ATTR_COLD;
virtual void device_add_mconfig(machine_config &config) override ATTR_COLD;
virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD;

// overrides of standard a2bus slot functions
virtual uint8_t read_c0nx(uint8_t offset) override;
Expand Down Expand Up @@ -63,8 +63,8 @@ class a2bus_diskiing13_device: public diskiing_device
a2bus_diskiing13_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);

protected:
virtual void device_add_mconfig(machine_config &config) override;
virtual const tiny_rom_entry *device_rom_region() const override;
virtual void device_add_mconfig(machine_config &config) override ATTR_COLD;
virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD;

private:
static void floppy_formats(format_registration &fr);
Expand All @@ -76,9 +76,9 @@ class a2bus_applesurance_device: public diskiing_device
a2bus_applesurance_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);

protected:
virtual const tiny_rom_entry *device_rom_region() const override;
virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD;

virtual void device_reset() override;
virtual void device_reset() override ATTR_COLD;

virtual uint8_t read_cnxx(uint8_t offset) override;
virtual uint8_t read_c800(uint16_t offset) override;
Expand All @@ -103,7 +103,7 @@ class a2bus_agat7flop_device : public diskiing_device
a2bus_agat7flop_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);

protected:
virtual const tiny_rom_entry *device_rom_region() const override;
virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD;
};

class a2bus_agat9flop_device : public diskiing_device
Expand All @@ -112,7 +112,7 @@ class a2bus_agat9flop_device : public diskiing_device
a2bus_agat9flop_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);

protected:
virtual const tiny_rom_entry *device_rom_region() const override;
virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD;
};

// device type definition
Expand Down
4 changes: 2 additions & 2 deletions src/devices/bus/a2bus/a2dx1.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ class a2bus_dx1_device:
protected:
a2bus_dx1_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock);

virtual void device_start() override;
virtual void device_add_mconfig(machine_config &config) override;
virtual void device_start() override ATTR_COLD;
virtual void device_add_mconfig(machine_config &config) override ATTR_COLD;

// overrides of standard a2bus slot functions
virtual uint8_t read_c0nx(uint8_t offset) override;
Expand Down
4 changes: 2 additions & 2 deletions src/devices/bus/a2bus/a2eauxslot.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class a2eauxslot_slot_device : public device_t,
a2eauxslot_slot_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 0);

// device_t implementation
virtual void device_resolve_objects() override;
virtual void device_resolve_objects() override ATTR_COLD;
virtual void device_start() override { }

protected:
Expand Down Expand Up @@ -82,7 +82,7 @@ class a2eauxslot_device : public device_t
a2eauxslot_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock);

// device_t implementation
virtual void device_start() override;
virtual void device_start() override ATTR_COLD;

// internal state
required_address_space m_space;
Expand Down
6 changes: 3 additions & 3 deletions src/devices/bus/a2bus/a2echoii.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ class a2bus_echoii_device:
protected:
a2bus_echoii_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock);

virtual void device_start() override;
virtual void device_reset() override;
virtual void device_add_mconfig(machine_config &config) override;
virtual void device_start() override ATTR_COLD;
virtual void device_reset() override ATTR_COLD;
virtual void device_add_mconfig(machine_config &config) override ATTR_COLD;

// overrides of standard a2bus slot functions
virtual uint8_t read_c0nx(uint8_t offset) override;
Expand Down
4 changes: 2 additions & 2 deletions src/devices/bus/a2bus/a2eext80col.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ class a2eaux_ext80col_device:
protected:
a2eaux_ext80col_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock);

virtual void device_start() override;
virtual void device_reset() override;
virtual void device_start() override ATTR_COLD;
virtual void device_reset() override ATTR_COLD;

virtual u8 read_auxram(uint16_t offset) override;
virtual void write_auxram(uint16_t offset, u8 data) override;
Expand Down
4 changes: 2 additions & 2 deletions src/devices/bus/a2bus/a2eramworks3.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ class a2eaux_ramworks3_device:
protected:
a2eaux_ramworks3_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock);

virtual void device_start() override;
virtual void device_reset() override;
virtual void device_start() override ATTR_COLD;
virtual void device_reset() override ATTR_COLD;

virtual u8 read_auxram(uint16_t offset) override;
virtual void write_auxram(uint16_t offset, u8 data) override;
Expand Down
4 changes: 2 additions & 2 deletions src/devices/bus/a2bus/a2estd80col.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ class a2eaux_std80col_device:
protected:
a2eaux_std80col_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock);

virtual void device_start() override;
virtual void device_reset() override;
virtual void device_start() override ATTR_COLD;
virtual void device_reset() override ATTR_COLD;

virtual u8 read_auxram(uint16_t offset) override;
virtual void write_auxram(uint16_t offset, u8 data) override;
Expand Down
8 changes: 4 additions & 4 deletions src/devices/bus/a2bus/a2hsscsi.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ class a2bus_hsscsi_device:
protected:
a2bus_hsscsi_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock);

virtual void device_start() override;
virtual void device_reset() override;
virtual void device_add_mconfig(machine_config &config) override;
virtual const tiny_rom_entry *device_rom_region() const override;
virtual void device_start() override ATTR_COLD;
virtual void device_reset() override ATTR_COLD;
virtual void device_add_mconfig(machine_config &config) override ATTR_COLD;
virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD;

// overrides of standard a2bus slot functions
virtual uint8_t read_c0nx(uint8_t offset) override;
Expand Down
10 changes: 5 additions & 5 deletions src/devices/bus/a2bus/a2iwm.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ class a2bus_iwm_device:
// construction/destruction
a2bus_iwm_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock);

virtual void device_start() override;
virtual void device_reset() override;
virtual void device_add_mconfig(machine_config &config) override;
virtual void device_start() override ATTR_COLD;
virtual void device_reset() override ATTR_COLD;
virtual void device_add_mconfig(machine_config &config) override ATTR_COLD;

// overrides of standard a2bus slot functions
virtual uint8_t read_c0nx(u8 offset) override;
Expand All @@ -57,8 +57,8 @@ class a2bus_iwm_card_device: public a2bus_iwm_device
public:
a2bus_iwm_card_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);

virtual void device_start() override;
virtual const tiny_rom_entry *device_rom_region() const override;
virtual void device_start() override ATTR_COLD;
virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD;

virtual uint8_t read_cnxx(uint8_t offset) override;

Expand Down
14 changes: 7 additions & 7 deletions src/devices/bus/a2bus/a2mcms.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ class mcms_device : public device_t, public device_sound_interface

protected:
// device-level overrides
virtual void device_start() override;
virtual void device_reset() override;
virtual void device_start() override ATTR_COLD;
virtual void device_reset() override ATTR_COLD;

virtual void sound_stream_update(sound_stream &stream, std::vector<read_stream_view> const &inputs, std::vector<write_stream_view> &outputs) override;

Expand Down Expand Up @@ -77,9 +77,9 @@ class a2bus_mcms1_device:
protected:
a2bus_mcms1_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock);

virtual void device_start() override;
virtual void device_reset() override;
virtual void device_add_mconfig(machine_config &config) override;
virtual void device_start() override ATTR_COLD;
virtual void device_reset() override ATTR_COLD;
virtual void device_add_mconfig(machine_config &config) override ATTR_COLD;

// overrides of standard a2bus slot functions
virtual uint8_t read_c0nx(uint8_t offset) override;
Expand All @@ -103,8 +103,8 @@ class a2bus_mcms2_device:
protected:
a2bus_mcms2_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock);

virtual void device_start() override;
virtual void device_reset() override;
virtual void device_start() override ATTR_COLD;
virtual void device_reset() override ATTR_COLD;

// overrides of standard a2bus slot functions
virtual uint8_t read_c0nx(uint8_t offset) override;
Expand Down
Loading

0 comments on commit 48933ef

Please sign in to comment.