diff --git a/android-project/app/src/main/AndroidManifest.xml b/android-project/app/src/main/AndroidManifest.xml index fda98bb687e..495e63f4435 100644 --- a/android-project/app/src/main/AndroidManifest.xml +++ b/android-project/app/src/main/AndroidManifest.xml @@ -4,8 +4,8 @@ --> diff --git a/docs/source/conf.py b/docs/source/conf.py index fbdcc2a0926..87fbe33ec0d 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -63,9 +63,9 @@ # built documents. # # The short X.Y version. -version = '0.269' +version = '0.270' # The full version, including alpha/beta/rc tags. -release = '0.269' +release = '0.270' # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. diff --git a/hash/apple2_cass.xml b/hash/apple2_cass.xml index ce300c87069..7f29ee43edb 100644 --- a/hash/apple2_cass.xml +++ b/hash/apple2_cass.xml @@ -2983,4 +2983,21 @@ To load and run a tape: + + Wheeler Dealers + 1978 + Speakeasy Software + + + + + + + + + + + + + diff --git a/hash/apple2_flop_clcracked.xml b/hash/apple2_flop_clcracked.xml index 956907f2717..6f599c85a81 100644 --- a/hash/apple2_flop_clcracked.xml +++ b/hash/apple2_flop_clcracked.xml @@ -1016,7 +1016,7 @@ license:CC0-1.0 Championship Lode Runner (cleanly cracked) 1984 - Broderbund Software + Brøderbund Software @@ -1947,7 +1947,7 @@ license:CC0-1.0 Gumball (cleanly cracked) 1983 - Broderbund Software + Brøderbund Software @@ -2795,80 +2795,6 @@ license:CC0-1.0 - - Animate (cleanly cracked) - 1986 - Broderbund Software - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Animate (imperfect clean crack) - 1986 - Broderbund Software - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Ankh (cleanly cracked) 1983 @@ -3375,51 +3301,6 @@ license:CC0-1.0 - - Bank Street Writer II (cleanly cracked) - 1984 - Scholastic - - - - - - - - - - - - - - - - - Bank Street Writer II (imperfect clean crack) - 1984 - Scholastic - - - - - - - - - - - - - - - Banner Books - All Along The Alphabet (cleanly cracked) 1992 @@ -4411,9 +4292,9 @@ license:CC0-1.0 Centauri Alliance (cleanly cracked) 1990 - Broderbund Software + Brøderbund Software - + @@ -4459,7 +4340,7 @@ license:CC0-1.0 Centauri Alliance (imperfect clean crack) 1990 - Broderbund Software + Brøderbund Software + @@ -11760,7 +11608,7 @@ license:CC0-1.0 Lode Runner (cleanly cracked) 1983 - Broderbund Software + Brøderbund Software @@ -12891,45 +12739,6 @@ license:CC0-1.0 - - MECC-A114 Writing an Opinion Paper (version 1.1) (cleanly cracked) - 1985 - MECC - - - - - - - - - - - MECC-A116 Puzzles and Posters (version 1.2) (cleanly cracked) - 1984 - MECC - - - - - - - - - - - MECC-A126 Study Guide (version 1.4) (cleanly cracked) - 1984 - MECC - - - - - - - - - MECC-A132 MECC Writer (version 1.1a) (cleanly cracked) 1985 @@ -13527,19 +13336,6 @@ license:CC0-1.0 - - MECC-A824 Classification (version 1.1) (cleanly cracked) - 1983 - MECC - - - - - - - - - MECC-H111A Spare Moments Solitaire (cleanly cracked) 1985 @@ -16981,7 +16777,7 @@ license:CC0-1.0 Choplifter (cleanly cracked) 1982 - Broderbund Software + Brøderbund Software @@ -17106,7 +16902,7 @@ license:CC0-1.0 Labyrinth (cleanly cracked) 1982 - Broderbund Software + Brøderbund Software @@ -17142,26 +16938,6 @@ license:CC0-1.0 - - Masquerade (cleanly cracked) - 1983 - Phoenix Software - - - - - - - - - - - - - - - - Math Strategy (cleanly cracked) 1981 @@ -17322,7 +17098,7 @@ license:CC0-1.0 Seafox (cleanly cracked) 1982 - Broderbund Software + Brøderbund Software @@ -17370,7 +17146,7 @@ license:CC0-1.0 Serpentine (cleanly cracked) 1982 - Broderbund Software + Brøderbund Software @@ -17383,7 +17159,7 @@ license:CC0-1.0 Sky Blazer (cleanly cracked) 1981 - Broderbund Software + Brøderbund Software @@ -17409,7 +17185,7 @@ license:CC0-1.0 Star Blazer (cleanly cracked) 1982 - Broderbund Software + Brøderbund Software @@ -17554,21 +17330,6 @@ license:CC0-1.0 - - Zoom Grafix (Revision 25-MAY-83) (cleanly cracked) - 1982 - Phoenix Software - - - - - - - - - - A Puff of Air: The Respiratory System (cleanly cracked) 1983 @@ -17582,39 +17343,6 @@ license:CC0-1.0 - - A Week That Changed The World (cleanly cracked) - 1986 - Educational Publishing Concepts - - - - - - - - - - - - - - - - - - Bats in the Belfry (cleanly cracked) - 1983 - Phoenix Software - - - - - - - - - Buzz Bang Harvey (cleanly cracked) 1984 @@ -17996,46 +17724,6 @@ license:CC0-1.0 - - Moses Leads His People (cleanly cracked) - 1986 - Educational Publishing Concepts - - - - - - - - - - - - - - - - - - Paul's Missionary Journeys (cleanly cracked) - 1986 - Educational Publishing Concepts - - - - - - - - - - - - - - - - Photar (cleanly cracked) 1981 @@ -18286,36 +17974,6 @@ license:CC0-1.0 - - Zoom Grafix (version 26-JAN-82) (cleanly cracked) - 1982 - Phoenix Software - - - - - - - - - - - - Zoom Grafix (version 29-APR-82) (cleanly cracked) - 1982 - Phoenix Software - - - - - - - - - - Zork III (Release 10 / 820818) (cleanly cracked) 1982 @@ -18865,7 +18523,7 @@ license:CC0-1.0 The Ancient Art of War (cleanly cracked) 1989 - Broderbund Software + Brøderbund Software @@ -19260,19 +18918,6 @@ license:CC0-1.0 - - Zoom Grafix Second Edition (cleanly cracked) - 1982 - Phoenix Software - - - - - - - - - Video Title Shop (cleanly cracked) 1987 @@ -19699,7 +19344,7 @@ license:CC0-1.0 The Playroom (cleanly cracked) 1989 - Broderbund Software + Brøderbund Software @@ -22186,46 +21831,6 @@ license:CC0-1.0 - - The Early Church (cleanly cracked) - 1984 - Baker Book House - - - - - - - - - - - - - - - - - - Searching for a King (cleanly cracked) - 1984 - Baker Book House - - - - - - - - - - - - - - - - WonderQuest (cleanly cracked) 1984 @@ -23532,7 +23137,7 @@ license:CC0-1.0 VCR Companion (version 1988-09-28) (cleanly cracked) 1988 - Broderbund Software + Brøderbund Software @@ -23659,19 +23264,6 @@ license:CC0-1.0 - - Return of Heracles (cleanly cracked) - 1983 - Electronic Arts - - - - - - - - - Robot Rascals (cleanly cracked) 1986 @@ -24843,7 +24435,7 @@ license:CC0-1.0 The Print Shop Companion (version 1.2) (cleanly cracked) 1985 - Broderbund Software + Brøderbund Software @@ -25445,7 +25037,7 @@ license:CC0-1.0 The Mask of the Sun (version 2.1) (cleanly cracked) 1982 - Broderbund Software + Brøderbund Software @@ -25465,7 +25057,7 @@ license:CC0-1.0 The Serpent's Star (version 1.0) (cleanly cracked) 1983 - Broderbund Software + Brøderbund Software @@ -26291,19 +25883,6 @@ license:CC0-1.0 - - The Usurper Book Three: The Mines of Qyntarr (cleanly cracked) - 1985 - Sir-Tech - - - - - - - - - The Home Accountant (version 2.0) (cleanly cracked) 1981 @@ -27504,19 +27083,6 @@ license:CC0-1.0 - - The Queen of Phobos (cleanly cracked) - 1982 - Phoenix Software - - - - - - - - - Zork I (Revision 5) (cleanly cracked) 1980 @@ -28785,21 +28351,6 @@ license:CC0-1.0 - - Zoom Grafix 05-OCT-83 (cleanly cracked) - 1983 - Phoenix Software - - - - - - - - - - A Bird's Eye View of The Main Idea (cleanly cracked) 1986 @@ -30025,7 +29576,7 @@ license:CC0-1.0 - MIDI/8 Plus (version 1.2) (cleanly cracked) + MIDI/8 Plus for MPU-401 (version 1.2) (cleanly cracked) 1985 Passport Designs, Inc @@ -30124,26 +29675,6 @@ license:CC0-1.0 - - The Boy Jesus (cleanly cracked) - 1984 - Educational Publishing Concepts - - - - - - - - - - - - - - - - MicroChess (version 2.0) (cleanly cracked) 1978 @@ -30296,19 +29827,6 @@ license:CC0-1.0 - - Wiziprint (version 2.01) (cleanly cracked) - 1982 - Sir-Tech - - - - - - - - - Life Science (cleanly cracked) 1987 @@ -30824,19 +30342,6 @@ license:CC0-1.0 - - MECC-A824 Classification (version 1.0) (cleanly cracked) - 1983 - MECC - - - - - - - - - Dinosaur Construction Kit: Tyrannosaurus Rex (cleanly cracked) 1987 @@ -32638,105 +32143,6 @@ license:CC0-1.0 - - MECC-A103 Smoking: It's Up To You (cleanly cracked) - 1984 - MECC - - - - - - - - - - - MECC-A104 Payroll System: A Business Simulation (cleanly cracked) - 1985 - MECC - - - - - - - - - - - MECC-A106 Word Herd: Sound-Alikes (version 1.0) (cleanly cracked) - 1984 - MECC - - - - - - - - - - - MECC-A107 Ducks (version 1.1) (cleanly cracked) - 1984 - MECC - - - - - - - - - - - MECC-A110 Exploring Sorting Routines (version 1.1) (cleanly cracked) - 1984 - MECC - - - - - - - - - - - MECC-A111 Pets, Ltd. (version 1.0) (cleanly cracked) - 1984 - MECC - - - - - - - - - - - MECC-A130 MECC Keyboarding Primer (version 1.0) (cleanly cracked) - 1985 - MECC - - - - - - - - - - - - - - - - - MECC-A132 MECC Writer (version 1.1) (cleanly cracked) 1985 @@ -32828,132 +32234,6 @@ license:CC0-1.0 - - MECC-A112 Word Wizards (version 1.0) (cleanly cracked) - 1984 - MECC - - - - - - - - - - - - MECC-A112 Word Wizards (version 1.2) (cleanly cracked) - 1984 - MECC - - - - - - - - - - - - MECC-A114 Writing an Opinion Paper (version 1.0) (cleanly cracked) - 1984 - MECC - - - - - - - - - - - - MECC-A112 Word Wizards (version 1.3) (cleanly cracked) - 1984 - MECC - - - - - - - - - - - - MECC-A115 Right of Way (version 1.1) (cleanly cracked) - 1984 - MECC - - - - - - - - - - - - MECC-A116 Puzzles and Posters (version 1.1) (cleanly cracked) - 1984 - MECC - - - - - - - - - - - - MECC-A116 Puzzles and Posters (version 1.3) (cleanly cracked) - 1984 - MECC - - - - - - - - - - - - MECC-A116 Puzzles and Posters (version 1.6) (cleanly cracked) - 1984 - MECC - - - - - - - - - - - - MECC-A119 Master Spell (version 1.0) (cleanly cracked) - 1984 - MECC - - - - - - - - - - MECC-A137 MECC Graph (version 1.1) (cleanly cracked) 1985 @@ -32968,139 +32248,6 @@ license:CC0-1.0 - - MECC-A119 Master Spell (version 1.3) (cleanly cracked) - 1984 - MECC - - - - - - - - - - - - MECC-A120 Word Herd: Look-Alikes (version 1.0) (cleanly cracked) - 1984 - MECC - - - - - - - - - - - - MECC-A121 Jeux Mathematiques Classiques (version 1.0) (cleanly cracked) - 1984 - MECC - - - - - - - - - - - - MECC-A123 Prime Numbers (version 1.0) (cleanly cracked) - 1984 - MECC - - - - - - - - - - - - MECC-A124 Estimation (version 1.0) (cleanly cracked) - 1984 - MECC - - - - - - - - - - - - MECC-A126 Study Guide (version 1.5) (cleanly cracked) - 1984 - MECC - - - - - - - - - - - - - - - - - - - MECC-A127 Salt and You (version 1.0) (cleanly cracked) - 1984 - MECC - - - - - - - - - - - - MECC-A128 Discovery Lab (version 1.0) (cleanly cracked) - 1984 - MECC - - - - - - - - - - - - MECC-A129 Data Handler (version 1.0) (cleanly cracked) - 1983 - MECC - - - - - - - - - - MECC-A343 Science Giants (version 1.0) (cleanly cracked) 1994 @@ -33747,36 +32894,6 @@ license:CC0-1.0 - - MECC-A258 Estimation: Quick Solve I (version 1.0) (cleanly cracked) - 1990 - MECC - - - - - - - - - - - - - MECC-A259 Estimation: Quick Solve II (version 1.0) (cleanly cracked) - 1990 - MECC - - - - - - - - - - - MECC-A262 Probability Lab (version 1.0) (cleanly cracked) 1990 @@ -33985,36 +33102,6 @@ license:CC0-1.0 - - MECC-A295 Estimation Strategies (version 1.0) (cleanly cracked) - 1991 - MECC - - - - - - - - - - - - - MECC-A296 Estimation Activities (version 1.0) (cleanly cracked) - 1991 - MECC - - - - - - - - - - - MECC-A302 Fish School (version 1.0) (cleanly cracked) 1992 @@ -36867,9 +35954,9 @@ license:CC0-1.0 The Ancient Art of War at Sea (cleanly cracked) 1988 - Broderbund Software + Brøderbund Software - + @@ -38628,20 +37715,6 @@ license:CC0-1.0 - - Measuring Economic Activity (cleanly cracked) - 1985 - Focus Media - - - - - - - - - - Media Magic: The Melody Studio (cleanly cracked) 1990 @@ -39936,6 +39009,30 @@ license:CC0-1.0 + + A Week That Changed The World (4am crack) + 1986 + Educational Publishing Concepts + + + + + + + + + + + + + + + + + + + + Ace Detective (revision 1) (4am crack) 1987 @@ -41013,6 +40110,53 @@ license:CC0-1.0 + + Animate (4am crack) + 1986 + Brøderbund Software + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Arcademic Drill Builder: Master Match (4am crack) 1983 @@ -41757,6 +40901,22 @@ license:CC0-1.0 + + Bats in the Belfry (4am crack) + 1983 + Phoenix Software + + + + + + + + + + + + Battling Bugs and Concentraction (revision 1) (4am crack) 1982 @@ -42605,6 +41765,42 @@ license:CC0-1.0 + + Classification Volume 1 (A-824 version 1.0) (4am crack) + 1983 + MECC + + + + + + + + + + + + + + + + Classification Volume 1 (A-824 version 1.1) (4am crack) + 1983 + MECC + + + + + + + + + + + + + + Classmate (version 2.0) (4am crack) 1985 @@ -44141,6 +43337,24 @@ license:CC0-1.0 + + Data Handler (A-129 version 1.0) (4am crack) + 1983 + MECC + + + + + + + + + + + + + + Dataquest: Carmen's North Dakota Almanac Database (version 1.0) (4am crack) 1989 @@ -44749,6 +43963,24 @@ license:CC0-1.0 + + Discovery Lab (A-128 version 1.0) (4am crack) + 1984 + MECC + + + + + + + + + + + + + + Division Skills (4am crack) 1982 @@ -44866,6 +44098,24 @@ license:CC0-1.0 + + Ducks (A-107 version 1.1) (4am crack) + 1984 + MECC + + + + + + + + + + + + + + Dueling Digits (4am and san inc crack) 1982 @@ -45032,6 +44282,30 @@ license:CC0-1.0 + + Early Heroes of the Bible (4am crack) + 1984 + Educational Publishing Concepts + + + + + + + + + + + + + + + + + + + + Earthquakes and Volcanoes (4am crack) 1989 @@ -45249,6 +44523,96 @@ license:CC0-1.0 + + Estimation (A-124 version 1.0) (4am crack) + 1984 + MECC + + + + + + + + + + + + + + + + Estimation Collection: Estimation Activities (A-296 version 1.0) (4am crack) + 1991 + MECC + + + + + + + + + + + + + + + + Estimation Collection: Estimation Strategies (A-295 version 1.0) (4am crack) + 1991 + MECC + + + + + + + + + + + + + + + + Estimation Collection: Estimation: Quick Solve I (A-258 version 1.0) (version 1.0) (4am crack) + 1990 + MECC + + + + + + + + + + + + + + + + Estimation Collection: Estimation: Quick Solve II (A-259 version 1.0) (4am crack) + 1990 + MECC + + + + + + + + + + + + + + Excel-A-Read (4am crack) 1985 @@ -45265,6 +44629,24 @@ license:CC0-1.0 + + Exploring Sorting Routines (version 1.1) (4am crack) + 1984 + MECC + + + + + + + + + + + + + + Extra! Extra! (Milton Bradley) (version 1984) (4am crack) 1984 @@ -46921,6 +46303,25 @@ license:CC0-1.0 + + Jeux Mathématiques Classiques (French) (A-121 version 1.0) (4am crack) + 1984 + MECC + + + + + + + + + + + + + + + Joe Theismann's Pro Football (4am crack) 1985 @@ -47000,6 +46401,49 @@ license:CC0-1.0 + + Keyboarding Series: MECC Keyboarding Master: Games and Drills (Student Program) (A-131 version 1.1) (4am crack) + 1985 + MECC + + + + + + + + + + + + + + + + Keyboarding Series: MECC Keyboarding Primer (Student Program) (A-130 version 1.0) (4am crack) + 1985 + MECC + + + + + + + + + + + + + + + + + + + + + Kid-Leidoscope (4am crack) 1990 @@ -48388,6 +47832,65 @@ license:CC0-1.0 + + Masquerade (4am crack) + 1983 + Phoenix Software + + + + + + + + + + + + + + + + + + + + + Master Spell (A-119 version 1.0) (4am crack) + 1984 + MECC + + + + + + + + + + + + + + + + Master Spell (A-119 version 1.3) (4am crack) + 1984 + MECC + + + + + + + + + + + + + + Mastering Math Series 1: Early Addition (A-788 version 1.0) (4am crack) 1983 @@ -49375,6 +48878,22 @@ license:CC0-1.0 + + Measuring Economic Activity (4am crack) + 1985 + Focus Media + + + + + + + + + + + + MECC Dataquest: The Presidents (A-140 version 1.1) (4am crack) 1985 @@ -49477,24 +48996,6 @@ license:CC0-1.0 - - MECC Keyboarding Master: Games and Drills (Student Program) (A-131 version 1.1) (4am crack) - 1985 - MECC - - - - - - - - - - - - - - Medalist Series: Black Americans (version 04.13.84) (4am crack) 1983 @@ -49997,6 +49498,30 @@ license:CC0-1.0 + + Moses Leads His People (4am crack) + 1986 + Educational Publishing Concepts + + + + + + + + + + + + + + + + + + + + Multidimensional Personality Evaluation (4am crack) 1983 @@ -50367,6 +49892,48 @@ license:CC0-1.0 + + Paul's Missionary Journeys (4am crack) + 1986 + Educational Publishing Concepts + + + + + + + + + + + + + + + + + + + + + + Payroll System: A Business Simulation (A-104 version 1.2) (4am crack) + 1985 + MECC + + + + + + + + + + + + + + Peanuts Math Matcher (4am crack) 1985 @@ -50547,6 +50114,21 @@ license:CC0-1.0 + + Persona's Communicate and Win (4am crack) + ???? + Phoenix Software + + + + + + + + + + + Personality Profile 2 (4am crack) 1988 @@ -50581,6 +50163,24 @@ license:CC0-1.0 + + Pets, Ltd. (A-111 version 1.0) (4am crack) + 1984 + MECC + + + + + + + + + + + + + + Phantasie (version 1.0) (4am and san inc crack) 1984 @@ -51129,6 +50729,24 @@ license:CC0-1.0 + + Prime Numbers (A-123 version 1.0) (4am crack) + 1984 + MECC + + + + + + + + + + + + + + Pro Golf Challenge (4am crack) 1983 @@ -51364,6 +50982,78 @@ license:CC0-1.0 + + Puzzles and Posters (A-116 version 1.1) (4am crack) + 1984 + MECC + + + + + + + + + + + + + + + + Puzzles and Posters (A-116 version 1.2) (4am crack) + 1984 + MECC + + + + + + + + + + + + + + + + Puzzles and Posters (A-116 version 1.3) (4am crack) + 1984 + MECC + + + + + + + + + + + + + + + + Puzzles and Posters (A-116 version 1.6) (4am crack) + 1984 + MECC + + + + + + + + + + + + + + Questprobe featuring Spider-Man (version B-258) (4am crack) 1985 @@ -52057,6 +51747,24 @@ license:CC0-1.0 + + Return of Heracles (Electronic Arts) (4am and san inc crack) + 1983 + Electronic Arts + + + + + + + + + + + + + + Return to Reading: Charlotte's Web (4am crack) 1986 @@ -52258,6 +51966,24 @@ license:CC0-1.0 + + Right of Way (A-115 version 1.1) (4am crack) + 1984 + MECC + + + + + + + + + + + + + + RoboMath (revision 1) (4am crack) 1985 @@ -52403,6 +52129,24 @@ license:CC0-1.0 + + Salt and You (A-127 version 1.0) (4am crack) + 1984 + MECC + + + + + + + + + + + + + + Scientific Simulations (version 1.0) (4am crack) 1983 @@ -52653,6 +52397,30 @@ license:CC0-1.0 + + Searching for a King (4am crack) + 1984 + Educational Publishing Concepts + + + + + + + + + + + + + + + + + + + + Sentence Diagramming (4am crack) 1985 @@ -52912,6 +52680,24 @@ license:CC0-1.0 + + Smoking: It's Up To You (A-103 version 1.0) (4am crack) + 1984 + MECC + + + + + + + + + + + + + + Snooper Troops 1: The case of: The Granite Point Ghost (revision 1) (4am crack) 1982 @@ -54382,6 +54168,49 @@ license:CC0-1.0 + + Study Guide (A-126 version 1.4) (4am crack) + 1984 + MECC + + + + + + + + + + + + + + + + Study Guide (A-126 version 1.5) (4am crack) + 1984 + MECC + + + + + + + + + + + + + + + + + + + + + Success with Algebra: Advanced Linear Equations (4am crack) 1984 @@ -54726,6 +54555,42 @@ license:CC0-1.0 + + The Bank Street Writer Expanded (version 2.2) (4am crack) + 1984 + Scholastic + + + + + + + + + + + + + + + + The Bank Street Writer Expanded Tutorial (version 2.2) (4am crack) + 1984 + Scholastic + + + + + + + + + + + + + + The Banking Tutorial (version 5.2) (4am crack) 1983 @@ -54830,6 +54695,30 @@ license:CC0-1.0 + + The Boy Jesus (4am crack) + 1984 + Educational Publishing Concepts + + + + + + + + + + + + + + + + + + + + The Counting Bee (version 1.1, 26-FEB-82) (4am crack) 1981 @@ -54903,6 +54792,30 @@ license:CC0-1.0 + + The Early Church (4am crack) + 1984 + Educational Publishing Concepts + + + + + + + + + + + + + + + + + + + + The Electric Crayon: ABCs (4am crack) 1986 @@ -55266,6 +55179,22 @@ license:CC0-1.0 + + The Queen of Phobos (4am crack) + 1982 + Phoenix Software + + + + + + + + + + + + The School Speller: Magic Slate II: 40-Column Apple //e Version (version 1.0) (4am crack) 1989 @@ -55678,7 +55607,7 @@ license:CC0-1.0 - The Time Tunnel: The Presidents (4am crack) + The Time Tunnel: The America Series: The Presidents (4am crack) 1985 Focus Media @@ -55744,6 +55673,22 @@ license:CC0-1.0 + + The Usurper Book Three: The Mines of Qyntarr (4am crack) + 1985 + Sir-Tech Software + + + + + + + + + + + + The U.S. Constitution: Nationalism and Federalism (version 1984) (4am crack) 1984 @@ -57138,6 +57083,59 @@ license:CC0-1.0 + + Wiziprint (version 2.01 20-AUG-83) (4am crack) + 1982 + Sir-Tech Software + + + + + + + + + + + + + + + Word Herd: Look-Alikes (A-120 version 1.0) (4am crack) + 1984 + MECC + + + + + + + + + + + + + + + + Word Herd: Sound-Alikes (A-106 version 1.0) (4am crack) + 1984 + MECC + + + + + + + + + + + + + + Word Problems Level C (version 3.1.6) (4am crack) 1989 @@ -57178,6 +57176,60 @@ license:CC0-1.0 + + Word Wizards (A-112 version 1.0) (4am crack) + 1984 + MECC + + + + + + + + + + + + + + + + Word Wizards (A-112 version 1.2) (4am crack) + 1984 + MECC + + + + + + + + + + + + + + + + Word Wizards (A-112 version 1.3) (4am crack) + 1984 + MECC + + + + + + + + + + + + + + Wordwise (4am crack) 1985 @@ -57316,6 +57368,42 @@ license:CC0-1.0 + + Writing an Opinion Paper (A-114 version 1.0) (4am crack) + 1984 + MECC + + + + + + + + + + + + + + + + Writing an Opinion Paper (A-114 version 1.1) (4am crack) + 1985 + MECC + + + + + + + + + + + + + + Your Personal Net Worth (4am crack) 1984 @@ -57400,6 +57488,96 @@ license:CC0-1.0 + + Zoom Grafix (version 26-JAN-82) (4am crack) + 1982 + Phoenix Software + + + + + + + + + + + + + + + + Zoom Grafix (version 29-APR-82) (4am crack) + 1982 + Phoenix Software + + + + + + + + + + + + + + + + Zoom Grafix (version 25-MAY-83) (4am crack) + 1982 + Phoenix Software + + + + + + + + + + + + + + + + Zoom Grafix (version 05-OCT-83) (4am crack) + 1983 + Phoenix Software + + + + + + + + + + + + + + + + Zoom Grafix Second Edition (version 05-MAY-83) (4am crack) + 1982 + Phoenix Software + + + + + + + + + + + + + + pfs (version A.02, 1980-10-23) (4am crack) 1980 diff --git a/hash/apple2_flop_orig.xml b/hash/apple2_flop_orig.xml index c674c0e7e3d..62a4a76ee58 100644 --- a/hash/apple2_flop_orig.xml +++ b/hash/apple2_flop_orig.xml @@ -2070,28 +2070,6 @@ license:CC0-1.0 - - Prince of Persia - 1989 - Brøderbund Software - - - - - - - - - - - - - - - - - - Rad Warrior 1987 @@ -2182,21 +2160,6 @@ license:CC0-1.0 - - Rescue Raiders - 1984 - Sir-Tech - - - - - - - - - - - RoboCop 1988 @@ -4072,30 +4035,6 @@ license:CC0-1.0 - - Wizardry III: Legacy of Llylgamyn (version 4, 20-Aug-1983 update) - 1983 - Sir-Tech Software - - - - - - - - - - - - - - - - - - - - Arcade Album #1 1983 @@ -4896,21 +4835,6 @@ license:CC0-1.0 - - The Queen of Phobos - 1982 - Phoenix Software - - - - - - - - - - - Pentapus 1983 @@ -5792,21 +5716,6 @@ license:CC0-1.0 - - Return of Heracles - 1983 - Quality Software - - - - - - - - - - - Race For Midnight 1981 @@ -5971,70 +5880,6 @@ license:CC0-1.0 - - Wizardry V: Heart of the Maelstrom - 1988 - Sir-Tech Software - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Castle Wolfenstein (1981 Version) 1981 @@ -8570,21 +8415,6 @@ license:CC0-1.0 - - Galactic Attack - 1980 - Sir-Tech - - - - - - - - - - - Journey (version 16) 1989 @@ -8640,52 +8470,6 @@ license:CC0-1.0 - - Wizardry IV: The Return of Werdna - 1987 - Sir-Tech - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Arthur: The Quest for Excalibur (version 17) 1989 @@ -9150,97 +8934,36 @@ license:CC0-1.0 - - Wizardry: Proving Grounds of the Mad Overlord (version 2.1) - 1981 - Sir-Tech - - - - + + Amazon + 1984 + Trillium + + + - - - + + + - - - + + + - - - - Wizardry II: The Knight of Diamonds (version PV3S2V1/10-MAR-82) - 1982 - Sir-Tech - - - - - - - - - + + + + - - - - - - - - - - Wiziprint (version 2.1) - 1982 - Sir-Tech - - - - - - - - - - - - - Amazon - 1984 - Trillium - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + @@ -10480,21 +10203,6 @@ license:CC0-1.0 - - Wizplus - 1982 - Datamost - - - - - - - - - - - John Elway's Quarterback 1987 @@ -10774,21 +10482,6 @@ license:CC0-1.0 - - Meteoroids in Space - 1981 - Quality Software - - - - - - - - - - - The Latin Hangman (Revision 1004) 1983 @@ -11740,40 +11433,6 @@ license:CC0-1.0 - - Science Toolkit Plus (version 2.0) - 1989 - Brøderbund Software - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Tycoon (version 2.1) 1985 @@ -11796,21 +11455,6 @@ license:CC0-1.0 - - Bag of Tricks (version 2.1) - 1987 - Quality Software - - - - - - - - - - - Colossus Chess IV 1986 @@ -11826,21 +11470,6 @@ license:CC0-1.0 - - Asteroids in Space - 1980 - Quality Software - - - - - - - - - - - GFL Championship Football 1987 @@ -12272,51 +11901,6 @@ license:CC0-1.0 - - Estimation: Quick Solve I (version 1.0) - 1990 - MECC - - - - - - - - - - - - - Estimation Strategies (version 1.0) - 1991 - MECC - - - - - - - - - - - - - Estimation Activities (version 1.0) - 1991 - MECC - - - - - - - - - - - Exploring Gas Laws (version 1.0) 1989 @@ -13445,38 +13029,6 @@ license:CC0-1.0 - - The Time Tunnel: American History Series - 1984 - Focus Media - - - - - - - - - - - - - - The Time Tunnel: A Nation Emerges - 1984 - Focus Media - - - - - - - - - - - - Beagle BASIC 1983 @@ -14505,21 +14057,6 @@ license:CC0-1.0 - - Bats in the Belfry - 1983 - Phoenix Software - - - - - - - - - - - Alien Rain 1980 @@ -15051,22 +14588,6 @@ license:CC0-1.0 - - Prince of Persia (800K 3.5") - 1989 - Brøderbund Software - - - - - - - - - - - - Woolly's Birthday (version 1.0) (800K 3.5") 1994 @@ -15195,22 +14716,6 @@ license:CC0-1.0 - - Bank Street Writer Plus (800K 3.5") - 1989 - Brøderbund Software - - - - - - - - - - - - Design Your Own Railroad (version 1.1C) (800K 3.5") 1990 @@ -16471,22 +15976,6 @@ license:CC0-1.0 - - Beneath Apple Manor (version 1.1) - 1979 - The Software Factory - - - - - - - - - - - - Teleport 1982 @@ -16782,29 +16271,6 @@ license:CC0-1.0 - - Crypt of Medea - 1983 - Sir-Tech - - - - - - - - - - - - - - - - - - - Handy Dandy 1983 @@ -16963,22 +16429,6 @@ license:CC0-1.0 - - Beneath Apple Manor: The Special Edition - 1982 - Quality Software - - - - - - - - - - - - Battlesight (version 3.3.1) 1982 @@ -17472,22 +16922,6 @@ license:CC0-1.0 - - Battleship Commander - 1980 - Quality Software - - - - - - - - - - - - Three Mile Island 1979 @@ -18319,54 +17753,6 @@ license:CC0-1.0 - - Estimation Strategies (version 1.0) (800K 3.5") - 1991 - MECC - - - - - - - - - - - - - - Estimation Activities (version 1.0) (800K 3.5") - 1991 - MECC - - - - - - - - - - - - - - Estimation: Quick Solve I (version 1.0) (800K 3.5") - 1990 - MECC - - - - - - - - - - - - Fraction Munchers (version 1.0) (800K 3.5") 1987 @@ -18904,22 +18290,6 @@ license:CC0-1.0 - - The Bank Street Writer III (20-Column Version) (800K 3.5") - 1986 - Scholastic - - - - - - - - - - - - Locksmith (version 5.0 Revision C) 1983 @@ -19172,52 +18542,6 @@ license:CC0-1.0 - - Wizardry: Proving Grounds of the Mad Overload (version 05-SEP-81) - 1981 - Sir-Tech - - - - - - - - - - - - - - - - - - - - - Wizardry: Proving Grounds of the Mad Overload (version 01-DEC-81) - 1981 - Sir-Tech - - - - - - - - - - - - - - - - - - - Drugs: Their Effects on You 1987 @@ -22475,7 +21799,7 @@ license:CC0-1.0 - + @@ -22901,7 +22225,7 @@ license:CC0-1.0 - + @@ -24062,21 +23386,6 @@ license:CC0-1.0 - - Estimation (version 1.0) - 1984 - MECC - - - - - - - - - - - Experiencing Procedures (version 1.0) 1983 @@ -24092,21 +23401,6 @@ license:CC0-1.0 - - Exploring Sorting Routines (version 1.0) - 1984 - MECC - - - - - - - - - - - Extensions to Applesoft BASIC (version 1.0) 1983 @@ -24167,21 +23461,6 @@ license:CC0-1.0 - - Master Spell (version 1.3) - 1984 - MECC - - - - - - - - - - - Mathematics Volume 1: Graphing, Logic, and Equations (version 3.2) 1980 @@ -24257,21 +23536,6 @@ license:CC0-1.0 - - MECC Hi-Res Toolkit (version 1.0) - 1984 - MECC - - - - - - - - - - - Probability (version 1.0) 1983 @@ -24392,28 +23656,6 @@ license:CC0-1.0 - - Study Guide (version 1.5) - 1984 - MECC - - - - - - - - - - - - - - - - - - The Market Place (version 1.0) 1984 @@ -24488,21 +23730,6 @@ license:CC0-1.0 - - Estimation: Quick Solve II (version 1.0) - 1990 - MECC - - - - - - - - - - - Ghost Writer (version 1.0) 1985 @@ -25060,6 +24287,30 @@ license:CC0-1.0 + + A Week That Changed The World + 1986 + Educational Publishing Concepts + + + + + + + + + + + + + + + + + + + + Ace Detective (version 1987) 1987 @@ -25140,6 +24391,22 @@ license:CC0-1.0 + + Adventure in Time + 1981 + Phoenix Software + + + + + + + + + + + + Adventures with Fractions (A-774 version 1.0) 1983 @@ -25273,19 +24540,66 @@ license:CC0-1.0 - - Arizona Mix (A-335 version 1.0) - 1993 - MECC - - + + Animate + 1986 + Brøderbund Software + - - - + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Arizona Mix (A-335 version 1.0) + 1993 + MECC + + + + + + + + + @@ -25331,6 +24645,22 @@ license:CC0-1.0 + + Asteroids in Space + 1980 + Quality Software + + + + + + + + + + + + Audubon Wildlife Adventures: Whales! (version 2.1) 1990 @@ -25486,6 +24816,72 @@ license:CC0-1.0 + + Bag of Tricks 2 (version 2.0) + 1985 + Quality Software + + + + + + + + + + + + + + + Bag of Tricks 2 (version 2.1) + 1987 + Quality Software + + + + + + + + + + + + + + + Bats in the Belfry + 1983 + Phoenix Software + + + + + + + + + + + + + + Battleship Commander + 1980 + Quality Software + + + + + + + + + + + + Beach Landing 1984 @@ -25534,6 +24930,39 @@ license:CC0-1.0 + + Beneath Apple Manor (version 1.1 30-JUL-1979) + 1979 + The Software Factory + + + + + + + + + + + + + + + Beneath Apple Manor: The Special Edition + 1982 + Quality Software + + + + + + + + + + + + Black Belt (revision 1) 1984 @@ -27232,6 +26661,29 @@ license:CC0-1.0 + + Crypt of Medea + 1983 + Sir-Tech Software + + + + + + + + + + + + + + + + + + + CryptoQuest (A-340 version 1.0) 1993 @@ -27689,6 +27141,22 @@ license:CC0-1.0 + + David-DOS + 1982 + David Data + + + + + + + + + + + + Desktop Zoo 1989 @@ -27875,6 +27343,30 @@ license:CC0-1.0 + + Early Heroes of the Bible + 1984 + Educational Publishing Concepts + + + + + + + + + + + + + + + + + + + + Echelon 1988 @@ -28021,67 +27513,261 @@ license:CC0-1.0 - - F-15 Strike Eagle (version 1.4) - 1985 - Microprose Software - - - + + Estimation (A-124 version 1.0) + 1984 + MECC + + + + - - + + - - + + - - Falcons - 1981 - Piccadilly Software - - - - - + + Estimation Collection: Estimation Activities (A-296 version 1.0) + 1991 + MECC + + + + + + + - - + + - - Fay: The Word Hunter (800K 3.5") + + Estimation Collection: Estimation Activities (A-296 version 1.0) (800K 3.5") 1991 - Didatech Software - - - - + MECC + + + + + + - - + + - - Galactic Gladiators - 1983 - Strategic Simulations - - - - - + + Estimation Collection: Estimation Strategies (A-295 version 1.0) + 1991 + MECC + + + + + + + - - + + + + + + + + Estimation Collection: Estimation Strategies (A-295 version 1.0) (800K 3.5") + 1991 + MECC + + + + + + + + + + + + + + + + Estimation Collection: Estimation: Quick Solve I (A-258 version 1.0) + 1990 + MECC + + + + + + + + + + + + + + + + Estimation Collection: Estimation: Quick Solve I (A-258 version 1.0) (800K 3.5") + 1990 + MECC + + + + + + + + + + + + + + + + Estimation Collection: Estimation: Quick Solve II (A-259 version 1.0) + 1990 + MECC + + + + + + + + + + + + + + + + Exploring Sorting Routines (A-110 version 1.0) + 1984 + MECC + + + + + + + + + + + + + + + + F-15 Strike Eagle (version 1.4) + 1985 + Microprose Software + + + + + + + + + + + + + + + Falcons + 1981 + Piccadilly Software + + + + + + + + + + + + + + Fay: The Word Hunter (800K 3.5") + 1991 + Didatech Software + + + + + + + + + + + + + + Federation + 1982 + Avant-Garde Creations + + + + + + + + + + + + + + Galactic Attack + 1980 + Sir-Tech Software + + + + + + + + + + + + + + Galactic Gladiators + 1983 + Strategic Simulations + + + + + + + + @@ -28282,6 +27968,30 @@ license:CC0-1.0 + + Israel's Golden Years + 1986 + Educational Publishing Concepts + + + + + + + + + + + + + + + + + + + + It's About Time 1989 @@ -28331,6 +28041,24 @@ license:CC0-1.0 + + Keyboarding Series: MECC Keyboarding Master: Games and Drills (Student Program) (A-131 version 1.0) + 1985 + MECC + + + + + + + + + + + + + + Kinder Critters: Address and Phone Number 1991 @@ -28551,6 +28279,24 @@ license:CC0-1.0 + + Master Spell (A-119 version 1.3) + 1984 + MECC + + + + + + + + + + + + + + Mastering Math Series 1: Early Addition (A-788 version 1.3) 1983 @@ -28848,6 +28594,22 @@ license:CC0-1.0 + + Measuring Economic Activity + 1985 + Focus Media + + + + + + + + + + + + MECC Dataquest: The Presidents (A-140 version 1.1) 1985 @@ -28986,20 +28748,36 @@ license:CC0-1.0 - - MECC Keyboarding Master: Games and Drills (Student Program) (A-131 version 1.0) - 1985 + + MECC Hi-Res Toolkit (A-105 version 1.0) + 1984 MECC - - - + + + - - + + - - + + + + + + + + Meteoroids in Space + 1981 + Quality Software + + + + + + + + @@ -29105,14 +28883,38 @@ license:CC0-1.0 - - Nibbles Away (version B2) - 1981 - COMPUTER:applications - - - - + + Moses Leads His People + 1986 + Educational Publishing Concepts + + + + + + + + + + + + + + + + + + + + + + Nibbles Away (version B2) + 1981 + COMPUTER:applications + + + + @@ -29263,6 +29065,30 @@ license:CC0-1.0 + + Paul's Missionary Journeys + 1986 + Educational Publishing Concepts + + + + + + + + + + + + + + + + + + + + Pet Shop (A-347 version 1.0) (800K 3.5") 1994 @@ -29321,6 +29147,61 @@ license:CC0-1.0 + + Prince of Persia (interactive demo) + 1989 + Brøderbund Software + + + + + + + + + + + + + + Prince of Persia + 1989 + Brøderbund Software + + + + + + + + + + + + + + + + + + + + + Prince of Persia (800K 3.5") + 1989 + Brøderbund Software + + + + + + + + + + + + Problem-Solving Strategies (A-784 version 1.0) 1983 @@ -29697,6 +29578,38 @@ license:CC0-1.0 + + Rescue Raiders + 1984 + Sir-Tech Software + + + + + + + + + + + + + + Return of Heracles (Quality Software) + 1983 + Quality Software + + + + + + + + + + + + Run For It 1984 @@ -29713,6 +29626,78 @@ license:CC0-1.0 + + Science Toolkit + 1985 + Brøderbund Software + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Science Toolkit Plus (version 2.0) + 1989 + Brøderbund Software + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Scott Adams Graphic Adventure 1: Adventureland (version 2.0/416) 1982 @@ -29882,6 +29867,30 @@ license:CC0-1.0 + + Searching for a King + 1984 + Educational Publishing Concepts + + + + + + + + + + + + + + + + + + + + Sentence Fun (version 1989) (800K 3.5") 1989 @@ -30545,6 +30554,31 @@ license:CC0-1.0 + + Study Guide (A-126 version 1.5) + 1984 + MECC + + + + + + + + + + + + + + + + + + + + + Super Password 1988 @@ -30614,51 +30648,570 @@ license:CC0-1.0 - - The Banking Simulation - 1986 - EMC Publishing - - - - - + + The Bank Street Speller + 1984 + Brøderbund Software + + + + + - - + + + + + + + + + - - The Institute - 1983 - Screenplay - - + + The Bank Street Writer (version 1.3) + 1982 + Brøderbund Software + + + - - + + - - - + + - - - - + + + + The Bank Street Writer Tutorial (version 1.0) + 1982 + Brøderbund Software + + + + + + + + + - - The Scoop - 1989 - Spinnaker Software - - + + The Bank Street Writer Tutorial (version 1.1 1982-12-13) + 1982 + Brøderbund Software + + + + + + + + + + + + + + + The Bank Street Writer Enhanced (version 2.6) + 1984 + Brøderbund Software + + + + + + + + + + + + + + + The Bank Street Writer Enhanced Tutorial for ][+ + 1984 + Brøderbund Software + + + + + + + + + + + + + + The Bank Street Writer Enhanced Tutorial for IIe + 1984 + Brøderbund Software + + + + + + + + + + + + + + The Bank Street Writer Expanded (version 2.2) + 1984 + Scholastic + + + + + + + + + + + + + + + + The Bank Street Writer Expanded Tutorial (version 2.2) + 1984 + Scholastic + + + + + + + + + + + + + + + + The Bank Street Writer IIc (version 2.1 revision 1) + 1984 + Brøderbund Software + + + + + + + + + + + + + + + + The Bank Street Writer IIc (version 2.1 revision 2) + 1984 + Brøderbund Software + + + + + + + + + + + + + + + + The Bank Street Writer IIc (version 2.11) + 1984 + Brøderbund Software + + + + + + + + + + + + + + + The Bank Street Writer IIc Tutorial (version 1984-06-27) + 1984 + Brøderbund Software + + + + + + + + + + + + + + + The Bank Street Writer III (version 1.1) + 1986 + Scholastic + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + The Bank Street Writer III (20-Column and Teacher Tools) (version 1.21) (800K 3.5") + 1986 + Scholastic + + + + + + + + + + + + + + + + The Bank Street Writer III (version 1.4) + 1989 + Scholastic + + + + + + + + + + + + + + + + + + + + + + + + + + + + + The Bank Street Writer III Tutorial (version 1.1) + 1986 + Scholastic + + + + + + + + + + + + + + + + The Bank Street Writer III Tutorial (version 1.4) + 1989 + Scholastic + + + + + + + + + + + + + + + + The Bank Street Writer Plus (version 1.1) + 1986 + Brøderbund Software + + + + + + + + + + + + + + + + + + + + + + + + + + + + The Bank Street Writer Plus (version 1.4) + 1989 + Brøderbund Software + + + + + + + + + + + + + + + The Bank Street Writer Plus (version 1.4) (800K 3.5") + 1989 + Brøderbund Software + + + + + + + + + + + + + + + The Bank Street Writer Plus Tutorial (version 1.1) + 1986 + Brøderbund Software + + + + + + + + + + + + + + + The Bank Street Writer Plus Tutorial (version 1.4) + 1989 + Brøderbund Software + + + + + + + + + + + + + + + The Banking Simulation + 1986 + EMC Publishing + + + + + + + + + + + + + + The Boy Jesus + 1984 + Educational Publishing Concepts + + + + + + + + + + + + + + + + + + + + + + The Early Church + 1984 + Educational Publishing Concepts + + + + + + + + + + + + + + + + + + + + + + The Institute + 1983 + Screenplay + + + + + + + + + + + + + + + + + + + + + The Queen of Phobos + 1982 + Phoenix Software + + + + + + + + + + + + + + The Scoop + 1989 + Spinnaker Software + + @@ -30723,6 +31276,116 @@ license:CC0-1.0 + + The Time Tunnel: American History Series + 1984 + Focus Media + + + + + + + + + + + + + + The Time Tunnel: Sports Edition + 1985 + Focus Media + + + + + + + + + + + + + + The Time Tunnel: The America Series: A Nation Emerges + 1984 + Focus Media + + + + + + + + + + + + + + The Time Tunnel: The America Series: Early America + 1984 + Focus Media + + + + + + + + + + + + + + The Time Tunnel: The America Series: The Presidents + 1985 + Focus Media + + + + + + + + + + + + + + The U.S. Constitution: Nationalism and Federalism (version 1987) + 1987 + Focus Media + + + + + + + + + + + + + + + + + + + + + + + + + + Tink!Tonk!: Tonk in the Land of the Buddy-Bots by Mercer Mayer 1984 @@ -30804,6 +31467,22 @@ license:CC0-1.0 + + Trapshoot + 1980 + On-Line Systems + + + + + + + + + + + + Troll Sports Math: Math Word Problems for Grades 4 to 6 (800K 3.5") 1991 @@ -30909,8 +31588,25 @@ license:CC0-1.0 - - + + + + + + + + Wheeler Dealers (DOS 3.3 conversion) + 1978 + Speakeasy Software + + + + + + + + + @@ -31375,6 +32071,262 @@ license:CC0-1.0 + + Wizardry: Proving Grounds of the Mad Overload (version 05-SEP-81) + 1981 + Sir-Tech Software + + + + + + + + + + + + + + + + + + + + + + Wizardry: Proving Grounds of the Mad Overload (version 01-DEC-81) + 1981 + Sir-Tech Software + + + + + + + + + + + + + + + + + + + + + + Wizardry: Proving Grounds of the Mad Overload (version 2.0 01-JAN-82) + 1981 + Sir-Tech Software + + + + + + + + + + + + + + + + + + + + + + Wizardry: Proving Grounds of the Mad Overlord (version 2.1) + 1981 + Sir-Tech Software + + + + + + + + + + + + + + + + + + + + + + Wizardry II: The Knight of Diamonds (version PV3S2V1/10-MAR-82) + 1982 + Sir-Tech Software + + + + + + + + + + + + + + + + + + + + + + Wizardry III: Legacy of Llylgamyn (version 4, 20-Aug-1983 update) + 1983 + Sir-Tech Software + + + + + + + + + + + + + + + + + + + + + + Wizardry IV: The Return of Werdna + 1987 + Sir-Tech Software + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Wizardry V: Heart of the Maelstrom + 1988 + Sir-Tech Software + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Wizimore: Catacombs of Vlad 1987 @@ -31455,6 +32407,39 @@ license:CC0-1.0 + + Wiziprint (version 2.01 20-AUG-83) + 1982 + Sir-Tech Software + + + + + + + + + + + + + + + Wizplus + 1982 + Datamost + + + + + + + + + + + + World Class Leader Board 1987 diff --git a/hash/ibm5170_cdrom.xml b/hash/ibm5170_cdrom.xml index 3ebc05856a2..59f92cb203d 100644 --- a/hash/ibm5170_cdrom.xml +++ b/hash/ibm5170_cdrom.xml @@ -7686,4 +7686,29 @@ Wave Studio v3.12 + + Zork Nemesis: The Forbidden Lands + 1996 + Activision + + + + + + + + + + + + + + + + + + + + + diff --git a/hash/more/mc10.xml b/hash/more/mc10.xml index ec705c9fc5e..ff4ef9a38c2 100644 --- a/hash/more/mc10.xml +++ b/hash/more/mc10.xml @@ -1,6 +1,6 @@ - + 08SUB @@ -1252,6 +1252,26 @@ + + C-TREK + ???? + unknown + + + + + + + + C5P9 + ???? + unknown + + + + + + calc-80_alice ???? @@ -1262,6 +1282,86 @@ + + Canadian Flag + ???? + unknown + + + + + + + + Captain Chemistry + ???? + unknown + + + + + + + + Car Race + ???? + unknown + + + + + + + + CAR14 + ???? + unknown + + + + + + + + CARMAZE (2) + ???? + unknown + + + + + + + + CARMAZE + ???? + unknown + + + + + + + + CASTADV1 + ???? + unknown + + + + + + + + CASTADV2 + ???? + unknown + + + + + + Castle Bally ???? @@ -1272,6 +1372,536 @@ + + Castle Dracula + ???? + unknown + + + + + + + + Cattle Baron + ???? + unknown + + + + + + + + Cavehunt 3D + ???? + unknown + + + + + + + + CAVEHUNT + ???? + unknown + + + + + + + + CAVERAID + ???? + unknown + + + + + + + + Cavern 2160 + ???? + unknown + + + + + + + + CAVES + ???? + unknown + + + + + + + + CAVES1 + ???? + unknown + + + + + + + + CAVMARS + ???? + unknown + + + + + + + + Centipede + ???? + unknown + + + + + + + + CHAIRMAN + ???? + unknown + + + + + + + + Chasm Capers + ???? + unknown + + + + + + + + CHATEAU1 + ???? + unknown + + + + + + + + CHATEAU2 + ???? + unknown + + + + + + + + checkers + ???? + unknown + + + + + + + + CHECKRVZ + ???? + unknown + + + + + + + + Chess Pattern + ???? + unknown + + + + + + + + CHESS + ???? + unknown + + + + + + + + CHESSC4 + ???? + unknown + + + + + + + + Chess_Pattern_4N + ???? + unknown + + + + + + + + CHOPPER + ???? + unknown + + + + + + + + CIA Adventure + ???? + unknown + + + + + + + + City Bomber + ???? + unknown + + + + + + + + CIVILWAR + ???? + unknown + + + + + + + + Clear a Path + ???? + unknown + + + + + + + + CLOCKSET + ???? + unknown + + + + + + + + CLOSEOUT + ???? + unknown + + + + + + + + closeoutc[cloadm] + ???? + unknown + + + + + + + + CLUE + ???? + unknown + + + + + + + + Color Hustle + ???? + unknown + + + + + + + + COLORIC + ???? + unknown + + + + + + + + COLOROID + ???? + unknown + + + + + + + + coloroid[cloadm] + ???? + unknown + + + + + + + + ColorTrek + ???? + unknown + + + + + + + + Colosall Cave + ???? + unknown + + + + + + + + Colour Codes + ???? + unknown + + + + + + + + COLUMNS + ???? + unknown + + + + + + + + Computer Cupid + ???? + unknown + + + + + + + + Concentration + ???? + unknown + + + + + + + + Conflict + ???? + unknown + + + + + + + + CONVOY + ???? + unknown + + + + + + + + Coup D'etat + ???? + unknown + + + + + + + + CRASH + ???? + unknown + + + + + + + + Crazy Eights + ???? + unknown + + + + + + + + CREATION + ???? + unknown + + + + + + + + CRIBBAGE + ???? + unknown + + + + + + + + CROPS (2) + ???? + unknown + + + + + + + + CROPS + ???? + unknown + + + + + + + + Crossword Puzzle + ???? + unknown + + + + + + + + CSS Chess Program + ???? + unknown + + + + + + + + CUBE Adventure + ???? + unknown + + + + + + + + CUPBALL + ???? + unknown + + + + + + + + Curse of Crowley Manor + ???? + unknown + + + + + + Dam Busters ???? @@ -1292,6 +1922,56 @@ + + Dragon's Cubes + ???? + unknown + + + + + + + + Duelling Cannons + ???? + unknown + + + + + + + + Dungeon Crawl + ???? + unknown + + + + + + + + Escape from Colditz + ???? + unknown + + + + + + + + Exquisite Corpses + ???? + unknown + + + + + + faire-le-point-bac-francais1-B_alice ???? @@ -1352,6 +2032,16 @@ + + Pharaoh's Curse + ???? + unknown + + + + + + programme-de-demonstration_alice ???? @@ -1412,6 +2102,16 @@ + + Wizard of Chaos + ???? + unknown + + + + + + Year at the Races ???? diff --git a/hash/more/oric1_cass.xml b/hash/more/oric1_cass.xml index 25fcad7d4c5..288225a28f4 100644 --- a/hash/more/oric1_cass.xml +++ b/hash/more/oric1_cass.xml @@ -1,6 +1,6 @@ - + 3D Editor by Loriciel (F) (1984) @@ -1392,83 +1392,1433 @@ + + Easter Omelette by Alan Downs (PD) + ???? + unknown + + + + + + EcrEvol ???? unknown - - + + + + + + + Egg Timer (UK) (19xx) (PD) + ???? + unknown + + + + + + + + ElDuet_BAS + ???? + unknown + + + + + + + + Electronic Organ (UK) (19xx) (PD) + ???? + unknown + + + + + + + + Ellipse by Peter TheSpider (UK) (2002) (PD) + ???? + unknown + + + + + + + + ENTER + ???? + unknown + + + + + + + + Entrapment (UK) (19xx) (PD) + ???? + unknown + + + + + + + + Figures (UK) (19xx) (PD) + ???? + unknown + + + + + + + + Fillscreen by Radoslaw Isaew (19xx) (PD) + ???? + unknown + + + + + + + + Fillscreenm by Radoslaw Isaew (19xx) (PD) + ???? + unknown + + + + + + + + Firework Display (UK) (19xx) (PD) + ???? + unknown + + + + + + + + First Oric Demo Ever, The (demo) (19xx)(-) + ???? + unknown + + + + + + + + Flibustiers, Le (F) (19xx) + ???? + unknown + + + + + + + + Fragancia (19xx)(Evert Taube)(se) + ???? + unknown + + + + + + + + frelon (2) + ???? + unknown + + + + + + + + french + ???? + unknown + + + + + + + + frigate commander + ???? + unknown + + + + + + + + frog + ???? + unknown + + + + + + + + Function (19xx)(Phillipe Gomez)(fr) + ???? + unknown + + + + + + + + FunctionKeys + ???? + unknown + + + + + + + + Fylle (1984)(Lars Lundgren)(se) + ???? + unknown + + + + + + + + GASTRONO + ???? + unknown + + + + + + + + german + ???? + unknown + + + + + + + + Gestion De (1984)(J.C.Robin)(fr) + ???? + unknown + + + + + + + + Getron + ???? + unknown + + + + + + + + Gigabonux Minigame 1K Version by By Simon Guyart (2003) (PD) + ???? + unknown + + + + + + + + Goog (F) (1987) + ???? + unknown + + + + + + + + Graphit (UK) (19xx) (PD) + ???? + unknown + + + + + + + + Grendel (UK) (1990) (PD) + ???? + unknown + + + + + + + + GRIDORIC + ???? + unknown + + + + + + + + Guess The Number (UK) (19xx) (PD) [a] + ???? + unknown + + + + + + + + Guess The Number (UK) (19xx) (PD) + ???? + unknown + + + + + + + + Hades Monitor V1.0 (F) (19xx) + ???? + unknown + + + + + + + + Haiku Generator (UK) (1984) (PD) + ???? + unknown + + + + + + + + Happy Landings (UK) (19xx) (PD) + ???? + unknown + + + + + + + + hic + ???? + unknown + + + + + + + + Hicopy for Epson (UK) (1983) + ???? + unknown + + + + + + + + HIRESMOVE + ???? + unknown + + + + + + + + Hist'oric (F) (19xx) + ???? + unknown + + + + + + + + HOBBI-FR + ???? + unknown + + + + + + + + hobbit + ???? + unknown + + + + + + + + Home Finance Analysis by David Nowotnik (UK) (1984) + ???? + unknown + + + + + + + + Home Finance Analysis by David Nowotnik (UK) (Oric-1) (1984) + ???? + unknown + + + + + + + + Hop Frog (UK) (19xx) + ???? + unknown + + + + + + + + Huebert by T.W.Phoeng (UK) (1984) + ???? + unknown + + + + + + + + INDIANA + ???? + unknown + + + + + + + + Inkblots (UK) (19xx) (PD) + ???? + unknown + + + + + + + + Interference (UK) (19xx) (PD) + ???? + unknown + + + + + + + + Invader (19xx) (PD) + ???? + unknown + + + + + + + + invasion + ???? + unknown + + + + + + + + Jack-Man (F) (1984) + ???? + unknown + + + + + + + + JETATTAC + ???? + unknown + + + + + + + + Jeu De La Vie (F) (1986) + ???? + unknown + + + + + + + + JOGGER + ???? + unknown + + + + + + + + Jump (F) (19xx) [a] + ???? + unknown + + + + + + + + Jump + ???? + unknown + + + + + + + + Jumpfox (2) + ???? + unknown + + + + + + + + JumpFox + ???? + unknown + + + + + + + + Kaleidoscope (UK) (19xx) (PD) + ???? + unknown + + + + + + + + Keyboard Trainer (UK) (1983) + ???? + unknown + + + + + + + + Killer Caver NS (UK) (1983) + ???? + unknown + + + + + + + + Kompresor.bas + ???? + unknown + + + + + + + + Kompresor + ???? + unknown + + + + + + + + KoteNaKrystopyt (Cat at Crossroad) (1987) (PD) + ???? + unknown + + + + + + + + KrazyApe[delete 0] + ???? + unknown + + + + + + + + Krypton (F) (19xx) + ???? + unknown + + + + + + + + Krypton + ???? + unknown + + + + + + + + La France Quiz (F) (19xx) + ???? + unknown + + + + + + + + Labirinth (19xx) (PD) + ???? + unknown + + + + + + + + Laby 5 by Jean-Michel Terrat (F) (1983) (PD) [a] + ???? + unknown + + + + + + + + laby5 + ???? + unknown + + + + + + + + Labyrinthe by Marc le Hen (F) (1983) + ???? + unknown + + + + + + + + Labyrinthe + ???? + unknown + + + + + + + + lakomata zmiq + ???? + unknown + + + + + + + + LazyNazca (2023-12)(Kenneth) + ???? + unknown + + + + + + + + LContreL + ???? + unknown + + + + + + + + Le7emeda + ???? + unknown + + + + + + + + Leopard Lord (UK) (19xx) + ???? + unknown + + + + + + + + Letter (UK) (19xx) (PD) + ???? + unknown + + + + + + + + Light Cycle (UK) (1983) + ???? + unknown + + + + + + + + Limerick by D. Elliot (UK) (1984) (PD) + ???? + unknown + + + + + + + + Lone Raider + ???? + unknown + + + + + + + + Lorigraph (1984)(Loriciels - Patrice Guerlais)(fr) + ???? + unknown + + + + + + + + lotoric + ???? + unknown + + + + + + + + Lunar Lander (UK) (1983) [a] + ???? + unknown + + + + + + + + Lunar Lander (UK) (1983) + ???? + unknown + + + + + + + + Lunar Mission (UK) (19xx) + ???? + unknown + + + + + + + + Machine Code Monitor (UK) (19xx) (PD) + ???? + unknown + + + + + + + + Madacam Bumper (F) (1985) [a] + ???? + unknown + + + + + + + + Manic Miner Conversion by N.Hawaworth (PD) + ???? + unknown + + + + + + + + masqdord + ???? + unknown + + + + + + + + masqdorj + ???? + unknown + + + + + + + + matematika + ???? + unknown + + + + + + + + Maze Chase (UK) (19xx) (PD) + ???? + unknown + + + + + + + + MazezaM (PD) + ???? + unknown + + + + + + + + MazezaM + ???? + unknown + + + + + + + + Memoric Mag Type-in 1 (F) (19xx) + ???? + unknown + + + + + + + + Memoric Mag Type-in 2 (F) (19xx) + ???? + unknown + + + + + + + + MEMORIC + ???? + unknown + + + + + + + + Memory Peek (UK) (19xx) (PD) + ???? + unknown + + + + + + + + meri + ???? + unknown + + + + + + + + Meteor Run (UK) (19xx) (PD) + ???? + unknown + + + + + + + + Metric Converter (UK) (19xx) (PD) + ???? + unknown + + + + + + + + Mill Bournes V1.1 (F) (PD) + ???? + unknown + + + + + + + + Mille-Pattes + ???? + unknown + + + + + + + + Mine Field by A.P. Gardner (UK) (1984) (PD) + ???? + unknown + + + + + + + + Mini-Pengo (UK) (19xx) (PD) + ???? + unknown + + + + + + + + Missile Defense (UK) (19xx) (PD) + ???? + unknown + + + + + + + + Mission Delta + ???? + unknown + + + + + + + + Mission Impossible (1984)(No Man's Land)(FR) + ???? + unknown + + + + + + + + Mission Impossible (1984)(No Man's Land)(FR)[a no title screen] + ???? + unknown + + + + + + + + Mizar (F) (1984) + ???? + unknown + + + + + + + + MonAsm V1.1p (UK) (19xx) (PD) + ???? + unknown + + + + + + + + MoneyBags (UK) (19xx) (PD) + ???? + unknown + + + + + + + + MONITEUR + ???? + unknown + + + + + + + + Monitor + ???? + unknown + + + + + + + + montseg1 + ???? + unknown + + + + + + + + montseg2 + ???? + unknown + + + + + + + + Morpion (Hebdogiciel Version) (F) (19xx) + ???? + unknown + + + + + + + + Morpion 10x10 (Proriciel) (F) (19xx) + ???? + unknown + + + + + + + + Morpion 3D (F) (19xx) + ???? + unknown + + + + + + + + MORPION + ???? + unknown + + + + + + + + MORPION_ + ???? + unknown + + + + + + + + Morse Code (UK) (19xx) (PD) + ???? + unknown + + + + + + + + Moyennes (F) (19xx) (PD) + ???? + unknown + + + + + + + + Mozaika + ???? + unknown + + + - - Egg Timer (UK) (19xx) (PD) + + Multifiler (19xx)(No Man's Land) ???? unknown - - + + - - ElDuet_BAS + + Multigames Disc by Loricels (F) (1984) ???? unknown - - + + - - Electronic Organ (UK) (19xx) (PD) + + Multigraf Programme De D.A.O. (19xx)(-)(fr) ???? unknown - - + + - - Ellipse by Peter TheSpider (UK) (2002) (PD) + + Multiplication Tables (UK) (19xx) (PD) ???? unknown - - + + - - ENTER + + Mumpye (F) (19xx) ???? unknown - - + + - - Entrapment (UK) (19xx) (PD) + + MUMPYE ???? unknown - - + + - - Lone Raider + + Musique Dance (F) (19xx) ???? unknown - - + + + + + + + Musketari + ???? + unknown + + + + + + + + muzikalna klawia + ???? + unknown + + + + + + + + MYM Player - Arpy (UK) (20xx) (PD) + ???? + unknown + + + + + + + + MYM Player - Cybernoid 1 (UK) (20xx) (PD) + ???? + unknown + + + + + + + + MYM Player - Dragon Flight (UK) (20xx) (PD) + ???? + unknown + + + + + + + + MYM Player - Judgement (UK) (20xx) (PD) + ???? + unknown + + + + + + + + MYM Player - Rollout (UK) (20xx) (PD) + ???? + unknown + + + + + + + + MYM Player - Warp (UK) (20xx) (PD) + ???? + unknown + + + + + + + + Mystere De Kikekankoi (F) (1984) + ???? + unknown + + + @@ -1532,6 +2882,256 @@ + + OBED91 by Twilighte (UK) (1991) + ???? + unknown + + + + + + + + Obelix (F) (1984) (Atmos) + ???? + unknown + + + + + + + + Obstacle Course (UK) (19xx) (PD) + ???? + unknown + + + + + + + + Oil-Leak (F) (19xx) [a] + ???? + unknown + + + + + + + + oilleak + ???? + unknown + + + + + + + + Ordbehandling (19xx)(Suspect Software)(PD) + ???? + unknown + + + + + + + + Orible (F) (1984) + ???? + unknown + + + + + + + + Oric Abilities Demo (PD) [b] + ???? + unknown + + + + + + + + Oric Abilities Demo (PD) + ???? + unknown + + + + + + + + Oric Atmos (1984)(G.V. - M. S.)(fr) + ???? + unknown + + + + + + + + Oric Atmos Demonstration Program (19xx)(-) + ???? + unknown + + + + + + + + Oric Bandit (UK) (1983) [a] + ???? + unknown + + + + + + + + Oric Base File Managment System (1983)(Tansoft Limited)(fr) + ???? + unknown + + + + + + + + Oric Chess (UK) (1983) + ???? + unknown + + + + + + + + Oric Driver (UK) (1983) + ???? + unknown + + + + + + + + Oric Forth V2 (F) (19xx) + ???? + unknown + + + + + + + + Oric Invaders (UK) (1983) (Atmos) + ???? + unknown + + + + + + + + Oric Mega Demo (1997) (PD) + ???? + unknown + + + + + + + + Oric Music Effects (UK) (19xx) + ???? + unknown + + + + + + + + Oric Music Magic 1 (UK) (1983) + ???? + unknown + + + + + + + + Oric Piano (PD) + ???? + unknown + + + + + + + + Oric Word Proc (1983)(Juniper Computing) + ???? + unknown + + + + + + + + Oric-Basic Plus 1 (1984)(G.Bertin) + ???? + unknown + + + + + + + + Oric-Calc (1983)(Tansoft Ltd - G.M. Phillips) + ???? + unknown + + + + + + + + Oric-Calc (F) (1983) + ???? + unknown + + + + + + Oric-Mon (1983)(A.J. Clarke) ???? @@ -1552,6 +3152,36 @@ + + Orica (F) (19xx) + ???? + unknown + + + + + + + + Oricade (19xx)(-) + ???? + unknown + + + + + + + + orickong + ???? + unknown + + + + + + Oricmon (1983)(Tansoft Ltd) ???? diff --git a/hash/more/oric1_flop.xml b/hash/more/oric1_flop.xml index 19a2e66e32a..aeacc6b7a48 100644 --- a/hash/more/oric1_flop.xml +++ b/hash/more/oric1_flop.xml @@ -1,6 +1,6 @@ - + 3dfongus @@ -502,6 +502,16 @@ + + CPM-65 (2024-05-03)(Given, David)(CH)(en)(BSD-2) + ???? + unknown + + + + + + Creepy Castle (UK) (19xx) ???? diff --git a/hash/more/pasopia7_cass.xml b/hash/more/pasopia7_cass.xml index 03f9e8712e1..8072240cd6c 100644 --- a/hash/more/pasopia7_cass.xml +++ b/hash/more/pasopia7_cass.xml @@ -1,6 +1,6 @@ - + 3D Golf Simulation (19xx)(T&E) @@ -12,6 +12,16 @@ + + Chuuichiyou Suugaku (1984-12)(Oota, Hidek)(JP)[Micom BASIC] + ???? + unknown + + + + + + Door Door ???? @@ -22,6 +32,26 @@ + + Fighting Heri (1984-12)(Keroyon Soft)(JP)[f][Micom BASIC] + ???? + unknown + + + + + + + + Fighting Heri (1984-12)(Keroyon Soft)(JP)[Micom BASIC] + ???? + unknown + + + + + + Fruits_Paradise ???? diff --git a/hash/more/pasopia_cass.xml b/hash/more/pasopia_cass.xml index f4cfa7b2c59..2a417a96705 100644 --- a/hash/more/pasopia_cass.xml +++ b/hash/more/pasopia_cass.xml @@ -1,6 +1,6 @@ - + 2001Nen Uchu no Tabi Part II @@ -52,6 +52,16 @@ + + Caterpillar in the Amida, The (1984-12)(Iwanaga, Toshihide)(JP)[Micom BASIC] + ???? + unknown + + + + + + Daisensha Toppa Sakusen ???? diff --git a/hash/neogeo.xml b/hash/neogeo.xml index d2b2ea8670e..ceac2edca47 100644 --- a/hash/neogeo.xml +++ b/hash/neogeo.xml @@ -11615,7 +11615,36 @@ license:CC0-1.0 - Gladmort (demo) + GladMort (demo²) + 2024 + PixelHeart + + + + + + + + + + + + + + + + + + + + + + + + + + + GladMort (demo) 2024 PixelHeart diff --git a/hash/sat_vccart.xml b/hash/sat_vccart.xml index 348509ad1fd..5343666f222 100644 --- a/hash/sat_vccart.xml +++ b/hash/sat_vccart.xml @@ -29,7 +29,7 @@ license:CC0-1.0 --> - + Video CD Card (Europe, v1.105) 1995 Sega @@ -41,13 +41,13 @@ license:CC0-1.0 - - + + - + Hitachi Video CD Card (Japan, two white dots, v1.011) 1995 Hitachi @@ -58,13 +58,13 @@ license:CC0-1.0 - - + + - + Hitachi Video CD Card (Japan, one white dot, v1.009) 1995 Hitachi @@ -74,13 +74,13 @@ license:CC0-1.0 - - + + - + SegaSaturn Movie Card (Japan, v1.102) 1995 Sega @@ -91,13 +91,13 @@ license:CC0-1.0 - - + + - + JVC Video CD / Photo CD Decoder (Japan, v3.000) 1996? JVC @@ -109,13 +109,13 @@ license:CC0-1.0 - - + + - + Victor Twin Operator Video CD & Photo CD (Japan, v2.001) 1995 Victor @@ -126,13 +126,13 @@ license:CC0-1.0 - - + + - + Victor Twin Operator Video CD & Photo CD (Japan, v2.000) 1995 Victor @@ -143,13 +143,13 @@ license:CC0-1.0 - - + + - + Victor Video CD Decoder (Japan, v1.003) 1995 Victor @@ -160,8 +160,26 @@ license:CC0-1.0 - - + + + + + + + + Victor Twin Operator Video CD & Photo CD (Japan, v4.000) + 1997 + Victor + + + + + + + + + + diff --git a/hash/supracan.xml b/hash/supracan.xml index 93672bda29f..71855f73897 100644 --- a/hash/supracan.xml +++ b/hash/supracan.xml @@ -2,12 +2,22 @@ + Formosa Duel ~ Formosa Da Dui Jue 1995 - AV Artisan Corp. + AV Artisan - + @@ -35,8 +45,8 @@ game over screen uses a RNG register for rain scroll (verify) - - + + @@ -55,9 +65,10 @@ Broken [video] during intro, uses bitmap mode with ROZ layer - - + + + @@ -67,7 +78,7 @@ Broken [video] during intro, uses bitmap mode with ROZ layer Speedy Dragon ~ Yin Su Fei Long 1995 - AV Artisan Corp. + AV Artisan - - + + @@ -96,8 +107,8 @@ Broken [video] during intro, uses bitmap mode with ROZ layer - - + + @@ -117,8 +128,8 @@ Broken [video] during intro, uses bitmap mode with ROZ layer - - + + @@ -133,9 +144,9 @@ Broken [video] during intro, uses bitmap mode with ROZ layer - - - + + + @@ -151,8 +162,8 @@ Broken [video] during intro, uses bitmap mode with ROZ layer - - + + @@ -174,8 +185,8 @@ few [video] missing/glitched tiles in gameplay, likely related to above. - - + + @@ -200,8 +211,8 @@ Erratic gameplay speed, controls [irq 3] as FRC - - + + @@ -212,23 +223,37 @@ Erratic gameplay speed, controls [irq 3] as FRC Funtech - - + + - - + + Rebel Star ~ Pàn Xīng + 1996 + Horng Shen Information + + + + + + + - - - - - + + + + + diff --git a/makefile b/makefile index 8fddce18840..a27d401b1e4 100644 --- a/makefile +++ b/makefile @@ -1578,7 +1578,7 @@ endif ifeq (posix,$(SHELLTYPE)) $(GENDIR)/version.cpp: makefile $(GENDIR)/git_desc | $(GEN_FOLDERS) - @echo '#define BARE_BUILD_VERSION "0.270.0"' > $@ + @echo '#define BARE_BUILD_VERSION "0.270.x"' > $@ @echo '#define BARE_VCS_REVISION "$(NEW_GIT_VERSION)"' >> $@ @echo 'extern const char bare_build_version[];' >> $@ @echo 'extern const char bare_vcs_revision[];' >> $@ @@ -1588,7 +1588,7 @@ $(GENDIR)/version.cpp: makefile $(GENDIR)/git_desc | $(GEN_FOLDERS) @echo 'const char build_version[] = BARE_BUILD_VERSION " (" BARE_VCS_REVISION ")";' >> $@ else $(GENDIR)/version.cpp: makefile $(GENDIR)/git_desc | $(GEN_FOLDERS) - @echo #define BARE_BUILD_VERSION "0.270.0" > $@ + @echo #define BARE_BUILD_VERSION "0.270.x" > $@ @echo #define BARE_VCS_REVISION "$(NEW_GIT_VERSION)" >> $@ @echo extern const char bare_build_version[]; >> $@ @echo extern const char bare_vcs_revision[]; >> $@ diff --git a/src/devices/bus/a1bus/a1bus.h b/src/devices/bus/a1bus/a1bus.h index a5c1e98db9b..2af48e5eb6f 100644 --- a/src/devices/bus/a1bus/a1bus.h +++ b/src/devices/bus/a1bus/a1bus.h @@ -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 m_a1bus; @@ -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; diff --git a/src/devices/bus/a1bus/a1cassette.cpp b/src/devices/bus/a1bus/a1cassette.cpp index 56cd198bac8..5ceb89d8b8d 100644 --- a/src/devices/bus/a1bus/a1cassette.cpp +++ b/src/devices/bus/a1bus/a1cassette.cpp @@ -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(); diff --git a/src/devices/bus/a1bus/a1cffa.cpp b/src/devices/bus/a1bus/a1cffa.cpp index 9818caf9fc6..d7400710247 100644 --- a/src/devices/bus/a1bus/a1cffa.cpp +++ b/src/devices/bus/a1bus/a1cffa.cpp @@ -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 m_ata; diff --git a/src/devices/bus/a2bus/4play.cpp b/src/devices/bus/a2bus/4play.cpp index c51ef306cff..d267b5c0059 100644 --- a/src/devices/bus/a2bus/4play.cpp +++ b/src/devices/bus/a2bus/4play.cpp @@ -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; diff --git a/src/devices/bus/a2bus/a2alfam2.cpp b/src/devices/bus/a2bus/a2alfam2.cpp index 72815dcce53..e220d1616c2 100644 --- a/src/devices/bus/a2bus/a2alfam2.cpp +++ b/src/devices/bus/a2bus/a2alfam2.cpp @@ -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; @@ -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; }; /*************************************************************************** diff --git a/src/devices/bus/a2bus/a2applicard.cpp b/src/devices/bus/a2bus/a2applicard.cpp index 5395295a207..3ccfb3838d9 100644 --- a/src/devices/bus/a2bus/a2applicard.cpp +++ b/src/devices/bus/a2bus/a2applicard.cpp @@ -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; @@ -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; }; /*************************************************************************** diff --git a/src/devices/bus/a2bus/a2arcadebd.cpp b/src/devices/bus/a2bus/a2arcadebd.cpp index 9dbdfe44e8f..219c67c4905 100644 --- a/src/devices/bus/a2bus/a2arcadebd.cpp +++ b/src/devices/bus/a2bus/a2arcadebd.cpp @@ -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; diff --git a/src/devices/bus/a2bus/a2bus.h b/src/devices/bus/a2bus/a2bus.h index 32b280fd006..733b6b14240 100644 --- a/src/devices/bus/a2bus/a2bus.h +++ b/src/devices/bus/a2bus/a2bus.h @@ -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 m_a2bus; @@ -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; diff --git a/src/devices/bus/a2bus/a2cffa.cpp b/src/devices/bus/a2bus/a2cffa.cpp index 6aa0a2c904a..fe0288892ee 100644 --- a/src/devices/bus/a2bus/a2cffa.cpp +++ b/src/devices/bus/a2bus/a2cffa.cpp @@ -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; @@ -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 diff --git a/src/devices/bus/a2bus/a2corvus.h b/src/devices/bus/a2bus/a2corvus.h index a6d1a232eee..87d190663f8 100644 --- a/src/devices/bus/a2bus/a2corvus.h +++ b/src/devices/bus/a2bus/a2corvus.h @@ -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; diff --git a/src/devices/bus/a2bus/a2diskiing.h b/src/devices/bus/a2bus/a2diskiing.h index 1292249333e..6568bfe3624 100644 --- a/src/devices/bus/a2bus/a2diskiing.h +++ b/src/devices/bus/a2bus/a2diskiing.h @@ -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; @@ -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); @@ -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; @@ -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 @@ -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 diff --git a/src/devices/bus/a2bus/a2dx1.cpp b/src/devices/bus/a2bus/a2dx1.cpp index ae8f80091b1..6946bef8342 100644 --- a/src/devices/bus/a2bus/a2dx1.cpp +++ b/src/devices/bus/a2bus/a2dx1.cpp @@ -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; diff --git a/src/devices/bus/a2bus/a2eauxslot.h b/src/devices/bus/a2bus/a2eauxslot.h index 185e1deede5..9d6ccfb7036 100644 --- a/src/devices/bus/a2bus/a2eauxslot.h +++ b/src/devices/bus/a2bus/a2eauxslot.h @@ -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: @@ -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; diff --git a/src/devices/bus/a2bus/a2echoii.cpp b/src/devices/bus/a2bus/a2echoii.cpp index f87d48ac74b..6d73924d105 100644 --- a/src/devices/bus/a2bus/a2echoii.cpp +++ b/src/devices/bus/a2bus/a2echoii.cpp @@ -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; diff --git a/src/devices/bus/a2bus/a2eext80col.h b/src/devices/bus/a2bus/a2eext80col.h index 239a22e1484..ac244a3cf1c 100644 --- a/src/devices/bus/a2bus/a2eext80col.h +++ b/src/devices/bus/a2bus/a2eext80col.h @@ -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; diff --git a/src/devices/bus/a2bus/a2eramworks3.h b/src/devices/bus/a2bus/a2eramworks3.h index fc083445e3c..b837b0dac0d 100644 --- a/src/devices/bus/a2bus/a2eramworks3.h +++ b/src/devices/bus/a2bus/a2eramworks3.h @@ -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; diff --git a/src/devices/bus/a2bus/a2estd80col.h b/src/devices/bus/a2bus/a2estd80col.h index d66a42a7495..9d52676893f 100644 --- a/src/devices/bus/a2bus/a2estd80col.h +++ b/src/devices/bus/a2bus/a2estd80col.h @@ -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; diff --git a/src/devices/bus/a2bus/a2hsscsi.h b/src/devices/bus/a2bus/a2hsscsi.h index 3878ffac370..b3c17d9a1dd 100644 --- a/src/devices/bus/a2bus/a2hsscsi.h +++ b/src/devices/bus/a2bus/a2hsscsi.h @@ -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; diff --git a/src/devices/bus/a2bus/a2iwm.h b/src/devices/bus/a2bus/a2iwm.h index 1ffd1b8160b..6c4f008b0ef 100644 --- a/src/devices/bus/a2bus/a2iwm.h +++ b/src/devices/bus/a2bus/a2iwm.h @@ -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; @@ -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; diff --git a/src/devices/bus/a2bus/a2mcms.h b/src/devices/bus/a2bus/a2mcms.h index a696455ffad..e05ad64f18e 100644 --- a/src/devices/bus/a2bus/a2mcms.h +++ b/src/devices/bus/a2bus/a2mcms.h @@ -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 const &inputs, std::vector &outputs) override; @@ -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; @@ -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; diff --git a/src/devices/bus/a2bus/a2memexp.cpp b/src/devices/bus/a2bus/a2memexp.cpp index 4c10de81848..e0e79223d92 100644 --- a/src/devices/bus/a2bus/a2memexp.cpp +++ b/src/devices/bus/a2bus/a2memexp.cpp @@ -50,10 +50,10 @@ class a2bus_memexp_device: // construction/destruction a2bus_memexp_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; @@ -80,7 +80,7 @@ class a2bus_ramfactor_device : public a2bus_memexp_device a2bus_ramfactor_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; }; /*************************************************************************** diff --git a/src/devices/bus/a2bus/a2midi.cpp b/src/devices/bus/a2bus/a2midi.cpp index 941800180ed..ef19bd4e7e6 100644 --- a/src/devices/bus/a2bus/a2midi.cpp +++ b/src/devices/bus/a2bus/a2midi.cpp @@ -42,9 +42,9 @@ class a2bus_midi_device: protected: a2bus_midi_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; virtual uint8_t read_c0nx(uint8_t offset) override; virtual void write_c0nx(uint8_t offset, uint8_t data) override; diff --git a/src/devices/bus/a2bus/a2parprn.cpp b/src/devices/bus/a2bus/a2parprn.cpp index 6f09e83dc26..2377ea437e5 100644 --- a/src/devices/bus/a2bus/a2parprn.cpp +++ b/src/devices/bus/a2bus/a2parprn.cpp @@ -26,11 +26,11 @@ class a2bus_parprn_device : public device_t, public device_a2bus_card_interface a2bus_parprn_device(machine_config const &mconfig, device_type type, char const *tag, device_t *owner, u32 clock); // device_t implementation - virtual tiny_rom_entry const *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; - virtual void device_reset() override; + virtual tiny_rom_entry const *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: // printer status inputs @@ -62,8 +62,8 @@ class a2bus_4dparprn_device : public a2bus_parprn_device protected: // device_t implementation - virtual tiny_rom_entry const *device_rom_region() const override; - virtual void device_start() override; + virtual tiny_rom_entry const *device_rom_region() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; }; diff --git a/src/devices/bus/a2bus/a2pic.cpp b/src/devices/bus/a2bus/a2pic.cpp index 32ec527b254..febb85722fb 100644 --- a/src/devices/bus/a2bus/a2pic.cpp +++ b/src/devices/bus/a2bus/a2pic.cpp @@ -32,11 +32,11 @@ class a2bus_pic_device : public device_t, public device_a2bus_card_interface protected: // device_t implementation - virtual tiny_rom_entry const *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; - virtual void device_reset() override; + virtual tiny_rom_entry const *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: // printer status inputs diff --git a/src/devices/bus/a2bus/a2sam.cpp b/src/devices/bus/a2bus/a2sam.cpp index ecedc1eaa61..3fad0c34fff 100644 --- a/src/devices/bus/a2bus/a2sam.cpp +++ b/src/devices/bus/a2bus/a2sam.cpp @@ -38,7 +38,7 @@ class a2bus_sam_device: protected: virtual void device_start() override { } virtual void device_reset() override { } - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; // overrides of standard a2bus slot functions virtual void write_c0nx(uint8_t offset, uint8_t data) override { m_dac->write(data); } diff --git a/src/devices/bus/a2bus/a2scsi.h b/src/devices/bus/a2bus/a2scsi.h index e45d0171975..3beb78e5fce 100644 --- a/src/devices/bus/a2bus/a2scsi.h +++ b/src/devices/bus/a2bus/a2scsi.h @@ -33,10 +33,10 @@ class a2bus_scsi_device: protected: a2bus_scsi_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; diff --git a/src/devices/bus/a2bus/a2sd.h b/src/devices/bus/a2bus/a2sd.h index 481761c42ab..e17c728f8ac 100644 --- a/src/devices/bus/a2bus/a2sd.h +++ b/src/devices/bus/a2bus/a2sd.h @@ -32,10 +32,10 @@ class a2bus_a2sd_device: protected: a2bus_a2sd_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 u8 read_c0nx(u8 offset) override; diff --git a/src/devices/bus/a2bus/a2softcard.h b/src/devices/bus/a2bus/a2softcard.h index de2ee0e220b..c983e762cf6 100644 --- a/src/devices/bus/a2bus/a2softcard.h +++ b/src/devices/bus/a2bus/a2softcard.h @@ -28,9 +28,9 @@ class a2bus_softcard_device: protected: a2bus_softcard_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 void write_cnxx(uint8_t offset, uint8_t data) override; @@ -44,7 +44,7 @@ class a2bus_softcard_device: uint8_t dma_r(offs_t offset); void dma_w(offs_t offset, uint8_t data); - void z80_mem(address_map &map); + void z80_mem(address_map &map) ATTR_COLD; }; // device type definition diff --git a/src/devices/bus/a2bus/a2ssc.cpp b/src/devices/bus/a2bus/a2ssc.cpp index 1d6d286fd6e..3fa389e4bd5 100644 --- a/src/devices/bus/a2bus/a2ssc.cpp +++ b/src/devices/bus/a2bus/a2ssc.cpp @@ -37,11 +37,11 @@ class a2bus_ssc_device: protected: a2bus_ssc_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 ioport_constructor device_input_ports() 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; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; virtual uint8_t read_c0nx(uint8_t offset) override; virtual void write_c0nx(uint8_t offset, uint8_t data) override; @@ -66,9 +66,9 @@ class apricorn_ssi_device : public a2bus_ssc_device apricorn_ssi_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - virtual void device_start() override; - virtual const tiny_rom_entry *device_rom_region() const override; - virtual ioport_constructor device_input_ports() const override; + virtual void device_start() override ATTR_COLD; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; virtual void write_c0nx(uint8_t offset, uint8_t data) override; virtual uint8_t read_cnxx(uint8_t offset) override; diff --git a/src/devices/bus/a2bus/a2superdrive.cpp b/src/devices/bus/a2bus/a2superdrive.cpp index 7fb5820caa9..f9ce022a672 100644 --- a/src/devices/bus/a2bus/a2superdrive.cpp +++ b/src/devices/bus/a2bus/a2superdrive.cpp @@ -60,10 +60,10 @@ class a2bus_superdrive_device: protected: a2bus_superdrive_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; @@ -75,7 +75,7 @@ class a2bus_superdrive_device: private: - void m65c02_mem(address_map &map); + void m65c02_mem(address_map &map) ATTR_COLD; void m65c02_w(offs_t offset, uint8_t value); uint8_t m65c02_r(offs_t offset); diff --git a/src/devices/bus/a2bus/a2swyft.cpp b/src/devices/bus/a2bus/a2swyft.cpp index 6d9701d3a04..7b53ed48029 100644 --- a/src/devices/bus/a2bus/a2swyft.cpp +++ b/src/devices/bus/a2bus/a2swyft.cpp @@ -39,13 +39,13 @@ class a2bus_swyft_device: // construction/destruction a2bus_swyft_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: a2bus_swyft_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 uint8_t read_c0nx(uint8_t offset) override; virtual void write_c0nx(uint8_t offset, uint8_t data) override; diff --git a/src/devices/bus/a2bus/a2themill.h b/src/devices/bus/a2bus/a2themill.h index 59f0c2316d1..c46ecdedab8 100644 --- a/src/devices/bus/a2bus/a2themill.h +++ b/src/devices/bus/a2bus/a2themill.h @@ -30,10 +30,10 @@ class a2bus_themill_device: protected: a2bus_themill_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 ioport_constructor device_input_ports() 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 ioport_constructor device_input_ports() const override ATTR_COLD; // overrides of standard a2bus slot functions virtual uint8_t read_c0nx(uint8_t offset) override; @@ -52,7 +52,7 @@ class a2bus_themill_device: uint8_t dma_r(offs_t offset); void dma_w(offs_t offset, uint8_t data); - void m6809_mem(address_map &map); + void m6809_mem(address_map &map) ATTR_COLD; }; // device type definition diff --git a/src/devices/bus/a2bus/a2thunderclock.cpp b/src/devices/bus/a2bus/a2thunderclock.cpp index 5f264ee261e..f671af3e2e1 100644 --- a/src/devices/bus/a2bus/a2thunderclock.cpp +++ b/src/devices/bus/a2bus/a2thunderclock.cpp @@ -60,10 +60,10 @@ class a2bus_thunderclock_device: protected: a2bus_thunderclock_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; diff --git a/src/devices/bus/a2bus/a2ultraterm.cpp b/src/devices/bus/a2bus/a2ultraterm.cpp index 1f2c09c3b73..7ed7ca905f3 100644 --- a/src/devices/bus/a2bus/a2ultraterm.cpp +++ b/src/devices/bus/a2bus/a2ultraterm.cpp @@ -106,9 +106,9 @@ class a2bus_videx160_device: // construction/destruction a2bus_videx160_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; @@ -137,7 +137,7 @@ class a2bus_ultraterm_device : public a2bus_videx160_device public: a2bus_ultraterm_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; }; class a2bus_ultratermenh_device : public a2bus_videx160_device @@ -145,7 +145,7 @@ class a2bus_ultratermenh_device : public a2bus_videx160_device public: a2bus_ultratermenh_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; }; /*************************************************************************** diff --git a/src/devices/bus/a2bus/a2videoterm.cpp b/src/devices/bus/a2bus/a2videoterm.cpp index c5c75fc3323..6fa2ccad74b 100644 --- a/src/devices/bus/a2bus/a2videoterm.cpp +++ b/src/devices/bus/a2bus/a2videoterm.cpp @@ -108,9 +108,9 @@ class a2bus_videx80_device: // construction/destruction a2bus_videx80_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; @@ -136,7 +136,7 @@ class a2bus_videoterm_device : public a2bus_videx80_device public: a2bus_videoterm_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; }; class a2bus_ap16_device : public a2bus_videx80_device @@ -144,8 +144,8 @@ class a2bus_ap16_device : public a2bus_videx80_device public: a2bus_ap16_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - 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; protected: virtual uint8_t read_cnxx(uint8_t offset) override; @@ -157,8 +157,8 @@ class a2bus_ap16alt_device : public a2bus_videx80_device public: a2bus_ap16alt_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - 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; protected: virtual uint8_t read_cnxx(uint8_t offset) override; @@ -169,8 +169,8 @@ class a2bus_vtc1_device : public a2bus_videx80_device public: a2bus_vtc1_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - 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; }; class a2bus_aevm80_device : public a2bus_videx80_device @@ -178,8 +178,8 @@ class a2bus_aevm80_device : public a2bus_videx80_device public: a2bus_aevm80_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - 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; }; /*************************************************************************** diff --git a/src/devices/bus/a2bus/a2vulcan.cpp b/src/devices/bus/a2bus/a2vulcan.cpp index 889e7df5de3..32827eba1f6 100644 --- a/src/devices/bus/a2bus/a2vulcan.cpp +++ b/src/devices/bus/a2bus/a2vulcan.cpp @@ -92,9 +92,9 @@ class a2bus_vulcanbase_device: // construction/destruction a2bus_vulcanbase_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; @@ -120,8 +120,8 @@ class a2bus_vulcan_device : public a2bus_vulcanbase_device a2bus_vulcan_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 void device_start() override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; }; class a2bus_vulcaniie_device : public a2bus_vulcanbase_device @@ -130,8 +130,8 @@ class a2bus_vulcaniie_device : public a2bus_vulcanbase_device a2bus_vulcaniie_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 void device_start() override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; }; class a2bus_vulcangold_device : public a2bus_vulcanbase_device @@ -140,7 +140,7 @@ class a2bus_vulcangold_device : public a2bus_vulcanbase_device a2bus_vulcangold_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; }; /*************************************************************************** diff --git a/src/devices/bus/a2bus/a2wico_trackball.cpp b/src/devices/bus/a2bus/a2wico_trackball.cpp index b2c266149e7..12fb6e6275c 100644 --- a/src/devices/bus/a2bus/a2wico_trackball.cpp +++ b/src/devices/bus/a2bus/a2wico_trackball.cpp @@ -33,13 +33,13 @@ class a2bus_wicotrackball_device: a2bus_wicotrackball_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // optional information overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; protected: a2bus_wicotrackball_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; diff --git a/src/devices/bus/a2bus/a2zipdrive.cpp b/src/devices/bus/a2bus/a2zipdrive.cpp index 9a59af1a431..5d2a141ae86 100644 --- a/src/devices/bus/a2bus/a2zipdrive.cpp +++ b/src/devices/bus/a2bus/a2zipdrive.cpp @@ -100,10 +100,10 @@ class a2bus_zipdrivebase_device: // construction/destruction a2bus_zipdrivebase_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; @@ -129,8 +129,8 @@ class a2bus_focusdrive_device : public a2bus_zipdrivebase_device a2bus_focusdrive_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - virtual void device_reset() override; - virtual const tiny_rom_entry *device_rom_region() const override; + virtual void device_reset() override ATTR_COLD; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; virtual uint8_t read_c0nx(uint8_t offset) override; virtual void write_c0nx(uint8_t offset, uint8_t data) override; }; diff --git a/src/devices/bus/a2bus/ace2x00.h b/src/devices/bus/a2bus/ace2x00.h index faa769ddcbc..dba00760750 100644 --- a/src/devices/bus/a2bus/ace2x00.h +++ b/src/devices/bus/a2bus/ace2x00.h @@ -30,9 +30,9 @@ class a2bus_ace2x00_device: a2bus_ace2x00_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); protected: - 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_cnxx(uint8_t offset) override; @@ -57,7 +57,7 @@ class a2bus_ace2x00_slot6_device : public a2bus_ace2x00_device a2bus_ace2x00_slot6_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 void device_add_mconfig(machine_config &config) override ATTR_COLD; // overrides of standard a2bus slot functions virtual uint8_t read_c0nx(u8 offset) override; diff --git a/src/devices/bus/a2bus/agat7langcard.h b/src/devices/bus/a2bus/agat7langcard.h index e7dae54ebfb..729b2252757 100644 --- a/src/devices/bus/a2bus/agat7langcard.h +++ b/src/devices/bus/a2bus/agat7langcard.h @@ -30,8 +30,8 @@ class a2bus_agat7langcard_device: protected: a2bus_agat7langcard_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_cnxx(uint8_t offset) override; diff --git a/src/devices/bus/a2bus/agat7ports.h b/src/devices/bus/a2bus/agat7ports.h index 1d587c9f747..c99458c2405 100644 --- a/src/devices/bus/a2bus/agat7ports.h +++ b/src/devices/bus/a2bus/agat7ports.h @@ -35,10 +35,10 @@ class a2bus_agat7_ports_device: protected: a2bus_agat7_ports_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 ioport_constructor device_input_ports() 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 ioport_constructor device_input_ports() const override ATTR_COLD; // overrides of standard a2bus slot functions virtual uint8_t read_c0nx(uint8_t offset) override; diff --git a/src/devices/bus/a2bus/agat7ram.h b/src/devices/bus/a2bus/agat7ram.h index 6b8529fcb7b..20726672632 100644 --- a/src/devices/bus/a2bus/agat7ram.h +++ b/src/devices/bus/a2bus/agat7ram.h @@ -30,8 +30,8 @@ class a2bus_agat7ram_device: protected: a2bus_agat7ram_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_cnxx(uint8_t offset) override; diff --git a/src/devices/bus/a2bus/agat840k_hle.h b/src/devices/bus/a2bus/agat840k_hle.h index 61d2f8f267b..70d451398dd 100644 --- a/src/devices/bus/a2bus/agat840k_hle.h +++ b/src/devices/bus/a2bus/agat840k_hle.h @@ -53,10 +53,10 @@ class a2bus_agat840k_hle_device: // construction/destruction a2bus_agat840k_hle_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; diff --git a/src/devices/bus/a2bus/agat_fdc.h b/src/devices/bus/a2bus/agat_fdc.h index 84bfd82b268..fb02a02776f 100644 --- a/src/devices/bus/a2bus/agat_fdc.h +++ b/src/devices/bus/a2bus/agat_fdc.h @@ -47,10 +47,10 @@ class a2bus_agat_fdc_device: // construction/destruction a2bus_agat_fdc_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; diff --git a/src/devices/bus/a2bus/booti.cpp b/src/devices/bus/a2bus/booti.cpp index 39c6b1055ba..de4b4cfdab2 100644 --- a/src/devices/bus/a2bus/booti.cpp +++ b/src/devices/bus/a2bus/booti.cpp @@ -50,10 +50,10 @@ class a2bus_booti_device: protected: a2bus_booti_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; diff --git a/src/devices/bus/a2bus/byte8251.cpp b/src/devices/bus/a2bus/byte8251.cpp index 301ed5bd536..318cee431c3 100644 --- a/src/devices/bus/a2bus/byte8251.cpp +++ b/src/devices/bus/a2bus/byte8251.cpp @@ -51,10 +51,10 @@ class a2bus_byte8251_device : public device_t, public device_a2bus_card_interfac protected: // device-level overrides - virtual void device_start() override; - virtual void device_reset() override; - virtual ioport_constructor device_input_ports() 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 ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; // device_a2bus_card_interface overrides virtual u8 read_c0nx(u8 offset) override; diff --git a/src/devices/bus/a2bus/ccs7710.h b/src/devices/bus/a2bus/ccs7710.h index 0a5a7ea34e2..4277b444d70 100644 --- a/src/devices/bus/a2bus/ccs7710.h +++ b/src/devices/bus/a2bus/ccs7710.h @@ -23,10 +23,10 @@ class ccs7710_device : public device_t, public device_a2bus_card_interface protected: // device-level overrides - virtual void device_start() override; - virtual ioport_constructor device_input_ports() const 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 ioport_constructor device_input_ports() const 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; // device_a2bus_card_interface overrides virtual u8 read_c0nx(u8 offset) override; diff --git a/src/devices/bus/a2bus/cmsscsi.h b/src/devices/bus/a2bus/cmsscsi.h index 67f79120f9c..1dfa3a9834a 100644 --- a/src/devices/bus/a2bus/cmsscsi.h +++ b/src/devices/bus/a2bus/cmsscsi.h @@ -33,10 +33,10 @@ class a2bus_cmsscsi_device: protected: a2bus_cmsscsi_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; diff --git a/src/devices/bus/a2bus/computereyes2.cpp b/src/devices/bus/a2bus/computereyes2.cpp index 979472d00ef..89f6236cd4c 100644 --- a/src/devices/bus/a2bus/computereyes2.cpp +++ b/src/devices/bus/a2bus/computereyes2.cpp @@ -33,9 +33,9 @@ class a2bus_computereyes2_device: protected: a2bus_computereyes2_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; diff --git a/src/devices/bus/a2bus/corvfdc01.h b/src/devices/bus/a2bus/corvfdc01.h index 29670de473f..6db9b15d641 100644 --- a/src/devices/bus/a2bus/corvfdc01.h +++ b/src/devices/bus/a2bus/corvfdc01.h @@ -32,10 +32,10 @@ class a2bus_corvfdc01_device: protected: a2bus_corvfdc01_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; diff --git a/src/devices/bus/a2bus/corvfdc02.h b/src/devices/bus/a2bus/corvfdc02.h index 24e25d159fd..24c91bfaf6c 100644 --- a/src/devices/bus/a2bus/corvfdc02.h +++ b/src/devices/bus/a2bus/corvfdc02.h @@ -32,10 +32,10 @@ class a2bus_corvfdc02_device: protected: a2bus_corvfdc02_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; diff --git a/src/devices/bus/a2bus/excel9.h b/src/devices/bus/a2bus/excel9.h index 2814cd6e394..4d8ceba9c09 100644 --- a/src/devices/bus/a2bus/excel9.h +++ b/src/devices/bus/a2bus/excel9.h @@ -30,10 +30,10 @@ class a2bus_excel9_device: protected: a2bus_excel9_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; @@ -53,7 +53,7 @@ class a2bus_excel9_device: uint8_t dma_r(offs_t offset); void dma_w(offs_t offset, uint8_t data); - void m6809_mem(address_map &map); + void m6809_mem(address_map &map) ATTR_COLD; }; // device type definition diff --git a/src/devices/bus/a2bus/ezcgi.cpp b/src/devices/bus/a2bus/ezcgi.cpp index bbbe2931f56..51c48f61d20 100644 --- a/src/devices/bus/a2bus/ezcgi.cpp +++ b/src/devices/bus/a2bus/ezcgi.cpp @@ -41,9 +41,9 @@ class a2bus_ezcgi_device: protected: a2bus_ezcgi_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; @@ -66,9 +66,9 @@ class a2bus_ezcgi_9938_device: protected: a2bus_ezcgi_9938_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; @@ -91,9 +91,9 @@ class a2bus_ezcgi_9958_device: protected: a2bus_ezcgi_9958_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; diff --git a/src/devices/bus/a2bus/grafex.cpp b/src/devices/bus/a2bus/grafex.cpp index 6855ebe174a..cdb61572f73 100644 --- a/src/devices/bus/a2bus/grafex.cpp +++ b/src/devices/bus/a2bus/grafex.cpp @@ -51,8 +51,8 @@ class a2bus_grafex_device : public device_t, protected: a2bus_grafex_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; @@ -64,7 +64,7 @@ class a2bus_grafex_device : public device_t, UPD7220_DISPLAY_PIXELS_MEMBER(hgdc_display_pixels); - void upd7220_map(address_map &map); + void upd7220_map(address_map &map) ATTR_COLD; rgb_t m_bg, m_fg; }; diff --git a/src/devices/bus/a2bus/grappler.cpp b/src/devices/bus/a2bus/grappler.cpp index 057e9718667..e8cfd1e9f71 100644 --- a/src/devices/bus/a2bus/grappler.cpp +++ b/src/devices/bus/a2bus/grappler.cpp @@ -76,8 +76,8 @@ class a2bus_grappler_device_base : public device_t, public device_a2bus_card_int protected: // device_t implementation - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; // helpers void set_rom_bank(u16 rom_bank); @@ -241,9 +241,9 @@ class a2bus_grappler_device : public a2bus_grappler_device_base protected: // device_t implementation virtual tiny_rom_entry const *device_rom_region() const override { return ROM_NAME(grappler); } - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: // printer status inputs @@ -446,9 +446,9 @@ class a2bus_grapplerplus_device_base : public a2bus_grappler_device_base a2bus_grapplerplus_device_base(machine_config const &mconfig, device_type type, char const *tag, device_t *owner, u32 clock); // device_t implementation - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; - virtual void device_reset() override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; // ACK latch set input void ack_w(int state); @@ -631,9 +631,9 @@ class a2bus_grapplerplus_device : public a2bus_grapplerplus_device_base protected: // device_t implementation virtual tiny_rom_entry const *device_rom_region() const override { return ROM_NAME(grapplerplus); } - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: // a2bus_grapplerplus_device_base implementation @@ -855,10 +855,10 @@ class a2bus_buf_grapplerplus_device : public a2bus_grapplerplus_device_base // device_t implementation virtual tiny_rom_entry const *device_rom_region() const override { return ROM_NAME(bufgrapplerplus); } - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; // helpers template void device_add_mconfig(machine_config &config, T &&mcu_clock); @@ -871,7 +871,7 @@ class a2bus_buf_grapplerplus_device : public a2bus_grapplerplus_device_base void buf_ack_w(int state); // MCU I/O handlers - void mcu_io(address_map &map); + void mcu_io(address_map &map) ATTR_COLD; void mcu_p2_w(u8 data); u8 mcu_bus_r(); void mcu_bus_w(u8 data); diff --git a/src/devices/bus/a2bus/lancegs.cpp b/src/devices/bus/a2bus/lancegs.cpp index a1559596727..e2b249c03f2 100644 --- a/src/devices/bus/a2bus/lancegs.cpp +++ b/src/devices/bus/a2bus/lancegs.cpp @@ -67,11 +67,11 @@ class a2bus_lancegs_device: protected: a2bus_lancegs_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); - 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; - 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 uint8_t read_c0nx(uint8_t offset) override; virtual void write_c0nx(uint8_t offset, uint8_t data) override; diff --git a/src/devices/bus/a2bus/laser128.h b/src/devices/bus/a2bus/laser128.h index 9858e3889f7..6685318c1fe 100644 --- a/src/devices/bus/a2bus/laser128.h +++ b/src/devices/bus/a2bus/laser128.h @@ -33,9 +33,9 @@ class a2bus_laser128_device: protected: a2bus_laser128_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; diff --git a/src/devices/bus/a2bus/mouse.cpp b/src/devices/bus/a2bus/mouse.cpp index 144c6ed23b8..87b9f2298ce 100644 --- a/src/devices/bus/a2bus/mouse.cpp +++ b/src/devices/bus/a2bus/mouse.cpp @@ -98,15 +98,15 @@ class a2bus_mouse_device: a2bus_mouse_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual ioport_constructor device_input_ports() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; protected: a2bus_mouse_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + 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; diff --git a/src/devices/bus/a2bus/nippelclock.h b/src/devices/bus/a2bus/nippelclock.h index 3601ca14df8..2125eb68f3a 100644 --- a/src/devices/bus/a2bus/nippelclock.h +++ b/src/devices/bus/a2bus/nippelclock.h @@ -31,9 +31,9 @@ class a2bus_nippelclock_device: protected: a2bus_nippelclock_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; diff --git a/src/devices/bus/a2bus/noisemaker.cpp b/src/devices/bus/a2bus/noisemaker.cpp index 2a18ec15396..e185b389753 100644 --- a/src/devices/bus/a2bus/noisemaker.cpp +++ b/src/devices/bus/a2bus/noisemaker.cpp @@ -34,8 +34,8 @@ class a2bus_noisemaker_device : public device_t, public device_a2bus_card_interf protected: // device-level overrides - 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; // device_a2bus_card_interface overrides virtual u8 read_c0nx(u8 offset) override; diff --git a/src/devices/bus/a2bus/pc_xporter.cpp b/src/devices/bus/a2bus/pc_xporter.cpp index 3d0937e0832..73c401d942a 100644 --- a/src/devices/bus/a2bus/pc_xporter.cpp +++ b/src/devices/bus/a2bus/pc_xporter.cpp @@ -114,9 +114,9 @@ class a2bus_pcxporter_device: protected: a2bus_pcxporter_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; @@ -188,8 +188,8 @@ class a2bus_pcxporter_device: void pc_select_dma_channel(int channel, bool state); - void pc_io(address_map &map); - void pc_map(address_map &map); + void pc_io(address_map &map) ATTR_COLD; + void pc_map(address_map &map) ATTR_COLD; }; void a2bus_pcxporter_device::pc_map(address_map &map) diff --git a/src/devices/bus/a2bus/prodosromdrive.cpp b/src/devices/bus/a2bus/prodosromdrive.cpp index d9275384a00..381397163ce 100644 --- a/src/devices/bus/a2bus/prodosromdrive.cpp +++ b/src/devices/bus/a2bus/prodosromdrive.cpp @@ -38,8 +38,8 @@ class a2bus_pdromdrive_device : public device_t, protected: a2bus_pdromdrive_device(const machine_config &mconfig, device_type type, 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; // overrides of standard a2bus slot functions virtual uint8_t read_c0nx(uint8_t offset) override; diff --git a/src/devices/bus/a2bus/q68.h b/src/devices/bus/a2bus/q68.h index 34664a284f0..652437b0491 100644 --- a/src/devices/bus/a2bus/q68.h +++ b/src/devices/bus/a2bus/q68.h @@ -35,9 +35,9 @@ class a2bus_68k_device: protected: a2bus_68k_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_start() override ATTR_COLD; + virtual void device_reset() 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; @@ -59,10 +59,10 @@ class a2bus_q68_device : public a2bus_68k_device a2bus_q68_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 void device_add_mconfig(machine_config &config) override ATTR_COLD; private: - void m68008_mem(address_map &map); + void m68008_mem(address_map &map) ATTR_COLD; }; class a2bus_q68plus_device : public a2bus_68k_device @@ -73,10 +73,10 @@ class a2bus_q68plus_device : public a2bus_68k_device static auto parent_rom_device_type() { return &A2BUS_Q68; } protected: - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: - void m68008_mem(address_map &map); + void m68008_mem(address_map &map) ATTR_COLD; }; #endif // MAME_BUS_A2BUS_Q68_H diff --git a/src/devices/bus/a2bus/ramcard128k.h b/src/devices/bus/a2bus/ramcard128k.h index ee3ac683514..e85a0539613 100644 --- a/src/devices/bus/a2bus/ramcard128k.h +++ b/src/devices/bus/a2bus/ramcard128k.h @@ -30,8 +30,8 @@ class a2bus_ssramcard_device: protected: a2bus_ssramcard_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; diff --git a/src/devices/bus/a2bus/ramcard16k.h b/src/devices/bus/a2bus/ramcard16k.h index 21edcd7a7fd..6a759f2633a 100644 --- a/src/devices/bus/a2bus/ramcard16k.h +++ b/src/devices/bus/a2bus/ramcard16k.h @@ -30,8 +30,8 @@ class a2bus_ramcard_device: protected: a2bus_ramcard_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; diff --git a/src/devices/bus/a2bus/romcard.cpp b/src/devices/bus/a2bus/romcard.cpp index d2ae02bbf86..db50f847357 100644 --- a/src/devices/bus/a2bus/romcard.cpp +++ b/src/devices/bus/a2bus/romcard.cpp @@ -26,9 +26,9 @@ class a2bus_romcard_device: public: a2bus_romcard_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_start() override ATTR_COLD; virtual void bus_reset() override; - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; // overrides of standard a2bus slot functions virtual uint8_t read_c0nx(uint8_t offset) override; @@ -54,10 +54,10 @@ class a2bus_romcardfp_device: public a2bus_romcard_device public: a2bus_romcardfp_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; 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_romcardint_device: public a2bus_romcard_device @@ -65,10 +65,10 @@ class a2bus_romcardint_device: public a2bus_romcard_device public: a2bus_romcardint_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; 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_romcarduser_device: public a2bus_romcard_device, public device_image_interface diff --git a/src/devices/bus/a2bus/sider.h b/src/devices/bus/a2bus/sider.h index 6bb5ed3c036..580cded17b2 100644 --- a/src/devices/bus/a2bus/sider.h +++ b/src/devices/bus/a2bus/sider.h @@ -29,9 +29,9 @@ class a2bus_sider_device: protected: a2bus_sider_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; @@ -54,14 +54,14 @@ class a2bus_sider2card_device: public a2bus_sider_device { public: a2bus_sider2card_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; }; class a2bus_sider1card_device: public a2bus_sider_device { public: a2bus_sider1card_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; }; // device type definition diff --git a/src/devices/bus/a2bus/softcard3.h b/src/devices/bus/a2bus/softcard3.h index a048c9e754d..d6a3157355b 100644 --- a/src/devices/bus/a2bus/softcard3.h +++ b/src/devices/bus/a2bus/softcard3.h @@ -32,10 +32,10 @@ class a2bus_softcard3_device: protected: a2bus_softcard3_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; @@ -56,8 +56,8 @@ class a2bus_softcard3_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; }; // device type definition diff --git a/src/devices/bus/a2bus/ssbapple.cpp b/src/devices/bus/a2bus/ssbapple.cpp index c4ad0f7684b..513bcb07611 100644 --- a/src/devices/bus/a2bus/ssbapple.cpp +++ b/src/devices/bus/a2bus/ssbapple.cpp @@ -43,9 +43,9 @@ class a2bus_ssb_device: protected: a2bus_ssb_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_cnxx(uint8_t offset) override; diff --git a/src/devices/bus/a2bus/ssprite.cpp b/src/devices/bus/a2bus/ssprite.cpp index c34a0a90748..ec34845acd8 100644 --- a/src/devices/bus/a2bus/ssprite.cpp +++ b/src/devices/bus/a2bus/ssprite.cpp @@ -44,9 +44,9 @@ class a2bus_ssprite_device: protected: a2bus_ssprite_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; diff --git a/src/devices/bus/a2bus/suprterminal.cpp b/src/devices/bus/a2bus/suprterminal.cpp index 796937bebcb..059131bb6c7 100644 --- a/src/devices/bus/a2bus/suprterminal.cpp +++ b/src/devices/bus/a2bus/suprterminal.cpp @@ -52,10 +52,10 @@ class a2bus_suprterminal_device: protected: a2bus_suprterminal_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 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 u8 read_cnxx(u8 offset) override; diff --git a/src/devices/bus/a2bus/timemasterho.cpp b/src/devices/bus/a2bus/timemasterho.cpp index b8f2b511971..0bb341f143c 100644 --- a/src/devices/bus/a2bus/timemasterho.cpp +++ b/src/devices/bus/a2bus/timemasterho.cpp @@ -91,11 +91,11 @@ class a2bus_timemasterho_device: protected: a2bus_timemasterho_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 ioport_constructor device_input_ports() 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; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; // overrides of standard a2bus slot functions virtual uint8_t read_c0nx(uint8_t offset) override; diff --git a/src/devices/bus/a2bus/titan3plus2.h b/src/devices/bus/a2bus/titan3plus2.h index f162f115d8e..1fd98d1cab7 100644 --- a/src/devices/bus/a2bus/titan3plus2.h +++ b/src/devices/bus/a2bus/titan3plus2.h @@ -31,9 +31,9 @@ class a2bus_titan3plus2_device: protected: a2bus_titan3plus2_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 u8 read_inh_rom(u16 offset) override; diff --git a/src/devices/bus/a2bus/transwarp.h b/src/devices/bus/a2bus/transwarp.h index 1213ea26c8b..a8a8b7601bb 100644 --- a/src/devices/bus/a2bus/transwarp.h +++ b/src/devices/bus/a2bus/transwarp.h @@ -29,11 +29,11 @@ class a2bus_transwarp_device: a2bus_transwarp_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // overrides of device_t functions - virtual void device_start() override; - virtual void device_reset() override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const 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 ioport_constructor device_input_ports() const override ATTR_COLD; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; // overrides of standard a2bus slot functions virtual bool take_c800() override; @@ -53,7 +53,7 @@ class a2bus_transwarp_device: uint8_t dma_r(offs_t offset); void dma_w(offs_t offset, uint8_t data); - void m65c02_mem(address_map &map); + void m65c02_mem(address_map &map) ATTR_COLD; void hit_slot(int slot); void hit_slot_joy(); diff --git a/src/devices/bus/a2bus/uniprint.cpp b/src/devices/bus/a2bus/uniprint.cpp index 6af2662a846..167cfc97243 100644 --- a/src/devices/bus/a2bus/uniprint.cpp +++ b/src/devices/bus/a2bus/uniprint.cpp @@ -25,11 +25,11 @@ class a2bus_uniprint_device : public device_t, public device_a2bus_card_interfac protected: // device_t implementation - virtual tiny_rom_entry const *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; - virtual void device_reset() override; + virtual tiny_rom_entry const *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; // timer handlers TIMER_CALLBACK_MEMBER(update_strobe); diff --git a/src/devices/bus/a2bus/vistaa800.cpp b/src/devices/bus/a2bus/vistaa800.cpp index 47bd9a0ad27..282b32e3720 100644 --- a/src/devices/bus/a2bus/vistaa800.cpp +++ b/src/devices/bus/a2bus/vistaa800.cpp @@ -65,10 +65,10 @@ class a2bus_vistaa800_device : public device_t, public device_a2bus_card_interfa virtual uint8_t read_c800(uint16_t offset) override; protected: - 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; private: static void floppy_formats(format_registration &fr); diff --git a/src/devices/bus/a2gameio/brightpen.cpp b/src/devices/bus/a2gameio/brightpen.cpp index 6429b16b5f2..41d8ce3b512 100644 --- a/src/devices/bus/a2gameio/brightpen.cpp +++ b/src/devices/bus/a2gameio/brightpen.cpp @@ -34,8 +34,8 @@ class apple2_brightpen_device : public device_t, public device_a2gameio_interfac protected: // device_t implementation - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; // device_a2gameio_interface implementation virtual int sw0_r() override; @@ -126,7 +126,7 @@ int apple2_brightpen_device::sw0_r() } // light detected if average brightness is above threshold - return (brightness_sum >= BRIGHTNESS_THRESHOLD * pixels_scanned); + return brightness_sum >= BRIGHTNESS_THRESHOLD * pixels_scanned; } } // anonymous namespace diff --git a/src/devices/bus/a2gameio/computereyes.cpp b/src/devices/bus/a2gameio/computereyes.cpp index 0e7613260d4..03de502df9c 100644 --- a/src/devices/bus/a2gameio/computereyes.cpp +++ b/src/devices/bus/a2gameio/computereyes.cpp @@ -26,9 +26,9 @@ class apple2_compeyes_device : public device_t, public device_a2gameio_interface protected: // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; // device_a2gameio_interface overrides virtual int sw0_r() override; diff --git a/src/devices/bus/a2gameio/gameio.h b/src/devices/bus/a2gameio/gameio.h index dfe2f3716bd..7c2dcbd5925 100644 --- a/src/devices/bus/a2gameio/gameio.h +++ b/src/devices/bus/a2gameio/gameio.h @@ -82,8 +82,8 @@ class apple2_gameio_device : public device_t, public device_single_card_slot_int protected: // device-level overrides virtual void device_config_complete() override; - 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; optional_device m_screen; diff --git a/src/devices/bus/a2gameio/gizmo.cpp b/src/devices/bus/a2gameio/gizmo.cpp index c7bcbac826b..d1e1ee52eae 100644 --- a/src/devices/bus/a2gameio/gizmo.cpp +++ b/src/devices/bus/a2gameio/gizmo.cpp @@ -23,8 +23,8 @@ class apple2_gizmo_device : public device_t, public device_a2gameio_interface protected: // device-level overrides - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; // device_a2gameio_interface overrides virtual int sw0_r() override; diff --git a/src/devices/bus/a2gameio/joyport.cpp b/src/devices/bus/a2gameio/joyport.cpp index 3d00fe504c3..3e6e9793dae 100644 --- a/src/devices/bus/a2gameio/joyport.cpp +++ b/src/devices/bus/a2gameio/joyport.cpp @@ -29,8 +29,8 @@ class apple2_joyport_device : public device_t, public device_a2gameio_interface protected: // device-level overrides - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; // device_a2gameio_interface overrides virtual int sw0_r() override; diff --git a/src/devices/bus/a2gameio/joyport_paddles.cpp b/src/devices/bus/a2gameio/joyport_paddles.cpp index 92fbe9083cf..d16a5d042d9 100644 --- a/src/devices/bus/a2gameio/joyport_paddles.cpp +++ b/src/devices/bus/a2gameio/joyport_paddles.cpp @@ -22,8 +22,8 @@ class apple2_joyport_paddles_device : public device_t, public device_a2gameio_in protected: // device_t implementation - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; // device_a2gameio_interface implementation virtual u8 pdl0_r() override; diff --git a/src/devices/bus/a2gameio/joystick.cpp b/src/devices/bus/a2gameio/joystick.cpp index b4a2d397322..59c2a71d302 100644 --- a/src/devices/bus/a2gameio/joystick.cpp +++ b/src/devices/bus/a2gameio/joystick.cpp @@ -21,8 +21,8 @@ class apple2_joystick_device : public device_t, public device_a2gameio_interface protected: // device-level overrides - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; // device_a2gameio_interface overrides virtual u8 pdl0_r() override; diff --git a/src/devices/bus/a2gameio/paddles.cpp b/src/devices/bus/a2gameio/paddles.cpp index fd5d106f53d..095739fcb29 100644 --- a/src/devices/bus/a2gameio/paddles.cpp +++ b/src/devices/bus/a2gameio/paddles.cpp @@ -21,8 +21,8 @@ class apple2_paddles_device : public device_t, public device_a2gameio_interface protected: // device-level overrides - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; // device_a2gameio_interface overrides virtual u8 pdl0_r() override; diff --git a/src/devices/bus/a2gameio/wico_joystick.cpp b/src/devices/bus/a2gameio/wico_joystick.cpp index 85612d2c7a7..b756b229cb8 100644 --- a/src/devices/bus/a2gameio/wico_joystick.cpp +++ b/src/devices/bus/a2gameio/wico_joystick.cpp @@ -22,8 +22,8 @@ class apple2_wico_joystick_device : public device_t, public device_a2gameio_inte protected: // device_t implementation - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; // device_a2gameio_interface implementation virtual u8 pdl0_r() override; diff --git a/src/devices/bus/a7800/a78_slot.h b/src/devices/bus/a7800/a78_slot.h index 9f9b8126c82..c3f6c5c6833 100644 --- a/src/devices/bus/a7800/a78_slot.h +++ b/src/devices/bus/a7800/a78_slot.h @@ -127,7 +127,7 @@ class a78_cart_slot_device : public device_t, private: // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; std::pair verify_header(const uint8_t *header); int validate_header(int head, bool log) const; diff --git a/src/devices/bus/a7800/cpuwiz.h b/src/devices/bus/a7800/cpuwiz.h index e55c637592f..83370f91c39 100644 --- a/src/devices/bus/a7800/cpuwiz.h +++ b/src/devices/bus/a7800/cpuwiz.h @@ -18,8 +18,8 @@ class a78_versaboard_device : public a78_rom_sg_device a78_versaboard_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // 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; // reading and writing virtual uint8_t read_40xx(offs_t offset) override; @@ -60,7 +60,7 @@ class a78_rom_p450_vb_device : public a78_versaboard_device virtual void write_04xx(offs_t offset, uint8_t data) override { if (offset >= 0x50 && offset < 0x60) m_pokey450->write(offset & 0x0f, data); } protected: - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; required_device m_pokey450; }; diff --git a/src/devices/bus/a7800/hiscore.h b/src/devices/bus/a7800/hiscore.h index b9dc9674212..9fbce46a3a3 100644 --- a/src/devices/bus/a7800/hiscore.h +++ b/src/devices/bus/a7800/hiscore.h @@ -27,7 +27,7 @@ class a78_hiscore_device : public a78_rom_device virtual void write_40xx(offs_t offset, uint8_t data) override; protected: - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; required_device m_hscslot; }; diff --git a/src/devices/bus/a7800/rom.h b/src/devices/bus/a7800/rom.h index 8237b07c8ac..45c9608a4ea 100644 --- a/src/devices/bus/a7800/rom.h +++ b/src/devices/bus/a7800/rom.h @@ -25,8 +25,8 @@ class a78_rom_device : public device_t, a78_rom_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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; }; @@ -45,7 +45,7 @@ class a78_rom_pokey_device : public a78_rom_device protected: a78_rom_pokey_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; required_device m_pokey; }; @@ -84,8 +84,8 @@ class a78_rom_sg_device : public a78_rom_device a78_rom_sg_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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; int m_bank; }; @@ -104,7 +104,7 @@ class a78_rom_sg_pokey_device : public a78_rom_sg_device virtual void write_40xx(offs_t offset, uint8_t data) override; protected: - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; required_device m_pokey; }; @@ -158,8 +158,8 @@ class a78_rom_abs_device : public a78_rom_device 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; int m_bank; }; @@ -179,8 +179,8 @@ class a78_rom_act_device : public a78_rom_device 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; int m_bank; }; @@ -201,7 +201,7 @@ class a78_rom_p450_device : public a78_rom_device virtual void write_04xx(offs_t offset, uint8_t data) override { if (offset >= 0x50 && offset < 0x60) m_pokey450->write(offset & 0x0f, data); } protected: - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; required_device m_pokey450; }; @@ -220,7 +220,7 @@ class a78_rom_p450_pokey_device : public a78_rom_pokey_device virtual void write_04xx(offs_t offset, uint8_t data) override { if (offset >= 0x50 && offset < 0x60) m_pokey450->write(offset & 0x0f, data); } protected: - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; required_device m_pokey450; }; @@ -239,7 +239,7 @@ class a78_rom_p450_sg_ram_device : public a78_rom_sg_ram_device virtual void write_04xx(offs_t offset, uint8_t data) override { if (offset >= 0x50 && offset < 0x60) m_pokey450->write(offset & 0x0f, data); } protected: - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; required_device m_pokey450; }; @@ -258,7 +258,7 @@ class a78_rom_p450_sg9_device : public a78_rom_sg9_device virtual void write_04xx(offs_t offset, uint8_t data) override { if (offset >= 0x50 && offset < 0x60) m_pokey450->write(offset & 0x0f, data); } protected: - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; required_device m_pokey450; }; diff --git a/src/devices/bus/a7800/xboard.h b/src/devices/bus/a7800/xboard.h index ee4cda6c018..9bc3f2a4726 100644 --- a/src/devices/bus/a7800/xboard.h +++ b/src/devices/bus/a7800/xboard.h @@ -28,9 +28,9 @@ class a78_xboard_device : public a78_rom_device protected: a78_xboard_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; required_device m_xbslot; required_device m_pokey; @@ -54,9 +54,9 @@ class a78_xm_device : public a78_xboard_device virtual uint8_t read_30xx(offs_t offset) override; protected: - 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; required_device m_ym; int m_ym_enabled; diff --git a/src/devices/bus/a800/a5200_supercart.h b/src/devices/bus/a800/a5200_supercart.h index cc9baead23b..0d748f1f549 100644 --- a/src/devices/bus/a800/a5200_supercart.h +++ b/src/devices/bus/a800/a5200_supercart.h @@ -14,11 +14,11 @@ class a5200_rom_supercart_device : public a5200_rom_device public: a5200_rom_supercart_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - virtual void cart_map(address_map &map) override; + virtual void cart_map(address_map &map) override ATTR_COLD; protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; u8 m_bank; u8 m_bank_mask; diff --git a/src/devices/bus/a800/a800_slot.h b/src/devices/bus/a800/a800_slot.h index 476a54a4f4d..b2c736078f0 100644 --- a/src/devices/bus/a800/a800_slot.h +++ b/src/devices/bus/a800/a800_slot.h @@ -60,8 +60,8 @@ class device_a800_cart_interface : public device_interface // construction/destruction virtual ~device_a800_cart_interface(); - virtual void cart_map(address_map &map); - virtual void cctl_map(address_map &map); + virtual void cart_map(address_map &map) ATTR_COLD; + virtual void cctl_map(address_map &map) ATTR_COLD; // TODO: remove all of this void rom_alloc(uint32_t size); @@ -142,7 +142,7 @@ class a800_cart_slot_device : public device_t, //a800_cart_slot_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; virtual space_config_vector memory_space_config() const override; private: @@ -169,7 +169,7 @@ class device_a5200_cart_interface : public device_interface // construction/destruction virtual ~device_a5200_cart_interface(); - virtual void cart_map(address_map &map); + virtual void cart_map(address_map &map) ATTR_COLD; // TODO: remove all of this void rom_alloc(uint32_t size); @@ -225,7 +225,7 @@ class a5200_cart_slot_device : public device_t, void write_cart(offs_t offset, u8 data); protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual space_config_vector memory_space_config() const override; private: diff --git a/src/devices/bus/a800/a8sio.h b/src/devices/bus/a800/a8sio.h index dfc04577466..dab1665c5e8 100644 --- a/src/devices/bus/a800/a8sio.h +++ b/src/devices/bus/a800/a8sio.h @@ -76,9 +76,9 @@ class a8sio_device : public device_t, public device_single_card_slot_interface m_pia; required_device m_fdc; diff --git a/src/devices/bus/a800/atari810.h b/src/devices/bus/a800/atari810.h index 3406c14fdf0..0a33be10b7e 100644 --- a/src/devices/bus/a800/atari810.h +++ b/src/devices/bus/a800/atari810.h @@ -24,10 +24,10 @@ class atari810_device : public device_t, public device_a8sio_card_interface static constexpr feature_type unemulated_features() { return feature::DISK; } protected: - virtual void device_start() override; - virtual ioport_constructor device_input_ports() const 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 ioport_constructor device_input_ports() const 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; virtual void data_out_w(int state) override; virtual void command_w(int state) override; @@ -36,7 +36,7 @@ class atari810_device : public device_t, public device_a8sio_card_interface private: void step_w(u8 data); - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; required_device m_pia; required_device m_fdc; diff --git a/src/devices/bus/a800/atrax.h b/src/devices/bus/a800/atrax.h index 943d4587452..aceeaddd49a 100644 --- a/src/devices/bus/a800/atrax.h +++ b/src/devices/bus/a800/atrax.h @@ -14,13 +14,13 @@ class a800_rom_atrax_device : public a800_rom_device public: a800_rom_atrax_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - virtual void cart_map(address_map &map) override; - virtual void cctl_map(address_map &map) override; + virtual void cart_map(address_map &map) override ATTR_COLD; + virtual void cctl_map(address_map &map) override ATTR_COLD; virtual std::tuple get_initial_rd_state() override { return std::make_tuple(0, 1); } protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; void config_bank_w(offs_t offset, u8 data); diff --git a/src/devices/bus/a800/bbsb.h b/src/devices/bus/a800/bbsb.h index c96a1a70420..69aad4ecd04 100644 --- a/src/devices/bus/a800/bbsb.h +++ b/src/devices/bus/a800/bbsb.h @@ -14,12 +14,12 @@ class a800_rom_bbsb_device : public a800_rom_device public: a800_rom_bbsb_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - virtual void cart_map(address_map &map) override; + virtual void cart_map(address_map &map) override ATTR_COLD; virtual std::tuple get_initial_rd_state() override { return std::make_tuple(1, 1); } protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; int m_banks[2]; @@ -33,11 +33,11 @@ class a5200_rom_bbsb_device : public a5200_rom_device public: a5200_rom_bbsb_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - virtual void cart_map(address_map &map) override; + virtual void cart_map(address_map &map) override ATTR_COLD; protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; int m_banks[2]; diff --git a/src/devices/bus/a800/cassette.h b/src/devices/bus/a800/cassette.h index c2436946b66..b09d4a1111f 100644 --- a/src/devices/bus/a800/cassette.h +++ b/src/devices/bus/a800/cassette.h @@ -34,9 +34,9 @@ class a8sio_cassette_device protected: a8sio_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_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; TIMER_CALLBACK_MEMBER(read_tick); diff --git a/src/devices/bus/a800/corina.h b/src/devices/bus/a800/corina.h index 1bd4fae2ba8..ec043cbbbff 100644 --- a/src/devices/bus/a800/corina.h +++ b/src/devices/bus/a800/corina.h @@ -15,14 +15,14 @@ class a800_rom_corina_device : public a800_rom_device a800_rom_corina_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); a800_rom_corina_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - virtual void cart_map(address_map &map) override; - virtual void cctl_map(address_map &map) override; + virtual void cart_map(address_map &map) override ATTR_COLD; + virtual void cctl_map(address_map &map) override ATTR_COLD; virtual std::tuple get_initial_rd_state() override { return std::make_tuple(1, 1); } protected: - 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; std::unique_ptr m_nvram_ptr; @@ -44,7 +44,7 @@ class a800_rom_corina_sram_device : public a800_rom_corina_device protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual uint8_t read_view_1(offs_t offset) override; virtual void write_view_1(offs_t offset, u8 data) override; diff --git a/src/devices/bus/a800/maxflash.h b/src/devices/bus/a800/maxflash.h index 63c4843d913..b096e41b8b3 100644 --- a/src/devices/bus/a800/maxflash.h +++ b/src/devices/bus/a800/maxflash.h @@ -15,15 +15,15 @@ class a800_maxflash_128kb_device : public a800_rom_device a800_maxflash_128kb_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); a800_maxflash_128kb_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); - virtual void cart_map(address_map &map) override; - virtual void cctl_map(address_map &map) override; + virtual void cart_map(address_map &map) override ATTR_COLD; + virtual void cctl_map(address_map &map) override ATTR_COLD; virtual std::tuple get_initial_rd_state() override { return std::make_tuple(0, 1); } protected: - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; required_device m_flash; @@ -41,10 +41,10 @@ class a800_maxflash_1mb_device : public a800_maxflash_128kb_device public: a800_maxflash_1mb_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); - virtual void cctl_map(address_map &map) override; + virtual void cctl_map(address_map &map) override ATTR_COLD; protected: - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; DECLARE_DEVICE_TYPE(A800_MAXFLASH_128KB, a800_maxflash_128kb_device) diff --git a/src/devices/bus/a800/oss.h b/src/devices/bus/a800/oss.h index c8511d62abc..0af143028b6 100644 --- a/src/devices/bus/a800/oss.h +++ b/src/devices/bus/a800/oss.h @@ -15,13 +15,13 @@ class a800_rom_oss8k_device : public a800_rom_device a800_rom_oss8k_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); a800_rom_oss8k_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); - virtual void cart_map(address_map &map) override; - virtual void cctl_map(address_map &map) override; + virtual void cart_map(address_map &map) override ATTR_COLD; + virtual void cctl_map(address_map &map) override ATTR_COLD; virtual std::tuple get_initial_rd_state() override { return std::make_tuple(0, 1); } protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; int m_bank; virtual void bank_config_access(offs_t offset); @@ -36,16 +36,16 @@ class a800_rom_oss043m_device : public a800_rom_device a800_rom_oss043m_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); a800_rom_oss043m_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); - virtual void cart_map(address_map &map) override; - virtual void cctl_map(address_map &map) override; + virtual void cart_map(address_map &map) override ATTR_COLD; + virtual void cctl_map(address_map &map) override ATTR_COLD; virtual std::tuple get_initial_rd_state() override { return std::make_tuple(0, 1); } protected: - 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; - void bankdev_map(address_map &map); + void bankdev_map(address_map &map) ATTR_COLD; void bank_config_access(offs_t offset); u8 rom_bank_r(offs_t offset); void rom_bank_w(offs_t offset, u8 data); @@ -62,7 +62,7 @@ class a800_rom_oss034m_device : public a800_rom_oss043m_device a800_rom_oss034m_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; }; diff --git a/src/devices/bus/a800/phoenix.h b/src/devices/bus/a800/phoenix.h index 56f790d9061..2ca00adddca 100644 --- a/src/devices/bus/a800/phoenix.h +++ b/src/devices/bus/a800/phoenix.h @@ -14,13 +14,13 @@ class a800_rom_phoenix_device : public a800_rom_device a800_rom_phoenix_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); a800_rom_phoenix_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - virtual void cart_map(address_map &map) override; - virtual void cctl_map(address_map &map) override; + virtual void cart_map(address_map &map) override ATTR_COLD; + virtual void cctl_map(address_map &map) override ATTR_COLD; virtual std::tuple get_initial_rd_state() override { return std::make_tuple(0, 1); } protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; u32 m_rom_mask; virtual u8 disable_rom_r(offs_t offset); @@ -32,11 +32,11 @@ class a800_rom_blizzard_16kb_device : public a800_rom_phoenix_device public: a800_rom_blizzard_16kb_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - virtual void cart_map(address_map &map) override; + virtual void cart_map(address_map &map) override ATTR_COLD; virtual std::tuple get_initial_rd_state() override { return std::make_tuple(1, 1); } protected: - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; virtual u8 disable_rom_r(offs_t offset) override; virtual void disable_rom_w(offs_t offset, u8 data) override; @@ -47,12 +47,12 @@ class a800_rom_phoenix_ast2k_device : public a800_rom_phoenix_device public: a800_rom_phoenix_ast2k_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - virtual void cart_map(address_map &map) override; + virtual void cart_map(address_map &map) override ATTR_COLD; protected: - virtual void device_start() override; - virtual void device_reset() override; - virtual ioport_constructor device_input_ports() const override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; private: required_ioport m_dsw; diff --git a/src/devices/bus/a800/rom.h b/src/devices/bus/a800/rom.h index 8d6b551519a..4de7735ac3e 100644 --- a/src/devices/bus/a800/rom.h +++ b/src/devices/bus/a800/rom.h @@ -16,14 +16,14 @@ class a800_rom_device : public device_t, public: a800_rom_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - virtual void cart_map(address_map &map) override; + virtual void cart_map(address_map &map) override ATTR_COLD; virtual std::tuple get_initial_rd_state() override { return std::make_tuple(0, 1); } protected: a800_rom_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; }; class a800_rom_right_device : public a800_rom_device @@ -31,12 +31,12 @@ class a800_rom_right_device : public a800_rom_device public: a800_rom_right_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - virtual void cart_map(address_map &map) override; + virtual void cart_map(address_map &map) override ATTR_COLD; virtual std::tuple get_initial_rd_state() override { return std::make_tuple(1, 0); } protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; }; class a800_rom_16kb_device : public a800_rom_device @@ -44,12 +44,12 @@ class a800_rom_16kb_device : public a800_rom_device public: a800_rom_16kb_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - virtual void cart_map(address_map &map) override; + virtual void cart_map(address_map &map) override ATTR_COLD; virtual std::tuple get_initial_rd_state() override { return std::make_tuple(1, 1); } protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; }; @@ -58,13 +58,13 @@ class xegs_rom_device : public a800_rom_device public: xegs_rom_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - virtual void cart_map(address_map &map) override; - virtual void cctl_map(address_map &map) override; + virtual void cart_map(address_map &map) override ATTR_COLD; + virtual void cctl_map(address_map &map) override ATTR_COLD; virtual std::tuple get_initial_rd_state() override { return std::make_tuple(1, 1); } protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; int m_bank; }; @@ -75,12 +75,12 @@ class a5200_rom_device : public device_t, public: a5200_rom_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - virtual void cart_map(address_map &map) override; + virtual void cart_map(address_map &map) override ATTR_COLD; protected: a5200_rom_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_start() override ATTR_COLD; }; class a5200_rom_2chips_device : public a5200_rom_device @@ -88,7 +88,7 @@ class a5200_rom_2chips_device : public a5200_rom_device public: a5200_rom_2chips_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - virtual void cart_map(address_map &map) override; + virtual void cart_map(address_map &map) override ATTR_COLD; }; DECLARE_DEVICE_TYPE(A800_ROM, a800_rom_device) diff --git a/src/devices/bus/a800/rtime8.h b/src/devices/bus/a800/rtime8.h index ba37059c705..0fc60686329 100644 --- a/src/devices/bus/a800/rtime8.h +++ b/src/devices/bus/a800/rtime8.h @@ -17,11 +17,11 @@ class a800_rtime8_device : public device_t, public device_a800_cart_interface public: a800_rtime8_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); - virtual void cctl_map(address_map &map) override; + virtual void cctl_map(address_map &map) override ATTR_COLD; protected: - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; private: required_device m_rtc; diff --git a/src/devices/bus/a800/sic.h b/src/devices/bus/a800/sic.h index 52dba880bae..815008f53f5 100644 --- a/src/devices/bus/a800/sic.h +++ b/src/devices/bus/a800/sic.h @@ -15,15 +15,15 @@ class a800_sic_128kb_device : public a800_rom_device a800_sic_128kb_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); a800_sic_128kb_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); - virtual void cart_map(address_map &map) override; - virtual void cctl_map(address_map &map) override; + virtual void cart_map(address_map &map) override ATTR_COLD; + virtual void cctl_map(address_map &map) override ATTR_COLD; virtual std::tuple get_initial_rd_state() override { return std::make_tuple(0, 1); } protected: - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; required_device m_flash; @@ -45,7 +45,7 @@ class a800_sic_256kb_device : public a800_sic_128kb_device a800_sic_256kb_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); protected: - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; class a800_sic_512kb_device : public a800_sic_128kb_device @@ -54,7 +54,7 @@ class a800_sic_512kb_device : public a800_sic_128kb_device a800_sic_512kb_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); protected: - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; DECLARE_DEVICE_TYPE(A800_SIC_128KB, a800_sic_128kb_device) diff --git a/src/devices/bus/a800/sparta.h b/src/devices/bus/a800/sparta.h index 31c4c439a28..2538567ec60 100644 --- a/src/devices/bus/a800/sparta.h +++ b/src/devices/bus/a800/sparta.h @@ -14,15 +14,15 @@ class a800_rom_spartados_device : public a800_rom_device a800_rom_spartados_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); a800_rom_spartados_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - virtual void cart_map(address_map &map) override; - virtual void cctl_map(address_map &map) override; + virtual void cart_map(address_map &map) override ATTR_COLD; + virtual void cctl_map(address_map &map) override ATTR_COLD; virtual std::tuple get_initial_rd_state() override { return std::make_tuple(0, 1); } protected: - 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 device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual void bank_config_access(offs_t offset); @@ -50,7 +50,7 @@ class a800_rom_spartados_128kb_device : public a800_rom_spartados_device public: a800_rom_spartados_128kb_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - virtual void cctl_map(address_map &map) override; + virtual void cctl_map(address_map &map) override ATTR_COLD; protected: virtual void bank_config_access(offs_t offset) override; diff --git a/src/devices/bus/a800/supercharger.h b/src/devices/bus/a800/supercharger.h index cca2ea30236..14951740543 100644 --- a/src/devices/bus/a800/supercharger.h +++ b/src/devices/bus/a800/supercharger.h @@ -17,11 +17,11 @@ class a800_supercharger_device : public device_t, public: a800_supercharger_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); - virtual void cctl_map(address_map &map) override; + virtual void cctl_map(address_map &map) override ATTR_COLD; protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; u8 m_data[3]{}; u8 m_status; diff --git a/src/devices/bus/a800/telelink2.h b/src/devices/bus/a800/telelink2.h index a3b30da0a87..d542d3562b4 100644 --- a/src/devices/bus/a800/telelink2.h +++ b/src/devices/bus/a800/telelink2.h @@ -14,16 +14,16 @@ class a800_rom_telelink2_device : public a800_rom_device // construction/destruction a800_rom_telelink2_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - virtual void cart_map(address_map &map) override; - virtual void cctl_map(address_map &map) override; + virtual void cart_map(address_map &map) override ATTR_COLD; + virtual void cctl_map(address_map &map) override ATTR_COLD; // RD4 tied to +5V, assume always enabled virtual std::tuple get_initial_rd_state() override { return std::make_tuple(1, 1); } private: - 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; required_device m_nvram; std::unique_ptr m_nvram_ptr; diff --git a/src/devices/bus/a800/ultracart.h b/src/devices/bus/a800/ultracart.h index 2e5b45d8d4d..cc8371d7775 100644 --- a/src/devices/bus/a800/ultracart.h +++ b/src/devices/bus/a800/ultracart.h @@ -14,13 +14,13 @@ class a800_rom_ultracart_device : public a800_rom_device a800_rom_ultracart_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); a800_rom_ultracart_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - virtual void cart_map(address_map &map) override; - virtual void cctl_map(address_map &map) override; + virtual void cart_map(address_map &map) override ATTR_COLD; + virtual void cctl_map(address_map &map) override ATTR_COLD; virtual std::tuple get_initial_rd_state() override { return std::make_tuple(0, 1); } protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; int m_bank; diff --git a/src/devices/bus/a800/williams.h b/src/devices/bus/a800/williams.h index 24d8542eb26..0b39c85d8a0 100644 --- a/src/devices/bus/a800/williams.h +++ b/src/devices/bus/a800/williams.h @@ -14,13 +14,13 @@ class a800_rom_williams_device : public a800_rom_device a800_rom_williams_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); a800_rom_williams_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - virtual void cart_map(address_map &map) override; - virtual void cctl_map(address_map &map) override; + virtual void cart_map(address_map &map) override ATTR_COLD; + virtual void cctl_map(address_map &map) override ATTR_COLD; virtual std::tuple get_initial_rd_state() override { return std::make_tuple(0, 1); }; protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; int m_bank; @@ -38,7 +38,7 @@ class a800_rom_express_device : public a800_rom_williams_device a800_rom_express_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - virtual void cctl_map(address_map &map) override; + virtual void cctl_map(address_map &map) override ATTR_COLD; virtual uint8_t rom_bank_r(offs_t offset) override; virtual void rom_bank_w(offs_t offset, uint8_t data) override; @@ -50,7 +50,7 @@ class a800_rom_diamond_device : public a800_rom_express_device a800_rom_diamond_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); private: - virtual void cctl_map(address_map &map) override; + virtual void cctl_map(address_map &map) override ATTR_COLD; }; class a800_rom_turbo_device : public a800_rom_williams_device @@ -58,7 +58,7 @@ class a800_rom_turbo_device : public a800_rom_williams_device public: a800_rom_turbo_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - virtual void cctl_map(address_map &map) override; + virtual void cctl_map(address_map &map) override ATTR_COLD; }; DECLARE_DEVICE_TYPE(A800_ROM_WILLIAMS, a800_rom_williams_device) diff --git a/src/devices/bus/abcbus/abc890.h b/src/devices/bus/abcbus/abc890.h index 5a56b9804fe..f8d14f4ed81 100644 --- a/src/devices/bus/abcbus/abc890.h +++ b/src/devices/bus/abcbus/abc890.h @@ -32,11 +32,11 @@ class abc890_device : public device_t, abc890_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; // device_abcbus_interface overrides virtual void abcbus_cs(uint8_t data) override; @@ -62,7 +62,7 @@ class abc_expansion_unit_device : public abc890_device protected: // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; @@ -76,7 +76,7 @@ class abc894_device : public abc890_device protected: // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; @@ -90,7 +90,7 @@ class abc850_device : public abc890_device protected: // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; @@ -104,7 +104,7 @@ class abc852_device : public abc890_device protected: // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; @@ -118,7 +118,7 @@ class abc856_device : public abc890_device protected: // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; diff --git a/src/devices/bus/abcbus/abcbus.h b/src/devices/bus/abcbus/abcbus.h index 638d460efa3..8532e6e22d6 100644 --- a/src/devices/bus/abcbus/abcbus.h +++ b/src/devices/bus/abcbus/abcbus.h @@ -236,8 +236,8 @@ class abcbus_slot_device : public device_t, 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; devcb_write_line m_write_irq; devcb_write_line m_write_nmi; diff --git a/src/devices/bus/abcbus/cadmouse.h b/src/devices/bus/abcbus/cadmouse.h index 317c67e97aa..363b5f628bc 100644 --- a/src/devices/bus/abcbus/cadmouse.h +++ b/src/devices/bus/abcbus/cadmouse.h @@ -23,16 +23,16 @@ class abc_cadmouse_device : public device_t, static constexpr feature_type unemulated_features() { return feature::MOUSE | feature::GRAPHICS; } protected: - void abc_cadmouse_mem(address_map &map); - void abc_cadmouse_io(address_map &map); + void abc_cadmouse_mem(address_map &map) ATTR_COLD; + void abc_cadmouse_io(address_map &map) ATTR_COLD; // 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; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; // device_abcbus_interface overrides virtual void abcbus_cs(uint8_t data) override; diff --git a/src/devices/bus/abcbus/db4106.h b/src/devices/bus/abcbus/db4106.h index 74e49631dbe..cc585b28a87 100644 --- a/src/devices/bus/abcbus/db4106.h +++ b/src/devices/bus/abcbus/db4106.h @@ -31,13 +31,13 @@ class databoard_4106_device : public device_t, 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; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; // device_abcbus_interface overrides virtual void abcbus_cs(uint8_t data) override; @@ -52,8 +52,8 @@ class databoard_4106_device : public device_t, bool m_cs; - void databoard_4106_io(address_map &map); - void databoard_4106_mem(address_map &map); + void databoard_4106_io(address_map &map) ATTR_COLD; + void databoard_4106_mem(address_map &map) ATTR_COLD; }; diff --git a/src/devices/bus/abcbus/db4107.h b/src/devices/bus/abcbus/db4107.h index 4ae301084ca..32a474bd98c 100644 --- a/src/devices/bus/abcbus/db4107.h +++ b/src/devices/bus/abcbus/db4107.h @@ -32,13 +32,13 @@ class databoard_4107_device : public device_t, 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; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; // device_abcbus_interface overrides virtual void abcbus_cs(uint8_t data) override; @@ -54,8 +54,8 @@ class databoard_4107_device : public device_t, bool m_cs; - void databoard_4107_io(address_map &map); - void databoard_4107_mem(address_map &map); + void databoard_4107_io(address_map &map) ATTR_COLD; + void databoard_4107_mem(address_map &map) ATTR_COLD; }; diff --git a/src/devices/bus/abcbus/db4112.h b/src/devices/bus/abcbus/db4112.h index c28da004297..b757c426d83 100644 --- a/src/devices/bus/abcbus/db4112.h +++ b/src/devices/bus/abcbus/db4112.h @@ -31,13 +31,13 @@ class abc_databoard_4112_device : public device_t, 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; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; // device_abcbus_interface overrides virtual void abcbus_cs(uint8_t data) override; @@ -52,8 +52,8 @@ class abc_databoard_4112_device : public device_t, bool m_cs; - void databoard_4112_io(address_map &map); - void databoard_4112_mem(address_map &map); + void databoard_4112_io(address_map &map) ATTR_COLD; + void databoard_4112_mem(address_map &map) ATTR_COLD; }; diff --git a/src/devices/bus/abcbus/fd2.h b/src/devices/bus/abcbus/fd2.h index 140a1368154..555f90a1d8e 100644 --- a/src/devices/bus/abcbus/fd2.h +++ b/src/devices/bus/abcbus/fd2.h @@ -35,12 +35,12 @@ class abc_fd2_device : public device_t, 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; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; // device_abcbus_interface overrides virtual void abcbus_cs(uint8_t data) override; @@ -61,8 +61,8 @@ class abc_fd2_device : public device_t, static void floppy_formats(format_registration &fr); - void abc_fd2_io(address_map &map); - void abc_fd2_mem(address_map &map); + void abc_fd2_io(address_map &map) ATTR_COLD; + void abc_fd2_mem(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_pio; diff --git a/src/devices/bus/abcbus/lux10828.h b/src/devices/bus/abcbus/lux10828.h index 6a65fe2d695..de491813157 100644 --- a/src/devices/bus/abcbus/lux10828.h +++ b/src/devices/bus/abcbus/lux10828.h @@ -57,13 +57,13 @@ class luxor_55_10828_device : public device_t, 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; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; // device_abcbus_interface overrides virtual void abcbus_cs(uint8_t data) override; @@ -89,8 +89,8 @@ class luxor_55_10828_device : public device_t, static void floppy_formats(format_registration &fr); - void luxor_55_10828_io(address_map &map); - void luxor_55_10828_mem(address_map &map); + void luxor_55_10828_io(address_map &map) ATTR_COLD; + void luxor_55_10828_mem(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_pio; diff --git a/src/devices/bus/abcbus/lux21046.h b/src/devices/bus/abcbus/lux21046.h index 3f83864b476..da4a05e2f2f 100644 --- a/src/devices/bus/abcbus/lux21046.h +++ b/src/devices/bus/abcbus/lux21046.h @@ -58,13 +58,13 @@ class luxor_55_21046_device : public device_t, luxor_55_21046_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; // device_abcbus_interface overrides virtual void abcbus_cs(uint8_t data) override; @@ -97,8 +97,8 @@ class luxor_55_21046_device : public device_t, void _8a_w(uint8_t data); uint8_t _9a_r(offs_t offset); - void luxor_55_21046_io(address_map &map); - void luxor_55_21046_mem(address_map &map); + void luxor_55_21046_io(address_map &map) ATTR_COLD; + void luxor_55_21046_mem(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_dma; @@ -129,8 +129,8 @@ class abc830_device : public luxor_55_21046_device protected: // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; }; @@ -144,8 +144,8 @@ class abc832_device : public luxor_55_21046_device protected: // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; }; @@ -159,8 +159,8 @@ class abc834_device : public luxor_55_21046_device protected: // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; }; @@ -174,8 +174,8 @@ class abc838_device : public luxor_55_21046_device protected: // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; }; @@ -189,8 +189,8 @@ class abc850_floppy_device : public luxor_55_21046_device protected: // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; }; diff --git a/src/devices/bus/abcbus/lux21056.h b/src/devices/bus/abcbus/lux21056.h index bf70c79bae1..9187871567e 100644 --- a/src/devices/bus/abcbus/lux21056.h +++ b/src/devices/bus/abcbus/lux21056.h @@ -34,13 +34,13 @@ class luxor_55_21056_device : public device_t, 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; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; // device_abcbus_interface overrides virtual void abcbus_cs(uint8_t data) override; @@ -77,8 +77,8 @@ class luxor_55_21056_device : public device_t, uint8_t sasi_rst_r(); void sasi_rst_w(uint8_t data); - void luxor_55_21056_io(address_map &map); - void luxor_55_21056_mem(address_map &map); + void luxor_55_21056_io(address_map &map) ATTR_COLD; + void luxor_55_21056_mem(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_dma; diff --git a/src/devices/bus/abcbus/lux4105.h b/src/devices/bus/abcbus/lux4105.h index 75003907c65..a8e991403f5 100644 --- a/src/devices/bus/abcbus/lux4105.h +++ b/src/devices/bus/abcbus/lux4105.h @@ -34,12 +34,12 @@ class luxor_4105_device : public device_t, 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; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; // device_abcbus_interface overrides virtual void abcbus_cs(uint8_t data) override; diff --git a/src/devices/bus/abcbus/memcard.h b/src/devices/bus/abcbus/memcard.h index f2f47cabb9e..fe5d70bc51b 100644 --- a/src/devices/bus/abcbus/memcard.h +++ b/src/devices/bus/abcbus/memcard.h @@ -30,11 +30,11 @@ class abc_memory_card_device : public device_t, public device_abcbus_card_interf abc_memory_card_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_abcbus_interface overrides virtual void abcbus_cs(uint8_t data) override { } diff --git a/src/devices/bus/abcbus/ram.h b/src/devices/bus/abcbus/ram.h index cf552c6412f..5fd1ec5243c 100644 --- a/src/devices/bus/abcbus/ram.h +++ b/src/devices/bus/abcbus/ram.h @@ -29,7 +29,7 @@ class abc80_16kb_ram_card_device : public device_t, public device_abcbus_card_in protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_abcbus_interface overrides virtual void abcbus_cs(uint8_t data) override { } diff --git a/src/devices/bus/abcbus/sio.h b/src/devices/bus/abcbus/sio.h index 156939808df..ca382f702d2 100644 --- a/src/devices/bus/abcbus/sio.h +++ b/src/devices/bus/abcbus/sio.h @@ -26,12 +26,12 @@ class abc_sio_device : public device_t, 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; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; // device_abcbus_interface overrides virtual void abcbus_cs(uint8_t data) override; diff --git a/src/devices/bus/abcbus/slutprov.h b/src/devices/bus/abcbus/slutprov.h index 16f6b0e9f79..63d469a427b 100644 --- a/src/devices/bus/abcbus/slutprov.h +++ b/src/devices/bus/abcbus/slutprov.h @@ -23,12 +23,12 @@ class abc_slutprov_device : public device_t, abc_slutprov_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; 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; // device_abcbus_interface overrides virtual void abcbus_cs(uint8_t data) override; diff --git a/src/devices/bus/abcbus/ssa.h b/src/devices/bus/abcbus/ssa.h index d19f0ce9100..2b3df94826b 100644 --- a/src/devices/bus/abcbus/ssa.h +++ b/src/devices/bus/abcbus/ssa.h @@ -33,10 +33,10 @@ class abc_super_smartaid_device : public device_t, protected: // device_t implementation - virtual void device_add_mconfig(machine_config &config) override; - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; // device_nvram_interface implementation virtual void nvram_default() override; diff --git a/src/devices/bus/abcbus/uni800.h b/src/devices/bus/abcbus/uni800.h index c6eb9400d40..a5880631c6e 100644 --- a/src/devices/bus/abcbus/uni800.h +++ b/src/devices/bus/abcbus/uni800.h @@ -23,12 +23,12 @@ class abc_uni800_device : public device_t, abc_uni800_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; 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; // device_abcbus_interface overrides virtual void abcbus_cs(uint8_t data) override; diff --git a/src/devices/bus/abcbus/unidisk.h b/src/devices/bus/abcbus/unidisk.h index 6d95e34208e..582bcddaf0f 100644 --- a/src/devices/bus/abcbus/unidisk.h +++ b/src/devices/bus/abcbus/unidisk.h @@ -31,13 +31,13 @@ class abc_unidisk_device : public device_t, 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; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; // device_abcbus_interface overrides virtual void abcbus_cs(uint8_t data) override; @@ -52,8 +52,8 @@ class abc_unidisk_device : public device_t, bool m_cs; - void unidisk_io(address_map &map); - void unidisk_mem(address_map &map); + void unidisk_io(address_map &map) ATTR_COLD; + void unidisk_mem(address_map &map) ATTR_COLD; }; diff --git a/src/devices/bus/abckb/abc77.h b/src/devices/bus/abckb/abc77.h index 304f8c3329f..537a77d0ca0 100644 --- a/src/devices/bus/abckb/abc77.h +++ b/src/devices/bus/abckb/abc77.h @@ -39,13 +39,13 @@ class abc77_device : public device_t, abc77_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; // abc_keyboard_interface overrides virtual void txd_w(int state) override; @@ -76,8 +76,8 @@ class abc77_device : public device_t, void prog_w(int state) { m_stb = state; } void j3_w(uint8_t data) { m_j3 = data; } - void abc77_io(address_map &map); - void abc77_map(address_map &map); + void abc77_io(address_map &map) ATTR_COLD; + void abc77_map(address_map &map) ATTR_COLD; }; @@ -88,7 +88,7 @@ class abc55_device : public abc77_device abc55_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // optional information overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; }; diff --git a/src/devices/bus/abckb/abc800kb.h b/src/devices/bus/abckb/abc800kb.h index 1f780444e97..4d192d6042a 100644 --- a/src/devices/bus/abckb/abc800kb.h +++ b/src/devices/bus/abckb/abc800kb.h @@ -36,13 +36,13 @@ class abc800_keyboard_device : public device_t, 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; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; private: void serial_output(int state); diff --git a/src/devices/bus/abckb/abc99.h b/src/devices/bus/abckb/abc99.h index 501c2d9065e..bbbf3a6b760 100644 --- a/src/devices/bus/abckb/abc99.h +++ b/src/devices/bus/abckb/abc99.h @@ -40,13 +40,13 @@ class abc99_device : public device_t, 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; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; // abc_keyboard_interface overrides virtual void txd_w(int state) override; @@ -82,9 +82,9 @@ class abc99_device : public device_t, void z5_p2_w(uint8_t data); int z5_t1_r() { return m_t1_z5; } - void keyboard_io(address_map &map); - void keyboard_mem(address_map &map); - void mouse_mem(address_map &map); + void keyboard_io(address_map &map) ATTR_COLD; + void keyboard_mem(address_map &map) ATTR_COLD; + void mouse_mem(address_map &map) ATTR_COLD; emu_timer *m_serial_timer; diff --git a/src/devices/bus/abckb/abckb.h b/src/devices/bus/abckb/abckb.h index af1a8ca83ac..06e4f2a4cde 100644 --- a/src/devices/bus/abckb/abckb.h +++ b/src/devices/bus/abckb/abckb.h @@ -48,8 +48,8 @@ class abc_keyboard_port_device : public device_t, public device_single_card_slot 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; devcb_write_line m_out_rx_handler; devcb_write_line m_out_trxc_handler; diff --git a/src/devices/bus/abckb/r8.h b/src/devices/bus/abckb/r8.h index 26c03fa64b2..4df17377204 100644 --- a/src/devices/bus/abckb/r8.h +++ b/src/devices/bus/abckb/r8.h @@ -29,11 +29,11 @@ class luxor_r8_device : public device_t 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; // optional information overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; private: TIMER_CALLBACK_MEMBER(scan_mouse); diff --git a/src/devices/bus/acorn/atom/discpack.h b/src/devices/bus/acorn/atom/discpack.h index ffe2fc5bb89..c9fe66b1bb2 100644 --- a/src/devices/bus/acorn/atom/discpack.h +++ b/src/devices/bus/acorn/atom/discpack.h @@ -32,11 +32,11 @@ class atom_discpack_device : protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() 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; private: void fdc_intrq_w(int state); diff --git a/src/devices/bus/acorn/atom/econet.h b/src/devices/bus/acorn/atom/econet.h index 204cbc5b1be..443d9939062 100644 --- a/src/devices/bus/acorn/atom/econet.h +++ b/src/devices/bus/acorn/atom/econet.h @@ -30,10 +30,10 @@ class atom_econet_device : protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: uint8_t statid_r(); diff --git a/src/devices/bus/acorn/atom/sid.h b/src/devices/bus/acorn/atom/sid.h index 8383bbdf9c8..7f8afe51cce 100644 --- a/src/devices/bus/acorn/atom/sid.h +++ b/src/devices/bus/acorn/atom/sid.h @@ -29,10 +29,10 @@ class atom_sid_device : protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: required_device m_sid; diff --git a/src/devices/bus/acorn/bus.h b/src/devices/bus/acorn/bus.h index e32b3cae0c6..3a179ea2939 100644 --- a/src/devices/bus/acorn/bus.h +++ b/src/devices/bus/acorn/bus.h @@ -44,7 +44,7 @@ class acorn_bus_slot_device : public device_t, public device_single_card_slot_in protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // configuration required_device m_bus; @@ -76,8 +76,8 @@ class acorn_bus_device : public device_t 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; // internal state required_address_space m_space; diff --git a/src/devices/bus/acorn/cms/4080term.h b/src/devices/bus/acorn/cms/4080term.h index 10dbda116bb..70243153c05 100644 --- a/src/devices/bus/acorn/cms/4080term.h +++ b/src/devices/bus/acorn/cms/4080term.h @@ -36,11 +36,11 @@ class cms_4080term_device : protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() 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; private: void bus_irq_w(int state); diff --git a/src/devices/bus/acorn/cms/fdc.h b/src/devices/bus/acorn/cms/fdc.h index d1cfcf72891..a07c2b4abd1 100644 --- a/src/devices/bus/acorn/cms/fdc.h +++ b/src/devices/bus/acorn/cms/fdc.h @@ -31,10 +31,10 @@ class cms_fdc_device : protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: uint8_t wd1770_state_r(); diff --git a/src/devices/bus/acorn/cms/hires.h b/src/devices/bus/acorn/cms/hires.h index f79d7af383b..03361e2bb37 100644 --- a/src/devices/bus/acorn/cms/hires.h +++ b/src/devices/bus/acorn/cms/hires.h @@ -30,11 +30,11 @@ class cms_hires_device : 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; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: TIMER_DEVICE_CALLBACK_MEMBER(flash_rate); diff --git a/src/devices/bus/acorn/cms/ieee.h b/src/devices/bus/acorn/cms/ieee.h index 635acba8141..65738e800b9 100644 --- a/src/devices/bus/acorn/cms/ieee.h +++ b/src/devices/bus/acorn/cms/ieee.h @@ -28,10 +28,10 @@ class cms_ieee_device: protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: void bus_irq_w(int state); diff --git a/src/devices/bus/acorn/system/32k.h b/src/devices/bus/acorn/system/32k.h index f3d3b76be5c..f6459292aee 100644 --- a/src/devices/bus/acorn/system/32k.h +++ b/src/devices/bus/acorn/system/32k.h @@ -30,11 +30,11 @@ class acorn_32k_device : 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; // optional information overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; private: required_ioport m_links; diff --git a/src/devices/bus/acorn/system/8k.h b/src/devices/bus/acorn/system/8k.h index 496a078ab1e..6837beb0a22 100644 --- a/src/devices/bus/acorn/system/8k.h +++ b/src/devices/bus/acorn/system/8k.h @@ -33,12 +33,12 @@ class acorn_8k_device : protected: // 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; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; private: std::pair load_rom(device_image_interface &image, generic_slot_device *slot); diff --git a/src/devices/bus/acorn/system/cass.h b/src/devices/bus/acorn/system/cass.h index 11e1d96256f..36df84e80c1 100644 --- a/src/devices/bus/acorn/system/cass.h +++ b/src/devices/bus/acorn/system/cass.h @@ -32,10 +32,10 @@ class acorn_cass_device : protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: void cass_w(int state); diff --git a/src/devices/bus/acorn/system/econet.h b/src/devices/bus/acorn/system/econet.h index 9b2981ab947..9a649aaaf10 100644 --- a/src/devices/bus/acorn/system/econet.h +++ b/src/devices/bus/acorn/system/econet.h @@ -32,11 +32,11 @@ class acorn_econet_device : 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; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: uint8_t statid_r(); diff --git a/src/devices/bus/acorn/system/fdc.h b/src/devices/bus/acorn/system/fdc.h index c4008eaff27..c4be0b71748 100644 --- a/src/devices/bus/acorn/system/fdc.h +++ b/src/devices/bus/acorn/system/fdc.h @@ -33,11 +33,11 @@ class acorn_fdc_device : 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; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: void bus_nmi_w(int state); diff --git a/src/devices/bus/acorn/system/vdu40.h b/src/devices/bus/acorn/system/vdu40.h index 28c87cfb054..994c617d986 100644 --- a/src/devices/bus/acorn/system/vdu40.h +++ b/src/devices/bus/acorn/system/vdu40.h @@ -34,11 +34,11 @@ class acorn_vdu40_device : 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; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: MC6845_UPDATE_ROW(crtc_update_row); diff --git a/src/devices/bus/acorn/system/vdu80.h b/src/devices/bus/acorn/system/vdu80.h index 8ebb7e0a327..3b84086fee3 100644 --- a/src/devices/bus/acorn/system/vdu80.h +++ b/src/devices/bus/acorn/system/vdu80.h @@ -33,13 +33,13 @@ class acorn_vdu80_device : 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; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual const tiny_rom_entry *device_rom_region() const override; - virtual ioport_constructor device_input_ports() 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; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; private: MC6845_UPDATE_ROW(crtc_update_row); diff --git a/src/devices/bus/acorn/system/vib.h b/src/devices/bus/acorn/system/vib.h index 2a681808ccc..21d90f895d4 100644 --- a/src/devices/bus/acorn/system/vib.h +++ b/src/devices/bus/acorn/system/vib.h @@ -37,12 +37,12 @@ class acorn_vib_device : 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; // optional information overrides - virtual ioport_constructor device_input_ports() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: template void write_acia_clock(int state); diff --git a/src/devices/bus/adam/adamlink.h b/src/devices/bus/adam/adamlink.h index 6fb07f81c6f..5bacb5f6ee6 100644 --- a/src/devices/bus/adam/adamlink.h +++ b/src/devices/bus/adam/adamlink.h @@ -30,7 +30,7 @@ class adamlink_device : public device_t, protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_adam_expansion_slot_card_interface overrides virtual uint8_t adam_bd_r(offs_t offset, uint8_t data, int bmreq, int biorq, int aux_rom_cs, int cas1, int cas2) override; diff --git a/src/devices/bus/adam/exp.h b/src/devices/bus/adam/exp.h index f8e45daee56..ae6b759fcf9 100644 --- a/src/devices/bus/adam/exp.h +++ b/src/devices/bus/adam/exp.h @@ -51,7 +51,7 @@ class adam_expansion_slot_device : public device_t, protected: // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_image_interface implementation virtual std::pair call_load() override; diff --git a/src/devices/bus/adam/ide.h b/src/devices/bus/adam/ide.h index fc01088eeec..7d2527de31c 100644 --- a/src/devices/bus/adam/ide.h +++ b/src/devices/bus/adam/ide.h @@ -32,11 +32,11 @@ class powermate_ide_device : public device_t, protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; // device_adam_expansion_slot_card_interface overrides virtual uint8_t adam_bd_r(offs_t offset, uint8_t data, int bmreq, int biorq, int aux_rom_cs, int cas1, int cas2) override; diff --git a/src/devices/bus/adam/ram.h b/src/devices/bus/adam/ram.h index c1997bf77c4..e61d5670a75 100644 --- a/src/devices/bus/adam/ram.h +++ b/src/devices/bus/adam/ram.h @@ -30,7 +30,7 @@ class adam_ram_expansion_device : public device_t, protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_adam_expansion_slot_card_interface overrides virtual uint8_t adam_bd_r(offs_t offset, uint8_t data, int bmreq, int biorq, int aux_rom_cs, int cas1, int cas2) override; diff --git a/src/devices/bus/adamnet/adamnet.h b/src/devices/bus/adamnet/adamnet.h index 6db165e854b..a7410e7185f 100644 --- a/src/devices/bus/adamnet/adamnet.h +++ b/src/devices/bus/adamnet/adamnet.h @@ -40,8 +40,8 @@ class adamnet_device : public device_t protected: // device-level overrides - virtual void device_start() override; - virtual void device_stop() override; + virtual void device_start() override ATTR_COLD; + virtual void device_stop() override ATTR_COLD; private: class daisy_entry @@ -88,7 +88,7 @@ class adamnet_slot_device : public device_t, protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // configuration required_device m_bus; diff --git a/src/devices/bus/adamnet/ddp.h b/src/devices/bus/adamnet/ddp.h index 9f28beebbd7..f7e3466de62 100644 --- a/src/devices/bus/adamnet/ddp.h +++ b/src/devices/bus/adamnet/ddp.h @@ -32,11 +32,11 @@ class adam_digital_data_pack_device : public device_t, protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; // device_adamnet_card_interface overrides virtual void adamnet_reset_w(int state) override; @@ -53,7 +53,7 @@ class adam_digital_data_pack_device : public device_t, void p2_w(uint8_t data); uint8_t p4_r(); - void adam_ddp_mem(address_map &map); + void adam_ddp_mem(address_map &map) ATTR_COLD; }; diff --git a/src/devices/bus/adamnet/fdc.h b/src/devices/bus/adamnet/fdc.h index 3324f84fce5..3132db46ba6 100644 --- a/src/devices/bus/adamnet/fdc.h +++ b/src/devices/bus/adamnet/fdc.h @@ -33,12 +33,12 @@ class adam_fdc_device : public device_t, protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; // device_adamnet_card_interface overrides virtual void adamnet_reset_w(int state) override; @@ -59,7 +59,7 @@ class adam_fdc_device : public device_t, uint8_t p2_r(); void p2_w(uint8_t data); - void adam_fdc_mem(address_map &map); + void adam_fdc_mem(address_map &map) ATTR_COLD; }; diff --git a/src/devices/bus/adamnet/kb.h b/src/devices/bus/adamnet/kb.h index bd506cf4647..1be0dc4b585 100644 --- a/src/devices/bus/adamnet/kb.h +++ b/src/devices/bus/adamnet/kb.h @@ -31,12 +31,12 @@ class adam_keyboard_device : public device_t, protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; // device_adamnet_card_interface overrides virtual void adamnet_reset_w(int state) override; diff --git a/src/devices/bus/adamnet/printer.h b/src/devices/bus/adamnet/printer.h index 80e3c62ad4c..5a7f571eda6 100644 --- a/src/devices/bus/adamnet/printer.h +++ b/src/devices/bus/adamnet/printer.h @@ -31,11 +31,11 @@ class adam_printer_device : public device_t, protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; // device_adamnet_card_interface overrides virtual void adamnet_reset_w(int state) override; diff --git a/src/devices/bus/adamnet/spi.h b/src/devices/bus/adamnet/spi.h index 36e2ba60789..55b158c2e9d 100644 --- a/src/devices/bus/adamnet/spi.h +++ b/src/devices/bus/adamnet/spi.h @@ -34,11 +34,11 @@ class adam_spi_device : public device_t, protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; // device_adamnet_card_interface overrides virtual void adamnet_reset_w(int state) override; @@ -49,7 +49,7 @@ class adam_spi_device : public device_t, uint8_t p2_r(); void p2_w(uint8_t data); - void adam_spi_mem(address_map &map); + void adam_spi_mem(address_map &map) ATTR_COLD; }; diff --git a/src/devices/bus/adb/a9m0330.h b/src/devices/bus/adb/a9m0330.h index c74a13feb38..2c81e6538f4 100644 --- a/src/devices/bus/adb/a9m0330.h +++ b/src/devices/bus/adb/a9m0330.h @@ -17,19 +17,19 @@ class a9m0330_device : public adb_device, public adb_slot_card_interface a9m0330_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); protected: - 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 const tiny_rom_entry *device_rom_region() const override; - virtual ioport_constructor device_input_ports() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual void adb_w(int state) override; required_device m_mcu; required_ioport_array<10> m_rows; - void program_map(address_map &map); + void program_map(address_map &map) ATTR_COLD; private: u8 bus_r(); diff --git a/src/devices/bus/adb/a9m0331.h b/src/devices/bus/adb/a9m0331.h index f6fd1d145ab..d213c491ea2 100644 --- a/src/devices/bus/adb/a9m0331.h +++ b/src/devices/bus/adb/a9m0331.h @@ -17,12 +17,12 @@ class a9m0331_device : public adb_device, public adb_slot_card_interface a9m0331_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - 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 const tiny_rom_entry *device_rom_region() const override; - virtual ioport_constructor device_input_ports() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual void adb_w(int state) override; diff --git a/src/devices/bus/adb/adb.h b/src/devices/bus/adb/adb.h index e6b15e8f61d..6d75a5c853d 100644 --- a/src/devices/bus/adb/adb.h +++ b/src/devices/bus/adb/adb.h @@ -34,7 +34,7 @@ class adb_connector: public device_t, public device_single_card_slot_interface >; diff --git a/src/devices/bus/apf/slot.h b/src/devices/bus/apf/slot.h index 635cf3b8a71..71b831dbded 100644 --- a/src/devices/bus/apf/slot.h +++ b/src/devices/bus/apf/slot.h @@ -95,7 +95,7 @@ class apf_cart_slot_device : public device_t, protected: // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; int m_type; device_apf_cart_interface *m_cart; diff --git a/src/devices/bus/apricot/expansion/expansion.h b/src/devices/bus/apricot/expansion/expansion.h index 24809d4a37f..933f7d903f6 100644 --- a/src/devices/bus/apricot/expansion/expansion.h +++ b/src/devices/bus/apricot/expansion/expansion.h @@ -79,7 +79,7 @@ class apricot_expansion_slot_device : public device_t, public device_single_card apricot_expansion_slot_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; }; // device type definition @@ -130,7 +130,7 @@ class apricot_expansion_bus_device : public device_t protected: // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: using card_vector = std::vector >; diff --git a/src/devices/bus/apricot/expansion/ram.h b/src/devices/bus/apricot/expansion/ram.h index d6692b49ba7..4f079cbe3b9 100644 --- a/src/devices/bus/apricot/expansion/ram.h +++ b/src/devices/bus/apricot/expansion/ram.h @@ -28,9 +28,9 @@ class apricot_256k_ram_device : public device_t, public device_apricot_expansion apricot_256k_ram_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; - virtual void device_reset() override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: required_ioport m_sw; @@ -48,9 +48,9 @@ class apricot_128k_ram_device : public device_t, public device_apricot_expansion apricot_128k_ram_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; - virtual void device_reset() override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: required_ioport m_strap; @@ -68,9 +68,9 @@ class apricot_512k_ram_device : public device_t, public device_apricot_expansion apricot_512k_ram_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; - virtual void device_reset() override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: required_ioport m_strap; diff --git a/src/devices/bus/apricot/expansion/winchester.h b/src/devices/bus/apricot/expansion/winchester.h index c5ed5ec9a59..2e6905eebce 100644 --- a/src/devices/bus/apricot/expansion/winchester.h +++ b/src/devices/bus/apricot/expansion/winchester.h @@ -29,9 +29,9 @@ class apricot_winchester_device : public device_t, public device_apricot_expansi protected: // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: void hdc_intrq_w(int state); @@ -46,7 +46,7 @@ class apricot_winchester_device : public device_t, public device_apricot_expansi uint8_t data_r(); void data_w(uint8_t data); - void regs(address_map &map); + void regs(address_map &map) ATTR_COLD; required_device m_hdc; diff --git a/src/devices/bus/apricot/keyboard/hle.h b/src/devices/bus/apricot/keyboard/hle.h index c9738598a57..cf149f77989 100644 --- a/src/devices/bus/apricot/keyboard/hle.h +++ b/src/devices/bus/apricot/keyboard/hle.h @@ -38,10 +38,10 @@ class apricot_keyboard_hle_device : public device_t, protected: // device_t overrides - virtual ioport_constructor device_input_ports() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; // device_buffered_serial_interface overrides virtual void tra_callback() override; diff --git a/src/devices/bus/apricot/keyboard/keyboard.h b/src/devices/bus/apricot/keyboard/keyboard.h index 7a04bbc2e99..7f00dc7b0e6 100644 --- a/src/devices/bus/apricot/keyboard/keyboard.h +++ b/src/devices/bus/apricot/keyboard/keyboard.h @@ -69,7 +69,7 @@ class apricot_keyboard_bus_device : public device_t, public device_single_card_s protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: device_apricot_keyboard_interface *m_kbd; diff --git a/src/devices/bus/apricot/video/mono.h b/src/devices/bus/apricot/video/mono.h index 36885bcb768..6ce27dd82c5 100644 --- a/src/devices/bus/apricot/video/mono.h +++ b/src/devices/bus/apricot/video/mono.h @@ -30,9 +30,9 @@ class apricot_mono_display_device : public device_t, public device_apricot_video protected: // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; virtual bool mem_r(offs_t offset, uint16_t &data, uint16_t mem_mask) override; virtual bool mem_w(offs_t offset, uint16_t data, uint16_t mem_mask) override; diff --git a/src/devices/bus/apricot/video/video.h b/src/devices/bus/apricot/video/video.h index e1977107bd1..885bef8fc9a 100644 --- a/src/devices/bus/apricot/video/video.h +++ b/src/devices/bus/apricot/video/video.h @@ -53,7 +53,7 @@ class apricot_video_slot_device : public device_t, public device_single_card_slo protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: devcb_write_line m_apvid_handler; diff --git a/src/devices/bus/aquarius/c1541.h b/src/devices/bus/aquarius/c1541.h index 3a9e16e290c..0cfc58bd719 100644 --- a/src/devices/bus/aquarius/c1541.h +++ b/src/devices/bus/aquarius/c1541.h @@ -31,10 +31,10 @@ class aquarius_c1541_device : protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; // device_aquarius_cartridge_interface overrides virtual uint8_t mreq_ce_r(offs_t offset) override; diff --git a/src/devices/bus/aquarius/mini.h b/src/devices/bus/aquarius/mini.h index ed9cc1af641..c2a533318fb 100644 --- a/src/devices/bus/aquarius/mini.h +++ b/src/devices/bus/aquarius/mini.h @@ -29,11 +29,11 @@ class aquarius_mini_device: DECLARE_INPUT_CHANGED_MEMBER(input_changed); protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; // device_aquarius_cartridge_interface overrides virtual uint8_t mreq_r(offs_t offset) override; diff --git a/src/devices/bus/aquarius/qdisk.h b/src/devices/bus/aquarius/qdisk.h index 303ed90affa..813180d96bd 100644 --- a/src/devices/bus/aquarius/qdisk.h +++ b/src/devices/bus/aquarius/qdisk.h @@ -31,11 +31,11 @@ class aquarius_qdisk_device : protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; // device_aquarius_cartridge_interface overrides virtual uint8_t mreq_r(offs_t offset) override; diff --git a/src/devices/bus/aquarius/ram.h b/src/devices/bus/aquarius/ram.h index 3721314bb0f..71ee343f60e 100644 --- a/src/devices/bus/aquarius/ram.h +++ b/src/devices/bus/aquarius/ram.h @@ -29,7 +29,7 @@ class aquarius_ram_device : aquarius_ram_device(const machine_config& mconfig, device_type type, const char* tag, device_t* owner, uint32_t clock, uint16_t size); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_aquarius_cartridge_interface overrides virtual uint8_t mreq_r(offs_t offset) override; @@ -81,7 +81,7 @@ class aquarius_ram16p_device : protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_aquarius_cartridge_interface overrides virtual uint8_t mreq_ce_r(offs_t offset) override; diff --git a/src/devices/bus/aquarius/rom.h b/src/devices/bus/aquarius/rom.h index 9e25f9e9ab0..f3790cdbf91 100644 --- a/src/devices/bus/aquarius/rom.h +++ b/src/devices/bus/aquarius/rom.h @@ -30,7 +30,7 @@ class aquarius_rom_device : protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_aquarius_cartridge_interface overrides virtual uint8_t mreq_ce_r(offs_t offset) override; diff --git a/src/devices/bus/aquarius/slot.h b/src/devices/bus/aquarius/slot.h index 59a446edb65..f30570bf24d 100644 --- a/src/devices/bus/aquarius/slot.h +++ b/src/devices/bus/aquarius/slot.h @@ -67,7 +67,7 @@ class aquarius_cartridge_slot_device : public device_t, protected: // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; device_aquarius_cartridge_interface *m_cart; diff --git a/src/devices/bus/aquarius/supercart.h b/src/devices/bus/aquarius/supercart.h index 9242c1dc667..e7460bb4464 100644 --- a/src/devices/bus/aquarius/supercart.h +++ b/src/devices/bus/aquarius/supercart.h @@ -30,8 +30,8 @@ class aquarius_sc1_device : 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; // device_aquarius_cartridge_interface overrides virtual uint8_t mreq_ce_r(offs_t offset) override; diff --git a/src/devices/bus/arcadia/slot.h b/src/devices/bus/arcadia/slot.h index 5aff49656fe..eced97e405d 100644 --- a/src/devices/bus/arcadia/slot.h +++ b/src/devices/bus/arcadia/slot.h @@ -80,7 +80,7 @@ class arcadia_cart_slot_device : public device_t, protected: // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; int m_type; device_arcadia_cart_interface *m_cart; diff --git a/src/devices/bus/archimedes/econet/econet.h b/src/devices/bus/archimedes/econet/econet.h index 337cb077206..a43967264ba 100644 --- a/src/devices/bus/archimedes/econet/econet.h +++ b/src/devices/bus/archimedes/econet/econet.h @@ -34,10 +34,10 @@ class arc_econet_device: protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual u8 read(offs_t offset) override; virtual void write(offs_t offset, u8 data) override; diff --git a/src/devices/bus/archimedes/econet/midi.h b/src/devices/bus/archimedes/econet/midi.h index 140819c5caa..da078f91d6a 100644 --- a/src/devices/bus/archimedes/econet/midi.h +++ b/src/devices/bus/archimedes/econet/midi.h @@ -35,10 +35,10 @@ class arc_serial_midi_device: arc_serial_midi_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual u8 read(offs_t offset) override; virtual void write(offs_t offset, u8 data) override; @@ -60,7 +60,7 @@ class arc_serial_sampler_device: public arc_serial_midi_device protected: // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; diff --git a/src/devices/bus/archimedes/econet/rtfmjoy.h b/src/devices/bus/archimedes/econet/rtfmjoy.h index 443d5a1560b..63319512464 100644 --- a/src/devices/bus/archimedes/econet/rtfmjoy.h +++ b/src/devices/bus/archimedes/econet/rtfmjoy.h @@ -31,10 +31,10 @@ class arc_rtfm_joystick_device: protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; virtual u8 read(offs_t offset) override; diff --git a/src/devices/bus/archimedes/econet/slot.h b/src/devices/bus/archimedes/econet/slot.h index 5c45fcc58ee..bd6353f45e9 100644 --- a/src/devices/bus/archimedes/econet/slot.h +++ b/src/devices/bus/archimedes/econet/slot.h @@ -69,7 +69,7 @@ class archimedes_econet_slot_device : public device_t, public device_single_card protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; device_archimedes_econet_interface *m_device; diff --git a/src/devices/bus/archimedes/podule/a448.cpp b/src/devices/bus/archimedes/podule/a448.cpp index 400a15722e6..b4f3b99037d 100644 --- a/src/devices/bus/archimedes/podule/a448.cpp +++ b/src/devices/bus/archimedes/podule/a448.cpp @@ -34,14 +34,14 @@ class arc_a448_device : arc_a448_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); // device-level overrides - virtual void device_start() override; + virtual void device_start() 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; // device_archimedes_podule_interface overrides - virtual void ioc_map(address_map &map) override; + virtual void ioc_map(address_map &map) override ATTR_COLD; private: required_memory_region m_podule_rom; @@ -58,8 +58,8 @@ class arc_a448b_device : public arc_a448_device protected: // 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; }; diff --git a/src/devices/bus/archimedes/podule/acejoy.cpp b/src/devices/bus/archimedes/podule/acejoy.cpp index 6cf6f2ef0e1..816be73e8a3 100644 --- a/src/devices/bus/archimedes/podule/acejoy.cpp +++ b/src/devices/bus/archimedes/podule/acejoy.cpp @@ -27,8 +27,8 @@ class arc_acejoy_device : virtual void device_start() override { } // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual ioport_constructor device_input_ports() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; // device_archimedes_podule_interface overrides virtual void ioc_map(address_map &map) override diff --git a/src/devices/bus/archimedes/podule/armadeus.cpp b/src/devices/bus/archimedes/podule/armadeus.cpp index 4af99d9dd8f..462cc8a48e7 100644 --- a/src/devices/bus/archimedes/podule/armadeus.cpp +++ b/src/devices/bus/archimedes/podule/armadeus.cpp @@ -28,14 +28,14 @@ class arc_armadeus_device : protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() 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; // device_archimedes_podule_interface overrides - virtual void ioc_map(address_map &map) override; + virtual void ioc_map(address_map &map) override ATTR_COLD; private: required_memory_region m_podule_rom; diff --git a/src/devices/bus/archimedes/podule/eaglem2.cpp b/src/devices/bus/archimedes/podule/eaglem2.cpp index 5180f724208..116dc20efd1 100644 --- a/src/devices/bus/archimedes/podule/eaglem2.cpp +++ b/src/devices/bus/archimedes/podule/eaglem2.cpp @@ -44,15 +44,15 @@ class arc_eaglem2_device : 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; // 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; // device_archimedes_podule_interface overrides - virtual void ioc_map(address_map &map) override; + virtual void ioc_map(address_map &map) override ATTR_COLD; private: required_memory_region m_podule_rom; diff --git a/src/devices/bus/archimedes/podule/ether1.cpp b/src/devices/bus/archimedes/podule/ether1.cpp index 1de47a69558..20d96e89b28 100644 --- a/src/devices/bus/archimedes/podule/ether1.cpp +++ b/src/devices/bus/archimedes/podule/ether1.cpp @@ -25,22 +25,22 @@ class arc_ether1_aka25_device : public device_t, public device_archimedes_podule protected: // device_t 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; // 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; // device_archimedes_podule_interface overrides - virtual void ioc_map(address_map &map) override; + virtual void ioc_map(address_map &map) override ATTR_COLD; private: required_memory_region m_podule_rom; required_shared_ptr m_ram; required_device m_lance; - void lan_map(address_map &map); + void lan_map(address_map &map) ATTR_COLD; void checksum(); void control_w(u8 data); diff --git a/src/devices/bus/archimedes/podule/ether2.cpp b/src/devices/bus/archimedes/podule/ether2.cpp index b702b2685db..eee2eb19579 100644 --- a/src/devices/bus/archimedes/podule/ether2.cpp +++ b/src/devices/bus/archimedes/podule/ether2.cpp @@ -30,16 +30,16 @@ class arc_ether2_aeh50_device : 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; // 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; // device_archimedes_podule_interface overrides - virtual void ioc_map(address_map &map) override; - virtual void memc_map(address_map &map) override; + virtual void ioc_map(address_map &map) override ATTR_COLD; + virtual void memc_map(address_map &map) override ATTR_COLD; private: required_memory_region m_podule_rom; diff --git a/src/devices/bus/archimedes/podule/ether3.cpp b/src/devices/bus/archimedes/podule/ether3.cpp index 7f8a7808e39..74f1e368769 100644 --- a/src/devices/bus/archimedes/podule/ether3.cpp +++ b/src/devices/bus/archimedes/podule/ether3.cpp @@ -29,15 +29,15 @@ class arc_ether3_aeh54_device : 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; // 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; // device_archimedes_podule_interface overrides - virtual void ioc_map(address_map &map) override; + virtual void ioc_map(address_map &map) override ATTR_COLD; private: required_memory_region m_podule_rom; diff --git a/src/devices/bus/archimedes/podule/ethera.cpp b/src/devices/bus/archimedes/podule/ethera.cpp index e1afb2697fd..a9f0d08d770 100644 --- a/src/devices/bus/archimedes/podule/ethera.cpp +++ b/src/devices/bus/archimedes/podule/ethera.cpp @@ -29,15 +29,15 @@ class arc_ethera_device : 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; // 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; // device_archimedes_podule_interface overrides - virtual void ioc_map(address_map &map) override; + virtual void ioc_map(address_map &map) override ATTR_COLD; private: required_memory_region m_podule_rom; diff --git a/src/devices/bus/archimedes/podule/etherd.cpp b/src/devices/bus/archimedes/podule/etherd.cpp index f1f4bfc4228..992545c5192 100644 --- a/src/devices/bus/archimedes/podule/etherd.cpp +++ b/src/devices/bus/archimedes/podule/etherd.cpp @@ -27,16 +27,16 @@ class arc_etherd_device : 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; // 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; // device_archimedes_podule_interface overrides - virtual void ioc_map(address_map &map) override; - virtual void memc_map(address_map &map) override; + virtual void ioc_map(address_map &map) override ATTR_COLD; + virtual void memc_map(address_map &map) override ATTR_COLD; private: required_memory_region m_podule_rom; diff --git a/src/devices/bus/archimedes/podule/etherr.cpp b/src/devices/bus/archimedes/podule/etherr.cpp index df3ebc6a57b..34ab9866149 100644 --- a/src/devices/bus/archimedes/podule/etherr.cpp +++ b/src/devices/bus/archimedes/podule/etherr.cpp @@ -27,16 +27,16 @@ class arc_etherr_device : 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; // 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; // device_archimedes_podule_interface overrides - virtual void ioc_map(address_map &map) override; - virtual void memc_map(address_map &map) override; + virtual void ioc_map(address_map &map) override ATTR_COLD; + virtual void memc_map(address_map &map) override ATTR_COLD; private: required_memory_region m_podule_rom; diff --git a/src/devices/bus/archimedes/podule/faxpack.cpp b/src/devices/bus/archimedes/podule/faxpack.cpp index 0ae0d375203..bcbce02d706 100644 --- a/src/devices/bus/archimedes/podule/faxpack.cpp +++ b/src/devices/bus/archimedes/podule/faxpack.cpp @@ -31,21 +31,21 @@ class arc_faxpack_device : protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() 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; // device_archimedes_podule_interface overrides - virtual void ioc_map(address_map &map) override; + virtual void ioc_map(address_map &map) override ATTR_COLD; private: required_device m_mcu; required_memory_region m_podule_rom; - void mem_map(address_map &map); - void io_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; }; diff --git a/src/devices/bus/archimedes/podule/greyhawk.cpp b/src/devices/bus/archimedes/podule/greyhawk.cpp index a2ffe51459b..1eac6add450 100644 --- a/src/devices/bus/archimedes/podule/greyhawk.cpp +++ b/src/devices/bus/archimedes/podule/greyhawk.cpp @@ -30,16 +30,16 @@ class arc_greyhawk_device : 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; // 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; // device_archimedes_podule_interface overrides - virtual void ioc_map(address_map &map) override; - virtual void memc_map(address_map &map) override; + virtual void ioc_map(address_map &map) override ATTR_COLD; + virtual void memc_map(address_map &map) override ATTR_COLD; private: required_memory_region m_podule_rom; diff --git a/src/devices/bus/archimedes/podule/hdisc.cpp b/src/devices/bus/archimedes/podule/hdisc.cpp index f317ba646c5..caf917c8a94 100644 --- a/src/devices/bus/archimedes/podule/hdisc.cpp +++ b/src/devices/bus/archimedes/podule/hdisc.cpp @@ -33,14 +33,14 @@ class arc_hdisc_akd52_device : protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() 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; // device_archimedes_podule_interface overrides - virtual void ioc_map(address_map &map) override; + virtual void ioc_map(address_map &map) override ATTR_COLD; private: required_memory_region m_podule_rom; diff --git a/src/devices/bus/archimedes/podule/hdisc_cw.cpp b/src/devices/bus/archimedes/podule/hdisc_cw.cpp index 549f590a3b4..aa2c2080f0f 100644 --- a/src/devices/bus/archimedes/podule/hdisc_cw.cpp +++ b/src/devices/bus/archimedes/podule/hdisc_cw.cpp @@ -31,14 +31,14 @@ class arc_hdisc_cw_device : protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() 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; // device_archimedes_podule_interface overrides - virtual void ioc_map(address_map &map) override; + virtual void ioc_map(address_map &map) override ATTR_COLD; private: required_memory_region m_podule_rom; diff --git a/src/devices/bus/archimedes/podule/hdisc_morley.cpp b/src/devices/bus/archimedes/podule/hdisc_morley.cpp index ca1ac3562e4..b6df3aa25e3 100644 --- a/src/devices/bus/archimedes/podule/hdisc_morley.cpp +++ b/src/devices/bus/archimedes/podule/hdisc_morley.cpp @@ -33,14 +33,14 @@ class arc_hdisc_morley_device : protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() 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; // device_archimedes_podule_interface overrides - virtual void ioc_map(address_map &map) override; + virtual void ioc_map(address_map &map) override ATTR_COLD; private: required_memory_region m_podule_rom; diff --git a/src/devices/bus/archimedes/podule/hdisc_we.cpp b/src/devices/bus/archimedes/podule/hdisc_we.cpp index 971a99f2d9b..350cea9c9c4 100644 --- a/src/devices/bus/archimedes/podule/hdisc_we.cpp +++ b/src/devices/bus/archimedes/podule/hdisc_we.cpp @@ -33,14 +33,14 @@ class arc_hdisc_we_device : protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() 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; // device_archimedes_podule_interface overrides - virtual void ioc_map(address_map &map) override; + virtual void ioc_map(address_map &map) override ATTR_COLD; private: required_memory_region m_podule_rom; diff --git a/src/devices/bus/archimedes/podule/ide_be.cpp b/src/devices/bus/archimedes/podule/ide_be.cpp index 622b62a7cf1..861f78c587b 100644 --- a/src/devices/bus/archimedes/podule/ide_be.cpp +++ b/src/devices/bus/archimedes/podule/ide_be.cpp @@ -27,15 +27,15 @@ class arc_ide_be_device : 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; // 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; // device_archimedes_podule_interface overrides - virtual void ioc_map(address_map &map) override; + virtual void ioc_map(address_map &map) override ATTR_COLD; private: required_memory_region m_podule_rom; diff --git a/src/devices/bus/archimedes/podule/ide_rdev.cpp b/src/devices/bus/archimedes/podule/ide_rdev.cpp index ccf48d24e51..3471e5e40a0 100644 --- a/src/devices/bus/archimedes/podule/ide_rdev.cpp +++ b/src/devices/bus/archimedes/podule/ide_rdev.cpp @@ -25,15 +25,15 @@ class arc_ide_rdev_device : 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; // 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; // device_archimedes_podule_interface overrides - virtual void ioc_map(address_map &map) override; + virtual void ioc_map(address_map &map) override ATTR_COLD; private: required_memory_region m_podule_rom; diff --git a/src/devices/bus/archimedes/podule/io.cpp b/src/devices/bus/archimedes/podule/io.cpp index 698cf94114b..7e23b3ac57f 100644 --- a/src/devices/bus/archimedes/podule/io.cpp +++ b/src/devices/bus/archimedes/podule/io.cpp @@ -45,8 +45,8 @@ class arc_io_aka_device : arc_io_aka_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); // 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; void add_1mhzbus(machine_config &config); void add_analogue(machine_config &config); @@ -78,12 +78,12 @@ class arc_bbcio_aka10_device : public arc_io_aka_device protected: // 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; // device_archimedes_podule_interface overrides - virtual void ioc_map(address_map &map) override; - virtual void memc_map(address_map &map) override; + virtual void ioc_map(address_map &map) override ATTR_COLD; + virtual void memc_map(address_map &map) override ATTR_COLD; }; @@ -97,11 +97,11 @@ class arc_upmidi_aka12_device : public arc_io_aka_device protected: // 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; // device_archimedes_podule_interface overrides - virtual void ioc_map(address_map &map) override; + virtual void ioc_map(address_map &map) override ATTR_COLD; }; @@ -115,12 +115,12 @@ class arc_iomidi_aka15_device : public arc_io_aka_device protected: // 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; // device_archimedes_podule_interface overrides - virtual void ioc_map(address_map &map) override; - virtual void memc_map(address_map &map) override; + virtual void ioc_map(address_map &map) override ATTR_COLD; + virtual void memc_map(address_map &map) override ATTR_COLD; }; @@ -134,11 +134,11 @@ class arc_midi_aka16_device : public arc_io_aka_device protected: // 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; // device_archimedes_podule_interface overrides - virtual void ioc_map(address_map &map) override; + virtual void ioc_map(address_map &map) override ATTR_COLD; }; diff --git a/src/devices/bus/archimedes/podule/io_hccs.cpp b/src/devices/bus/archimedes/podule/io_hccs.cpp index 16c73b22b7d..c815549d193 100644 --- a/src/devices/bus/archimedes/podule/io_hccs.cpp +++ b/src/devices/bus/archimedes/podule/io_hccs.cpp @@ -30,14 +30,14 @@ class arc_upa_hccs_device : protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() 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; // device_archimedes_podule_interface overrides - virtual void ioc_map(address_map &map) override; + virtual void ioc_map(address_map &map) override ATTR_COLD; private: required_memory_region m_podule_rom; diff --git a/src/devices/bus/archimedes/podule/io_morley.cpp b/src/devices/bus/archimedes/podule/io_morley.cpp index 3e6bccc755b..d030e3120f8 100644 --- a/src/devices/bus/archimedes/podule/io_morley.cpp +++ b/src/devices/bus/archimedes/podule/io_morley.cpp @@ -39,8 +39,8 @@ class arc_io_morley_device : arc_io_morley_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); // 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; void add_userport(machine_config &config); void add_analogue(machine_config &config); @@ -67,12 +67,12 @@ class arc_bbcio_aga30_device : public arc_io_morley_device protected: // 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; // device_archimedes_podule_interface overrides - virtual void ioc_map(address_map &map) override; - virtual void memc_map(address_map &map) override; + virtual void ioc_map(address_map &map) override ATTR_COLD; + virtual void memc_map(address_map &map) override ATTR_COLD; }; @@ -86,12 +86,12 @@ class arc_ua_morley_device : public arc_io_morley_device protected: // 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; // device_archimedes_podule_interface overrides - virtual void ioc_map(address_map &map) override; - virtual void memc_map(address_map &map) override; + virtual void ioc_map(address_map &map) override ATTR_COLD; + virtual void memc_map(address_map &map) override ATTR_COLD; }; @@ -105,12 +105,12 @@ class arc_uma_morley_device : public arc_io_morley_device protected: // 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; // device_archimedes_podule_interface overrides - virtual void ioc_map(address_map &map) override; - virtual void memc_map(address_map &map) override; + virtual void ioc_map(address_map &map) override ATTR_COLD; + virtual void memc_map(address_map &map) override ATTR_COLD; }; diff --git a/src/devices/bus/archimedes/podule/io_we.cpp b/src/devices/bus/archimedes/podule/io_we.cpp index 40d5092d824..d05e646ec6c 100644 --- a/src/devices/bus/archimedes/podule/io_we.cpp +++ b/src/devices/bus/archimedes/podule/io_we.cpp @@ -31,16 +31,16 @@ class arc_bbcio_we_device : 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; // 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; // device_archimedes_podule_interface overrides - virtual void ioc_map(address_map &map) override; - virtual void memc_map(address_map &map) override; + virtual void ioc_map(address_map &map) override ATTR_COLD; + virtual void memc_map(address_map &map) override ATTR_COLD; private: required_memory_region m_podule_rom; diff --git a/src/devices/bus/archimedes/podule/lark.cpp b/src/devices/bus/archimedes/podule/lark.cpp index 54bfa5cd480..cfb1fe80333 100644 --- a/src/devices/bus/archimedes/podule/lark.cpp +++ b/src/devices/bus/archimedes/podule/lark.cpp @@ -31,16 +31,16 @@ class arc_lark_device : 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; // 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; // device_archimedes_podule_interface overrides - virtual void ioc_map(address_map &map) override; - virtual void memc_map(address_map &map) override; + virtual void ioc_map(address_map &map) override ATTR_COLD; + virtual void memc_map(address_map &map) override ATTR_COLD; private: required_memory_region m_podule_rom; diff --git a/src/devices/bus/archimedes/podule/laserd.cpp b/src/devices/bus/archimedes/podule/laserd.cpp index eb688f3735f..b7b7c01b75f 100644 --- a/src/devices/bus/archimedes/podule/laserd.cpp +++ b/src/devices/bus/archimedes/podule/laserd.cpp @@ -30,15 +30,15 @@ class arc_laserd_device : arc_laserd_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); // 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; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; // device_archimedes_podule_interface overrides - virtual void ioc_map(address_map &map) override; - virtual void memc_map(address_map &map) override; + virtual void ioc_map(address_map &map) override ATTR_COLD; + virtual void memc_map(address_map &map) override ATTR_COLD; private: required_memory_region m_podule_rom; @@ -57,7 +57,7 @@ class arc_lbp4_device : public arc_laserd_device protected: // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; }; diff --git a/src/devices/bus/archimedes/podule/midi_emr.cpp b/src/devices/bus/archimedes/podule/midi_emr.cpp index 27127471c62..59fb7e783f9 100644 --- a/src/devices/bus/archimedes/podule/midi_emr.cpp +++ b/src/devices/bus/archimedes/podule/midi_emr.cpp @@ -29,15 +29,15 @@ class arc_midi2_emr_device : 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; // 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; // device_archimedes_podule_interface overrides - virtual void ioc_map(address_map &map) override; + virtual void ioc_map(address_map &map) override ATTR_COLD; private: required_memory_region m_podule_rom; @@ -58,13 +58,13 @@ class arc_midi4_emr_device : protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; // device_archimedes_podule_interface overrides - virtual void ioc_map(address_map &map) override; + virtual void ioc_map(address_map &map) override ATTR_COLD; }; diff --git a/src/devices/bus/archimedes/podule/midimax.cpp b/src/devices/bus/archimedes/podule/midimax.cpp index b8a43a2bfae..90ca5be2c81 100644 --- a/src/devices/bus/archimedes/podule/midimax.cpp +++ b/src/devices/bus/archimedes/podule/midimax.cpp @@ -30,15 +30,15 @@ class arc_midimax_device : arc_midimax_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); // 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; // 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; // device_archimedes_podule_interface overrides - virtual void ioc_map(address_map &map) override; + virtual void ioc_map(address_map &map) override ATTR_COLD; private: required_memory_region m_podule_rom; @@ -57,7 +57,7 @@ class arc_midimax2_device : public arc_midimax_device protected: // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; }; diff --git a/src/devices/bus/archimedes/podule/nexus.cpp b/src/devices/bus/archimedes/podule/nexus.cpp index 9ab8dd63d46..3963a4a9ea4 100644 --- a/src/devices/bus/archimedes/podule/nexus.cpp +++ b/src/devices/bus/archimedes/podule/nexus.cpp @@ -27,16 +27,16 @@ class arc_nexus_device : 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; // 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; // device_archimedes_podule_interface overrides - virtual void ioc_map(address_map &map) override; - virtual void memc_map(address_map &map) override; + virtual void ioc_map(address_map &map) override ATTR_COLD; + virtual void memc_map(address_map &map) override ATTR_COLD; private: required_memory_region m_podule_rom; diff --git a/src/devices/bus/archimedes/podule/rom.cpp b/src/devices/bus/archimedes/podule/rom.cpp index 265cdddcced..90f81eb359f 100644 --- a/src/devices/bus/archimedes/podule/rom.cpp +++ b/src/devices/bus/archimedes/podule/rom.cpp @@ -33,15 +33,15 @@ class arc_rom_aka05_device : arc_rom_aka05_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); // device_t 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; // 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; // device_archimedes_podule_interface overrides - virtual void ioc_map(address_map &map) override; + virtual void ioc_map(address_map &map) override ATTR_COLD; private: required_memory_region m_podule_rom; @@ -64,7 +64,7 @@ class arc_rom_r225_device : public arc_rom_aka05_device protected: // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; }; diff --git a/src/devices/bus/archimedes/podule/rs423.cpp b/src/devices/bus/archimedes/podule/rs423.cpp index d3f20c03edf..1abc3a6d066 100644 --- a/src/devices/bus/archimedes/podule/rs423.cpp +++ b/src/devices/bus/archimedes/podule/rs423.cpp @@ -30,15 +30,15 @@ class arc_rs423_device : 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; // 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; // device_archimedes_podule_interface overrides - virtual void ioc_map(address_map &map) override; + virtual void ioc_map(address_map &map) override ATTR_COLD; private: required_memory_region m_podule_rom; diff --git a/src/devices/bus/archimedes/podule/scan256.cpp b/src/devices/bus/archimedes/podule/scan256.cpp index 8666084c04b..4f219fc2012 100644 --- a/src/devices/bus/archimedes/podule/scan256.cpp +++ b/src/devices/bus/archimedes/podule/scan256.cpp @@ -30,15 +30,15 @@ class arc_scan256_device : 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; // 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; // device_archimedes_podule_interface overrides - virtual void ioc_map(address_map &map) override; + virtual void ioc_map(address_map &map) override ATTR_COLD; private: required_memory_region m_podule_rom; diff --git a/src/devices/bus/archimedes/podule/scanlight.cpp b/src/devices/bus/archimedes/podule/scanlight.cpp index 7e22683032f..799a2004a3e 100644 --- a/src/devices/bus/archimedes/podule/scanlight.cpp +++ b/src/devices/bus/archimedes/podule/scanlight.cpp @@ -44,15 +44,15 @@ class arc_scanlight_device : arc_scanlight_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); // 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; // 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; // device_archimedes_podule_interface overrides - virtual void ioc_map(address_map &map) override; + virtual void ioc_map(address_map &map) override ATTR_COLD; //private: required_memory_region m_podule_rom; @@ -72,7 +72,7 @@ class arc_scanjunior_device : public arc_scanlight_device protected: // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; }; @@ -86,7 +86,7 @@ class arc_scanjunior3_device : public arc_scanlight_device protected: // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; }; @@ -100,11 +100,11 @@ class arc_scanvideo_device : public arc_scanlight_device protected: // 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; // device_archimedes_podule_interface overrides - virtual void ioc_map(address_map &map) override; + virtual void ioc_map(address_map &map) override ATTR_COLD; private: required_device m_avivideo; diff --git a/src/devices/bus/archimedes/podule/scsi_a500.cpp b/src/devices/bus/archimedes/podule/scsi_a500.cpp index 0efcd568c8a..d26e2784021 100644 --- a/src/devices/bus/archimedes/podule/scsi_a500.cpp +++ b/src/devices/bus/archimedes/podule/scsi_a500.cpp @@ -35,14 +35,14 @@ class arc_scsi_a500_device : protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() 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; // device_archimedes_podule_interface overrides - virtual void ioc_map(address_map &map) override; + virtual void ioc_map(address_map &map) override ATTR_COLD; private: required_device m_wd33c93; diff --git a/src/devices/bus/archimedes/podule/scsi_acorn.cpp b/src/devices/bus/archimedes/podule/scsi_acorn.cpp index fc6b45581c1..265a5ccd8a4 100644 --- a/src/devices/bus/archimedes/podule/scsi_acorn.cpp +++ b/src/devices/bus/archimedes/podule/scsi_acorn.cpp @@ -40,16 +40,16 @@ class arc_scsi_aka31_device : arc_scsi_aka31_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); // 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; // 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; // device_archimedes_podule_interface overrides - virtual void ioc_map(address_map &map) override; - virtual void memc_map(address_map &map) override; + virtual void ioc_map(address_map &map) override ATTR_COLD; + virtual void memc_map(address_map &map) override ATTR_COLD; private: required_device m_wd33c93; @@ -76,7 +76,7 @@ class arc_scsi_aka32_device : public arc_scsi_aka31_device protected: // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; }; diff --git a/src/devices/bus/archimedes/podule/scsi_cumana.cpp b/src/devices/bus/archimedes/podule/scsi_cumana.cpp index 0fcbe8bb225..900f7ffa16a 100644 --- a/src/devices/bus/archimedes/podule/scsi_cumana.cpp +++ b/src/devices/bus/archimedes/podule/scsi_cumana.cpp @@ -32,16 +32,16 @@ class arc_scsi_cumana_device : 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; // 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; // device_archimedes_podule_interface overrides - virtual void ioc_map(address_map &map) override; - virtual void memc_map(address_map &map) override; + virtual void ioc_map(address_map &map) override ATTR_COLD; + virtual void memc_map(address_map &map) override ATTR_COLD; private: required_device m_ncr5380; diff --git a/src/devices/bus/archimedes/podule/scsi_ling.cpp b/src/devices/bus/archimedes/podule/scsi_ling.cpp index ab2cd3fea51..0f9425f61e4 100644 --- a/src/devices/bus/archimedes/podule/scsi_ling.cpp +++ b/src/devices/bus/archimedes/podule/scsi_ling.cpp @@ -31,16 +31,16 @@ class arc_scsi_ling_device : 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; // 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; // device_archimedes_podule_interface overrides - virtual void ioc_map(address_map &map) override; - virtual void memc_map(address_map &map) override; + virtual void ioc_map(address_map &map) override ATTR_COLD; + virtual void memc_map(address_map &map) override ATTR_COLD; private: required_device m_ncr5380; diff --git a/src/devices/bus/archimedes/podule/scsi_morley.cpp b/src/devices/bus/archimedes/podule/scsi_morley.cpp index 438fc65dafa..fa749fbae40 100644 --- a/src/devices/bus/archimedes/podule/scsi_morley.cpp +++ b/src/devices/bus/archimedes/podule/scsi_morley.cpp @@ -33,16 +33,16 @@ class arc_scsi_morley_device : 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; // 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; // device_archimedes_podule_interface overrides - virtual void ioc_map(address_map &map) override; - virtual void memc_map(address_map &map) override; + virtual void ioc_map(address_map &map) override ATTR_COLD; + virtual void memc_map(address_map &map) override ATTR_COLD; private: required_device m_esp216; diff --git a/src/devices/bus/archimedes/podule/scsi_oak.cpp b/src/devices/bus/archimedes/podule/scsi_oak.cpp index ffce5815993..4e414d8e995 100644 --- a/src/devices/bus/archimedes/podule/scsi_oak.cpp +++ b/src/devices/bus/archimedes/podule/scsi_oak.cpp @@ -73,16 +73,16 @@ class arc_scsi_oak_device : 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; // 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; // device_archimedes_podule_interface overrides - virtual void ioc_map(address_map &map) override; - virtual void memc_map(address_map &map) override; + virtual void ioc_map(address_map &map) override ATTR_COLD; + virtual void memc_map(address_map &map) override ATTR_COLD; private: required_device m_ncr5380; diff --git a/src/devices/bus/archimedes/podule/scsi_vti.cpp b/src/devices/bus/archimedes/podule/scsi_vti.cpp index a64bb3b6845..0ca3aa526bd 100644 --- a/src/devices/bus/archimedes/podule/scsi_vti.cpp +++ b/src/devices/bus/archimedes/podule/scsi_vti.cpp @@ -35,16 +35,16 @@ class arc_scsi_vti_device : 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; // 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; // device_archimedes_podule_interface overrides - virtual void ioc_map(address_map &map) override; - virtual void memc_map(address_map &map) override; + virtual void ioc_map(address_map &map) override ATTR_COLD; + virtual void memc_map(address_map &map) override ATTR_COLD; private: required_device m_fas216; diff --git a/src/devices/bus/archimedes/podule/serial.cpp b/src/devices/bus/archimedes/podule/serial.cpp index dff0fa826f9..ba8f132043d 100644 --- a/src/devices/bus/archimedes/podule/serial.cpp +++ b/src/devices/bus/archimedes/podule/serial.cpp @@ -28,15 +28,15 @@ class arc_serial_device : 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; // 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; // device_archimedes_podule_interface overrides - virtual void ioc_map(address_map &map) override; + virtual void ioc_map(address_map &map) override ATTR_COLD; private: required_memory_region m_podule_rom; diff --git a/src/devices/bus/archimedes/podule/slot.h b/src/devices/bus/archimedes/podule/slot.h index b05425b9b70..849226f63b5 100644 --- a/src/devices/bus/archimedes/podule/slot.h +++ b/src/devices/bus/archimedes/podule/slot.h @@ -45,8 +45,8 @@ class archimedes_podule_slot_device : public device_t, protected: // 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; required_device m_exp; }; @@ -92,8 +92,8 @@ class archimedes_exp_device : public device_t, protected: // 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; // device_memory_interface implementation virtual space_config_vector memory_space_config() const override; @@ -111,8 +111,8 @@ class archimedes_exp_device : public device_t, address_space *m_ioc; address_space *m_memc; - void ioc_map(address_map &map); - void memc_map(address_map &map); + void ioc_map(address_map &map) ATTR_COLD; + void memc_map(address_map &map) ATTR_COLD; }; diff --git a/src/devices/bus/archimedes/podule/spectra.cpp b/src/devices/bus/archimedes/podule/spectra.cpp index 6c144dbebf7..7a9ada1839b 100644 --- a/src/devices/bus/archimedes/podule/spectra.cpp +++ b/src/devices/bus/archimedes/podule/spectra.cpp @@ -30,15 +30,15 @@ class arc_spectra_device : 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; // 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; // device_archimedes_podule_interface overrides - virtual void ioc_map(address_map &map) override; + virtual void ioc_map(address_map &map) override ATTR_COLD; private: required_memory_region m_podule_rom; diff --git a/src/devices/bus/archimedes/podule/tube.cpp b/src/devices/bus/archimedes/podule/tube.cpp index 84d699b4bc2..b9d5b724182 100644 --- a/src/devices/bus/archimedes/podule/tube.cpp +++ b/src/devices/bus/archimedes/podule/tube.cpp @@ -26,13 +26,13 @@ class arc_tube_device : protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; // device_archimedes_podule_interface overrides - virtual void ioc_map(address_map &map) override; + virtual void ioc_map(address_map &map) override ATTR_COLD; }; diff --git a/src/devices/bus/astrocde/accessory.h b/src/devices/bus/astrocde/accessory.h index dd4e0f4e50a..00d4c55abd8 100644 --- a/src/devices/bus/astrocde/accessory.h +++ b/src/devices/bus/astrocde/accessory.h @@ -42,8 +42,8 @@ class astrocade_accessory_port_device : public device_t, public device_single_ca protected: // 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; int m_ltpen; devcb_write_line m_ltpen_handler; diff --git a/src/devices/bus/astrocde/cassette.h b/src/devices/bus/astrocde/cassette.h index d36e8a1bfd7..01777a890f9 100644 --- a/src/devices/bus/astrocde/cassette.h +++ b/src/devices/bus/astrocde/cassette.h @@ -34,9 +34,9 @@ class astrocade_cassette_device : public device_t, protected: // device_t implementation - 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; TIMER_DEVICE_CALLBACK_MEMBER(check_cassette_wave); TIMER_DEVICE_CALLBACK_MEMBER(pulse_cassette_clock); diff --git a/src/devices/bus/astrocde/ctrl.h b/src/devices/bus/astrocde/ctrl.h index 1e7a88396ee..871ae12b14d 100644 --- a/src/devices/bus/astrocde/ctrl.h +++ b/src/devices/bus/astrocde/ctrl.h @@ -68,8 +68,8 @@ class astrocade_ctrl_port_device : public device_t, public device_single_card_sl protected: // 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; int m_ltpen; devcb_write_line m_ltpen_handler; diff --git a/src/devices/bus/astrocde/exp.h b/src/devices/bus/astrocde/exp.h index e2ed2279135..4b5f2652c37 100644 --- a/src/devices/bus/astrocde/exp.h +++ b/src/devices/bus/astrocde/exp.h @@ -41,7 +41,7 @@ class astrocade_exp_device : public device_t, public device_single_card_slot_int virtual ~astrocade_exp_device(); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; bool get_card_mounted() { return m_card_mounted; } diff --git a/src/devices/bus/astrocde/joy.h b/src/devices/bus/astrocde/joy.h index bb8f755c845..88e641a3ddc 100644 --- a/src/devices/bus/astrocde/joy.h +++ b/src/devices/bus/astrocde/joy.h @@ -27,7 +27,7 @@ class astrocade_joy_device : public device_t, protected: // device_t implementation - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; virtual void device_start() override { } private: diff --git a/src/devices/bus/astrocde/lightpen.h b/src/devices/bus/astrocde/lightpen.h index dd75c807443..9f6d03c3210 100644 --- a/src/devices/bus/astrocde/lightpen.h +++ b/src/devices/bus/astrocde/lightpen.h @@ -26,9 +26,9 @@ class astrocade_lightpen_device : public device_t, protected: // device_t implementation - virtual void device_start() override; - virtual void device_reset() override; - virtual ioport_constructor device_input_ports() const override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; TIMER_CALLBACK_MEMBER(trigger_tick); diff --git a/src/devices/bus/astrocde/ram.h b/src/devices/bus/astrocde/ram.h index 22e6e3bd590..ad8d7cc6248 100644 --- a/src/devices/bus/astrocde/ram.h +++ b/src/devices/bus/astrocde/ram.h @@ -19,7 +19,7 @@ class astrocade_blueram_4k_device : public device_t, public device_astrocade_exp astrocade_blueram_4k_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // device-level overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; // reading and writing virtual uint8_t read(offs_t offset) override; @@ -37,7 +37,7 @@ class astrocade_blueram_4k_device : public device_t, public device_astrocade_exp virtual void device_start() override { m_ram.resize(0x1000); save_item(NAME(m_ram)); } virtual void device_reset() override { } - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; std::vector m_ram; required_ioport m_write_prot; @@ -76,7 +76,7 @@ class astrocade_viper_sys1_device : public device_t, public device_astrocade_exp astrocade_viper_sys1_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // device-level overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; // reading and writing virtual uint8_t read(offs_t offset) override; @@ -100,7 +100,7 @@ class astrocade_whiteram_device : public device_t, public device_astrocade_exp_i astrocade_whiteram_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // device-level overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; // reading and writing virtual uint8_t read(offs_t offset) override; @@ -124,7 +124,7 @@ class astrocade_rl64ram_device : public device_t, public device_astrocade_exp_in astrocade_rl64ram_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // device-level overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; // reading and writing virtual uint8_t read(offs_t offset) override; diff --git a/src/devices/bus/astrocde/rom.h b/src/devices/bus/astrocde/rom.h index 8a8db1634de..c4627f48b01 100644 --- a/src/devices/bus/astrocde/rom.h +++ b/src/devices/bus/astrocde/rom.h @@ -41,8 +41,8 @@ class astrocade_rom_256k_device : public astrocade_rom_device virtual uint8_t read_rom(offs_t offset) override; private: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; uint8_t m_base_bank; }; @@ -59,8 +59,8 @@ class astrocade_rom_512k_device : public astrocade_rom_device virtual uint8_t read_rom(offs_t offset) override; private: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; uint8_t m_base_bank; }; @@ -79,7 +79,7 @@ class astrocade_rom_cass_device : public astrocade_rom_device private: virtual void device_start() override { } virtual void device_reset() override { } - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; required_device m_cassette; }; diff --git a/src/devices/bus/astrocde/slot.h b/src/devices/bus/astrocde/slot.h index 1079133752b..823d6da0c1d 100644 --- a/src/devices/bus/astrocde/slot.h +++ b/src/devices/bus/astrocde/slot.h @@ -84,7 +84,7 @@ class astrocade_cart_slot_device : public device_t, protected: // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; int m_type; device_astrocade_cart_interface *m_cart; diff --git a/src/devices/bus/ata/atadev.h b/src/devices/bus/ata/atadev.h index d052877349b..8f0ab682cde 100644 --- a/src/devices/bus/ata/atadev.h +++ b/src/devices/bus/ata/atadev.h @@ -34,7 +34,7 @@ class ata_slot_device : protected: // device_t implementation virtual void device_config_complete() override; - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: devcb_write_line m_irq_handler; diff --git a/src/devices/bus/ata/ataintf.h b/src/devices/bus/ata/ataintf.h index 45819c53436..691835fd267 100644 --- a/src/devices/bus/ata/ataintf.h +++ b/src/devices/bus/ata/ataintf.h @@ -70,8 +70,8 @@ class abstract_ata_interface_device : public device_t void internal_write_cs1(offs_t offset, uint16_t data, uint16_t mem_mask = 0xffff); // device-level overrides - 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; virtual void set_irq(int state); virtual void set_dmarq(int state); diff --git a/src/devices/bus/ata/atapicdr.h b/src/devices/bus/ata/atapicdr.h index 16c4a171517..c988b748c97 100644 --- a/src/devices/bus/ata/atapicdr.h +++ b/src/devices/bus/ata/atapicdr.h @@ -46,9 +46,9 @@ class atapi_cdrom_device : public atapi_hle_device, public device_ata_interface, atapi_cdrom_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // device-level overrides - 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; virtual void perform_diagnostic() override; virtual void identify_packet_device() override; @@ -73,7 +73,7 @@ class atapi_fixed_cdrom_device : public atapi_cdrom_device protected: atapi_fixed_cdrom_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; }; class atapi_dvdrom_device : public atapi_cdrom_device @@ -82,7 +82,7 @@ class atapi_dvdrom_device : public atapi_cdrom_device atapi_dvdrom_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; }; class atapi_fixed_dvdrom_device : public atapi_cdrom_device @@ -91,7 +91,7 @@ class atapi_fixed_dvdrom_device : public atapi_cdrom_device atapi_fixed_dvdrom_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; }; // device type definition diff --git a/src/devices/bus/ata/atapihle.h b/src/devices/bus/ata/atapihle.h index 8cfe47710f5..b0d7bbfc629 100644 --- a/src/devices/bus/ata/atapihle.h +++ b/src/devices/bus/ata/atapihle.h @@ -51,8 +51,8 @@ class atapi_hle_device : public ata_hle_device_base, public virtual t10spc protected: atapi_hle_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 int sector_length() override { return ATAPI_BUFFER_LENGTH; } virtual void process_buffer() override; diff --git a/src/devices/bus/ata/cp2024.h b/src/devices/bus/ata/cp2024.h index 5b0182a5012..dc33d3648bf 100644 --- a/src/devices/bus/ata/cp2024.h +++ b/src/devices/bus/ata/cp2024.h @@ -16,9 +16,9 @@ class cp2024_device : public device_t, public device_ata_interface static constexpr feature_type unemulated_features() { return feature::DISK; } protected: - virtual void device_start() 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_add_mconfig(machine_config &config) override ATTR_COLD; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; virtual u16 read_dma() override; virtual u16 read_cs0(offs_t offset, u16 mem_mask = 0xffff) override; @@ -32,7 +32,7 @@ class cp2024_device : public device_t, public device_ata_interface virtual void write_pdiag(int state) override; private: - void mcu_map(address_map &map); + void mcu_map(address_map &map) ATTR_COLD; }; DECLARE_DEVICE_TYPE(CP2024, cp2024_device) diff --git a/src/devices/bus/ata/cr589.h b/src/devices/bus/ata/cr589.h index a68eab7c2be..91a98bd1c23 100644 --- a/src/devices/bus/ata/cr589.h +++ b/src/devices/bus/ata/cr589.h @@ -29,8 +29,8 @@ class matsushita_cr589_device : public atapi_cdrom_device, 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; // device_nvram_interface overrides virtual void nvram_default() override; diff --git a/src/devices/bus/ata/gdrom.h b/src/devices/bus/ata/gdrom.h index 45a4a8b52a0..412a27d2e4a 100644 --- a/src/devices/bus/ata/gdrom.h +++ b/src/devices/bus/ata/gdrom.h @@ -30,8 +30,8 @@ class gdrom_device : public atapi_cdrom_device virtual void signature() override; // 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 bool set_features() override; // TODO: how GDROM determines ready flag? // cfr. dc.xml [GDROM READY] for a list of SW that wants this on. diff --git a/src/devices/bus/ata/px320a.h b/src/devices/bus/ata/px320a.h index 553475ddafc..110bc1c0e6f 100644 --- a/src/devices/bus/ata/px320a.h +++ b/src/devices/bus/ata/px320a.h @@ -16,9 +16,9 @@ class px320a_device : public device_t, public device_ata_interface static constexpr feature_type unemulated_features() { return feature::DISK; } protected: - virtual void device_start() 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_add_mconfig(machine_config &config) override ATTR_COLD; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; virtual u16 read_dma() override; virtual u16 read_cs0(offs_t offset, u16 mem_mask = 0xffff) override; @@ -32,7 +32,7 @@ class px320a_device : public device_t, public device_ata_interface virtual void write_pdiag(int state) override; private: - void frcpu_map(address_map &map); + void frcpu_map(address_map &map) ATTR_COLD; required_device m_frcpu; }; diff --git a/src/devices/bus/ata/xm3301.h b/src/devices/bus/ata/xm3301.h index b730502b241..cd0610d5629 100644 --- a/src/devices/bus/ata/xm3301.h +++ b/src/devices/bus/ata/xm3301.h @@ -17,8 +17,8 @@ class toshiba_xm3301_device : public atapi_cdrom_device 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 identify_packet_device() override; private: diff --git a/src/devices/bus/ata/zip100.h b/src/devices/bus/ata/zip100.h index 8b90a62533f..ca60dca4123 100644 --- a/src/devices/bus/ata/zip100.h +++ b/src/devices/bus/ata/zip100.h @@ -16,9 +16,9 @@ class zip100_ide_device : public device_t, public device_ata_interface static constexpr feature_type unemulated_features() { return feature::DISK; } protected: - virtual void device_start() 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_add_mconfig(machine_config &config) override ATTR_COLD; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; virtual u16 read_dma() override; virtual u16 read_cs0(offs_t offset, u16 mem_mask = 0xffff) override; @@ -32,8 +32,8 @@ class zip100_ide_device : public device_t, public device_ata_interface virtual void write_pdiag(int state) override; private: - void mem_map(address_map &map); - void ext_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void ext_map(address_map &map) ATTR_COLD; }; DECLARE_DEVICE_TYPE(ZIP100_IDE, zip100_ide_device) diff --git a/src/devices/bus/bbc/1mhzbus/1mhzbus.h b/src/devices/bus/bbc/1mhzbus/1mhzbus.h index c1885535645..aa0fafda75c 100644 --- a/src/devices/bus/bbc/1mhzbus/1mhzbus.h +++ b/src/devices/bus/bbc/1mhzbus/1mhzbus.h @@ -117,7 +117,7 @@ class bbc_1mhzbus_slot_device : public device_t, public device_single_card_slot_ protected: // device_t overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; device_bbc_1mhzbus_interface *m_card; diff --git a/src/devices/bus/bbc/1mhzbus/24bbc.h b/src/devices/bus/bbc/1mhzbus/24bbc.h index 27dbf515225..4a1b4817bdf 100644 --- a/src/devices/bus/bbc/1mhzbus/24bbc.h +++ b/src/devices/bus/bbc/1mhzbus/24bbc.h @@ -24,10 +24,10 @@ class bbc_24bbc_device : public device_t, public device_bbc_1mhzbus_interface protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual const tiny_rom_entry* device_rom_region() const override; virtual uint8_t fred_r(offs_t offset) override; diff --git a/src/devices/bus/bbc/1mhzbus/2ndserial.h b/src/devices/bus/bbc/1mhzbus/2ndserial.h index c954098aebd..044f2ec074c 100644 --- a/src/devices/bus/bbc/1mhzbus/2ndserial.h +++ b/src/devices/bus/bbc/1mhzbus/2ndserial.h @@ -27,12 +27,12 @@ class bbc_2ndserial_device : public device_t, public device_bbc_1mhzbus_interfac protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual const tiny_rom_entry* device_rom_region() const override; - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; virtual uint8_t fred_r(offs_t offset) override; virtual void fred_w(offs_t offset, uint8_t data) override; diff --git a/src/devices/bus/bbc/1mhzbus/autoprom.h b/src/devices/bus/bbc/1mhzbus/autoprom.h index 358b5819f2b..3f3379cf431 100644 --- a/src/devices/bus/bbc/1mhzbus/autoprom.h +++ b/src/devices/bus/bbc/1mhzbus/autoprom.h @@ -27,13 +27,13 @@ class bbc_autoprom_device : 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; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual const tiny_rom_entry *device_rom_region() const override; - virtual ioport_constructor device_input_ports() 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; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; virtual uint8_t fred_r(offs_t offset) override; virtual void fred_w(offs_t offset, uint8_t data) override; diff --git a/src/devices/bus/bbc/1mhzbus/barrybox.cpp b/src/devices/bus/bbc/1mhzbus/barrybox.cpp index 1f9dc091c06..bd47e6060e0 100644 --- a/src/devices/bus/bbc/1mhzbus/barrybox.cpp +++ b/src/devices/bus/bbc/1mhzbus/barrybox.cpp @@ -31,10 +31,10 @@ class bbc_barrybox_device : public device_t, public device_bbc_1mhzbus_interface protected: // device_t overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual uint8_t jim_r(offs_t offset) override; virtual void jim_w(offs_t offset, uint8_t data) override; diff --git a/src/devices/bus/bbc/1mhzbus/beebopl.h b/src/devices/bus/bbc/1mhzbus/beebopl.h index 618bea6af41..c15face6561 100644 --- a/src/devices/bus/bbc/1mhzbus/beebopl.h +++ b/src/devices/bus/bbc/1mhzbus/beebopl.h @@ -32,7 +32,7 @@ class bbc_beebopl_device : virtual void device_start() override { } // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual uint8_t fred_r(offs_t offset) override; virtual void fred_w(offs_t offset, uint8_t data) override; diff --git a/src/devices/bus/bbc/1mhzbus/beebsid.h b/src/devices/bus/bbc/1mhzbus/beebsid.h index 107e875abde..adfa0d072e3 100644 --- a/src/devices/bus/bbc/1mhzbus/beebsid.h +++ b/src/devices/bus/bbc/1mhzbus/beebsid.h @@ -29,10 +29,10 @@ class bbc_beebsid_device : protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual uint8_t fred_r(offs_t offset) override; virtual void fred_w(offs_t offset, uint8_t data) override; diff --git a/src/devices/bus/bbc/1mhzbus/cc500.h b/src/devices/bus/bbc/1mhzbus/cc500.h index f99ceec100a..29c748818e0 100644 --- a/src/devices/bus/bbc/1mhzbus/cc500.h +++ b/src/devices/bus/bbc/1mhzbus/cc500.h @@ -31,10 +31,10 @@ class bbc_cc500_device : protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual const tiny_rom_entry* device_rom_region() const override; virtual uint8_t fred_r(offs_t offset) override; diff --git a/src/devices/bus/bbc/1mhzbus/cfa3000opt.h b/src/devices/bus/bbc/1mhzbus/cfa3000opt.h index 64913e95604..2acfcc87662 100644 --- a/src/devices/bus/bbc/1mhzbus/cfa3000opt.h +++ b/src/devices/bus/bbc/1mhzbus/cfa3000opt.h @@ -30,10 +30,10 @@ class cfa3000_opt_device : protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; virtual uint8_t fred_r(offs_t offset) override; diff --git a/src/devices/bus/bbc/1mhzbus/cisco.h b/src/devices/bus/bbc/1mhzbus/cisco.h index fdbe528db98..7bde215e020 100644 --- a/src/devices/bus/bbc/1mhzbus/cisco.h +++ b/src/devices/bus/bbc/1mhzbus/cisco.h @@ -29,12 +29,12 @@ class bbc_cisco_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void rtc_clock_updated(int year, int month, int day, int day_of_week, int hour, int minute, int second) override; // 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; virtual uint8_t fred_r(offs_t offset) override; virtual void fred_w(offs_t offset, uint8_t data) override; diff --git a/src/devices/bus/bbc/1mhzbus/datacentre.h b/src/devices/bus/bbc/1mhzbus/datacentre.h index df2136137af..74cc90b3c0d 100644 --- a/src/devices/bus/bbc/1mhzbus/datacentre.h +++ b/src/devices/bus/bbc/1mhzbus/datacentre.h @@ -34,12 +34,12 @@ class bbc_datacentre_device : protected: // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; - virtual const tiny_rom_entry *device_rom_region() const override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; virtual uint8_t fred_r(offs_t offset) override; virtual void fred_w(offs_t offset, uint8_t data) override; diff --git a/src/devices/bus/bbc/1mhzbus/emrmidi.h b/src/devices/bus/bbc/1mhzbus/emrmidi.h index 3eb006c8866..f19379dc026 100644 --- a/src/devices/bus/bbc/1mhzbus/emrmidi.h +++ b/src/devices/bus/bbc/1mhzbus/emrmidi.h @@ -31,10 +31,10 @@ class bbc_emrmidi_device : protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual uint8_t fred_r(offs_t offset) override; virtual void fred_w(offs_t offset, uint8_t data) override; diff --git a/src/devices/bus/bbc/1mhzbus/ide.h b/src/devices/bus/bbc/1mhzbus/ide.h index 49a5eddb4f7..f7cb2c15260 100644 --- a/src/devices/bus/bbc/1mhzbus/ide.h +++ b/src/devices/bus/bbc/1mhzbus/ide.h @@ -56,11 +56,11 @@ class bbc_beebide_device : protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides virtual void device_add_mconfig(machine_config& config) override; - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; virtual uint8_t fred_r(offs_t offset) override; virtual void fred_w(offs_t offset, uint8_t data) override; diff --git a/src/devices/bus/bbc/1mhzbus/ieee488.h b/src/devices/bus/bbc/1mhzbus/ieee488.h index 9b810b4bf8d..a96521810b1 100644 --- a/src/devices/bus/bbc/1mhzbus/ieee488.h +++ b/src/devices/bus/bbc/1mhzbus/ieee488.h @@ -36,11 +36,11 @@ class bbc_ieee488_device: protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() 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; virtual uint8_t fred_r(offs_t offset) override; virtual void fred_w(offs_t offset, uint8_t data) override; @@ -64,10 +64,10 @@ class bbc_b488_device : protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual uint8_t fred_r(offs_t offset) override; virtual void fred_w(offs_t offset, uint8_t data) override; @@ -88,11 +88,11 @@ class bbc_b488_device : // //protected: // // device-level overrides -// virtual void device_start() override; +// virtual void device_start() 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; // // virtual uint8_t fred_r(offs_t offset) override; // virtual void fred_w(offs_t offset, uint8_t data) override; diff --git a/src/devices/bus/bbc/1mhzbus/m2000.h b/src/devices/bus/bbc/1mhzbus/m2000.h index 71638d3029d..705bcf55fd8 100644 --- a/src/devices/bus/bbc/1mhzbus/m2000.h +++ b/src/devices/bus/bbc/1mhzbus/m2000.h @@ -33,10 +33,10 @@ class bbc_m2000_device : protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual uint8_t fred_r(offs_t offset) override; virtual void fred_w(offs_t offset, uint8_t data) override; diff --git a/src/devices/bus/bbc/1mhzbus/m5000.h b/src/devices/bus/bbc/1mhzbus/m5000.h index 116bc17cebe..02b99fd12e3 100644 --- a/src/devices/bus/bbc/1mhzbus/m5000.h +++ b/src/devices/bus/bbc/1mhzbus/m5000.h @@ -43,8 +43,8 @@ class htmusic_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; // sound stream update overrides virtual void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; @@ -84,10 +84,10 @@ class bbc_m500_device : public device_t, public device_bbc_1mhzbus_interface bbc_m500_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; void add_common_devices(machine_config &config); @@ -113,8 +113,8 @@ class bbc_m5000_device : public bbc_m500_device protected: // 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; }; @@ -128,7 +128,7 @@ class bbc_m3000_device : public bbc_m500_device protected: // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual void jim_w(offs_t offset, uint8_t data) override; }; @@ -144,7 +144,7 @@ class bbc_m87_device : public bbc_m500_device protected: // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; diff --git a/src/devices/bus/bbc/1mhzbus/multiform.h b/src/devices/bus/bbc/1mhzbus/multiform.h index 586ebe0d7d2..d13dc83a19e 100644 --- a/src/devices/bus/bbc/1mhzbus/multiform.h +++ b/src/devices/bus/bbc/1mhzbus/multiform.h @@ -36,12 +36,12 @@ class bbc_multiform_device : 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; // 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; virtual uint8_t fred_r(offs_t offset) override; virtual void fred_w(offs_t offset, uint8_t data) override; @@ -54,8 +54,8 @@ class bbc_multiform_device : required_device_array m_parasite_latch; required_memory_region m_osm; - void z80_mem(address_map &map); - void z80_io(address_map &map); + void z80_mem(address_map &map) ATTR_COLD; + void z80_io(address_map &map) ATTR_COLD; std::unique_ptr m_ram; bool m_rom_enabled; diff --git a/src/devices/bus/bbc/1mhzbus/opus3.h b/src/devices/bus/bbc/1mhzbus/opus3.h index 2d14e041b0a..fa6d56031d8 100644 --- a/src/devices/bus/bbc/1mhzbus/opus3.h +++ b/src/devices/bus/bbc/1mhzbus/opus3.h @@ -31,11 +31,11 @@ class bbc_opus3_device: bbc_opus3_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // device-level overrides - virtual void device_start() override; + virtual void device_start() 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; virtual uint8_t fred_r(offs_t offset) override; virtual void fred_w(offs_t offset, uint8_t data) override; @@ -61,10 +61,10 @@ class bbc_opusa_device : public bbc_opus3_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; }; diff --git a/src/devices/bus/bbc/1mhzbus/pdram.h b/src/devices/bus/bbc/1mhzbus/pdram.h index 23f5b2884ca..2ba46af358b 100644 --- a/src/devices/bus/bbc/1mhzbus/pdram.h +++ b/src/devices/bus/bbc/1mhzbus/pdram.h @@ -26,7 +26,7 @@ class bbc_pdram_device: protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides virtual const tiny_rom_entry* device_rom_region() const override; diff --git a/src/devices/bus/bbc/1mhzbus/pms64k.h b/src/devices/bus/bbc/1mhzbus/pms64k.h index 84975b3dd2a..95db1a8fc5a 100644 --- a/src/devices/bus/bbc/1mhzbus/pms64k.h +++ b/src/devices/bus/bbc/1mhzbus/pms64k.h @@ -25,11 +25,11 @@ class bbc_pms64k_device : public device_t, public device_bbc_1mhzbus_interface protected: // device_t overrides - virtual void device_start() override; + virtual void device_start() 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; virtual void fred_w(offs_t offset, uint8_t data) override; virtual uint8_t jim_r(offs_t offset) override; diff --git a/src/devices/bus/bbc/1mhzbus/ramdisc.h b/src/devices/bus/bbc/1mhzbus/ramdisc.h index a4955921bcc..4a85921b78d 100644 --- a/src/devices/bus/bbc/1mhzbus/ramdisc.h +++ b/src/devices/bus/bbc/1mhzbus/ramdisc.h @@ -29,12 +29,12 @@ class bbc_ramdisc_device: protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; - virtual const tiny_rom_entry *device_rom_region() const override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; virtual uint8_t fred_r(offs_t offset) override; virtual void fred_w(offs_t offset, uint8_t data) override; diff --git a/src/devices/bus/bbc/1mhzbus/sasi.h b/src/devices/bus/bbc/1mhzbus/sasi.h index f7bbb985e27..5f73cfca98b 100644 --- a/src/devices/bus/bbc/1mhzbus/sasi.h +++ b/src/devices/bus/bbc/1mhzbus/sasi.h @@ -33,8 +33,8 @@ class bbc_sasi_device: bbc_sasi_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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; // optional information overrides virtual void device_add_mconfig(machine_config& config) override; @@ -59,7 +59,7 @@ class bbc_torchhd_device : public bbc_sasi_device protected: // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; diff --git a/src/devices/bus/bbc/1mhzbus/scsi.h b/src/devices/bus/bbc/1mhzbus/scsi.h index 77cb6a44aae..c3fb0d9e361 100644 --- a/src/devices/bus/bbc/1mhzbus/scsi.h +++ b/src/devices/bus/bbc/1mhzbus/scsi.h @@ -33,7 +33,7 @@ class bbc_scsi_device: bbc_scsi_device(const machine_config& mconfig, device_type type, const char* tag, device_t* owner, uint32_t clock); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides virtual void device_add_mconfig(machine_config& config) override; @@ -61,7 +61,7 @@ class bbc_awhd_device : public bbc_scsi_device protected: // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual uint8_t fred_r(offs_t offset) override; virtual void fred_w(offs_t offset, uint8_t data) override; diff --git a/src/devices/bus/bbc/1mhzbus/sprite.h b/src/devices/bus/bbc/1mhzbus/sprite.h index 02b0cff5dc2..914311841cd 100644 --- a/src/devices/bus/bbc/1mhzbus/sprite.h +++ b/src/devices/bus/bbc/1mhzbus/sprite.h @@ -28,11 +28,11 @@ class bbc_sprite_device: 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; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual uint8_t fred_r(offs_t offset) override; virtual void fred_w(offs_t offset, uint8_t data) override; diff --git a/src/devices/bus/bbc/analogue/analogue.h b/src/devices/bus/bbc/analogue/analogue.h index 22218008481..12ad0a4c608 100644 --- a/src/devices/bus/bbc/analogue/analogue.h +++ b/src/devices/bus/bbc/analogue/analogue.h @@ -68,7 +68,7 @@ class bbc_analogue_slot_device : public device_t, public device_single_card_slot protected: // device_t overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; device_bbc_analogue_interface *m_card; diff --git a/src/devices/bus/bbc/analogue/bitstik.h b/src/devices/bus/bbc/analogue/bitstik.h index 494be5dec69..c5986e39dd1 100644 --- a/src/devices/bus/bbc/analogue/bitstik.h +++ b/src/devices/bus/bbc/analogue/bitstik.h @@ -34,10 +34,10 @@ class bbc_bitstik_device : bbc_bitstik_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; virtual uint8_t ch_r(int channel) override; virtual uint8_t pb_r() override; @@ -53,7 +53,7 @@ class bbc_bitstik1_device : public bbc_bitstik_device bbc_bitstik1_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 bbc_bitstik2_device : public bbc_bitstik_device @@ -62,7 +62,7 @@ class bbc_bitstik2_device : public bbc_bitstik_device bbc_bitstik2_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 diff --git a/src/devices/bus/bbc/analogue/cfa3000a.h b/src/devices/bus/bbc/analogue/cfa3000a.h index 8948ca586be..3e2ddb43ccc 100644 --- a/src/devices/bus/bbc/analogue/cfa3000a.h +++ b/src/devices/bus/bbc/analogue/cfa3000a.h @@ -30,11 +30,11 @@ class cfa3000_anlg_device : 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; // optional information overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; virtual uint8_t ch_r(int channel) override; virtual uint8_t pb_r() override; diff --git a/src/devices/bus/bbc/analogue/joystick.h b/src/devices/bus/bbc/analogue/joystick.h index 887e87c74d7..5f4572a7cf6 100644 --- a/src/devices/bus/bbc/analogue/joystick.h +++ b/src/devices/bus/bbc/analogue/joystick.h @@ -29,8 +29,8 @@ class bbc_joystick_device : bbc_joystick_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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 uint8_t ch_r(int channel) override; virtual uint8_t pb_r() override; @@ -45,7 +45,7 @@ class bbc_acornjoy_device : public bbc_joystick_device public: bbc_acornjoy_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; }; class bbc_voltmace3b_device : public bbc_joystick_device @@ -53,7 +53,7 @@ class bbc_voltmace3b_device : public bbc_joystick_device public: bbc_voltmace3b_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; }; diff --git a/src/devices/bus/bbc/analogue/quinkey.h b/src/devices/bus/bbc/analogue/quinkey.h index a0a62ca5ef8..f88df64ec2c 100644 --- a/src/devices/bus/bbc/analogue/quinkey.h +++ b/src/devices/bus/bbc/analogue/quinkey.h @@ -30,10 +30,10 @@ class bbc_quinkey_intf_device : public device_t, public device_bbc_analogue_inte protected: // device_t overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual uint8_t ch_r(int channel) override; @@ -67,7 +67,7 @@ class bbc_quinkey_slot_device : public device_t, public device_single_card_slot_ protected: // device_t overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; device_bbc_quinkey_interface *m_card; }; @@ -97,10 +97,10 @@ class bbc_quinkey_device : public device_t, public device_bbc_quinkey_interface protected: // device_t overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; virtual uint8_t read() override; diff --git a/src/devices/bus/bbc/cart/click.h b/src/devices/bus/bbc/cart/click.h index 9f6691c4356..d2102d90543 100644 --- a/src/devices/bus/bbc/cart/click.h +++ b/src/devices/bus/bbc/cart/click.h @@ -32,9 +32,9 @@ class bbc_click_device : public device_t, public device_bbc_cart_interface protected: // device-level overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // bbc_cart_interface overrides virtual uint8_t read(offs_t offset, int infc, int infd, int romqa, int oe, int oe2) override; diff --git a/src/devices/bus/bbc/cart/mastersd.h b/src/devices/bus/bbc/cart/mastersd.h index 6ce6a2574d2..51fd09b03c7 100644 --- a/src/devices/bus/bbc/cart/mastersd.h +++ b/src/devices/bus/bbc/cart/mastersd.h @@ -29,11 +29,11 @@ class bbc_mastersd_device : public device_t, public device_bbc_cart_interface bbc_mastersd_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; // electron_cart_interface overrides virtual uint8_t read(offs_t offset, int infc, int infd, int romqa, int oe, int oe2) override; diff --git a/src/devices/bus/bbc/cart/mega256.h b/src/devices/bus/bbc/cart/mega256.h index b6f211b694a..394c86f3e9e 100644 --- a/src/devices/bus/bbc/cart/mega256.h +++ b/src/devices/bus/bbc/cart/mega256.h @@ -30,8 +30,8 @@ class bbc_mega256_device : public device_t, public device_bbc_cart_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; // bbc_cart_interface overrides virtual uint8_t read(offs_t offset, int infc, int infd, int romqa, int oe, int oe2) override; diff --git a/src/devices/bus/bbc/cart/mr8000.h b/src/devices/bus/bbc/cart/mr8000.h index ccf79e4508e..4d581423b48 100644 --- a/src/devices/bus/bbc/cart/mr8000.h +++ b/src/devices/bus/bbc/cart/mr8000.h @@ -28,9 +28,9 @@ class bbc_mr8000_device : public device_t, public device_bbc_cart_interface protected: // device-level overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // bbc_cart_interface overrides virtual uint8_t read(offs_t offset, int infc, int infd, int romqa, int oe, int oe2) override; diff --git a/src/devices/bus/bbc/cart/msc.h b/src/devices/bus/bbc/cart/msc.h index 4bde2113047..0f7cecb096e 100644 --- a/src/devices/bus/bbc/cart/msc.h +++ b/src/devices/bus/bbc/cart/msc.h @@ -30,9 +30,9 @@ class bbc_msc_device : public device_t, public device_bbc_cart_interface protected: // device-level overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // bbc_cart_interface overrides virtual uint8_t read(offs_t offset, int infc, int infd, int romqa, int oe, int oe2) override; diff --git a/src/devices/bus/bbc/exp/autocue.h b/src/devices/bus/bbc/exp/autocue.h index 0151e94e9bf..d406aa1b436 100644 --- a/src/devices/bus/bbc/exp/autocue.h +++ b/src/devices/bus/bbc/exp/autocue.h @@ -27,10 +27,10 @@ class bbc_autocue_device : protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual void fred_w(offs_t offset, uint8_t data) override; virtual uint8_t jim_r(offs_t offset) override; diff --git a/src/devices/bus/bbc/exp/exp.h b/src/devices/bus/bbc/exp/exp.h index 56c9d0b6838..7b1b3fec514 100644 --- a/src/devices/bus/bbc/exp/exp.h +++ b/src/devices/bus/bbc/exp/exp.h @@ -94,7 +94,7 @@ class bbc_exp_slot_device : public device_t, public device_single_card_slot_inte protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; device_bbc_exp_interface *m_card; diff --git a/src/devices/bus/bbc/exp/mertec.h b/src/devices/bus/bbc/exp/mertec.h index 33d71ab2ce9..9f3847996c6 100644 --- a/src/devices/bus/bbc/exp/mertec.h +++ b/src/devices/bus/bbc/exp/mertec.h @@ -34,11 +34,11 @@ class bbc_mertec_device : protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() 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; virtual uint8_t fred_r(offs_t offset) override; virtual void fred_w(offs_t offset, uint8_t data) override; diff --git a/src/devices/bus/bbc/fdc/acorn.h b/src/devices/bus/bbc/fdc/acorn.h index 6b4adea4fbf..4b7843da58d 100644 --- a/src/devices/bus/bbc/fdc/acorn.h +++ b/src/devices/bus/bbc/fdc/acorn.h @@ -33,11 +33,11 @@ class bbc_acorn8271_device : protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() 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; virtual uint8_t read(offs_t offset) override; virtual void write(offs_t offset, uint8_t data) override; @@ -60,11 +60,11 @@ class bbc_acorn1770_device : protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() 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; virtual uint8_t read(offs_t offset) override; virtual void write(offs_t offset, uint8_t data) override; diff --git a/src/devices/bus/bbc/fdc/ams.h b/src/devices/bus/bbc/fdc/ams.h index 8add01e2257..879e7bd6eff 100644 --- a/src/devices/bus/bbc/fdc/ams.h +++ b/src/devices/bus/bbc/fdc/ams.h @@ -31,11 +31,11 @@ class bbc_ams3_device : protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() 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; virtual uint8_t read(offs_t offset) override; virtual void write(offs_t offset, uint8_t data) override; diff --git a/src/devices/bus/bbc/fdc/cumana.h b/src/devices/bus/bbc/fdc/cumana.h index 06ad3ca4da0..de544beb448 100644 --- a/src/devices/bus/bbc/fdc/cumana.h +++ b/src/devices/bus/bbc/fdc/cumana.h @@ -35,7 +35,7 @@ class bbc_cumanafdc_device : bbc_cumanafdc_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual uint8_t read(offs_t offset) override; virtual void write(offs_t offset, uint8_t data) override; @@ -56,8 +56,8 @@ class bbc_cumana1_device : public bbc_cumanafdc_device bbc_cumana1_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; }; class bbc_cumana2_device : public bbc_cumanafdc_device @@ -66,8 +66,8 @@ class bbc_cumana2_device : public bbc_cumanafdc_device bbc_cumana2_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; }; diff --git a/src/devices/bus/bbc/fdc/cv1797.h b/src/devices/bus/bbc/fdc/cv1797.h index 40223fd14b6..65dffe1b214 100644 --- a/src/devices/bus/bbc/fdc/cv1797.h +++ b/src/devices/bus/bbc/fdc/cv1797.h @@ -29,11 +29,11 @@ class bbc_cv1797_device : protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() 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; virtual uint8_t read(offs_t offset) override; virtual void write(offs_t offset, uint8_t data) override; diff --git a/src/devices/bus/bbc/fdc/fdc.h b/src/devices/bus/bbc/fdc/fdc.h index 4ee6c6ec717..e8d20ebee94 100644 --- a/src/devices/bus/bbc/fdc/fdc.h +++ b/src/devices/bus/bbc/fdc/fdc.h @@ -53,7 +53,7 @@ class bbc_fdc_slot_device : public device_t, public device_single_card_slot_inte protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; device_bbc_fdc_interface *m_card; diff --git a/src/devices/bus/bbc/fdc/kenda.h b/src/devices/bus/bbc/fdc/kenda.h index bea1bd7c3c7..97570b7ba3c 100644 --- a/src/devices/bus/bbc/fdc/kenda.h +++ b/src/devices/bus/bbc/fdc/kenda.h @@ -27,11 +27,11 @@ class bbc_kenda_device : public device_t, public device_bbc_fdc_interface protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() 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; virtual uint8_t read(offs_t offset) override; virtual void write(offs_t offset, uint8_t data) override; diff --git a/src/devices/bus/bbc/fdc/opus.h b/src/devices/bus/bbc/fdc/opus.h index 675fc37f815..d099308b6cb 100644 --- a/src/devices/bus/bbc/fdc/opus.h +++ b/src/devices/bus/bbc/fdc/opus.h @@ -28,11 +28,11 @@ class bbc_opus8272_device : protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() 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; virtual uint8_t read(offs_t offset) override; virtual void write(offs_t offset, uint8_t data) override; @@ -57,7 +57,7 @@ class bbc_opusfdc_device : bbc_opusfdc_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual uint8_t read(offs_t offset) override; virtual void write(offs_t offset, uint8_t data) override; @@ -75,8 +75,8 @@ class bbc_opus2791_device : public bbc_opusfdc_device bbc_opus2791_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; }; class bbc_opus2793_device : public bbc_opusfdc_device @@ -85,8 +85,8 @@ class bbc_opus2793_device : public bbc_opusfdc_device bbc_opus2793_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; }; class bbc_opus1770_device : public bbc_opusfdc_device @@ -95,8 +95,8 @@ class bbc_opus1770_device : public bbc_opusfdc_device bbc_opus1770_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; }; // device type definition diff --git a/src/devices/bus/bbc/fdc/solidisk.h b/src/devices/bus/bbc/fdc/solidisk.h index 4e372ff758b..bf5a089a94d 100644 --- a/src/devices/bus/bbc/fdc/solidisk.h +++ b/src/devices/bus/bbc/fdc/solidisk.h @@ -51,7 +51,7 @@ class bbc_stl1770_1_device : public bbc_stlfdc_device bbc_stl1770_1_device(const machine_config& mconfig, device_type type, const char* tag, device_t* owner, uint32_t clock); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void device_add_mconfig(machine_config& config) override; virtual const tiny_rom_entry* device_rom_region() const override; @@ -70,7 +70,7 @@ class bbc_stl1770_2_device : public bbc_stlfdc_device bbc_stl1770_2_device(const machine_config& mconfig, device_type type, const char* tag, device_t* owner, uint32_t clock); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void device_add_mconfig(machine_config& config) override; virtual const tiny_rom_entry* device_rom_region() const override; @@ -88,13 +88,13 @@ class bbc_stldfdc_1_device : public bbc_stl1770_1_device 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; // optional information overrides virtual void device_add_mconfig(machine_config& config) override; virtual const tiny_rom_entry* device_rom_region() const override; - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; virtual uint8_t read(offs_t offset) override; virtual void write(offs_t offset, uint8_t data) override; diff --git a/src/devices/bus/bbc/fdc/udm.h b/src/devices/bus/bbc/fdc/udm.h index 51a360f3729..330d9eb736a 100644 --- a/src/devices/bus/bbc/fdc/udm.h +++ b/src/devices/bus/bbc/fdc/udm.h @@ -29,11 +29,11 @@ class bbc_udm_device : protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() 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; virtual uint8_t read(offs_t offset) override; virtual void write(offs_t offset, uint8_t data) override; diff --git a/src/devices/bus/bbc/fdc/watford.h b/src/devices/bus/bbc/fdc/watford.h index 9129260f494..e0b22879e37 100644 --- a/src/devices/bus/bbc/fdc/watford.h +++ b/src/devices/bus/bbc/fdc/watford.h @@ -38,10 +38,10 @@ class bbc_weddb2_device : public bbc_watfordfdc_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; - 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; virtual uint8_t read(offs_t offset) override; virtual void write(offs_t offset, uint8_t data) override; @@ -60,10 +60,10 @@ class bbc_weddb3_device : public bbc_watfordfdc_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; - 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; virtual uint8_t read(offs_t offset) override; virtual void write(offs_t offset, uint8_t data) override; diff --git a/src/devices/bus/bbc/internal/aries.h b/src/devices/bus/bbc/internal/aries.h index 9dc7383ff21..111cd5e6461 100644 --- a/src/devices/bus/bbc/internal/aries.h +++ b/src/devices/bus/bbc/internal/aries.h @@ -36,10 +36,10 @@ class bbc_ariesb12_device : bbc_ariesb12_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual bool overrides_rom() override { return true; } virtual void romsel_w(offs_t offset, uint8_t data) override { m_romsel = data & 0x0f; } @@ -60,11 +60,11 @@ class bbc_ariesb20_device : public bbc_ariesb12_device 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; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; virtual bool overrides_ram() override { return true; } virtual uint8_t ram_r(offs_t offset) override; @@ -86,11 +86,11 @@ class bbc_ariesb32_device : public bbc_ariesb12_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() 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; virtual bool overrides_ram() override { return true; } virtual uint8_t ram_r(offs_t offset) override; diff --git a/src/devices/bus/bbc/internal/atpl.h b/src/devices/bus/bbc/internal/atpl.h index fe10ebb3a76..2c26bdde184 100644 --- a/src/devices/bus/bbc/internal/atpl.h +++ b/src/devices/bus/bbc/internal/atpl.h @@ -31,11 +31,11 @@ class bbc_atplsw_device : protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; virtual bool overrides_rom() override { return true; } virtual void romsel_w(offs_t offset, uint8_t data) override { m_romsel = data & 0x0f; } @@ -60,10 +60,10 @@ class bbc_atplswp_device : protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual bool overrides_rom() override { return true; } virtual void romsel_w(offs_t offset, uint8_t data) override { m_romsel = data & 0x0f; } diff --git a/src/devices/bus/bbc/internal/cumana68k.h b/src/devices/bus/bbc/internal/cumana68k.h index 04e76ab20cc..4df7957f937 100644 --- a/src/devices/bus/bbc/internal/cumana68k.h +++ b/src/devices/bus/bbc/internal/cumana68k.h @@ -42,12 +42,12 @@ class bbc_cumana68k_device : protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void device_reset_after_children() override; // 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 irq6502_w(int state) override; @@ -64,7 +64,7 @@ class bbc_cumana68k_device : required_device_array m_floppy; required_device m_sasi; - void cumana68k_mem(address_map &map); + void cumana68k_mem(address_map &map) ATTR_COLD; void fsel_w(offs_t offset, uint8_t data); diff --git a/src/devices/bus/bbc/internal/integrab.h b/src/devices/bus/bbc/internal/integrab.h index 679bdc44526..51fba182a38 100644 --- a/src/devices/bus/bbc/internal/integrab.h +++ b/src/devices/bus/bbc/internal/integrab.h @@ -29,13 +29,13 @@ class bbc_integrab_device : 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; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual const tiny_rom_entry *device_rom_region() const override; - virtual ioport_constructor device_input_ports() 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; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; virtual bool overrides_rom() override { return true; } virtual bool overrides_ram() override { return true; } diff --git a/src/devices/bus/bbc/internal/internal.h b/src/devices/bus/bbc/internal/internal.h index 7b3210a556e..ca6f6b37e64 100644 --- a/src/devices/bus/bbc/internal/internal.h +++ b/src/devices/bus/bbc/internal/internal.h @@ -95,7 +95,7 @@ class bbc_internal_slot_device : public device_t, public device_single_card_slot protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; devcb_write_line m_irq_handler; devcb_write_line m_nmi_handler; diff --git a/src/devices/bus/bbc/internal/memex.h b/src/devices/bus/bbc/internal/memex.h index 1e4f07bcb16..bd471140b0d 100644 --- a/src/devices/bus/bbc/internal/memex.h +++ b/src/devices/bus/bbc/internal/memex.h @@ -25,10 +25,10 @@ class bbc_memexb20_device : public device_t, public device_bbc_internal_interfac protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; virtual bool overrides_ram() override { return true; } virtual uint8_t ram_r(offs_t offset) override; diff --git a/src/devices/bus/bbc/internal/morleyaa.h b/src/devices/bus/bbc/internal/morleyaa.h index f2debcff982..a0caba641c5 100644 --- a/src/devices/bus/bbc/internal/morleyaa.h +++ b/src/devices/bus/bbc/internal/morleyaa.h @@ -27,11 +27,11 @@ class bbc_morleyaa_device : protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() 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; virtual bool overrides_rom() override { return true; } virtual void romsel_w(offs_t offset, uint8_t data) override { m_romsel = data & 0x0f; } diff --git a/src/devices/bus/bbc/internal/overlay.h b/src/devices/bus/bbc/internal/overlay.h index 3800687f5ac..1c11fe9cd18 100644 --- a/src/devices/bus/bbc/internal/overlay.h +++ b/src/devices/bus/bbc/internal/overlay.h @@ -29,11 +29,11 @@ class bbc_overlay_device : protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; virtual bool overrides_rom() override { return true; } virtual bool overrides_mos() override { return true; } diff --git a/src/devices/bus/bbc/internal/peartree.h b/src/devices/bus/bbc/internal/peartree.h index 9f9ed683396..e3bb2fa95c2 100644 --- a/src/devices/bus/bbc/internal/peartree.h +++ b/src/devices/bus/bbc/internal/peartree.h @@ -31,10 +31,10 @@ class bbc_mr3000_device : bbc_mr3000_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; optional_device_array m_rom; @@ -55,8 +55,8 @@ class bbc_mr4200_device : public bbc_mr3000_device protected: // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; required_ioport m_wp; @@ -76,11 +76,11 @@ class bbc_mr4300_device : bbc_mr4300_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; optional_device_array m_rom; required_ioport m_wp; @@ -102,7 +102,7 @@ class bbc_mr4800_device : public bbc_mr4300_device protected: // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; diff --git a/src/devices/bus/bbc/internal/ramamp.h b/src/devices/bus/bbc/internal/ramamp.h index d8f9b62408b..6adc421c389 100644 --- a/src/devices/bus/bbc/internal/ramamp.h +++ b/src/devices/bus/bbc/internal/ramamp.h @@ -29,11 +29,11 @@ class bbc_ramamp_device : protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; virtual bool overrides_rom() override { return true; } virtual void romsel_w(offs_t offset, uint8_t data) override { m_romsel = data & 0x0f; } diff --git a/src/devices/bus/bbc/internal/raven20.h b/src/devices/bus/bbc/internal/raven20.h index 0e04137afa6..463d5aa5941 100644 --- a/src/devices/bus/bbc/internal/raven20.h +++ b/src/devices/bus/bbc/internal/raven20.h @@ -27,10 +27,10 @@ class bbc_raven20_device : protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; virtual bool overrides_ram() override { return true; } virtual uint8_t ram_r(offs_t offset) override; diff --git a/src/devices/bus/bbc/internal/romex.h b/src/devices/bus/bbc/internal/romex.h index b9542937ebf..7d7bcc6d58f 100644 --- a/src/devices/bus/bbc/internal/romex.h +++ b/src/devices/bus/bbc/internal/romex.h @@ -29,10 +29,10 @@ class bbc_romex13_device : protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual bool overrides_rom() override { return true; } virtual void romsel_w(offs_t offset, uint8_t data) override { m_romsel = data & 0x0f; } diff --git a/src/devices/bus/bbc/internal/stl2m128.h b/src/devices/bus/bbc/internal/stl2m128.h index 2c5f327ab19..48934a83c88 100644 --- a/src/devices/bus/bbc/internal/stl2m128.h +++ b/src/devices/bus/bbc/internal/stl2m128.h @@ -27,12 +27,12 @@ class bbc_stl2m128_device : protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; - virtual const tiny_rom_entry *device_rom_region() const override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; virtual bool overrides_rom() override { return true; } virtual bool overrides_ram() override { return true; } diff --git a/src/devices/bus/bbc/internal/stl4m32.h b/src/devices/bus/bbc/internal/stl4m32.h index ac939d6d4ff..e919dbf35f3 100644 --- a/src/devices/bus/bbc/internal/stl4m32.h +++ b/src/devices/bus/bbc/internal/stl4m32.h @@ -31,13 +31,13 @@ class bbc_stl4m32_device : 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; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; - virtual const tiny_rom_entry *device_rom_region() const override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; virtual bool overrides_rom() override { return true; } virtual bool overrides_ram() override { return true; } diff --git a/src/devices/bus/bbc/internal/stlswr.h b/src/devices/bus/bbc/internal/stlswr.h index db7e263ce28..d69b4f04f93 100644 --- a/src/devices/bus/bbc/internal/stlswr.h +++ b/src/devices/bus/bbc/internal/stlswr.h @@ -31,10 +31,10 @@ class bbc_stlswr_device : bbc_stlswr_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; virtual bool overrides_rom() override { return true; } virtual void romsel_w(offs_t offset, uint8_t data) override { m_romsel = data & 0x0f; } @@ -57,7 +57,7 @@ class bbc_stlswr16_device : public bbc_stlswr_device protected: // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; @@ -69,7 +69,7 @@ class bbc_stlswr32_device : public bbc_stlswr_device protected: // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; @@ -81,7 +81,7 @@ class bbc_stlswr64_device : public bbc_stlswr_device protected: // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; @@ -93,7 +93,7 @@ class bbc_stlswr128_device : public bbc_stlswr_device protected: // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; diff --git a/src/devices/bus/bbc/internal/we32kram.h b/src/devices/bus/bbc/internal/we32kram.h index aa10005292b..8dc28f1f37e 100644 --- a/src/devices/bus/bbc/internal/we32kram.h +++ b/src/devices/bus/bbc/internal/we32kram.h @@ -29,11 +29,11 @@ class bbc_we32kram_device : 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; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; virtual bool overrides_ram() override { return true; } virtual uint8_t ram_r(offs_t offset) override; diff --git a/src/devices/bus/bbc/internal/werom.h b/src/devices/bus/bbc/internal/werom.h index 4e95ba120d8..9ce9ac06a45 100644 --- a/src/devices/bus/bbc/internal/werom.h +++ b/src/devices/bus/bbc/internal/werom.h @@ -49,11 +49,11 @@ class bbc_we12rom_device : public bbc_werom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; virtual uint8_t paged_r(offs_t offset) override; virtual void paged_w(offs_t offset, uint8_t data) override; @@ -71,10 +71,10 @@ class bbc_we13rom_device : public bbc_werom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual uint8_t paged_r(offs_t offset) override; virtual void paged_w(offs_t offset, uint8_t data) override; diff --git a/src/devices/bus/bbc/internal/weromram.h b/src/devices/bus/bbc/internal/weromram.h index b85c9d031ab..4cd58cf4382 100644 --- a/src/devices/bus/bbc/internal/weromram.h +++ b/src/devices/bus/bbc/internal/weromram.h @@ -29,10 +29,10 @@ class bbc_weromram_device : protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual bool overrides_rom() override { return true; } virtual void romsel_w(offs_t offset, uint8_t data) override { m_romsel = data & 0x0f; } diff --git a/src/devices/bus/bbc/joyport/joyport.h b/src/devices/bus/bbc/joyport/joyport.h index 1463d38eab9..8e23e4b8a9a 100644 --- a/src/devices/bus/bbc/joyport/joyport.h +++ b/src/devices/bus/bbc/joyport/joyport.h @@ -73,7 +73,7 @@ class bbc_joyport_slot_device : public device_t, public device_single_card_slot_ protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; device_bbc_joyport_interface *m_device; diff --git a/src/devices/bus/bbc/joyport/joystick.h b/src/devices/bus/bbc/joyport/joystick.h index b30ef3ae51c..2cfc3e3c2c2 100644 --- a/src/devices/bus/bbc/joyport/joystick.h +++ b/src/devices/bus/bbc/joyport/joystick.h @@ -29,11 +29,11 @@ class bbcmc_joystick_device : bbcmc_joystick_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // optional information overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual uint8_t pb_r() override; diff --git a/src/devices/bus/bbc/joyport/mouse.h b/src/devices/bus/bbc/joyport/mouse.h index 0e2c6947104..dc0e68627dc 100644 --- a/src/devices/bus/bbc/joyport/mouse.h +++ b/src/devices/bus/bbc/joyport/mouse.h @@ -29,11 +29,11 @@ class bbcmc_mouse_device : 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; // optional information overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; virtual uint8_t pb_r() override; diff --git a/src/devices/bus/bbc/modem/meup.h b/src/devices/bus/bbc/modem/meup.h index 95d0a536c50..b102b55ebc9 100644 --- a/src/devices/bus/bbc/modem/meup.h +++ b/src/devices/bus/bbc/modem/meup.h @@ -26,10 +26,10 @@ class bbc_meup_device: public device_t, public device_bbc_modem_interface protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual uint8_t read(offs_t offset) override; virtual void write(offs_t offset, uint8_t data) override; diff --git a/src/devices/bus/bbc/modem/modem.h b/src/devices/bus/bbc/modem/modem.h index 702981f4ddb..aaff1b611ae 100644 --- a/src/devices/bus/bbc/modem/modem.h +++ b/src/devices/bus/bbc/modem/modem.h @@ -72,7 +72,7 @@ class bbc_modem_slot_device : public device_t, public device_single_card_slot_in protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; device_bbc_modem_interface *m_card; diff --git a/src/devices/bus/bbc/modem/scsiaiv.h b/src/devices/bus/bbc/modem/scsiaiv.h index 5c194c655b4..f4a59bf4bd8 100644 --- a/src/devices/bus/bbc/modem/scsiaiv.h +++ b/src/devices/bus/bbc/modem/scsiaiv.h @@ -33,10 +33,10 @@ class bbc_scsiaiv_device: bbc_scsiaiv_device(const machine_config &mconfig, device_type type, const char* tag, device_t* owner, uint32_t clock); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual uint8_t read(offs_t offset) override; virtual void write(offs_t offset, uint8_t data) override; @@ -59,7 +59,7 @@ class bbc_scsiaiv_device: // //protected: // // optional information overrides -// virtual void device_add_mconfig(machine_config &config) override; +// virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; //}; diff --git a/src/devices/bus/bbc/rom/datagem.h b/src/devices/bus/bbc/rom/datagem.h index 0d78f754e44..ba12df0ff3f 100644 --- a/src/devices/bus/bbc/rom/datagem.h +++ b/src/devices/bus/bbc/rom/datagem.h @@ -29,7 +29,7 @@ class bbc_datagem_device : public device_t, protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_bbc_rom_interface overrides virtual uint32_t get_rom_size() override { return 0x4000; } diff --git a/src/devices/bus/bbc/rom/dfs.h b/src/devices/bus/bbc/rom/dfs.h index 13d6d94d079..59ebb531423 100644 --- a/src/devices/bus/bbc/rom/dfs.h +++ b/src/devices/bus/bbc/rom/dfs.h @@ -27,7 +27,7 @@ class bbc_dfse00_device : public device_t, public device_bbc_rom_interface protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_bbc_rom_interface overrides virtual uint8_t read(offs_t offset) override; diff --git a/src/devices/bus/bbc/rom/genie.h b/src/devices/bus/bbc/rom/genie.h index 82813b2b166..8dec5ce6f53 100644 --- a/src/devices/bus/bbc/rom/genie.h +++ b/src/devices/bus/bbc/rom/genie.h @@ -29,7 +29,7 @@ class bbc_pmsgenie_device : public device_t, protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_bbc_rom_interface overrides virtual uint8_t read(offs_t offset) override; diff --git a/src/devices/bus/bbc/rom/nvram.h b/src/devices/bus/bbc/rom/nvram.h index d10025c6acd..25f7c58acd2 100644 --- a/src/devices/bus/bbc/rom/nvram.h +++ b/src/devices/bus/bbc/rom/nvram.h @@ -28,7 +28,7 @@ class bbc_nvram_device : public device_t, protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_bbc_rom_interface overrides virtual uint8_t read(offs_t offset) override; diff --git a/src/devices/bus/bbc/rom/pal.h b/src/devices/bus/bbc/rom/pal.h index 23ccd94741f..faf14e73e54 100644 --- a/src/devices/bus/bbc/rom/pal.h +++ b/src/devices/bus/bbc/rom/pal.h @@ -28,7 +28,7 @@ class bbc_pal_device : public device_t, bbc_pal_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_bbc_rom_interface overrides virtual uint32_t get_rom_size() override { return 0x4000; } diff --git a/src/devices/bus/bbc/rom/ram.h b/src/devices/bus/bbc/rom/ram.h index 85267147a35..39a3e49a817 100644 --- a/src/devices/bus/bbc/rom/ram.h +++ b/src/devices/bus/bbc/rom/ram.h @@ -28,7 +28,7 @@ class bbc_ram_device : public device_t, protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_bbc_rom_interface overrides virtual uint8_t read(offs_t offset) override; diff --git a/src/devices/bus/bbc/rom/rom.h b/src/devices/bus/bbc/rom/rom.h index 282e5471781..0d1a7159278 100644 --- a/src/devices/bus/bbc/rom/rom.h +++ b/src/devices/bus/bbc/rom/rom.h @@ -28,7 +28,7 @@ class bbc_rom_device : public device_t, protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_bbc_rom_interface overrides virtual uint8_t read(offs_t offset) override; diff --git a/src/devices/bus/bbc/rom/rtc.h b/src/devices/bus/bbc/rom/rtc.h index d37b2174b9b..7849e69545d 100644 --- a/src/devices/bus/bbc/rom/rtc.h +++ b/src/devices/bus/bbc/rom/rtc.h @@ -32,9 +32,9 @@ class bbc_stlrtc_device : public device_t, protected: // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_bbc_rom_interface overrides virtual uint8_t read(offs_t offset) override; @@ -54,9 +54,9 @@ class bbc_pmsrtc_device : public device_t, protected: // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_bbc_rom_interface overrides virtual uint8_t read(offs_t offset) override; diff --git a/src/devices/bus/bbc/rom/slot.h b/src/devices/bus/bbc/rom/slot.h index c88cabd3c1a..c36eb73fb28 100644 --- a/src/devices/bus/bbc/rom/slot.h +++ b/src/devices/bus/bbc/rom/slot.h @@ -56,7 +56,7 @@ class bbc_romslot_device : public device_t, bbc_romslot_device(const machine_config &mconfig, device_type type, char const *tag, device_t *owner, uint32_t clock); // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; uint32_t m_slot_size; diff --git a/src/devices/bus/bbc/tube/tube.h b/src/devices/bus/bbc/tube/tube.h index be2176917eb..49f5025df4b 100644 --- a/src/devices/bus/bbc/tube/tube.h +++ b/src/devices/bus/bbc/tube/tube.h @@ -79,7 +79,7 @@ class bbc_tube_slot_device : public device_t, public device_single_card_slot_int protected: // device_t overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; device_bbc_tube_interface *m_card; diff --git a/src/devices/bus/bbc/tube/tube_32016.h b/src/devices/bus/bbc/tube/tube_32016.h index 3feea1970de..25dc86370b9 100644 --- a/src/devices/bus/bbc/tube/tube_32016.h +++ b/src/devices/bus/bbc/tube/tube_32016.h @@ -40,13 +40,13 @@ class bbc_tube_32016_device : bbc_tube_32016_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual const tiny_rom_entry *device_rom_region() const override; - virtual ioport_constructor device_input_ports() 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; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; virtual uint8_t host_r(offs_t offset) override; virtual void host_w(offs_t offset, uint8_t data) override; @@ -59,7 +59,7 @@ class bbc_tube_32016_device : memory_passthrough_handler m_rom_shadow_tap; - void tube_32016_mem(address_map &map); + void tube_32016_mem(address_map &map) ATTR_COLD; void prst_w(int state); }; @@ -72,8 +72,8 @@ class bbc_tube_16032_device : public bbc_tube_32016_device protected: // 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; }; @@ -84,8 +84,8 @@ class bbc_tube_32016l_device : public bbc_tube_32016_device protected: // 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; }; diff --git a/src/devices/bus/bbc/tube/tube_6502.h b/src/devices/bus/bbc/tube/tube_6502.h index f2b12a5c3f0..6d90dc17642 100644 --- a/src/devices/bus/bbc/tube/tube_6502.h +++ b/src/devices/bus/bbc/tube/tube_6502.h @@ -39,14 +39,14 @@ class bbc_tube_6502_device bbc_tube_6502_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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; // 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 tube_6502_mem(address_map &map); + void tube_6502_mem(address_map &map) ATTR_COLD; virtual uint8_t host_r(offs_t offset) override; virtual void host_w(offs_t offset, uint8_t data) override; @@ -71,11 +71,11 @@ class bbc_tube_6502p_device : public bbc_tube_6502_device protected: // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual const tiny_rom_entry* device_rom_region() const override; private: - void tube_6502p_mem(address_map& map); + void tube_6502p_mem(address_map &map) ATTR_COLD; }; @@ -86,14 +86,14 @@ class bbc_tube_6502e_device : public bbc_tube_6502_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() 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; private: - void tube_6502e_mem(address_map &map); + void tube_6502e_mem(address_map &map) ATTR_COLD; uint8_t ram_r(offs_t offset); void ram_w(offs_t offset, uint8_t data); @@ -111,8 +111,8 @@ class bbc_tube_65c102_device : public bbc_tube_6502_device protected: // 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; }; diff --git a/src/devices/bus/bbc/tube/tube_80186.h b/src/devices/bus/bbc/tube/tube_80186.h index a9c2f446fd8..d8d77c953cd 100644 --- a/src/devices/bus/bbc/tube/tube_80186.h +++ b/src/devices/bus/bbc/tube/tube_80186.h @@ -35,12 +35,12 @@ class bbc_tube_80186_device : bbc_tube_80186_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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; // 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; virtual uint8_t host_r(offs_t offset) override; virtual void host_w(offs_t offset, uint8_t data) override; @@ -50,8 +50,8 @@ class bbc_tube_80186_device : required_device m_ram; required_memory_region m_bootstrap; - void tube_80186_io(address_map &map); - void tube_80186_mem(address_map &map); + void tube_80186_io(address_map &map) ATTR_COLD; + void tube_80186_mem(address_map &map) ATTR_COLD; void prst_w(int state); }; @@ -64,11 +64,11 @@ class bbc_tube_pcplus_device : public bbc_tube_80186_device protected: // device-level overrides - virtual void device_reset() override; + 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; }; diff --git a/src/devices/bus/bbc/tube/tube_80286.h b/src/devices/bus/bbc/tube/tube_80286.h index 0cadfb708e1..3f89e053a04 100644 --- a/src/devices/bus/bbc/tube/tube_80286.h +++ b/src/devices/bus/bbc/tube/tube_80286.h @@ -31,12 +31,12 @@ class bbc_tube_80286_device : 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; // 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; virtual uint8_t host_r(offs_t offset) override; virtual void host_w(offs_t offset, uint8_t data) override; @@ -52,8 +52,8 @@ class bbc_tube_80286_device : uint8_t m_irq_latch; uint8_t disable_boot_rom(); - void tube_80286_io(address_map &map); - void tube_80286_mem(address_map &map); + void tube_80286_io(address_map &map) ATTR_COLD; + void tube_80286_mem(address_map &map) ATTR_COLD; void prst_w(int state); }; diff --git a/src/devices/bus/bbc/tube/tube_a500.cpp b/src/devices/bus/bbc/tube/tube_a500.cpp index a0ff2f1abbc..3c3e7a583e2 100644 --- a/src/devices/bus/bbc/tube/tube_a500.cpp +++ b/src/devices/bus/bbc/tube/tube_a500.cpp @@ -41,8 +41,8 @@ class bbc_tube_a500_device : public device_t, public device_bbc_tube_interface virtual void device_start() override { } // 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; virtual uint8_t host_r(offs_t offset) override { return m_ula->host_r(offset); } virtual void host_w(offs_t offset, uint8_t data) override { m_ula->host_w(offset, data); } @@ -56,8 +56,8 @@ class bbc_tube_a500_device : public device_t, public device_bbc_tube_interface required_device m_fiqs; private: - void arm_mem(address_map &map); - void a500_map(address_map &map); + void arm_mem(address_map &map) ATTR_COLD; + void a500_map(address_map &map) ATTR_COLD; void prst_w(int state) { m_maincpu->set_input_line(INPUT_LINE_RESET, state); } }; @@ -72,11 +72,11 @@ class bbc_tube_a500d_device : public bbc_tube_a500_device protected: // 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; private: - void a500d_map(address_map &map); + void a500d_map(address_map &map) ATTR_COLD; }; diff --git a/src/devices/bus/bbc/tube/tube_arm.h b/src/devices/bus/bbc/tube/tube_arm.h index f2af17b0f54..4d6aead2624 100644 --- a/src/devices/bus/bbc/tube/tube_arm.h +++ b/src/devices/bus/bbc/tube/tube_arm.h @@ -31,12 +31,12 @@ class bbc_tube_arm_device : 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; // 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; virtual uint8_t host_r(offs_t offset) override; virtual void host_w(offs_t offset, uint8_t data) override; @@ -49,7 +49,7 @@ class bbc_tube_arm_device : memory_passthrough_handler m_rom_shadow_tap; - void tube_arm_mem(address_map &map); + void tube_arm_mem(address_map &map) ATTR_COLD; void prst_w(int state); }; diff --git a/src/devices/bus/bbc/tube/tube_arm7.h b/src/devices/bus/bbc/tube/tube_arm7.h index e908ac16a67..6c7b94a7a32 100644 --- a/src/devices/bus/bbc/tube/tube_arm7.h +++ b/src/devices/bus/bbc/tube/tube_arm7.h @@ -47,12 +47,12 @@ class bbc_tube_arm7_device : 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; // 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; virtual uint8_t host_r(offs_t offset) override; virtual void host_w(offs_t offset, uint8_t data) override; @@ -64,7 +64,7 @@ class bbc_tube_arm7_device : required_device m_ram; memory_view m_bank0_view; - void arm7_map(address_map& map); + void arm7_map(address_map &map) ATTR_COLD; void prst_w(int state); diff --git a/src/devices/bus/bbc/tube/tube_casper.h b/src/devices/bus/bbc/tube/tube_casper.h index 5f4187c80a7..41c60b776db 100644 --- a/src/devices/bus/bbc/tube/tube_casper.h +++ b/src/devices/bus/bbc/tube/tube_casper.h @@ -30,11 +30,11 @@ class bbc_tube_casper_device : protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() 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; virtual uint8_t host_r(offs_t offset) override; virtual void host_w(offs_t offset, uint8_t data) override; @@ -44,7 +44,7 @@ class bbc_tube_casper_device : required_device_array m_via; required_memory_region m_casper_rom; - void tube_casper_mem(address_map &map); + void tube_casper_mem(address_map &map) ATTR_COLD; }; diff --git a/src/devices/bus/bbc/tube/tube_cms6809.h b/src/devices/bus/bbc/tube/tube_cms6809.h index 79336974246..6e2f4e49e9f 100644 --- a/src/devices/bus/bbc/tube/tube_cms6809.h +++ b/src/devices/bus/bbc/tube/tube_cms6809.h @@ -30,11 +30,11 @@ class bbc_tube_cms6809_device : protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() 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; virtual uint8_t host_r(offs_t offset) override; virtual void host_w(offs_t offset, uint8_t data) override; @@ -43,7 +43,7 @@ class bbc_tube_cms6809_device : required_device m_maincpu; required_device_array m_via; - void tube_cms6809_mem(address_map &map); + void tube_cms6809_mem(address_map &map) ATTR_COLD; }; diff --git a/src/devices/bus/bbc/tube/tube_matchbox.cpp b/src/devices/bus/bbc/tube/tube_matchbox.cpp index dad66fe4e12..67c2af161dc 100644 --- a/src/devices/bus/bbc/tube/tube_matchbox.cpp +++ b/src/devices/bus/bbc/tube/tube_matchbox.cpp @@ -74,13 +74,13 @@ class bbc_tube_matchbox_device : public device_t, public device_bbc_tube_interfa protected: // device_t overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void device_reset_after_children() override; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual const tiny_rom_entry *device_rom_region() const override; - virtual ioport_constructor device_input_ports() 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; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; virtual uint8_t host_r(offs_t offset) override; virtual void host_w(offs_t offset, uint8_t data) override; @@ -104,7 +104,7 @@ class bbc_tube_matchbox_device : public device_t, public device_bbc_tube_interfa memory_view m_m65c102_view; required_memory_bank_array<8> m_m65c102_bank; - void m65c102_mem(address_map &map); + void m65c102_mem(address_map &map) ATTR_COLD; void m65c102_reset(uint8_t dip); void m65c102_bank_w(offs_t offset, uint8_t data); @@ -113,9 +113,9 @@ class bbc_tube_matchbox_device : public device_t, public device_bbc_tube_interfa required_region_ptr m_z80_rom; memory_view m_z80_view; - void z80_opcodes(address_map &map); - void z80_io(address_map &map); - void z80_mem(address_map &map); + void z80_opcodes(address_map &map) ATTR_COLD; + void z80_io(address_map &map) ATTR_COLD; + void z80_mem(address_map &map) ATTR_COLD; void z80_reset(uint8_t dip); uint8_t z80_opcode_r(offs_t offset); @@ -123,8 +123,8 @@ class bbc_tube_matchbox_device : public device_t, public device_bbc_tube_interfa required_device m_i80286; required_region_ptr m_i80286_rom; - void i80286_io(address_map &map); - void i80286_mem(address_map &map); + void i80286_io(address_map &map) ATTR_COLD; + void i80286_mem(address_map &map) ATTR_COLD; uint8_t m_irq_latch; @@ -133,7 +133,7 @@ class bbc_tube_matchbox_device : public device_t, public device_bbc_tube_interfa required_region_ptr m_m6809_rom; memory_passthrough_handler m_m6809_rom_shadow_tap; - void m6809_mem(address_map &map); + void m6809_mem(address_map &map) ATTR_COLD; void m6809_reset(); uint8_t m6809_mem_r(offs_t offset); bool m_m6809_rom_enabled; @@ -145,14 +145,14 @@ class bbc_tube_matchbox_device : public device_t, public device_bbc_tube_interfa memory_passthrough_handler m_m68000_rom_shadow_tap; memory_view m_m68000_view; - void m68000_mem(address_map &map); + void m68000_mem(address_map &map) ATTR_COLD; void m68000_reset(); // PDP-11 required_device m_pdp11; required_region_ptr m_pdp11_rom; - void pdp11_mem(address_map &map); + void pdp11_mem(address_map &map) ATTR_COLD; void pdp11_reset(); //uint8_t irq_callback(offs_t offset); void pdp11_irq_encoder(int irq, int state); @@ -164,7 +164,7 @@ class bbc_tube_matchbox_device : public device_t, public device_bbc_tube_interfa required_region_ptr m_arm2_rom; memory_passthrough_handler m_arm2_rom_shadow_tap; - void arm2_mem(address_map &map); + void arm2_mem(address_map &map) ATTR_COLD; void arm2_reset(); // 32016 @@ -173,7 +173,7 @@ class bbc_tube_matchbox_device : public device_t, public device_bbc_tube_interfa memory_passthrough_handler m_ns32016_rom_shadow_tap; memory_view m_ns32016_view; - void ns32016_mem(address_map &map); + void ns32016_mem(address_map &map) ATTR_COLD; void ns32016_reset(); }; diff --git a/src/devices/bus/bbc/tube/tube_rc6502.h b/src/devices/bus/bbc/tube/tube_rc6502.h index 0d47f0862dd..20ad64dcb1a 100644 --- a/src/devices/bus/bbc/tube/tube_rc6502.h +++ b/src/devices/bus/bbc/tube/tube_rc6502.h @@ -37,13 +37,13 @@ class bbc_tube_rc6502_device : bbc_tube_rc6502_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual const tiny_rom_entry *device_rom_region() const override; - virtual ioport_constructor device_input_ports() 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; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; void add_common_devices(machine_config &config); @@ -53,7 +53,7 @@ class bbc_tube_rc6502_device : uint8_t config_r(); void register_w(uint8_t data); - void tube_rc6502_bank(address_map &map); + void tube_rc6502_bank(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_bankdev; @@ -66,7 +66,7 @@ class bbc_tube_rc6502_device : void prst_w(int state); private: - void tube_rc6502_mem(address_map &map); + void tube_rc6502_mem(address_map &map) ATTR_COLD; uint8_t m_default; uint8_t m_divider; @@ -82,11 +82,11 @@ class bbc_tube_rc65816_device : public bbc_tube_rc6502_device protected: // 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; private: - void tube_rc65816_mem(address_map &map); + void tube_rc65816_mem(address_map &map) ATTR_COLD; }; diff --git a/src/devices/bus/bbc/tube/tube_x25.h b/src/devices/bus/bbc/tube/tube_x25.h index 6e63c45bfa5..ad3bf3e8015 100644 --- a/src/devices/bus/bbc/tube/tube_x25.h +++ b/src/devices/bus/bbc/tube/tube_x25.h @@ -36,11 +36,11 @@ class bbc_tube_x25_device : protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() 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; virtual uint8_t host_r(offs_t offset) override; virtual void host_w(offs_t offset, uint8_t data) override; @@ -53,10 +53,10 @@ class bbc_tube_x25_device : required_memory_bank_array<2> m_bank; std::unique_ptr m_ram; - void primary_mem(address_map &map); - void primary_io(address_map &map); - void secondary_mem(address_map &map); - void secondary_io(address_map &map); + void primary_mem(address_map &map) ATTR_COLD; + void primary_io(address_map &map) ATTR_COLD; + void secondary_mem(address_map &map) ATTR_COLD; + void secondary_io(address_map &map) ATTR_COLD; }; diff --git a/src/devices/bus/bbc/tube/tube_z80.h b/src/devices/bus/bbc/tube/tube_z80.h index 508f3812cce..bb19c59263f 100644 --- a/src/devices/bus/bbc/tube/tube_z80.h +++ b/src/devices/bus/bbc/tube/tube_z80.h @@ -34,12 +34,12 @@ class bbc_tube_z80_device : bbc_tube_z80_device(const machine_config& mconfig, device_type type, const char* tag, device_t* owner, uint32_t clock); // 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; // 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; virtual uint8_t host_r(offs_t offset) override; virtual void host_w(offs_t offset, uint8_t data) override; @@ -59,9 +59,9 @@ class bbc_tube_z80_device : void mem_w(offs_t offset, uint8_t data); uint8_t opcode_r(offs_t offset); - void tube_z80_fetch(address_map &map); - void tube_z80_io(address_map &map); - void tube_z80_mem(address_map &map); + void tube_z80_fetch(address_map &map) ATTR_COLD; + void tube_z80_io(address_map &map) ATTR_COLD; + void tube_z80_mem(address_map &map) ATTR_COLD; void prst_w(int state); }; diff --git a/src/devices/bus/bbc/tube/tube_zep100.h b/src/devices/bus/bbc/tube/tube_zep100.h index a4f0dd58d92..d135116b07b 100644 --- a/src/devices/bus/bbc/tube/tube_zep100.h +++ b/src/devices/bus/bbc/tube/tube_zep100.h @@ -35,12 +35,12 @@ class bbc_tube_zep100_device : bbc_tube_zep100_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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; // 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; virtual uint8_t host_r(offs_t offset) override; virtual void host_w(offs_t offset, uint8_t data) override; @@ -66,8 +66,8 @@ class bbc_tube_zep100_device : uint8_t ppi_pb_r(); void ppi_pc_w(uint8_t data); - void tube_zep100_io(address_map &map); - void tube_zep100_mem(address_map &map); + void tube_zep100_io(address_map &map) ATTR_COLD; + void tube_zep100_mem(address_map &map) ATTR_COLD; }; class bbc_tube_zep100l_device : public bbc_tube_zep100_device @@ -76,7 +76,7 @@ class bbc_tube_zep100l_device : public bbc_tube_zep100_device bbc_tube_zep100l_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 bbc_tube_zep100w_device : public bbc_tube_zep100_device @@ -85,7 +85,7 @@ class bbc_tube_zep100w_device : public bbc_tube_zep100_device bbc_tube_zep100w_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 bbc_tube_zep100m_device : public bbc_tube_zep100_device @@ -94,7 +94,7 @@ class bbc_tube_zep100m_device : public bbc_tube_zep100_device bbc_tube_zep100m_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; }; diff --git a/src/devices/bus/bbc/userport/beebspch.h b/src/devices/bus/bbc/userport/beebspch.h index 1f4eea20ef7..f7a1e59fa78 100644 --- a/src/devices/bus/bbc/userport/beebspch.h +++ b/src/devices/bus/bbc/userport/beebspch.h @@ -32,11 +32,11 @@ class bbc_beebspch_device : protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() 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; virtual void pb_w(uint8_t data) override; diff --git a/src/devices/bus/bbc/userport/cfa3000kbd.h b/src/devices/bus/bbc/userport/cfa3000kbd.h index ff9951399c8..a1544b3d240 100644 --- a/src/devices/bus/bbc/userport/cfa3000kbd.h +++ b/src/devices/bus/bbc/userport/cfa3000kbd.h @@ -30,11 +30,11 @@ class cfa3000_kbd_device : 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; // optional information overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; virtual uint8_t pb_r() override; diff --git a/src/devices/bus/bbc/userport/lcd.h b/src/devices/bus/bbc/userport/lcd.h index c4aecfbd00e..14f8e701198 100644 --- a/src/devices/bus/bbc/userport/lcd.h +++ b/src/devices/bus/bbc/userport/lcd.h @@ -32,10 +32,10 @@ class bbc_lcd_device : protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual uint8_t pb_r() override; virtual void pb_w(uint8_t data) override; diff --git a/src/devices/bus/bbc/userport/lvlecho.cpp b/src/devices/bus/bbc/userport/lvlecho.cpp index 04f6ed2db71..20c7f394913 100644 --- a/src/devices/bus/bbc/userport/lvlecho.cpp +++ b/src/devices/bus/bbc/userport/lvlecho.cpp @@ -32,10 +32,10 @@ class bbc_lvlecho_device : public device_t, public device_bbc_userport_interface protected: // device_t overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; virtual uint8_t pb_r() override { diff --git a/src/devices/bus/bbc/userport/m4000.cpp b/src/devices/bus/bbc/userport/m4000.cpp index 64ed023f211..37e8bad1586 100644 --- a/src/devices/bus/bbc/userport/m4000.cpp +++ b/src/devices/bus/bbc/userport/m4000.cpp @@ -31,10 +31,10 @@ class bbc_m4000_device : public device_t, public device_bbc_userport_interface protected: // device_t overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; virtual uint8_t pb_r() override; virtual void write_cb1(int state) override; diff --git a/src/devices/bus/bbc/userport/palext.h b/src/devices/bus/bbc/userport/palext.h index bca159103cb..7597bcf44f7 100644 --- a/src/devices/bus/bbc/userport/palext.h +++ b/src/devices/bus/bbc/userport/palext.h @@ -30,7 +30,7 @@ class bbc_palext_device : bbc_palext_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; required_device m_palette; diff --git a/src/devices/bus/bbc/userport/pointer.h b/src/devices/bus/bbc/userport/pointer.h index 865a9c91270..eeff3ec449a 100644 --- a/src/devices/bus/bbc/userport/pointer.h +++ b/src/devices/bus/bbc/userport/pointer.h @@ -27,8 +27,8 @@ class bbc_pointer_device : bbc_pointer_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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; TIMER_CALLBACK_MEMBER(update); @@ -58,7 +58,7 @@ class bbc_amxmouse_device : public bbc_pointer_device uint8_t pb_r() override; // optional information overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; }; @@ -73,7 +73,7 @@ class bbc_m512mouse_device : public bbc_pointer_device uint8_t pb_r() override; // optional information overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; }; @@ -88,7 +88,7 @@ class bbc_tracker_device : public bbc_pointer_device uint8_t pb_r() override; // optional information overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; }; diff --git a/src/devices/bus/bbc/userport/sdcard.h b/src/devices/bus/bbc/userport/sdcard.h index 0bab3d85e21..3eef17434a0 100644 --- a/src/devices/bus/bbc/userport/sdcard.h +++ b/src/devices/bus/bbc/userport/sdcard.h @@ -31,10 +31,10 @@ class bbc_sdcard_device : public device_t, public device_bbc_userport_interface bbc_sdcard_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual void pb_w(uint8_t data) override; virtual void write_cb1(int state) override; @@ -53,10 +53,10 @@ class bbc_sdcardt_device : public bbc_sdcard_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual void pb_w(uint8_t data) override; virtual void write_cb1(int state) override; diff --git a/src/devices/bus/bbc/userport/userport.h b/src/devices/bus/bbc/userport/userport.h index 222e05efd24..c10fddee2dd 100644 --- a/src/devices/bus/bbc/userport/userport.h +++ b/src/devices/bus/bbc/userport/userport.h @@ -73,7 +73,7 @@ class bbc_userport_slot_device : public device_t, public device_single_card_slot protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; device_bbc_userport_interface *m_device; diff --git a/src/devices/bus/bbc/userport/usersplit.h b/src/devices/bus/bbc/userport/usersplit.h index 01b1ed5de08..6094878990b 100644 --- a/src/devices/bus/bbc/userport/usersplit.h +++ b/src/devices/bus/bbc/userport/usersplit.h @@ -32,11 +32,11 @@ class bbc_usersplit_device : protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; virtual uint8_t pb_r() override; virtual void pb_w(uint8_t data) override; diff --git a/src/devices/bus/bbc/userport/voicebox.h b/src/devices/bus/bbc/userport/voicebox.h index 0f479e27c1d..26c1e6680e3 100644 --- a/src/devices/bus/bbc/userport/voicebox.h +++ b/src/devices/bus/bbc/userport/voicebox.h @@ -29,11 +29,11 @@ class bbc_voicebox_device : protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() 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; virtual void pb_w(uint8_t data) override; diff --git a/src/devices/bus/bml3/bml3bus.h b/src/devices/bus/bml3/bml3bus.h index 3663c4d3b61..cdafbb3d33f 100644 --- a/src/devices/bus/bml3/bml3bus.h +++ b/src/devices/bus/bml3/bml3bus.h @@ -55,7 +55,7 @@ class bml3bus_slot_device : public device_t, bml3bus_slot_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // configuration required_device m_bml3bus; @@ -92,8 +92,8 @@ class bml3bus_device : public device_t bml3bus_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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; void add_bml3bus_card(int slot, device_bml3bus_card_interface &card); diff --git a/src/devices/bus/bml3/kanji.cpp b/src/devices/bus/bml3/kanji.cpp index ecc466b2bda..bfeef207720 100644 --- a/src/devices/bus/bml3/kanji.cpp +++ b/src/devices/bus/bml3/kanji.cpp @@ -41,12 +41,12 @@ const tiny_rom_entry *bml3bus_kanji_device::device_rom_region() const return ROM_NAME( kanji ); } -uint8_t bml3bus_kanji_device::bml3_kanji_r(offs_t offset) +uint8_t bml3bus_kanji_device::read(offs_t offset) { return m_rom[((uint32_t)m_kanji_addr << 1) + offset]; } -void bml3bus_kanji_device::bml3_kanji_w(offs_t offset, uint8_t data) +void bml3bus_kanji_device::write(offs_t offset, uint8_t data) { m_kanji_addr &= (0xff << (offset*8)); m_kanji_addr |= (data << ((offset^1)*8)); @@ -77,7 +77,7 @@ void bml3bus_kanji_device::device_start() void bml3bus_kanji_device::map_io(address_space_installer &space) { // install into memory - space.install_readwrite_handler(0xff75, 0xff76, read8sm_delegate(*this, FUNC(bml3bus_kanji_device::bml3_kanji_r)), write8sm_delegate(*this, FUNC(bml3bus_kanji_device::bml3_kanji_w))); + space.install_readwrite_handler(0xff75, 0xff76, read8sm_delegate(*this, FUNC(bml3bus_kanji_device::read)), write8sm_delegate(*this, FUNC(bml3bus_kanji_device::write))); } void bml3bus_kanji_device::device_reset() diff --git a/src/devices/bus/bml3/kanji.h b/src/devices/bus/bml3/kanji.h index d1e456508ae..3afdf75350d 100644 --- a/src/devices/bus/bml3/kanji.h +++ b/src/devices/bus/bml3/kanji.h @@ -27,15 +27,15 @@ class bml3bus_kanji_device: // construction/destruction bml3bus_kanji_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - uint8_t bml3_kanji_r(offs_t offset); - void bml3_kanji_w(offs_t offset, uint8_t data); + uint8_t read(offs_t offset); + void write(offs_t offset, uint8_t data); protected: - 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 const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; virtual void map_io(address_space_installer &space) override; diff --git a/src/devices/bus/bml3/mp1802.cpp b/src/devices/bus/bml3/mp1802.cpp index 30c39ae61d4..562a4711e6c 100644 --- a/src/devices/bus/bml3/mp1802.cpp +++ b/src/devices/bus/bml3/mp1802.cpp @@ -79,12 +79,12 @@ const tiny_rom_entry *bml3bus_mp1802_device::device_rom_region() const return ROM_NAME( mp1802 ); } -uint8_t bml3bus_mp1802_device::bml3_mp1802_r() +uint8_t bml3bus_mp1802_device::read() { return (m_fdc->drq_r() ? 0x00 : 0x80) | (m_fdc->intrq_r() ? 0x00 : 0x40); } -void bml3bus_mp1802_device::bml3_mp1802_w(uint8_t data) +void bml3bus_mp1802_device::write(uint8_t data) { floppy_image_device *floppy = m_floppy[data & 0x03]->get_device(); @@ -126,7 +126,7 @@ void bml3bus_mp1802_device::device_start() void bml3bus_mp1802_device::device_reset() { - bml3_mp1802_w(0); + write(0); } void bml3bus_mp1802_device::map_exrom(address_space_installer &space) @@ -139,5 +139,5 @@ void bml3bus_mp1802_device::map_io(address_space_installer &space) { // install into memory space.install_readwrite_handler(0xff00, 0xff03, read8sm_delegate(*m_fdc, FUNC(mb8866_device::read)), write8sm_delegate(*m_fdc, FUNC(mb8866_device::write))); - space.install_readwrite_handler(0xff04, 0xff04, read8smo_delegate(*this, FUNC(bml3bus_mp1802_device::bml3_mp1802_r)), write8smo_delegate(*this, FUNC(bml3bus_mp1802_device::bml3_mp1802_w))); + space.install_readwrite_handler(0xff04, 0xff04, read8smo_delegate(*this, FUNC(bml3bus_mp1802_device::read)), write8smo_delegate(*this, FUNC(bml3bus_mp1802_device::write))); } diff --git a/src/devices/bus/bml3/mp1802.h b/src/devices/bus/bml3/mp1802.h index ecc379261c6..7b9701d56f7 100644 --- a/src/devices/bus/bml3/mp1802.h +++ b/src/devices/bus/bml3/mp1802.h @@ -32,16 +32,16 @@ class bml3bus_mp1802_device: // construction/destruction bml3bus_mp1802_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - uint8_t bml3_mp1802_r(); - void bml3_mp1802_w(uint8_t data); + uint8_t read(); + void write(uint8_t data); protected: - 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; virtual void map_exrom(address_space_installer &space) override; virtual void map_io(address_space_installer &space) override; diff --git a/src/devices/bus/bml3/mp1805.cpp b/src/devices/bus/bml3/mp1805.cpp index a836243cb98..b360d836044 100644 --- a/src/devices/bus/bml3/mp1805.cpp +++ b/src/devices/bus/bml3/mp1805.cpp @@ -66,14 +66,14 @@ const tiny_rom_entry *bml3bus_mp1805_device::device_rom_region() const return ROM_NAME( mp1805 ); } -uint8_t bml3bus_mp1805_device::bml3_mp1805_r() +uint8_t bml3bus_mp1805_device::read() { // TODO: read supported or not? // return mc6843_drq_r(m_mc6843) ? 0x00 : 0x80; return -1; } -void bml3bus_mp1805_device::bml3_mp1805_w(uint8_t data) +void bml3bus_mp1805_device::write(uint8_t data) { // b7 b6 b5 b4 b3 b2 b1 b0 // MT ? ? ? D3 D2 D1 D0 @@ -159,5 +159,5 @@ void bml3bus_mp1805_device::map_io(address_space_installer &space) { // install into memory space.install_device(0xff18, 0xff1f, *m_mc6843, &mc6843_device::map); - space.install_readwrite_handler(0xff20, 0xff20, read8smo_delegate(*this, FUNC(bml3bus_mp1805_device::bml3_mp1805_r)), write8smo_delegate(*this, FUNC(bml3bus_mp1805_device::bml3_mp1805_w))); + space.install_readwrite_handler(0xff20, 0xff20, read8smo_delegate(*this, FUNC(bml3bus_mp1805_device::read)), write8smo_delegate(*this, FUNC(bml3bus_mp1805_device::write))); } diff --git a/src/devices/bus/bml3/mp1805.h b/src/devices/bus/bml3/mp1805.h index 3dfecc0ec22..63eae04b81a 100644 --- a/src/devices/bus/bml3/mp1805.h +++ b/src/devices/bus/bml3/mp1805.h @@ -30,16 +30,16 @@ class bml3bus_mp1805_device: // construction/destruction bml3bus_mp1805_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - uint8_t bml3_mp1805_r(); - void bml3_mp1805_w(uint8_t data); + uint8_t read(); + void write(uint8_t data); protected: - 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; virtual void map_exrom(address_space_installer &space) override; virtual void map_io(address_space_installer &space) override; diff --git a/src/devices/bus/bml3/rtc.cpp b/src/devices/bus/bml3/rtc.cpp index 37bf5771878..eb672aaede0 100644 --- a/src/devices/bus/bml3/rtc.cpp +++ b/src/devices/bus/bml3/rtc.cpp @@ -35,7 +35,7 @@ void bml3bus_rtc_device::device_add_mconfig(machine_config &config) } -uint8_t bml3bus_rtc_device::bml3_rtc_r(offs_t offset) +uint8_t bml3bus_rtc_device::read(offs_t offset) { uint8_t data = 0x00; @@ -53,7 +53,7 @@ uint8_t bml3bus_rtc_device::bml3_rtc_r(offs_t offset) return data | 0xf0; // return low nibble only } -void bml3bus_rtc_device::bml3_rtc_w(offs_t offset, uint8_t data) +void bml3bus_rtc_device::write(offs_t offset, uint8_t data) { switch (offset) { @@ -105,5 +105,5 @@ void bml3bus_rtc_device::device_start() void bml3bus_rtc_device::map_io(address_space_installer &space) { // install into memory - space.install_readwrite_handler(0xff38, 0xff3a, read8sm_delegate(*this, FUNC(bml3bus_rtc_device::bml3_rtc_r)), write8sm_delegate(*this, FUNC(bml3bus_rtc_device::bml3_rtc_w))); + space.install_readwrite_handler(0xff38, 0xff3a, read8sm_delegate(*this, FUNC(bml3bus_rtc_device::read)), write8sm_delegate(*this, FUNC(bml3bus_rtc_device::write))); } diff --git a/src/devices/bus/bml3/rtc.h b/src/devices/bus/bml3/rtc.h index 155bce0904c..106b17d6d24 100644 --- a/src/devices/bus/bml3/rtc.h +++ b/src/devices/bus/bml3/rtc.h @@ -29,15 +29,15 @@ class bml3bus_rtc_device: // construction/destruction bml3bus_rtc_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - uint8_t bml3_rtc_r(offs_t offset); - void bml3_rtc_w(offs_t offset, uint8_t data); + uint8_t read(offs_t offset); + void write(offs_t offset, uint8_t data); protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual void map_io(address_space_installer &space) override; diff --git a/src/devices/bus/bw2/exp.h b/src/devices/bus/bw2/exp.h index 6c6acf11f9a..91799076ca3 100644 --- a/src/devices/bus/bw2/exp.h +++ b/src/devices/bus/bw2/exp.h @@ -80,8 +80,8 @@ class bw2_expansion_slot_device : public device_t, 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; device_bw2_expansion_slot_interface *m_cart; }; diff --git a/src/devices/bus/bw2/ramcard.h b/src/devices/bus/bw2/ramcard.h index f3cd95f38d4..a67f79d9290 100644 --- a/src/devices/bus/bw2/ramcard.h +++ b/src/devices/bus/bw2/ramcard.h @@ -29,12 +29,12 @@ class bw2_ramcard_device : public device_t, bw2_ramcard_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; 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; // device_bw2_expansion_slot_interface overrides virtual uint8_t bw2_cd_r(offs_t offset, uint8_t data, int ram2, int ram3, int ram4, int ram5, int ram6) override; diff --git a/src/devices/bus/c64/16kb.h b/src/devices/bus/c64/16kb.h index d17e7636879..b869ab571d1 100644 --- a/src/devices/bus/c64/16kb.h +++ b/src/devices/bus/c64/16kb.h @@ -32,12 +32,12 @@ class c64_16kb_cartridge_device : public device_t, public device_c64_expansion_c 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; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; // device_c64_expansion_card_interface overrides virtual uint8_t c64_cd_r(offs_t offset, uint8_t data, int sphi2, int ba, int roml, int romh, int io1, int io2) override; diff --git a/src/devices/bus/c64/4dxh.h b/src/devices/bus/c64/4dxh.h index 0e39bf15f08..b9159758149 100644 --- a/src/devices/bus/c64/4dxh.h +++ b/src/devices/bus/c64/4dxh.h @@ -29,7 +29,7 @@ class c64_4dxh_device : public device_t, public device_pet_user_port_interface c64_4dxh_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // optional information overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; // device_pet_user_port_interface overrides virtual void input_4(int state) override { output_6(state); } @@ -37,7 +37,7 @@ class c64_4dxh_device : public device_t, public device_pet_user_port_interface protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; }; diff --git a/src/devices/bus/c64/4ksa.h b/src/devices/bus/c64/4ksa.h index 1951b6d90c4..610881c359d 100644 --- a/src/devices/bus/c64/4ksa.h +++ b/src/devices/bus/c64/4ksa.h @@ -29,7 +29,7 @@ class c64_4ksa_device : public device_t, public device_pet_user_port_interface c64_4ksa_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // optional information overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; // device_pet_user_port_interface overrides virtual void input_4(int state) override { output_6(state); } @@ -37,7 +37,7 @@ class c64_4ksa_device : public device_t, public device_pet_user_port_interface protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; }; diff --git a/src/devices/bus/c64/4tba.h b/src/devices/bus/c64/4tba.h index 699edc5b77f..fe5f6841b79 100644 --- a/src/devices/bus/c64/4tba.h +++ b/src/devices/bus/c64/4tba.h @@ -29,7 +29,7 @@ class c64_4tba_device : public device_t, public device_pet_user_port_interface c64_4tba_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // optional information overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; // device_pet_user_port_interface overrides virtual void input_4(int state) override { output_6(state); } @@ -37,7 +37,7 @@ class c64_4tba_device : public device_t, public device_pet_user_port_interface protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; }; diff --git a/src/devices/bus/c64/bn1541.h b/src/devices/bus/c64/bn1541.h index f98f0a96684..2c1e1be4b42 100644 --- a/src/devices/bus/c64/bn1541.h +++ b/src/devices/bus/c64/bn1541.h @@ -51,7 +51,7 @@ class c64_bn1541_device : public device_t, protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_c64_floppy_parallel_interface overrides virtual void parallel_data_w(uint8_t data) override; diff --git a/src/devices/bus/c64/buscard.h b/src/devices/bus/c64/buscard.h index f51bbb38658..9ca22610572 100644 --- a/src/devices/bus/c64/buscard.h +++ b/src/devices/bus/c64/buscard.h @@ -36,13 +36,13 @@ class c64_buscard_device : public device_t, 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; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; // device_c64_expansion_card_interface overrides virtual uint8_t c64_cd_r(offs_t offset, uint8_t data, int sphi2, int ba, int roml, int romh, int io1, int io2) override; diff --git a/src/devices/bus/c64/buscard2.h b/src/devices/bus/c64/buscard2.h index 233cdaf79d8..5506701bd00 100644 --- a/src/devices/bus/c64/buscard2.h +++ b/src/devices/bus/c64/buscard2.h @@ -35,13 +35,13 @@ class c64_buscard2_device : public device_t, 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; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; // device_c64_expansion_card_interface overrides virtual uint8_t c64_cd_r(offs_t offset, uint8_t data, int sphi2, int ba, int roml, int romh, int io1, int io2) override; diff --git a/src/devices/bus/c64/c128_comal80.h b/src/devices/bus/c64/c128_comal80.h index fe413f9bef6..2112456f0bc 100644 --- a/src/devices/bus/c64/c128_comal80.h +++ b/src/devices/bus/c64/c128_comal80.h @@ -31,8 +31,8 @@ class c128_comal80_cartridge_device : public device_t, 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; // device_c64_expansion_card_interface overrides virtual uint8_t c64_cd_r(offs_t offset, uint8_t data, int sphi2, int ba, int roml, int romh, int io1, int io2) override; diff --git a/src/devices/bus/c64/c128_partner.h b/src/devices/bus/c64/c128_partner.h index faf8a2a8b11..aaaba1a3b42 100644 --- a/src/devices/bus/c64/c128_partner.h +++ b/src/devices/bus/c64/c128_partner.h @@ -31,14 +31,14 @@ class c128_partner_cartridge_device : public device_t, c128_partner_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // optional information overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; void nmi_w(int state); 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; // device_c64_expansion_card_interface overrides virtual uint8_t c64_cd_r(offs_t offset, uint8_t data, int sphi2, int ba, int roml, int romh, int io1, int io2) override; diff --git a/src/devices/bus/c64/comal80.h b/src/devices/bus/c64/comal80.h index af0958a8940..4b5e279dd18 100644 --- a/src/devices/bus/c64/comal80.h +++ b/src/devices/bus/c64/comal80.h @@ -31,8 +31,8 @@ class c64_comal80_cartridge_device : public device_t, 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; // device_c64_expansion_card_interface overrides virtual uint8_t c64_cd_r(offs_t offset, uint8_t data, int sphi2, int ba, int roml, int romh, int io1, int io2) override; diff --git a/src/devices/bus/c64/cpm.h b/src/devices/bus/c64/cpm.h index c490d61aa58..efc7a2e2caf 100644 --- a/src/devices/bus/c64/cpm.h +++ b/src/devices/bus/c64/cpm.h @@ -33,11 +33,11 @@ class c64_cpm_cartridge_device : public device_t, c64_cpm_cartridge_device(const machine_config& mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; // device_c64_expansion_card_interface overrides virtual void c64_cd_w(offs_t offset, uint8_t data, int sphi2, int ba, int roml, int romh, int io1, int io2) override; @@ -56,8 +56,8 @@ class c64_cpm_cartridge_device : public device_t, 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; }; diff --git a/src/devices/bus/c64/currah_speech.h b/src/devices/bus/c64/currah_speech.h index f856833f659..8998f54aa87 100644 --- a/src/devices/bus/c64/currah_speech.h +++ b/src/devices/bus/c64/currah_speech.h @@ -32,12 +32,12 @@ class c64_currah_speech_cartridge_device : public device_t, 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; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; // device_c64_expansion_card_interface overrides virtual uint8_t c64_cd_r(offs_t offset, uint8_t data, int sphi2, int ba, int roml, int romh, int io1, int io2) override; diff --git a/src/devices/bus/c64/dela_ep256.h b/src/devices/bus/c64/dela_ep256.h index bb6806f4d8e..ba0923325a3 100644 --- a/src/devices/bus/c64/dela_ep256.h +++ b/src/devices/bus/c64/dela_ep256.h @@ -33,11 +33,11 @@ class c64_dela_ep256_cartridge_device : public device_t, 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; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; // device_c64_expansion_card_interface overrides virtual uint8_t c64_cd_r(offs_t offset, uint8_t data, int sphi2, int ba, int roml, int romh, int io1, int io2) override; diff --git a/src/devices/bus/c64/dela_ep64.h b/src/devices/bus/c64/dela_ep64.h index 95ac3440871..b366faa736a 100644 --- a/src/devices/bus/c64/dela_ep64.h +++ b/src/devices/bus/c64/dela_ep64.h @@ -33,11 +33,11 @@ class c64_dela_ep64_cartridge_device : public device_t, 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; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; // device_c64_expansion_card_interface overrides virtual uint8_t c64_cd_r(offs_t offset, uint8_t data, int sphi2, int ba, int roml, int romh, int io1, int io2) override; diff --git a/src/devices/bus/c64/dela_ep7x8.h b/src/devices/bus/c64/dela_ep7x8.h index 50e1b3af01e..6bbf1f5d77f 100644 --- a/src/devices/bus/c64/dela_ep7x8.h +++ b/src/devices/bus/c64/dela_ep7x8.h @@ -33,11 +33,11 @@ class c64_dela_ep7x8_cartridge_device : public device_t, 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; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; // device_c64_expansion_card_interface overrides virtual uint8_t c64_cd_r(offs_t offset, uint8_t data, int sphi2, int ba, int roml, int romh, int io1, int io2) override; diff --git a/src/devices/bus/c64/dinamic.h b/src/devices/bus/c64/dinamic.h index e204964e4a1..dbee705afe5 100644 --- a/src/devices/bus/c64/dinamic.h +++ b/src/devices/bus/c64/dinamic.h @@ -31,8 +31,8 @@ class c64_dinamic_cartridge_device : public device_t, 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; // device_c64_expansion_card_interface overrides virtual uint8_t c64_cd_r(offs_t offset, uint8_t data, int sphi2, int ba, int roml, int romh, int io1, int io2) override; diff --git a/src/devices/bus/c64/dqbb.h b/src/devices/bus/c64/dqbb.h index 35a18f7e344..15ed32f833e 100644 --- a/src/devices/bus/c64/dqbb.h +++ b/src/devices/bus/c64/dqbb.h @@ -32,8 +32,8 @@ class c64_dqbb_cartridge_device : public device_t, protected: // 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; // device_nvram_interface implementation virtual void nvram_default() override; diff --git a/src/devices/bus/c64/easy_calc_result.h b/src/devices/bus/c64/easy_calc_result.h index 2d945b7dea2..9121a7750a7 100644 --- a/src/devices/bus/c64/easy_calc_result.h +++ b/src/devices/bus/c64/easy_calc_result.h @@ -31,8 +31,8 @@ class c64_easy_calc_result_cartridge_device : public device_t, 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; // device_c64_expansion_card_interface overrides virtual uint8_t c64_cd_r(offs_t offset, uint8_t data, int sphi2, int ba, int roml, int romh, int io1, int io2) override; diff --git a/src/devices/bus/c64/easyflash.h b/src/devices/bus/c64/easyflash.h index 6c73a14838a..42f25076c85 100644 --- a/src/devices/bus/c64/easyflash.h +++ b/src/devices/bus/c64/easyflash.h @@ -32,12 +32,12 @@ class c64_easyflash_cartridge_device : public device_t, 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; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; // device_c64_expansion_card_interface overrides virtual uint8_t c64_cd_r(offs_t offset, uint8_t data, int sphi2, int ba, int roml, int romh, int io1, int io2) override; diff --git a/src/devices/bus/c64/epyx_fast_load.h b/src/devices/bus/c64/epyx_fast_load.h index 8a2ebcaa9b0..3719b8ae647 100644 --- a/src/devices/bus/c64/epyx_fast_load.h +++ b/src/devices/bus/c64/epyx_fast_load.h @@ -31,8 +31,8 @@ class c64_epyx_fast_load_cartridge_device : public device_t, 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; // device_c64_expansion_card_interface overrides virtual uint8_t c64_cd_r(offs_t offset, uint8_t data, int sphi2, int ba, int roml, int romh, int io1, int io2) override; diff --git a/src/devices/bus/c64/exos.h b/src/devices/bus/c64/exos.h index 73b9b2699aa..1c79a333df4 100644 --- a/src/devices/bus/c64/exos.h +++ b/src/devices/bus/c64/exos.h @@ -31,7 +31,7 @@ class c64_exos_cartridge_device : public device_t, protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_c64_expansion_card_interface overrides virtual uint8_t c64_cd_r(offs_t offset, uint8_t data, int sphi2, int ba, int roml, int romh, int io1, int io2) override; diff --git a/src/devices/bus/c64/exp.h b/src/devices/bus/c64/exp.h index 68974431d56..a775b9529d6 100644 --- a/src/devices/bus/c64/exp.h +++ b/src/devices/bus/c64/exp.h @@ -95,8 +95,8 @@ class c64_expansion_slot_device : public device_t, protected: // 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; // device_image_interface implementation virtual std::pair call_load() override; diff --git a/src/devices/bus/c64/fcc.h b/src/devices/bus/c64/fcc.h index 90d3ba5556a..dffa04c29a0 100644 --- a/src/devices/bus/c64/fcc.h +++ b/src/devices/bus/c64/fcc.h @@ -33,10 +33,10 @@ class c64_final_chesscard_device : public device_t, protected: // device_t implementation - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; // device_nvram_interface implementation virtual void nvram_default() override; @@ -60,7 +60,7 @@ class c64_final_chesscard_device : public device_t, uint8_t nvram_r(offs_t offset) { return m_nvram[offset & 0x1fff]; } void nvram_w(offs_t offset, uint8_t data) { m_nvram[offset & 0x1fff] = data; } - void c64_fcc_map(address_map &map); + void c64_fcc_map(address_map &map) ATTR_COLD; }; diff --git a/src/devices/bus/c64/final.h b/src/devices/bus/c64/final.h index 6d59e737c02..7ef67e034f1 100644 --- a/src/devices/bus/c64/final.h +++ b/src/devices/bus/c64/final.h @@ -30,14 +30,14 @@ class c64_final_cartridge_device : public device_t, c64_final_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // optional information overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; DECLARE_INPUT_CHANGED_MEMBER( freeze ); 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; // device_c64_expansion_card_interface overrides virtual uint8_t c64_cd_r(offs_t offset, uint8_t data, int sphi2, int ba, int roml, int romh, int io1, int io2) override; diff --git a/src/devices/bus/c64/final3.h b/src/devices/bus/c64/final3.h index 8b020482560..11fe285fdaa 100644 --- a/src/devices/bus/c64/final3.h +++ b/src/devices/bus/c64/final3.h @@ -30,14 +30,14 @@ class c64_final3_cartridge_device : public device_t, c64_final3_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // optional information overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; DECLARE_INPUT_CHANGED_MEMBER( freeze ); 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; // device_c64_expansion_card_interface overrides virtual uint8_t c64_cd_r(offs_t offset, uint8_t data, int sphi2, int ba, int roml, int romh, int io1, int io2) override; diff --git a/src/devices/bus/c64/fun_play.h b/src/devices/bus/c64/fun_play.h index 6fc082164c6..a720d9c457a 100644 --- a/src/devices/bus/c64/fun_play.h +++ b/src/devices/bus/c64/fun_play.h @@ -31,8 +31,8 @@ class c64_fun_play_cartridge_device : public device_t, 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; // device_c64_expansion_card_interface overrides virtual uint8_t c64_cd_r(offs_t offset, uint8_t data, int sphi2, int ba, int roml, int romh, int io1, int io2) override; diff --git a/src/devices/bus/c64/geocable.h b/src/devices/bus/c64/geocable.h index d4a9d543ea6..a7f8a114679 100644 --- a/src/devices/bus/c64/geocable.h +++ b/src/devices/bus/c64/geocable.h @@ -31,10 +31,10 @@ class c64_geocable_device : public device_t, public device_pet_user_port_interfa protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; // device_pet_user_port_interface overrides virtual void input_c(int state) override { m_centronics->write_data0(state); } diff --git a/src/devices/bus/c64/georam.h b/src/devices/bus/c64/georam.h index 41b7fd82379..48848fd8679 100644 --- a/src/devices/bus/c64/georam.h +++ b/src/devices/bus/c64/georam.h @@ -31,8 +31,8 @@ class c64_georam_cartridge_device : public device_t, 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; // device_c64_expansion_card_interface overrides virtual uint8_t c64_cd_r(offs_t offset, uint8_t data, int sphi2, int ba, int roml, int romh, int io1, int io2) override; diff --git a/src/devices/bus/c64/ide64.h b/src/devices/bus/c64/ide64.h index 9438e3a1ed0..ca778dfda3c 100644 --- a/src/devices/bus/c64/ide64.h +++ b/src/devices/bus/c64/ide64.h @@ -35,12 +35,12 @@ class c64_ide64_cartridge_device : public device_t, 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; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; // device_c64_expansion_card_interface overrides virtual uint8_t c64_cd_r(offs_t offset, uint8_t data, int sphi2, int ba, int roml, int romh, int io1, int io2) override; diff --git a/src/devices/bus/c64/ieee488.h b/src/devices/bus/c64/ieee488.h index 60919029bf7..98d0fac447d 100644 --- a/src/devices/bus/c64/ieee488.h +++ b/src/devices/bus/c64/ieee488.h @@ -32,11 +32,11 @@ class c64_ieee488_device : public device_t, 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; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; // device_c64_expansion_card_interface overrides virtual uint8_t c64_cd_r(offs_t offset, uint8_t data, int sphi2, int ba, int roml, int romh, int io1, int io2) override; diff --git a/src/devices/bus/c64/kingsoft.h b/src/devices/bus/c64/kingsoft.h index 3a9fda45fef..7b4855f77e9 100644 --- a/src/devices/bus/c64/kingsoft.h +++ b/src/devices/bus/c64/kingsoft.h @@ -31,8 +31,8 @@ class c64_kingsoft_cartridge_device : public device_t, 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; // device_c64_expansion_card_interface overrides virtual uint8_t c64_cd_r(offs_t offset, uint8_t data, int sphi2, int ba, int roml, int romh, int io1, int io2) override; diff --git a/src/devices/bus/c64/mach5.h b/src/devices/bus/c64/mach5.h index a49e1bec347..12424a14193 100644 --- a/src/devices/bus/c64/mach5.h +++ b/src/devices/bus/c64/mach5.h @@ -29,12 +29,12 @@ class c64_mach5_cartridge_device : public device_t, c64_mach5_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // optional information overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; 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; // device_c64_expansion_card_interface overrides virtual uint8_t c64_cd_r(offs_t offset, uint8_t data, int sphi2, int ba, int roml, int romh, int io1, int io2) override; diff --git a/src/devices/bus/c64/magic_desk.h b/src/devices/bus/c64/magic_desk.h index 75f76dee732..dbbf839e1d3 100644 --- a/src/devices/bus/c64/magic_desk.h +++ b/src/devices/bus/c64/magic_desk.h @@ -31,8 +31,8 @@ class c64_magic_desk_cartridge_device : public device_t, 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; // device_c64_expansion_card_interface overrides virtual uint8_t c64_cd_r(offs_t offset, uint8_t data, int sphi2, int ba, int roml, int romh, int io1, int io2) override; diff --git a/src/devices/bus/c64/magic_formel.h b/src/devices/bus/c64/magic_formel.h index 15123d6b453..6a80cda9c1f 100644 --- a/src/devices/bus/c64/magic_formel.h +++ b/src/devices/bus/c64/magic_formel.h @@ -33,12 +33,12 @@ class c64_magic_formel_cartridge_device : public device_t, 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; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; // device_c64_expansion_card_interface overrides virtual uint8_t c64_cd_r(offs_t offset, uint8_t data, int sphi2, int ba, int roml, int romh, int io1, int io2) override; diff --git a/src/devices/bus/c64/magic_voice.h b/src/devices/bus/c64/magic_voice.h index ac489f45f7c..cd9796413db 100644 --- a/src/devices/bus/c64/magic_voice.h +++ b/src/devices/bus/c64/magic_voice.h @@ -33,11 +33,11 @@ class c64_magic_voice_cartridge_device : public device_t, 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; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; // device_c64_expansion_card_interface overrides virtual uint8_t c64_cd_r(offs_t offset, uint8_t data, int sphi2, int ba, int roml, int romh, int io1, int io2) override; diff --git a/src/devices/bus/c64/midi_maplin.h b/src/devices/bus/c64/midi_maplin.h index 285088a9b46..103b26e5670 100644 --- a/src/devices/bus/c64/midi_maplin.h +++ b/src/devices/bus/c64/midi_maplin.h @@ -30,11 +30,11 @@ class c64_maplin_midi_cartridge_device : public device_t, public device_c64_expa 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; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; // device_c64_expansion_card_interface overrides virtual uint8_t c64_cd_r(offs_t offset, uint8_t data, int sphi2, int ba, int roml, int romh, int io1, int io2) override; diff --git a/src/devices/bus/c64/midi_namesoft.h b/src/devices/bus/c64/midi_namesoft.h index 276afff80b6..11b7a3ce022 100644 --- a/src/devices/bus/c64/midi_namesoft.h +++ b/src/devices/bus/c64/midi_namesoft.h @@ -30,11 +30,11 @@ class c64_namesoft_midi_cartridge_device : public device_t, public device_c64_ex 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; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; // device_c64_expansion_card_interface overrides virtual uint8_t c64_cd_r(offs_t offset, uint8_t data, int sphi2, int ba, int roml, int romh, int io1, int io2) override; diff --git a/src/devices/bus/c64/midi_passport.h b/src/devices/bus/c64/midi_passport.h index 42bf7a3d90a..8f99cf8f294 100644 --- a/src/devices/bus/c64/midi_passport.h +++ b/src/devices/bus/c64/midi_passport.h @@ -31,11 +31,11 @@ class c64_passport_midi_cartridge_device : public device_t, public device_c64_ex 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; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; // device_c64_expansion_card_interface overrides virtual uint8_t c64_cd_r(offs_t offset, uint8_t data, int sphi2, int ba, int roml, int romh, int io1, int io2) override; diff --git a/src/devices/bus/c64/midi_sci.h b/src/devices/bus/c64/midi_sci.h index d455b53e5d4..d3146db7644 100644 --- a/src/devices/bus/c64/midi_sci.h +++ b/src/devices/bus/c64/midi_sci.h @@ -30,11 +30,11 @@ class c64_sequential_midi_cartridge_device : public device_t, public device_c64_ 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; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; // device_c64_expansion_card_interface overrides virtual uint8_t c64_cd_r(offs_t offset, uint8_t data, int sphi2, int ba, int roml, int romh, int io1, int io2) override; diff --git a/src/devices/bus/c64/midi_siel.h b/src/devices/bus/c64/midi_siel.h index 32e77b1f997..0413ccd3d25 100644 --- a/src/devices/bus/c64/midi_siel.h +++ b/src/devices/bus/c64/midi_siel.h @@ -30,11 +30,11 @@ class c64_siel_midi_cartridge_device : public device_t, public device_c64_expans 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; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; // device_c64_expansion_card_interface overrides virtual uint8_t c64_cd_r(offs_t offset, uint8_t data, int sphi2, int ba, int roml, int romh, int io1, int io2) override; diff --git a/src/devices/bus/c64/mikro_assembler.h b/src/devices/bus/c64/mikro_assembler.h index 754a91385d4..7a06c2fcc49 100644 --- a/src/devices/bus/c64/mikro_assembler.h +++ b/src/devices/bus/c64/mikro_assembler.h @@ -31,7 +31,7 @@ class c64_mikro_assembler_cartridge_device : public device_t, protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_c64_expansion_card_interface overrides virtual uint8_t c64_cd_r(offs_t offset, uint8_t data, int sphi2, int ba, int roml, int romh, int io1, int io2) override; diff --git a/src/devices/bus/c64/multiscreen.h b/src/devices/bus/c64/multiscreen.h index 619154d18c5..d4d18db1f7e 100644 --- a/src/devices/bus/c64/multiscreen.h +++ b/src/devices/bus/c64/multiscreen.h @@ -33,12 +33,12 @@ class c64_multiscreen_cartridge_device : public device_t, 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; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; // device_c64_expansion_card_interface overrides virtual uint8_t c64_cd_r(offs_t offset, uint8_t data, int sphi2, int ba, int roml, int romh, int io1, int io2) override; @@ -47,7 +47,7 @@ class c64_multiscreen_cartridge_device : public device_t, private: uint8_t m_bank; - void multiscreen_mem(address_map &map); + void multiscreen_mem(address_map &map) ATTR_COLD; }; diff --git a/src/devices/bus/c64/music64.h b/src/devices/bus/c64/music64.h index cf494c481b8..386ea98dbec 100644 --- a/src/devices/bus/c64/music64.h +++ b/src/devices/bus/c64/music64.h @@ -30,12 +30,12 @@ class c64_music64_cartridge_device : public device_t, 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; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; // device_c64_expansion_card_interface overrides virtual uint8_t c64_cd_r(offs_t offset, uint8_t data, int sphi2, int ba, int roml, int romh, int io1, int io2) override; diff --git a/src/devices/bus/c64/neoram.h b/src/devices/bus/c64/neoram.h index 1a374440c45..b0b696a5c68 100644 --- a/src/devices/bus/c64/neoram.h +++ b/src/devices/bus/c64/neoram.h @@ -32,8 +32,8 @@ class c64_neoram_cartridge_device : public device_t, protected: // 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; // device_nvram_interface implementation virtual void nvram_default() override; diff --git a/src/devices/bus/c64/ocean.h b/src/devices/bus/c64/ocean.h index 9a78f5e21f9..3412f4f1747 100644 --- a/src/devices/bus/c64/ocean.h +++ b/src/devices/bus/c64/ocean.h @@ -31,8 +31,8 @@ class c64_ocean_cartridge_device : public device_t, 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; // device_c64_expansion_card_interface overrides virtual uint8_t c64_cd_r(offs_t offset, uint8_t data, int sphi2, int ba, int roml, int romh, int io1, int io2) override; diff --git a/src/devices/bus/c64/pagefox.h b/src/devices/bus/c64/pagefox.h index b0295eb9d0d..b985939d7c5 100644 --- a/src/devices/bus/c64/pagefox.h +++ b/src/devices/bus/c64/pagefox.h @@ -31,8 +31,8 @@ class c64_pagefox_cartridge_device : public device_t, 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; // device_c64_expansion_card_interface overrides virtual uint8_t c64_cd_r(offs_t offset, uint8_t data, int sphi2, int ba, int roml, int romh, int io1, int io2) override; diff --git a/src/devices/bus/c64/partner.h b/src/devices/bus/c64/partner.h index e28274a34bd..d7b1267ce60 100644 --- a/src/devices/bus/c64/partner.h +++ b/src/devices/bus/c64/partner.h @@ -29,14 +29,14 @@ class c64_partner_cartridge_device : public device_t, c64_partner_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // optional information overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; void nmi_w(int state); 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; // device_c64_expansion_card_interface overrides virtual uint8_t c64_cd_r(offs_t offset, uint8_t data, int sphi2, int ba, int roml, int romh, int io1, int io2) override; diff --git a/src/devices/bus/c64/prophet64.h b/src/devices/bus/c64/prophet64.h index f58ba30b7b7..1eb20ae50fd 100644 --- a/src/devices/bus/c64/prophet64.h +++ b/src/devices/bus/c64/prophet64.h @@ -30,8 +30,8 @@ class c64_prophet64_cartridge_device : public device_t, 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; // device_c64_expansion_card_interface overrides virtual uint8_t c64_cd_r(offs_t offset, uint8_t data, int sphi2, int ba, int roml, int romh, int io1, int io2) override; diff --git a/src/devices/bus/c64/ps64.h b/src/devices/bus/c64/ps64.h index 69a9c5b0110..c5ad9ead38b 100644 --- a/src/devices/bus/c64/ps64.h +++ b/src/devices/bus/c64/ps64.h @@ -32,11 +32,11 @@ class c64_ps64_cartridge_device : public device_t, 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; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; // device_c64_expansion_card_interface overrides virtual uint8_t c64_cd_r(offs_t offset, uint8_t data, int sphi2, int ba, int roml, int romh, int io1, int io2) override; diff --git a/src/devices/bus/c64/reu.h b/src/devices/bus/c64/reu.h index eaa662f38a1..7c1e76e530a 100644 --- a/src/devices/bus/c64/reu.h +++ b/src/devices/bus/c64/reu.h @@ -40,11 +40,11 @@ class c64_reu_cartridge_device : public device_t, c64_reu_cartridge_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, uint32_t variant, int jp1, size_t ram_size); // 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; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; // device_c64_expansion_card_interface overrides virtual uint8_t c64_cd_r(offs_t offset, uint8_t data, int sphi2, int ba, int roml, int romh, int io1, int io2) override; diff --git a/src/devices/bus/c64/rex.h b/src/devices/bus/c64/rex.h index cc0cccb52da..04dc5fa975c 100644 --- a/src/devices/bus/c64/rex.h +++ b/src/devices/bus/c64/rex.h @@ -31,8 +31,8 @@ class c64_rex_cartridge_device : public device_t, 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; // device_c64_expansion_card_interface overrides virtual uint8_t c64_cd_r(offs_t offset, uint8_t data, int sphi2, int ba, int roml, int romh, int io1, int io2) override; diff --git a/src/devices/bus/c64/rex_ep256.h b/src/devices/bus/c64/rex_ep256.h index e06a2c71d17..b51fc1a1fd5 100644 --- a/src/devices/bus/c64/rex_ep256.h +++ b/src/devices/bus/c64/rex_ep256.h @@ -33,11 +33,11 @@ class c64_rex_ep256_cartridge_device : public device_t, 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; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; // device_c64_expansion_card_interface overrides virtual uint8_t c64_cd_r(offs_t offset, uint8_t data, int sphi2, int ba, int roml, int romh, int io1, int io2) override; diff --git a/src/devices/bus/c64/ross.h b/src/devices/bus/c64/ross.h index 97f2698fb6c..bfd6693ebfe 100644 --- a/src/devices/bus/c64/ross.h +++ b/src/devices/bus/c64/ross.h @@ -31,8 +31,8 @@ class c64_ross_cartridge_device : public device_t, 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; // device_c64_expansion_card_interface overrides virtual uint8_t c64_cd_r(offs_t offset, uint8_t data, int sphi2, int ba, int roml, int romh, int io1, int io2) override; diff --git a/src/devices/bus/c64/sfx_sound_expander.h b/src/devices/bus/c64/sfx_sound_expander.h index 8b0a454fdc8..6d8959a20a2 100644 --- a/src/devices/bus/c64/sfx_sound_expander.h +++ b/src/devices/bus/c64/sfx_sound_expander.h @@ -31,12 +31,12 @@ class c64_sfx_sound_expander_cartridge_device : public device_t, 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; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; // device_c64_expansion_card_interface overrides virtual uint8_t c64_cd_r(offs_t offset, uint8_t data, int sphi2, int ba, int roml, int romh, int io1, int io2) override; diff --git a/src/devices/bus/c64/silverrock.h b/src/devices/bus/c64/silverrock.h index 3d9c4e015f2..304b04af5a7 100644 --- a/src/devices/bus/c64/silverrock.h +++ b/src/devices/bus/c64/silverrock.h @@ -31,8 +31,8 @@ class c64_silverrock_cartridge_device : public device_t, 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; // device_c64_expansion_card_interface overrides virtual uint8_t c64_cd_r(offs_t offset, uint8_t data, int sphi2, int ba, int roml, int romh, int io1, int io2) override; diff --git a/src/devices/bus/c64/simons_basic.h b/src/devices/bus/c64/simons_basic.h index 63d2dfb5cb9..b71c6b3d553 100644 --- a/src/devices/bus/c64/simons_basic.h +++ b/src/devices/bus/c64/simons_basic.h @@ -31,8 +31,8 @@ class c64_simons_basic_cartridge_device : public device_t, 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; // device_c64_expansion_card_interface overrides virtual uint8_t c64_cd_r(offs_t offset, uint8_t data, int sphi2, int ba, int roml, int romh, int io1, int io2) override; diff --git a/src/devices/bus/c64/speakeasy.h b/src/devices/bus/c64/speakeasy.h index 0816e4caa2e..5ddf33fec13 100644 --- a/src/devices/bus/c64/speakeasy.h +++ b/src/devices/bus/c64/speakeasy.h @@ -30,10 +30,10 @@ class c64_speakeasy_cartridge_device : public device_t, public device_c64_expans protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; // device_c64_expansion_card_interface overrides virtual uint8_t c64_cd_r(offs_t offset, uint8_t data, int sphi2, int ba, int roml, int romh, int io1, int io2) override; diff --git a/src/devices/bus/c64/stardos.h b/src/devices/bus/c64/stardos.h index 9be9f599957..a1174de9d06 100644 --- a/src/devices/bus/c64/stardos.h +++ b/src/devices/bus/c64/stardos.h @@ -31,11 +31,11 @@ class c64_stardos_cartridge_device : public device_t, c64_stardos_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // optional information overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_c64_expansion_card_interface overrides virtual uint8_t c64_cd_r(offs_t offset, uint8_t data, int sphi2, int ba, int roml, int romh, int io1, int io2) override; diff --git a/src/devices/bus/c64/std.h b/src/devices/bus/c64/std.h index 391e9ac973f..19ac1dde847 100644 --- a/src/devices/bus/c64/std.h +++ b/src/devices/bus/c64/std.h @@ -31,7 +31,7 @@ class c64_standard_cartridge_device : public device_t, protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_c64_expansion_card_interface overrides virtual uint8_t c64_cd_r(offs_t offset, uint8_t data, int sphi2, int ba, int roml, int romh, int io1, int io2) override; diff --git a/src/devices/bus/c64/structured_basic.h b/src/devices/bus/c64/structured_basic.h index 44d370cdb3f..231d231b7ae 100644 --- a/src/devices/bus/c64/structured_basic.h +++ b/src/devices/bus/c64/structured_basic.h @@ -31,8 +31,8 @@ class c64_structured_basic_cartridge_device : public device_t, 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; // device_c64_expansion_card_interface overrides virtual uint8_t c64_cd_r(offs_t offset, uint8_t data, int sphi2, int ba, int roml, int romh, int io1, int io2) override; diff --git a/src/devices/bus/c64/super_explode.h b/src/devices/bus/c64/super_explode.h index b2cedd35c55..9e7158f8e0f 100644 --- a/src/devices/bus/c64/super_explode.h +++ b/src/devices/bus/c64/super_explode.h @@ -31,8 +31,8 @@ class c64_super_explode_cartridge_device : public device_t, 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; // device_c64_expansion_card_interface overrides virtual uint8_t c64_cd_r(offs_t offset, uint8_t data, int sphi2, int ba, int roml, int romh, int io1, int io2) override; diff --git a/src/devices/bus/c64/super_games.h b/src/devices/bus/c64/super_games.h index 11e4b44046a..4856ce7e034 100644 --- a/src/devices/bus/c64/super_games.h +++ b/src/devices/bus/c64/super_games.h @@ -31,8 +31,8 @@ class c64_super_games_cartridge_device : public device_t, 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; // device_c64_expansion_card_interface overrides virtual uint8_t c64_cd_r(offs_t offset, uint8_t data, int sphi2, int ba, int roml, int romh, int io1, int io2) override; diff --git a/src/devices/bus/c64/supercpu.h b/src/devices/bus/c64/supercpu.h index 73982328c31..78bba5e6f68 100644 --- a/src/devices/bus/c64/supercpu.h +++ b/src/devices/bus/c64/supercpu.h @@ -31,13 +31,13 @@ class c64_supercpu_device : public device_t, 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; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; // device_c64_expansion_card_interface overrides virtual uint8_t c64_cd_r(offs_t offset, uint8_t data, int sphi2, int ba, int roml, int romh, int io1, int io2) override; @@ -52,7 +52,7 @@ class c64_supercpu_device : public device_t, required_shared_ptr m_sram; required_shared_ptr m_dimm; - void c64_supercpu_map(address_map &map); + void c64_supercpu_map(address_map &map) ATTR_COLD; }; diff --git a/src/devices/bus/c64/sw8k.h b/src/devices/bus/c64/sw8k.h index 186e96792d6..cb82fb1b9a5 100644 --- a/src/devices/bus/c64/sw8k.h +++ b/src/devices/bus/c64/sw8k.h @@ -30,12 +30,12 @@ class c64_switchable_8k_cartridge_device : public device_t, c64_switchable_8k_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // optional information overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; 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; // device_c64_expansion_card_interface overrides virtual uint8_t c64_cd_r(offs_t offset, uint8_t data, int sphi2, int ba, int roml, int romh, int io1, int io2) override; diff --git a/src/devices/bus/c64/swiftlink.h b/src/devices/bus/c64/swiftlink.h index 65c25d97b73..a5e741dd2c2 100644 --- a/src/devices/bus/c64/swiftlink.h +++ b/src/devices/bus/c64/swiftlink.h @@ -33,12 +33,12 @@ class c64_swiftlink_cartridge_device : public device_t, 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; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; // device_c64_expansion_card_interface overrides virtual uint8_t c64_cd_r(offs_t offset, uint8_t data, int sphi2, int ba, int roml, int romh, int io1, int io2) override; diff --git a/src/devices/bus/c64/system3.h b/src/devices/bus/c64/system3.h index 024798fc77e..8bb916c24d0 100644 --- a/src/devices/bus/c64/system3.h +++ b/src/devices/bus/c64/system3.h @@ -31,8 +31,8 @@ class c64_system3_cartridge_device : public device_t, 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; // device_c64_expansion_card_interface overrides virtual uint8_t c64_cd_r(offs_t offset, uint8_t data, int sphi2, int ba, int roml, int romh, int io1, int io2) override; diff --git a/src/devices/bus/c64/tdos.h b/src/devices/bus/c64/tdos.h index 49c1b07651c..f59f8bf2f1b 100644 --- a/src/devices/bus/c64/tdos.h +++ b/src/devices/bus/c64/tdos.h @@ -31,12 +31,12 @@ class c64_tdos_cartridge_device : public device_t, 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; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; // device_c64_expansion_card_interface overrides virtual uint8_t c64_cd_r(offs_t offset, uint8_t data, int sphi2, int ba, int roml, int romh, int io1, int io2) override; diff --git a/src/devices/bus/c64/tibdd001.h b/src/devices/bus/c64/tibdd001.h index 12705c436bd..57b75fddef7 100644 --- a/src/devices/bus/c64/tibdd001.h +++ b/src/devices/bus/c64/tibdd001.h @@ -33,11 +33,11 @@ class c64_tib_dd_001_device : public device_t, 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; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; // device_c64_expansion_card_interface overrides virtual uint8_t c64_cd_r(offs_t offset, uint8_t data, int sphi2, int ba, int roml, int romh, int io1, int io2) override; diff --git a/src/devices/bus/c64/turbo232.h b/src/devices/bus/c64/turbo232.h index 68d0929f629..bd5f1b05f4e 100644 --- a/src/devices/bus/c64/turbo232.h +++ b/src/devices/bus/c64/turbo232.h @@ -33,12 +33,12 @@ class c64_turbo232_cartridge_device : public device_t, 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; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; // device_c64_expansion_card_interface overrides virtual uint8_t c64_cd_r(offs_t offset, uint8_t data, int sphi2, int ba, int roml, int romh, int io1, int io2) override; diff --git a/src/devices/bus/c64/vizastar.h b/src/devices/bus/c64/vizastar.h index 26ec63cd46b..3866da432d8 100644 --- a/src/devices/bus/c64/vizastar.h +++ b/src/devices/bus/c64/vizastar.h @@ -31,7 +31,7 @@ class c64_vizastar_cartridge_device : public device_t, protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_c64_expansion_card_interface overrides virtual uint8_t c64_cd_r(offs_t offset, uint8_t data, int sphi2, int ba, int roml, int romh, int io1, int io2) override; diff --git a/src/devices/bus/c64/vw64.h b/src/devices/bus/c64/vw64.h index 00b94969413..dafcd2d58e8 100644 --- a/src/devices/bus/c64/vw64.h +++ b/src/devices/bus/c64/vw64.h @@ -31,8 +31,8 @@ class c64_vizawrite_cartridge_device : public device_t, 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; // device_c64_expansion_card_interface overrides virtual uint8_t c64_cd_r(offs_t offset, uint8_t data, int sphi2, int ba, int roml, int romh, int io1, int io2) override; diff --git a/src/devices/bus/c64/warp_speed.h b/src/devices/bus/c64/warp_speed.h index d5c61f50f49..9677cf61691 100644 --- a/src/devices/bus/c64/warp_speed.h +++ b/src/devices/bus/c64/warp_speed.h @@ -30,12 +30,12 @@ class c64_warp_speed_cartridge_device : public device_t, c64_warp_speed_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // optional information overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; 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; // device_c64_expansion_card_interface overrides virtual uint8_t c64_cd_r(offs_t offset, uint8_t data, int sphi2, int ba, int roml, int romh, int io1, int io2) override; diff --git a/src/devices/bus/c64/westermann.h b/src/devices/bus/c64/westermann.h index 4b7b2e4389f..36244f9b295 100644 --- a/src/devices/bus/c64/westermann.h +++ b/src/devices/bus/c64/westermann.h @@ -31,8 +31,8 @@ class c64_westermann_cartridge_device : public device_t, 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; // device_c64_expansion_card_interface overrides virtual uint8_t c64_cd_r(offs_t offset, uint8_t data, int sphi2, int ba, int roml, int romh, int io1, int io2) override; diff --git a/src/devices/bus/c64/xl80.h b/src/devices/bus/c64/xl80.h index 6d5ca071262..8f9b7124e64 100644 --- a/src/devices/bus/c64/xl80.h +++ b/src/devices/bus/c64/xl80.h @@ -33,12 +33,12 @@ class c64_xl80_device : public device_t, 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; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; // device_c64_expansion_card_interface overrides virtual uint8_t c64_cd_r(offs_t offset, uint8_t data, int sphi2, int ba, int roml, int romh, int io1, int io2) override; diff --git a/src/devices/bus/c64/z80videopak.h b/src/devices/bus/c64/z80videopak.h index 0e563518ca9..d35b298755c 100644 --- a/src/devices/bus/c64/z80videopak.h +++ b/src/devices/bus/c64/z80videopak.h @@ -32,12 +32,12 @@ class c64_z80videopak_device : public c64_cpm_cartridge_device 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; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; // device_c64_expansion_card_interface overrides virtual uint8_t c64_cd_r(offs_t offset, uint8_t data, int sphi2, int ba, int roml, int romh, int io1, int io2) override; diff --git a/src/devices/bus/c64/zaxxon.h b/src/devices/bus/c64/zaxxon.h index 8e47d4caff7..e71135ee7c2 100644 --- a/src/devices/bus/c64/zaxxon.h +++ b/src/devices/bus/c64/zaxxon.h @@ -31,7 +31,7 @@ class c64_zaxxon_cartridge_device : public device_t, protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_c64_expansion_card_interface overrides virtual uint8_t c64_cd_r(offs_t offset, uint8_t data, int sphi2, int ba, int roml, int romh, int io1, int io2) override; diff --git a/src/devices/bus/casloopy/rom.h b/src/devices/bus/casloopy/rom.h index 76adb3e767a..5c6640ff43e 100644 --- a/src/devices/bus/casloopy/rom.h +++ b/src/devices/bus/casloopy/rom.h @@ -29,7 +29,7 @@ class casloopy_rom_device : public device_t, protected: casloopy_rom_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: const u16 *m_rom_base; @@ -48,7 +48,7 @@ class casloopy_adpcm_device : public casloopy_rom_device casloopy_adpcm_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); protected: - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; // device type definition diff --git a/src/devices/bus/casloopy/slot.h b/src/devices/bus/casloopy/slot.h index cc317dd817a..cce1effae96 100644 --- a/src/devices/bus/casloopy/slot.h +++ b/src/devices/bus/casloopy/slot.h @@ -80,7 +80,7 @@ class casloopy_cart_slot_device : public device_t, protected: // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; device_casloopy_cart_interface *m_cart; }; diff --git a/src/devices/bus/cbm2/24k.h b/src/devices/bus/cbm2/24k.h index 554ba721444..31f249528df 100644 --- a/src/devices/bus/cbm2/24k.h +++ b/src/devices/bus/cbm2/24k.h @@ -30,7 +30,7 @@ class cbm2_24k_cartridge_device : public device_t, protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_cbm2_expansion_card_interface overrides virtual uint8_t cbm2_bd_r(offs_t offset, uint8_t data, int csbank1, int csbank2, int csbank3) override; diff --git a/src/devices/bus/cbm2/exp.h b/src/devices/bus/cbm2/exp.h index 83eac3589bf..fdf3c5a7305 100644 --- a/src/devices/bus/cbm2/exp.h +++ b/src/devices/bus/cbm2/exp.h @@ -67,7 +67,7 @@ class cbm2_expansion_slot_device : public device_t, protected: // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_image_interface implementation virtual std::pair call_load() override; diff --git a/src/devices/bus/cbm2/hrg.h b/src/devices/bus/cbm2/hrg.h index 3b6a20c94e8..51ce00aa648 100644 --- a/src/devices/bus/cbm2/hrg.h +++ b/src/devices/bus/cbm2/hrg.h @@ -27,15 +27,15 @@ class cbm2_hrg_device : public device_t, { public: // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; protected: // construction/destruction cbm2_hrg_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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; // device_cbm2_expansion_card_interface overrides virtual uint8_t cbm2_bd_r(offs_t offset, uint8_t data, int csbank1, int csbank2, int csbank3) override; @@ -58,10 +58,10 @@ class cbm2_hrg_a_device : public cbm2_hrg_device protected: // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: - void hrg_a_map(address_map &map); + void hrg_a_map(address_map &map) ATTR_COLD; }; @@ -75,10 +75,10 @@ class cbm2_hrg_b_device : public cbm2_hrg_device protected: // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: - void hrg_b_map(address_map &map); + void hrg_b_map(address_map &map) ATTR_COLD; }; diff --git a/src/devices/bus/cbm2/std.h b/src/devices/bus/cbm2/std.h index ee941ca580a..cb16ee5511a 100644 --- a/src/devices/bus/cbm2/std.h +++ b/src/devices/bus/cbm2/std.h @@ -30,7 +30,7 @@ class cbm2_standard_cartridge_device : public device_t, protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_cbm2_expansion_card_interface overrides virtual uint8_t cbm2_bd_r(offs_t offset, uint8_t data, int csbank1, int csbank2, int csbank3) override; diff --git a/src/devices/bus/cbm2/user.h b/src/devices/bus/cbm2/user.h index 8f5de9555a9..df31b854c51 100644 --- a/src/devices/bus/cbm2/user.h +++ b/src/devices/bus/cbm2/user.h @@ -108,7 +108,7 @@ class cbm2_user_port_device : public device_t, public device_single_card_slot_in protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; devcb_write_line m_write_irq; devcb_write_line m_write_sp; diff --git a/src/devices/bus/cbmiec/c1526.h b/src/devices/bus/cbmiec/c1526.h index d5042f283f1..90d84568349 100644 --- a/src/devices/bus/cbmiec/c1526.h +++ b/src/devices/bus/cbmiec/c1526.h @@ -30,9 +30,9 @@ class c1526_device_base : public device_t c1526_device_base(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // device-level overrides - virtual void device_start() override; - virtual void device_reset() override; - void c1526_mem(address_map &map); + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; + void c1526_mem(address_map &map) ATTR_COLD; }; @@ -46,9 +46,9 @@ class c1526_device : public c1526_device_base, public device_cbm_iec_interface protected: // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; - virtual const tiny_rom_entry *device_rom_region() const override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; // device_cbm_iec_interface overrides void cbm_iec_atn(int state) override; @@ -67,9 +67,9 @@ class c4023_device : public c1526_device_base, public device_ieee488_interface protected: // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; - virtual const tiny_rom_entry *device_rom_region() const override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; // device_ieee488_interface overrides virtual void ieee488_atn(int state) override; diff --git a/src/devices/bus/cbmiec/c1541.h b/src/devices/bus/cbmiec/c1541.h index 09e12a0f265..216fd71debf 100644 --- a/src/devices/bus/cbmiec/c1541.h +++ b/src/devices/bus/cbmiec/c1541.h @@ -36,12 +36,12 @@ class c1541_device_base : public device_t, c1541_device_base(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); // 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; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; // device_cbm_iec_interface overrides virtual void cbm_iec_atn(int state) override; @@ -53,9 +53,9 @@ class c1541_device_base : public device_t, required_device m_floppy; - void c1541_mem(address_map &map); - void c1541dd_mem(address_map &map); - void c1541pd_mem(address_map &map); + void c1541_mem(address_map &map) ATTR_COLD; + void c1541dd_mem(address_map &map) ATTR_COLD; + void c1541pd_mem(address_map &map) ATTR_COLD; required_device m_maincpu; @@ -107,7 +107,7 @@ class c1540_device : public c1541_device_base protected: // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; }; @@ -121,7 +121,7 @@ class c1541_device : public c1541_device_base protected: // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; }; @@ -135,8 +135,8 @@ class c1541c_device : public c1541_device_base protected: // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: virtual uint8_t via0_pa_r() override; @@ -153,7 +153,7 @@ class c1541ii_device : public c1541_device_base protected: // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; }; @@ -167,7 +167,7 @@ class sx1541_device : public c1541_device_base protected: // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; }; @@ -181,7 +181,7 @@ class fsd1_device : public c1541_device_base protected: // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; }; @@ -195,10 +195,10 @@ class fsd2_device : public c1541_device_base protected: // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; }; @@ -212,7 +212,7 @@ class csd1_device : public c1541_device_base protected: // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; }; @@ -226,8 +226,8 @@ class c1541_dolphin_dos_device : public c1541_device_base protected: // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; @@ -241,8 +241,8 @@ class c1541_professional_dos_v1_device : public c1541_device_base protected: // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; @@ -256,8 +256,8 @@ class c1541_prologic_dos_classic_device : public c1541_device_base protected: // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: required_device m_pia; @@ -272,7 +272,7 @@ class c1541_prologic_dos_classic_device : public c1541_device_base uint8_t read(); void write(uint8_t data); - void c1541pdc_mem(address_map &map); + void c1541pdc_mem(address_map &map) ATTR_COLD; }; @@ -286,7 +286,7 @@ class indus_gt_device : public c1541_device_base protected: // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; }; @@ -300,7 +300,7 @@ class technica_device : public c1541_device_base protected: // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; }; @@ -314,7 +314,7 @@ class blue_chip_device : public c1541_device_base protected: // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; }; @@ -328,7 +328,7 @@ class commander_c2_device : public c1541_device_base protected: // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; }; @@ -342,7 +342,7 @@ class enhancer_2000_device : public c1541_device_base protected: // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; }; @@ -356,7 +356,7 @@ class fd148_device : public c1541_device_base protected: // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; }; @@ -370,7 +370,7 @@ class msd_sd1_device : public c1541_device_base protected: // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; }; @@ -384,7 +384,7 @@ class msd_sd2_device : public c1541_device_base protected: // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; }; diff --git a/src/devices/bus/cbmiec/c1571.h b/src/devices/bus/cbmiec/c1571.h index 0b83fccfb21..d7067ab060a 100644 --- a/src/devices/bus/cbmiec/c1571.h +++ b/src/devices/bus/cbmiec/c1571.h @@ -68,18 +68,18 @@ class c1571_device : public device_t, public device_cbm_iec_interface, public de void wpt_callback(floppy_image_device *floppy, int state); - void c1571_mem(address_map &map); + void c1571_mem(address_map &map) ATTR_COLD; protected: c1571_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; // device_cbm_iec_interface overrides virtual void cbm_iec_srq(int state) override; @@ -138,8 +138,8 @@ class c1570_device : public c1571_device protected: // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; @@ -153,8 +153,8 @@ class c1571cr_device : public c1571_device protected: // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: void via0_pa_w(uint8_t data); @@ -172,15 +172,15 @@ class mini_chief_device : public c1571_device protected: // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: uint8_t cia_pa_r(); void cia_pa_w(uint8_t data); void cia_pb_w(uint8_t data); - void mini_chief_mem(address_map &map); + void mini_chief_mem(address_map &map) ATTR_COLD; }; diff --git a/src/devices/bus/cbmiec/c1581.h b/src/devices/bus/cbmiec/c1581.h index 299e735844a..0bd747a4f12 100644 --- a/src/devices/bus/cbmiec/c1581.h +++ b/src/devices/bus/cbmiec/c1581.h @@ -42,13 +42,13 @@ class c1581_device : public device_t, public device_cbm_iec_interface c1581_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; // device_cbm_iec_interface overrides virtual void cbm_iec_srq(int state) override; @@ -72,7 +72,7 @@ class c1581_device : public device_t, public device_cbm_iec_interface uint8_t cia_pb_r(); void cia_pb_w(uint8_t data); - void c1581_mem(address_map &map); + void c1581_mem(address_map &map) ATTR_COLD; static void floppy_formats(format_registration &fr); @@ -100,7 +100,7 @@ class c1563_device : public c1581_device c1563_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; }; diff --git a/src/devices/bus/cbmiec/c64_nl10.h b/src/devices/bus/cbmiec/c64_nl10.h index a45322e3f53..d183288421f 100644 --- a/src/devices/bus/cbmiec/c64_nl10.h +++ b/src/devices/bus/cbmiec/c64_nl10.h @@ -29,10 +29,10 @@ class c64_nl10_interface_device : public device_t, public device_cbm_iec_interfa protected: // device-level overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; // device_cbm_iec_interface overrides void cbm_iec_atn(int state) override; @@ -40,7 +40,7 @@ class c64_nl10_interface_device : public device_t, public device_cbm_iec_interfa void cbm_iec_reset(int state) override; private: - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; }; diff --git a/src/devices/bus/cbmiec/cbmiec.h b/src/devices/bus/cbmiec/cbmiec.h index 732be55fe19..fafea819abb 100644 --- a/src/devices/bus/cbmiec/cbmiec.h +++ b/src/devices/bus/cbmiec/cbmiec.h @@ -82,9 +82,9 @@ class cbm_iec_device : public device_t }; // device-level overrides - virtual void device_start() override; - virtual void device_reset() override; - virtual void device_stop() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; + virtual void device_stop() override ATTR_COLD; class daisy_entry { @@ -149,7 +149,7 @@ class cbm_iec_slot_device : public device_t, int get_address() { return m_address; } // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; protected: int m_address; diff --git a/src/devices/bus/cbmiec/cmdhd.h b/src/devices/bus/cbmiec/cmdhd.h index 8c6836f36bf..bf4493d92e0 100644 --- a/src/devices/bus/cbmiec/cmdhd.h +++ b/src/devices/bus/cbmiec/cmdhd.h @@ -34,12 +34,12 @@ class cmd_hd_device : public device_t, public device_cbm_iec_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; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; // device_cbm_iec_interface overrides void cbm_iec_srq(int state) override; @@ -53,7 +53,7 @@ class cmd_hd_device : public device_t, public device_cbm_iec_interface void led_w(uint8_t data); - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; }; diff --git a/src/devices/bus/cbmiec/diag264_lb_iec.h b/src/devices/bus/cbmiec/diag264_lb_iec.h index 6611fee413d..8d32d19d106 100644 --- a/src/devices/bus/cbmiec/diag264_lb_iec.h +++ b/src/devices/bus/cbmiec/diag264_lb_iec.h @@ -30,7 +30,7 @@ class diag264_serial_loopback_device : public device_t, protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_cbm_iec_interface overrides virtual void cbm_iec_atn(int state) override; diff --git a/src/devices/bus/cbmiec/fd2000.h b/src/devices/bus/cbmiec/fd2000.h index 7ffe3192b79..04ac1264f79 100644 --- a/src/devices/bus/cbmiec/fd2000.h +++ b/src/devices/bus/cbmiec/fd2000.h @@ -43,12 +43,12 @@ class fd2000_device : public device_t, fd2000_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; // device_cbm_iec_interface overrides void cbm_iec_srq(int state) override; @@ -63,7 +63,7 @@ class fd2000_device : public device_t, required_device m_floppy0; private: - void fd2000_mem(address_map &map); + void fd2000_mem(address_map &map) ATTR_COLD; }; @@ -76,11 +76,11 @@ class fd4000_device : public fd2000_device fd4000_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 void device_add_mconfig(machine_config &config) override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: - void fd4000_mem(address_map &map); + void fd4000_mem(address_map &map) ATTR_COLD; }; diff --git a/src/devices/bus/cbmiec/interpod.h b/src/devices/bus/cbmiec/interpod.h index 7278ed68c1a..66d47dea6fd 100644 --- a/src/devices/bus/cbmiec/interpod.h +++ b/src/devices/bus/cbmiec/interpod.h @@ -36,12 +36,12 @@ class cbm_interpod_device : public device_t, 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; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: required_device m_maincpu; @@ -51,7 +51,7 @@ class cbm_interpod_device : public device_t, required_device m_ieee; required_device m_rs232; - void interpod_mem(address_map &map); + void interpod_mem(address_map &map) ATTR_COLD; }; diff --git a/src/devices/bus/cbmiec/mps1200.h b/src/devices/bus/cbmiec/mps1200.h index 7d72b70d3ee..b9f017724e1 100644 --- a/src/devices/bus/cbmiec/mps1200.h +++ b/src/devices/bus/cbmiec/mps1200.h @@ -32,10 +32,10 @@ class mps1200_device : public device_t, public device_cbm_iec_interface mps1200_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); // device-level overrides - virtual void device_start() override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; - virtual const tiny_rom_entry *device_rom_region() const override; + virtual void device_start() override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; // device_cbm_iec_interface overrides void cbm_iec_atn(int state) override; @@ -43,8 +43,8 @@ class mps1200_device : public device_t, public device_cbm_iec_interface void cbm_iec_reset(int state) override; private: - void mem_map(address_map &map); - void data_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void data_map(address_map &map) ATTR_COLD; required_device m_mpscpu; }; @@ -58,8 +58,8 @@ class mps1250_device : public mps1200_device mps1250_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); protected: - virtual ioport_constructor device_input_ports() const override; - virtual const tiny_rom_entry *device_rom_region() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; }; diff --git a/src/devices/bus/cbmiec/serialbox.h b/src/devices/bus/cbmiec/serialbox.h index 16cb099e247..4b51d5752ef 100644 --- a/src/devices/bus/cbmiec/serialbox.h +++ b/src/devices/bus/cbmiec/serialbox.h @@ -30,12 +30,12 @@ class cbm_serial_box_device : public device_t, public device_cbm_iec_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; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; // device_cbm_iec_interface overrides void cbm_iec_atn(int state) override; @@ -45,7 +45,7 @@ class cbm_serial_box_device : public device_t, public device_cbm_iec_interface private: required_device m_maincpu; - void serial_box_mem(address_map &map); + void serial_box_mem(address_map &map) ATTR_COLD; }; diff --git a/src/devices/bus/cbmiec/vic1515.h b/src/devices/bus/cbmiec/vic1515.h index 1b84636e6d3..80c555d6936 100644 --- a/src/devices/bus/cbmiec/vic1515.h +++ b/src/devices/bus/cbmiec/vic1515.h @@ -30,13 +30,13 @@ class vic1515_device : public device_t, public device_cbm_iec_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; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; // device_cbm_iec_interface overrides void cbm_iec_atn(int state) override; @@ -44,8 +44,8 @@ class vic1515_device : public device_t, public device_cbm_iec_interface void cbm_iec_reset(int state) override; private: - void vic1515_io(address_map &map); - void vic1515_mem(address_map &map); + void vic1515_io(address_map &map) ATTR_COLD; + void vic1515_mem(address_map &map) ATTR_COLD; }; diff --git a/src/devices/bus/cbmiec/vic1520.h b/src/devices/bus/cbmiec/vic1520.h index 37659c19942..d379f512e38 100644 --- a/src/devices/bus/cbmiec/vic1520.h +++ b/src/devices/bus/cbmiec/vic1520.h @@ -30,12 +30,12 @@ class vic1520_device : public device_t, public device_cbm_iec_interface protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; // device_cbm_iec_interface overrides void cbm_iec_atn(int state) override; diff --git a/src/devices/bus/cbus/mpu_pc98.h b/src/devices/bus/cbus/mpu_pc98.h index 59bbf542166..af5b1e04391 100644 --- a/src/devices/bus/cbus/mpu_pc98.h +++ b/src/devices/bus/cbus/mpu_pc98.h @@ -22,17 +22,17 @@ class mpu_pc98_device : public device_t 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; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: // called back by the MPU401 core to set the IRQ line state void mpu_irq_out(int state); - void map(address_map &map); + void map(address_map &map) ATTR_COLD; required_device m_bus; required_device m_mpu401; diff --git a/src/devices/bus/cbus/pc9801_118.h b/src/devices/bus/cbus/pc9801_118.h index f847307413f..e73872e072a 100644 --- a/src/devices/bus/cbus/pc9801_118.h +++ b/src/devices/bus/cbus/pc9801_118.h @@ -38,12 +38,12 @@ class pc9801_118_device : public pc9801_snd_device protected: // device-level overrides virtual void device_validity_check(validity_checker &valid) const override; - 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 ioport_constructor device_input_ports() const override; - virtual const tiny_rom_entry *device_rom_region() const override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; virtual u16 read_io_base() override; private: diff --git a/src/devices/bus/cbus/pc9801_26.h b/src/devices/bus/cbus/pc9801_26.h index 3b18abfd66d..ae7012a6619 100644 --- a/src/devices/bus/cbus/pc9801_26.h +++ b/src/devices/bus/cbus/pc9801_26.h @@ -33,12 +33,12 @@ class pc9801_26_device : public pc9801_snd_device protected: // device-level overrides virtual void device_validity_check(validity_checker &valid) const override; - 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 ioport_constructor device_input_ports() const override; - virtual const tiny_rom_entry *device_rom_region() const override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; virtual u16 read_io_base() override; private: diff --git a/src/devices/bus/cbus/pc9801_55.h b/src/devices/bus/cbus/pc9801_55.h index 0b20fc1f588..ee99051c124 100644 --- a/src/devices/bus/cbus/pc9801_55.h +++ b/src/devices/bus/cbus/pc9801_55.h @@ -36,12 +36,12 @@ class pc9801_55_device : public device_t protected: // device-level overrides virtual void device_validity_check(validity_checker &valid) const override; - 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 const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; +// virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; private: required_device m_bus; @@ -58,7 +58,7 @@ class pc9801_55u_device : public pc9801_55_device pc9801_55u_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); private: - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; }; @@ -68,7 +68,7 @@ class pc9801_55l_device : public pc9801_55_device pc9801_55l_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); private: - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; }; diff --git a/src/devices/bus/cbus/pc9801_86.h b/src/devices/bus/cbus/pc9801_86.h index 70102a03907..314d12cbd84 100644 --- a/src/devices/bus/cbus/pc9801_86.h +++ b/src/devices/bus/cbus/pc9801_86.h @@ -34,13 +34,13 @@ class pc9801_86_device : public pc9801_snd_device protected: // device-level overrides virtual void device_validity_check(validity_checker &valid) const override; - 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 void device_add_mconfig(machine_config &config) override ATTR_COLD; void opna_reset_routes_config(machine_config &config); - virtual ioport_constructor device_input_ports() const override; - virtual const tiny_rom_entry *device_rom_region() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; void pc9801_86_config(machine_config &config); virtual u16 read_io_base() override; @@ -49,7 +49,7 @@ class pc9801_86_device : public pc9801_snd_device required_device m_bus; required_device m_opna; - void opna_map(address_map &map); + void opna_map(address_map &map) ATTR_COLD; u8 opna_r(offs_t offset); void opna_w(offs_t offset, u8 data); @@ -85,10 +85,10 @@ class pc9801_speakboard_device : public pc9801_86_device void opna_slave_w(offs_t offset, u8 data); protected: - virtual void device_add_mconfig(machine_config &config) override; - 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 ATTR_COLD; + 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; private: required_device m_opna_slave; @@ -106,10 +106,10 @@ class otomichan_kai_device : public pc9801_86_device void opn2c_w(offs_t offset, u8 data); protected: - virtual void device_add_mconfig(machine_config &config) override; - 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 ATTR_COLD; + 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; private: required_device m_opn2c; diff --git a/src/devices/bus/cbus/pc9801_amd98.h b/src/devices/bus/cbus/pc9801_amd98.h index f26246c768b..450b17d9342 100644 --- a/src/devices/bus/cbus/pc9801_amd98.h +++ b/src/devices/bus/cbus/pc9801_amd98.h @@ -34,11 +34,11 @@ class pc9801_amd98_device : public device_t protected: // device-level overrides virtual void device_validity_check(validity_checker &valid) const override; - 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 ioport_constructor device_input_ports() const override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; private: void ay3_address_w(uint8_t data); diff --git a/src/devices/bus/cbus/pc9801_cbus.h b/src/devices/bus/cbus/pc9801_cbus.h index e59f76bf096..c822e8662aa 100644 --- a/src/devices/bus/cbus/pc9801_cbus.h +++ b/src/devices/bus/cbus/pc9801_cbus.h @@ -117,7 +117,7 @@ class pc9801_slot_device : public device_t, public device_slot_interface protected: // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void device_config_complete() override; private: diff --git a/src/devices/bus/centronics/chessmec.h b/src/devices/bus/centronics/chessmec.h index 60596c347cc..5123ef3fa04 100644 --- a/src/devices/bus/centronics/chessmec.h +++ b/src/devices/bus/centronics/chessmec.h @@ -25,7 +25,7 @@ class centronics_chessmec_device : public device_t, protected: // device-level overrides virtual void device_start() override { } - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual void input_data0(int state) override { if (started()) m_chessm->data0_w(state); } virtual void input_data1(int state) override { if (started()) m_chessm->reset_w(state); } diff --git a/src/devices/bus/centronics/comxpl80.h b/src/devices/bus/centronics/comxpl80.h index f01bb29008a..06e7a90923b 100644 --- a/src/devices/bus/centronics/comxpl80.h +++ b/src/devices/bus/centronics/comxpl80.h @@ -30,13 +30,13 @@ class comx_pl80_device : public device_t, 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; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; virtual void input_data0(int state) override { if (state) m_data |= 0x01; else m_data &= ~0x01; } virtual void input_data1(int state) override { if (state) m_data |= 0x02; else m_data &= ~0x02; } diff --git a/src/devices/bus/centronics/covox.h b/src/devices/bus/centronics/covox.h index 54f80e857a0..50ea2ec51f9 100644 --- a/src/devices/bus/centronics/covox.h +++ b/src/devices/bus/centronics/covox.h @@ -25,10 +25,10 @@ class centronics_covox_device : public device_t, protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual void input_data0(int state) override { if (state) m_data |= 0x01; else m_data &= ~0x01; update_dac(); } virtual void input_data1(int state) override { if (state) m_data |= 0x02; else m_data &= ~0x02; update_dac(); } @@ -61,10 +61,10 @@ class centronics_covox_stereo_device : public device_t, protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual void input_strobe(int state) override { m_strobe = state; update_dac(); } virtual void input_data0(int state) override { if (state) m_data |= 0x01; else m_data &= ~0x01; update_dac(); } diff --git a/src/devices/bus/centronics/ctronics.h b/src/devices/bus/centronics/ctronics.h index 15e17e3782b..cd3c9449705 100644 --- a/src/devices/bus/centronics/ctronics.h +++ b/src/devices/bus/centronics/ctronics.h @@ -81,8 +81,8 @@ class centronics_device : public device_t, public device_slot_interface protected: // device-level overrides virtual void device_config_complete() override; - virtual void device_reset() override; - virtual void device_start() override; + virtual void device_reset() override ATTR_COLD; + virtual void device_start() override ATTR_COLD; devcb_write_line m_strobe_handler; devcb_write_line m_data0_handler; diff --git a/src/devices/bus/centronics/digiblst.h b/src/devices/bus/centronics/digiblst.h index cae7d7b5767..f779105e771 100644 --- a/src/devices/bus/centronics/digiblst.h +++ b/src/devices/bus/centronics/digiblst.h @@ -31,10 +31,10 @@ class centronics_digiblaster_device : public device_t, protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual void input_data0(int state) override { if (state) m_data |= 0x01; else m_data &= ~0x01; update_dac(); } virtual void input_data1(int state) override { if (state) m_data |= 0x02; else m_data &= ~0x02; update_dac(); } diff --git a/src/devices/bus/centronics/dsjoy.h b/src/devices/bus/centronics/dsjoy.h index 0ae1486f1e3..69724f1e0e0 100644 --- a/src/devices/bus/centronics/dsjoy.h +++ b/src/devices/bus/centronics/dsjoy.h @@ -22,8 +22,8 @@ class dempa_shinbunsha_joystick_device : public device_t, protected: // device-level overrides - 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 void input_data0(int state) override { if (state) m_data |= 0x01; else m_data &= ~0x01; update_perror(); } virtual void input_data1(int state) override { if (state) m_data |= 0x02; else m_data &= ~0x02; update_perror(); } diff --git a/src/devices/bus/centronics/epson_ex800.h b/src/devices/bus/centronics/epson_ex800.h index 4c60b8cc847..703882b02a4 100644 --- a/src/devices/bus/centronics/epson_ex800.h +++ b/src/devices/bus/centronics/epson_ex800.h @@ -33,13 +33,13 @@ class epson_ex800_device : public device_t, public device_centronics_peripheral 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; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; virtual bool supports_pin35_5v() override { return true; } @@ -59,7 +59,7 @@ class epson_ex800_device : public device_t, public device_centronics_peripheral uint8_t gate7a_r(offs_t offset); void gate7a_w(offs_t offset, uint8_t data); - void ex800_mem(address_map &map); + void ex800_mem(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_beeper; diff --git a/src/devices/bus/centronics/epson_lx800.h b/src/devices/bus/centronics/epson_lx800.h index b1ec0b7ce82..2d61afcc5ef 100644 --- a/src/devices/bus/centronics/epson_lx800.h +++ b/src/devices/bus/centronics/epson_lx800.h @@ -34,13 +34,13 @@ class epson_lx800_device : public device_t, public device_centronics_peripheral epson_lx800_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; virtual bool supports_pin35_5v() override { return true; } @@ -61,7 +61,7 @@ class epson_lx800_device : public device_t, public device_centronics_peripheral void centronics_pe_w(int state); void reset_w(int state); - void lx800_mem(address_map &map); + void lx800_mem(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_beep; diff --git a/src/devices/bus/centronics/epson_lx810l.h b/src/devices/bus/centronics/epson_lx810l.h index 37383771b5d..adf5f1af672 100644 --- a/src/devices/bus/centronics/epson_lx810l.h +++ b/src/devices/bus/centronics/epson_lx810l.h @@ -55,13 +55,13 @@ class epson_lx810l_device : public device_t, public device_centronics_peripheral epson_lx810l_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; virtual bool supports_pin35_5v() override { return true; } @@ -113,7 +113,7 @@ class epson_lx810l_device : public device_t, public device_centronics_peripheral m_bitmap_printer->set_led_state(bitmap_printer_device::LED_READY, m_ready_led); } - void lx810l_mem(address_map &map); + void lx810l_mem(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_bitmap_printer; @@ -156,7 +156,7 @@ class epson_ap2000_device : public epson_lx810l_device protected: // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; }; diff --git a/src/devices/bus/centronics/nec_p72.h b/src/devices/bus/centronics/nec_p72.h index f7ba6d59a73..7fe4aa23114 100644 --- a/src/devices/bus/centronics/nec_p72.h +++ b/src/devices/bus/centronics/nec_p72.h @@ -26,16 +26,16 @@ class nec_p72_device : public device_t, nec_p72_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: required_device m_maincpu; - void p72_mem(address_map &map); + void p72_mem(address_map &map) ATTR_COLD; }; // device type definition diff --git a/src/devices/bus/centronics/nlq401.h b/src/devices/bus/centronics/nlq401.h index 291a10cb0bf..19d6e088e07 100644 --- a/src/devices/bus/centronics/nlq401.h +++ b/src/devices/bus/centronics/nlq401.h @@ -26,10 +26,10 @@ class nlq401_device : public device_t, public device_centronics_peripheral_inter protected: // device-level overrides - virtual void device_start() override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; - virtual const tiny_rom_entry *device_rom_region() const override; + virtual void device_start() override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; // device_centronics_peripheral_interface overrides virtual void input_data0(int state) override; @@ -48,7 +48,7 @@ class nlq401_device : public device_t, public device_centronics_peripheral_inter void expander_w(u8 data); u8 expander_r(); - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; required_device m_inpexp; required_device m_outexp; diff --git a/src/devices/bus/centronics/printer.h b/src/devices/bus/centronics/printer.h index ff4d0e3fe16..5a346fdc640 100644 --- a/src/devices/bus/centronics/printer.h +++ b/src/devices/bus/centronics/printer.h @@ -30,9 +30,9 @@ class centronics_printer_device : public device_t, protected: // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; virtual bool supports_pin35_5v() override { return true; } diff --git a/src/devices/bus/centronics/samdac.h b/src/devices/bus/centronics/samdac.h index 7c793d59a0a..1f14fef9919 100644 --- a/src/devices/bus/centronics/samdac.h +++ b/src/devices/bus/centronics/samdac.h @@ -39,8 +39,8 @@ class centronics_samdac_device : public device_t, public device_centronics_perip virtual void input_data7(int state) override { update_data(7, state); } protected: - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; private: void update_data(int bit, int state); diff --git a/src/devices/bus/centronics/smartboard.h b/src/devices/bus/centronics/smartboard.h index 25131141b3f..46251b68b22 100644 --- a/src/devices/bus/centronics/smartboard.h +++ b/src/devices/bus/centronics/smartboard.h @@ -25,7 +25,7 @@ class centronics_smartboard_device : public device_t, protected: // device-level overrides virtual void device_start() override { } - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual void input_data0(int state) override { if (started()) m_smartboard->data0_w(state); } virtual void input_data7(int state) override { if (started()) m_smartboard->data1_w(state); } diff --git a/src/devices/bus/centronics/spjoy.h b/src/devices/bus/centronics/spjoy.h index 1095f242def..d16d042cfd9 100644 --- a/src/devices/bus/centronics/spjoy.h +++ b/src/devices/bus/centronics/spjoy.h @@ -22,8 +22,8 @@ class serial_port_joystick_device : public device_t, protected: // device-level overrides - 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 void input_data0(int state) override { if (state) m_data |= 0x01; else m_data &= ~0x01; update_busy_ack(); } virtual void input_data1(int state) override { if (state) m_data |= 0x02; else m_data &= ~0x02; update_busy_ack(); } diff --git a/src/devices/bus/cgenie/expansion/expansion.h b/src/devices/bus/cgenie/expansion/expansion.h index c8284b43a70..bb8a57513d7 100644 --- a/src/devices/bus/cgenie/expansion/expansion.h +++ b/src/devices/bus/cgenie/expansion/expansion.h @@ -82,7 +82,7 @@ class cg_exp_slot_device : public device_t, public device_single_card_slot_inter protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; device_cg_exp_interface *m_cart; diff --git a/src/devices/bus/cgenie/expansion/floppy.h b/src/devices/bus/cgenie/expansion/floppy.h index 81e45bd2eb9..f2595b22d52 100644 --- a/src/devices/bus/cgenie/expansion/floppy.h +++ b/src/devices/bus/cgenie/expansion/floppy.h @@ -31,10 +31,10 @@ class cgenie_fdc_device : public device_t, public device_cg_exp_interface cgenie_fdc_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 void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: DECLARE_DEVICE_IMAGE_LOAD_MEMBER(socket_load); @@ -47,7 +47,7 @@ class cgenie_fdc_device : public device_t, public device_cg_exp_interface void select_w(uint8_t data); void command_w(uint8_t data); - void mmio(address_map &map); + void mmio(address_map &map) ATTR_COLD; static void floppy_formats(format_registration &fr); diff --git a/src/devices/bus/cgenie/parallel/joystick.h b/src/devices/bus/cgenie/parallel/joystick.h index 6a4025ada9f..0430adc5f7a 100644 --- a/src/devices/bus/cgenie/parallel/joystick.h +++ b/src/devices/bus/cgenie/parallel/joystick.h @@ -27,9 +27,9 @@ class cgenie_joystick_device : public device_t, public device_cg_parallel_interf cgenie_joystick_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - virtual void device_start() override; - virtual void device_reset() override; - virtual ioport_constructor device_input_ports() const override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; virtual void pa_w(uint8_t data) override; virtual uint8_t pb_r() override; diff --git a/src/devices/bus/cgenie/parallel/parallel.h b/src/devices/bus/cgenie/parallel/parallel.h index 74fb8b7a50b..9cf135ff068 100644 --- a/src/devices/bus/cgenie/parallel/parallel.h +++ b/src/devices/bus/cgenie/parallel/parallel.h @@ -58,7 +58,7 @@ class cg_parallel_slot_device : public device_t, public device_single_card_slot_ protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; device_cg_parallel_interface *m_cart; }; diff --git a/src/devices/bus/cgenie/parallel/printer.h b/src/devices/bus/cgenie/parallel/printer.h index 6d1d49ad61e..e3f83b62a72 100644 --- a/src/devices/bus/cgenie/parallel/printer.h +++ b/src/devices/bus/cgenie/parallel/printer.h @@ -28,9 +28,9 @@ class cgenie_printer_device : public device_t, public device_cg_parallel_interfa cgenie_printer_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 void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; virtual void pa_w(uint8_t data) override; virtual uint8_t pb_r() override; diff --git a/src/devices/bus/chanf/rom.h b/src/devices/bus/chanf/rom.h index 76221811881..bff8c87e711 100644 --- a/src/devices/bus/chanf/rom.h +++ b/src/devices/bus/chanf/rom.h @@ -45,8 +45,8 @@ class chanf_maze_device : public chanf_rom_device chanf_maze_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // 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; // reading and writing virtual uint8_t read_ram(offs_t offset) override { return common_read_2102(offset); } @@ -63,8 +63,8 @@ class chanf_hangman_device : public chanf_rom_device chanf_hangman_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // 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; // reading and writing virtual uint8_t read_ram(offs_t offset) override { return common_read_2102(offset); } @@ -95,8 +95,8 @@ class chanf_multi_old_device : public chanf_rom_device chanf_multi_old_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // 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; // reading and writing virtual uint8_t read_rom(offs_t offset) override; @@ -118,8 +118,8 @@ class chanf_multi_final_device : public chanf_rom_device chanf_multi_final_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // 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; // reading and writing virtual uint8_t read_rom(offs_t offset) override; diff --git a/src/devices/bus/chanf/slot.h b/src/devices/bus/chanf/slot.h index 2b534cdbe78..01235a7595b 100644 --- a/src/devices/bus/chanf/slot.h +++ b/src/devices/bus/chanf/slot.h @@ -100,7 +100,7 @@ class channelf_cart_slot_device : public device_t, protected: // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; int m_type; device_channelf_cart_interface* m_cart; diff --git a/src/devices/bus/coco/coco_dcmodem.cpp b/src/devices/bus/coco/coco_dcmodem.cpp index 0618c2fdbad..b3f7eba1b46 100644 --- a/src/devices/bus/coco/coco_dcmodem.cpp +++ b/src/devices/bus/coco/coco_dcmodem.cpp @@ -46,7 +46,7 @@ namespace } // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; // callbacks void uart_irq_w(int state) @@ -63,7 +63,7 @@ namespace write8sm_delegate(*m_uart, FUNC(mos6551_device::write))); } - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; // CoCo cartridge level overrides virtual u8 *get_cart_base() override diff --git a/src/devices/bus/coco/coco_dwsock.h b/src/devices/bus/coco/coco_dwsock.h index 6cbcc106488..a9d474e6087 100644 --- a/src/devices/bus/coco/coco_dwsock.h +++ b/src/devices/bus/coco/coco_dwsock.h @@ -28,7 +28,7 @@ class beckerport_device : public device_t virtual ~beckerport_device(); // optional information overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; virtual void device_start(void) override; virtual void device_stop(void) override; diff --git a/src/devices/bus/coco/coco_fdc.cpp b/src/devices/bus/coco/coco_fdc.cpp index 2eac7f8b7f3..0b4ec90d2cb 100644 --- a/src/devices/bus/coco/coco_fdc.cpp +++ b/src/devices/bus/coco/coco_fdc.cpp @@ -130,7 +130,7 @@ class coco_fdc_device_base : public coco_family_fdc_device_base virtual u8 cts_read(offs_t offset) override; virtual u8 scs_read(offs_t offset) override; virtual void scs_write(offs_t offset, u8 data) override; - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; // methods virtual void update_lines() override; @@ -533,12 +533,12 @@ namespace protected: // 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; virtual u8 scs_read(offs_t offset) override; virtual void scs_write(offs_t offset, u8 data) override; - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual const tiny_rom_entry *device_rom_region() const override { diff --git a/src/devices/bus/coco/coco_fdc.h b/src/devices/bus/coco/coco_fdc.h index f5279fe445b..4097b4b2e08 100644 --- a/src/devices/bus/coco/coco_fdc.h +++ b/src/devices/bus/coco/coco_fdc.h @@ -41,8 +41,8 @@ class coco_family_fdc_device_base : }; // 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; // FDC overrides virtual void update_lines() = 0; diff --git a/src/devices/bus/coco/coco_gmc.cpp b/src/devices/bus/coco/coco_gmc.cpp index 122450ace26..bf7df5c24dc 100644 --- a/src/devices/bus/coco/coco_gmc.cpp +++ b/src/devices/bus/coco/coco_gmc.cpp @@ -39,7 +39,7 @@ namespace public: // construction/destruction coco_pak_gmc_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; protected: // device-level overrides diff --git a/src/devices/bus/coco/coco_ide.h b/src/devices/bus/coco/coco_ide.h index 465a4b0b8f6..46ce852e78b 100644 --- a/src/devices/bus/coco/coco_ide.h +++ b/src/devices/bus/coco/coco_ide.h @@ -25,13 +25,13 @@ class coco_ide_device : coco_ide_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; 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 u8 cts_read(offs_t offset) override; virtual void cts_write(offs_t offset, u8 data) override; diff --git a/src/devices/bus/coco/coco_max.cpp b/src/devices/bus/coco/coco_max.cpp index 611e4aad39f..ebe9573cbc4 100644 --- a/src/devices/bus/coco/coco_max.cpp +++ b/src/devices/bus/coco/coco_max.cpp @@ -51,9 +51,9 @@ namespace protected: // device-level overrides - virtual void device_start() override; - virtual void device_reset() override; - virtual ioport_constructor device_input_ports() const override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; u8 ff90_read(offs_t offset); diff --git a/src/devices/bus/coco/coco_midi.cpp b/src/devices/bus/coco/coco_midi.cpp index 965ca3d261a..118c8bcdb0d 100644 --- a/src/devices/bus/coco/coco_midi.cpp +++ b/src/devices/bus/coco/coco_midi.cpp @@ -30,10 +30,10 @@ class coco_midi_device : protected: coco_midi_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; required_device m_acia; void acia_irq_w(int state); @@ -49,7 +49,7 @@ class dragon_midi_device : public coco_midi_device protected: dragon_midi_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; }; coco_midi_device::coco_midi_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock) diff --git a/src/devices/bus/coco/coco_multi.cpp b/src/devices/bus/coco/coco_multi.cpp index 1e385dab107..b53409c8cc8 100644 --- a/src/devices/bus/coco/coco_multi.cpp +++ b/src/devices/bus/coco/coco_multi.cpp @@ -103,8 +103,8 @@ namespace coco_multipak_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); // 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 u8 cts_read(offs_t offset) override; virtual void cts_write(offs_t offset, u8 data) override; virtual u8 scs_read(offs_t offset) override; @@ -112,13 +112,13 @@ namespace virtual void set_sound_enable(bool sound_enable) override; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual u8 *get_cart_base() override; virtual u32 get_cart_size() override; virtual address_space &cartridge_space() override; - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; // device references required_device_array m_slots; @@ -155,7 +155,7 @@ class dragon_multipak_device : public coco_multipak_device protected: // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; diff --git a/src/devices/bus/coco/coco_orch90.cpp b/src/devices/bus/coco/coco_orch90.cpp index 7d149f36a26..83595798916 100644 --- a/src/devices/bus/coco/coco_orch90.cpp +++ b/src/devices/bus/coco/coco_orch90.cpp @@ -68,7 +68,7 @@ namespace protected: // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; // device-level overrides virtual void device_start() override diff --git a/src/devices/bus/coco/coco_pak.h b/src/devices/bus/coco/coco_pak.h index 2add297bbc6..b071ee1ee2f 100644 --- a/src/devices/bus/coco/coco_pak.h +++ b/src/devices/bus/coco/coco_pak.h @@ -22,8 +22,8 @@ class coco_pak_device : coco_pak_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual ioport_constructor device_input_ports() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; virtual u8 *get_cart_base() override; virtual u32 get_cart_size() override; @@ -33,8 +33,8 @@ class coco_pak_device : coco_pak_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); // 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 u8 cts_read(offs_t offset) override; // internal state @@ -56,9 +56,9 @@ class coco_pak_banked_device : public coco_pak_device coco_pak_banked_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); // device-level overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_start() override; - virtual void device_reset() override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; virtual u8 *get_cart_base() override; virtual u32 get_cart_size() override; virtual u8 cts_read(offs_t offset) override; diff --git a/src/devices/bus/coco/coco_psg.h b/src/devices/bus/coco/coco_psg.h index 34c344c26e7..7df3e1054fd 100644 --- a/src/devices/bus/coco/coco_psg.h +++ b/src/devices/bus/coco/coco_psg.h @@ -25,14 +25,14 @@ class coco_psg_device : coco_psg_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual const tiny_rom_entry *device_rom_region() const override; - virtual ioport_constructor device_input_ports() 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; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; 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 u8 cts_read(offs_t offset) override; virtual void cts_write(offs_t offset, u8 data) override; diff --git a/src/devices/bus/coco/coco_ram.cpp b/src/devices/bus/coco/coco_ram.cpp index 0fc1736f387..c4dfe3500d9 100644 --- a/src/devices/bus/coco/coco_ram.cpp +++ b/src/devices/bus/coco/coco_ram.cpp @@ -37,12 +37,12 @@ namespace public: // construction/destruction coco_pak_ram_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; 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 scs_write(offs_t offset, u8 data) override; virtual u8 scs_read(offs_t offset) override; required_device m_slot; diff --git a/src/devices/bus/coco/coco_rs232.cpp b/src/devices/bus/coco/coco_rs232.cpp index 2c747caf6a8..fbdea41fbf0 100644 --- a/src/devices/bus/coco/coco_rs232.cpp +++ b/src/devices/bus/coco/coco_rs232.cpp @@ -45,7 +45,7 @@ namespace } // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; void uart_irq_w(int state) { @@ -61,7 +61,7 @@ namespace write8sm_delegate(*m_uart, FUNC(mos6551_device::write))); } - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; // CoCo cartridge level overrides virtual u8 *get_cart_base() override diff --git a/src/devices/bus/coco/coco_ssc.cpp b/src/devices/bus/coco/coco_ssc.cpp index b99d8e2af40..6f5ff8443a6 100644 --- a/src/devices/bus/coco/coco_ssc.cpp +++ b/src/devices/bus/coco/coco_ssc.cpp @@ -88,9 +88,9 @@ namespace coco_ssc_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_reset() override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; u8 ssc_port_a_r(); void ssc_port_b_w(u8 data); @@ -101,7 +101,7 @@ namespace protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; u8 ff7d_read(offs_t offset); void ff7d_write(offs_t offset, u8 data); virtual void set_sound_enable(bool sound_enable) override; @@ -132,7 +132,7 @@ namespace protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // sound stream update overrides virtual void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; diff --git a/src/devices/bus/coco/coco_stecomp.cpp b/src/devices/bus/coco/coco_stecomp.cpp index 079fe481d35..83477fd41fb 100644 --- a/src/devices/bus/coco/coco_stecomp.cpp +++ b/src/devices/bus/coco/coco_stecomp.cpp @@ -46,7 +46,7 @@ namespace protected: // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; // device-level overrides virtual void device_start() override diff --git a/src/devices/bus/coco/coco_sym12.cpp b/src/devices/bus/coco/coco_sym12.cpp index cf9cc15bd0e..76b726b1bf5 100644 --- a/src/devices/bus/coco/coco_sym12.cpp +++ b/src/devices/bus/coco/coco_sym12.cpp @@ -46,7 +46,7 @@ namespace protected: // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; // device-level overrides virtual void device_start() override diff --git a/src/devices/bus/coco/coco_t4426.cpp b/src/devices/bus/coco/coco_t4426.cpp index b0f3b73d54c..896769ed716 100644 --- a/src/devices/bus/coco/coco_t4426.cpp +++ b/src/devices/bus/coco/coco_t4426.cpp @@ -97,9 +97,9 @@ namespace coco_t4426_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual const tiny_rom_entry *device_rom_region() const override; - virtual ioport_constructor device_input_ports() 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; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; virtual u8 *get_cart_base() override; void pia_A_w(u8 data); @@ -119,8 +119,8 @@ namespace coco_t4426_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); // 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; // internal state device_image_interface *m_cart; diff --git a/src/devices/bus/coco/coco_wpk.h b/src/devices/bus/coco/coco_wpk.h index 33db6c4be73..c0e3e53ad8c 100644 --- a/src/devices/bus/coco/coco_wpk.h +++ b/src/devices/bus/coco/coco_wpk.h @@ -31,12 +31,12 @@ class coco_wpk_device : coco_wpk_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); // 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; // 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 m_crtc; required_device m_palette; @@ -62,8 +62,8 @@ class coco_wpk2_device : public coco_wpk_device 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; private: void video_select_w(u8 data); @@ -80,8 +80,8 @@ class coco_wpkrs_device : public coco_wpk_device 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; }; diff --git a/src/devices/bus/coco/coco_wpk2p.h b/src/devices/bus/coco/coco_wpk2p.h index f6c3debc766..c44bb986286 100644 --- a/src/devices/bus/coco/coco_wpk2p.h +++ b/src/devices/bus/coco/coco_wpk2p.h @@ -25,10 +25,10 @@ class coco_wpk2p_device : protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: required_device m_v9958; diff --git a/src/devices/bus/coco/cococart.h b/src/devices/bus/coco/cococart.h index 3056bfeed62..4916b9e6398 100644 --- a/src/devices/bus/coco/cococart.h +++ b/src/devices/bus/coco/cococart.h @@ -68,7 +68,7 @@ class cococart_slot_device final : public device_t, auto halt_callback() { return m_halt_callback.bind(); } // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_image_interface implementation virtual std::pair call_load() override; diff --git a/src/devices/bus/coco/dragon_amtor.h b/src/devices/bus/coco/dragon_amtor.h index 3d6e73fc40a..d8f7cb7a568 100644 --- a/src/devices/bus/coco/dragon_amtor.h +++ b/src/devices/bus/coco/dragon_amtor.h @@ -22,12 +22,12 @@ class dragon_amtor_device : dragon_amtor_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual ioport_constructor device_input_ports() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual u8 *get_cart_base() override; virtual memory_region *get_cart_memregion() override; diff --git a/src/devices/bus/coco/dragon_claw.h b/src/devices/bus/coco/dragon_claw.h index 69df7b2e303..ec82349d4e5 100644 --- a/src/devices/bus/coco/dragon_claw.h +++ b/src/devices/bus/coco/dragon_claw.h @@ -26,12 +26,12 @@ class dragon_claw_device : 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; // optional information overrides virtual void device_add_mconfig(machine_config& config) override; - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; virtual u8 cts_read(offs_t offset) override; virtual void cts_write(offs_t offset, u8 data) override; diff --git a/src/devices/bus/coco/dragon_fdc.cpp b/src/devices/bus/coco/dragon_fdc.cpp index 671126191e2..7f6d9c41cd0 100644 --- a/src/devices/bus/coco/dragon_fdc.cpp +++ b/src/devices/bus/coco/dragon_fdc.cpp @@ -103,7 +103,7 @@ namespace virtual u8 cts_read(offs_t offset) override; virtual u8 scs_read(offs_t offset) override; virtual void scs_write(offs_t offset, u8 data) override; - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual void update_lines() override; private: @@ -125,7 +125,7 @@ namespace virtual u8 cts_read(offs_t offset) override; virtual u8 scs_read(offs_t offset) override; virtual void scs_write(offs_t offset, u8 data) override; - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual void update_lines() override; private: diff --git a/src/devices/bus/coco/dragon_jcbsnd.h b/src/devices/bus/coco/dragon_jcbsnd.h index 6ded5d6c601..9f6990ac7bf 100644 --- a/src/devices/bus/coco/dragon_jcbsnd.h +++ b/src/devices/bus/coco/dragon_jcbsnd.h @@ -23,11 +23,11 @@ class dragon_jcbsnd_device : dragon_jcbsnd_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); // 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; protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual u8 *get_cart_base() override; virtual memory_region *get_cart_memregion() override; diff --git a/src/devices/bus/coco/dragon_jcbspch.h b/src/devices/bus/coco/dragon_jcbspch.h index b94c10f6915..7706aae64e1 100644 --- a/src/devices/bus/coco/dragon_jcbspch.h +++ b/src/devices/bus/coco/dragon_jcbspch.h @@ -24,11 +24,11 @@ class dragon_jcbspch_device : dragon_jcbspch_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); // 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; protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual u8 *get_cart_base() override; virtual memory_region *get_cart_memregion() override; diff --git a/src/devices/bus/coco/dragon_msx2.h b/src/devices/bus/coco/dragon_msx2.h index 3eb1fcaa64b..e4aaf3990f0 100644 --- a/src/devices/bus/coco/dragon_msx2.h +++ b/src/devices/bus/coco/dragon_msx2.h @@ -27,12 +27,12 @@ class dragon_msx2_device : 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; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; virtual u8 scs_read(offs_t offset) override; virtual void scs_write(offs_t offset, u8 data) override; diff --git a/src/devices/bus/coco/dragon_serial.cpp b/src/devices/bus/coco/dragon_serial.cpp index 85a5808ca91..c2ecab858d8 100644 --- a/src/devices/bus/coco/dragon_serial.cpp +++ b/src/devices/bus/coco/dragon_serial.cpp @@ -39,8 +39,8 @@ class dragon_serial_device : public device_t, public device_cococart_interface virtual memory_region *get_cart_memregion() override { return m_eprom; } // 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; virtual u8 cts_read(offs_t offset) override; virtual u8 scs_read(offs_t offset) override; diff --git a/src/devices/bus/coco/dragon_sprites.h b/src/devices/bus/coco/dragon_sprites.h index 032c8531e9e..c97e4b4fe08 100644 --- a/src/devices/bus/coco/dragon_sprites.h +++ b/src/devices/bus/coco/dragon_sprites.h @@ -24,12 +24,12 @@ class dragon_sprites_device : dragon_sprites_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); // 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; protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual u8 cts_read(offs_t offset) override; virtual void cts_write(offs_t offset, u8 data) override; diff --git a/src/devices/bus/coco/meb_intrf.h b/src/devices/bus/coco/meb_intrf.h index e1b99d4d818..859ea6366b2 100644 --- a/src/devices/bus/coco/meb_intrf.h +++ b/src/devices/bus/coco/meb_intrf.h @@ -49,7 +49,7 @@ class distomeb_slot_device final protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: u8 m_cart_line; diff --git a/src/devices/bus/coco/meb_rtime.cpp b/src/devices/bus/coco/meb_rtime.cpp index 496072eb86e..140383759bb 100644 --- a/src/devices/bus/coco/meb_rtime.cpp +++ b/src/devices/bus/coco/meb_rtime.cpp @@ -32,8 +32,8 @@ namespace protected: // device-level overrides - 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; virtual u8 meb_read(offs_t offset) override; virtual void meb_write(offs_t offset, u8 data) override; diff --git a/src/devices/bus/coleco/cartridge/activision.h b/src/devices/bus/coleco/cartridge/activision.h index c36a77880ac..662153016a5 100644 --- a/src/devices/bus/coleco/cartridge/activision.h +++ b/src/devices/bus/coleco/cartridge/activision.h @@ -29,7 +29,7 @@ class colecovision_activision_cartridge_device : public device_t, public device_ optional_device m_eeprom; - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // cartridge interface virtual uint8_t read(offs_t offset, int _8000, int _a000, int _c000, int _e000) override; @@ -45,7 +45,7 @@ class colecovision_activision_256b_cartridge_device : public colecovision_activi colecovision_activision_256b_cartridge_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 void device_add_mconfig(machine_config &config) override ATTR_COLD; }; class colecovision_activision_32k_cartridge_device : public colecovision_activision_cartridge_device @@ -54,7 +54,7 @@ class colecovision_activision_32k_cartridge_device : public colecovision_activis colecovision_activision_32k_cartridge_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 void device_add_mconfig(machine_config &config) override ATTR_COLD; }; // device type declaration diff --git a/src/devices/bus/coleco/cartridge/exp.h b/src/devices/bus/coleco/cartridge/exp.h index 0861f9f39b1..ef007010fcd 100644 --- a/src/devices/bus/coleco/cartridge/exp.h +++ b/src/devices/bus/coleco/cartridge/exp.h @@ -70,7 +70,7 @@ class colecovision_cartridge_slot_device : public device_t, protected: // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_image_interface implementation virtual std::pair call_load() override; diff --git a/src/devices/bus/coleco/cartridge/megacart.h b/src/devices/bus/coleco/cartridge/megacart.h index 7d259ef50f4..6df59475f67 100644 --- a/src/devices/bus/coleco/cartridge/megacart.h +++ b/src/devices/bus/coleco/cartridge/megacart.h @@ -30,8 +30,8 @@ class colecovision_megacart_cartridge_device : public device_t, protected: // device_t 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; // device_colecovision_cartridge_interface overrides virtual uint8_t read(offs_t offset, int _8000, int _a000, int _c000, int _e000) override; diff --git a/src/devices/bus/coleco/cartridge/std.h b/src/devices/bus/coleco/cartridge/std.h index fc39e94acdc..54ff0b70b13 100644 --- a/src/devices/bus/coleco/cartridge/std.h +++ b/src/devices/bus/coleco/cartridge/std.h @@ -30,7 +30,7 @@ class colecovision_standard_cartridge_device : public device_t, protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_colecovision_expansion_card_interface overrides virtual uint8_t read(offs_t offset, int _8000, int _a000, int _c000, int _e000) override; diff --git a/src/devices/bus/coleco/cartridge/xin1.h b/src/devices/bus/coleco/cartridge/xin1.h index c5ce426ff4c..5e1dd6fc9c9 100644 --- a/src/devices/bus/coleco/cartridge/xin1.h +++ b/src/devices/bus/coleco/cartridge/xin1.h @@ -30,8 +30,8 @@ class colecovision_xin1_cartridge_device : public device_t, 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; // device_colecovision_expansion_card_interface overrides virtual uint8_t read(offs_t offset, int _8000, int _a000, int _c000, int _e000) override; diff --git a/src/devices/bus/coleco/controller/ctrl.h b/src/devices/bus/coleco/controller/ctrl.h index 7c10ad1321a..b5f5c36127f 100644 --- a/src/devices/bus/coleco/controller/ctrl.h +++ b/src/devices/bus/coleco/controller/ctrl.h @@ -74,7 +74,7 @@ class colecovision_control_port_device : public device_t, protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; device_colecovision_control_port_interface *m_device; diff --git a/src/devices/bus/coleco/controller/hand.h b/src/devices/bus/coleco/controller/hand.h index 50a18c598e9..026ef89a7df 100644 --- a/src/devices/bus/coleco/controller/hand.h +++ b/src/devices/bus/coleco/controller/hand.h @@ -29,13 +29,13 @@ class coleco_hand_controller_device : public device_t, coleco_hand_controller_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // optional information overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; ioport_value keypad_r(); protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_vcs_control_port_interface overrides virtual uint8_t joy_r() override; diff --git a/src/devices/bus/coleco/controller/sac.h b/src/devices/bus/coleco/controller/sac.h index 5e5be1193f5..f1f3db57344 100644 --- a/src/devices/bus/coleco/controller/sac.h +++ b/src/devices/bus/coleco/controller/sac.h @@ -29,14 +29,14 @@ class coleco_super_action_controller_device : public device_t, coleco_super_action_controller_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // optional information overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; ioport_value keypad_r(); DECLARE_INPUT_CHANGED_MEMBER( slider_w ); protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_vcs_control_port_interface overrides virtual uint8_t joy_r() override; diff --git a/src/devices/bus/coleco/expansion/expansion.h b/src/devices/bus/coleco/expansion/expansion.h index 74dadfe57f3..e48cc59b2f7 100644 --- a/src/devices/bus/coleco/expansion/expansion.h +++ b/src/devices/bus/coleco/expansion/expansion.h @@ -90,7 +90,7 @@ class coleco_expansion_device : protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: required_address_space m_program; diff --git a/src/devices/bus/coleco/expansion/sgm.h b/src/devices/bus/coleco/expansion/sgm.h index cd77dbaa78e..aeb9ae7fe17 100644 --- a/src/devices/bus/coleco/expansion/sgm.h +++ b/src/devices/bus/coleco/expansion/sgm.h @@ -25,9 +25,9 @@ class coleco_sgm_device : public device_t, public device_coleco_expansion_interf coleco_sgm_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 void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: memory_view m_view_lower; @@ -36,7 +36,7 @@ class coleco_sgm_device : public device_t, public device_coleco_expansion_interf std::unique_ptr m_ram_lower; std::unique_ptr m_ram_upper; - void io_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; void upper_enable_w(uint8_t data); void lower_enable_w(uint8_t data); diff --git a/src/devices/bus/compis/graphics.h b/src/devices/bus/compis/graphics.h index 0509fb8746c..4b176952f53 100644 --- a/src/devices/bus/compis/graphics.h +++ b/src/devices/bus/compis/graphics.h @@ -79,7 +79,7 @@ class compis_graphics_slot_device : public device_t, public device_single_card_s protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; devcb_write_line m_write_dma_request; diff --git a/src/devices/bus/compis/hrg.h b/src/devices/bus/compis/hrg.h index 98ef784df14..63d36f57b48 100644 --- a/src/devices/bus/compis/hrg.h +++ b/src/devices/bus/compis/hrg.h @@ -34,11 +34,11 @@ class compis_hrg_device : public device_t, compis_hrg_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; // device_compis_graphics_card_interface overrides virtual uint8_t pcs6_6_r(offs_t offset) override; @@ -53,7 +53,7 @@ class compis_hrg_device : public device_t, private: UPD7220_DISPLAY_PIXELS_MEMBER( display_pixels ); - void hrg_map(address_map &map); + void hrg_map(address_map &map) ATTR_COLD; }; @@ -67,12 +67,12 @@ class compis_uhrg_device : public compis_hrg_device protected: // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: UPD7220_DISPLAY_PIXELS_MEMBER( display_pixels ); - void uhrg_map(address_map &map); + void uhrg_map(address_map &map) ATTR_COLD; }; diff --git a/src/devices/bus/compucolor/floppy.h b/src/devices/bus/compucolor/floppy.h index 96d1d9841fa..fbf63da87ef 100644 --- a/src/devices/bus/compucolor/floppy.h +++ b/src/devices/bus/compucolor/floppy.h @@ -55,7 +55,7 @@ class compucolor_floppy_port_device : public rs232_port_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void device_config_complete() override; private: @@ -73,10 +73,10 @@ class compucolor_floppy_device : public device_t, public device_compucolor_flopp protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; // device_serial_port_interface overrides virtual void tx(uint8_t state); diff --git a/src/devices/bus/comx35/clm.h b/src/devices/bus/comx35/clm.h index de86ff28b7f..7743b8824ba 100644 --- a/src/devices/bus/comx35/clm.h +++ b/src/devices/bus/comx35/clm.h @@ -33,12 +33,12 @@ class comx_clm_device : public device_t, 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; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; // device_comx_expansion_card_interface overrides virtual int comx_ef4_r() override; diff --git a/src/devices/bus/comx35/eprom.h b/src/devices/bus/comx35/eprom.h index 90f57e52d3d..74adaa820da 100644 --- a/src/devices/bus/comx35/eprom.h +++ b/src/devices/bus/comx35/eprom.h @@ -29,12 +29,12 @@ class comx_epr_device : public device_t, comx_epr_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; 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; // device_comx_expansion_card_interface overrides virtual uint8_t comx_mrd_r(offs_t offset, int *extrom) override; diff --git a/src/devices/bus/comx35/exp.h b/src/devices/bus/comx35/exp.h index fbb104a4ab4..108978e8800 100644 --- a/src/devices/bus/comx35/exp.h +++ b/src/devices/bus/comx35/exp.h @@ -78,7 +78,7 @@ class comx_expansion_slot_device : public device_t, public device_single_card_sl protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; devcb_write_line m_write_irq; diff --git a/src/devices/bus/comx35/expbox.h b/src/devices/bus/comx35/expbox.h index b53ae5a885f..106c29505b7 100644 --- a/src/devices/bus/comx35/expbox.h +++ b/src/devices/bus/comx35/expbox.h @@ -38,12 +38,12 @@ class comx_eb_device : public device_t, 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; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; // device_comx_expansion_card_interface overrides virtual int comx_ef4_r() override; diff --git a/src/devices/bus/comx35/fdc.h b/src/devices/bus/comx35/fdc.h index 24847194004..5c8e32f681d 100644 --- a/src/devices/bus/comx35/fdc.h +++ b/src/devices/bus/comx35/fdc.h @@ -32,12 +32,12 @@ class comx_fd_device : public device_t, 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; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; // device_comx_expansion_card_interface overrides virtual int comx_ef4_r() override; diff --git a/src/devices/bus/comx35/joycard.h b/src/devices/bus/comx35/joycard.h index 92c41431961..2530c6622aa 100644 --- a/src/devices/bus/comx35/joycard.h +++ b/src/devices/bus/comx35/joycard.h @@ -29,12 +29,12 @@ class comx_joy_device : public device_t, comx_joy_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // optional information overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; 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; // device_comx_expansion_card_interface overrides virtual uint8_t comx_io_r(offs_t offset) override; diff --git a/src/devices/bus/comx35/printer.h b/src/devices/bus/comx35/printer.h index 1ffa3f66046..214008cb68f 100644 --- a/src/devices/bus/comx35/printer.h +++ b/src/devices/bus/comx35/printer.h @@ -31,12 +31,12 @@ class comx_prn_device : public device_t, public device_comx_expansion_card_inter 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; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; // device_comx_expansion_card_interface overrides virtual uint8_t comx_mrd_r(offs_t offset, int *extrom) override; diff --git a/src/devices/bus/comx35/ram.h b/src/devices/bus/comx35/ram.h index 8ab8703d195..b936d91e226 100644 --- a/src/devices/bus/comx35/ram.h +++ b/src/devices/bus/comx35/ram.h @@ -30,8 +30,8 @@ class comx_ram_device : public device_t, 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; // device_comx_expansion_card_interface overrides virtual uint8_t comx_mrd_r(offs_t offset, int *extrom) override; diff --git a/src/devices/bus/comx35/thermal.h b/src/devices/bus/comx35/thermal.h index 645f6bf0213..4db4226fab7 100644 --- a/src/devices/bus/comx35/thermal.h +++ b/src/devices/bus/comx35/thermal.h @@ -29,12 +29,12 @@ class comx_thm_device : public device_t, comx_thm_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; 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; // device_comx_expansion_card_interface overrides virtual uint8_t comx_mrd_r(offs_t offset, int *extrom) override; diff --git a/src/devices/bus/cpc/amdrum.h b/src/devices/bus/cpc/amdrum.h index 44fede8af4f..ecd8cf75c92 100644 --- a/src/devices/bus/cpc/amdrum.h +++ b/src/devices/bus/cpc/amdrum.h @@ -31,11 +31,11 @@ class cpc_amdrum_device : public device_t, 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; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: cpc_expansion_slot_device *m_slot; diff --git a/src/devices/bus/cpc/brunword4.h b/src/devices/bus/cpc/brunword4.h index c2e93f2a51d..5af03c2ff98 100644 --- a/src/devices/bus/cpc/brunword4.h +++ b/src/devices/bus/cpc/brunword4.h @@ -20,15 +20,15 @@ class cpc_brunword4_device : public device_t, cpc_brunword4_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; void rombank_w(uint8_t data); virtual void set_mapping(uint8_t type) override; 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; private: cpc_expansion_slot_device *m_slot; diff --git a/src/devices/bus/cpc/cpc_pds.h b/src/devices/bus/cpc/cpc_pds.h index c2d7e68b6fd..03572bb07e0 100644 --- a/src/devices/bus/cpc/cpc_pds.h +++ b/src/devices/bus/cpc/cpc_pds.h @@ -41,11 +41,11 @@ class cpc_pds_device : public device_t, 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; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: cpc_expansion_slot_device *m_slot; diff --git a/src/devices/bus/cpc/cpc_rom.h b/src/devices/bus/cpc/cpc_rom.h index d0786f6ddbd..0e6faa0c11d 100644 --- a/src/devices/bus/cpc/cpc_rom.h +++ b/src/devices/bus/cpc/cpc_rom.h @@ -37,7 +37,7 @@ class cpc_rom_image_device : public device_t, public device_rom_image_interface protected: // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: std::unique_ptr m_base; @@ -61,11 +61,11 @@ class cpc_rom_device : public device_t, 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; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: required_device_array m_rom; diff --git a/src/devices/bus/cpc/cpc_rs232.h b/src/devices/bus/cpc/cpc_rs232.h index 1e577e8008e..08d56074593 100644 --- a/src/devices/bus/cpc/cpc_rs232.h +++ b/src/devices/bus/cpc/cpc_rs232.h @@ -31,12 +31,12 @@ class cpc_rs232_device : public device_t, public device_cpc_expansion_card_inter cpc_rs232_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // device-level overrides - virtual void device_start() override; - virtual void device_reset() 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 const tiny_rom_entry *device_rom_region() const override ATTR_COLD; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; required_device m_pit; required_device m_dart; @@ -57,7 +57,7 @@ class cpc_ams_rs232_device : public cpc_rs232_device cpc_ams_rs232_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 diff --git a/src/devices/bus/cpc/cpc_ssa1.h b/src/devices/bus/cpc/cpc_ssa1.h index 9c89be6067d..9ec7c2e1202 100644 --- a/src/devices/bus/cpc/cpc_ssa1.h +++ b/src/devices/bus/cpc/cpc_ssa1.h @@ -61,12 +61,12 @@ class cpc_ssa1_device : public device_t, 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; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: cpc_expansion_slot_device *m_slot; @@ -86,12 +86,12 @@ class cpc_dkspeech_device : public device_t, 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; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: cpc_expansion_slot_device *m_slot; diff --git a/src/devices/bus/cpc/cpcexp.h b/src/devices/bus/cpc/cpcexp.h index 9f83c10eb75..7fed2af89e4 100644 --- a/src/devices/bus/cpc/cpcexp.h +++ b/src/devices/bus/cpc/cpcexp.h @@ -128,7 +128,7 @@ class cpc_expansion_slot_device : public device_t, public device_single_card_slo protected: // device-level overrides virtual void device_config_complete() override; - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; required_device m_cpu; diff --git a/src/devices/bus/cpc/ddi1.h b/src/devices/bus/cpc/ddi1.h index 6ec347224e7..a61abce55cf 100644 --- a/src/devices/bus/cpc/ddi1.h +++ b/src/devices/bus/cpc/ddi1.h @@ -30,12 +30,12 @@ class cpc_ddi1_device : public device_t, public device_cpc_expansion_card_interf 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; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual void set_mapping(uint8_t type) override; virtual void romen_w(int state) override { m_romen = state; } diff --git a/src/devices/bus/cpc/doubler.h b/src/devices/bus/cpc/doubler.h index 051f5ec5e62..7fa696ae514 100644 --- a/src/devices/bus/cpc/doubler.h +++ b/src/devices/bus/cpc/doubler.h @@ -27,11 +27,11 @@ class cpc_doubler_device : public device_t, 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; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: cpc_expansion_slot_device *m_slot; diff --git a/src/devices/bus/cpc/hd20.h b/src/devices/bus/cpc/hd20.h index de7d2ba5cef..ac88d18875c 100644 --- a/src/devices/bus/cpc/hd20.h +++ b/src/devices/bus/cpc/hd20.h @@ -31,12 +31,12 @@ class cpc_hd20_device : public device_t, 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; // 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; private: void irq_w(int state); diff --git a/src/devices/bus/cpc/magicsound.h b/src/devices/bus/cpc/magicsound.h index f3e41275e56..162ef1f7c86 100644 --- a/src/devices/bus/cpc/magicsound.h +++ b/src/devices/bus/cpc/magicsound.h @@ -49,11 +49,11 @@ class al_magicsound_device : public device_t, 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; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: void da0_w(int state); diff --git a/src/devices/bus/cpc/mface2.h b/src/devices/bus/cpc/mface2.h index ba230b917c6..0893d36634a 100644 --- a/src/devices/bus/cpc/mface2.h +++ b/src/devices/bus/cpc/mface2.h @@ -47,13 +47,13 @@ class cpc_multiface2_device : public device_t, 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; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual ioport_constructor device_input_ports() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: cpc_expansion_slot_device *m_slot; diff --git a/src/devices/bus/cpc/musicmachine.h b/src/devices/bus/cpc/musicmachine.h index 46f7f5cbc40..aea3d6ab9d1 100644 --- a/src/devices/bus/cpc/musicmachine.h +++ b/src/devices/bus/cpc/musicmachine.h @@ -33,11 +33,11 @@ class cpc_musicmachine_device : public device_t, 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; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: cpc_expansion_slot_device *m_slot; diff --git a/src/devices/bus/cpc/playcity.h b/src/devices/bus/cpc/playcity.h index 684268e9707..0424220aadc 100644 --- a/src/devices/bus/cpc/playcity.h +++ b/src/devices/bus/cpc/playcity.h @@ -43,11 +43,11 @@ class cpc_playcity_device : public device_t, public device_cpc_expansion_card_in 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; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: void ctc_zc1_cb(int state) { if(state) { m_slot->nmi_w(1); m_slot->nmi_w(0); } } diff --git a/src/devices/bus/cpc/smartwatch.h b/src/devices/bus/cpc/smartwatch.h index 8e3f08a1e00..2e682643b32 100644 --- a/src/devices/bus/cpc/smartwatch.h +++ b/src/devices/bus/cpc/smartwatch.h @@ -28,12 +28,12 @@ class cpc_smartwatch_device : public device_t, public device_cpc_expansion_card_ 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; // 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; private: cpc_expansion_slot_device *m_slot; diff --git a/src/devices/bus/cpc/symbfac2.h b/src/devices/bus/cpc/symbfac2.h index 5b5bb2e7e43..941c2814542 100644 --- a/src/devices/bus/cpc/symbfac2.h +++ b/src/devices/bus/cpc/symbfac2.h @@ -45,12 +45,12 @@ class cpc_symbiface2_device : public device_t, 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; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; private: cpc_expansion_slot_device *m_slot; diff --git a/src/devices/bus/cpc/transtape.h b/src/devices/bus/cpc/transtape.h index 15ccf0db4fc..aba5e1dfd38 100644 --- a/src/devices/bus/cpc/transtape.h +++ b/src/devices/bus/cpc/transtape.h @@ -22,8 +22,8 @@ class cpc_transtape_device : public device_t, cpc_transtape_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual ioport_constructor device_input_ports() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; virtual void set_mapping(uint8_t type) override; virtual void romen_w(int state) override { m_romen = state; } @@ -35,8 +35,8 @@ class cpc_transtape_device : public device_t, 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; private: cpc_expansion_slot_device *m_slot; diff --git a/src/devices/bus/crvision/slot.h b/src/devices/bus/crvision/slot.h index dcb1f65edb7..8d46aff5940 100644 --- a/src/devices/bus/crvision/slot.h +++ b/src/devices/bus/crvision/slot.h @@ -89,7 +89,7 @@ class crvision_cart_slot_device : public device_t, protected: // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; int m_type; device_crvision_cart_interface *m_cart; diff --git a/src/devices/bus/dmv/dmvbus.h b/src/devices/bus/dmv/dmvbus.h index 24c55fdb512..593925f4e12 100644 --- a/src/devices/bus/dmv/dmvbus.h +++ b/src/devices/bus/dmv/dmvbus.h @@ -69,7 +69,7 @@ class dmvcart_slot_device : public device_t, protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // internal state devcb_read8 m_prog_read_cb; diff --git a/src/devices/bus/dmv/k012.h b/src/devices/bus/dmv/k012.h index 0f262b6ca74..34126ad5b66 100644 --- a/src/devices/bus/dmv/k012.h +++ b/src/devices/bus/dmv/k012.h @@ -27,12 +27,12 @@ class dmv_k012_device : dmv_k012_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; // dmvcart_interface overrides virtual void io_read(int ifsel, offs_t offset, uint8_t &data) override; diff --git a/src/devices/bus/dmv/k210.h b/src/devices/bus/dmv/k210.h index 6d69aa93511..737b2fdb65a 100644 --- a/src/devices/bus/dmv/k210.h +++ b/src/devices/bus/dmv/k210.h @@ -26,11 +26,11 @@ class dmv_k210_device : 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; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; // dmvcart_interface overrides virtual void io_read(int ifsel, offs_t offset, uint8_t &data) override; diff --git a/src/devices/bus/dmv/k220.h b/src/devices/bus/dmv/k220.h index 3ab23800bae..6fd740b7c0b 100644 --- a/src/devices/bus/dmv/k220.h +++ b/src/devices/bus/dmv/k220.h @@ -26,13 +26,13 @@ class dmv_k220_device : 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; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; // dmvcart_interface overrides virtual bool read(offs_t offset, uint8_t &data) override; diff --git a/src/devices/bus/dmv/k230.h b/src/devices/bus/dmv/k230.h index c260ad70504..174fc29f3c8 100644 --- a/src/devices/bus/dmv/k230.h +++ b/src/devices/bus/dmv/k230.h @@ -35,20 +35,20 @@ class dmv_k230_device : dmv_k230_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; // dmvcart_interface overrides virtual void hold_w(int state) override; virtual void switch16_w(int state) override; virtual bool av16bit() override; - void k230_io(address_map &map); - void k230_mem(address_map &map); + void k230_io(address_map &map) ATTR_COLD; + void k230_mem(address_map &map) ATTR_COLD; required_device m_maincpu; optional_memory_region m_rom; @@ -75,7 +75,7 @@ class dmv_k231_device : dmv_k231_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; }; @@ -90,12 +90,12 @@ class dmv_k234_device : protected: // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; // 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; // dmvcart_interface overrides virtual void hold_w(int state) override; @@ -107,7 +107,7 @@ class dmv_k234_device : uint8_t snr_r(); void snr_w(uint8_t data); - void k234_mem(address_map &map); + void k234_mem(address_map &map) ATTR_COLD; }; @@ -122,9 +122,9 @@ class dmv_k235_device : protected: // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; void timint_w(int state) override { m_pic->ir0_w(state); } void keyint_w(int state) override { m_pic->ir1_w(state); } @@ -141,7 +141,7 @@ class dmv_k235_device : required_device m_pic; required_ioport m_dsw; - void k235_io(address_map &map); + void k235_io(address_map &map) ATTR_COLD; }; // device type definition diff --git a/src/devices/bus/dmv/k233.h b/src/devices/bus/dmv/k233.h index 8f4c9302136..9cb37de6daa 100644 --- a/src/devices/bus/dmv/k233.h +++ b/src/devices/bus/dmv/k233.h @@ -24,8 +24,8 @@ class dmv_k233_device : 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; // dmvcart_interface overrides virtual void io_write(int ifsel, offs_t offset, uint8_t data) override; diff --git a/src/devices/bus/dmv/k801.h b/src/devices/bus/dmv/k801.h index d03e6d0b786..1fca8cf2bf6 100644 --- a/src/devices/bus/dmv/k801.h +++ b/src/devices/bus/dmv/k801.h @@ -29,12 +29,12 @@ class dmv_k801_device : dmv_k801_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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; // optional information overrides - virtual ioport_constructor device_input_ports() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; // dmvcart_interface overrides virtual void io_read(int ifsel, offs_t offset, uint8_t &data) override; @@ -64,8 +64,8 @@ class dmv_k211_device : dmv_k211_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // optional information overrides - virtual ioport_constructor device_input_ports() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; // dmvcart_interface overrides virtual void io_read(int ifsel, offs_t offset, uint8_t &data) override; @@ -83,8 +83,8 @@ class dmv_k212_device : protected: // optional information overrides - virtual ioport_constructor device_input_ports() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; // ======================> dmv_k213_device @@ -98,8 +98,8 @@ class dmv_k213_device : protected: // optional information overrides - virtual ioport_constructor device_input_ports() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; diff --git a/src/devices/bus/dmv/k803.h b/src/devices/bus/dmv/k803.h index 2e9df0c07ec..68f8df1e896 100644 --- a/src/devices/bus/dmv/k803.h +++ b/src/devices/bus/dmv/k803.h @@ -25,12 +25,12 @@ class dmv_k803_device : 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; // optional information overrides - virtual ioport_constructor device_input_ports() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual void io_read(int ifsel, offs_t offset, uint8_t &data) override; virtual void io_write(int ifsel, offs_t offset, uint8_t data) override; diff --git a/src/devices/bus/dmv/k806.h b/src/devices/bus/dmv/k806.h index 36a859d1346..acd00287e83 100644 --- a/src/devices/bus/dmv/k806.h +++ b/src/devices/bus/dmv/k806.h @@ -28,13 +28,13 @@ class dmv_k806_device : 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; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual ioport_constructor device_input_ports() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual void io_read(int ifsel, offs_t offset, uint8_t &data) override; virtual void io_write(int ifsel, offs_t offset, uint8_t data) override; diff --git a/src/devices/bus/dmv/ram.h b/src/devices/bus/dmv/ram.h index 79cc9c3ea92..038d342750b 100644 --- a/src/devices/bus/dmv/ram.h +++ b/src/devices/bus/dmv/ram.h @@ -23,7 +23,7 @@ class dmv_ram_device_base : dmv_ram_device_base(const machine_config &mconfig, device_type type, uint32_t size, const char *tag, device_t *owner, uint32_t clock); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // dmvcart_interface overrides virtual void ram_read(uint8_t cas, offs_t offset, uint8_t &data) override; diff --git a/src/devices/bus/ecbbus/ecbbus.h b/src/devices/bus/ecbbus/ecbbus.h index 6f655a7b7f1..c3f9bad9fed 100644 --- a/src/devices/bus/ecbbus/ecbbus.h +++ b/src/devices/bus/ecbbus/ecbbus.h @@ -77,7 +77,7 @@ class ecbbus_slot_device : public device_t, public device_single_card_slot_inter ecbbus_slot_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // inline configuration template void set_ecbbus_slot(T &&tag, int num) @@ -121,7 +121,7 @@ class ecbbus_device : public device_t protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: static constexpr unsigned MAX_ECBBUS_SLOTS = 16; diff --git a/src/devices/bus/ecbbus/grip.h b/src/devices/bus/ecbbus/grip.h index 289b91eb850..720c9d63e65 100644 --- a/src/devices/bus/ecbbus/grip.h +++ b/src/devices/bus/ecbbus/grip.h @@ -39,13 +39,13 @@ class ecb_grip21_device : public device_t, public device_ecbbus_card_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; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; // device_ecbbus_card_interface overrides virtual uint8_t ecbbus_io_r(offs_t offset) override; @@ -110,8 +110,8 @@ class ecb_grip21_device : public device_t, public device_ecbbus_card_interface uint8_t cxstb_r(); void cxstb_w(uint8_t data); - void grip_io(address_map &map); - void grip_mem(address_map &map); + void grip_io(address_map &map) ATTR_COLD; + void grip_mem(address_map &map) ATTR_COLD; /* required_device m_crtc; diff --git a/src/devices/bus/econet/e01.h b/src/devices/bus/econet/e01.h index 9a83fd0568c..356238babf4 100644 --- a/src/devices/bus/econet/e01.h +++ b/src/devices/bus/econet/e01.h @@ -41,13 +41,13 @@ class econet_e01_device : public device_t, econet_e01_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, int variant); // 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; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; // device_econet_interface overrides virtual void econet_data(int state) override; @@ -100,7 +100,7 @@ class econet_e01_device : public device_t, inline void network_irq_enable(int enabled); inline void hdc_irq_enable(int enabled); - void e01_mem(address_map &map); + void e01_mem(address_map &map) ATTR_COLD; // interrupt state int m_adlc_ie; diff --git a/src/devices/bus/econet/econet.h b/src/devices/bus/econet/econet.h index 063ca8b78c7..d04a14c2215 100644 --- a/src/devices/bus/econet/econet.h +++ b/src/devices/bus/econet/econet.h @@ -66,8 +66,8 @@ class econet_device : public device_t }; // device_t implementation - virtual void device_start() override; - virtual void device_stop() override; + virtual void device_start() override ATTR_COLD; + virtual void device_stop() override ATTR_COLD; std::vector m_device_list; @@ -99,7 +99,7 @@ class econet_slot_device : public device_t, public device_single_card_slot_inter } // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // inline configuration template void set_econet_tag(T &&tag) { m_econet.set_tag(std::forward(tag)); } diff --git a/src/devices/bus/einstein/pipe/pipe.h b/src/devices/bus/einstein/pipe/pipe.h index 6adb988a018..bbb96af1d6a 100644 --- a/src/devices/bus/einstein/pipe/pipe.h +++ b/src/devices/bus/einstein/pipe/pipe.h @@ -87,7 +87,7 @@ class tatung_pipe_device : public device_t, public device_single_card_slot_inter protected: // device-level overrides virtual void device_config_complete() override; - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; required_address_space m_program; required_address_space m_io; diff --git a/src/devices/bus/einstein/pipe/silicon_disc.h b/src/devices/bus/einstein/pipe/silicon_disc.h index c80ef0ed88c..d30f564b0d2 100644 --- a/src/devices/bus/einstein/pipe/silicon_disc.h +++ b/src/devices/bus/einstein/pipe/silicon_disc.h @@ -29,12 +29,12 @@ class einstein_silicon_disc_device : public device_t, public device_tatung_pipe_ einstein_silicon_disc_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 void device_start() override; - virtual void device_reset() override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: - void map(address_map &map); + void map(address_map &map) ATTR_COLD; required_memory_region m_rom; required_memory_region m_bios; diff --git a/src/devices/bus/einstein/pipe/speculator.h b/src/devices/bus/einstein/pipe/speculator.h index b542edf9fd5..c25933622ba 100644 --- a/src/devices/bus/einstein/pipe/speculator.h +++ b/src/devices/bus/einstein/pipe/speculator.h @@ -43,9 +43,9 @@ class einstein_speculator_device : public device_t, public device_tatung_pipe_in void ic5b_q_w(int state); protected: - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: offs_t address_translate(offs_t offset); diff --git a/src/devices/bus/einstein/pipe/tk02.h b/src/devices/bus/einstein/pipe/tk02.h index 2c78bd97834..2a592715907 100644 --- a/src/devices/bus/einstein/pipe/tk02.h +++ b/src/devices/bus/einstein/pipe/tk02.h @@ -29,14 +29,14 @@ class tk02_device : public device_t, public device_tatung_pipe_interface tk02_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 void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; - virtual void device_reset() override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: - void map(address_map &map); + void map(address_map &map) ATTR_COLD; void de_w(int state); diff --git a/src/devices/bus/einstein/userport/mouse.h b/src/devices/bus/einstein/userport/mouse.h index dad8200d06b..61c57f2328f 100644 --- a/src/devices/bus/einstein/userport/mouse.h +++ b/src/devices/bus/einstein/userport/mouse.h @@ -27,8 +27,8 @@ class einstein_mouse_device : public device_t, public device_einstein_userport_i einstein_mouse_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; virtual uint8_t read() override; diff --git a/src/devices/bus/einstein/userport/speech.h b/src/devices/bus/einstein/userport/speech.h index 4c62b24e842..92c498ac590 100644 --- a/src/devices/bus/einstein/userport/speech.h +++ b/src/devices/bus/einstein/userport/speech.h @@ -28,9 +28,9 @@ class einstein_speech_device : public device_t, public device_einstein_userport_ einstein_speech_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 void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; virtual uint8_t read() override; virtual void write(uint8_t data) override; diff --git a/src/devices/bus/einstein/userport/userport.h b/src/devices/bus/einstein/userport/userport.h index ced90c8dad7..85ca52311bd 100644 --- a/src/devices/bus/einstein/userport/userport.h +++ b/src/devices/bus/einstein/userport/userport.h @@ -60,7 +60,7 @@ class einstein_userport_device : public device_t, public device_single_card_slot protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; device_einstein_userport_interface *m_card; diff --git a/src/devices/bus/ekara/rom.h b/src/devices/bus/ekara/rom.h index d28584cf2a0..0c965fba7b7 100644 --- a/src/devices/bus/ekara/rom.h +++ b/src/devices/bus/ekara/rom.h @@ -76,7 +76,7 @@ class ekara_rom_i2c_24c08_epitch_device : public ekara_rom_i2c_base_device virtual bool is_read_access_not_rom(void) override; virtual bool is_write_access_not_rom(void) override; - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; @@ -89,7 +89,7 @@ class ekara_rom_i2c_24lc04_device : public ekara_rom_i2c_base_device ekara_rom_i2c_24lc04_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 void device_add_mconfig(machine_config &config) override ATTR_COLD; }; // ======================> ekara_rom_i2c_24lc02_device @@ -101,7 +101,7 @@ class ekara_rom_i2c_24lc02_device : public ekara_rom_i2c_base_device ekara_rom_i2c_24lc02_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 void device_add_mconfig(machine_config &config) override ATTR_COLD; }; @@ -116,7 +116,7 @@ class ekara_rom_i2c_24lc02_gc0010_device : public ekara_rom_i2c_base_device protected: ekara_rom_i2c_24lc02_gc0010_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; bool is_read_access_not_rom(void) override; bool is_write_access_not_rom(void) override; @@ -134,7 +134,7 @@ class ekara_rom_i2c_24lc08_evio_device : public ekara_rom_i2c_24lc02_gc0010_devi ekara_rom_i2c_24lc08_evio_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 void device_add_mconfig(machine_config &config) override ATTR_COLD; }; diff --git a/src/devices/bus/ekara/slot.h b/src/devices/bus/ekara/slot.h index b4248bf6fbd..33db9fb8be4 100644 --- a/src/devices/bus/ekara/slot.h +++ b/src/devices/bus/ekara/slot.h @@ -115,7 +115,7 @@ class ekara_cart_slot_device : public device_t, protected: // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; int m_type; device_ekara_cart_interface* m_cart; diff --git a/src/devices/bus/electron/cart/abr.h b/src/devices/bus/electron/cart/abr.h index 3ef92c95a8d..bcb5fd9647b 100644 --- a/src/devices/bus/electron/cart/abr.h +++ b/src/devices/bus/electron/cart/abr.h @@ -29,7 +29,7 @@ class electron_abr_device : public device_t, protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // electron_cart_interface overrides virtual uint8_t read(offs_t offset, int infc, int infd, int romqa, int oe, int oe2) override; diff --git a/src/devices/bus/electron/cart/ap34.h b/src/devices/bus/electron/cart/ap34.h index 4ae651a7e74..b6e331673aa 100644 --- a/src/devices/bus/electron/cart/ap34.h +++ b/src/devices/bus/electron/cart/ap34.h @@ -29,10 +29,10 @@ class electron_ap34_device : protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; // electron_cart_interface overrides virtual uint8_t read(offs_t offset, int infc, int infd, int romqa, int oe, int oe2) override; diff --git a/src/devices/bus/electron/cart/ap5.h b/src/devices/bus/electron/cart/ap5.h index 259a3e48812..786f077e521 100644 --- a/src/devices/bus/electron/cart/ap5.h +++ b/src/devices/bus/electron/cart/ap5.h @@ -32,10 +32,10 @@ class electron_ap5_device : protected: // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; // electron_cart_interface implementation virtual uint8_t read(offs_t offset, int infc, int infd, int romqa, int oe, int oe2) override; diff --git a/src/devices/bus/electron/cart/aqr.h b/src/devices/bus/electron/cart/aqr.h index 820f967b5cf..c8fbcd10437 100644 --- a/src/devices/bus/electron/cart/aqr.h +++ b/src/devices/bus/electron/cart/aqr.h @@ -29,7 +29,7 @@ class electron_aqr_device : public device_t, protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // electron_cart_interface overrides virtual uint8_t read(offs_t offset, int infc, int infd, int romqa, int oe, int oe2) override; diff --git a/src/devices/bus/electron/cart/click.h b/src/devices/bus/electron/cart/click.h index cb7dd114687..c56897adeae 100644 --- a/src/devices/bus/electron/cart/click.h +++ b/src/devices/bus/electron/cart/click.h @@ -34,11 +34,11 @@ class electron_click_device : public device_t, protected: // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; // electron_cart_interface overrides virtual uint8_t read(offs_t offset, int infc, int infd, int romqa, int oe, int oe2) override; diff --git a/src/devices/bus/electron/cart/cumana.h b/src/devices/bus/electron/cart/cumana.h index 4717cb57d7b..7d446701a7e 100644 --- a/src/devices/bus/electron/cart/cumana.h +++ b/src/devices/bus/electron/cart/cumana.h @@ -30,10 +30,10 @@ class electron_cumana_device : protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; // electron_cart_interface overrides virtual uint8_t read(offs_t offset, int infc, int infd, int romqa, int oe, int oe2) override; diff --git a/src/devices/bus/electron/cart/elksdp1.h b/src/devices/bus/electron/cart/elksdp1.h index d0f606591ec..7450af080aa 100644 --- a/src/devices/bus/electron/cart/elksdp1.h +++ b/src/devices/bus/electron/cart/elksdp1.h @@ -25,11 +25,11 @@ class electron_elksdp1_device : public device_t, public device_electron_cart_int 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; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; // electron_cart_interface overrides virtual uint8_t read(offs_t offset, int infc, int infd, int romqa, int oe, int oe2) override; diff --git a/src/devices/bus/electron/cart/mgc.h b/src/devices/bus/electron/cart/mgc.h index bf23aa34391..9fcc23f5a57 100644 --- a/src/devices/bus/electron/cart/mgc.h +++ b/src/devices/bus/electron/cart/mgc.h @@ -29,8 +29,8 @@ class electron_mgc_device : public device_t, 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; // electron_cart_interface overrides virtual uint8_t read(offs_t offset, int infc, int infd, int romqa, int oe, int oe2) override; diff --git a/src/devices/bus/electron/cart/peg400.h b/src/devices/bus/electron/cart/peg400.h index c2920dc08d7..4cbb2652fa1 100644 --- a/src/devices/bus/electron/cart/peg400.h +++ b/src/devices/bus/electron/cart/peg400.h @@ -27,10 +27,10 @@ class electron_peg400_device : protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; // electron_cart_interface overrides virtual uint8_t read(offs_t offset, int infc, int infd, int romqa, int oe, int oe2) override; diff --git a/src/devices/bus/electron/cart/romp144.h b/src/devices/bus/electron/cart/romp144.h index 1cd9cf90180..14faac8704d 100644 --- a/src/devices/bus/electron/cart/romp144.h +++ b/src/devices/bus/electron/cart/romp144.h @@ -27,10 +27,10 @@ class electron_romp144_device : protected: // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; // electron_cart_interface implementation virtual uint8_t read(offs_t offset, int infc, int infd, int romqa, int oe, int oe2) override; diff --git a/src/devices/bus/electron/cart/rs423.h b/src/devices/bus/electron/cart/rs423.h index 0068b9c701e..734ca70cd56 100644 --- a/src/devices/bus/electron/cart/rs423.h +++ b/src/devices/bus/electron/cart/rs423.h @@ -26,10 +26,10 @@ class electron_rs423_device : protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; // electron_cart_interface overrides virtual uint8_t read(offs_t offset, int infc, int infd, int romqa, int oe, int oe2) override; diff --git a/src/devices/bus/electron/cart/slot.h b/src/devices/bus/electron/cart/slot.h index 0da6bf10610..8f930392e66 100644 --- a/src/devices/bus/electron/cart/slot.h +++ b/src/devices/bus/electron/cart/slot.h @@ -161,7 +161,7 @@ class electron_cartslot_device : public device_t, electron_cartslot_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; device_electron_cart_interface *m_cart; diff --git a/src/devices/bus/electron/cart/sndexp.h b/src/devices/bus/electron/cart/sndexp.h index f222185aa5f..ffec377ab28 100644 --- a/src/devices/bus/electron/cart/sndexp.h +++ b/src/devices/bus/electron/cart/sndexp.h @@ -26,11 +26,11 @@ class electron_sndexp_device : protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; // electron_cart_interface overrides virtual uint8_t read(offs_t offset, int infc, int infd, int romqa, int oe, int oe2) override; diff --git a/src/devices/bus/electron/cart/sndexp3.h b/src/devices/bus/electron/cart/sndexp3.h index 95d437b63e2..07dba7a35ad 100644 --- a/src/devices/bus/electron/cart/sndexp3.h +++ b/src/devices/bus/electron/cart/sndexp3.h @@ -26,10 +26,10 @@ class electron_sndexp3_device : protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; // electron_cart_interface overrides virtual uint8_t read(offs_t offset, int infc, int infd, int romqa, int oe, int oe2) override; diff --git a/src/devices/bus/electron/cart/sp64.h b/src/devices/bus/electron/cart/sp64.h index 68954fc9d30..24151ff1785 100644 --- a/src/devices/bus/electron/cart/sp64.h +++ b/src/devices/bus/electron/cart/sp64.h @@ -29,8 +29,8 @@ class electron_sp64_device : public device_t, 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; // electron_cart_interface overrides virtual uint8_t read(offs_t offset, int infc, int infd, int romqa, int oe, int oe2) override; diff --git a/src/devices/bus/electron/cart/std.h b/src/devices/bus/electron/cart/std.h index 3fc9cefbcd9..a3fe9805102 100644 --- a/src/devices/bus/electron/cart/std.h +++ b/src/devices/bus/electron/cart/std.h @@ -28,7 +28,7 @@ class electron_stdcart_device : public device_t, protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // electron_cart_interface overrides virtual uint8_t read(offs_t offset, int infc, int infd, int romqa, int oe, int oe2) override; diff --git a/src/devices/bus/electron/cart/stlefs.h b/src/devices/bus/electron/cart/stlefs.h index ba99b0f5d62..2af9df1f946 100644 --- a/src/devices/bus/electron/cart/stlefs.h +++ b/src/devices/bus/electron/cart/stlefs.h @@ -31,10 +31,10 @@ class electron_stlefs_device : protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; // electron_cart_interface overrides virtual uint8_t read(offs_t offset, int infc, int infd, int romqa, int oe, int oe2) override; diff --git a/src/devices/bus/electron/cart/tube.h b/src/devices/bus/electron/cart/tube.h index 1d239ef5215..25e0a7f2b6e 100644 --- a/src/devices/bus/electron/cart/tube.h +++ b/src/devices/bus/electron/cart/tube.h @@ -26,10 +26,10 @@ class electron_tube_device : protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; // electron_cart_interface overrides virtual uint8_t read(offs_t offset, int infc, int infd, int romqa, int oe, int oe2) override; diff --git a/src/devices/bus/electron/elksd128.h b/src/devices/bus/electron/elksd128.h index 48ff1375ea9..2fe86ec30d2 100644 --- a/src/devices/bus/electron/elksd128.h +++ b/src/devices/bus/electron/elksd128.h @@ -28,13 +28,13 @@ class electron_elksd128_device: 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; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; - virtual const tiny_rom_entry *device_rom_region() const override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; virtual uint8_t expbus_r(offs_t offset) override; virtual void expbus_w(offs_t offset, uint8_t data) override; diff --git a/src/devices/bus/electron/elksd64.h b/src/devices/bus/electron/elksd64.h index d21b9595fc0..32435b026c5 100644 --- a/src/devices/bus/electron/elksd64.h +++ b/src/devices/bus/electron/elksd64.h @@ -28,11 +28,11 @@ class electron_elksd64_device: protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() 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; virtual uint8_t expbus_r(offs_t offset) override; virtual void expbus_w(offs_t offset, uint8_t data) override; diff --git a/src/devices/bus/electron/exp.h b/src/devices/bus/electron/exp.h index 12b98356e14..d36a9c75034 100644 --- a/src/devices/bus/electron/exp.h +++ b/src/devices/bus/electron/exp.h @@ -125,7 +125,7 @@ class electron_expansion_slot_device : public device_t, public device_single_car protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; device_electron_expansion_interface *m_card; diff --git a/src/devices/bus/electron/fbjoy.h b/src/devices/bus/electron/fbjoy.h index d9faaa6cd15..c755a63a969 100644 --- a/src/devices/bus/electron/fbjoy.h +++ b/src/devices/bus/electron/fbjoy.h @@ -31,13 +31,13 @@ class electron_fbjoy_device : electron_fbjoy_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // optional information overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; virtual uint8_t expbus_r(offs_t offset) override; protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: required_ioport m_joy; diff --git a/src/devices/bus/electron/fbprint.h b/src/devices/bus/electron/fbprint.h index f279e216943..041d88634fb 100644 --- a/src/devices/bus/electron/fbprint.h +++ b/src/devices/bus/electron/fbprint.h @@ -28,10 +28,10 @@ class electron_fbprint_device: protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual uint8_t expbus_r(offs_t offset) override; virtual void expbus_w(offs_t offset, uint8_t data) override; diff --git a/src/devices/bus/electron/m2105.h b/src/devices/bus/electron/m2105.h index 07c5ffc35c4..b9c02a179a9 100644 --- a/src/devices/bus/electron/m2105.h +++ b/src/devices/bus/electron/m2105.h @@ -35,11 +35,11 @@ class electron_m2105_device: electron_m2105_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - virtual void device_start() override; + virtual void device_start() 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; virtual uint8_t expbus_r(offs_t offset) override; virtual void expbus_w(offs_t offset, uint8_t data) override; diff --git a/src/devices/bus/electron/mc68k.h b/src/devices/bus/electron/mc68k.h index c469d06e357..d8b5e29894c 100644 --- a/src/devices/bus/electron/mc68k.h +++ b/src/devices/bus/electron/mc68k.h @@ -31,12 +31,12 @@ class electron_mc68k_device: 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; // 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; virtual u8 expbus_r(offs_t offset) override; virtual void expbus_w(offs_t offset, u8 data) override; @@ -50,7 +50,7 @@ class electron_mc68k_device: memory_passthrough_handler m_rom_shadow_tap; - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; u8 m_romsel; }; diff --git a/src/devices/bus/electron/mode7.h b/src/devices/bus/electron/mode7.h index e4551e10bfe..8e0c02ec2f8 100644 --- a/src/devices/bus/electron/mode7.h +++ b/src/devices/bus/electron/mode7.h @@ -33,12 +33,12 @@ class electron_mode7_device: protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() 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 ioport_constructor device_input_ports() 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; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; virtual uint8_t expbus_r(offs_t offset) override; virtual void expbus_w(offs_t offset, uint8_t data) override; diff --git a/src/devices/bus/electron/plus1.h b/src/devices/bus/electron/plus1.h index 1ec722d066d..a7e7507a36b 100644 --- a/src/devices/bus/electron/plus1.h +++ b/src/devices/bus/electron/plus1.h @@ -35,11 +35,11 @@ class electron_plus1_device: electron_plus1_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; // 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; virtual uint8_t expbus_r(offs_t offset) override; virtual void expbus_w(offs_t offset, uint8_t data) override; @@ -77,12 +77,12 @@ class electron_ap6_device : public electron_plus1_device protected: // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual const tiny_rom_entry* device_rom_region() const override; - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; virtual uint8_t expbus_r(offs_t offset) override; virtual void expbus_w(offs_t offset, uint8_t data) override; diff --git a/src/devices/bus/electron/plus2.h b/src/devices/bus/electron/plus2.h index 3257bd08d5b..4908e8986a8 100644 --- a/src/devices/bus/electron/plus2.h +++ b/src/devices/bus/electron/plus2.h @@ -32,10 +32,10 @@ class electron_plus2_device: protected: // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual uint8_t expbus_r(offs_t offset) override; virtual void expbus_w(offs_t offset, uint8_t data) override; diff --git a/src/devices/bus/electron/plus3.h b/src/devices/bus/electron/plus3.h index 88180c6e964..136e31aa1c2 100644 --- a/src/devices/bus/electron/plus3.h +++ b/src/devices/bus/electron/plus3.h @@ -27,11 +27,11 @@ class electron_plus3_device: protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() 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; virtual uint8_t expbus_r(offs_t offset) override; virtual void expbus_w(offs_t offset, uint8_t data) override; diff --git a/src/devices/bus/electron/pwrjoy.h b/src/devices/bus/electron/pwrjoy.h index abc91cf3e2b..036af6c27a1 100644 --- a/src/devices/bus/electron/pwrjoy.h +++ b/src/devices/bus/electron/pwrjoy.h @@ -29,15 +29,15 @@ class electron_pwrjoy_device : electron_pwrjoy_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual ioport_constructor device_input_ports() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; virtual uint8_t expbus_r(offs_t offset) override; virtual void expbus_w(offs_t offset, uint8_t data) override; protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: required_memory_region m_exp_rom; diff --git a/src/devices/bus/electron/rombox.h b/src/devices/bus/electron/rombox.h index 244f551087e..694902d9c82 100644 --- a/src/devices/bus/electron/rombox.h +++ b/src/devices/bus/electron/rombox.h @@ -28,12 +28,12 @@ class electron_rombox_device: protected: // 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; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; virtual uint8_t expbus_r(offs_t offset) override; virtual void expbus_w(offs_t offset, uint8_t data) override; diff --git a/src/devices/bus/electron/romboxp.h b/src/devices/bus/electron/romboxp.h index b4022d13053..5f360df284f 100644 --- a/src/devices/bus/electron/romboxp.h +++ b/src/devices/bus/electron/romboxp.h @@ -33,13 +33,13 @@ class electron_romboxp_device: protected: // 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; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual const tiny_rom_entry *device_rom_region() const override; - virtual ioport_constructor device_input_ports() 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; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; virtual uint8_t expbus_r(offs_t offset) override; virtual void expbus_w(offs_t offset, uint8_t data) override; diff --git a/src/devices/bus/electron/sidewndr.h b/src/devices/bus/electron/sidewndr.h index 84e30d2e2a9..3298f247809 100644 --- a/src/devices/bus/electron/sidewndr.h +++ b/src/devices/bus/electron/sidewndr.h @@ -28,12 +28,12 @@ class electron_sidewndr_device: protected: // device_t implementation - virtual void device_start() override; + virtual void device_start() 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 ioport_constructor device_input_ports() 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; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; virtual uint8_t expbus_r(offs_t offset) override; virtual void expbus_w(offs_t offset, uint8_t data) override; diff --git a/src/devices/bus/electron/voxbox.h b/src/devices/bus/electron/voxbox.h index 5bab288b8ca..71620ffe44a 100644 --- a/src/devices/bus/electron/voxbox.h +++ b/src/devices/bus/electron/voxbox.h @@ -29,14 +29,14 @@ class electron_voxbox_device : public device_t, public device_electron_expansion electron_voxbox_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual void expbus_w(offs_t offset, uint8_t data) override; protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: required_device m_nsp; diff --git a/src/devices/bus/ep64/exdos.h b/src/devices/bus/ep64/exdos.h index 1cbf5a346a7..e2288de89a9 100644 --- a/src/devices/bus/ep64/exdos.h +++ b/src/devices/bus/ep64/exdos.h @@ -35,12 +35,12 @@ class ep64_exdos_device : public device_t, 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; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: static void floppy_formats(format_registration &fr); diff --git a/src/devices/bus/ep64/exp.h b/src/devices/bus/ep64/exp.h index 8a39bf315f8..bb25803e6a5 100644 --- a/src/devices/bus/ep64/exp.h +++ b/src/devices/bus/ep64/exp.h @@ -90,7 +90,7 @@ class ep64_expansion_bus_slot_device : public device_t, protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: devcb_write_line m_write_irq; diff --git a/src/devices/bus/epson_qx/cqgmem.h b/src/devices/bus/epson_qx/cqgmem.h index ac5026c7cee..25f5d537a1d 100644 --- a/src/devices/bus/epson_qx/cqgmem.h +++ b/src/devices/bus/epson_qx/cqgmem.h @@ -29,16 +29,16 @@ class cqgmem_device : public device_t, public device_option_expansion_interface, protected: // device_t implementation - virtual void device_start() override; - virtual void device_reset() override; - virtual ioport_constructor device_input_ports() const override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; virtual space_config_vector memory_space_config() const override; private: void write(offs_t offset, uint8_t data); - void io_map(address_map &map); - void xmem_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void xmem_map(address_map &map) ATTR_COLD; uint8_t m_banks_enabled; diff --git a/src/devices/bus/epson_qx/cr1510.h b/src/devices/bus/epson_qx/cr1510.h index 6078d536880..b19ae7327da 100644 --- a/src/devices/bus/epson_qx/cr1510.h +++ b/src/devices/bus/epson_qx/cr1510.h @@ -31,13 +31,13 @@ class cr1510_device : public device_t, public bus::epson_qx::device_option_expan 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; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; - void map(address_map &map); + void map(address_map &map) ATTR_COLD; private: required_device m_hdd; }; diff --git a/src/devices/bus/epson_qx/ide.h b/src/devices/bus/epson_qx/ide.h index 19c8f2a3a5d..d8ecfb0a1b1 100644 --- a/src/devices/bus/epson_qx/ide.h +++ b/src/devices/bus/epson_qx/ide.h @@ -32,14 +32,14 @@ class ide_device : public ide_hdd_device_base, public device_option_expansion_in protected: // device_t implementation - virtual void device_start() override; - virtual void device_reset() override; - virtual ioport_constructor device_input_ports() const override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; uint8_t read(offs_t offset); void write(offs_t offset, uint8_t data); - void map(address_map &map); + void map(address_map &map) ATTR_COLD; private: // ata_hle_device_base implementation diff --git a/src/devices/bus/epson_qx/keyboard/keyboard.h b/src/devices/bus/epson_qx/keyboard/keyboard.h index d45bf4c0a62..b0ee9275d61 100644 --- a/src/devices/bus/epson_qx/keyboard/keyboard.h +++ b/src/devices/bus/epson_qx/keyboard/keyboard.h @@ -49,8 +49,8 @@ class keyboard_port_device : public device_t, public device_single_card_slot_int 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; private: keyboard_device *m_kbd; @@ -67,9 +67,9 @@ class keyboard_device : public device_t, public device_interface protected: keyboard_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); - virtual void device_add_mconfig(machine_config &config) override; - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; void mcu_p1_w(uint8_t data); void mcu_p2_w(uint8_t data); @@ -89,7 +89,7 @@ class qx10_keyboard_hasci : public keyboard_device { public: qx10_keyboard_hasci(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; virtual const internal_layout &layout() const override; }; @@ -97,7 +97,7 @@ class qx10_keyboard_ascii : public keyboard_device { public: qx10_keyboard_ascii(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; virtual const internal_layout &layout() const override; }; diff --git a/src/devices/bus/epson_qx/multifont.h b/src/devices/bus/epson_qx/multifont.h index 85cd6739286..256e3c26bfb 100644 --- a/src/devices/bus/epson_qx/multifont.h +++ b/src/devices/bus/epson_qx/multifont.h @@ -31,19 +31,19 @@ class multifont_device : public device_t, public bus::epson_qx::device_option_ex 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; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; uint8_t read(offs_t offset); void write(offs_t offset, uint8_t data); - void rom_map(address_map &map); - void map(address_map &map); + void rom_map(address_map &map) ATTR_COLD; + void map(address_map &map) ATTR_COLD; void p1_w(uint8_t data); void p2_w(uint8_t data); diff --git a/src/devices/bus/epson_qx/option.h b/src/devices/bus/epson_qx/option.h index 5950a88ce79..8df99a60211 100644 --- a/src/devices/bus/epson_qx/option.h +++ b/src/devices/bus/epson_qx/option.h @@ -160,7 +160,7 @@ class option_slot_device : public device_t, public device_single_card_slot_inter auto in_eops_callback() { return m_eops_cb.bind(); } protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // configuration required_device m_bus; @@ -224,8 +224,8 @@ class option_bus_device : public device_t 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; required_address_space m_iospace; memory_view::memory_view_entry *m_view; diff --git a/src/devices/bus/epson_qx/sound_card.h b/src/devices/bus/epson_qx/sound_card.h index e85e1e0b7da..2d36ff6bc43 100644 --- a/src/devices/bus/epson_qx/sound_card.h +++ b/src/devices/bus/epson_qx/sound_card.h @@ -32,14 +32,14 @@ class ym2149_sound_card_device : public device_t, public device_option_expansion 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; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; - void map(address_map &map); + void map(address_map &map) ATTR_COLD; private: uint8_t m_irqline; diff --git a/src/devices/bus/epson_sio/epson_sio.h b/src/devices/bus/epson_sio/epson_sio.h index 9cdf940b9ac..c8d9e9ba06a 100644 --- a/src/devices/bus/epson_sio/epson_sio.h +++ b/src/devices/bus/epson_sio/epson_sio.h @@ -51,7 +51,7 @@ class epson_sio_device : public device_t, public device_single_card_slot_interfa protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; device_epson_sio_interface *m_cart; diff --git a/src/devices/bus/epson_sio/pf10.h b/src/devices/bus/epson_sio/pf10.h index d49200c0c90..6cf8ec5eb1b 100644 --- a/src/devices/bus/epson_sio/pf10.h +++ b/src/devices/bus/epson_sio/pf10.h @@ -32,12 +32,12 @@ class epson_pf10_device : public device_t, 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; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; // device_epson_sio_interface overrides virtual void tx_w(int level) override; @@ -64,7 +64,7 @@ class epson_pf10_device : public device_t, TIMER_CALLBACK_MEMBER( serial_clk_tick ); - void cpu_mem(address_map &map); + void cpu_mem(address_map &map) ATTR_COLD; required_device m_cpu; required_device m_fdc; diff --git a/src/devices/bus/epson_sio/tf20.h b/src/devices/bus/epson_sio/tf20.h index 30dcc914f15..c699306829d 100644 --- a/src/devices/bus/epson_sio/tf20.h +++ b/src/devices/bus/epson_sio/tf20.h @@ -34,13 +34,13 @@ class epson_tf20_device : public device_t, 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; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; // device_epson_sio_interface overrides virtual void tx_w(int level) override; @@ -62,8 +62,8 @@ class epson_tf20_device : public device_t, TIMER_CALLBACK_MEMBER( serial_tick ); TIMER_CALLBACK_MEMBER( tc_tick ); - void cpu_io(address_map &map); - void cpu_mem(address_map &map); + void cpu_io(address_map &map) ATTR_COLD; + void cpu_mem(address_map &map) ATTR_COLD; required_device m_cpu; required_device m_ram; diff --git a/src/devices/bus/fmt_scsi/fmt121.h b/src/devices/bus/fmt_scsi/fmt121.h index 9b80b2c70f1..bf8ddd07876 100644 --- a/src/devices/bus/fmt_scsi/fmt121.h +++ b/src/devices/bus/fmt_scsi/fmt121.h @@ -25,8 +25,8 @@ class fmt121_device : public device_t, public fmt_scsi_card_interface protected: // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; // fmt_scsi_card_interface overrides virtual u8 fmt_scsi_read(offs_t offset) override; diff --git a/src/devices/bus/fmt_scsi/fmt_scsi.h b/src/devices/bus/fmt_scsi/fmt_scsi.h index 549b1047f4c..80cbaa735e3 100644 --- a/src/devices/bus/fmt_scsi/fmt_scsi.h +++ b/src/devices/bus/fmt_scsi/fmt_scsi.h @@ -53,8 +53,8 @@ class fmt_scsi_slot_device : public device_t, public device_single_card_slot_int protected: // device-specific overrides - 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; private: fmt_scsi_card_interface *m_card; diff --git a/src/devices/bus/fp1000/fp1000_exp.h b/src/devices/bus/fp1000/fp1000_exp.h index 8b437e09f0b..39dd2449795 100644 --- a/src/devices/bus/fp1000/fp1000_exp.h +++ b/src/devices/bus/fp1000/fp1000_exp.h @@ -38,7 +38,7 @@ class fp1000_exp_slot_device : public device_t, public device_single_card_slot_i auto intd_callback() { return m_intd_cb.bind(); } protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void device_config_complete() override; private: @@ -89,8 +89,8 @@ class fp1000_exp_device : public device_t, public device_fp1000_exp_interface protected: -// virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; +// virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; }; // device type definition diff --git a/src/devices/bus/fp1000/fp1020fd.h b/src/devices/bus/fp1000/fp1020fd.h index c3a2fb0aa7a..3ba84bc61eb 100644 --- a/src/devices/bus/fp1000/fp1020fd.h +++ b/src/devices/bus/fp1000/fp1020fd.h @@ -16,16 +16,16 @@ class fp1020fd_device : public fp1060io_exp_device public: fp1020fd_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - virtual void io_map(address_map &map) override; + virtual void io_map(address_map &map) override ATTR_COLD; virtual u8 get_id() override { return 0x04; }; protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; required_device m_fdc; required_device_array m_floppy; diff --git a/src/devices/bus/fp1000/fp1030_rampack.h b/src/devices/bus/fp1000/fp1030_rampack.h index 61cedb0b416..aa63a8dffb5 100644 --- a/src/devices/bus/fp1000/fp1030_rampack.h +++ b/src/devices/bus/fp1000/fp1030_rampack.h @@ -14,15 +14,15 @@ class fp1030_rampack_device : public fp1060io_exp_device public: fp1030_rampack_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - virtual void io_map(address_map &map) override; + virtual void io_map(address_map &map) override ATTR_COLD; virtual u8 get_id() override { return 0x01; }; protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; required_device m_nvram; std::unique_ptr m_nvram_ptr; diff --git a/src/devices/bus/fp1000/fp1060io.h b/src/devices/bus/fp1000/fp1060io.h index c31243324b5..7e4f298fe29 100644 --- a/src/devices/bus/fp1000/fp1060io.h +++ b/src/devices/bus/fp1000/fp1060io.h @@ -21,11 +21,11 @@ class fp1060io_device : public fp1000_exp_device virtual void remap_cb() override; protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; required_device_array m_subslot; required_device_array m_irqs_int; diff --git a/src/devices/bus/fp1000/fp1060io_exp.h b/src/devices/bus/fp1000/fp1060io_exp.h index 3cf0261a863..df39924647c 100644 --- a/src/devices/bus/fp1000/fp1060io_exp.h +++ b/src/devices/bus/fp1000/fp1060io_exp.h @@ -34,7 +34,7 @@ class fp1060io_exp_slot_device : public device_t, public device_single_card_slot auto intd_callback() { return m_intd_cb.bind(); } protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void device_config_complete() override; devcb_write_line m_inta_cb; @@ -75,8 +75,8 @@ class fp1060io_exp_device : public device_t, public device_fp1060io_exp_interfac protected: -// virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; +// virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; }; void fp1060io_slot_devices(device_slot_interface &device); diff --git a/src/devices/bus/gamate/gamate_protection.h b/src/devices/bus/gamate/gamate_protection.h index dd12764dd2c..4c6f077f246 100644 --- a/src/devices/bus/gamate/gamate_protection.h +++ b/src/devices/bus/gamate/gamate_protection.h @@ -20,8 +20,8 @@ class gamate_protection_device : public device_t int prot_r(); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: int m_is_protection_passed; diff --git a/src/devices/bus/gamate/rom.h b/src/devices/bus/gamate/rom.h index cad923f3d54..f38302da17a 100644 --- a/src/devices/bus/gamate/rom.h +++ b/src/devices/bus/gamate/rom.h @@ -26,7 +26,7 @@ class gamate_rom_plain_device : public device_t, protected: gamate_rom_plain_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; // device-level overrides virtual void device_start() override { } @@ -51,8 +51,8 @@ class gamate_rom_banked_device : public gamate_rom_plain_device virtual void write_rom(offs_t offset, uint8_t data) override; protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; int m_bank; }; @@ -71,8 +71,8 @@ class gamate_rom_4in1_device : public gamate_rom_banked_device virtual void write_rom(offs_t offset, uint8_t data) override; protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: int m_multibank; diff --git a/src/devices/bus/gamate/slot.h b/src/devices/bus/gamate/slot.h index 54679ae0c23..21381463667 100644 --- a/src/devices/bus/gamate/slot.h +++ b/src/devices/bus/gamate/slot.h @@ -84,7 +84,7 @@ class gamate_cart_slot_device : public device_t, protected: // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; int m_type; device_gamate_cart_interface *m_cart; diff --git a/src/devices/bus/gba/gba_slot.h b/src/devices/bus/gba/gba_slot.h index 0a7e66ca957..4510993e872 100644 --- a/src/devices/bus/gba/gba_slot.h +++ b/src/devices/bus/gba/gba_slot.h @@ -126,7 +126,7 @@ class gba_cart_slot_device : public device_t, protected: // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; int m_type; device_gba_cart_interface* m_cart; diff --git a/src/devices/bus/gba/rom.h b/src/devices/bus/gba/rom.h index 3a1ac4005a1..b9ffbef021e 100644 --- a/src/devices/bus/gba/rom.h +++ b/src/devices/bus/gba/rom.h @@ -103,8 +103,8 @@ class gba_rom_device : public device_t, gba_rom_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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; private: uint16_t m_gpio_regs[4]; @@ -139,7 +139,7 @@ class gba_rom_drilldoz_device : public gba_rom_sram_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void gpio_dev_write(uint16_t data, int gpio_dirs) override; private: @@ -155,15 +155,15 @@ class gba_rom_wariotws_device : public gba_rom_sram_device // construction/destruction gba_rom_wariotws_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; virtual uint16_t gpio_dev_read(int gpio_dirs) override; virtual void gpio_dev_write(uint16_t data, int gpio_dirs) override; 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; private: output_finder<> m_rumble; @@ -189,10 +189,10 @@ class gba_rom_flash_device : public gba_rom_device protected: gba_rom_flash_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; //uint32_t m_flash_size; uint32_t m_flash_mask; @@ -213,7 +213,7 @@ class gba_rom_flash_rtc_device : public gba_rom_flash_device virtual void gpio_dev_write(uint16_t data, int gpio_dirs) override; protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: std::unique_ptr m_rtc; @@ -235,10 +235,10 @@ class gba_rom_flash1m_device : public gba_rom_device protected: gba_rom_flash1m_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; //uint32_t m_flash_size; uint32_t m_flash_mask; @@ -259,7 +259,7 @@ class gba_rom_flash1m_rtc_device : public gba_rom_flash1m_device virtual void gpio_dev_write(uint16_t data, int gpio_dirs) override; protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: std::unique_ptr m_rtc; @@ -282,7 +282,7 @@ class gba_rom_eeprom_device : public gba_rom_device gba_rom_eeprom_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: std::unique_ptr m_eeprom; @@ -298,15 +298,15 @@ class gba_rom_yoshiug_device : public gba_rom_eeprom_device gba_rom_yoshiug_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // device-level overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; // reading and writing virtual uint32_t read_tilt(offs_t offset, uint32_t mem_mask = ~0) override; virtual void write_tilt(offs_t offset, uint32_t data) override; protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: int m_tilt_ready; @@ -332,7 +332,7 @@ class gba_rom_eeprom64_device : public gba_rom_device gba_rom_eeprom64_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; std::unique_ptr m_eeprom; }; @@ -347,14 +347,14 @@ class gba_rom_boktai_device : public gba_rom_eeprom64_device gba_rom_boktai_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // device-level overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; virtual uint16_t gpio_dev_read(int gpio_dirs) override; virtual void gpio_dev_write(uint16_t data, int gpio_dirs) override; private: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; std::unique_ptr m_rtc; required_ioport m_sensor; @@ -376,8 +376,8 @@ class gba_rom_3dmatrix_device : public gba_rom_device 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; private: uint32_t m_src, m_dst, m_nblock; diff --git a/src/devices/bus/generic/ram.h b/src/devices/bus/generic/ram.h index 5cd8c8092b0..6da03757d5c 100644 --- a/src/devices/bus/generic/ram.h +++ b/src/devices/bus/generic/ram.h @@ -22,7 +22,7 @@ class generic_ram_plain_device : public device_t, public device_generic_cart_int generic_ram_plain_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, uint32_t size); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: uint32_t m_size; @@ -43,7 +43,7 @@ class generic_ram_linear_device : public device_t, public device_generic_cart_in generic_ram_linear_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, uint32_t size); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: uint32_t m_size; diff --git a/src/devices/bus/gio64/gio64.h b/src/devices/bus/gio64/gio64.h index 486f419ca25..54642a66f2d 100644 --- a/src/devices/bus/gio64/gio64.h +++ b/src/devices/bus/gio64/gio64.h @@ -39,8 +39,8 @@ class gio64_slot_device : public device_t, public device_slot_interface protected: // device_t implementation virtual void device_validity_check(validity_checker &valid) const override; - 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 m_gio64; @@ -116,7 +116,7 @@ class gio64_device : public device_t, gio64_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 device_gio64_card_interface *m_device_list[3]; diff --git a/src/devices/bus/gio64/newport.h b/src/devices/bus/gio64/newport.h index 61df96dbe8f..116ff6637be 100644 --- a/src/devices/bus/gio64/newport.h +++ b/src/devices/bus/gio64/newport.h @@ -50,8 +50,8 @@ class xmap9_device : public device_t private: // device_t 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; // Initializers void set_revision(uint32_t revision) { m_revision = revision; } @@ -98,8 +98,8 @@ class cmap_device : public device_t private: // device_t 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; // device_palette_interface overrides virtual uint32_t palette_entries() const noexcept override { return 0x2000; } @@ -149,8 +149,8 @@ class vc2_device : public device_t private: // device_t 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; enum { @@ -246,8 +246,8 @@ class rb2_device : public device_t private: // device_t 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; void logic_pixel(uint32_t src); void store_pixel(uint32_t value); @@ -311,9 +311,9 @@ class newport_base_device : public device_t protected: // device_t overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; void device_add_mconfig(machine_config &config, uint32_t xmap_revision, uint32_t cmap_revision, uint32_t global_mask); void mem_map(address_map &map) override; @@ -532,7 +532,7 @@ class gio64_xl8_device : public newport_base_device gio64_xl8_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 0U); protected: - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; class gio64_xl24_device : public newport_base_device @@ -541,7 +541,7 @@ class gio64_xl24_device : public newport_base_device gio64_xl24_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 0U); protected: - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; DECLARE_DEVICE_TYPE(GIO64_XL8, gio64_xl8_device) diff --git a/src/devices/bus/hexbus/hexbus.h b/src/devices/bus/hexbus/hexbus.h index 34bbea63193..3260ed9ae16 100644 --- a/src/devices/bus/hexbus/hexbus.h +++ b/src/devices/bus/hexbus/hexbus.h @@ -60,7 +60,7 @@ class hexbus_chained_device : public device_t, public device_hexbus_interface void set_outbound_hexbus(hexbus_device *outbound) { m_hexbus_outbound = outbound; } - virtual void device_resolve_objects() override; + virtual void device_resolve_objects() override ATTR_COLD; // Link to the inbound Hexbus (if not null, see Oso chip) hexbus_device *m_hexbus_inbound; @@ -161,7 +161,7 @@ class hexbus_device : public device_t, public device_single_card_slot_interface< void write(int dir, uint8_t data); protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; device_hexbus_interface *m_next_dev; private: diff --git a/src/devices/bus/hexbus/hx5102.h b/src/devices/bus/hexbus/hx5102.h index b0e490237d8..3cafdff9940 100644 --- a/src/devices/bus/hexbus/hx5102.h +++ b/src/devices/bus/hexbus/hx5102.h @@ -36,20 +36,20 @@ class hx5102_device : public hexbus_chained_device hx5102_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 void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; - void crumap(address_map &map); - void memmap(address_map &map); + void crumap(address_map &map) ATTR_COLD; + void memmap(address_map &map) ATTR_COLD; void external_operation(offs_t offset, uint8_t data); void clock_out(int state); void board_ready(int state); void board_reset(int state); static void floppy_formats(format_registration &fr); - 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 hexbus_value_changed(uint8_t data) override; private: diff --git a/src/devices/bus/hexbus/tp0370.h b/src/devices/bus/hexbus/tp0370.h index 9aafc27804a..8a45efde193 100644 --- a/src/devices/bus/hexbus/tp0370.h +++ b/src/devices/bus/hexbus/tp0370.h @@ -22,8 +22,8 @@ class ibc_device : public device_t { public: ibc_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - void device_start() override; - void device_reset() override; + void device_start() override ATTR_COLD; + void device_reset() override ATTR_COLD; uint8_t read(offs_t offset); void write(offs_t offset, uint8_t data); diff --git a/src/devices/bus/hp80_io/82900.h b/src/devices/bus/hp80_io/82900.h index 8abd63a1519..35270eef2e8 100644 --- a/src/devices/bus/hp80_io/82900.h +++ b/src/devices/bus/hp80_io/82900.h @@ -25,13 +25,13 @@ class hp82900_io_card_device : public device_t, public device_hp80_io_interface virtual ~hp82900_io_card_device(); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; // device-level overrides - virtual ioport_constructor device_input_ports() const override; - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual ioport_constructor device_input_ports() const 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; virtual void install_read_write_handlers(address_space& space , uint16_t base_addr) override; @@ -56,8 +56,8 @@ class hp82900_io_card_device : public device_t, public device_hp80_io_interface void cpu_mem_w(offs_t offset, uint8_t data); uint8_t cpu_io_r(offs_t offset); void cpu_io_w(offs_t offset, uint8_t data); - void cpu_mem_map(address_map &map); - void cpu_io_map(address_map &map); + void cpu_mem_map(address_map &map) ATTR_COLD; + void cpu_io_map(address_map &map) ATTR_COLD; void z80_m1_w(uint8_t data); }; diff --git a/src/devices/bus/hp80_io/82937.h b/src/devices/bus/hp80_io/82937.h index 9847f1a94b2..e685f9ccb15 100644 --- a/src/devices/bus/hp80_io/82937.h +++ b/src/devices/bus/hp80_io/82937.h @@ -26,13 +26,13 @@ class hp82937_io_card_device : public device_t, public device_hp80_io_interface virtual ~hp82937_io_card_device(); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; // device-level overrides - virtual ioport_constructor device_input_ports() const override; - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual ioport_constructor device_input_ports() const 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; virtual void install_read_write_handlers(address_space& space , uint16_t base_addr) override; @@ -61,7 +61,7 @@ class hp82937_io_card_device : public device_t, public device_hp80_io_interface uint8_t switch_r(); void latch_w(uint8_t data); - void cpu_io_map(address_map &map); + void cpu_io_map(address_map &map) ATTR_COLD; void update_data_out(); void update_signals(); diff --git a/src/devices/bus/hp80_io/82939.h b/src/devices/bus/hp80_io/82939.h index fb9e07dd3ec..c91c8f98b69 100644 --- a/src/devices/bus/hp80_io/82939.h +++ b/src/devices/bus/hp80_io/82939.h @@ -27,12 +27,12 @@ class hp82939_io_card_device : public device_t, public device_hp80_io_interface virtual ~hp82939_io_card_device(); protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device-level overrides - virtual ioport_constructor device_input_ports() const override; - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual ioport_constructor device_input_ports() const 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; virtual void install_read_write_handlers(address_space& space , uint16_t base_addr) override; @@ -51,7 +51,7 @@ class hp82939_io_card_device : public device_t, public device_hp80_io_interface uint8_t p2_r(); uint8_t cpu_r(offs_t offset); void cpu_w(offs_t offset, uint8_t data); - void cpu_io_map(address_map &map); + void cpu_io_map(address_map &map) ATTR_COLD; }; // device type definition diff --git a/src/devices/bus/hp80_io/hp80_io.h b/src/devices/bus/hp80_io/hp80_io.h index a65b298309d..90f9912d222 100644 --- a/src/devices/bus/hp80_io/hp80_io.h +++ b/src/devices/bus/hp80_io/hp80_io.h @@ -70,7 +70,7 @@ class hp80_io_slot_device : public device_t, protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: devcb_write8 m_irl_cb_func; diff --git a/src/devices/bus/hp9845_io/98032.h b/src/devices/bus/hp9845_io/98032.h index 9da205d1baf..0c0c742214c 100644 --- a/src/devices/bus/hp9845_io/98032.h +++ b/src/devices/bus/hp9845_io/98032.h @@ -27,10 +27,10 @@ class hp98032_io_card_device : public device_t, public device_hp9845_io_interfac protected: // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; virtual uint16_t reg_r(address_space &space, offs_t offset) override; virtual void reg_w(address_space &space, offs_t offset, uint16_t data) override; @@ -125,8 +125,8 @@ class hp98032_gpio_slot_device : public device_t, 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; private: devcb_write_line m_pflg_handler; @@ -177,8 +177,8 @@ class hp98032_gpio_loopback_device : public device_t, public device_hp98032_gpio 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; private: uint16_t m_output; diff --git a/src/devices/bus/hp9845_io/98034.h b/src/devices/bus/hp9845_io/98034.h index d1fa42c5f0a..1313c182735 100644 --- a/src/devices/bus/hp9845_io/98034.h +++ b/src/devices/bus/hp9845_io/98034.h @@ -25,13 +25,13 @@ class hp98034_io_card_device : public device_t, public device_hp9845_io_interfac virtual ~hp98034_io_card_device(); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; // device-level overrides - virtual ioport_constructor device_input_ports() const override; - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual ioport_constructor device_input_ports() const 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; virtual uint16_t reg_r(address_space &space, offs_t offset) override; virtual void reg_w(address_space &space, offs_t offset, uint16_t data) override; @@ -51,8 +51,8 @@ class hp98034_io_card_device : public device_t, public device_hp9845_io_interfac void mode_reg_clear_w(uint8_t data); uint8_t switch_r(); - void np_io_map(address_map &map); - void np_program_map(address_map &map); + void np_io_map(address_map &map) ATTR_COLD; + void np_program_map(address_map &map) ATTR_COLD; void ieee488_ctrl_w(int state); diff --git a/src/devices/bus/hp9845_io/98035.h b/src/devices/bus/hp9845_io/98035.h index f92e1734047..c7c56579ddc 100644 --- a/src/devices/bus/hp9845_io/98035.h +++ b/src/devices/bus/hp9845_io/98035.h @@ -25,13 +25,13 @@ class hp98035_io_card_device : public device_t, public device_hp9845_io_interfac virtual ~hp98035_io_card_device(); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; // device-level overrides - virtual ioport_constructor device_input_ports() const override; - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual ioport_constructor device_input_ports() const 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; virtual uint16_t reg_r(address_space &space, offs_t offset) override; virtual void reg_w(address_space &space, offs_t offset, uint16_t data) override; @@ -59,8 +59,8 @@ class hp98035_io_card_device : public device_t, public device_hp9845_io_interfac TIMER_CALLBACK_MEMBER(msec_tick); TIMER_CALLBACK_MEMBER(clock_tick); - void np_io_map(address_map &map); - void np_program_map(address_map &map); + void np_io_map(address_map &map) ATTR_COLD; + void np_program_map(address_map &map) ATTR_COLD; required_device m_cpu; diff --git a/src/devices/bus/hp9845_io/98036.h b/src/devices/bus/hp9845_io/98036.h index b1c150a57fc..e13ef2a9bdd 100644 --- a/src/devices/bus/hp9845_io/98036.h +++ b/src/devices/bus/hp9845_io/98036.h @@ -30,10 +30,10 @@ class hp98036_io_card_device : public device_t, public device_hp9845_io_interfac protected: // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: required_device m_uart; diff --git a/src/devices/bus/hp9845_io/98046.h b/src/devices/bus/hp9845_io/98046.h index dd19c6f29a0..73a8072d935 100644 --- a/src/devices/bus/hp9845_io/98046.h +++ b/src/devices/bus/hp9845_io/98046.h @@ -33,11 +33,11 @@ class hp98046_io_card_device : public device_t, public device_hp9845_io_interfac protected: // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: required_device m_cpu; @@ -72,8 +72,8 @@ class hp98046_io_card_device : public device_t, public device_hp9845_io_interfac uint8_t m_rxc_sel; uint8_t m_txc_sel; - void cpu_program_map(address_map &map); - void cpu_io_map(address_map &map); + void cpu_program_map(address_map &map) ATTR_COLD; + void cpu_io_map(address_map &map) ATTR_COLD; uint8_t ram_r(offs_t offset); uint8_t cpu_r(offs_t offset); void cpu_w(offs_t offset, uint8_t data); diff --git a/src/devices/bus/hp9845_io/hp9845_io.h b/src/devices/bus/hp9845_io/hp9845_io.h index 4821c1cd5c9..77f4b32fc5a 100644 --- a/src/devices/bus/hp9845_io/hp9845_io.h +++ b/src/devices/bus/hp9845_io/hp9845_io.h @@ -67,7 +67,7 @@ class hp9845_io_slot_device : public device_t, protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: devcb_write_line m_irq_cb_func; diff --git a/src/devices/bus/hp9845_io/hp9871.h b/src/devices/bus/hp9845_io/hp9871.h index 1321c8a69f2..3e8104f54f8 100644 --- a/src/devices/bus/hp9845_io/hp9871.h +++ b/src/devices/bus/hp9845_io/hp9871.h @@ -34,9 +34,9 @@ class hp9871_device : public device_t, public device_hp98032_gpio_interface protected: // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: required_device m_printer; diff --git a/src/devices/bus/hp9845_io/hp9885.h b/src/devices/bus/hp9845_io/hp9885.h index 414f34688e2..a2732d8e599 100644 --- a/src/devices/bus/hp9845_io/hp9885.h +++ b/src/devices/bus/hp9845_io/hp9885.h @@ -35,9 +35,9 @@ class hp9885_device : public device_t, public device_hp98032_gpio_interface protected: // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: // FSM states diff --git a/src/devices/bus/hp_dio/hp98265a.cpp b/src/devices/bus/hp_dio/hp98265a.cpp index 1dff70a3d27..dcfcf6d8a11 100644 --- a/src/devices/bus/hp_dio/hp98265a.cpp +++ b/src/devices/bus/hp_dio/hp98265a.cpp @@ -35,11 +35,11 @@ class dio16_98265a_device : // 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 ioport_constructor device_input_ports() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; uint16_t io_r(offs_t offset); void io_w(offs_t offset, uint16_t data); diff --git a/src/devices/bus/hp_dio/hp98543.cpp b/src/devices/bus/hp_dio/hp98543.cpp index 0582822e080..452ac3f3107 100644 --- a/src/devices/bus/hp_dio/hp98543.cpp +++ b/src/devices/bus/hp_dio/hp98543.cpp @@ -43,11 +43,11 @@ class dio16_98543_device : protected: dio16_98543_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 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; virtual space_config_vector memory_space_config() const override; private: @@ -59,7 +59,7 @@ class dio16_98543_device : void int3_w(int state); const address_space_config m_space_config; - void map(address_map &map); + void map(address_map &map) ATTR_COLD; void update_int(); static constexpr int m_h_pix = 1024; static constexpr int m_v_pix = 400; diff --git a/src/devices/bus/hp_dio/hp98544.cpp b/src/devices/bus/hp_dio/hp98544.cpp index ddf47683d1a..3eb9e7dfbcc 100644 --- a/src/devices/bus/hp_dio/hp98544.cpp +++ b/src/devices/bus/hp_dio/hp98544.cpp @@ -39,12 +39,12 @@ class dio16_98544_device : dio16_98544_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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; // 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; virtual space_config_vector memory_space_config() const override; private: @@ -55,7 +55,7 @@ class dio16_98544_device : static constexpr int m_h_pix = 1024; const address_space_config m_space_config; - void map(address_map &map); + void map(address_map &map) ATTR_COLD; required_region_ptr m_rom; required_shared_ptr m_vram; diff --git a/src/devices/bus/hp_dio/hp98550.cpp b/src/devices/bus/hp_dio/hp98550.cpp index 7d541bc35d5..f93fddc5fdb 100644 --- a/src/devices/bus/hp_dio/hp98550.cpp +++ b/src/devices/bus/hp_dio/hp98550.cpp @@ -47,11 +47,11 @@ class dio32_98550_device : dio32_98550_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 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; virtual space_config_vector memory_space_config() const override; @@ -59,7 +59,7 @@ class dio32_98550_device : void int_w(offs_t offset, uint8_t data); const address_space_config m_space_config; - void map(address_map &map); + void map(address_map &map) ATTR_COLD; void update_int(); static constexpr int m_fb_width = 2048; diff --git a/src/devices/bus/hp_dio/hp98603a.cpp b/src/devices/bus/hp_dio/hp98603a.cpp index 6b10d9281fd..d4ddb02239a 100644 --- a/src/devices/bus/hp_dio/hp98603a.cpp +++ b/src/devices/bus/hp_dio/hp98603a.cpp @@ -28,12 +28,12 @@ class dio16_98603a_device : dio16_98603a_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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; // 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; private: uint8_t *m_rom; diff --git a/src/devices/bus/hp_dio/hp98603b.cpp b/src/devices/bus/hp_dio/hp98603b.cpp index e8f6f822f80..34f2d440305 100644 --- a/src/devices/bus/hp_dio/hp98603b.cpp +++ b/src/devices/bus/hp_dio/hp98603b.cpp @@ -28,12 +28,12 @@ class dio16_98603b_device : dio16_98603b_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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; // 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; private: uint8_t *m_rom; diff --git a/src/devices/bus/hp_dio/hp98620.cpp b/src/devices/bus/hp_dio/hp98620.cpp index bde9a5f78a7..5f49ca9496d 100644 --- a/src/devices/bus/hp_dio/hp98620.cpp +++ b/src/devices/bus/hp_dio/hp98620.cpp @@ -28,8 +28,8 @@ class dio16_98620_device : dio16_98620_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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 execute_run() override; uint16_t dma_r(offs_t offset); diff --git a/src/devices/bus/hp_dio/hp98624.cpp b/src/devices/bus/hp_dio/hp98624.cpp index 2cfb4a9e884..a5a8265e63b 100644 --- a/src/devices/bus/hp_dio/hp98624.cpp +++ b/src/devices/bus/hp_dio/hp98624.cpp @@ -27,11 +27,11 @@ class dio16_98624_device : protected: dio16_98624_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 ioport_constructor device_input_ports() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; void dmack_w_in(int channel, uint8_t data) override; uint8_t dmack_r_in(int channel) override; diff --git a/src/devices/bus/hp_dio/hp98643.cpp b/src/devices/bus/hp_dio/hp98643.cpp index dcc8da23245..04e08abbee1 100644 --- a/src/devices/bus/hp_dio/hp98643.cpp +++ b/src/devices/bus/hp_dio/hp98643.cpp @@ -46,17 +46,17 @@ class dio16_98643_device : // 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 ioport_constructor device_input_ports() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: required_device m_lance; required_ioport m_switches; - void addrmap(address_map &map); + void addrmap(address_map &map) ATTR_COLD; void update_int(); int get_irq_line(); diff --git a/src/devices/bus/hp_dio/hp98644.cpp b/src/devices/bus/hp_dio/hp98644.cpp index ec78a13be1f..7f3bf94c34e 100644 --- a/src/devices/bus/hp_dio/hp98644.cpp +++ b/src/devices/bus/hp_dio/hp98644.cpp @@ -28,12 +28,12 @@ class dio16_98644_device : // 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 ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; uint16_t io_r(offs_t offset); void io_w(offs_t offset, uint16_t data); diff --git a/src/devices/bus/hp_dio/hp_dio.h b/src/devices/bus/hp_dio/hp_dio.h index 1b8c850c1c4..af0db99ed14 100644 --- a/src/devices/bus/hp_dio/hp_dio.h +++ b/src/devices/bus/hp_dio/hp_dio.h @@ -49,9 +49,9 @@ class dio16_slot_device : public device_t, public device_slot_interface dio16_slot_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // device-level overrides - virtual void device_resolve_objects() override; + virtual void device_resolve_objects() override ATTR_COLD; virtual void device_validity_check(validity_checker &valid) const override; - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // configuration required_device m_dio; @@ -132,8 +132,8 @@ class dio16_device : public device_t void install_space(int spacenum, offs_t start, offs_t end, read8_delegate rhandler, write8_delegate whandler); // 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; // internal state std::list m_cards; @@ -245,7 +245,7 @@ class dio32_slot_device : public dio16_slot_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; }; // ======================> dio32_device @@ -259,7 +259,7 @@ class dio32_device : public dio16_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; }; // ======================> device_dio32_card_interface diff --git a/src/devices/bus/hp_dio/human_interface.h b/src/devices/bus/hp_dio/human_interface.h index 0f6f3d04106..b5bf0a21374 100644 --- a/src/devices/bus/hp_dio/human_interface.h +++ b/src/devices/bus/hp_dio/human_interface.h @@ -27,11 +27,11 @@ class human_interface_device : protected: human_interface_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 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: @@ -69,7 +69,7 @@ class human_interface_device : required_device m_rtc; required_device m_ieee488; - void iocpu_map(address_map &map); + void iocpu_map(address_map &map) ATTR_COLD; static constexpr uint8_t HIL_CS = 0x01; static constexpr uint8_t HIL_WE = 0x02; diff --git a/src/devices/bus/hp_hil/hlebase.h b/src/devices/bus/hp_hil/hlebase.h index 96efcdd2073..978c548379e 100644 --- a/src/devices/bus/hp_hil/hlebase.h +++ b/src/devices/bus/hp_hil/hlebase.h @@ -23,8 +23,8 @@ class hle_device_base hle_device_base(machine_config const &mconfig, device_type type, char const *tag, device_t *owner, uint32_t clock); // device 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; // device_hp_hil_interface overrides virtual bool hil_write(uint16_t *data) override; diff --git a/src/devices/bus/hp_hil/hlekbd.h b/src/devices/bus/hp_hil/hlekbd.h index e1b5c08fd5a..cbdf8ac94be 100644 --- a/src/devices/bus/hp_hil/hlekbd.h +++ b/src/devices/bus/hp_hil/hlekbd.h @@ -19,8 +19,8 @@ class hle_hp_ipc_device public: hle_hp_ipc_device(machine_config const &mconfig, char const *tag, device_t *owner, uint32_t clock); - virtual ioport_constructor device_input_ports() const override; - virtual void device_reset() override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; // device_matrix_keyboard_interface overrides virtual void key_make(uint8_t row, uint8_t column) override; @@ -51,8 +51,8 @@ class hle_hp_itf_device { public: hle_hp_itf_device(machine_config const &mconfig, char const *tag, device_t *owner, uint32_t clock); - virtual void device_reset() override; - virtual ioport_constructor device_input_ports() const override; + virtual void device_reset() override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; // device_matrix_keyboard_interface overrides virtual void key_make(uint8_t row, uint8_t column) override; diff --git a/src/devices/bus/hp_hil/hlemouse.h b/src/devices/bus/hp_hil/hlemouse.h index 830ffd20bfe..14def7680bd 100644 --- a/src/devices/bus/hp_hil/hlemouse.h +++ b/src/devices/bus/hp_hil/hlemouse.h @@ -17,8 +17,8 @@ class hle_hp_46060b_device { public: hle_hp_46060b_device(machine_config const &mconfig, char const *tag, device_t *owner, uint32_t clock); - virtual void device_reset() override; - virtual ioport_constructor device_input_ports() const override; + virtual void device_reset() override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; virtual int hil_poll() override; virtual void hil_idd() override; enum state_mask diff --git a/src/devices/bus/hp_hil/hp_hil.h b/src/devices/bus/hp_hil/hp_hil.h index b4302ac1895..69724bdb2f4 100644 --- a/src/devices/bus/hp_hil/hp_hil.h +++ b/src/devices/bus/hp_hil/hp_hil.h @@ -101,7 +101,7 @@ class hp_hil_slot_device : public device_t, public device_single_card_slot_inter protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // configuration required_device m_mlc; @@ -133,8 +133,8 @@ class hp_hil_mlc_device : public device_t 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; simple_list m_device_list; diff --git a/src/devices/bus/hp_ipc_io/82919.h b/src/devices/bus/hp_ipc_io/82919.h index b6ff3ffa301..ab8b04c254f 100644 --- a/src/devices/bus/hp_ipc_io/82919.h +++ b/src/devices/bus/hp_ipc_io/82919.h @@ -41,12 +41,12 @@ class hp82919_io_card_device : public device_t, public device_hp_ipc_io_interfac void sec_cts(int state); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; virtual void install_read_write_handlers(address_space& space , uint32_t base_addr) override; diff --git a/src/devices/bus/hp_ipc_io/hp_ipc_io.h b/src/devices/bus/hp_ipc_io/hp_ipc_io.h index 856b140c7ef..079242c9554 100644 --- a/src/devices/bus/hp_ipc_io/hp_ipc_io.h +++ b/src/devices/bus/hp_ipc_io/hp_ipc_io.h @@ -51,7 +51,7 @@ class hp_ipc_io_slot_device : public device_t, protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: devcb_write_line::array<4> m_irq_cb_func; diff --git a/src/devices/bus/idpartner/bus.h b/src/devices/bus/idpartner/bus.h index 51521e946db..fd27bf5472f 100644 --- a/src/devices/bus/idpartner/bus.h +++ b/src/devices/bus/idpartner/bus.h @@ -74,8 +74,8 @@ class bus_connector_device : public device_t, public device_single_card_slot_int protected: // 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 m_bus; @@ -104,8 +104,8 @@ class bus_device : public device_t private: // 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_io; diff --git a/src/devices/bus/idpartner/gdp.cpp b/src/devices/bus/idpartner/gdp.cpp index 72e3fc7d931..bb0d3cfb015 100644 --- a/src/devices/bus/idpartner/gdp.cpp +++ b/src/devices/bus/idpartner/gdp.cpp @@ -28,10 +28,10 @@ class idpartner_gdp_device : protected: // device_t implementation - 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; private: void char_w(u8 data) { m_avdc->buffer_w(data); } @@ -43,15 +43,15 @@ class idpartner_gdp_device : void vram_w(offs_t offset, u8 data); u8 vram_r(offs_t offset); void msl_w(u8 data); - void gdc_map(address_map &map); + void gdc_map(address_map &map) ATTR_COLD; void int_w(int state) { m_bus->int_w(state); } void nmi_w(int state) { m_bus->nmi_w(state); } SCN2674_DRAW_CHARACTER_MEMBER(draw_character); TIMER_DEVICE_CALLBACK_MEMBER(scanline) { m_gdc->update_scanline(param); } - void char_map(address_map &map); - void attr_map(address_map &map); + void char_map(address_map &map) ATTR_COLD; + void attr_map(address_map &map) ATTR_COLD; required_device m_gdc; memory_share_creator m_vram; diff --git a/src/devices/bus/idpartner/sasi.cpp b/src/devices/bus/idpartner/sasi.cpp index 7fdeb141e88..c9376368f82 100644 --- a/src/devices/bus/idpartner/sasi.cpp +++ b/src/devices/bus/idpartner/sasi.cpp @@ -25,9 +25,9 @@ class idpartner_sasi_device : protected: // device_t implementation - 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; u8 stat_r(); u8 data_r(); diff --git a/src/devices/bus/ieee488/c2031.h b/src/devices/bus/ieee488/c2031.h index 8d2a646133b..f35b1eb1bc4 100644 --- a/src/devices/bus/ieee488/c2031.h +++ b/src/devices/bus/ieee488/c2031.h @@ -34,13 +34,13 @@ class c2031_device : public device_t, 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; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; // device_ieee488_interface overrides virtual void ieee488_atn(int state) override; @@ -59,7 +59,7 @@ class c2031_device : public device_t, void via1_pb_w(uint8_t data); void byte_w(int state); - void c2031_mem(address_map &map); + void c2031_mem(address_map &map) ATTR_COLD; static void floppy_formats(format_registration &fr); diff --git a/src/devices/bus/ieee488/c2040.h b/src/devices/bus/ieee488/c2040.h index 010f055d392..e86011b3581 100644 --- a/src/devices/bus/ieee488/c2040.h +++ b/src/devices/bus/ieee488/c2040.h @@ -40,19 +40,19 @@ class c2040_device : public device_t, public device_ieee488_interface void riot1_pb_w(uint8_t data); void via_pb_w(uint8_t data); - void c2040_fdc_mem(address_map &map); - void c2040_main_mem(address_map &map); + void c2040_fdc_mem(address_map &map) ATTR_COLD; + void c2040_main_mem(address_map &map) ATTR_COLD; protected: c2040_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; // device_ieee488_interface overrides virtual void ieee488_atn(int state) override; @@ -102,8 +102,8 @@ class c3040_device : public c2040_device protected: // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: static void floppy_formats(format_registration &fr); @@ -120,8 +120,8 @@ class c4040_device : public c2040_device protected: // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: static void floppy_formats(format_registration &fr); diff --git a/src/devices/bus/ieee488/c2040fdc.h b/src/devices/bus/ieee488/c2040fdc.h index cd3b277c82b..f86a7f4811f 100644 --- a/src/devices/bus/ieee488/c2040fdc.h +++ b/src/devices/bus/ieee488/c2040fdc.h @@ -52,12 +52,12 @@ class c2040_fdc_device : public device_t protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void device_clock_changed() override; - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; TIMER_CALLBACK_MEMBER(update_state); diff --git a/src/devices/bus/ieee488/c8050.h b/src/devices/bus/ieee488/c8050.h index 3277444e37a..11e6946e616 100644 --- a/src/devices/bus/ieee488/c8050.h +++ b/src/devices/bus/ieee488/c8050.h @@ -40,21 +40,21 @@ class c8050_device : public device_t, public device_ieee488_interface void riot1_pb_w(uint8_t data); void via_pb_w(uint8_t data); - void c8050_fdc_mem(address_map &map); - void c8050_main_mem(address_map &map); - void c8250lp_fdc_mem(address_map &map); - void sfd1001_fdc_mem(address_map &map); + void c8050_fdc_mem(address_map &map) ATTR_COLD; + void c8050_main_mem(address_map &map) ATTR_COLD; + void c8250lp_fdc_mem(address_map &map) ATTR_COLD; + void sfd1001_fdc_mem(address_map &map) ATTR_COLD; protected: c8050_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; // device_ieee488_interface overrides virtual void ieee488_atn(int state) override; @@ -96,7 +96,7 @@ class c8250_device : public c8050_device protected: // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: static void floppy_formats(format_registration &fr); @@ -113,8 +113,8 @@ class c8250lp_device : public c8050_device protected: // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: static void floppy_formats(format_registration &fr); @@ -131,8 +131,8 @@ class sfd1001_device : public c8050_device protected: // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: static void floppy_formats(format_registration &fr); diff --git a/src/devices/bus/ieee488/c8050fdc.h b/src/devices/bus/ieee488/c8050fdc.h index 0f1ecfc4918..d736d61dc44 100644 --- a/src/devices/bus/ieee488/c8050fdc.h +++ b/src/devices/bus/ieee488/c8050fdc.h @@ -56,11 +56,11 @@ class c8050_fdc_device : public device_t 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; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; TIMER_CALLBACK_MEMBER(update_state); diff --git a/src/devices/bus/ieee488/c8280.h b/src/devices/bus/ieee488/c8280.h index fc6a4f92dec..f5a1342f857 100644 --- a/src/devices/bus/ieee488/c8280.h +++ b/src/devices/bus/ieee488/c8280.h @@ -32,13 +32,13 @@ class c8280_device : public device_t, public device_ieee488_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; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; // device_ieee488_interface overrides void ieee488_atn(int state) override; @@ -56,8 +56,8 @@ class c8280_device : public device_t, public device_ieee488_interface uint8_t fk5_r(); void fk5_w(uint8_t data); - void c8280_fdc_mem(address_map &map); - void c8280_main_mem(address_map &map); + void c8280_fdc_mem(address_map &map) ATTR_COLD; + void c8280_main_mem(address_map &map) ATTR_COLD; static void floppy_formats(format_registration &fr); diff --git a/src/devices/bus/ieee488/d9060.h b/src/devices/bus/ieee488/d9060.h index 6e137dba478..8bf7d32ae6e 100644 --- a/src/devices/bus/ieee488/d9060.h +++ b/src/devices/bus/ieee488/d9060.h @@ -39,13 +39,13 @@ class d9060_device_base : public device_t, public device_ieee488_interface d9060_device_base(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, uint32_t variant); // 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; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; // device_ieee488_interface overrides void ieee488_atn(int state) override; @@ -86,8 +86,8 @@ class d9060_device_base : public device_t, public device_ieee488_interface uint8_t m_data; int m_variant; - void hdc_mem(address_map &map); - void main_mem(address_map &map); + void hdc_mem(address_map &map) ATTR_COLD; + void main_mem(address_map &map) ATTR_COLD; }; diff --git a/src/devices/bus/ieee488/grid2102.h b/src/devices/bus/ieee488/grid2102.h index 11cdbcecdd0..437bae8fb97 100644 --- a/src/devices/bus/ieee488/grid2102.h +++ b/src/devices/bus/ieee488/grid2102.h @@ -32,7 +32,7 @@ class grid210x_device : public device_t, protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_ieee488_interface overrides virtual void ieee488_eoi(int state) override; diff --git a/src/devices/bus/ieee488/hardbox.h b/src/devices/bus/ieee488/hardbox.h index 4b22ab57354..0e1be1ac840 100644 --- a/src/devices/bus/ieee488/hardbox.h +++ b/src/devices/bus/ieee488/hardbox.h @@ -35,13 +35,13 @@ class hardbox_device : public device_t, protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void device_reset_after_children() override; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; // device_ieee488_interface overrides virtual void ieee488_ifc(int state) override; @@ -56,8 +56,8 @@ class hardbox_device : public device_t, uint8_t ppi1_pc_r(); void ppi1_pc_w(uint8_t data); - void hardbox_io(address_map &map); - void hardbox_mem(address_map &map); + void hardbox_io(address_map &map) ATTR_COLD; + void hardbox_mem(address_map &map) ATTR_COLD; enum { diff --git a/src/devices/bus/ieee488/hp9122c.h b/src/devices/bus/ieee488/hp9122c.h index d763124cf98..08847c8cb6d 100644 --- a/src/devices/bus/ieee488/hp9122c.h +++ b/src/devices/bus/ieee488/hp9122c.h @@ -28,13 +28,13 @@ class hp9122c_device : public device_t, hp9122c_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; // device-level overrides - virtual ioport_constructor device_input_ports() const override; - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual ioport_constructor device_input_ports() const 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; // device_ieee488_interface overrides virtual void ieee488_eoi(int state) override; @@ -113,7 +113,7 @@ class hp9122c_device : public device_t, uint8_t status_r(); void clridx_w(uint8_t data); - void cpu_map(address_map &map); + void cpu_map(address_map &map) ATTR_COLD; required_device m_cpu; required_device m_i8291a; diff --git a/src/devices/bus/ieee488/hp9133.cpp b/src/devices/bus/ieee488/hp9133.cpp index bad7213407e..c68d5198c38 100644 --- a/src/devices/bus/ieee488/hp9133.cpp +++ b/src/devices/bus/ieee488/hp9133.cpp @@ -36,11 +36,11 @@ class hp9133_device : public device_t, protected: // device_t implementation - virtual void device_start() override; - virtual void device_reset() override; - virtual ioport_constructor device_input_ports() const 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 ioport_constructor device_input_ports() const 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; // device_ieee488_interface implementation virtual void ieee488_eoi(int state) override; @@ -126,7 +126,7 @@ class hp9133_device : public device_t, void dma_ram_w(uint8_t data); uint8_t dma_ram_r(offs_t offset); - void cpu_map(address_map &map); + void cpu_map(address_map &map) ATTR_COLD; void floppy_index_cb(floppy_image_device *floppy, int state); void hdc_bcs_cb(int state); void hdc_bcr_cb(int state); diff --git a/src/devices/bus/ieee488/hp9895.h b/src/devices/bus/ieee488/hp9895.h index 0f33b543929..501b94d185a 100644 --- a/src/devices/bus/ieee488/hp9895.h +++ b/src/devices/bus/ieee488/hp9895.h @@ -27,13 +27,13 @@ class hp9895_device : public device_t, hp9895_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; // device-level overrides - virtual ioport_constructor device_input_ports() const override; - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual ioport_constructor device_input_ports() const 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; // device_ieee488_interface overrides virtual void ieee488_eoi(int state) override; @@ -100,8 +100,8 @@ class hp9895_device : public device_t, void read_bit(bool crc_upd); void write_bit(bool data_bit , bool clock_bit); - void z80_io_map(address_map &map); - void z80_program_map(address_map &map); + void z80_io_map(address_map &map) ATTR_COLD; + void z80_program_map(address_map &map) ATTR_COLD; required_device m_cpu; required_device m_phi; diff --git a/src/devices/bus/ieee488/ieee488.h b/src/devices/bus/ieee488/ieee488.h index 3635c105de6..947085e4636 100644 --- a/src/devices/bus/ieee488/ieee488.h +++ b/src/devices/bus/ieee488/ieee488.h @@ -122,8 +122,8 @@ class ieee488_device : public device_t }; // device-level overrides - virtual void device_start() override; - virtual void device_stop() override; + virtual void device_start() override ATTR_COLD; + virtual void device_stop() override ATTR_COLD; class daisy_entry { @@ -199,7 +199,7 @@ class ieee488_slot_device : public device_t, int get_address() { return m_address; } // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; protected: int m_address; diff --git a/src/devices/bus/ieee488/remote488.h b/src/devices/bus/ieee488/remote488.h index bcb64866a05..dcc989e62a9 100644 --- a/src/devices/bus/ieee488/remote488.h +++ b/src/devices/bus/ieee488/remote488.h @@ -32,9 +32,9 @@ class remote488_device : public device_t, virtual void ieee488_ren(int state) override; protected: - 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; private: // Position of signals in "S/R" msgs diff --git a/src/devices/bus/ieee488/shark.h b/src/devices/bus/ieee488/shark.h index 6ba13e138e8..e8d7de05b72 100644 --- a/src/devices/bus/ieee488/shark.h +++ b/src/devices/bus/ieee488/shark.h @@ -32,18 +32,18 @@ class mshark_device : public device_t, protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; private: required_device m_maincpu; - void mshark_io(address_map &map); - void mshark_mem(address_map &map); + void mshark_io(address_map &map) ATTR_COLD; + void mshark_mem(address_map &map) ATTR_COLD; }; diff --git a/src/devices/bus/ieee488/softbox.h b/src/devices/bus/ieee488/softbox.h index 6b1f4a1dee0..11dc90b4c40 100644 --- a/src/devices/bus/ieee488/softbox.h +++ b/src/devices/bus/ieee488/softbox.h @@ -37,13 +37,13 @@ class softbox_device : public device_t, protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void device_reset_after_children() override; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; // device_ieee488_interface overrides virtual void ieee488_ifc(int state) override; @@ -59,8 +59,8 @@ class softbox_device : public device_t, void dbrg_w(uint8_t data); - void softbox_io(address_map &map); - void softbox_mem(address_map &map); + void softbox_io(address_map &map) ATTR_COLD; + void softbox_mem(address_map &map) ATTR_COLD; enum { diff --git a/src/devices/bus/imi7000/imi5000h.h b/src/devices/bus/imi7000/imi5000h.h index 1680677056a..121fa8b2fc2 100644 --- a/src/devices/bus/imi7000/imi5000h.h +++ b/src/devices/bus/imi7000/imi5000h.h @@ -36,13 +36,13 @@ class imi5000h_device : public device_t, 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; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; private: void ctc_z0_w(int state); @@ -64,8 +64,8 @@ class imi5000h_device : public device_t, uint8_t pio3_pb_r(); void pio3_pb_w(uint8_t data); - void imi5000h_io(address_map &map); - void imi5000h_mem(address_map &map); + void imi5000h_io(address_map &map) ATTR_COLD; + void imi5000h_mem(address_map &map) ATTR_COLD; enum { diff --git a/src/devices/bus/imi7000/imi7000.h b/src/devices/bus/imi7000/imi7000.h index ce76033f30a..5a35f82708a 100644 --- a/src/devices/bus/imi7000/imi7000.h +++ b/src/devices/bus/imi7000/imi7000.h @@ -63,7 +63,7 @@ class imi7000_slot_device : public device_t, public device_single_card_slot_inte protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; device_imi7000_interface *m_card; }; @@ -88,8 +88,8 @@ class imi7000_bus_device : public device_t protected: // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; required_device_array m_units; }; diff --git a/src/devices/bus/intellec4/insdatastor.cpp b/src/devices/bus/intellec4/insdatastor.cpp index ccbac01904e..395c3806b5c 100644 --- a/src/devices/bus/intellec4/insdatastor.cpp +++ b/src/devices/bus/intellec4/insdatastor.cpp @@ -180,9 +180,9 @@ class imm4_22_device virtual char const *image_brief_type_name() const noexcept override { return "prom"; } protected: - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; - virtual void device_reset() override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; virtual void reset_4002_in(int state) override; diff --git a/src/devices/bus/intellec4/prommemory.cpp b/src/devices/bus/intellec4/prommemory.cpp index 87583d79cac..2a0c783d030 100644 --- a/src/devices/bus/intellec4/prommemory.cpp +++ b/src/devices/bus/intellec4/prommemory.cpp @@ -109,7 +109,7 @@ class imm6_26_device virtual char const *image_brief_type_name() const noexcept override { return "prom"; } protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: void allocate(); diff --git a/src/devices/bus/intellec4/tapereader.cpp b/src/devices/bus/intellec4/tapereader.cpp index ef42f617832..f935b7c216e 100644 --- a/src/devices/bus/intellec4/tapereader.cpp +++ b/src/devices/bus/intellec4/tapereader.cpp @@ -34,7 +34,7 @@ class imm4_90_device virtual char const *file_extensions() const noexcept override { return "bnpf,hex,lst,txt"; } protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: u8 rom4_in() { return m_ready ? 0x07U : 0x0fU; } diff --git a/src/devices/bus/interpro/keyboard/hle.h b/src/devices/bus/interpro/keyboard/hle.h index ed50fafc956..c175a2e1ec9 100644 --- a/src/devices/bus/interpro/keyboard/hle.h +++ b/src/devices/bus/interpro/keyboard/hle.h @@ -28,9 +28,9 @@ class hle_device_base hle_device_base(machine_config const &mconfig, device_type type, char const *tag, device_t *owner, u32 clock); // device overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; // device_buffered_serial_interface overrides virtual void tra_callback() override; @@ -107,7 +107,7 @@ class hle_en_us_device : public hle_device_base public: hle_en_us_device(machine_config const &mconfig, char const *tag, device_t *owner, u32 clock); - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; virtual u8 translate(u8 row, u8 column) override; diff --git a/src/devices/bus/interpro/keyboard/keyboard.h b/src/devices/bus/interpro/keyboard/keyboard.h index 55ad0f95326..20cbff48f1f 100644 --- a/src/devices/bus/interpro/keyboard/keyboard.h +++ b/src/devices/bus/interpro/keyboard/keyboard.h @@ -31,7 +31,7 @@ class interpro_keyboard_port_device : public device_t, public device_single_card void write_txd(int state); protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void device_config_complete() override; private: diff --git a/src/devices/bus/interpro/keyboard/lle.h b/src/devices/bus/interpro/keyboard/lle.h index ac9d0bc45fb..69ff831700e 100644 --- a/src/devices/bus/interpro/keyboard/lle.h +++ b/src/devices/bus/interpro/keyboard/lle.h @@ -23,12 +23,12 @@ class lle_device_base lle_device_base(machine_config const &mconfig, device_type type, char const *tag, device_t *owner, u32 clock); // device overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; - virtual void io_map(address_map &map); - virtual void ext_map(address_map &map); + virtual void io_map(address_map &map) ATTR_COLD; + virtual void ext_map(address_map &map) ATTR_COLD; void input_txd(int state) override { m_txd = state; } @@ -62,8 +62,8 @@ class lle_en_us_device : public lle_device_base public: lle_en_us_device(machine_config const &mconfig, char const *tag, device_t *owner, u32 clock); - virtual ioport_constructor device_input_ports() const override; - virtual tiny_rom_entry const *device_rom_region() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual tiny_rom_entry const *device_rom_region() const override ATTR_COLD; }; } // namespace bus::interpro::keyboard diff --git a/src/devices/bus/interpro/mouse/mouse.h b/src/devices/bus/interpro/mouse/mouse.h index f10019605cb..72d1bc816b7 100644 --- a/src/devices/bus/interpro/mouse/mouse.h +++ b/src/devices/bus/interpro/mouse/mouse.h @@ -29,7 +29,7 @@ class interpro_mouse_port_device : public device_t, public device_single_card_sl protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void device_config_complete() override; private: @@ -74,10 +74,10 @@ class interpro_mouse_device : public device_t, public device_interpro_mouse_port protected: // device 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 ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; private: }; diff --git a/src/devices/bus/interpro/sr/edge.h b/src/devices/bus/interpro/sr/edge.h index 1ab789174e8..45ece91a02f 100644 --- a/src/devices/bus/interpro/sr/edge.h +++ b/src/devices/bus/interpro/sr/edge.h @@ -23,9 +23,9 @@ class edge1_device_base : public device_t, public device_srx_card_interface protected: edge1_device_base(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); - virtual void map(address_map &map) override; - virtual void map_dynamic(address_map &map); - virtual void device_start() override; + virtual void map(address_map &map) override ATTR_COLD; + virtual void map_dynamic(address_map &map) ATTR_COLD; + virtual void device_start() override ATTR_COLD; u32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); @@ -79,7 +79,7 @@ class edge2_processor_device_base : public device_t, public device_srx_card_inte protected: edge2_processor_device_base(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); - virtual void map(address_map &map) override; + virtual void map(address_map &map) override ATTR_COLD; virtual void device_start() override {} }; @@ -89,7 +89,7 @@ class edge2_framebuffer_device_base : public device_t, public device_srx_card_in protected: edge2_framebuffer_device_base(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); - virtual void map(address_map &map) override; + virtual void map(address_map &map) override ATTR_COLD; virtual void device_start() override {} }; @@ -103,9 +103,9 @@ class edge2plus_processor_device_base : public device_t, public device_srx_card_ protected: edge2plus_processor_device_base(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); - virtual void map(address_map &map) override; + virtual void map(address_map &map) override ATTR_COLD; - void dsp1_map(address_map &map); + void dsp1_map(address_map &map) ATTR_COLD; virtual void device_start() override {} @@ -152,10 +152,10 @@ class edge2plus_framebuffer_device_base : public device_t, public device_srx_car edge2plus_framebuffer_device_base(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); - virtual void map(address_map &map) override; - virtual void device_start() override; + virtual void map(address_map &map) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; - virtual void map_dynamic(address_map &map); + virtual void map_dynamic(address_map &map) ATTR_COLD; u32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); @@ -182,8 +182,8 @@ class mpcb828_device : public edge1_device_base mpcb828_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 void device_add_mconfig(machine_config &config) override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; class mpcb849_device : public edge1_device_base @@ -192,8 +192,8 @@ class mpcb849_device : public edge1_device_base mpcb849_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 void device_add_mconfig(machine_config &config) override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; u32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); }; @@ -204,8 +204,8 @@ class mpcb030_device : public edge2_processor_device_base mpcb030_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 void device_add_mconfig(machine_config &config) override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; class msmt094_device : public edge2plus_processor_device_base @@ -214,8 +214,8 @@ class msmt094_device : public edge2plus_processor_device_base msmt094_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 void device_add_mconfig(machine_config &config) override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; class mpcba63_device : public edge2_framebuffer_device_base @@ -224,8 +224,8 @@ class mpcba63_device : public edge2_framebuffer_device_base mpcba63_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 void device_add_mconfig(machine_config &config) override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; u32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); }; @@ -236,8 +236,8 @@ class mpcb896_device : public edge2plus_framebuffer_device_base mpcb896_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 void device_add_mconfig(machine_config &config) override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; // device type definition diff --git a/src/devices/bus/interpro/sr/gt.h b/src/devices/bus/interpro/sr/gt.h index a48f3de698a..f4e2b99494e 100644 --- a/src/devices/bus/interpro/sr/gt.h +++ b/src/devices/bus/interpro/sr/gt.h @@ -17,7 +17,7 @@ class gt_device_base : public device_t protected: gt_device_base(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, const bool double_buffered, const bool masked_reads); - virtual void map(address_map &map); + virtual void map(address_map &map) ATTR_COLD; public: static constexpr u32 GT_MASK_BITS = 0x80808080; // mask RAM presents on high bit in each pixel/byte @@ -143,8 +143,8 @@ class gt_device_base : public device_t void bsga_float_w(offs_t offset, u32 data); protected: - 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; virtual void device_validity_check(validity_checker &valid) const override; u32 buffer_r(const offs_t offset); @@ -250,7 +250,7 @@ class gt_device : public gt_device_base, public device_cbus_card_interface protected: gt_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, const bool double_buffered); - virtual void map(address_map &map) override; + virtual void map(address_map &map) override ATTR_COLD; }; class gtdb_device : public gt_device_base, public device_srx_card_interface @@ -258,8 +258,8 @@ class gtdb_device : public gt_device_base, public device_srx_card_interface protected: gtdb_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); - virtual void map(address_map &map) override; - virtual void map_dynamic(address_map &map); + virtual void map(address_map &map) override ATTR_COLD; + virtual void map_dynamic(address_map &map) ATTR_COLD; void serial_irq(int state); void mouse_status_w(offs_t offset, u32 data, u32 mem_mask = ~0); @@ -286,8 +286,8 @@ class gtdb_device : public gt_device_base, public device_srx_card_interface }; u32 fifo_control_r() { return m_fifo_control; } - //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; virtual u32 vram_r(offs_t offset, const bool linear = false) const override; virtual void vram_w(offs_t offset, const u32 data, u32 mem_mask, const bool linear = false) const override; @@ -309,8 +309,8 @@ class mpcb963_device : public gt_device mpcb963_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 void device_add_mconfig(machine_config &config) override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; class mpcba79_device : public gt_device @@ -319,8 +319,8 @@ class mpcba79_device : public gt_device mpcba79_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 void device_add_mconfig(machine_config &config) override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; @@ -330,8 +330,8 @@ class msmt070_device : public gt_device msmt070_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 void device_add_mconfig(machine_config &config) override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; class msmt071_device : public gt_device @@ -340,8 +340,8 @@ class msmt071_device : public gt_device msmt071_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 void device_add_mconfig(machine_config &config) override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; class msmt081_device : public gt_device @@ -350,8 +350,8 @@ class msmt081_device : public gt_device msmt081_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 void device_add_mconfig(machine_config &config) override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; class mpcbb68_device : public gtdb_device @@ -360,8 +360,8 @@ class mpcbb68_device : public gtdb_device mpcbb68_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 void device_add_mconfig(machine_config &config) override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; class mpcbb92_device : public gtdb_device @@ -370,8 +370,8 @@ class mpcbb92_device : public gtdb_device mpcbb92_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 void device_add_mconfig(machine_config &config) override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; // device type definition diff --git a/src/devices/bus/interpro/sr/sr.h b/src/devices/bus/interpro/sr/sr.h index ee706178e5a..ed5ae9466d8 100644 --- a/src/devices/bus/interpro/sr/sr.h +++ b/src/devices/bus/interpro/sr/sr.h @@ -85,7 +85,7 @@ class cbus_bus_device : public interpro_bus_device protected: // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: device_cbus_card_interface *m_slot[CBUS_COUNT]; @@ -110,8 +110,8 @@ class cbus_slot_device : public device_t, public device_slot_interface protected: // 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; private: required_device m_bus; @@ -197,7 +197,7 @@ class srx_bus_device : public interpro_bus_device protected: // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: device_srx_card_interface *m_slot[SRX_COUNT]; @@ -222,8 +222,8 @@ class srx_slot_device : public device_t, public device_slot_interface protected: // 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; private: required_device m_bus; diff --git a/src/devices/bus/intv/ecs.h b/src/devices/bus/intv/ecs.h index 68911831c0a..de05f593421 100644 --- a/src/devices/bus/intv/ecs.h +++ b/src/devices/bus/intv/ecs.h @@ -63,10 +63,10 @@ class intv_ecs_device : public intv_rom_device protected: // device-level overrides - 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; private: diff --git a/src/devices/bus/intv/slot.h b/src/devices/bus/intv/slot.h index fe497da4af4..1cd770836d3 100644 --- a/src/devices/bus/intv/slot.h +++ b/src/devices/bus/intv/slot.h @@ -165,7 +165,7 @@ class intv_cart_slot_device : public device_t, protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; int m_type; device_intv_cart_interface* m_cart; diff --git a/src/devices/bus/intv/voice.h b/src/devices/bus/intv/voice.h index 7369058c435..b28dbac0154 100644 --- a/src/devices/bus/intv/voice.h +++ b/src/devices/bus/intv/voice.h @@ -48,9 +48,9 @@ class intv_voice_device : public intv_rom_device protected: // device-level overrides - virtual void device_start() 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_add_mconfig(machine_config &config) override ATTR_COLD; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; private: required_device m_speech; diff --git a/src/devices/bus/intv_ctrl/ctrl.h b/src/devices/bus/intv_ctrl/ctrl.h index b68d6bbba7d..71106e7d9f5 100644 --- a/src/devices/bus/intv_ctrl/ctrl.h +++ b/src/devices/bus/intv_ctrl/ctrl.h @@ -57,7 +57,7 @@ class intv_control_port_device : public device_t, public device_single_card_slot protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; device_intv_control_port_interface *m_device; }; diff --git a/src/devices/bus/intv_ctrl/ecs_ctrl.h b/src/devices/bus/intv_ctrl/ecs_ctrl.h index 77fdfc72a92..427fe328067 100644 --- a/src/devices/bus/intv_ctrl/ecs_ctrl.h +++ b/src/devices/bus/intv_ctrl/ecs_ctrl.h @@ -64,7 +64,7 @@ class intvecs_control_port_device : public device_t, public device_single_card_s protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; device_intvecs_control_port_interface *m_device; }; @@ -92,11 +92,11 @@ class intvecs_ctrls_device : public device_t, 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; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual uint8_t read_portA() override; virtual uint8_t read_portB() override; @@ -116,12 +116,12 @@ class intvecs_keybd_device : public device_t, intvecs_keybd_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // optional information overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; 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 uint8_t read_portB() override; virtual void write_portA(uint8_t data) override; @@ -141,12 +141,12 @@ class intvecs_synth_device : public device_t, intvecs_synth_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // optional information overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; 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 uint8_t read_portB() override; virtual void write_portA(uint8_t data) override; diff --git a/src/devices/bus/intv_ctrl/handctrl.h b/src/devices/bus/intv_ctrl/handctrl.h index 4aa021c1ff8..6ce221e74ee 100644 --- a/src/devices/bus/intv_ctrl/handctrl.h +++ b/src/devices/bus/intv_ctrl/handctrl.h @@ -28,12 +28,12 @@ class intv_handctrl_device : public device_t, intv_handctrl_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // optional information overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; 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; // device_intv_control_port_interface overrides virtual uint8_t read_ctrl() override; diff --git a/src/devices/bus/iq151/disc2.h b/src/devices/bus/iq151/disc2.h index 776bb9363fd..8c2e9fff210 100644 --- a/src/devices/bus/iq151/disc2.h +++ b/src/devices/bus/iq151/disc2.h @@ -25,12 +25,12 @@ class iq151_disc2_device : 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; // 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; // iq151cart_interface overrides virtual void read(offs_t offset, uint8_t &data) override; diff --git a/src/devices/bus/iq151/grafik.h b/src/devices/bus/iq151/grafik.h index 5ac4ef42723..f774fe6580e 100644 --- a/src/devices/bus/iq151/grafik.h +++ b/src/devices/bus/iq151/grafik.h @@ -24,11 +24,11 @@ class iq151_grafik_device : 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; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; // iq151cart_interface overrides virtual void io_read(offs_t offset, uint8_t &data) override; diff --git a/src/devices/bus/iq151/iq151.h b/src/devices/bus/iq151/iq151.h index 827dc404f37..452165761a1 100644 --- a/src/devices/bus/iq151/iq151.h +++ b/src/devices/bus/iq151/iq151.h @@ -127,7 +127,7 @@ class iq151cart_slot_device : public device_t, protected: // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; devcb_write_line m_out_irq0_cb; devcb_write_line m_out_irq1_cb; diff --git a/src/devices/bus/iq151/minigraf.h b/src/devices/bus/iq151/minigraf.h index 16113288094..8a479593a2b 100644 --- a/src/devices/bus/iq151/minigraf.h +++ b/src/devices/bus/iq151/minigraf.h @@ -22,12 +22,12 @@ class iq151_minigraf_device : iq151_minigraf_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; protected: // device-level overrides - virtual void device_start() override; - virtual void device_stop() override; + virtual void device_start() override ATTR_COLD; + virtual void device_stop() override ATTR_COLD; // iq151cart_interface overrides virtual void read(offs_t offset, uint8_t &data) override; diff --git a/src/devices/bus/iq151/ms151a.h b/src/devices/bus/iq151/ms151a.h index 735729b15f1..1e710b615a1 100644 --- a/src/devices/bus/iq151/ms151a.h +++ b/src/devices/bus/iq151/ms151a.h @@ -22,12 +22,12 @@ class iq151_ms151a_device : iq151_ms151a_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; protected: // device-level overrides - virtual void device_start() override; - virtual void device_stop() override; + virtual void device_start() override ATTR_COLD; + virtual void device_stop() override ATTR_COLD; // iq151cart_interface overrides virtual void read(offs_t offset, uint8_t &data) override; diff --git a/src/devices/bus/iq151/rom.h b/src/devices/bus/iq151/rom.h index 56544a24d9f..866032097a9 100644 --- a/src/devices/bus/iq151/rom.h +++ b/src/devices/bus/iq151/rom.h @@ -20,14 +20,14 @@ class iq151_rom_device : { public: // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; protected: // construction/destruction iq151_rom_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // iq151cart_interface overrides virtual uint8_t* get_cart_base() override; diff --git a/src/devices/bus/iq151/staper.h b/src/devices/bus/iq151/staper.h index 98aefb609d1..b9fb63be4b9 100644 --- a/src/devices/bus/iq151/staper.h +++ b/src/devices/bus/iq151/staper.h @@ -25,11 +25,11 @@ class iq151_staper_device : 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; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; // iq151cart_interface overrides virtual void io_read(offs_t offset, uint8_t &data) override; diff --git a/src/devices/bus/iq151/video32.h b/src/devices/bus/iq151/video32.h index 9dc32765f6b..5997b4015e4 100644 --- a/src/devices/bus/iq151/video32.h +++ b/src/devices/bus/iq151/video32.h @@ -23,12 +23,12 @@ class iq151_video32_device : iq151_video32_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; 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; // iq151cart_interface overrides virtual void read(offs_t offset, uint8_t &data) override; diff --git a/src/devices/bus/iq151/video64.h b/src/devices/bus/iq151/video64.h index 7b152fc8fd6..61d3c55d895 100644 --- a/src/devices/bus/iq151/video64.h +++ b/src/devices/bus/iq151/video64.h @@ -23,12 +23,12 @@ class iq151_video64_device : iq151_video64_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; 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; // iq151cart_interface overrides virtual void read(offs_t offset, uint8_t &data) override; diff --git a/src/devices/bus/isa/3c503.h b/src/devices/bus/isa/3c503.h index f9597f00137..9d51b658d6c 100644 --- a/src/devices/bus/isa/3c503.h +++ b/src/devices/bus/isa/3c503.h @@ -24,9 +24,9 @@ class el2_3c503_device : public device_t, public device_isa8_card_interface void dack_w(int line, uint8_t data) override; protected: - 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; private: void el2_3c503_irq_w(int state); diff --git a/src/devices/bus/isa/3c505.h b/src/devices/bus/isa/3c505.h index 4c1c22383a2..7323318dbbd 100644 --- a/src/devices/bus/isa/3c505.h +++ b/src/devices/bus/isa/3c505.h @@ -21,15 +21,15 @@ class isa16_3c505_device protected: // device_t overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; - virtual void device_reset() override; - - void map_main(address_map &map); - void map_io(address_map &map); - void map_isa(address_map &map); + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; + + void map_main(address_map &map) ATTR_COLD; + void map_io(address_map &map) ATTR_COLD; + void map_isa(address_map &map) ATTR_COLD; enum acr_mask : u8 { diff --git a/src/devices/bus/isa/3xtwin.h b/src/devices/bus/isa/3xtwin.h index cb9aeb286eb..a3f9c7296ad 100644 --- a/src/devices/bus/isa/3xtwin.h +++ b/src/devices/bus/isa/3xtwin.h @@ -24,14 +24,14 @@ class isa8_3xtwin_device : public device_t, public device_isa8_card_interface protected: // device-level overrides - virtual void device_start() override; - virtual ioport_constructor device_input_ports() const 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 ioport_constructor device_input_ports() const 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; private: // local memory map - void mpu_map(address_map &map); + void mpu_map(address_map &map) ATTR_COLD; }; // device type declaration diff --git a/src/devices/bus/isa/acb2072.h b/src/devices/bus/isa/acb2072.h index be4185400b9..d3577ce32f1 100644 --- a/src/devices/bus/isa/acb2072.h +++ b/src/devices/bus/isa/acb2072.h @@ -21,11 +21,11 @@ class acb2072_device : public device_t, public device_isa8_card_interface static constexpr feature_type unemulated_features() { return feature::DISK; } protected: - virtual void device_start() override; - virtual void device_reset() override; - virtual ioport_constructor device_input_ports() const 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 ioport_constructor device_input_ports() const 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; private: required_device m_mcu; diff --git a/src/devices/bus/isa/adlib.h b/src/devices/bus/isa/adlib.h index 511d0b4663c..138f6614b0d 100644 --- a/src/devices/bus/isa/adlib.h +++ b/src/devices/bus/isa/adlib.h @@ -27,11 +27,11 @@ class isa8_adlib_device : 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; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: // internal state diff --git a/src/devices/bus/isa/aga.h b/src/devices/bus/isa/aga.h index aa6aa16f5d0..3e290ff3c82 100644 --- a/src/devices/bus/isa/aga.h +++ b/src/devices/bus/isa/aga.h @@ -69,12 +69,12 @@ class isa8_aga_device : required_device m_mc6845; // device-level overrides - virtual void device_start() override; + virtual void device_start() 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 ioport_constructor device_input_ports() 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; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; required_ioport m_cga_config; @@ -114,8 +114,8 @@ class isa8_aga_pc200_device : uint8_t pc200_cga_r(offs_t offset); // device-level overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_start() override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; uint8_t m_port8; uint8_t m_portd; diff --git a/src/devices/bus/isa/aha1542b.h b/src/devices/bus/isa/aha1542b.h index 36ab1cf2094..a0ff55a93fd 100644 --- a/src/devices/bus/isa/aha1542b.h +++ b/src/devices/bus/isa/aha1542b.h @@ -21,10 +21,10 @@ class aha154x_device : public device_t, public device_isa16_card_interface protected: aha154x_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 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; - void i8085_base_map(address_map &map); + void i8085_base_map(address_map &map) ATTR_COLD; void scsi_add(machine_config &config); void scsic_config(device_t *device); @@ -45,9 +45,9 @@ class aha1542a_device : public aha154x_device int scsi_rstreq_r(); protected: - virtual ioport_constructor device_input_ports() const override; - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual ioport_constructor device_input_ports() const 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; private: void local_status_w(u8 data); @@ -55,7 +55,7 @@ class aha1542a_device : public aha154x_device void srst_clear_w(u8 data); void scsi_rstreq_clear_w(u8 data); - void i8085_map(address_map &map); + void i8085_map(address_map &map) ATTR_COLD; }; class aha1542b_device : public aha154x_device @@ -66,12 +66,12 @@ class aha1542b_device : public aha154x_device static constexpr feature_type unemulated_features() { return feature::DISK; } protected: - virtual ioport_constructor device_input_ports() const override; - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual ioport_constructor device_input_ports() const 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; private: - void i8085_map(address_map &map); + void i8085_map(address_map &map) ATTR_COLD; required_device m_busaic; }; diff --git a/src/devices/bus/isa/aha1542c.h b/src/devices/bus/isa/aha1542c.h index 3a79fb3125f..6c82216113a 100644 --- a/src/devices/bus/isa/aha1542c.h +++ b/src/devices/bus/isa/aha1542c.h @@ -42,18 +42,18 @@ class aha1542c_device : public device_t, void local_latch_w(u8 data); // 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; // optional information overrides - virtual ioport_constructor device_input_ports() const override; - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual ioport_constructor device_input_ports() const 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; required_device m_eeprom; private: - void z84c0010_mem(address_map &map); + void z84c0010_mem(address_map &map) ATTR_COLD; }; // ====================> aha1542cf_device @@ -65,7 +65,7 @@ class aha1542cf_device : public aha1542c_device aha1542cf_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); protected: - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; }; // ====================> aha1542cp_device @@ -77,15 +77,15 @@ class aha1542cp_device : public aha1542c_device aha1542cp_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); protected: - virtual ioport_constructor device_input_ports() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual const tiny_rom_entry *device_rom_region() const override; + virtual ioport_constructor device_input_ports() const 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; private: u8 eeprom_r(); void eeprom_w(u8 data); - void local_mem(address_map &map); + void local_mem(address_map &map) ATTR_COLD; }; // device type definitions diff --git a/src/devices/bus/isa/aha174x.h b/src/devices/bus/isa/aha174x.h index 1b96d78a690..1320dd02e9c 100644 --- a/src/devices/bus/isa/aha174x.h +++ b/src/devices/bus/isa/aha174x.h @@ -22,9 +22,9 @@ class aha174x_device : public device_t, public device_isa16_card_interface protected: aha174x_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; - void hpc_map(address_map &map); + void hpc_map(address_map &map) ATTR_COLD; void scsic_config(device_t *device); required_device m_hpc; @@ -41,8 +41,8 @@ class aha1740_device : public aha174x_device static constexpr feature_type unemulated_features() { return feature::DISK; } 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; }; class aha1742a_device : public aha174x_device @@ -53,8 +53,8 @@ class aha1742a_device : public aha174x_device static constexpr feature_type unemulated_features() { return feature::DISK; } 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; required_device m_fdc; }; diff --git a/src/devices/bus/isa/asc88.h b/src/devices/bus/isa/asc88.h index 6b8a99f4b97..7b1afe42033 100644 --- a/src/devices/bus/isa/asc88.h +++ b/src/devices/bus/isa/asc88.h @@ -22,11 +22,11 @@ class asc88_device : public device_t, public device_isa8_card_interface asc88_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); protected: - virtual void device_start() override; - virtual void device_reset() override; - virtual ioport_constructor device_input_ports() const 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 ioport_constructor device_input_ports() const 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; virtual u8 dack_r(int line) override; virtual void dack_w(int line, u8 data) override; diff --git a/src/devices/bus/isa/bblue2.h b/src/devices/bus/isa/bblue2.h index a18e0a802b5..aba026a044e 100644 --- a/src/devices/bus/isa/bblue2.h +++ b/src/devices/bus/isa/bblue2.h @@ -35,12 +35,12 @@ class isa8_babyblue2_device : void lpt_irq(int state); 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; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; private: @@ -56,8 +56,8 @@ class isa8_babyblue2_device : required_ioport m_h2; required_device m_ram; - void z80_program_map(address_map &map); - void z80_io_map(address_map &map); + void z80_program_map(address_map &map) ATTR_COLD; + void z80_io_map(address_map &map) ATTR_COLD; bool m_devices_installed; }; diff --git a/src/devices/bus/isa/bt54x.h b/src/devices/bus/isa/bt54x.h index dfdd0009416..191bbd17193 100644 --- a/src/devices/bus/isa/bt54x.h +++ b/src/devices/bus/isa/bt54x.h @@ -23,11 +23,11 @@ class bt54x_device : public device_t, public device_isa16_card_interface protected: bt54x_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; u8 local_status_r(); - void local_map(address_map &map); + void local_map(address_map &map) ATTR_COLD; void asc_config(device_t *device); void fsc_config(device_t *device); void fsc_base(machine_config &config); @@ -43,8 +43,8 @@ class bt542b_device : public bt54x_device bt542b_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 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; }; class bt542bh_device : public bt54x_device @@ -53,8 +53,8 @@ class bt542bh_device : public bt54x_device bt542bh_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 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; }; class bt545s_device : public bt54x_device @@ -63,8 +63,8 @@ class bt545s_device : public bt54x_device bt545s_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 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; }; DECLARE_DEVICE_TYPE(BT542B, bt542b_device) diff --git a/src/devices/bus/isa/cga.h b/src/devices/bus/isa/cga.h index a5307fb815e..dd08fb68ea2 100644 --- a/src/devices/bus/isa/cga.h +++ b/src/devices/bus/isa/cga.h @@ -45,13 +45,13 @@ class isa8_cga_device : required_ioport m_cga_config; // 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; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; - virtual const tiny_rom_entry *device_rom_region() const override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; virtual uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); @@ -121,7 +121,7 @@ class isa8_cga_poisk2_device : // construction/destruction isa8_cga_poisk2_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // optional information overrides - 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 @@ -137,16 +137,16 @@ class isa8_cga_pc1512_device : // construction/destruction isa8_cga_pc1512_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // optional information overrides - virtual ioport_constructor device_input_ports() const override; - virtual const tiny_rom_entry *device_rom_region() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; virtual MC6845_UPDATE_ROW( crtc_update_row ) override; MC6845_UPDATE_ROW( pc1512_gfx_4bpp_update_row ); 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; public: uint8_t m_write; @@ -179,12 +179,12 @@ class isa8_wyse700_device : // construction/destruction isa8_wyse700_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; 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; public: virtual uint8_t io_read(offs_t offset) override; @@ -212,8 +212,8 @@ class isa8_ec1841_0002_device : 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; public: virtual uint8_t io_read(offs_t offset) override; @@ -235,7 +235,7 @@ class isa8_cga_iskr1030m_device : public: // construction/destruction isa8_cga_iskr1030m_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; }; // device type definition @@ -249,7 +249,7 @@ class isa8_cga_iskr1031_device : public: // construction/destruction isa8_cga_iskr1031_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; }; // device type definition @@ -264,8 +264,8 @@ class isa8_cga_mc1502_device : // construction/destruction isa8_cga_mc1502_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // 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; private: MC6845_RECONFIGURE(reconfigure); }; @@ -288,10 +288,10 @@ class isa8_cga_m24_device : protected: isa8_cga_m24_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); - virtual void device_reset() override; + 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; uint8_t m_mode2, m_index; }; @@ -310,9 +310,9 @@ class isa8_cga_cportiii_device : uint8_t char_ram_read(offs_t offset); void char_ram_write(offs_t offset, uint8_t data); protected: - 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_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; }; DECLARE_DEVICE_TYPE(ISA8_CGA_CPORTIII, isa8_cga_cportiii_device) diff --git a/src/devices/bus/isa/chessmdr.h b/src/devices/bus/isa/chessmdr.h index 9f5d1bf270f..92182c56259 100644 --- a/src/devices/bus/isa/chessmdr.h +++ b/src/devices/bus/isa/chessmdr.h @@ -25,11 +25,11 @@ class isa8_chessmdr_device : protected: // device-level overrides - 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; - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; private: required_device m_chessm; diff --git a/src/devices/bus/isa/chessmsr.h b/src/devices/bus/isa/chessmsr.h index 6d4becc4b64..2e324fe6c06 100644 --- a/src/devices/bus/isa/chessmsr.h +++ b/src/devices/bus/isa/chessmsr.h @@ -26,12 +26,12 @@ class isa8_chessmsr_device : 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 device_reset_after_children() override; - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; private: required_device m_maincpu; @@ -46,7 +46,7 @@ class isa8_chessmsr_device : uint8_t chessmsr_r(offs_t offset); void chessmsr_w(offs_t offset, uint8_t data); - void chessmsr_mem(address_map &map); + void chessmsr_mem(address_map &map) ATTR_COLD; }; diff --git a/src/devices/bus/isa/cl_sh260.h b/src/devices/bus/isa/cl_sh260.h index 18612ab6456..b27eaae32ec 100644 --- a/src/devices/bus/isa/cl_sh260.h +++ b/src/devices/bus/isa/cl_sh260.h @@ -21,9 +21,9 @@ class isa16_cl_sh260_device : public device_t, public device_isa16_card_interfac protected: isa16_cl_sh260_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; - void i8031_map(address_map &map); + void i8031_map(address_map &map) ATTR_COLD; required_device m_fdc; }; @@ -36,11 +36,11 @@ class isa16_ev346_device : public isa16_cl_sh260_device static constexpr feature_type unemulated_features() { return feature::DISK; } 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: - void ext_map(address_map &map); + void ext_map(address_map &map) ATTR_COLD; }; class isa16_jc1310_device : public isa16_cl_sh260_device @@ -51,11 +51,11 @@ class isa16_jc1310_device : public isa16_cl_sh260_device static constexpr feature_type unemulated_features() { return feature::DISK; } 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: - void ext_map(address_map &map); + void ext_map(address_map &map) ATTR_COLD; }; DECLARE_DEVICE_TYPE(EV346, isa16_ev346_device) diff --git a/src/devices/bus/isa/com.h b/src/devices/bus/isa/com.h index 0f77156f004..0d107f75c94 100644 --- a/src/devices/bus/isa/com.h +++ b/src/devices/bus/isa/com.h @@ -29,11 +29,11 @@ class isa8_com_device : isa8_com_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; @@ -51,7 +51,7 @@ class isa8_com_at_device : protected: // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; diff --git a/src/devices/bus/isa/dcb.h b/src/devices/bus/isa/dcb.h index fbca0303978..483a37ffff0 100644 --- a/src/devices/bus/isa/dcb.h +++ b/src/devices/bus/isa/dcb.h @@ -23,16 +23,16 @@ class novell_dcb_device : public device_t, public device_isa16_card_interface static constexpr feature_type unemulated_features() { return feature::DISK; } protected: - virtual void device_add_mconfig(machine_config &config) override; - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; private: void eeprom_w(u8 data); u8 misc_r(); - void mem_map(address_map &map); - void io_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; required_device m_localcpu; required_device m_eeprom; diff --git a/src/devices/bus/isa/dectalk.h b/src/devices/bus/isa/dectalk.h index 89e8f7cb454..470dfb03bbd 100644 --- a/src/devices/bus/isa/dectalk.h +++ b/src/devices/bus/isa/dectalk.h @@ -18,12 +18,12 @@ class dectalk_isa_device : public device_t, 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; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: int bio_line_r(); @@ -45,10 +45,10 @@ class dectalk_isa_device : public device_t, void output_ctl_w(uint16_t data); void irq_line_w(uint16_t data); - void dectalk_cpu_io(address_map &map); - void dectalk_cpu_map(address_map &map); - void dectalk_dsp_io(address_map &map); - void dectalk_dsp_map(address_map &map); + void dectalk_cpu_io(address_map &map) ATTR_COLD; + void dectalk_cpu_map(address_map &map) ATTR_COLD; + void dectalk_dsp_io(address_map &map) ATTR_COLD; + void dectalk_dsp_map(address_map &map) ATTR_COLD; uint16_t m_cmd, m_stat, m_data, m_dsp_dma, m_ctl; uint8_t m_dma, m_vol, m_bio; diff --git a/src/devices/bus/isa/ega.h b/src/devices/bus/isa/ega.h index 8aa63fa04fe..82069fe272e 100644 --- a/src/devices/bus/isa/ega.h +++ b/src/devices/bus/isa/ega.h @@ -40,13 +40,13 @@ class isa8_ega_device : isa8_ega_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual const tiny_rom_entry *device_rom_region() const override; - virtual ioport_constructor device_input_ports() 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; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; uint8_t alu_op( uint8_t data, uint8_t latch_data ); diff --git a/src/devices/bus/isa/eis_hgb107x.h b/src/devices/bus/isa/eis_hgb107x.h index 4a2d3391ce3..dc48dce786c 100644 --- a/src/devices/bus/isa/eis_hgb107x.h +++ b/src/devices/bus/isa/eis_hgb107x.h @@ -34,13 +34,13 @@ class isa8_epc_mda_device : public device_t, public device_isa8_card_interface isa8_epc_mda_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual const tiny_rom_entry *device_rom_region() const override; - virtual ioport_constructor device_input_ports() 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; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; private: inline int get_xres(); diff --git a/src/devices/bus/isa/eis_sad8852.h b/src/devices/bus/isa/eis_sad8852.h index 224680c83e7..384ee297f69 100644 --- a/src/devices/bus/isa/eis_sad8852.h +++ b/src/devices/bus/isa/eis_sad8852.h @@ -20,17 +20,17 @@ class isa16_sad8852_device : 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; // address maps - void sad8852_mem(address_map &map); - void sad8852_io(address_map &map); + void sad8852_mem(address_map &map) ATTR_COLD; + void sad8852_io(address_map &map) ATTR_COLD; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; // helpers required_ioport m_sw1; diff --git a/src/devices/bus/isa/eis_twib.h b/src/devices/bus/isa/eis_twib.h index 03aa10b5544..7ee5d0b7769 100644 --- a/src/devices/bus/isa/eis_twib.h +++ b/src/devices/bus/isa/eis_twib.h @@ -23,16 +23,16 @@ class isa8_eistwib_device : 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; // devices required_device m_uart8274; required_device m_sdlclogger; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; // Timers TIMER_DEVICE_CALLBACK_MEMBER(tick_bitclock); diff --git a/src/devices/bus/isa/ex1280.h b/src/devices/bus/isa/ex1280.h index d8c492a1908..44396e8dc8f 100644 --- a/src/devices/bus/isa/ex1280.h +++ b/src/devices/bus/isa/ex1280.h @@ -28,12 +28,12 @@ class isa16_ex1280_device : public device_t, 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; // 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; uint16_t vram_r(offs_t offset); void vram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); @@ -49,7 +49,7 @@ class isa16_ex1280_device : public device_t, TMS340X0_FROM_SHIFTREG_CB_MEMBER(from_shiftreg); TMS340X0_SCANLINE_RGB32_CB_MEMBER(scanline_update); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; std::vector m_vram; uint16_t m_flags; diff --git a/src/devices/bus/isa/fdc.h b/src/devices/bus/isa/fdc.h index 5bf094b2dce..8dfc1a3d3d3 100644 --- a/src/devices/bus/isa/fdc.h +++ b/src/devices/bus/isa/fdc.h @@ -49,8 +49,8 @@ class isa8_upd765_fdc_device : public isa8_fdc_device isa8_upd765_fdc_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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; uint8_t dor_r(); void dor_w(uint8_t data); @@ -78,10 +78,10 @@ class isa8_fdc_xt_device : public isa8_upd765_fdc_device { isa8_fdc_xt_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; - void map(address_map &map); + void map(address_map &map) ATTR_COLD; void dor_fifo_w(uint8_t data); }; @@ -91,10 +91,10 @@ class isa8_fdc_at_device : public isa8_upd765_fdc_device { protected: // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; - void map(address_map &map); + void map(address_map &map) ATTR_COLD; }; class isa8_fdc_smc_device : public isa8_fdc_device { @@ -103,8 +103,8 @@ class isa8_fdc_smc_device : public isa8_fdc_device { protected: // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; }; class isa8_fdc_ps2_device : public isa8_fdc_device { @@ -113,8 +113,8 @@ class isa8_fdc_ps2_device : public isa8_fdc_device { protected: // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; }; class isa8_fdc_superio_device : public isa8_fdc_device { @@ -123,8 +123,8 @@ class isa8_fdc_superio_device : public isa8_fdc_device { protected: // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; }; class isa8_ec1841_0003_device : public isa8_fdc_xt_device { @@ -132,8 +132,8 @@ class isa8_ec1841_0003_device : public isa8_fdc_xt_device { isa8_ec1841_0003_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - 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; void aux_irq_w(int state); diff --git a/src/devices/bus/isa/finalchs.h b/src/devices/bus/isa/finalchs.h index 2b04f69ec6b..b7977b901e1 100644 --- a/src/devices/bus/isa/finalchs.h +++ b/src/devices/bus/isa/finalchs.h @@ -26,13 +26,13 @@ class isa8_finalchs_device : protected: // device-level overrides - 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; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual ioport_constructor device_input_ports() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; private: required_device m_maincpu; @@ -44,7 +44,7 @@ class isa8_finalchs_device : uint8_t finalchs_r(offs_t offset); void finalchs_w(offs_t offset, uint8_t data); - void finalchs_mem(address_map &map); + void finalchs_mem(address_map &map) ATTR_COLD; }; diff --git a/src/devices/bus/isa/gblaster.h b/src/devices/bus/isa/gblaster.h index 77cec10eded..b744198ad08 100644 --- a/src/devices/bus/isa/gblaster.h +++ b/src/devices/bus/isa/gblaster.h @@ -30,11 +30,11 @@ class isa8_gblaster_device : 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; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: // internal state diff --git a/src/devices/bus/isa/gus.h b/src/devices/bus/isa/gus.h index 9f652fd8ccb..cc86b2f088c 100644 --- a/src/devices/bus/isa/gus.h +++ b/src/devices/bus/isa/gus.h @@ -126,9 +126,9 @@ class gf1_device : protected: // device-level overrides - virtual void device_start() override; - virtual void device_reset() override; - virtual void device_stop() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; + virtual void device_stop() override ATTR_COLD; virtual void device_clock_changed() override; virtual void update_irq() override; @@ -244,13 +244,13 @@ class isa16_gus_device : protected: // device-level overrides - virtual void device_start() override; - virtual void device_reset() override; - virtual void device_stop() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; + virtual void device_stop() override ATTR_COLD; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; private: void midi_txirq(int state); diff --git a/src/devices/bus/isa/hdc.h b/src/devices/bus/isa/hdc.h index 059424fbb9e..e1ac9562136 100644 --- a/src/devices/bus/isa/hdc.h +++ b/src/devices/bus/isa/hdc.h @@ -49,8 +49,8 @@ class xt_hdc_device : xt_hdc_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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; harddisk_image_device *pc_hdc_file(int id); void pc_hdc_result(bool set_error_info); @@ -151,13 +151,13 @@ class isa8_hdc_device : isa8_hdc_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual const tiny_rom_entry *device_rom_region() const override; - virtual ioport_constructor device_input_ports() 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; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; void irq_w(int state); void drq_w(int state); @@ -178,7 +178,7 @@ class isa8_hdc_ec1841_device : public isa8_hdc_device protected: // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; required_device m_hdc; }; diff --git a/src/devices/bus/isa/hpblp.h b/src/devices/bus/isa/hpblp.h index 10f9c2ea0cf..cea8bac519c 100644 --- a/src/devices/bus/isa/hpblp.h +++ b/src/devices/bus/isa/hpblp.h @@ -20,16 +20,16 @@ class isa8_hpblp_device : isa8_hpblp_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; - virtual void device_reset() override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; - 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: // ISA part - void isamap(address_map &map); + void isamap(address_map &map) ATTR_COLD; uint8_t datal_r(offs_t offset); uint8_t datah_r(offs_t offset); @@ -57,7 +57,7 @@ class isa8_hpblp_device : // M68000 part void gpib_irq(int state); - void m68map(address_map &map); + void m68map(address_map &map) ATTR_COLD; uint16_t bus_r(offs_t offset, uint16_t mem_mask); void bus_w(offs_t offset, uint16_t data, uint16_t mem_mask); diff --git a/src/devices/bus/isa/ibm_mfc.h b/src/devices/bus/isa/ibm_mfc.h index 4af1acdfe1e..6bd4172b575 100644 --- a/src/devices/bus/isa/ibm_mfc.h +++ b/src/devices/bus/isa/ibm_mfc.h @@ -36,7 +36,7 @@ class isa8_ibm_mfc_device : public device_t, virtual void device_start() override; virtual void device_reset() override; - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual ioport_constructor device_input_ports() const override; virtual const tiny_rom_entry* device_rom_region() const override; @@ -62,8 +62,8 @@ class isa8_ibm_mfc_device : public device_t, uint8_t ibm_mfc_r(offs_t offset); void ibm_mfc_w(offs_t offset, uint8_t data); - void io_map(address_map &map); - void prg_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void prg_map(address_map &map) ATTR_COLD; void set_z80_interrupt(int src, int state); void set_pc_interrupt(int src, int state); diff --git a/src/devices/bus/isa/ibm_speech.h b/src/devices/bus/isa/ibm_speech.h index 7e33fdb1c04..eb6ca256e05 100644 --- a/src/devices/bus/isa/ibm_speech.h +++ b/src/devices/bus/isa/ibm_speech.h @@ -29,11 +29,11 @@ class isa8_ibm_speech_device : protected: // 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; virtual void device_reset_after_children() override; - 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: required_device m_lpc; diff --git a/src/devices/bus/isa/ide.h b/src/devices/bus/isa/ide.h index 326b4c396cd..311d2dd0edb 100644 --- a/src/devices/bus/isa/ide.h +++ b/src/devices/bus/isa/ide.h @@ -25,12 +25,12 @@ class isa16_ide_device : public device_t, 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; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; private: void ide_interrupt(int state); @@ -38,8 +38,8 @@ class isa16_ide_device : public device_t, void ide16_alt_w(uint8_t data); bool is_primary() { return m_is_primary; } - void map(address_map &map); - void alt_map(address_map &map); + void map(address_map &map) ATTR_COLD; + void alt_map(address_map &map) ATTR_COLD; // internal state bool m_is_primary; diff --git a/src/devices/bus/isa/isa.h b/src/devices/bus/isa/isa.h index 4b02d0bf946..225663a4da1 100644 --- a/src/devices/bus/isa/isa.h +++ b/src/devices/bus/isa/isa.h @@ -96,7 +96,7 @@ class isa8_slot_device : public device_t, public device_slot_interface isa8_slot_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; // configuration required_device m_isa_bus; @@ -212,9 +212,9 @@ class isa8_device : public device_t, // device_t implementation virtual void device_config_complete() override; - virtual void device_resolve_objects() override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_resolve_objects() override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; // address spaces required_address_space m_memspace, m_iospace; @@ -293,7 +293,7 @@ class isa16_slot_device : public isa8_slot_device protected: // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; }; diff --git a/src/devices/bus/isa/lbaenhancer.h b/src/devices/bus/isa/lbaenhancer.h index 71e36c02665..6612e1ea602 100644 --- a/src/devices/bus/isa/lbaenhancer.h +++ b/src/devices/bus/isa/lbaenhancer.h @@ -26,14 +26,14 @@ class lba_enhancer_device : public device_t, 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; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; private: uint32_t m_current_rom_start; }; diff --git a/src/devices/bus/isa/lpt.h b/src/devices/bus/isa/lpt.h index 15f3259db52..a3acf8cf349 100644 --- a/src/devices/bus/isa/lpt.h +++ b/src/devices/bus/isa/lpt.h @@ -31,12 +31,12 @@ class isa8_lpt_device : public device_t, 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; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; private: void pc_cpu_line(int state); diff --git a/src/devices/bus/isa/lrk330.h b/src/devices/bus/isa/lrk330.h index b75a50fa7a3..928b3ef0689 100644 --- a/src/devices/bus/isa/lrk330.h +++ b/src/devices/bus/isa/lrk330.h @@ -17,16 +17,16 @@ class lrk331_device : public device_t, public device_isa16_card_interface static constexpr feature_type unemulated_features() { return feature::DISK; } protected: - 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 ioport_constructor device_input_ports() const override; - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual ioport_constructor device_input_ports() const 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; private: - void ucode_map(address_map &map); - void ext_map(address_map &map); + void ucode_map(address_map &map) ATTR_COLD; + void ext_map(address_map &map) ATTR_COLD; required_device m_mcu; required_region_ptr m_bios; diff --git a/src/devices/bus/isa/mc1502_fdc.h b/src/devices/bus/isa/mc1502_fdc.h index a589ca0c810..aa48dcaefb1 100644 --- a/src/devices/bus/isa/mc1502_fdc.h +++ b/src/devices/bus/isa/mc1502_fdc.h @@ -38,11 +38,11 @@ class mc1502_fdc_device : public device_t, protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() 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; private: void mc1502_fdc_irq_drq(int state); diff --git a/src/devices/bus/isa/mc1502_rom.h b/src/devices/bus/isa/mc1502_rom.h index bbb152df72f..890ca169578 100644 --- a/src/devices/bus/isa/mc1502_rom.h +++ b/src/devices/bus/isa/mc1502_rom.h @@ -25,12 +25,12 @@ class mc1502_rom_device : public device_t, mc1502_rom_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; 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; }; diff --git a/src/devices/bus/isa/mcd.h b/src/devices/bus/isa/mcd.h index b6a2fce564d..5234847887a 100644 --- a/src/devices/bus/isa/mcd.h +++ b/src/devices/bus/isa/mcd.h @@ -24,9 +24,9 @@ class mcd_isa_device : public cdrom_image_device, protected: virtual uint16_t dack16_r(int line) override; - 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; private: required_device m_cdda; @@ -35,7 +35,7 @@ class mcd_isa_device : public cdrom_image_device, void cmd_w(uint8_t data); void reset_w(uint8_t data); - void map(address_map &map); + void map(address_map &map) ATTR_COLD; bool read_sector(bool first = false); diff --git a/src/devices/bus/isa/mda.h b/src/devices/bus/isa/mda.h index 97e08dfcf1b..a54c34496b5 100644 --- a/src/devices/bus/isa/mda.h +++ b/src/devices/bus/isa/mda.h @@ -40,12 +40,12 @@ class isa8_mda_device : public device_t, isa8_mda_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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; // 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 m_crtc; optional_device m_lpt; @@ -90,12 +90,12 @@ class isa8_hercules_device : 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; // 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; private: virtual MC6845_UPDATE_ROW( crtc_update_row ) override; @@ -119,11 +119,11 @@ class isa8_ec1840_0002_device : 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; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: virtual void mode_control_w(uint8_t data) override; diff --git a/src/devices/bus/isa/mpu401.h b/src/devices/bus/isa/mpu401.h index 74054aad765..e574f5f4553 100644 --- a/src/devices/bus/isa/mpu401.h +++ b/src/devices/bus/isa/mpu401.h @@ -24,11 +24,11 @@ class isa8_mpu401_device : 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; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: // called back by the MPU401 core to set the IRQ line state diff --git a/src/devices/bus/isa/mufdc.h b/src/devices/bus/isa/mufdc.h index 80b3ae786fb..fc16719ccab 100644 --- a/src/devices/bus/isa/mufdc.h +++ b/src/devices/bus/isa/mufdc.h @@ -37,12 +37,12 @@ class mufdc_device : public device_t, public device_isa8_card_interface mufdc_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; // device_isa8_card_interface virtual uint8_t dack_r(int line) override; @@ -67,7 +67,7 @@ class fdc344_device : public mufdc_device // construction/destruction fdc344_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; }; class fdcmag_device : public mufdc_device @@ -76,7 +76,7 @@ class fdcmag_device : public mufdc_device // construction/destruction fdcmag_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; }; // device type definition diff --git a/src/devices/bus/isa/myb3k_com.h b/src/devices/bus/isa/myb3k_com.h index 0dd75f0ec60..1e765cf2568 100644 --- a/src/devices/bus/isa/myb3k_com.h +++ b/src/devices/bus/isa/myb3k_com.h @@ -54,12 +54,12 @@ class isa8_myb3k_com_device : isa8_myb3k_com_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; // helpers void com_int(); diff --git a/src/devices/bus/isa/myb3k_fdc.h b/src/devices/bus/isa/myb3k_fdc.h index c3d77fd0929..30ed5ce88de 100644 --- a/src/devices/bus/isa/myb3k_fdc.h +++ b/src/devices/bus/isa/myb3k_fdc.h @@ -22,11 +22,11 @@ class isa8_myb3k_fdc471x_device_base : isa8_myb3k_fdc471x_device_base(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; virtual void device_reset() override { } - void map(address_map &map); + void map(address_map &map) ATTR_COLD; virtual uint8_t dack_r(int line) override; virtual void dack_w(int line, uint8_t data) override; @@ -73,7 +73,7 @@ class isa8_myb3k_fdc4710_device : public isa8_myb3k_fdc471x_device_base isa8_myb3k_fdc4710_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; class isa8_myb3k_fdc4711_device : public isa8_myb3k_fdc471x_device_base @@ -87,7 +87,7 @@ class isa8_myb3k_fdc4711_device : public isa8_myb3k_fdc471x_device_base isa8_myb3k_fdc4711_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; class isa8_myb3k_fdc4712_device : public isa8_myb3k_fdc471x_device_base @@ -101,7 +101,7 @@ class isa8_myb3k_fdc4712_device : public isa8_myb3k_fdc471x_device_base isa8_myb3k_fdc4712_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual void myb3k_fdc_command(uint8_t data) override; virtual uint8_t myb3k_fdc_status() override; diff --git a/src/devices/bus/isa/ne1000.h b/src/devices/bus/isa/ne1000.h index fa6011b45e1..b40b1220b96 100644 --- a/src/devices/bus/isa/ne1000.h +++ b/src/devices/bus/isa/ne1000.h @@ -20,11 +20,11 @@ class ne1000_device: public device_t, void ne1000_port_w(offs_t offset, uint8_t data); protected: - 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 device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; private: void ne1000_irq_w(int state); diff --git a/src/devices/bus/isa/ne2000.h b/src/devices/bus/isa/ne2000.h index 328443fd9b2..2d035c4072f 100644 --- a/src/devices/bus/isa/ne2000.h +++ b/src/devices/bus/isa/ne2000.h @@ -18,11 +18,11 @@ class ne2000_device: public device_t, void ne2000_port_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); protected: - 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 device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; private: void ne2000_irq_w(int state); diff --git a/src/devices/bus/isa/np600.h b/src/devices/bus/isa/np600.h index 889d77ef485..b4f50a35eee 100644 --- a/src/devices/bus/isa/np600.h +++ b/src/devices/bus/isa/np600.h @@ -22,9 +22,9 @@ class np600a3_device : public device_t, public device_isa16_card_interface static constexpr feature_type unemulated_features() { return feature::LAN; } protected: - virtual void device_start() 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_add_mconfig(machine_config &config) override ATTR_COLD; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; private: void lcc_ca_w(u16 data); @@ -33,9 +33,9 @@ class np600a3_device : public device_t, public device_isa16_card_interface u16 status_r(); u8 enetaddr_r(offs_t offset); - void mem_map(address_map &map); - void io_map(address_map &map); - void lcc_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; + void lcc_map(address_map &map) ATTR_COLD; required_device m_npcpu; required_device m_lcc; diff --git a/src/devices/bus/isa/num9rev.h b/src/devices/bus/isa/num9rev.h index 298af6d91f5..edfc0a977f2 100644 --- a/src/devices/bus/isa/num9rev.h +++ b/src/devices/bus/isa/num9rev.h @@ -26,11 +26,11 @@ class isa8_number_9_rev_device : 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; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: UPD7220_DISPLAY_PIXELS_MEMBER(hgdc_display_pixels); @@ -50,7 +50,7 @@ class isa8_number_9_rev_device : uint8_t read8(offs_t offset); void write8(offs_t offset, uint8_t data); - void upd7220_map(address_map &map); + void upd7220_map(address_map &map) ATTR_COLD; required_device m_upd7220; required_device m_palette; diff --git a/src/devices/bus/isa/omti8621.cpp b/src/devices/bus/isa/omti8621.cpp index 149638160c3..3c88e65442e 100644 --- a/src/devices/bus/isa/omti8621.cpp +++ b/src/devices/bus/isa/omti8621.cpp @@ -62,8 +62,8 @@ class omti_disk_image_device : public harddisk_image_base_device protected: // 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; void omti_disk_config(uint16_t disk_type); diff --git a/src/devices/bus/isa/omti8621.h b/src/devices/bus/isa/omti8621.h index 0893dec9352..11d4263a996 100644 --- a/src/devices/bus/isa/omti8621.h +++ b/src/devices/bus/isa/omti8621.h @@ -47,11 +47,11 @@ class omti8621_device : public device_t, public device_isa16_card_interface uint32_t clock); // device_t implementation - 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 ioport_constructor device_input_ports() const 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; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; virtual uint8_t dack_r(int line) override; virtual void dack_w(int line, uint8_t data) override; @@ -81,7 +81,7 @@ class omti8621_device : public device_t, public device_isa16_card_interface void fd_extra_w(uint8_t data); uint8_t fd_disk_chg_r(); - void fdc_map(address_map &map); + void fdc_map(address_map &map) ATTR_COLD; uint16_t m_jumper; @@ -166,8 +166,8 @@ class omti8621_apollo_device : public omti8621_device uint32_t get_sector(int32_t diskaddr, uint8_t *buffer, uint32_t length, uint8_t lun); 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; }; DECLARE_DEVICE_TYPE(ISA16_OMTI8621_APOLLO, omti8621_apollo_device) diff --git a/src/devices/bus/isa/opus100pm.h b/src/devices/bus/isa/opus100pm.h index d38d0a41884..da2565762eb 100644 --- a/src/devices/bus/isa/opus100pm.h +++ b/src/devices/bus/isa/opus100pm.h @@ -22,14 +22,14 @@ class isa8_opus108pm_device protected: // device_t overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; virtual void device_reset_after_children() override; - void map_cpu(address_map &map); - void map_isa(address_map &map); + void map_cpu(address_map &map) ATTR_COLD; + void map_isa(address_map &map) ATTR_COLD; // adapter register helpers u8 card_wait_r() { return 0xb2; } diff --git a/src/devices/bus/isa/p1_fdc.h b/src/devices/bus/isa/p1_fdc.h index 0c1ae3a492a..3ddc5fa2e81 100644 --- a/src/devices/bus/isa/p1_fdc.h +++ b/src/devices/bus/isa/p1_fdc.h @@ -35,12 +35,12 @@ class p1_fdc_device : public device_t, 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; // 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; private: void p1_fdc_irq_drq(int state); diff --git a/src/devices/bus/isa/p1_hdc.h b/src/devices/bus/isa/p1_hdc.h index 2947dba1e84..2f767167a91 100644 --- a/src/devices/bus/isa/p1_hdc.h +++ b/src/devices/bus/isa/p1_hdc.h @@ -29,12 +29,12 @@ class p1_hdc_device : public device_t, 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; // 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; private: required_device m_hdc; diff --git a/src/devices/bus/isa/p1_rom.h b/src/devices/bus/isa/p1_rom.h index d5fd89662d5..7d9d566d57d 100644 --- a/src/devices/bus/isa/p1_rom.h +++ b/src/devices/bus/isa/p1_rom.h @@ -25,12 +25,12 @@ class p1_rom_device : public device_t, p1_rom_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; 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; }; diff --git a/src/devices/bus/isa/p1_sound.h b/src/devices/bus/isa/p1_sound.h index 519c58bfd6b..17c4967a14c 100644 --- a/src/devices/bus/isa/p1_sound.h +++ b/src/devices/bus/isa/p1_sound.h @@ -42,11 +42,11 @@ class p1_sound_device : public device_t, 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; // Optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: void sampler_sync(int state); diff --git a/src/devices/bus/isa/pc1640_iga.h b/src/devices/bus/isa/pc1640_iga.h index 0cee53d6329..8221ce86fa2 100644 --- a/src/devices/bus/isa/pc1640_iga.h +++ b/src/devices/bus/isa/pc1640_iga.h @@ -29,11 +29,11 @@ class isa8_pc1640_iga_device : public isa8_ega_device isa8_pc1640_iga_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; }; diff --git a/src/devices/bus/isa/pcmidi.h b/src/devices/bus/isa/pcmidi.h index 90bca2b5752..eaef7cd7bf7 100644 --- a/src/devices/bus/isa/pcmidi.h +++ b/src/devices/bus/isa/pcmidi.h @@ -17,11 +17,11 @@ class isa8_pcmidi_device : public device_t, public device_isa8_card_interface isa8_pcmidi_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); protected: - virtual void device_start() override; - virtual void device_reset() override; - virtual ioport_constructor device_input_ports() const 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 ioport_constructor device_input_ports() const 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; private: void set_host_irq(bool state); @@ -30,7 +30,7 @@ class isa8_pcmidi_device : public device_t, public device_isa8_card_interface void status_w(u8 data); void mpu_p3_w(u8 data); - void mpu_map(address_map &map); + void mpu_map(address_map &map) ATTR_COLD; required_device m_mpu; required_device m_cmdlatch; diff --git a/src/devices/bus/isa/pds.h b/src/devices/bus/isa/pds.h index 3188fdac0ad..8613d704134 100644 --- a/src/devices/bus/isa/pds.h +++ b/src/devices/bus/isa/pds.h @@ -24,12 +24,12 @@ class isa8_pds_device : protected: // device-level overrides - virtual void device_start() override; - virtual void device_reset() override; - virtual void device_stop() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; + virtual void device_stop() override ATTR_COLD; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; required_device m_ppi; }; diff --git a/src/devices/bus/isa/pgc.h b/src/devices/bus/isa/pgc.h index 43bc42e2b85..f08d613ceba 100644 --- a/src/devices/bus/isa/pgc.h +++ b/src/devices/bus/isa/pgc.h @@ -30,13 +30,13 @@ class isa8_pgc_device : isa8_pgc_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual const tiny_rom_entry *device_rom_region() const override; - virtual ioport_constructor device_input_ports() 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; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; private: uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); @@ -54,8 +54,8 @@ class isa8_pgc_device : void reset_common(); - void pgc_io(address_map &map); - void pgc_map(address_map &map); + void pgc_io(address_map &map) ATTR_COLD; + void pgc_map(address_map &map) ATTR_COLD; required_device m_cpu; required_device m_screen; diff --git a/src/devices/bus/isa/sb16.h b/src/devices/bus/isa/sb16.h index 8710574ba85..9ca0cbeced0 100644 --- a/src/devices/bus/isa/sb16.h +++ b/src/devices/bus/isa/sb16.h @@ -24,12 +24,12 @@ class sb16_lle_device : public device_t, public device_isa16_card_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; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; uint8_t dack_r(int line) override; void dack_w(int line, uint8_t data) override; @@ -81,8 +81,8 @@ class sb16_lle_device : public device_t, public device_isa16_card_interface uint8_t dsp_wbuf_status_r(offs_t offset); uint8_t dsp_rbuf_status_r(offs_t offset); - void sb16_io(address_map &map); - void host_io(address_map &map); + void sb16_io(address_map &map) ATTR_COLD; + void host_io(address_map &map) ATTR_COLD; void control_timer(bool start); diff --git a/src/devices/bus/isa/sblaster.h b/src/devices/bus/isa/sblaster.h index 1443f2fa09c..6fe3782fc95 100644 --- a/src/devices/bus/isa/sblaster.h +++ b/src/devices/bus/isa/sblaster.h @@ -108,8 +108,8 @@ class sb_device : sb_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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; uint8_t dack_r(int line); void dack_w(int line, uint8_t data); @@ -154,12 +154,12 @@ class sb8_device : public sb_device, public: uint8_t ym3812_16_r(offs_t offset); void ym3812_16_w(offs_t offset, uint8_t data); - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; protected: // construction/destruction sb8_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_start() override ATTR_COLD; virtual void drq_w(int state) override; virtual void irq_w(int state, int source) override; virtual uint8_t dack_r(int line) override { return sb_device::dack_r(line); } @@ -180,10 +180,10 @@ class isa8_sblaster1_0_device : public sb8_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: // internal state @@ -199,10 +199,10 @@ class isa8_sblaster1_5_device : public sb8_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; class sb16_device : public sb_device, @@ -213,11 +213,11 @@ class sb16_device : public sb_device, void mpu401_w(offs_t offset, uint8_t data); uint8_t mixer_r(offs_t offset); void mixer_w(offs_t offset, uint8_t data); - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; protected: // construction/destruction sb16_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_start() override ATTR_COLD; virtual uint16_t dack16_r(int line) override; virtual uint8_t dack_r(int line) override { return sb_device::dack_r(line); } virtual void dack_w(int line, uint8_t data) override { sb_device::dack_w(line, data); } @@ -240,10 +240,10 @@ class isa16_sblaster16_device : public sb16_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual void remap(int space_id, offs_t start, offs_t end) override; }; diff --git a/src/devices/bus/isa/sc499.h b/src/devices/bus/isa/sc499.h index 8bb94221b41..76f59996452 100644 --- a/src/devices/bus/isa/sc499.h +++ b/src/devices/bus/isa/sc499.h @@ -46,7 +46,7 @@ class sc499_ctape_image_device : public microtape_image_device protected: // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; std::vector m_ctape_data; }; @@ -65,10 +65,10 @@ class sc499_device: public device_t, public device_isa8_card_interface private: // device-level overrides - virtual void device_start() override; - virtual void device_reset() override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() 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 ioport_constructor device_input_ports() const override ATTR_COLD; // ISA overrides virtual uint8_t dack_r(int line) override; diff --git a/src/devices/bus/isa/side116.h b/src/devices/bus/isa/side116.h index 919785d86b7..db40b4bee7b 100644 --- a/src/devices/bus/isa/side116.h +++ b/src/devices/bus/isa/side116.h @@ -34,13 +34,13 @@ class side116_device : public device_t, public device_isa8_card_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; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; - virtual const tiny_rom_entry *device_rom_region() const override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; private: void ide_interrupt(int state); diff --git a/src/devices/bus/isa/ssi2001.h b/src/devices/bus/isa/ssi2001.h index 85efa17c5ac..329a2a12c26 100644 --- a/src/devices/bus/isa/ssi2001.h +++ b/src/devices/bus/isa/ssi2001.h @@ -24,11 +24,11 @@ class ssi2001_device : public device_t, 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; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; required_device m_joy; required_device m_sid; diff --git a/src/devices/bus/isa/stereo_fx.h b/src/devices/bus/isa/stereo_fx.h index 376d5dbff98..e31fbe35e25 100644 --- a/src/devices/bus/isa/stereo_fx.h +++ b/src/devices/bus/isa/stereo_fx.h @@ -25,12 +25,12 @@ class stereo_fx_device : public device_t, 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; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; uint8_t dack_r(int line) override; void dack_w(int line, uint8_t data) override; @@ -73,8 +73,8 @@ class stereo_fx_device : public device_t, uint8_t invalid_r(); void invalid_w(uint8_t data); - void stereo_fx_io(address_map &map); - void stereo_fx_rom(address_map &map); + void stereo_fx_io(address_map &map) ATTR_COLD; + void stereo_fx_rom(address_map &map) ATTR_COLD; }; // device type definition diff --git a/src/devices/bus/isa/svga_cirrus.h b/src/devices/bus/isa/svga_cirrus.h index cfc4d495c1c..14481e23aa8 100644 --- a/src/devices/bus/isa/svga_cirrus.h +++ b/src/devices/bus/isa/svga_cirrus.h @@ -24,14 +24,14 @@ class isa16_svga_cirrus_device : 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; // 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 io_isa_map(address_map &map); + void io_isa_map(address_map &map) ATTR_COLD; private: required_device m_vga; @@ -50,14 +50,14 @@ class isa16_svga_cirrus_gd542x_device : virtual void remap(int space_id, offs_t start, offs_t end) override; 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; // 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 io_isa_map(address_map &map); + void io_isa_map(address_map &map) ATTR_COLD; private: required_device m_vga; diff --git a/src/devices/bus/isa/svga_paradise.h b/src/devices/bus/isa/svga_paradise.h index 0dec71758fd..78302b680be 100644 --- a/src/devices/bus/isa/svga_paradise.h +++ b/src/devices/bus/isa/svga_paradise.h @@ -25,13 +25,13 @@ class isa16_pvga1a_device : protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() 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 io_isa_map(address_map &map); + void io_isa_map(address_map &map) ATTR_COLD; private: required_device m_vga; @@ -47,13 +47,13 @@ class isa16_pvga1a_jk_device : protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() 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 io_isa_map(address_map &map); + void io_isa_map(address_map &map) ATTR_COLD; private: required_device m_vga; @@ -69,13 +69,13 @@ class isa8_wd90c90_jk_device : protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() 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 io_isa_map(address_map &map); + void io_isa_map(address_map &map) ATTR_COLD; private: required_device m_vga; @@ -94,13 +94,13 @@ class isa16_wd90c00_jk_device : protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() 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 io_isa_map(address_map &map); + void io_isa_map(address_map &map) ATTR_COLD; private: required_device m_vga; @@ -116,13 +116,13 @@ class isa16_wd90c11_lr_device : protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() 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 io_isa_map(address_map &map); + void io_isa_map(address_map &map) ATTR_COLD; private: required_device m_vga; @@ -138,13 +138,13 @@ class isa16_wd90c30_lr_device : protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() 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 io_isa_map(address_map &map); + void io_isa_map(address_map &map) ATTR_COLD; private: required_device m_vga; @@ -162,13 +162,13 @@ class isa16_wd90c31_lr_device : protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() 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 io_isa_map(address_map &map); + void io_isa_map(address_map &map) ATTR_COLD; private: required_device m_vga; @@ -184,13 +184,13 @@ class isa16_wd90c31a_lr_device : protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() 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 io_isa_map(address_map &map); + void io_isa_map(address_map &map) ATTR_COLD; private: required_device m_vga; @@ -206,13 +206,13 @@ class isa16_wd90c31a_zs_device : protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() 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 io_isa_map(address_map &map); + void io_isa_map(address_map &map) ATTR_COLD; private: required_device m_vga; @@ -228,13 +228,13 @@ class isa16_wd90c33_zz_device : protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() 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 io_isa_map(address_map &map); + void io_isa_map(address_map &map) ATTR_COLD; private: required_device m_vga; diff --git a/src/devices/bus/isa/svga_s3.h b/src/devices/bus/isa/svga_s3.h index 921eff6f440..7fe5dda6458 100644 --- a/src/devices/bus/isa/svga_s3.h +++ b/src/devices/bus/isa/svga_s3.h @@ -27,14 +27,14 @@ class isa16_svga_s3_device : 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; // 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 io_isa_map(address_map &map); + void io_isa_map(address_map &map) ATTR_COLD; private: required_device m_vga; diff --git a/src/devices/bus/isa/svga_trident.h b/src/devices/bus/isa/svga_trident.h index 1ca7b622009..a45abacda9f 100644 --- a/src/devices/bus/isa/svga_trident.h +++ b/src/devices/bus/isa/svga_trident.h @@ -28,13 +28,13 @@ class isa16_svga_tvga9000_device : protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() 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 io_isa_map(address_map &map); + void io_isa_map(address_map &map) ATTR_COLD; private: required_device m_vga; @@ -52,13 +52,13 @@ class isa16_svga_tgui9680_device : protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() 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 io_isa_map(address_map &map); + void io_isa_map(address_map &map) ATTR_COLD; private: required_device m_vga; diff --git a/src/devices/bus/isa/svga_tseng.h b/src/devices/bus/isa/svga_tseng.h index f842889e027..6d1a86d9108 100644 --- a/src/devices/bus/isa/svga_tseng.h +++ b/src/devices/bus/isa/svga_tseng.h @@ -34,14 +34,14 @@ class isa8_svga_et4k_device : isa8_svga_et4k_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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; // 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 io_isa_map(address_map &map); + void io_isa_map(address_map &map) ATTR_COLD; private: void map_io(); @@ -57,7 +57,7 @@ class isa8_svga_et4k_kasan16_device : isa8_svga_et4k_kasan16_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; private: required_region_ptr m_hangul_rom; diff --git a/src/devices/bus/isa/tekram_dc820.h b/src/devices/bus/isa/tekram_dc820.h index 2308eb8655a..4e59b06239f 100644 --- a/src/devices/bus/isa/tekram_dc820.h +++ b/src/devices/bus/isa/tekram_dc820.h @@ -24,7 +24,7 @@ class tekram_eisa_scsi_device : public device_t, public device_isa16_card_interf protected: tekram_eisa_scsi_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; u8 latch_status_r(); void int0_ack_w(u8 data); @@ -34,7 +34,7 @@ class tekram_eisa_scsi_device : public device_t, public device_isa16_card_interf void mask_w(u8 data); void eeprom_w(u8 data); - void common_map(address_map &map); + void common_map(address_map &map) ATTR_COLD; void scsic_config(device_t *device); void scsi_add(machine_config &config); @@ -52,15 +52,15 @@ class tekram_dc320b_device : public tekram_eisa_scsi_device tekram_dc320b_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 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: void eeprom_w(u8 data); u8 latch_status_r(); u8 status_r(); - void mpu_map(address_map &map); + void mpu_map(address_map &map) ATTR_COLD; }; class tekram_dc320e_device : public tekram_eisa_scsi_device @@ -69,11 +69,11 @@ class tekram_dc320e_device : public tekram_eisa_scsi_device tekram_dc320e_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 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: - void mpu_map(address_map &map); + void mpu_map(address_map &map) ATTR_COLD; }; class tekram_dc820_device : public tekram_eisa_scsi_device @@ -82,13 +82,13 @@ class tekram_dc820_device : public tekram_eisa_scsi_device tekram_dc820_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 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: void eeprom_w(u8 data); - void mpu_map(address_map &map); + void mpu_map(address_map &map) ATTR_COLD; }; class tekram_dc820b_device : public tekram_eisa_scsi_device @@ -97,11 +97,11 @@ class tekram_dc820b_device : public tekram_eisa_scsi_device tekram_dc820b_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 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: - void mpu_map(address_map &map); + void mpu_map(address_map &map) ATTR_COLD; }; DECLARE_DEVICE_TYPE(TEKRAM_DC320B, tekram_dc320b_device) diff --git a/src/devices/bus/isa/ultra12f.h b/src/devices/bus/isa/ultra12f.h index f4bb05d61c7..68af561f622 100644 --- a/src/devices/bus/isa/ultra12f.h +++ b/src/devices/bus/isa/ultra12f.h @@ -25,13 +25,13 @@ class ultra12f_device : public device_t, public device_isa16_card_interface protected: ultra12f_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); - virtual void device_start() override; - virtual ioport_constructor device_input_ports() const 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 ioport_constructor device_input_ports() const 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; private: - void hpc_map(address_map &map); + void hpc_map(address_map &map) ATTR_COLD; required_device m_hpc; required_device m_fdc; @@ -44,7 +44,7 @@ class ultra12f32_device : public ultra12f_device ultra12f32_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); protected: - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; }; DECLARE_DEVICE_TYPE(ULTRA12F, ultra12f_device) diff --git a/src/devices/bus/isa/ultra14f.h b/src/devices/bus/isa/ultra14f.h index 9661e24a4b3..bc5562b1ef0 100644 --- a/src/devices/bus/isa/ultra14f.h +++ b/src/devices/bus/isa/ultra14f.h @@ -22,12 +22,12 @@ class ultra14f_device : public device_t, public device_isa16_card_interface static constexpr feature_type unemulated_features() { return feature::DISK; } protected: - virtual void device_start() 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_add_mconfig(machine_config &config) override ATTR_COLD; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; private: - void uscpu_map(address_map &map); + void uscpu_map(address_map &map) ATTR_COLD; void scsic_config(device_t *device); required_device m_uscpu; diff --git a/src/devices/bus/isa/ultra24f.h b/src/devices/bus/isa/ultra24f.h index 69a5d3a29d2..0b567c73228 100644 --- a/src/devices/bus/isa/ultra24f.h +++ b/src/devices/bus/isa/ultra24f.h @@ -23,15 +23,15 @@ class ultra24f_device : public device_t, public device_isa16_card_interface static constexpr feature_type unemulated_features() { return feature::DISK; } protected: - virtual void device_start() 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_add_mconfig(machine_config &config) override ATTR_COLD; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; private: u8 bmic_r(offs_t offset); void bmic_w(offs_t offset, u8 data); - void uscpu_map(address_map &map); + void uscpu_map(address_map &map) ATTR_COLD; void scsic_config(device_t *device); required_device m_uscpu; diff --git a/src/devices/bus/isa/vga.h b/src/devices/bus/isa/vga.h index 1a3a530160d..94cb388674a 100644 --- a/src/devices/bus/isa/vga.h +++ b/src/devices/bus/isa/vga.h @@ -26,14 +26,14 @@ class isa8_vga_device : 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; // 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 io_isa_map(address_map &map); + void io_isa_map(address_map &map) ATTR_COLD; private: required_device m_vga; diff --git a/src/devices/bus/isa/vga_ati.h b/src/devices/bus/isa/vga_ati.h index 3b7c064bbaa..39fdb19cce2 100644 --- a/src/devices/bus/isa/vga_ati.h +++ b/src/devices/bus/isa/vga_ati.h @@ -35,14 +35,14 @@ class isa16_vga_gfxultra_device : 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; // 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 io_isa_map(address_map &map); + void io_isa_map(address_map &map) ATTR_COLD; private: required_device m_vga; @@ -61,14 +61,14 @@ class isa16_vga_gfxultrapro_device : 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; // 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 io_isa_map(address_map &map); + void io_isa_map(address_map &map) ATTR_COLD; private: required_device m_vga; @@ -86,14 +86,14 @@ class isa16_vga_mach64_device : 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; // 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 io_isa_map(address_map &map); + void io_isa_map(address_map &map) ATTR_COLD; private: required_device m_vga; }; diff --git a/src/devices/bus/isa/wd1002a_wx1.h b/src/devices/bus/isa/wd1002a_wx1.h index 7a66db54dd5..168152c6039 100644 --- a/src/devices/bus/isa/wd1002a_wx1.h +++ b/src/devices/bus/isa/wd1002a_wx1.h @@ -29,12 +29,12 @@ class isa8_wd1002a_wx1_device : public device_t, isa8_wd1002a_wx1_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; 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; }; diff --git a/src/devices/bus/isa/wd1007a.h b/src/devices/bus/isa/wd1007a.h index 1a761ecb66d..f9c3b963d1a 100644 --- a/src/devices/bus/isa/wd1007a.h +++ b/src/devices/bus/isa/wd1007a.h @@ -30,9 +30,9 @@ class wd1007a_device : public device_t, public device_isa16_card_interface protected: // device-level overrides - virtual void device_start() 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_add_mconfig(machine_config &config) override ATTR_COLD; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; }; diff --git a/src/devices/bus/isa/wdxt_gen.h b/src/devices/bus/isa/wdxt_gen.h index 39948ba6b5b..d5ddffdfbc1 100644 --- a/src/devices/bus/isa/wdxt_gen.h +++ b/src/devices/bus/isa/wdxt_gen.h @@ -42,12 +42,12 @@ class wdxt_gen_device : public device_t, 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; // 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; // device_isa8_card_interface virtual uint8_t dack_r(int line) override; @@ -67,7 +67,7 @@ class wdxt_gen_device : public device_t, uint8_t wd1015_p2_r(); void wd1015_p2_w(uint8_t data); - void wd1015_io(address_map &map); + void wd1015_io(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_host; diff --git a/src/devices/bus/isa/xtide.h b/src/devices/bus/isa/xtide.h index 494041e2acf..293a3bd4576 100644 --- a/src/devices/bus/isa/xtide.h +++ b/src/devices/bus/isa/xtide.h @@ -24,13 +24,13 @@ class xtide_device : public device_t, public device_isa8_card_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; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; - virtual const tiny_rom_entry *device_rom_region() const override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; private: void ide_interrupt(int state); diff --git a/src/devices/bus/isbx/compis_fdc.h b/src/devices/bus/isbx/compis_fdc.h index 3817ffb9ca1..b1899a5b812 100644 --- a/src/devices/bus/isbx/compis_fdc.h +++ b/src/devices/bus/isbx/compis_fdc.h @@ -32,11 +32,11 @@ class compis_fdc_device : public device_t, 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; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; // device_isbx_card_interface overrides virtual uint8_t mcs0_r(offs_t offset) override; diff --git a/src/devices/bus/isbx/isbc_218a.h b/src/devices/bus/isbx/isbc_218a.h index d170bfe7ff7..64f16732198 100644 --- a/src/devices/bus/isbx/isbc_218a.h +++ b/src/devices/bus/isbx/isbc_218a.h @@ -32,11 +32,11 @@ class isbc_218a_device : public device_t, 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; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; // device_isbx_card_interface overrides virtual uint8_t mcs0_r(offs_t offset) override; diff --git a/src/devices/bus/isbx/isbx.h b/src/devices/bus/isbx/isbx.h index 7301f96dcc2..527474e4bbc 100644 --- a/src/devices/bus/isbx/isbx.h +++ b/src/devices/bus/isbx/isbx.h @@ -113,7 +113,7 @@ class isbx_slot_device : public device_t, public device_single_card_slot_interfa protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; devcb_write_line m_write_mintr0; devcb_write_line m_write_mintr1; diff --git a/src/devices/bus/jakks_gamekey/rom.h b/src/devices/bus/jakks_gamekey/rom.h index efd9f8d9c7b..fe43b90cdad 100644 --- a/src/devices/bus/jakks_gamekey/rom.h +++ b/src/devices/bus/jakks_gamekey/rom.h @@ -66,7 +66,7 @@ class jakks_gamekey_rom_i2c_24lc04_device : public jakks_gamekey_rom_i2c_base_de jakks_gamekey_rom_i2c_24lc04_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 void device_add_mconfig(machine_config &config) override ATTR_COLD; }; // device type definition diff --git a/src/devices/bus/jakks_gamekey/slot.h b/src/devices/bus/jakks_gamekey/slot.h index 15ff833eaf0..5dc328ce853 100644 --- a/src/devices/bus/jakks_gamekey/slot.h +++ b/src/devices/bus/jakks_gamekey/slot.h @@ -93,7 +93,7 @@ class jakks_gamekey_slot_device : public device_t, protected: // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; int m_type; device_jakks_gamekey_interface *m_cart; diff --git a/src/devices/bus/kc/d002.h b/src/devices/bus/kc/d002.h index 4c8d50108ac..08685641c1f 100644 --- a/src/devices/bus/kc/d002.h +++ b/src/devices/bus/kc/d002.h @@ -23,12 +23,12 @@ class kc_d002_device : 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; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; // kcexp_interface overrides virtual void read(offs_t offset, uint8_t &data) override; diff --git a/src/devices/bus/kc/d004.h b/src/devices/bus/kc/d004.h index d4494632511..037becfb757 100644 --- a/src/devices/bus/kc/d004.h +++ b/src/devices/bus/kc/d004.h @@ -32,12 +32,12 @@ class kc_d004_device : kc_d004_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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; // 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; // kcexp_interface overrides virtual uint8_t module_id_r() override { return 0xa7; } @@ -59,8 +59,8 @@ class kc_d004_device : void fdc_irq(int state); - void kc_d004_io(address_map &map); - void kc_d004_mem(address_map &map); + void kc_d004_io(address_map &map) ATTR_COLD; + void kc_d004_mem(address_map &map) ATTR_COLD; required_device m_fdc; required_device m_floppy0; @@ -93,11 +93,11 @@ class kc_d004_gide_device : protected: // device-level overrides - virtual void device_reset() override; + 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; private: required_device m_ata; @@ -108,7 +108,7 @@ class kc_d004_gide_device : uint8_t gide_r(offs_t offset); void gide_w(offs_t offset, uint8_t data); - void kc_d004_gide_io(address_map &map); + void kc_d004_gide_io(address_map &map) ATTR_COLD; }; // device type definition diff --git a/src/devices/bus/kc/kc.h b/src/devices/bus/kc/kc.h index c7cd81287a4..37cb6ee8f2a 100644 --- a/src/devices/bus/kc/kc.h +++ b/src/devices/bus/kc/kc.h @@ -85,7 +85,7 @@ class kcexp_slot_device : public device_t, public device_single_card_slot_interf // device-level overrides virtual void device_validity_check(validity_checker &valid) const override; - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; device_kcexp_interface* m_cart; diff --git a/src/devices/bus/kc/ram.h b/src/devices/bus/kc/ram.h index bf30ce1a83f..6ef138a477e 100644 --- a/src/devices/bus/kc/ram.h +++ b/src/devices/bus/kc/ram.h @@ -25,8 +25,8 @@ class kc_m011_device : kc_m011_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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; // kcexp_interface overrides virtual uint8_t module_id_r() override { return 0xf6; } @@ -84,7 +84,7 @@ class kc_m032_device : protected: // device-level overrides - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; // kcexp_interface overrides virtual uint8_t module_id_r() override { return 0x79; } @@ -109,7 +109,7 @@ class kc_m034_device : protected: // device-level overrides - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; // kcexp_interface overrides virtual uint8_t module_id_r() override { return 0x7a; } @@ -156,7 +156,7 @@ class kc_m036_device : protected: // device-level overrides - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; // kcexp_interface overrides virtual uint8_t module_id_r() override { return 0x78; } diff --git a/src/devices/bus/kc/rom.h b/src/devices/bus/kc/rom.h index 44556948a02..bc7fe31cff7 100644 --- a/src/devices/bus/kc/rom.h +++ b/src/devices/bus/kc/rom.h @@ -25,9 +25,9 @@ class kc_8k_device : kc_8k_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // device-level overrides - virtual void device_start() override; - virtual void device_reset() 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 const tiny_rom_entry *device_rom_region() const override ATTR_COLD; // kcexp_interface overrides virtual uint8_t module_id_r() override { return 0xfb; } @@ -75,7 +75,7 @@ class kc_m033_device : protected: // device-level overrides - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; // kcexp_interface overrides virtual uint8_t module_id_r() override { return 0x01; } diff --git a/src/devices/bus/kim1/k1008_vismem.cpp b/src/devices/bus/kim1/k1008_vismem.cpp index 3239b58950c..e487e193f80 100644 --- a/src/devices/bus/kim1/k1008_vismem.cpp +++ b/src/devices/bus/kim1/k1008_vismem.cpp @@ -33,10 +33,10 @@ class kim1bus_k1008_device: kim1bus_k1008_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - virtual void device_start() override; - virtual void device_reset() override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() 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 ioport_constructor device_input_ports() const override ATTR_COLD; private: u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); diff --git a/src/devices/bus/kim1/k1016_16k.cpp b/src/devices/bus/kim1/k1016_16k.cpp index 426b9a6e3ed..c1ec6051d31 100644 --- a/src/devices/bus/kim1/k1016_16k.cpp +++ b/src/devices/bus/kim1/k1016_16k.cpp @@ -22,7 +22,7 @@ class kim1bus_k1016_device: kim1bus_k1016_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: std::unique_ptr m_ram; diff --git a/src/devices/bus/kim1/kim1bus.h b/src/devices/bus/kim1/kim1bus.h index 7465a2e7441..78ca273cc47 100644 --- a/src/devices/bus/kim1/kim1bus.h +++ b/src/devices/bus/kim1/kim1bus.h @@ -116,8 +116,8 @@ class kim1bus_slot_device : public device_t, public device_single_card_slot_inte kim1bus_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 m_kim1bus; @@ -155,8 +155,8 @@ class kim1bus_device : public device_t kim1bus_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; diff --git a/src/devices/bus/lpci/cirrus.h b/src/devices/bus/lpci/cirrus.h index 9f158a79178..409a6fcfa8b 100644 --- a/src/devices/bus/lpci/cirrus.h +++ b/src/devices/bus/lpci/cirrus.h @@ -32,8 +32,8 @@ class pci_cirrus_svga_device : public device_t, public pci_device_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; required_device m_vga; }; diff --git a/src/devices/bus/lpci/i82371ab.h b/src/devices/bus/lpci/i82371ab.h index 5080c135145..f3fdd626f70 100644 --- a/src/devices/bus/lpci/i82371ab.h +++ b/src/devices/bus/lpci/i82371ab.h @@ -32,8 +32,8 @@ class i82371ab_device : public southbridge_extended_device, 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; uint32_t pci_isa_r(device_t *busdevice, int offset, uint32_t mem_mask); void pci_isa_w(device_t *busdevice, int offset, uint32_t data, uint32_t mem_mask); diff --git a/src/devices/bus/lpci/i82371sb.h b/src/devices/bus/lpci/i82371sb.h index 1b70d33857b..e0e9fadfe88 100644 --- a/src/devices/bus/lpci/i82371sb.h +++ b/src/devices/bus/lpci/i82371sb.h @@ -37,8 +37,8 @@ class i82371sb_device : public southbridge_device, public pci_device_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 port80_debug_write(uint8_t value) override; uint32_t pci_isa_r(device_t *busdevice, int offset, uint32_t mem_mask); diff --git a/src/devices/bus/lpci/i82439tx.h b/src/devices/bus/lpci/i82439tx.h index b8dbc392e90..3918730d571 100644 --- a/src/devices/bus/lpci/i82439tx.h +++ b/src/devices/bus/lpci/i82439tx.h @@ -33,8 +33,8 @@ class i82439tx_device : public northbridge_device, public pci_device_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; void i82439tx_configure_memory(uint8_t val, offs_t begin, offs_t end); void update_smram_mappings(); diff --git a/src/devices/bus/lpci/mpc105.h b/src/devices/bus/lpci/mpc105.h index e469168189d..f14316e3ce2 100644 --- a/src/devices/bus/lpci/mpc105.h +++ b/src/devices/bus/lpci/mpc105.h @@ -36,8 +36,8 @@ class mpc105_device : public device_t, 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; void update_memory(); diff --git a/src/devices/bus/lpci/northbridge.h b/src/devices/bus/lpci/northbridge.h index 36282d93a9c..bdd4d2840bf 100644 --- a/src/devices/bus/lpci/northbridge.h +++ b/src/devices/bus/lpci/northbridge.h @@ -25,8 +25,8 @@ class northbridge_device : public device_t northbridge_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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; required_device m_cpu; required_device m_ram; diff --git a/src/devices/bus/lpci/pci.h b/src/devices/bus/lpci/pci.h index f962ddd6ff7..ab96eb3de74 100644 --- a/src/devices/bus/lpci/pci.h +++ b/src/devices/bus/lpci/pci.h @@ -58,7 +58,7 @@ class pci_connector_device : public device_t, pci_device_interface *get_device(); protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; }; DECLARE_DEVICE_TYPE(PCI_CONNECTOR, pci_connector_device) @@ -89,8 +89,8 @@ class pci_bus_device : public device_t 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 device_post_load() override; private: diff --git a/src/devices/bus/lpci/southbridge.h b/src/devices/bus/lpci/southbridge.h index 2ea3a60a2ba..aa0273283e3 100644 --- a/src/devices/bus/lpci/southbridge.h +++ b/src/devices/bus/lpci/southbridge.h @@ -45,11 +45,11 @@ class southbridge_device : southbridge_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; // 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 port80_debug_write(uint8_t value) {} required_device m_maincpu; @@ -149,11 +149,11 @@ class southbridge_extended_device : southbridge_extended_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; // 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; required_device m_keybc; required_device m_ds12885; required_device m_pc_kbdc; diff --git a/src/devices/bus/lpci/vt82c505.h b/src/devices/bus/lpci/vt82c505.h index bbe790781d2..0450d29eced 100644 --- a/src/devices/bus/lpci/vt82c505.h +++ b/src/devices/bus/lpci/vt82c505.h @@ -22,8 +22,8 @@ class vt82c505_device : public device_t, public pci_device_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; private: uint16_t m_window_addr[3]; diff --git a/src/devices/bus/m5/slot.h b/src/devices/bus/m5/slot.h index afd727eed60..8beacec422e 100644 --- a/src/devices/bus/m5/slot.h +++ b/src/devices/bus/m5/slot.h @@ -101,7 +101,7 @@ class m5_cart_slot_device : public device_t, protected: // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; int m_type; device_m5_cart_interface *m_cart; diff --git a/src/devices/bus/mackbd/mackbd.h b/src/devices/bus/mackbd/mackbd.h index bd1de2f0225..bfdd8397640 100644 --- a/src/devices/bus/mackbd/mackbd.h +++ b/src/devices/bus/mackbd/mackbd.h @@ -49,7 +49,7 @@ class mac_keyboard_port_device : public device_t, public device_single_card_slot void data_w(int state); protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: devcb_write_line m_clock_cb; diff --git a/src/devices/bus/macpds/hyperdrive.h b/src/devices/bus/macpds/hyperdrive.h index d8bc4bc5883..a3ff16b2c4c 100644 --- a/src/devices/bus/macpds/hyperdrive.h +++ b/src/devices/bus/macpds/hyperdrive.h @@ -29,12 +29,12 @@ class macpds_hyperdrive_device : macpds_hyperdrive_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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; // 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 m_hdc; diff --git a/src/devices/bus/macpds/macpds.h b/src/devices/bus/macpds/macpds.h index aeb860af7e7..3a2979d3f35 100644 --- a/src/devices/bus/macpds/macpds.h +++ b/src/devices/bus/macpds/macpds.h @@ -48,7 +48,7 @@ class macpds_slot_device : public device_t, public device_slot_interface macpds_slot_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // configuration required_device m_macpds; @@ -88,8 +88,8 @@ class macpds_device : public device_t macpds_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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; // internal state required_device m_maincpu; diff --git a/src/devices/bus/macpds/pds_tpdfpd.h b/src/devices/bus/macpds/pds_tpdfpd.h index 3b9fd803c7e..048c7057c90 100644 --- a/src/devices/bus/macpds/pds_tpdfpd.h +++ b/src/devices/bus/macpds/pds_tpdfpd.h @@ -26,12 +26,12 @@ class macpds_sedisplay_device : macpds_sedisplay_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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; // 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; private: uint16_t sedisplay_r(offs_t offset); diff --git a/src/devices/bus/mc10/mc10_cart.h b/src/devices/bus/mc10/mc10_cart.h index 29b69d0841d..e726647bdd0 100644 --- a/src/devices/bus/mc10/mc10_cart.h +++ b/src/devices/bus/mc10/mc10_cart.h @@ -64,7 +64,7 @@ class mc10cart_slot_device final : public device_t, protected: // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; required_address_space m_memspace; diff --git a/src/devices/bus/mc10/mcx128.cpp b/src/devices/bus/mc10/mcx128.cpp index f486f6c19e5..58c3e5c4543 100644 --- a/src/devices/bus/mc10/mcx128.cpp +++ b/src/devices/bus/mc10/mcx128.cpp @@ -72,24 +72,24 @@ class mc10_pak_mcx128_device : protected: // 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; - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; u8 control_register_read(offs_t offset); void control_register_write(offs_t offset, u8 data); void write_ram_mirror(address_space &space, offs_t offset, u8 data); - void view_map0(address_map &map); - void view_map1(address_map &map); - void view_map2(address_map &map); - void view_map3(address_map &map); - void view_map4(address_map &map); - void view_map5(address_map &map); - void view_map6(address_map &map); - void view_map7(address_map &map); + void view_map0(address_map &map) ATTR_COLD; + void view_map1(address_map &map) ATTR_COLD; + void view_map2(address_map &map) ATTR_COLD; + void view_map3(address_map &map) ATTR_COLD; + void view_map4(address_map &map) ATTR_COLD; + void view_map5(address_map &map) ATTR_COLD; + void view_map6(address_map &map) ATTR_COLD; + void view_map7(address_map &map) ATTR_COLD; private: diff --git a/src/devices/bus/mc10/multiports_ext.cpp b/src/devices/bus/mc10/multiports_ext.cpp index 5b4cf92c30a..f5f94c466ee 100644 --- a/src/devices/bus/mc10/multiports_ext.cpp +++ b/src/devices/bus/mc10/multiports_ext.cpp @@ -47,12 +47,12 @@ class mc10_multiports_ext_device : public device_t, public device_mc10cart_inter mc10_multiports_ext_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 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; void control_register_write(offs_t offset, u8 data); - void multiports_mem(address_map &map); + void multiports_mem(address_map &map) ATTR_COLD; private: memory_bank_creator m_bank; diff --git a/src/devices/bus/mc10/pak.cpp b/src/devices/bus/mc10/pak.cpp index 14540197dd5..aa41f9079b2 100644 --- a/src/devices/bus/mc10/pak.cpp +++ b/src/devices/bus/mc10/pak.cpp @@ -36,7 +36,7 @@ class mc10_pak_device : mc10_pak_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; }; //************************************************************************** diff --git a/src/devices/bus/mc10/ram.cpp b/src/devices/bus/mc10/ram.cpp index 7f66e199d9a..e98657f75f9 100644 --- a/src/devices/bus/mc10/ram.cpp +++ b/src/devices/bus/mc10/ram.cpp @@ -35,7 +35,7 @@ namespace protected: // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: memory_share_creator m_share; }; diff --git a/src/devices/bus/mc68000/floppy.h b/src/devices/bus/mc68000/floppy.h index e516e83cde5..1ca97aa90e2 100644 --- a/src/devices/bus/mc68000/floppy.h +++ b/src/devices/bus/mc68000/floppy.h @@ -27,9 +27,9 @@ class mc68000_floppy_device : public device_t, public device_mc68000_sysbus_card protected: // device_t implementation - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: required_device m_fdc; diff --git a/src/devices/bus/mc68000/ram.h b/src/devices/bus/mc68000/ram.h index da1bef87f67..8b4ed5729e4 100644 --- a/src/devices/bus/mc68000/ram.h +++ b/src/devices/bus/mc68000/ram.h @@ -25,8 +25,8 @@ class mc68000_ram_device : public device_t, public device_mc68000_sysbus_card_in protected: // 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; private: std::unique_ptr m_ram; diff --git a/src/devices/bus/mc68000/sysbus.h b/src/devices/bus/mc68000/sysbus.h index 2d9af7d87f8..ad8cea51776 100644 --- a/src/devices/bus/mc68000/sysbus.h +++ b/src/devices/bus/mc68000/sysbus.h @@ -90,7 +90,7 @@ class mc68000_sysbus_device : public device_t protected: // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: device_mc68000_sysbus_card_interface *m_device_list[8]; @@ -131,8 +131,8 @@ class mc68000_sysbus_slot_device : public device_t, public device_single_card_sl mc68000_sysbus_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; }; // device type definition diff --git a/src/devices/bus/megadrive/eeprom.h b/src/devices/bus/megadrive/eeprom.h index 7f5b0e450a4..729f9c338db 100644 --- a/src/devices/bus/megadrive/eeprom.h +++ b/src/devices/bus/megadrive/eeprom.h @@ -26,9 +26,9 @@ class md_std_eeprom_device : public device_t, md_std_eeprom_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // device-level overrides - 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; // reading and writing virtual uint16_t read(offs_t offset) override; @@ -48,7 +48,7 @@ class md_eeprom_nbajam_device : public md_std_eeprom_device protected: // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; // reading and writing virtual uint16_t read(offs_t offset) override; @@ -65,7 +65,7 @@ class md_eeprom_nbajamte_device : public md_std_eeprom_device protected: // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; // reading and writing virtual uint16_t read(offs_t offset) override; @@ -82,7 +82,7 @@ class md_eeprom_cslam_device : public md_std_eeprom_device protected: // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; // reading and writing virtual uint16_t read(offs_t offset) override; @@ -99,7 +99,7 @@ class md_eeprom_nflqb_device : public md_std_eeprom_device protected: // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; // reading and writing virtual uint16_t read(offs_t offset) override; @@ -116,7 +116,7 @@ class md_eeprom_nhlpa_device : public md_std_eeprom_device protected: // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; // reading and writing virtual uint16_t read(offs_t offset) override; @@ -133,7 +133,7 @@ class md_eeprom_blara_device : public md_std_eeprom_device protected: // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; // reading and writing virtual uint16_t read(offs_t offset) override; @@ -150,7 +150,7 @@ class md_eeprom_mode1_device : public md_std_eeprom_device protected: // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; @@ -193,7 +193,7 @@ class md_eeprom_nbajam_alt_device : public md_std_eeprom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: void eeprom_i2c_init(); diff --git a/src/devices/bus/megadrive/ggenie.h b/src/devices/bus/megadrive/ggenie.h index 025f97fac7f..e72df698cc8 100644 --- a/src/devices/bus/megadrive/ggenie.h +++ b/src/devices/bus/megadrive/ggenie.h @@ -18,11 +18,11 @@ class md_rom_ggenie_device : public device_t, md_rom_ggenie_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; // reading and writing virtual uint16_t read(offs_t offset) override; diff --git a/src/devices/bus/megadrive/jcart.h b/src/devices/bus/megadrive/jcart.h index 25916f5f4a5..768abf8c7bc 100644 --- a/src/devices/bus/megadrive/jcart.h +++ b/src/devices/bus/megadrive/jcart.h @@ -27,10 +27,10 @@ class md_jcart_device : public device_t, protected: md_jcart_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_resolve_objects() override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_resolve_objects() override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: template void th_in(int state); @@ -50,11 +50,11 @@ class md_seprom_codemast_device : public md_jcart_device protected: md_seprom_codemast_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; // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; // reading and writing virtual uint16_t read(offs_t offset) override; @@ -76,7 +76,7 @@ class md_seprom_mm96_device : public md_seprom_codemast_device protected: // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; diff --git a/src/devices/bus/megadrive/md_slot.h b/src/devices/bus/megadrive/md_slot.h index 020ebb0baed..82c8b09e8af 100644 --- a/src/devices/bus/megadrive/md_slot.h +++ b/src/devices/bus/megadrive/md_slot.h @@ -198,7 +198,7 @@ class base_md_cart_slot_device : public device_t, base_md_cart_slot_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; }; // ======================> md_cart_slot_device diff --git a/src/devices/bus/megadrive/rom.h b/src/devices/bus/megadrive/rom.h index 0acf73061ee..b98469d3155 100644 --- a/src/devices/bus/megadrive/rom.h +++ b/src/devices/bus/megadrive/rom.h @@ -89,8 +89,8 @@ class md_rom_ssf2_device : public md_std_rom_device 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; private: uint8_t m_bank[16]; @@ -110,8 +110,8 @@ class md_rom_cm2in1_device : public md_std_rom_device 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; private: int m_base; @@ -132,8 +132,8 @@ class md_rom_mcpirate_device : public md_std_rom_device 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; private: uint8_t m_bank; @@ -166,8 +166,8 @@ class md_rom_chinf3_device : public md_std_rom_device 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; private: int m_bank; @@ -247,8 +247,8 @@ class md_rom_lion2_device : public md_std_rom_device 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; private: uint16_t m_prot1_data, m_prot2_data; @@ -268,8 +268,8 @@ class md_rom_lion3_device : public md_std_rom_device 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; private: uint8_t m_reg[3]; @@ -326,8 +326,8 @@ class md_rom_pokestad_device : public md_std_rom_device 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; private: uint8_t m_bank; @@ -347,8 +347,8 @@ class md_rom_realtec_device : public md_std_rom_device 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; private: uint16_t m_bank_addr, m_bank_size, m_old_bank_addr; @@ -428,8 +428,8 @@ class md_rom_smw64_device : public md_std_rom_device 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; private: uint32_t m_latch0, m_latch1; @@ -476,8 +476,8 @@ class md_rom_squir_device : public md_std_rom_device 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; private: uint16_t m_latch; @@ -497,8 +497,8 @@ class md_rom_tc2000_device : public md_std_rom_device 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; private: uint16_t m_retvalue; @@ -519,8 +519,8 @@ class md_rom_tekkensp_device : public md_std_rom_device 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; private: uint16_t m_reg; @@ -540,8 +540,8 @@ class md_rom_topf_device : public md_std_rom_device 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; private: uint16_t m_latch; @@ -562,8 +562,8 @@ class md_rom_radica_device : public md_std_rom_device 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; private: uint8_t m_bank; @@ -584,8 +584,8 @@ class md_rom_beggarp_device : public md_std_rom_device 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; private: uint8_t m_mode, m_lock; @@ -606,8 +606,8 @@ class md_rom_wukong_device : public md_std_rom_device 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; private: uint8_t m_mode; @@ -629,8 +629,8 @@ class md_rom_starodys_device : public md_std_rom_device 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; private: uint8_t m_mode, m_lock, m_ram_enable, m_base; diff --git a/src/devices/bus/megadrive/sk.h b/src/devices/bus/megadrive/sk.h index c51abce9430..5f56c6c00a7 100644 --- a/src/devices/bus/megadrive/sk.h +++ b/src/devices/bus/megadrive/sk.h @@ -20,11 +20,11 @@ class md_rom_sk_device : public device_t, protected: md_rom_sk_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; // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; // reading and writing virtual uint16_t read(offs_t offset) override; diff --git a/src/devices/bus/megadrive/stm95.h b/src/devices/bus/megadrive/stm95.h index c04651d742c..fd944bb13f8 100644 --- a/src/devices/bus/megadrive/stm95.h +++ b/src/devices/bus/megadrive/stm95.h @@ -72,8 +72,8 @@ class md_eeprom_stm95_device : public device_t, public device_md_cart_interface md_eeprom_stm95_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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; private: uint8_t m_bank[3]; diff --git a/src/devices/bus/megadrive/svp.h b/src/devices/bus/megadrive/svp.h index 84d65b90a33..ed562dfed68 100644 --- a/src/devices/bus/megadrive/svp.h +++ b/src/devices/bus/megadrive/svp.h @@ -22,12 +22,12 @@ class md_rom_svp_device : public device_t, protected: md_rom_svp_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_start() override ATTR_COLD; // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; - virtual tiny_rom_entry const *device_rom_region() const override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual tiny_rom_entry const *device_rom_region() const override ATTR_COLD; virtual void set_bank_to_rom(const char *banktag, uint32_t offset) override; @@ -72,8 +72,8 @@ class md_rom_svp_device : public device_t, uint8_t m_iram[0x800]; // IRAM (0-0x7ff) uint8_t m_dram[0x20000]; // [0x20000]; - void md_svp_ext_map(address_map &map); - void md_svp_ssp_map(address_map &map); + void md_svp_ext_map(address_map &map) ATTR_COLD; + void md_svp_ssp_map(address_map &map) ATTR_COLD; }; diff --git a/src/devices/bus/midi/midi.h b/src/devices/bus/midi/midi.h index 3479271a11f..03673ce8a4d 100644 --- a/src/devices/bus/midi/midi.h +++ b/src/devices/bus/midi/midi.h @@ -33,7 +33,7 @@ class midi_port_device : public device_t, public device_single_card_slot_interfa int rx_r() { return m_rxd; } protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void device_config_complete() override; void common(machine_config &config); diff --git a/src/devices/bus/midi/midiinport.h b/src/devices/bus/midi/midiinport.h index e373002f47f..c54396b925c 100644 --- a/src/devices/bus/midi/midiinport.h +++ b/src/devices/bus/midi/midiinport.h @@ -23,7 +23,7 @@ class midiin_port_device : public device_t, midiin_port_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 void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual void device_start() override { m_owner = dynamic_cast(owner()); } virtual void device_reset() override { } diff --git a/src/devices/bus/midi/midioutport.h b/src/devices/bus/midi/midioutport.h index c675ecc086f..e0560c0e36c 100644 --- a/src/devices/bus/midi/midioutport.h +++ b/src/devices/bus/midi/midioutport.h @@ -27,7 +27,7 @@ class midiout_port_device : public device_t, protected: virtual void device_start() override { } virtual void device_reset() override { } - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: required_device m_midiout; diff --git a/src/devices/bus/mononcol/rom.h b/src/devices/bus/mononcol/rom.h index 7184a8d8469..7a0230e334c 100644 --- a/src/devices/bus/mononcol/rom.h +++ b/src/devices/bus/mononcol/rom.h @@ -29,8 +29,8 @@ class mononcol_rom_plain_device : public device_t, public device_mononcol_cart_i mononcol_rom_plain_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // device_t implementation - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; private: required_device m_spi; diff --git a/src/devices/bus/mpf1/slot.h b/src/devices/bus/mpf1/slot.h index 7e2c338d361..28e6cc08ff4 100644 --- a/src/devices/bus/mpf1/slot.h +++ b/src/devices/bus/mpf1/slot.h @@ -84,7 +84,7 @@ class mpf1_exp_device : public device_t, public device_single_card_slot_interfac protected: // device-level overrides virtual void device_config_complete() override; - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; required_address_space m_program; required_address_space m_io; diff --git a/src/devices/bus/msx/cart/arc.cpp b/src/devices/bus/msx/cart/arc.cpp index db1a3dd86c6..89508f853a9 100644 --- a/src/devices/bus/msx/cart/arc.cpp +++ b/src/devices/bus/msx/cart/arc.cpp @@ -18,8 +18,8 @@ class msx_cart_arc_device : public device_t, public msx_cart_interface protected: // 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; private: void io_7f_w(u8 data); diff --git a/src/devices/bus/msx/cart/ascii.cpp b/src/devices/bus/msx/cart/ascii.cpp index 359b7f479e5..9beb17197fc 100644 --- a/src/devices/bus/msx/cart/ascii.cpp +++ b/src/devices/bus/msx/cart/ascii.cpp @@ -20,7 +20,7 @@ class msx_cart_ascii8_device : public device_t, public msx_cart_interface protected: // device_t implementation virtual void device_start() override { } - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; private: static constexpr size_t BANK_SIZE = 0x2000; @@ -94,7 +94,7 @@ class msx_cart_ascii16_device : public device_t, public msx_cart_interface protected: // device_t implementation virtual void device_start() override { } - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; private: static constexpr size_t BANK_SIZE = 0x4000; @@ -168,7 +168,7 @@ class msx_cart_ascii8_sram_device : public device_t, public msx_cart_interface protected: // device_t implementation virtual void device_start() override { } - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; private: static constexpr size_t BANK_SIZE = 0x2000; @@ -274,7 +274,7 @@ class msx_cart_ascii16_sram_device : public device_t, public msx_cart_interface protected: // device_t implementation virtual void device_start() override { } - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; private: static constexpr size_t BANK_SIZE = 0x4000; diff --git a/src/devices/bus/msx/cart/beepack.h b/src/devices/bus/msx/cart/beepack.h index e904c2c4458..1681ea92aea 100644 --- a/src/devices/bus/msx/cart/beepack.h +++ b/src/devices/bus/msx/cart/beepack.h @@ -29,9 +29,9 @@ class msx_cart_beepack_device : public device_t virtual const char *file_extensions() const noexcept override { return "bin,rom"; } protected: - virtual void device_resolve_objects() override; + virtual void device_resolve_objects() override ATTR_COLD; virtual void device_start() override { } - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual std::string get_default_card_software(get_default_card_software_hook &hook) const override; bee_card_interface *m_beecard; diff --git a/src/devices/bus/msx/cart/bm_012.cpp b/src/devices/bus/msx/cart/bm_012.cpp index d2a77da4bdb..a035f9bee2a 100644 --- a/src/devices/bus/msx/cart/bm_012.cpp +++ b/src/devices/bus/msx/cart/bm_012.cpp @@ -35,14 +35,14 @@ class msx_cart_bm_012_device : public device_t, public msx_cart_interface protected: // device_t implementation - virtual void device_start() 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_add_mconfig(machine_config &config) override ATTR_COLD; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; private: void midi_in(int state); - void bm_012_memory_map(address_map &map); + void bm_012_memory_map(address_map &map) ATTR_COLD; required_device m_tmpz84c015af; required_device m_bm012_pio; diff --git a/src/devices/bus/msx/cart/disk.cpp b/src/devices/bus/msx/cart/disk.cpp index 88449c413bf..50cdbc3b74d 100644 --- a/src/devices/bus/msx/cart/disk.cpp +++ b/src/devices/bus/msx/cart/disk.cpp @@ -321,7 +321,7 @@ class disk_type1_device : public disk_wd_device { } // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void device_post_load() override; u8 side_control_r(); @@ -598,7 +598,7 @@ class disk_type2_device : public disk_wd_device { } // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void device_post_load() override; void set_control(u8 data); @@ -732,7 +732,7 @@ class disk_type5_device : public disk_wd_device { } // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void device_post_load() override; void control_w(u8 control); @@ -893,8 +893,8 @@ class fd03_device : public disk_wd_device protected: // device_t implementation - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; virtual void device_post_load() override; u8 status_r(); @@ -1044,8 +1044,8 @@ class hxf101pe_device : public disk_wd_device protected: // device_t implementation - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; virtual void device_post_load() override; void set_side_motor(); @@ -1197,8 +1197,8 @@ class mfd001_device : public disk_wd_device protected: // device_t implementation - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; virtual void device_post_load() override; void set_side_motor(); @@ -1300,8 +1300,8 @@ class avdpf550_device : public disk_wd_device protected: // device_t implementation - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; virtual void device_post_load() override; void control_w(u8 control); diff --git a/src/devices/bus/msx/cart/dooly.cpp b/src/devices/bus/msx/cart/dooly.cpp index b01baf35bf2..d034ba8a891 100644 --- a/src/devices/bus/msx/cart/dooly.cpp +++ b/src/devices/bus/msx/cart/dooly.cpp @@ -19,7 +19,7 @@ class msx_cart_dooly_device : public device_t, public msx_cart_interface protected: // device_t implementation virtual void device_start() override { } - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; private: void prot_w(u8 data); diff --git a/src/devices/bus/msx/cart/easi_speech.cpp b/src/devices/bus/msx/cart/easi_speech.cpp index 8b9b1f087f3..ff753a39e9d 100644 --- a/src/devices/bus/msx/cart/easi_speech.cpp +++ b/src/devices/bus/msx/cart/easi_speech.cpp @@ -35,8 +35,8 @@ class msx_cart_easispeech_device : public device_t, public msx_cart_interface protected: // device_t implementation virtual void device_start() override { } - 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: u8 speech_r(); diff --git a/src/devices/bus/msx/cart/fmpac.cpp b/src/devices/bus/msx/cart/fmpac.cpp index b9251656f0a..ae5d67825c2 100644 --- a/src/devices/bus/msx/cart/fmpac.cpp +++ b/src/devices/bus/msx/cart/fmpac.cpp @@ -35,11 +35,11 @@ class msx_cart_fmpac_device : public device_t, public msx_cart_interface virtual std::error_condition initialize_cartridge(std::string &message) override; protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; // device_t implementation - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: void write_ym2413(offs_t offset, u8 data); diff --git a/src/devices/bus/msx/cart/franky.cpp b/src/devices/bus/msx/cart/franky.cpp index 0ed7d73d27e..525bebafda4 100644 --- a/src/devices/bus/msx/cart/franky.cpp +++ b/src/devices/bus/msx/cart/franky.cpp @@ -27,10 +27,10 @@ class msx_cart_franky_device : public device_t, public msx_cart_interface { } protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_t implementation - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); diff --git a/src/devices/bus/msx/cart/fs_sr021.cpp b/src/devices/bus/msx/cart/fs_sr021.cpp index 49a69efe4ff..016b8cd1993 100644 --- a/src/devices/bus/msx/cart/fs_sr021.cpp +++ b/src/devices/bus/msx/cart/fs_sr021.cpp @@ -28,8 +28,8 @@ class msx_cart_fs_sr021_device : public device_t, public msx_cart_interface protected: // 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; private: static constexpr size_t BANK_SIZE = 0x2000; diff --git a/src/devices/bus/msx/cart/fs_sr022.cpp b/src/devices/bus/msx/cart/fs_sr022.cpp index 2f5bc62af58..2bce81db442 100644 --- a/src/devices/bus/msx/cart/fs_sr022.cpp +++ b/src/devices/bus/msx/cart/fs_sr022.cpp @@ -19,8 +19,8 @@ class msx_cart_fs_sr022_device : public device_t, public msx_cart_interface protected: // 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; private: u8 buns_r(); diff --git a/src/devices/bus/msx/cart/halnote.cpp b/src/devices/bus/msx/cart/halnote.cpp index cc9c5dcfca3..ffe6d883b16 100644 --- a/src/devices/bus/msx/cart/halnote.cpp +++ b/src/devices/bus/msx/cart/halnote.cpp @@ -20,7 +20,7 @@ class msx_cart_halnote_device : public device_t, public msx_cart_interface protected: // device_t implementation virtual void device_start() override { } - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; private: static constexpr u8 BANK_MASK = (0x100000 / 0x2000) - 1; diff --git a/src/devices/bus/msx/cart/hbi55.cpp b/src/devices/bus/msx/cart/hbi55.cpp index b779a2dede0..22ee16d92f9 100644 --- a/src/devices/bus/msx/cart/hbi55.cpp +++ b/src/devices/bus/msx/cart/hbi55.cpp @@ -37,9 +37,9 @@ class msx_cart_hbi55_device : public device_t, public msx_cart_interface, public { } protected: - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; virtual bool is_reset_on_load() const noexcept override { return false; } virtual char const *file_extensions() const noexcept override { return "bin"; } virtual std::pair call_create(int format_type, util::option_resolution *format_options) override; diff --git a/src/devices/bus/msx/cart/hfox.cpp b/src/devices/bus/msx/cart/hfox.cpp index 80c25bd86e3..7963df4cdbc 100644 --- a/src/devices/bus/msx/cart/hfox.cpp +++ b/src/devices/bus/msx/cart/hfox.cpp @@ -19,7 +19,7 @@ class msx_cart_hfox_device : public device_t, public msx_cart_interface protected: // device_t implementation virtual void device_start() override { } - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; private: template void bank_w(u8 data); diff --git a/src/devices/bus/msx/cart/holy_quran.cpp b/src/devices/bus/msx/cart/holy_quran.cpp index 327651ed96a..b04edb3a6b0 100644 --- a/src/devices/bus/msx/cart/holy_quran.cpp +++ b/src/devices/bus/msx/cart/holy_quran.cpp @@ -29,7 +29,7 @@ class msx_cart_holy_quran_device : public device_t, public msx_cart_interface protected: // device_t implementation virtual void device_start() override { } - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; private: static constexpr size_t BANK_SIZE = 0x2000; diff --git a/src/devices/bus/msx/cart/ide.cpp b/src/devices/bus/msx/cart/ide.cpp index a6f0c7cc9eb..8aafb248dba 100644 --- a/src/devices/bus/msx/cart/ide.cpp +++ b/src/devices/bus/msx/cart/ide.cpp @@ -36,10 +36,10 @@ class msx_cart_sunrise_ataide_device : public device_t, public msx_cart_interfac { } protected: - 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; private: required_device m_flash; diff --git a/src/devices/bus/msx/cart/ink.cpp b/src/devices/bus/msx/cart/ink.cpp index 9e008e62726..69088d4c3db 100644 --- a/src/devices/bus/msx/cart/ink.cpp +++ b/src/devices/bus/msx/cart/ink.cpp @@ -29,8 +29,8 @@ class msx_cart_ink_device : public device_t, public msx_cart_interface protected: // device_t implementation virtual void device_start() override { } - 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: required_device m_flash; diff --git a/src/devices/bus/msx/cart/kanji.cpp b/src/devices/bus/msx/cart/kanji.cpp index b544004fa93..a50fa236e18 100644 --- a/src/devices/bus/msx/cart/kanji.cpp +++ b/src/devices/bus/msx/cart/kanji.cpp @@ -32,8 +32,8 @@ class msx_cart_kanji_device : public device_t, public msx_cart_interface msx_cart_kanji_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 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; std::error_condition validate_kanji_regions(std::string &message); void install_kanji_handlers(); @@ -137,8 +137,8 @@ class msx_cart_msxwrite_device : public msx_cart_kanji_device protected: // device_t implementation - virtual void device_reset() override; - virtual ioport_constructor device_input_ports() const override; + virtual void device_reset() override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; private: static constexpr size_t BANK_SIZE = 0x4000; diff --git a/src/devices/bus/msx/cart/konami.cpp b/src/devices/bus/msx/cart/konami.cpp index 0cee367d2e5..6e0cb011326 100644 --- a/src/devices/bus/msx/cart/konami.cpp +++ b/src/devices/bus/msx/cart/konami.cpp @@ -29,7 +29,7 @@ class msx_cart_konami_device : public device_t, public msx_cart_interface protected: // device_t implementation virtual void device_start() override { } - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; private: template void bank_w(u8 data); @@ -108,9 +108,9 @@ class msx_cart_konami_scc_device : public device_t, public msx_cart_interface protected: // device_t implementation virtual void device_start() override { } - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: template void bank_w(u8 data); @@ -217,10 +217,10 @@ class msx_cart_sunrise_scc_device : public device_t, public msx_cart_interface protected: // device_t implementation virtual void device_start() override { save_item(NAME(m_selected_bank)); } - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: template u8 flash_r(offs_t offset); @@ -353,7 +353,7 @@ class msx_cart_gamemaster2_device : public device_t, public msx_cart_interface protected: // device_t implementation virtual void device_start() override { } - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; private: template void bank_w(u8 data); @@ -458,7 +458,7 @@ class msx_cart_synthesizer_device : public device_t, public msx_cart_interface // device_t implementation virtual void device_start() override { } - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: required_device m_dac; @@ -514,10 +514,10 @@ class msx_cart_konami_sound_device : public device_t, public msx_cart_interface { } // 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; - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: static constexpr u8 VIEW_READ = 0; @@ -768,9 +768,9 @@ class msx_cart_keyboard_master_device : public device_t, public msx_cart_interfa protected: // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual std::error_condition initialize_cartridge(std::string &message) override; @@ -781,7 +781,7 @@ class msx_cart_keyboard_master_device : public device_t, public msx_cart_interfa void io_20_w(uint8_t data); uint8_t io_00_r(); - void vlm_map(address_map &map); + void vlm_map(address_map &map) ATTR_COLD; }; void msx_cart_keyboard_master_device::vlm_map(address_map &map) @@ -865,7 +865,7 @@ class msx_cart_ec701_device : public device_t, public msx_cart_interface protected: // device_t implementation virtual void device_start() override { } - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; virtual std::error_condition initialize_cartridge(std::string &message) override; diff --git a/src/devices/bus/msx/cart/korean.cpp b/src/devices/bus/msx/cart/korean.cpp index cf28d2be631..73d71ec2006 100644 --- a/src/devices/bus/msx/cart/korean.cpp +++ b/src/devices/bus/msx/cart/korean.cpp @@ -21,7 +21,7 @@ class msx_cart_korean_25in1_device : public device_t, public msx_cart_interface protected: // device_t implementation virtual void device_start() override { } - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; private: void bank_w(u8 data); @@ -96,7 +96,7 @@ class msx_cart_korean_80in1_device : public device_t, public msx_cart_interface protected: // device_t implementation virtual void device_start() override { } - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; private: void bank_w(offs_t offset, u8 data); @@ -167,8 +167,8 @@ class msx_cart_korean_90in1_device : public device_t, public msx_cart_interface protected: // 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; private: void banking(u8 data); @@ -257,7 +257,7 @@ class msx_cart_korean_126in1_device : public device_t, public msx_cart_interface protected: // device_t implementation virtual void device_start() override { } - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; private: void bank_w(offs_t offset, u8 data); @@ -325,7 +325,7 @@ class msx_cart_korean_hydlide2_device : public device_t, public msx_cart_interfa protected: // device_t implementation virtual void device_start() override { } - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; private: void bank_w(u8 data); diff --git a/src/devices/bus/msx/cart/loveplus.cpp b/src/devices/bus/msx/cart/loveplus.cpp index fa29e0911dc..135d28e2cdd 100644 --- a/src/devices/bus/msx/cart/loveplus.cpp +++ b/src/devices/bus/msx/cart/loveplus.cpp @@ -24,8 +24,8 @@ class msx_cart_loveplus_device : public device_t, public msx_cart_interface protected: // 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; private: template void bank_w(u8 data); diff --git a/src/devices/bus/msx/cart/majutsushi.cpp b/src/devices/bus/msx/cart/majutsushi.cpp index 988bec33b11..654b185f75a 100644 --- a/src/devices/bus/msx/cart/majutsushi.cpp +++ b/src/devices/bus/msx/cart/majutsushi.cpp @@ -26,7 +26,7 @@ class msx_cart_majutsushi_device : public device_t, public msx_cart_interface // device_t implementation virtual void device_start() override { } - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: template void bank_w(u8 data); diff --git a/src/devices/bus/msx/cart/matra.cpp b/src/devices/bus/msx/cart/matra.cpp index d43ba9c8369..199a02462c2 100644 --- a/src/devices/bus/msx/cart/matra.cpp +++ b/src/devices/bus/msx/cart/matra.cpp @@ -20,8 +20,8 @@ class msx_cart_matra_comp_device : public device_t, public msx_cart_interface protected: // 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; private: template void bank_w(u8 data); diff --git a/src/devices/bus/msx/cart/moonsound.cpp b/src/devices/bus/msx/cart/moonsound.cpp index 8de78bf5d40..2251e0ac788 100644 --- a/src/devices/bus/msx/cart/moonsound.cpp +++ b/src/devices/bus/msx/cart/moonsound.cpp @@ -32,18 +32,18 @@ class msx_cart_moonsound_device : public device_t, public msx_cart_interface protected: // 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; - 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: void irq_w(int state); void write_ymf278b_pcm(offs_t offset, u8 data); u8 read_ymf278b_pcm(offs_t offset); u8 read_c0(); - void ymf278b_map(address_map &map); + void ymf278b_map(address_map &map) ATTR_COLD; required_device m_ymf278b; }; diff --git a/src/devices/bus/msx/cart/msx_audio.cpp b/src/devices/bus/msx/cart/msx_audio.cpp index 1baae1488a0..06231a40e07 100644 --- a/src/devices/bus/msx/cart/msx_audio.cpp +++ b/src/devices/bus/msx/cart/msx_audio.cpp @@ -87,9 +87,9 @@ class msx_cart_msx_audio_hxmu900_device : public device_t, public msx_cart_inter protected: // device_t implementation - virtual void device_start() 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_add_mconfig(machine_config &config) override ATTR_COLD; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; private: required_device m_y8950; @@ -162,9 +162,9 @@ class msx_cart_msx_audio_nms1205_device : public device_t, public msx_cart_inter protected: // device_t implementation - virtual void device_start() 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_add_mconfig(machine_config &config) override ATTR_COLD; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; private: void midi_in(int state); @@ -275,11 +275,11 @@ class msx_cart_msx_audio_fsca1_device : public device_t, public msx_cart_interfa protected: // device_t implementation - virtual void device_start() override; - virtual void device_reset() override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const 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 ioport_constructor device_input_ports() const override ATTR_COLD; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; private: void write_y8950(offs_t offset, u8 data); diff --git a/src/devices/bus/msx/cart/msx_audio_kb.cpp b/src/devices/bus/msx/cart/msx_audio_kb.cpp index 94b712a9429..b1cbc65378b 100644 --- a/src/devices/bus/msx/cart/msx_audio_kb.cpp +++ b/src/devices/bus/msx/cart/msx_audio_kb.cpp @@ -58,7 +58,7 @@ class msx_hxmu901_device : public device_t, public msx_audio_kb_port_interface { } - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; virtual u8 read() override { @@ -188,7 +188,7 @@ class msx_nms1160_device : public device_t, public msx_audio_kb_port_interface { } - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; virtual u8 read() override { diff --git a/src/devices/bus/msx/cart/msx_audio_kb.h b/src/devices/bus/msx/cart/msx_audio_kb.h index 13cf19fb70a..a5d93a8d67b 100644 --- a/src/devices/bus/msx/cart/msx_audio_kb.h +++ b/src/devices/bus/msx/cart/msx_audio_kb.h @@ -40,7 +40,7 @@ class msx_audio_kbdc_port_device : public device_t, public device_single_card_sl protected: // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; msx_audio_kb_port_interface *m_keyboard; }; diff --git a/src/devices/bus/msx/cart/msxdos2.cpp b/src/devices/bus/msx/cart/msxdos2.cpp index d502b422352..2dc969fe091 100644 --- a/src/devices/bus/msx/cart/msxdos2.cpp +++ b/src/devices/bus/msx/cart/msxdos2.cpp @@ -34,7 +34,7 @@ class msx_cart_msxdos2_base_device : public device_t, public msx_cart_interface { } virtual void device_start() override { } - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; virtual std::error_condition initialize_cartridge(std::string &message) override; void bank_w(u8 data); @@ -103,7 +103,7 @@ class msx_cart_msxdos2j_device : public msx_cart_msxdos2_base_device virtual std::error_condition initialize_cartridge(std::string &message) override; protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: u8 secondary_slot_r(); diff --git a/src/devices/bus/msx/cart/quickdisk.cpp b/src/devices/bus/msx/cart/quickdisk.cpp index 6fca9a8274b..11ce70ac2a2 100644 --- a/src/devices/bus/msx/cart/quickdisk.cpp +++ b/src/devices/bus/msx/cart/quickdisk.cpp @@ -38,7 +38,7 @@ class msx_cart_quickdisk_device : public device_t, public msx_cart_interface protected: virtual void device_start() override { } - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: required_device m_sio; diff --git a/src/devices/bus/msx/cart/ram.cpp b/src/devices/bus/msx/cart/ram.cpp index fe1b52cc2ce..022e8e6b394 100644 --- a/src/devices/bus/msx/cart/ram.cpp +++ b/src/devices/bus/msx/cart/ram.cpp @@ -252,7 +252,7 @@ class msx_cart_base_mm_ram_device : public msx_cart_base_ram_device , m_bank_mask(0) { } - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; template void bank_w(u8 data); @@ -357,8 +357,8 @@ class msx_cart_mmm_device : public msx_cart_base_mm_ram_device { } protected: - 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; private: required_device m_sn76489a; @@ -413,9 +413,9 @@ class msx_cart_double_ram_device : public msx_cart_base_mm_ram_device DECLARE_INPUT_CHANGED_MEMBER(mode_callback); protected: - virtual void device_start() override; - virtual void device_reset() override; - virtual ioport_constructor device_input_ports() const override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; private: static constexpr u8 MODE_RO = 0; diff --git a/src/devices/bus/msx/cart/scsi.cpp b/src/devices/bus/msx/cart/scsi.cpp index 9b049a89ec2..4949fb908fd 100644 --- a/src/devices/bus/msx/cart/scsi.cpp +++ b/src/devices/bus/msx/cart/scsi.cpp @@ -46,7 +46,7 @@ class msx_cart_gouda_scsi_device : public device_t, public msx_cart_interface protected: virtual void device_start() override { } - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: required_device m_wd33c93a; @@ -114,8 +114,8 @@ class msx_cart_mega_scsi_device : public device_t, public msx_cart_interface protected: virtual void device_start() override { } - virtual void device_reset() override; - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_reset() override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: static constexpr size_t BANK_SIZE = 0x2000; diff --git a/src/devices/bus/msx/cart/slotexpander.cpp b/src/devices/bus/msx/cart/slotexpander.cpp index cf3a78ce733..b2eefe5ee80 100644 --- a/src/devices/bus/msx/cart/slotexpander.cpp +++ b/src/devices/bus/msx/cart/slotexpander.cpp @@ -53,9 +53,9 @@ class msx_cart_slotexpander_device : public device_t, public msx_cart_interface { } protected: - virtual void device_start() override; - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_resolve_objects() override; + virtual void device_start() override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_resolve_objects() override ATTR_COLD; virtual void device_config_complete() override; private: diff --git a/src/devices/bus/msx/cart/softcard.h b/src/devices/bus/msx/cart/softcard.h index 122d7cec7e1..51a3e53ebb0 100644 --- a/src/devices/bus/msx/cart/softcard.h +++ b/src/devices/bus/msx/cart/softcard.h @@ -29,9 +29,9 @@ class msx_cart_softcard_device : public device_t virtual const char *file_extensions() const noexcept override { return "bin,rom"; } protected: - virtual void device_resolve_objects() override; + virtual void device_resolve_objects() override ATTR_COLD; virtual void device_start() override { } - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual std::string get_default_card_software(get_default_card_software_hook &hook) const override; softcard_interface *m_softcard; diff --git a/src/devices/bus/msx/cart/superloderunner.cpp b/src/devices/bus/msx/cart/superloderunner.cpp index 4a4813cf9bd..30523be115a 100644 --- a/src/devices/bus/msx/cart/superloderunner.cpp +++ b/src/devices/bus/msx/cart/superloderunner.cpp @@ -18,7 +18,7 @@ class msx_cart_superloderunner_device : public device_t, public msx_cart_interfa protected: // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: void bank_w(u8 data); diff --git a/src/devices/bus/msx/cart/yamaha_ucn01.cpp b/src/devices/bus/msx/cart/yamaha_ucn01.cpp index ebf9d87bf9b..2d9000390dc 100644 --- a/src/devices/bus/msx/cart/yamaha_ucn01.cpp +++ b/src/devices/bus/msx/cart/yamaha_ucn01.cpp @@ -28,8 +28,8 @@ class msx_cart_ucn01_device : public device_t, public msx_cart_interface protected: virtual void device_start() override { } - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_resolve_objects() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_resolve_objects() override ATTR_COLD; virtual void device_config_complete() override; private: diff --git a/src/devices/bus/msx/ctrl/ctrl.h b/src/devices/bus/msx/ctrl/ctrl.h index bc827c31e7e..075c00ae3af 100644 --- a/src/devices/bus/msx/ctrl/ctrl.h +++ b/src/devices/bus/msx/ctrl/ctrl.h @@ -72,7 +72,7 @@ class msx_general_purpose_port_device : public device_t bool exists() const { return m_device != nullptr; } protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; device_msx_general_purpose_port_interface *m_device; }; diff --git a/src/devices/bus/msx/ctrl/hypershot.cpp b/src/devices/bus/msx/ctrl/hypershot.cpp index f70418a7f99..1a7f7152018 100644 --- a/src/devices/bus/msx/ctrl/hypershot.cpp +++ b/src/devices/bus/msx/ctrl/hypershot.cpp @@ -39,7 +39,7 @@ class hypershot_device : public device_t, public device_msx_general_purpose_port virtual void pin_8_w(int state) override; protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual ioport_constructor device_input_ports() const override { return INPUT_PORTS_NAME(hypershot); } private: diff --git a/src/devices/bus/msx/ctrl/libbler.cpp b/src/devices/bus/msx/ctrl/libbler.cpp index 3e51b5024ca..03861b5b0a9 100644 --- a/src/devices/bus/msx/ctrl/libbler.cpp +++ b/src/devices/bus/msx/ctrl/libbler.cpp @@ -49,7 +49,7 @@ class xpd_1lr_device : public device_t, public device_msx_general_purpose_port_i virtual void pin_8_w(int state) override { m_pin8 = state ? 1 : 0; } protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual ioport_constructor device_input_ports() const override { return INPUT_PORTS_NAME(xpd_1lr); } private: diff --git a/src/devices/bus/msx/ctrl/magickey.cpp b/src/devices/bus/msx/ctrl/magickey.cpp index f515b2f39b7..04cf6204372 100644 --- a/src/devices/bus/msx/ctrl/magickey.cpp +++ b/src/devices/bus/msx/ctrl/magickey.cpp @@ -29,7 +29,7 @@ class msx_magickey_device : public device_t, public device_msx_general_purpose_p virtual void pin_8_w(int state) override { m_pin8_state = state; } protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: u8 m_pin8_state = 0; diff --git a/src/devices/bus/msx/ctrl/mouse.cpp b/src/devices/bus/msx/ctrl/mouse.cpp index f8182903d71..95155e7f421 100644 --- a/src/devices/bus/msx/ctrl/mouse.cpp +++ b/src/devices/bus/msx/ctrl/mouse.cpp @@ -35,8 +35,8 @@ class msx_mouse_device : public device_t, public device_msx_general_purpose_port virtual void pin_8_w(int state) override; protected: - 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 ioport_constructor device_input_ports() const override { return INPUT_PORTS_NAME(msx_mouse); } diff --git a/src/devices/bus/msx/ctrl/sgadapt.cpp b/src/devices/bus/msx/ctrl/sgadapt.cpp index 76101f4a3aa..1f22b3dc900 100644 --- a/src/devices/bus/msx/ctrl/sgadapt.cpp +++ b/src/devices/bus/msx/ctrl/sgadapt.cpp @@ -49,8 +49,8 @@ class sega_adapter_device : public device_t, public device_msx_general_purpose_p virtual void pin_8_w(int state) override; protected: - 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; private: required_device m_port; diff --git a/src/devices/bus/msx/ctrl/towns6b.cpp b/src/devices/bus/msx/ctrl/towns6b.cpp index 08bab6a4ac8..9f6a662d5d5 100644 --- a/src/devices/bus/msx/ctrl/towns6b.cpp +++ b/src/devices/bus/msx/ctrl/towns6b.cpp @@ -42,7 +42,7 @@ class fm_towns_6b_device : public device_t, public device_msx_general_purpose_po virtual void pin_8_w(int state) override { m_pin8 = state; } protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual ioport_constructor device_input_ports() const override { return INPUT_PORTS_NAME(fm_towns_6b); } private: diff --git a/src/devices/bus/msx/ctrl/vaus.cpp b/src/devices/bus/msx/ctrl/vaus.cpp index 6d3e1878e96..466ececd4c7 100644 --- a/src/devices/bus/msx/ctrl/vaus.cpp +++ b/src/devices/bus/msx/ctrl/vaus.cpp @@ -31,8 +31,8 @@ class msx_vaus_device : public device_t, public device_msx_general_purpose_port_ virtual void pin_8_w(int state) override; protected: - 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 ioport_constructor device_input_ports() const override { return INPUT_PORTS_NAME(msx_vaus); } TIMER_CALLBACK_MEMBER(copy_counter); diff --git a/src/devices/bus/msx/minicart/minicart.h b/src/devices/bus/msx/minicart/minicart.h index 9da07418c0d..bb315802c8d 100644 --- a/src/devices/bus/msx/minicart/minicart.h +++ b/src/devices/bus/msx/minicart/minicart.h @@ -32,7 +32,7 @@ class msx_slot_yamaha_minicart_device : public msx_slot_cartridge_base_device virtual std::string get_default_card_software(get_default_card_software_hook &hook) const override; protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; }; #endif // MAME_BUS_MSX_MINICART_MINICART_H diff --git a/src/devices/bus/msx/module/module.h b/src/devices/bus/msx/module/module.h index 4bd91b74c33..31e863d5c8a 100644 --- a/src/devices/bus/msx/module/module.h +++ b/src/devices/bus/msx/module/module.h @@ -60,7 +60,7 @@ class msx_slot_yamaha_expansion_device : public msx_slot_cartridge_base_device virtual std::string get_default_card_software(get_default_card_software_hook &hook) const override; protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; }; #endif // MAME_BUS_MSX_MODULE_MODULE_H diff --git a/src/devices/bus/msx/module/sfg.cpp b/src/devices/bus/msx/module/sfg.cpp index ac7ad33493e..34657e59738 100644 --- a/src/devices/bus/msx/module/sfg.cpp +++ b/src/devices/bus/msx/module/sfg.cpp @@ -25,8 +25,8 @@ class msx_cart_sfg_device : public device_t, public msx_cart_interface msx_cart_sfg_device(const machine_config &mconfig, const device_type type, const char *tag, device_t *owner, u32 clock); // device_t implementation - 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; IRQ_CALLBACK_MEMBER(irq_callback); @@ -145,7 +145,7 @@ class msx_cart_sfg01_device : public msx_cart_sfg_device msx_cart_sfg01_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); protected: - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; }; msx_cart_sfg01_device::msx_cart_sfg01_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock) @@ -171,8 +171,8 @@ class msx_cart_sfg05_device : public msx_cart_sfg_device msx_cart_sfg05_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 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; }; msx_cart_sfg05_device::msx_cart_sfg05_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock) diff --git a/src/devices/bus/msx/module/skw01.cpp b/src/devices/bus/msx/module/skw01.cpp index 0fef9c1de6b..cd7bf3d7f1c 100644 --- a/src/devices/bus/msx/module/skw01.cpp +++ b/src/devices/bus/msx/module/skw01.cpp @@ -26,12 +26,12 @@ class msx_cart_skw01_device : public device_t, public msx_cart_interface public: msx_cart_skw01_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: static constexpr u16 SRAM_SIZE = 2048; diff --git a/src/devices/bus/msx/slot/ax230.h b/src/devices/bus/msx/slot/ax230.h index 31f5fa3df8d..d120cc520da 100644 --- a/src/devices/bus/msx/slot/ax230.h +++ b/src/devices/bus/msx/slot/ax230.h @@ -20,8 +20,8 @@ class msx_slot_ax230_device : public device_t, public msx_internal_slot_interfac void set_rom_start(const char *region, u32 offset) { m_rom_region.set_tag(region); m_region_offset = offset; } protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: static constexpr u8 BANKS = 0x80; diff --git a/src/devices/bus/msx/slot/bruc100.h b/src/devices/bus/msx/slot/bruc100.h index cf37efc7779..206f835cc49 100644 --- a/src/devices/bus/msx/slot/bruc100.h +++ b/src/devices/bus/msx/slot/bruc100.h @@ -22,8 +22,8 @@ class msx_slot_bruc100_device : public device_t, public msx_internal_slot_interf void select_bank(u8 bank); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: required_memory_region m_rom_region; diff --git a/src/devices/bus/msx/slot/bunsetsu.h b/src/devices/bus/msx/slot/bunsetsu.h index f2f94dc2405..5dfc4a81e9d 100644 --- a/src/devices/bus/msx/slot/bunsetsu.h +++ b/src/devices/bus/msx/slot/bunsetsu.h @@ -21,8 +21,8 @@ class msx_slot_bunsetsu_device : public msx_slot_rom_device void set_bunsetsu_region_tag(const char *tag) { m_bunsetsu_region.set_tag(tag); } protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: u8 buns_read(); diff --git a/src/devices/bus/msx/slot/cartridge.h b/src/devices/bus/msx/slot/cartridge.h index 67b822774f7..8438d4a8f8d 100644 --- a/src/devices/bus/msx/slot/cartridge.h +++ b/src/devices/bus/msx/slot/cartridge.h @@ -65,8 +65,8 @@ class msx_slot_cartridge_base_device : public device_t protected: msx_slot_cartridge_base_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); - 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; devcb_write_line m_irq_handler; msx_cart_interface *m_cartridge; diff --git a/src/devices/bus/msx/slot/disk.h b/src/devices/bus/msx/slot/disk.h index 9b5c3eea82c..c5819b29aee 100644 --- a/src/devices/bus/msx/slot/disk.h +++ b/src/devices/bus/msx/slot/disk.h @@ -65,8 +65,8 @@ class msx_slot_disk_device : public msx_slot_rom_device msx_slot_disk_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, int nr_drives); static void floppy_formats(format_registration &fr); - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; void add_drive_mconfig(machine_config &config, bool double_sided); void set_drive_access_led_state(int drive, int led_state); @@ -90,7 +90,7 @@ class msx_slot_wd_disk_device : public msx_slot_disk_device msx_slot_wd_disk_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, int nr_drives); - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; template void add_mconfig(machine_config &config, FDCType &&type, bool force_ready, bool double_sided); void set_control_led_bit(u8 control_led_bit) { m_control_led_bit = control_led_bit; } u8 get_control_led_bit() const { return m_control_led_bit; } @@ -121,8 +121,8 @@ class msx_slot_disk1_base_device : public msx_slot_wd_disk_device protected: msx_slot_disk1_base_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, int nr_drives); - 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 device_post_load() override; private: @@ -142,7 +142,7 @@ class msx_slot_disk1_fd1793_device : public msx_slot_disk1_base_device msx_slot_disk1_fd1793_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); protected: - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; class msx_slot_disk1_mb8877_device : public msx_slot_disk1_base_device @@ -151,7 +151,7 @@ class msx_slot_disk1_mb8877_device : public msx_slot_disk1_base_device msx_slot_disk1_mb8877_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); protected: - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; class msx_slot_disk1_wd2793_n_device : public msx_slot_disk1_base_device @@ -160,7 +160,7 @@ class msx_slot_disk1_wd2793_n_device : public msx_slot_disk1_base_device msx_slot_disk1_wd2793_n_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); protected: - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; class msx_slot_disk1_wd2793_n_2_drives_device : public msx_slot_disk1_base_device @@ -169,7 +169,7 @@ class msx_slot_disk1_wd2793_n_2_drives_device : public msx_slot_disk1_base_devic msx_slot_disk1_wd2793_n_2_drives_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); protected: - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; class msx_slot_disk1_wd2793_device : public msx_slot_disk1_base_device @@ -178,7 +178,7 @@ class msx_slot_disk1_wd2793_device : public msx_slot_disk1_base_device msx_slot_disk1_wd2793_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); protected: - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; class msx_slot_disk1_wd2793_0_device : public msx_slot_disk1_base_device @@ -187,7 +187,7 @@ class msx_slot_disk1_wd2793_0_device : public msx_slot_disk1_base_device msx_slot_disk1_wd2793_0_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); protected: - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; class msx_slot_disk1_wd2793_ss_device : public msx_slot_disk1_base_device @@ -196,7 +196,7 @@ class msx_slot_disk1_wd2793_ss_device : public msx_slot_disk1_base_device msx_slot_disk1_wd2793_ss_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); protected: - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; class msx_slot_disk1_wd2793_2_drives_device : public msx_slot_disk1_base_device @@ -205,7 +205,7 @@ class msx_slot_disk1_wd2793_2_drives_device : public msx_slot_disk1_base_device msx_slot_disk1_wd2793_2_drives_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); protected: - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; @@ -216,8 +216,8 @@ class msx_slot_disk2_base_device : public msx_slot_wd_disk_device protected: msx_slot_disk2_base_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, int nr_drives); - 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 device_post_load() override; private: @@ -233,7 +233,7 @@ class msx_slot_disk2_fd1793_ss_device : public msx_slot_disk2_base_device msx_slot_disk2_fd1793_ss_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); protected: - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; class msx_slot_disk2_mb8877_device : public msx_slot_disk2_base_device @@ -242,7 +242,7 @@ class msx_slot_disk2_mb8877_device : public msx_slot_disk2_base_device msx_slot_disk2_mb8877_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); protected: - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; class msx_slot_disk2_mb8877_ss_device : public msx_slot_disk2_base_device @@ -251,7 +251,7 @@ class msx_slot_disk2_mb8877_ss_device : public msx_slot_disk2_base_device msx_slot_disk2_mb8877_ss_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); protected: - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; class msx_slot_disk2_mb8877_2_drives_device : public msx_slot_disk2_base_device @@ -260,7 +260,7 @@ class msx_slot_disk2_mb8877_2_drives_device : public msx_slot_disk2_base_device msx_slot_disk2_mb8877_2_drives_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); protected: - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; class msx_slot_disk2_wd2793_device : public msx_slot_disk2_base_device @@ -269,7 +269,7 @@ class msx_slot_disk2_wd2793_device : public msx_slot_disk2_base_device msx_slot_disk2_wd2793_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); protected: - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; class msx_slot_disk2_wd2793_2_drives_device : public msx_slot_disk2_base_device @@ -278,7 +278,7 @@ class msx_slot_disk2_wd2793_2_drives_device : public msx_slot_disk2_base_device msx_slot_disk2_wd2793_2_drives_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); protected: - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; @@ -290,8 +290,8 @@ class msx_slot_disk3_tc8566_device : public msx_slot_tc8566_disk_device protected: msx_slot_disk3_tc8566_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, int nr_drives); - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; }; @@ -301,7 +301,7 @@ class msx_slot_disk3_tc8566_2_drives_device : public msx_slot_disk3_tc8566_devic msx_slot_disk3_tc8566_2_drives_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); protected: - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; @@ -311,8 +311,8 @@ class msx_slot_disk4_tc8566_device : public msx_slot_tc8566_disk_device msx_slot_disk4_tc8566_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); protected: - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; private: u8 bank_r(); @@ -332,10 +332,10 @@ class msx_slot_disk5_wd2793_device : public msx_slot_wd_disk_device msx_slot_disk5_wd2793_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); protected: - 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 device_post_load() override; - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: void control_w(u8 control); @@ -351,10 +351,10 @@ class msx_slot_disk6_wd2793_n_device : public msx_slot_wd_disk_device msx_slot_disk6_wd2793_n_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); protected: - 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 device_post_load() override; - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: void set_side_motor(); @@ -380,10 +380,10 @@ class msx_slot_disk7_mb8877_device : public msx_slot_wd_disk_device msx_slot_disk7_mb8877_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); protected: - 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 device_post_load() override; - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: void set_drive_side_motor(); @@ -403,10 +403,10 @@ class msx_slot_disk8_mb8877_device : public msx_slot_wd_disk_device protected: msx_slot_disk8_mb8877_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, int nr_drives); - 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 device_post_load() override; - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: void set_control(u8 data); @@ -421,7 +421,7 @@ class msx_slot_disk8_wd2793_2_drives_device : public msx_slot_disk8_mb8877_devic msx_slot_disk8_wd2793_2_drives_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); protected: - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; @@ -431,10 +431,10 @@ class msx_slot_disk9_wd2793_n_device : public msx_slot_wd_disk_device msx_slot_disk9_wd2793_n_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); protected: - 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 device_post_load() override; - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: void control_w(u8 data); @@ -452,10 +452,10 @@ class msx_slot_disk10_mb8877_device : public msx_slot_wd_disk_device protected: msx_slot_disk10_mb8877_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, int nr_drives); - 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 device_post_load() override; - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: void control_w(u8 data); @@ -470,7 +470,7 @@ class msx_slot_disk10_mb8877_2_drives_device : public msx_slot_disk10_mb8877_dev msx_slot_disk10_mb8877_2_drives_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); protected: - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; @@ -480,10 +480,10 @@ class msx_slot_disk11_wd2793_device : public msx_slot_wd_disk_device msx_slot_disk11_wd2793_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); protected: - 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 device_post_load() override; - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: void control_w(u8 data); diff --git a/src/devices/bus/msx/slot/fs4600.h b/src/devices/bus/msx/slot/fs4600.h index dacf5be14c2..2db6c18b4a9 100644 --- a/src/devices/bus/msx/slot/fs4600.h +++ b/src/devices/bus/msx/slot/fs4600.h @@ -21,10 +21,10 @@ class msx_slot_fs4600_device : public device_t, public msx_internal_slot_interfa void set_rom_start(const char *region, u32 offset) { m_rom_region.set_tag(region); m_region_offset = offset; } protected: - 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 device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: static constexpr size_t SRAM_SIZE = 0x1000; diff --git a/src/devices/bus/msx/slot/fsa1fm.h b/src/devices/bus/msx/slot/fsa1fm.h index e0d2bac0bcd..3553a799860 100644 --- a/src/devices/bus/msx/slot/fsa1fm.h +++ b/src/devices/bus/msx/slot/fsa1fm.h @@ -24,8 +24,8 @@ class msx_slot_fsa1fm2_device : public device_t, public msx_internal_slot_interf void set_rom_start(const char *region, uint32_t offset) { m_rom_region.set_tag(region); m_region_offset = offset; } protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: static constexpr size_t RAM_SIZE = 0x2000; @@ -56,10 +56,10 @@ class msx_slot_fsa1fm_device : public device_t, public msx_internal_slot_interfa void set_rom_start(const char *region, uint32_t offset) { m_rom_region.set_tag(region); m_region_offset = offset; } protected: - virtual void device_start() override; - virtual void device_reset() override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() 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 ioport_constructor device_input_ports() const override ATTR_COLD; private: static constexpr size_t SRAM_SIZE = 0x2000; diff --git a/src/devices/bus/msx/slot/msx_rs232.h b/src/devices/bus/msx/slot/msx_rs232.h index e22221bbe9b..2bd93072953 100644 --- a/src/devices/bus/msx/slot/msx_rs232.h +++ b/src/devices/bus/msx/slot/msx_rs232.h @@ -21,9 +21,9 @@ class msx_slot_rs232_base_device : public msx_slot_rom_device protected: msx_slot_rs232_base_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 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; virtual void irq_mask_w(offs_t offset, u8 data); virtual u8 status_r(offs_t offset) { return 0; } @@ -57,7 +57,7 @@ class msx_slot_rs232_device : public msx_slot_rs232_base_device msx_slot_rs232_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual u8 status_r(offs_t offset) override; virtual void update_irq_state() override; @@ -70,8 +70,8 @@ class msx_slot_rs232_mitsubishi_device : public msx_slot_rs232_base_device msx_slot_rs232_mitsubishi_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); protected: - 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 u8 status_r(offs_t offset) override; virtual void update_irq_state() override; @@ -86,8 +86,8 @@ class msx_slot_rs232_sony_device : public msx_slot_rs232_base_device msx_slot_rs232_sony_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); protected: - 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 status_r(offs_t offset) override; virtual void update_irq_state() override; @@ -105,7 +105,7 @@ class msx_slot_rs232_svi738_device : public msx_slot_rs232_base_device msx_slot_rs232_svi738_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual u8 status_r(offs_t offset) override; virtual void update_irq_state() override; @@ -118,8 +118,8 @@ class msx_slot_rs232_toshiba_device : public msx_slot_rs232_base_device msx_slot_rs232_toshiba_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); protected: - 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 status_r(offs_t offset) override; virtual void update_irq_state() override; @@ -136,10 +136,10 @@ class msx_slot_rs232_toshiba_hx3x_device : public msx_slot_rs232_base_device protected: static constexpr size_t SRAM_SIZE = 0x800; - virtual void device_start() override; - virtual void device_reset() override; - virtual ioport_constructor device_input_ports() 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 ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual uint8_t status_r(offs_t offset) override; virtual void update_irq_state() override; diff --git a/src/devices/bus/msx/slot/msx_write.h b/src/devices/bus/msx/slot/msx_write.h index 64c9d9f97e7..e7474b6630f 100644 --- a/src/devices/bus/msx/slot/msx_write.h +++ b/src/devices/bus/msx/slot/msx_write.h @@ -21,9 +21,9 @@ class msx_slot_msx_write_device : public device_t, public msx_internal_slot_inte void set_rom_start(const char *region, u32 offset) { m_rom_region.set_tag(region); m_region_offset = offset; } protected: - virtual void device_start() override; - virtual void device_reset() override; - virtual ioport_constructor device_input_ports() const override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; private: template void bank_w(u8 data); diff --git a/src/devices/bus/msx/slot/music.h b/src/devices/bus/msx/slot/music.h index 41c34fdc313..489f9eaaaaa 100644 --- a/src/devices/bus/msx/slot/music.h +++ b/src/devices/bus/msx/slot/music.h @@ -25,7 +25,7 @@ class msx_slot_music_device : public msx_slot_rom_device template void set_ym2413_tag(T &&tag) { m_ym2413.set_tag(std::forward(tag)); } protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: required_device m_ym2413; diff --git a/src/devices/bus/msx/slot/panasonic08.h b/src/devices/bus/msx/slot/panasonic08.h index 5602dfd20dd..c94fa981597 100644 --- a/src/devices/bus/msx/slot/panasonic08.h +++ b/src/devices/bus/msx/slot/panasonic08.h @@ -21,10 +21,10 @@ class msx_slot_panasonic08_device : public device_t, public msx_internal_slot_in void set_rom_start(const char *region, u32 offset) { m_rom_region.set_tag(region); m_region_offset = offset; } protected: - 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 device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: static constexpr size_t SRAM_SIZE = 0x4000; diff --git a/src/devices/bus/msx/slot/panasonic08r.h b/src/devices/bus/msx/slot/panasonic08r.h index c7efcf6e27a..9e16d9f5501 100644 --- a/src/devices/bus/msx/slot/panasonic08r.h +++ b/src/devices/bus/msx/slot/panasonic08r.h @@ -24,10 +24,10 @@ class msx_slot_panasonic08r_device : public device_t, public msx_internal_slot_i msx_slot_panasonic08r_device &set_sram_size(u16 size) { m_sram_size = size; return *this; } protected: - 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 device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: template void set_view(); diff --git a/src/devices/bus/msx/slot/ram.h b/src/devices/bus/msx/slot/ram.h index c1a5e78e9e8..faf428c71a7 100644 --- a/src/devices/bus/msx/slot/ram.h +++ b/src/devices/bus/msx/slot/ram.h @@ -17,7 +17,7 @@ class msx_slot_ram_device : public device_t, void force_start_address(u16 start) { m_start_address = start; } protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: std::unique_ptr m_ram; diff --git a/src/devices/bus/msx/slot/ram_mm.h b/src/devices/bus/msx/slot/ram_mm.h index 8c4c1426264..4002e6928ea 100644 --- a/src/devices/bus/msx/slot/ram_mm.h +++ b/src/devices/bus/msx/slot/ram_mm.h @@ -20,7 +20,7 @@ class msx_slot_ram_mm_device : public device_t, public msx_internal_slot_interfa u8 *get_ram_base() { return &m_ram[0]; } protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: u8 read_mapper_bank(offs_t offset); diff --git a/src/devices/bus/msx/slot/rom.h b/src/devices/bus/msx/slot/rom.h index 698487dae3f..95fff321424 100644 --- a/src/devices/bus/msx/slot/rom.h +++ b/src/devices/bus/msx/slot/rom.h @@ -19,7 +19,7 @@ class msx_slot_rom_device : public device_t, protected: msx_slot_rom_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; u8 *rom_base() { return m_rom_region->base() + m_region_offset; } required_memory_region m_rom_region; diff --git a/src/devices/bus/msx/slot/sony08.h b/src/devices/bus/msx/slot/sony08.h index c8e364612d0..279783db929 100644 --- a/src/devices/bus/msx/slot/sony08.h +++ b/src/devices/bus/msx/slot/sony08.h @@ -21,10 +21,10 @@ class msx_slot_sony08_device : public device_t, public msx_internal_slot_interfa void set_rom_start(const char *region, u32 offset) { m_rom_region.set_tag(region); m_region_offset = offset; } protected: - 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 device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: static constexpr size_t SRAM_SIZE = 0x4000; diff --git a/src/devices/bus/mtu130/board.h b/src/devices/bus/mtu130/board.h index a7556757c5e..2cf3e83e515 100644 --- a/src/devices/bus/mtu130/board.h +++ b/src/devices/bus/mtu130/board.h @@ -61,7 +61,7 @@ class mtu130_extension_device : public device_t, public device_single_card_slot_ protected: required_device m_irq_merger; u8 m_slot_id; - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; }; DECLARE_DEVICE_TYPE(MTU130_EXTENSION, mtu130_extension_device) diff --git a/src/devices/bus/mtu130/datamover.h b/src/devices/bus/mtu130/datamover.h index 172a75b97b3..eaf64402d1f 100644 --- a/src/devices/bus/mtu130/datamover.h +++ b/src/devices/bus/mtu130/datamover.h @@ -20,11 +20,11 @@ class mtu130_datamover_base_device : public device_t, public mtu130_extension_in virtual void map_io(address_space_installer &space) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; protected: - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: required_device m_cpu; @@ -40,9 +40,9 @@ class mtu130_datamover_base_device : public device_t, public mtu130_extension_in uint32_t m_base_address; - void m6502_map(address_map &map); - void m68k_map(address_map &map); - void m68k_cs_map(address_map &map); + void m6502_map(address_map &map) ATTR_COLD; + void m68k_map(address_map &map) ATTR_COLD; + void m68k_cs_map(address_map &map) ATTR_COLD; void control_w(u8 data); void enable_w(u8 data); diff --git a/src/devices/bus/mtx/cfx.h b/src/devices/bus/mtx/cfx.h index 1f19fd5648f..cf7562ed1f2 100644 --- a/src/devices/bus/mtx/cfx.h +++ b/src/devices/bus/mtx/cfx.h @@ -27,12 +27,12 @@ class mtx_cfx_device : public device_t, public device_mtx_exp_interface protected: // 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; // 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; private: required_memory_region m_flash; diff --git a/src/devices/bus/mtx/exp.h b/src/devices/bus/mtx/exp.h index 937db9431d3..0f180d16f4a 100644 --- a/src/devices/bus/mtx/exp.h +++ b/src/devices/bus/mtx/exp.h @@ -57,7 +57,7 @@ class mtx_exp_slot_device : public device_t, public device_single_card_slot_inte protected: // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_image_interface implementation virtual std::pair call_load() override; diff --git a/src/devices/bus/mtx/magrom.h b/src/devices/bus/mtx/magrom.h index a4868024150..3569865cf53 100644 --- a/src/devices/bus/mtx/magrom.h +++ b/src/devices/bus/mtx/magrom.h @@ -27,11 +27,11 @@ class mtx_magrom_device : public device_t, public device_mtx_exp_interface protected: // optional information overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; // 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 bankswitch(uint8_t data) override; diff --git a/src/devices/bus/mtx/rompak.h b/src/devices/bus/mtx/rompak.h index f26af1fbe34..8ade842c73f 100644 --- a/src/devices/bus/mtx/rompak.h +++ b/src/devices/bus/mtx/rompak.h @@ -28,8 +28,8 @@ class mtx_rompak_device : public device_t, public device_mtx_exp_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; }; diff --git a/src/devices/bus/mtx/sdx.h b/src/devices/bus/mtx/sdx.h index 0fd05343d24..e55de584f1d 100644 --- a/src/devices/bus/mtx/sdx.h +++ b/src/devices/bus/mtx/sdx.h @@ -28,7 +28,7 @@ class mtx_sdx_device : static void floppy_formats(format_registration &fr); // optional information overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; uint8_t sdx_status_r(); void sdx_control_w(uint8_t data); @@ -53,12 +53,12 @@ class mtx_sdxbas_device : public mtx_sdx_device protected: // 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; // 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; }; class mtx_sdxcpm_device : public mtx_sdx_device @@ -69,12 +69,12 @@ class mtx_sdxcpm_device : public mtx_sdx_device protected: // 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; // 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; private: uint8_t mtx_80col_r(offs_t offset); diff --git a/src/devices/bus/multibus/cpuap.h b/src/devices/bus/multibus/cpuap.h index cc4d2ae5a5f..08dceacad32 100644 --- a/src/devices/bus/multibus/cpuap.h +++ b/src/devices/bus/multibus/cpuap.h @@ -24,14 +24,14 @@ class cpuap_device protected: // device_t overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; - virtual void device_reset() override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: - template void cpu_map(address_map &map); + template void cpu_map(address_map &map) ATTR_COLD; void bus_timeout(u8 data); void bus_mem_w(offs_t offset, u16 data, u16 mem_mask) { m_bus->space(AS_PROGRAM).write_word(0xe00000 | offset << 1, data, mem_mask); } diff --git a/src/devices/bus/multibus/isbc202.h b/src/devices/bus/multibus/isbc202.h index 6f09512a9d1..cde1589993f 100644 --- a/src/devices/bus/multibus/isbc202.h +++ b/src/devices/bus/multibus/isbc202.h @@ -37,10 +37,10 @@ class isbc202_device : public cpu_device, protected: // device_t overrides - 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; // device_execute_interface overrides virtual uint32_t execute_min_cycles() const noexcept override { return 1; } diff --git a/src/devices/bus/multibus/isbc8024.h b/src/devices/bus/multibus/isbc8024.h index 4827c20bbe6..ece5d98b78b 100644 --- a/src/devices/bus/multibus/isbc8024.h +++ b/src/devices/bus/multibus/isbc8024.h @@ -25,15 +25,15 @@ class isbc8024_device protected: // device_t overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; - virtual void device_reset() override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: - void cpu_mem_map(address_map &map); - void cpu_pio_map(address_map &map); + void cpu_mem_map(address_map &map) ATTR_COLD; + void cpu_pio_map(address_map &map) ATTR_COLD; void bus_mem_w(offs_t offset, u8 data) { m_bus->space(AS_PROGRAM).write_byte(offset, data); } u8 bus_mem_r(offs_t offset) { return m_bus->space(AS_PROGRAM).read_byte(offset); } diff --git a/src/devices/bus/multibus/labtam_3232.h b/src/devices/bus/multibus/labtam_3232.h index 4cd89999778..8511428eba0 100644 --- a/src/devices/bus/multibus/labtam_3232.h +++ b/src/devices/bus/multibus/labtam_3232.h @@ -22,14 +22,14 @@ class labtam_3232_device protected: // device_t overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; - virtual void device_reset() override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: - template void cpu_map(address_map &map); + template void cpu_map(address_map &map) ATTR_COLD; //void bus_mem_w(offs_t offset, u16 data, u16 mem_mask) { m_bus->space(AS_PROGRAM).write_word(0xe00000 | offset << 1, data, mem_mask); } //u16 bus_mem_r(offs_t offset, u16 mem_mask) { return m_bus->space(AS_PROGRAM).read_word(0xe00000 | offset << 1, mem_mask); } diff --git a/src/devices/bus/multibus/labtam_vducom.h b/src/devices/bus/multibus/labtam_vducom.h index b30a0337d2f..9e799b208de 100644 --- a/src/devices/bus/multibus/labtam_vducom.h +++ b/src/devices/bus/multibus/labtam_vducom.h @@ -28,13 +28,13 @@ class labtam_vducom_device_base protected: labtam_vducom_device_base(machine_config const &mconfig, device_type type, char const *tag, device_t *owner, u32 clock); - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_resolve_objects() override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_resolve_objects() override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; - void cpu_mem(address_map &map); - virtual void cpu_pio(address_map &map); + void cpu_mem(address_map &map) ATTR_COLD; + virtual void cpu_pio(address_map &map) ATTR_COLD; void bus_mem_w(offs_t offset, u16 data, u16 mem_mask); u16 bus_mem_r(offs_t offset, u16 mem_mask); @@ -77,8 +77,8 @@ class labtam_8086cpu_device : public labtam_vducom_device_base labtam_8086cpu_device(machine_config const &mconfig, char const *tag, device_t *owner, u32 clock); protected: - virtual ioport_constructor device_input_ports() const override; - virtual const tiny_rom_entry *device_rom_region() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; }; class labtam_vducom_device : public labtam_vducom_device_base @@ -87,11 +87,11 @@ class labtam_vducom_device : public labtam_vducom_device_base labtam_vducom_device(machine_config const &mconfig, char const *tag, device_t *owner, u32 clock); protected: - virtual ioport_constructor device_input_ports() const override; - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual ioport_constructor device_input_ports() const 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; - virtual void cpu_pio(address_map &map) override; + virtual void cpu_pio(address_map &map) override ATTR_COLD; private: void palette_init(palette_device &palette); diff --git a/src/devices/bus/multibus/labtam_z80sbc.h b/src/devices/bus/multibus/labtam_z80sbc.h index bff3b52a491..f8e9d2c7127 100644 --- a/src/devices/bus/multibus/labtam_z80sbc.h +++ b/src/devices/bus/multibus/labtam_z80sbc.h @@ -29,16 +29,16 @@ class labtam_z80sbc_device protected: // device_t overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; - virtual void device_resolve_objects() override; - virtual void device_start() override; - virtual void device_reset() override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_resolve_objects() override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: - void cpu_mem(address_map &map); - void cpu_pio(address_map &map); + void cpu_mem(address_map &map) ATTR_COLD; + void cpu_pio(address_map &map) ATTR_COLD; // cpu memory handlers u8 mem_r(offs_t offset); diff --git a/src/devices/bus/multibus/multibus.h b/src/devices/bus/multibus/multibus.h index d753db25778..bdef77e7caf 100644 --- a/src/devices/bus/multibus/multibus.h +++ b/src/devices/bus/multibus/multibus.h @@ -95,7 +95,7 @@ class multibus_device protected: // device_t overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_memory_interface overrides virtual space_config_vector memory_space_config() const override; @@ -127,8 +127,8 @@ class multibus_slot_device } protected: - virtual void device_start() override; - virtual void device_resolve_objects() override; + virtual void device_start() override ATTR_COLD; + virtual void device_resolve_objects() override ATTR_COLD; private: required_device m_bus; diff --git a/src/devices/bus/multibus/robotron_k7070.h b/src/devices/bus/multibus/robotron_k7070.h index 14c0a9c868d..3e1b9c1ca9c 100644 --- a/src/devices/bus/multibus/robotron_k7070.h +++ b/src/devices/bus/multibus/robotron_k7070.h @@ -25,14 +25,14 @@ class robotron_k7070_device robotron_k7070_device(machine_config const &mconfig, char const *tag, device_t *owner, u32 clock); protected: - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; - virtual ioport_constructor device_input_ports() const override; - virtual const tiny_rom_entry *device_rom_region() const override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; - void cpu_mem(address_map &map); - virtual void cpu_pio(address_map &map); + void cpu_mem(address_map &map) ATTR_COLD; + virtual void cpu_pio(address_map &map) ATTR_COLD; private: required_device m_cpu; @@ -68,8 +68,8 @@ class robotron_k7070_device uint16_t io_r(offs_t offset, uint16_t mem_mask); void io_w(offs_t offset, uint16_t data, uint16_t mem_mask); - void k7070_cpu_io(address_map &map); - void k7070_cpu_mem(address_map &map); + void k7070_cpu_io(address_map &map) ATTR_COLD; + void k7070_cpu_mem(address_map &map) ATTR_COLD; }; DECLARE_DEVICE_TYPE(ROBOTRON_K7070, robotron_k7070_device) diff --git a/src/devices/bus/multibus/robotron_k7071.h b/src/devices/bus/multibus/robotron_k7071.h index 55efbd3e05e..0071ce106ec 100644 --- a/src/devices/bus/multibus/robotron_k7071.h +++ b/src/devices/bus/multibus/robotron_k7071.h @@ -24,13 +24,13 @@ class robotron_k7071_device robotron_k7071_device(machine_config const &mconfig, char const *tag, device_t *owner, u32 clock); protected: - virtual void device_add_mconfig(machine_config &config) override; - 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 ATTR_COLD; + 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; - void cpu_mem(address_map &map); - virtual void cpu_pio(address_map &map); + void cpu_mem(address_map &map) ATTR_COLD; + virtual void cpu_pio(address_map &map) ATTR_COLD; private: required_device m_cpu; diff --git a/src/devices/bus/multibus/serad.h b/src/devices/bus/multibus/serad.h index 5f82e1c0ec7..6df233dda34 100644 --- a/src/devices/bus/multibus/serad.h +++ b/src/devices/bus/multibus/serad.h @@ -22,15 +22,15 @@ class serad_device protected: // device_t overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; - virtual void device_reset() override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: - void mem_map(address_map &map); - void pio_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void pio_map(address_map &map) ATTR_COLD; template void rst55_w(u8 data) { m_cpu->set_input_line(I8085_RST55_LINE, S); } void apzint_w(u8 data) { int_w(2, 0); } diff --git a/src/devices/bus/nabupc/adapter.h b/src/devices/bus/nabupc/adapter.h index ad26c9d313f..1272f4f04ee 100644 --- a/src/devices/bus/nabupc/adapter.h +++ b/src/devices/bus/nabupc/adapter.h @@ -49,9 +49,9 @@ class network_adapter protected: // device_t implementation - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; - virtual void device_reset() override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; // device_buffered_serial_interface implementation virtual void tra_callback() override; diff --git a/src/devices/bus/nabupc/fdc.cpp b/src/devices/bus/nabupc/fdc.cpp index c8d91aa7fb3..7c7b1740e2d 100644 --- a/src/devices/bus/nabupc/fdc.cpp +++ b/src/devices/bus/nabupc/fdc.cpp @@ -36,11 +36,11 @@ class fdc_device : public device_t, public bus::nabupc::device_option_expansion_ virtual void write(offs_t offset, uint8_t data) override; 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; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: void ds_w(uint8_t data); diff --git a/src/devices/bus/nabupc/hdd.cpp b/src/devices/bus/nabupc/hdd.cpp index 4e03c9f531d..311f97ac298 100644 --- a/src/devices/bus/nabupc/hdd.cpp +++ b/src/devices/bus/nabupc/hdd.cpp @@ -36,8 +36,8 @@ class hdd_device : public device_t, public bus::nabupc::device_option_expansion_ protected: // device_t implementation - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; private: required_device m_hdd; diff --git a/src/devices/bus/nabupc/option.h b/src/devices/bus/nabupc/option.h index 94b47d642bf..0fb28351d5c 100644 --- a/src/devices/bus/nabupc/option.h +++ b/src/devices/bus/nabupc/option.h @@ -81,7 +81,7 @@ class option_slot_device : public device_t, public device_single_card_slot_inter void int_w(int state); protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // configuration required_device m_bus; @@ -116,8 +116,8 @@ class option_bus_device : public device_t 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; devcb_write_line::array<5> m_int_cb; diff --git a/src/devices/bus/nabupc/rs232.cpp b/src/devices/bus/nabupc/rs232.cpp index a57066984d3..2d1e8fc3b1d 100644 --- a/src/devices/bus/nabupc/rs232.cpp +++ b/src/devices/bus/nabupc/rs232.cpp @@ -34,8 +34,8 @@ class rs232_device : public device_t, public bus::nabupc::device_option_expansio protected: // device_t implementation - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; void rxrdy_w(int state); diff --git a/src/devices/bus/nasbus/avc.h b/src/devices/bus/nasbus/avc.h index 58eaaa44626..8be07b6223a 100644 --- a/src/devices/bus/nasbus/avc.h +++ b/src/devices/bus/nasbus/avc.h @@ -33,9 +33,9 @@ class nascom_avc_device : public device_t, public device_nasbus_card_interface void vram_w(offs_t offset, uint8_t data); protected: - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: MC6845_UPDATE_ROW(crtc_update_row); diff --git a/src/devices/bus/nasbus/floppy.h b/src/devices/bus/nasbus/floppy.h index abf623e5e10..16738b44fbf 100644 --- a/src/devices/bus/nasbus/floppy.h +++ b/src/devices/bus/nasbus/floppy.h @@ -33,9 +33,9 @@ class nascom_fdc_device : public device_t, public device_nasbus_card_interface uint8_t status_r(); protected: - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; virtual void device_reset_after_children() override; private: diff --git a/src/devices/bus/nasbus/nasbus.h b/src/devices/bus/nasbus/nasbus.h index d1cd3a4fa77..708f4d4621b 100644 --- a/src/devices/bus/nasbus/nasbus.h +++ b/src/devices/bus/nasbus/nasbus.h @@ -129,7 +129,7 @@ class nasbus_slot_device : public device_t, public device_single_card_slot_inter nasbus_slot_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; private: required_device m_bus; @@ -160,8 +160,8 @@ class nasbus_device : public device_t protected: // 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; private: using card_vector = std::vector >; diff --git a/src/devices/bus/neogeo/boot_cthd.h b/src/devices/bus/neogeo/boot_cthd.h index d99eeaea941..c98abd38790 100644 --- a/src/devices/bus/neogeo/boot_cthd.h +++ b/src/devices/bus/neogeo/boot_cthd.h @@ -29,10 +29,10 @@ class neogeo_cthd2k3_cart_device : public neogeo_rom_device neogeo_cthd2k3_cart_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint16_t clock); // 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 device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; required_device m_prot; }; @@ -84,7 +84,7 @@ class neogeo_matrimbl_cart_device : public neogeo_cthd2k3_cart_device virtual int get_fixed_bank_type() override { return 2; } protected: - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: required_device m_cmc_prot; diff --git a/src/devices/bus/neogeo/boot_kof10th.h b/src/devices/bus/neogeo/boot_kof10th.h index 8e422f6d6ec..a82b61304e7 100644 --- a/src/devices/bus/neogeo/boot_kof10th.h +++ b/src/devices/bus/neogeo/boot_kof10th.h @@ -30,10 +30,10 @@ class neogeo_kof10th_cart_device : public neogeo_bootleg_cart_device 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 device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: uint8_t* m_fixed; diff --git a/src/devices/bus/neogeo/boot_kof2k2.h b/src/devices/bus/neogeo/boot_kof2k2.h index f7b926a4a2a..36b07f6bc3c 100644 --- a/src/devices/bus/neogeo/boot_kof2k2.h +++ b/src/devices/bus/neogeo/boot_kof2k2.h @@ -26,7 +26,7 @@ class neogeo_kof2002b_cart_device : public neogeo_bootleg_cart_device virtual int get_fixed_bank_type() override { return 0; } protected: - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: required_device m_cmc_prot; @@ -50,7 +50,7 @@ class neogeo_kf2k2mp_cart_device : public neogeo_bootleg_cart_device virtual int get_fixed_bank_type() override { return 0; } protected: - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: required_device m_cmc_prot; @@ -73,7 +73,7 @@ class neogeo_kf2k2mp2_cart_device : public neogeo_bootleg_cart_device virtual int get_fixed_bank_type() override { return 0; } protected: - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: required_device m_cmc_prot; diff --git a/src/devices/bus/neogeo/boot_kof2k3.h b/src/devices/bus/neogeo/boot_kof2k3.h index a8e3efc5721..272f189872f 100644 --- a/src/devices/bus/neogeo/boot_kof2k3.h +++ b/src/devices/bus/neogeo/boot_kof2k3.h @@ -27,7 +27,7 @@ class neogeo_kf2k3bl_cart_device : public neogeo_bootleg_cart_device virtual uint16_t addon_r(offs_t offset) override { return m_kof2k3bl_prot->overlay_r(); } protected: - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: required_device m_cmc_prot; @@ -54,7 +54,7 @@ class neogeo_kf2k3pl_cart_device : public neogeo_bootleg_cart_device virtual void protection_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0) override { m_kof2k3bl_prot->kof2003p_w(offset, data, mem_mask); } protected: - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: required_device m_cmc_prot; @@ -82,7 +82,7 @@ class neogeo_kf2k3upl_cart_device : public neogeo_bootleg_cart_device virtual uint16_t addon_r(offs_t offset) override { return m_kof2k3bl_prot->overlay_r(); } protected: - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: required_device m_cmc_prot; diff --git a/src/devices/bus/neogeo/boot_misc.h b/src/devices/bus/neogeo/boot_misc.h index cf07a67e774..6abf1dd5c6d 100644 --- a/src/devices/bus/neogeo/boot_misc.h +++ b/src/devices/bus/neogeo/boot_misc.h @@ -25,10 +25,10 @@ class neogeo_bootleg_cart_device : public neogeo_rom_device neogeo_bootleg_cart_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint16_t clock); // 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 device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; required_device m_prot; }; @@ -153,7 +153,7 @@ class neogeo_mslug3b6_cart_device : public neogeo_bootleg_cart_device virtual int get_fixed_bank_type() override { return 0; } protected: - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: required_device m_cmc_prot; @@ -177,7 +177,7 @@ class neogeo_ms5plus_cart_device : public neogeo_bootleg_cart_device virtual uint32_t get_bank_base(uint16_t sel) override { return m_prot->mslug5p_bank_base(sel); } protected: - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: required_device m_cmc_prot; @@ -211,7 +211,7 @@ class neogeo_kog_cart_device : public neogeo_bootleg_cart_device public: neogeo_kog_cart_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; virtual uint16_t protection_r(address_space &space, offs_t offset) override; virtual void decrypt_all(DECRYPT_ALL_PARAMS) override; diff --git a/src/devices/bus/neogeo/boot_svc.h b/src/devices/bus/neogeo/boot_svc.h index 74a064500e3..33970d2c170 100644 --- a/src/devices/bus/neogeo/boot_svc.h +++ b/src/devices/bus/neogeo/boot_svc.h @@ -26,7 +26,7 @@ class neogeo_svcboot_cart_device : public neogeo_bootleg_cart_device virtual int get_fixed_bank_type() override { return 0; } protected: - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: required_device m_pvc_prot; @@ -80,7 +80,7 @@ class neogeo_svcsplus_cart_device : public neogeo_bootleg_cart_device virtual int get_fixed_bank_type() override { return 0; } protected: - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: required_device m_pvc_prot; diff --git a/src/devices/bus/neogeo/cmc.h b/src/devices/bus/neogeo/cmc.h index 0852574c9f8..72cf6b6431d 100644 --- a/src/devices/bus/neogeo/cmc.h +++ b/src/devices/bus/neogeo/cmc.h @@ -26,10 +26,10 @@ class neogeo_cmc_cart_device : public neogeo_rom_device neogeo_cmc_cart_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint16_t clock); // 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 device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; required_device m_prot; }; @@ -218,9 +218,9 @@ class neogeo_cmc_jockeygp_cart_device : public neogeo_cmc_cart_device virtual void ram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0) override { COMBINE_DATA(&m_ram[offset]); } protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: std::unique_ptr m_ram; diff --git a/src/devices/bus/neogeo/fatfury2.h b/src/devices/bus/neogeo/fatfury2.h index ba3e274b7ac..375034f5cf3 100644 --- a/src/devices/bus/neogeo/fatfury2.h +++ b/src/devices/bus/neogeo/fatfury2.h @@ -23,10 +23,10 @@ class neogeo_fatfury2_cart_device : public neogeo_rom_device 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 device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; required_device m_prot; }; diff --git a/src/devices/bus/neogeo/kof2k2.h b/src/devices/bus/neogeo/kof2k2.h index f5ade4c4444..476ce79361c 100644 --- a/src/devices/bus/neogeo/kof2k2.h +++ b/src/devices/bus/neogeo/kof2k2.h @@ -27,10 +27,10 @@ class neogeo_kof2k2type_cart_device : public neogeo_rom_device neogeo_kof2k2type_cart_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint16_t clock); // 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 device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; required_device m_cmc_prot; required_device m_pcm2_prot; diff --git a/src/devices/bus/neogeo/kof98.h b/src/devices/bus/neogeo/kof98.h index ec80a2a58f1..fe3f0fa5de0 100644 --- a/src/devices/bus/neogeo/kof98.h +++ b/src/devices/bus/neogeo/kof98.h @@ -25,10 +25,10 @@ class neogeo_kof98_cart_device : public neogeo_rom_device 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 device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; required_device m_prot; }; diff --git a/src/devices/bus/neogeo/mslugx.h b/src/devices/bus/neogeo/mslugx.h index 486eefe6ef8..6a8d1f80648 100644 --- a/src/devices/bus/neogeo/mslugx.h +++ b/src/devices/bus/neogeo/mslugx.h @@ -23,10 +23,10 @@ class neogeo_mslugx_cart_device : public neogeo_rom_device 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 device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; required_device m_prot; }; diff --git a/src/devices/bus/neogeo/pcm2.h b/src/devices/bus/neogeo/pcm2.h index a088d9b0172..a1ccb59f468 100644 --- a/src/devices/bus/neogeo/pcm2.h +++ b/src/devices/bus/neogeo/pcm2.h @@ -23,10 +23,10 @@ class neogeo_pcm2_cart_device : public neogeo_rom_device neogeo_pcm2_cart_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint16_t clock); // 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 device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; required_device m_cmc_prot; required_device m_pcm2_prot; diff --git a/src/devices/bus/neogeo/prot_cmc.h b/src/devices/bus/neogeo/prot_cmc.h index d1f8dd10b9a..be6deb783f4 100644 --- a/src/devices/bus/neogeo/prot_cmc.h +++ b/src/devices/bus/neogeo/prot_cmc.h @@ -63,8 +63,8 @@ class cmc_prot_device : public device_t void cmc50_m1_decrypt(uint8_t* romcrypt, uint32_t romcrypt_size, uint8_t* romaudio, uint32_t romaudio_size); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; const uint8_t *type0_t03; const uint8_t *type0_t12; diff --git a/src/devices/bus/neogeo/prot_cthd.h b/src/devices/bus/neogeo/prot_cthd.h index a331742da4f..aa60cd70b00 100644 --- a/src/devices/bus/neogeo/prot_cthd.h +++ b/src/devices/bus/neogeo/prot_cthd.h @@ -32,8 +32,8 @@ class cthd_prot_device : public device_t void matrimbl_decrypt(uint8_t* sprrom, uint32_t sprrom_size, uint8_t* audiorom, uint32_t audiorom_size); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; }; #endif // MAME_BUS_NEOGEO_PROT_CTHD_H diff --git a/src/devices/bus/neogeo/prot_fatfury2.h b/src/devices/bus/neogeo/prot_fatfury2.h index 1cab87cb26a..6cf08a09654 100644 --- a/src/devices/bus/neogeo/prot_fatfury2.h +++ b/src/devices/bus/neogeo/prot_fatfury2.h @@ -21,9 +21,9 @@ class fatfury2_prot_device : public device_t void protection_w(offs_t offset, uint16_t data); protected: - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: required_device m_pro_ct0; // PRO-CT0 or SNK-9201 diff --git a/src/devices/bus/neogeo/prot_kof2k2.h b/src/devices/bus/neogeo/prot_kof2k2.h index 324da5a8918..a509e0fa273 100644 --- a/src/devices/bus/neogeo/prot_kof2k2.h +++ b/src/devices/bus/neogeo/prot_kof2k2.h @@ -22,8 +22,8 @@ class kof2002_prot_device : public device_t void samsh5sp_decrypt_68k(uint8_t* cpurom, uint32_t cpurom_size); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; }; #endif // MAME_BUS_NEOGEO_PROT_KOF2K2_H diff --git a/src/devices/bus/neogeo/prot_kof2k3bl.h b/src/devices/bus/neogeo/prot_kof2k3bl.h index c4c83d30e5d..f0867e22dd7 100644 --- a/src/devices/bus/neogeo/prot_kof2k3bl.h +++ b/src/devices/bus/neogeo/prot_kof2k3bl.h @@ -25,8 +25,8 @@ class kof2k3bl_prot_device : public device_t uint32_t get_bank_base() {return m_bank_base; } protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: uint16_t m_overlay; diff --git a/src/devices/bus/neogeo/prot_kof98.h b/src/devices/bus/neogeo/prot_kof98.h index eef9fa47a7e..f67b0dd8eb5 100644 --- a/src/devices/bus/neogeo/prot_kof98.h +++ b/src/devices/bus/neogeo/prot_kof98.h @@ -23,8 +23,8 @@ class kof98_prot_device : public device_t uint16_t m_default_rom[2]; protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; }; #endif // MAME_BUS_NEOGEO_PROT_KOF98_H diff --git a/src/devices/bus/neogeo/prot_misc.h b/src/devices/bus/neogeo/prot_misc.h index b7e89224573..a5e746c74ab 100644 --- a/src/devices/bus/neogeo/prot_misc.h +++ b/src/devices/bus/neogeo/prot_misc.h @@ -58,8 +58,8 @@ class neoboot_prot_device : public device_t void kof10th_decrypt(uint8_t* cpurom, uint32_t cpurom_size); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; }; #endif // MAME_BUS_NEOGEO_PROT_MISC_H diff --git a/src/devices/bus/neogeo/prot_mslugx.h b/src/devices/bus/neogeo/prot_mslugx.h index 0280ad1bbe5..93c8ebdb912 100644 --- a/src/devices/bus/neogeo/prot_mslugx.h +++ b/src/devices/bus/neogeo/prot_mslugx.h @@ -20,8 +20,8 @@ class mslugx_prot_device : public device_t uint16_t protection_r(address_space &space, offs_t offset); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: uint16_t m_counter; diff --git a/src/devices/bus/neogeo/prot_pcm2.h b/src/devices/bus/neogeo/prot_pcm2.h index 707e9ab94b4..823b1849468 100644 --- a/src/devices/bus/neogeo/prot_pcm2.h +++ b/src/devices/bus/neogeo/prot_pcm2.h @@ -20,8 +20,8 @@ class pcm2_prot_device : public device_t void swap(uint8_t* ymrom, uint32_t ymsize, int value); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; }; #endif // MAME_BUS_NEOGEO_PROT_PCM2_H diff --git a/src/devices/bus/neogeo/prot_pvc.h b/src/devices/bus/neogeo/prot_pvc.h index f133424c2fa..a6cd628a17d 100644 --- a/src/devices/bus/neogeo/prot_pvc.h +++ b/src/devices/bus/neogeo/prot_pvc.h @@ -31,8 +31,8 @@ class pvc_prot_device : public device_t void kof2003h_decrypt_68k(uint8_t* rom, uint32_t size); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; }; #endif // MAME_BUS_NEOGEO_PROT_PVC_H diff --git a/src/devices/bus/neogeo/prot_sma.h b/src/devices/bus/neogeo/prot_sma.h index bb19fe43f40..9dcfb3e2d63 100644 --- a/src/devices/bus/neogeo/prot_sma.h +++ b/src/devices/bus/neogeo/prot_sma.h @@ -37,8 +37,8 @@ class sma_prot_device : public device_t void kof2000_decrypt_68k(uint8_t* base); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: uint16_t m_sma_rng; diff --git a/src/devices/bus/neogeo/pvc.h b/src/devices/bus/neogeo/pvc.h index 23f1bbfede5..e1fc3265c94 100644 --- a/src/devices/bus/neogeo/pvc.h +++ b/src/devices/bus/neogeo/pvc.h @@ -31,10 +31,10 @@ class neogeo_pvc_cart_device : public neogeo_rom_device neogeo_pvc_cart_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint16_t clock); // 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 device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; required_device m_cmc_prot; required_device m_pcm2_prot; diff --git a/src/devices/bus/neogeo/rom.h b/src/devices/bus/neogeo/rom.h index 638154d919a..136c9f2e2ce 100644 --- a/src/devices/bus/neogeo/rom.h +++ b/src/devices/bus/neogeo/rom.h @@ -24,8 +24,8 @@ class neogeo_rom_device : public device_t, public device_neogeo_cart_interface neogeo_rom_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint16_t clock); // 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; }; @@ -50,9 +50,9 @@ class neogeo_vliner_cart_device : public neogeo_rom_device virtual int get_fixed_bank_type() override { return 0; } protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: std::unique_ptr m_cart_ram; diff --git a/src/devices/bus/neogeo/sbp.h b/src/devices/bus/neogeo/sbp.h index 25fd920f281..f9d91e972f7 100644 --- a/src/devices/bus/neogeo/sbp.h +++ b/src/devices/bus/neogeo/sbp.h @@ -24,8 +24,8 @@ class neogeo_sbp_cart_device : public neogeo_rom_device virtual int get_fixed_bank_type() override { return 0; } protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; void patch(uint8_t* cpurom, uint32_t cpurom_size); }; diff --git a/src/devices/bus/neogeo/slot.h b/src/devices/bus/neogeo/slot.h index 0b5fced8f80..300a9243b0f 100644 --- a/src/devices/bus/neogeo/slot.h +++ b/src/devices/bus/neogeo/slot.h @@ -330,7 +330,7 @@ class neogeo_cart_slot_device : public device_t, protected: // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: int m_type; diff --git a/src/devices/bus/neogeo/sma.h b/src/devices/bus/neogeo/sma.h index 1eb1a05e6ba..5cbde9893b8 100644 --- a/src/devices/bus/neogeo/sma.h +++ b/src/devices/bus/neogeo/sma.h @@ -28,10 +28,10 @@ class neogeo_sma_cart_device : public neogeo_rom_device neogeo_sma_cart_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint16_t clock); // 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 device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; required_device m_sma_prot; required_device m_cmc_prot; diff --git a/src/devices/bus/neogeo_ctrl/ctrl.h b/src/devices/bus/neogeo_ctrl/ctrl.h index 552f80eced4..2a410c42cac 100644 --- a/src/devices/bus/neogeo_ctrl/ctrl.h +++ b/src/devices/bus/neogeo_ctrl/ctrl.h @@ -58,7 +58,7 @@ class neogeo_control_port_device : public device_t, public device_single_card_sl protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; device_neogeo_control_port_interface *m_device; }; @@ -105,7 +105,7 @@ class neogeo_ctrl_edge_port_device : public device_t, public device_single_card_ protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; device_neogeo_ctrl_edge_interface *m_device; }; diff --git a/src/devices/bus/neogeo_ctrl/dial.h b/src/devices/bus/neogeo_ctrl/dial.h index 676e1b51316..ebdae3b7958 100644 --- a/src/devices/bus/neogeo_ctrl/dial.h +++ b/src/devices/bus/neogeo_ctrl/dial.h @@ -27,11 +27,11 @@ class neogeo_dial_device : public device_t, public device_neogeo_ctrl_edge_inter neogeo_dial_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // optional information overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_neogeo_control_port_interface overrides virtual uint8_t in0_r() override; diff --git a/src/devices/bus/neogeo_ctrl/irrmaze.h b/src/devices/bus/neogeo_ctrl/irrmaze.h index 78a00801f8c..b4e539cef72 100644 --- a/src/devices/bus/neogeo_ctrl/irrmaze.h +++ b/src/devices/bus/neogeo_ctrl/irrmaze.h @@ -27,8 +27,8 @@ class neogeo_irrmaze_device : public device_t, public device_neogeo_ctrl_edge_in protected: // device-level overrides - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; // device_neogeo_control_port_interface overrides virtual uint8_t in0_r() override; diff --git a/src/devices/bus/neogeo_ctrl/joystick.h b/src/devices/bus/neogeo_ctrl/joystick.h index b817e672ca3..68f1eb2a55e 100644 --- a/src/devices/bus/neogeo_ctrl/joystick.h +++ b/src/devices/bus/neogeo_ctrl/joystick.h @@ -27,8 +27,8 @@ class neogeo_joystick_device : public device_t, public device_neogeo_control_por protected: // device-level overrides - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; // device_neogeo_control_port_interface overrides virtual uint8_t read_ctrl() override; @@ -52,8 +52,8 @@ class neogeo_joy_ac_device : public device_t, public device_neogeo_ctrl_edge_int protected: // device-level overrides - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; // device_neogeo_ctrl_edge_interface overrides virtual uint8_t in0_r() override; diff --git a/src/devices/bus/neogeo_ctrl/kizuna4p.h b/src/devices/bus/neogeo_ctrl/kizuna4p.h index 404055cdec6..b9575b690fc 100644 --- a/src/devices/bus/neogeo_ctrl/kizuna4p.h +++ b/src/devices/bus/neogeo_ctrl/kizuna4p.h @@ -28,8 +28,8 @@ class neogeo_kizuna4p_device : public device_t, public device_neogeo_ctrl_edge_i protected: // device-level overrides - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; // device_neogeo_control_port_interface overrides virtual uint8_t in0_r() override; diff --git a/src/devices/bus/neogeo_ctrl/mahjong.h b/src/devices/bus/neogeo_ctrl/mahjong.h index d4fd1646ece..36987565c3c 100644 --- a/src/devices/bus/neogeo_ctrl/mahjong.h +++ b/src/devices/bus/neogeo_ctrl/mahjong.h @@ -29,9 +29,9 @@ class neogeo_mjctrl_ac_device : public device_t, public device_neogeo_control_po neogeo_mjctrl_ac_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // device-level overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; virtual uint8_t read_start_sel() override; - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_neogeo_control_port_interface overrides virtual uint8_t read_ctrl() override; @@ -54,7 +54,7 @@ class neogeo_mjctrl_device : public neogeo_mjctrl_ac_device protected: // optional information overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; // device_neogeo_control_port_interface overrides virtual uint8_t read_start_sel() override; diff --git a/src/devices/bus/nes/2a03pur.h b/src/devices/bus/nes/2a03pur.h index 27b4127b5f1..01bd0a80a45 100644 --- a/src/devices/bus/nes/2a03pur.h +++ b/src/devices/bus/nes/2a03pur.h @@ -23,7 +23,7 @@ class nes_2a03pur_device : public nes_nrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: u8 m_reg[8]; diff --git a/src/devices/bus/nes/act53.h b/src/devices/bus/nes/act53.h index ead18a54ad6..629abdd537f 100644 --- a/src/devices/bus/nes/act53.h +++ b/src/devices/bus/nes/act53.h @@ -22,7 +22,7 @@ class nes_action53_device : public nes_nrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: void update_prg(); diff --git a/src/devices/bus/nes/aladdin.h b/src/devices/bus/nes/aladdin.h index 06203ea1a6d..b97be914218 100644 --- a/src/devices/bus/nes/aladdin.h +++ b/src/devices/bus/nes/aladdin.h @@ -78,7 +78,7 @@ class nes_aladdin_slot_device : public device_t, protected: // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; aladdin_cart_interface *m_cart; }; @@ -103,7 +103,7 @@ class nes_algn_rom_device : public device_t, nes_algn_rom_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; virtual uint8_t* get_cart_base(); virtual void write_prg(uint32_t offset, uint8_t data) override; @@ -111,8 +111,8 @@ class nes_algn_rom_device : public device_t, nes_algn_rom_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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; }; @@ -129,8 +129,8 @@ class nes_algq_rom_device : public nes_algn_rom_device 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; uint8_t m_bank_base; }; @@ -161,8 +161,8 @@ class nes_aladdin_device : public nes_nrom_device protected: // device_t implementation - 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; required_device m_subslot; }; diff --git a/src/devices/bus/nes/ave.h b/src/devices/bus/nes/ave.h index b21a99ac4f2..60e196f9522 100644 --- a/src/devices/bus/nes/ave.h +++ b/src/devices/bus/nes/ave.h @@ -46,7 +46,7 @@ class nes_maxi15_device : public nes_nrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: u8 m_reg[2]; diff --git a/src/devices/bus/nes/bandai.h b/src/devices/bus/nes/bandai.h index 1a21f8a3052..ea3951b78a6 100644 --- a/src/devices/bus/nes/bandai.h +++ b/src/devices/bus/nes/bandai.h @@ -29,7 +29,7 @@ class nes_oekakids_device : public nes_nrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; void update_chr(); @@ -54,7 +54,7 @@ class nes_fcg_device : public nes_nrom_device nes_fcg_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; TIMER_CALLBACK_MEMBER(irq_timer_tick); @@ -97,9 +97,9 @@ class nes_lz93d50_24c01_device : public nes_lz93d50_device nes_lz93d50_24c01_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; // TODO: fix EEPROM I/O emulation required_device m_i2cmem; @@ -117,7 +117,7 @@ class nes_lz93d50_24c02_device : public nes_lz93d50_24c01_device protected: // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; @@ -137,7 +137,7 @@ class nes_fjump2_device : public nes_lz93d50_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; void set_prg(); uint8_t m_reg[5]; diff --git a/src/devices/bus/nes/batlab.h b/src/devices/bus/nes/batlab.h index 9861afe8a87..905fe1ab3d9 100644 --- a/src/devices/bus/nes/batlab.h +++ b/src/devices/bus/nes/batlab.h @@ -40,7 +40,7 @@ class nes_batmap_srrx_device : public nes_nrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: u8 read_dpcm(); diff --git a/src/devices/bus/nes/benshieng.h b/src/devices/bus/nes/benshieng.h index 2292b57a270..17598c6a3d2 100644 --- a/src/devices/bus/nes/benshieng.h +++ b/src/devices/bus/nes/benshieng.h @@ -22,7 +22,7 @@ class nes_benshieng_device : public nes_nrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: u8 m_dipsetting; diff --git a/src/devices/bus/nes/bootleg.h b/src/devices/bus/nes/bootleg.h index 93cdaa2ec6f..06f10d8b06e 100644 --- a/src/devices/bus/nes/bootleg.h +++ b/src/devices/bus/nes/bootleg.h @@ -20,7 +20,7 @@ class nes_sc127_device : public nes_nrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: uint16_t m_irq_count; @@ -43,7 +43,7 @@ class nes_mbaby_device : public nes_nrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; TIMER_CALLBACK_MEMBER(irq_timer_tick); @@ -71,7 +71,7 @@ class nes_asn_device : public nes_nrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: uint8_t m_latch; @@ -93,7 +93,7 @@ class nes_smb3p_device : public nes_nrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; TIMER_CALLBACK_MEMBER(irq_timer_tick); @@ -132,7 +132,7 @@ class nes_btl_dn_device : public nes_nrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: uint16_t m_irq_count; @@ -157,7 +157,7 @@ class nes_smb2j_device : public nes_nrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; TIMER_CALLBACK_MEMBER(irq_timer_tick); @@ -186,7 +186,7 @@ class nes_smb2ja_device : public nes_nrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; TIMER_CALLBACK_MEMBER(irq_timer_tick); @@ -216,7 +216,7 @@ class nes_smb2jb_device : public nes_nrom_device nes_smb2jb_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, u8 bank67); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; TIMER_CALLBACK_MEMBER(irq_timer_tick); @@ -261,7 +261,7 @@ class nes_0353_device : public nes_nrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: u8 m_reg; @@ -284,7 +284,7 @@ class nes_09034a_device : public nes_nrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; TIMER_CALLBACK_MEMBER(irq_timer_tick); @@ -311,7 +311,7 @@ class nes_l001_device : public nes_nrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; TIMER_CALLBACK_MEMBER(irq_timer_tick); @@ -336,7 +336,7 @@ class nes_batmanfs_device : public nes_nrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; TIMER_CALLBACK_MEMBER(irq_timer_tick); @@ -365,7 +365,7 @@ class nes_palthena_device : public nes_nrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: u8 m_reg; @@ -387,7 +387,7 @@ class nes_tobidase_device : public nes_nrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: uint8_t m_latch; @@ -408,7 +408,7 @@ class nes_whirlwind_device : public nes_nrom_device nes_whirlwind_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; u8 m_reg; }; @@ -479,7 +479,7 @@ class nes_lh32_device : public nes_nrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: uint8_t m_latch; @@ -500,7 +500,7 @@ class nes_lh42_device : public nes_nrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: u8 m_latch; @@ -521,7 +521,7 @@ class nes_lg25_device : public nes_nrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: u8 m_latch; @@ -544,7 +544,7 @@ class nes_lh10_device : public nes_nrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: u8 m_latch; @@ -582,7 +582,7 @@ class nes_lh53_device : public nes_nrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; TIMER_CALLBACK_MEMBER(irq_timer_tick); @@ -613,7 +613,7 @@ class nes_2708_device : public nes_nrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: uint8_t m_reg[2]; @@ -636,7 +636,7 @@ class nes_ac08_device : public nes_nrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: uint8_t m_latch; @@ -687,7 +687,7 @@ class nes_yung08_device : public nes_nrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; TIMER_CALLBACK_MEMBER(irq_timer_tick); diff --git a/src/devices/bus/nes/camerica.h b/src/devices/bus/nes/camerica.h index 0c2c2487361..6dcd3fd79a6 100644 --- a/src/devices/bus/nes/camerica.h +++ b/src/devices/bus/nes/camerica.h @@ -38,7 +38,7 @@ class nes_bf9096_device : public nes_nrom_device nes_bf9096_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, bool page_swap); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: u8 m_reg; @@ -70,7 +70,7 @@ class nes_golden5_device : public nes_nrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: u8 m_lock, m_reg; diff --git a/src/devices/bus/nes/cony.h b/src/devices/bus/nes/cony.h index 8f2faea4a40..0d25e08e94c 100644 --- a/src/devices/bus/nes/cony.h +++ b/src/devices/bus/nes/cony.h @@ -29,7 +29,7 @@ class nes_cony_device : public nes_nrom_device nes_cony_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, u16 extra_addr, u8 mask); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void set_prg(); virtual void set_chr(); diff --git a/src/devices/bus/nes/datach.h b/src/devices/bus/nes/datach.h index e9e42379948..8059d234564 100644 --- a/src/devices/bus/nes/datach.h +++ b/src/devices/bus/nes/datach.h @@ -79,7 +79,7 @@ class nes_datach_slot_device : public device_t, protected: // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; datach_cart_interface *m_cart; }; @@ -108,9 +108,9 @@ class nes_datach_rom_device : public device_t, public datach_cart_interface nes_datach_rom_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 const tiny_rom_entry *device_rom_region() const 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; }; // ======================> nes_datach_24c01_device @@ -123,7 +123,7 @@ class nes_datach_24c01_device : public nes_datach_rom_device protected: // device_t implementation - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; // device type definition @@ -153,8 +153,8 @@ class nes_datach_device : public nes_lz93d50_device protected: // device_t implementation - 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; TIMER_CALLBACK_MEMBER(irq_timer_tick); TIMER_CALLBACK_MEMBER(serial_tick); diff --git a/src/devices/bus/nes/disksys.h b/src/devices/bus/nes/disksys.h index 021be514029..248b3b1d88f 100644 --- a/src/devices/bus/nes/disksys.h +++ b/src/devices/bus/nes/disksys.h @@ -32,10 +32,10 @@ class nes_disksys_device : public nes_nrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; - 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_region_ptr m_2c33_rom; diff --git a/src/devices/bus/nes/event.h b/src/devices/bus/nes/event.h index b10a3f95ee1..8a0de36a199 100644 --- a/src/devices/bus/nes/event.h +++ b/src/devices/bus/nes/event.h @@ -21,8 +21,8 @@ class nes_event_device : public nes_sxrom_device protected: // device-level overrides - 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 void set_prg() override; virtual void set_chr() override; @@ -57,8 +57,8 @@ class nes_event2_device : public nes_tqrom_device protected: // device-level overrides - 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; TIMER_CALLBACK_MEMBER(event_tick); diff --git a/src/devices/bus/nes/ggenie.h b/src/devices/bus/nes/ggenie.h index 6370301d19a..baca7c4dc15 100644 --- a/src/devices/bus/nes/ggenie.h +++ b/src/devices/bus/nes/ggenie.h @@ -37,9 +37,9 @@ class nes_ggenie_device : public nes_nrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: // passthrough cart slot diff --git a/src/devices/bus/nes/irem.h b/src/devices/bus/nes/irem.h index eef809ca7b5..1996b8f7455 100644 --- a/src/devices/bus/nes/irem.h +++ b/src/devices/bus/nes/irem.h @@ -67,7 +67,7 @@ class nes_g101_device : public nes_nrom_device nes_g101_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, u8 prg_mask); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; void set_prg(); u8 m_latch; @@ -92,7 +92,7 @@ class nes_h3001_device : public nes_g101_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; TIMER_CALLBACK_MEMBER(irq_timer_tick); diff --git a/src/devices/bus/nes/jaleco.h b/src/devices/bus/nes/jaleco.h index 7ed1b13d25a..96c235f77f5 100644 --- a/src/devices/bus/nes/jaleco.h +++ b/src/devices/bus/nes/jaleco.h @@ -33,7 +33,7 @@ class nes_jf13_device : public nes_nrom_device protected: // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: required_device m_samples; @@ -70,7 +70,7 @@ class nes_jf17_device : public nes_nrom_device nes_jf17_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, bool m_prg_flip); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; optional_device m_samples; @@ -89,7 +89,7 @@ class nes_jf17_adpcm_device : public nes_jf17_device nes_jf17_adpcm_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); protected: - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; @@ -112,7 +112,7 @@ class nes_jf19_adpcm_device : public nes_jf17_device nes_jf19_adpcm_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); protected: - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; @@ -134,7 +134,7 @@ class nes_ss88006_device : public nes_nrom_device nes_ss88006_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; TIMER_CALLBACK_MEMBER(irq_timer_tick); @@ -162,7 +162,7 @@ class nes_jf23_device : public nes_ss88006_device nes_jf23_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); protected: - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; @@ -175,7 +175,7 @@ class nes_jf24_device : public nes_ss88006_device nes_jf24_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); protected: - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; @@ -188,7 +188,7 @@ class nes_jf29_device : public nes_ss88006_device nes_jf29_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); protected: - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; @@ -201,7 +201,7 @@ class nes_jf33_device : public nes_ss88006_device nes_jf33_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); protected: - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; diff --git a/src/devices/bus/nes/jncota.h b/src/devices/bus/nes/jncota.h index 441e6723969..586d797c262 100644 --- a/src/devices/bus/nes/jncota.h +++ b/src/devices/bus/nes/jncota.h @@ -22,7 +22,7 @@ class nes_jncota_kt1001_device : public nes_nrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: u8 m_reg[3]; diff --git a/src/devices/bus/nes/jy.h b/src/devices/bus/nes/jy.h index 69c4ea8b04e..4f36fd68b4c 100644 --- a/src/devices/bus/nes/jy.h +++ b/src/devices/bus/nes/jy.h @@ -31,7 +31,7 @@ class nes_jy_typea_device : public nes_nrom_device nes_jy_typea_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; TIMER_CALLBACK_MEMBER(irq_timer_tick); diff --git a/src/devices/bus/nes/kaiser.h b/src/devices/bus/nes/kaiser.h index bfed01f40f9..6eb8d90161f 100644 --- a/src/devices/bus/nes/kaiser.h +++ b/src/devices/bus/nes/kaiser.h @@ -20,7 +20,7 @@ class nes_ks106c_device : public nes_nrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: u8 m_latch; @@ -54,7 +54,7 @@ class nes_ks7022_device : public nes_nrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: u8 m_latch; @@ -79,7 +79,7 @@ class nes_ks7032_device : public nes_nrom_device nes_ks7032_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; TIMER_CALLBACK_MEMBER(irq_timer_tick); @@ -127,7 +127,7 @@ class nes_ks7016_device : public nes_nrom_device nes_ks7016_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, u8 a15_flip); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: u8 m_latch; @@ -161,7 +161,7 @@ class nes_ks7017_device : public nes_nrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; TIMER_CALLBACK_MEMBER(irq_timer_tick); @@ -205,7 +205,7 @@ class nes_ks7010_device : public nes_nrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: u8 m_latch; @@ -258,7 +258,7 @@ class nes_ks7030_device : public nes_nrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: u8 m_reg[2]; @@ -281,7 +281,7 @@ class nes_ks7031_device : public nes_nrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: u8 m_reg[4]; @@ -305,7 +305,7 @@ class nes_ks7037_device : public nes_nrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: u8 m_reg; @@ -328,7 +328,7 @@ class nes_ks7057_device : public nes_nrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: u8 m_reg[8]; diff --git a/src/devices/bus/nes/karastudio.h b/src/devices/bus/nes/karastudio.h index 1a1b1cf2132..b76f8b7f035 100644 --- a/src/devices/bus/nes/karastudio.h +++ b/src/devices/bus/nes/karastudio.h @@ -77,7 +77,7 @@ class nes_kstudio_slot_device : public device_t, protected: // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; kstudio_cart_interface *m_cart; }; @@ -105,9 +105,9 @@ class nes_kstudio_rom_device : public device_t, protected: // device_t implementation - virtual void device_start() override; - virtual void device_reset() 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 const tiny_rom_entry *device_rom_region() const override ATTR_COLD; }; // device type definition @@ -136,10 +136,10 @@ class nes_karaokestudio_device : public nes_nrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; - virtual ioport_constructor device_input_ports() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: int m_exp_active; diff --git a/src/devices/bus/nes/konami.h b/src/devices/bus/nes/konami.h index ced0f7f4648..67aa4e6f4be 100644 --- a/src/devices/bus/nes/konami.h +++ b/src/devices/bus/nes/konami.h @@ -24,7 +24,7 @@ class nes_konami_vrc1_device : public nes_nrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: u8 m_mmc_vrom_bank[2]; @@ -50,7 +50,7 @@ class nes_konami_vrc2_device : public nes_nrom_device nes_konami_vrc2_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: u8 m_mmc_vrom_bank[8]; @@ -72,7 +72,7 @@ class nes_konami_vrc3_device : public nes_nrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; TIMER_CALLBACK_MEMBER(irq_timer_tick); @@ -104,7 +104,7 @@ class nes_konami_vrc4_device : public nes_nrom_device nes_konami_vrc4_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; TIMER_CALLBACK_MEMBER(irq_timer_tick); @@ -143,7 +143,7 @@ class nes_konami_vrc6_device : public nes_konami_vrc4_device protected: // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: required_device m_vrc6snd; @@ -164,7 +164,7 @@ class nes_konami_vrc7_device : public nes_konami_vrc4_device protected: // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: required_device m_vrc7snd; diff --git a/src/devices/bus/nes/legacy.h b/src/devices/bus/nes/legacy.h index 191a718da45..4721856abfe 100644 --- a/src/devices/bus/nes/legacy.h +++ b/src/devices/bus/nes/legacy.h @@ -39,7 +39,7 @@ class nes_ffe4_device : public nes_nrom_device nes_ffe4_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; TIMER_CALLBACK_MEMBER(irq_timer_tick); diff --git a/src/devices/bus/nes/mmc1.h b/src/devices/bus/nes/mmc1.h index cdeee5056c6..64c508976ac 100644 --- a/src/devices/bus/nes/mmc1.h +++ b/src/devices/bus/nes/mmc1.h @@ -26,7 +26,7 @@ class nes_sxrom_device : public nes_nrom_device nes_sxrom_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; TIMER_CALLBACK_MEMBER(resync_callback); diff --git a/src/devices/bus/nes/mmc1_clones.h b/src/devices/bus/nes/mmc1_clones.h index 993a0c1366d..dbb2ef93061 100644 --- a/src/devices/bus/nes/mmc1_clones.h +++ b/src/devices/bus/nes/mmc1_clones.h @@ -22,7 +22,7 @@ class nes_bmc_jy012005_device : public nes_sxrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void set_prg() override; virtual void set_chr() override; @@ -47,7 +47,7 @@ class nes_bmc_jy820845c_device : public nes_sxrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void set_prg() override { nes_sxrom_device::set_prg(0x18, 0x07); } virtual void set_chr() override { nes_sxrom_device::set_chr(0x18, 0x07); } @@ -72,7 +72,7 @@ class nes_farid_slrom_device : public nes_sxrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void set_prg() override { nes_sxrom_device::set_prg((m_outer & 0x70) >> 1, 0x07); } virtual void set_chr() override { nes_sxrom_device::set_chr((m_outer & 0x70) << 1, 0x1f); } @@ -110,7 +110,7 @@ class nes_resetsxrom_device : public nes_sxrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void set_prg() override { nes_sxrom_device::set_prg(m_reset_count << 3, 0x07); } virtual void set_chr() override { nes_sxrom_device::set_chr(m_reset_count << 5, 0x1f); } @@ -136,7 +136,7 @@ class nes_srpg5in1_device : public nes_sxrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void set_prg() override { nes_sxrom_device::set_prg((m_outer & 0x07) << 4, 0x0f); } virtual void set_chr() override { nes_sxrom_device::set_chr(0x00, 0x01); } @@ -161,7 +161,7 @@ class nes_txc_22110_device : public nes_sxrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void set_prg() override { nes_sxrom_device::set_prg(0x08, 0x07); } virtual void set_chr() override { nes_sxrom_device::set_chr(0x20, 0x1f); } diff --git a/src/devices/bus/nes/mmc2.h b/src/devices/bus/nes/mmc2.h index 1a6c8963826..0a83cdb721b 100644 --- a/src/devices/bus/nes/mmc2.h +++ b/src/devices/bus/nes/mmc2.h @@ -26,7 +26,7 @@ class nes_pxrom_device : public nes_nrom_device nes_pxrom_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; uint8_t m_reg[4]; int m_latch1, m_latch2; diff --git a/src/devices/bus/nes/mmc3.h b/src/devices/bus/nes/mmc3.h index 1bc3cc0536c..5e231787d71 100644 --- a/src/devices/bus/nes/mmc3.h +++ b/src/devices/bus/nes/mmc3.h @@ -71,7 +71,7 @@ class nes_hkrom_device : public nes_txrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; int m_wram_enable; uint8_t m_mmc6_reg; diff --git a/src/devices/bus/nes/mmc3_clones.h b/src/devices/bus/nes/mmc3_clones.h index 47f0d4cff5f..e114748cc66 100644 --- a/src/devices/bus/nes/mmc3_clones.h +++ b/src/devices/bus/nes/mmc3_clones.h @@ -35,7 +35,7 @@ class nes_bmw8544_device : public nes_txrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void set_prg(int prg_base, int prg_mask) override; @@ -97,7 +97,7 @@ class nes_family4646_device : public nes_txrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: u8 m_reg[4]; @@ -120,7 +120,7 @@ class nes_pikay2k_device : public nes_txrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: uint8_t m_reg[2]; @@ -146,7 +146,7 @@ class nes_8237_device : public nes_txrom_device nes_8237_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, u8 board); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: void update_banks(); @@ -180,7 +180,7 @@ class nes_158b_device : public nes_8237_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: int m_prot; @@ -205,7 +205,7 @@ class nes_kasing_device : public nes_txrom_device nes_kasing_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: bool m_mmc3_mode; @@ -258,7 +258,7 @@ class nes_kay_device : public nes_txrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void set_prg(int prg_base, int prg_mask) override; @@ -287,7 +287,7 @@ class nes_h2288_device : public nes_txrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: bool m_mmc3_mode; @@ -313,7 +313,7 @@ class nes_6035052_device : public nes_txrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: uint8_t m_prot; @@ -363,7 +363,7 @@ class nes_kof96_device : public nes_txrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: bool m_mmc3_mode; @@ -415,7 +415,7 @@ class nes_gouder_device : public nes_txrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: uint8_t m_reg[5]; @@ -437,7 +437,7 @@ class nes_sa9602b_device : public nes_txrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: uint8_t m_reg; @@ -461,8 +461,8 @@ class nes_sachen_shero_device : public nes_txrom_device protected: // device-level overrides - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; private: required_ioport m_jumper; @@ -485,7 +485,7 @@ class nes_sachen_zgdh_device : public nes_txrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void set_chr(u8 chr, int chr_base, int chr_mask) override; @@ -507,7 +507,7 @@ class nes_a9746_device : public nes_txrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: void update_banks(uint8_t value); @@ -530,7 +530,7 @@ class nes_a88s1_device : public nes_txrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: void update_banks(); @@ -571,7 +571,7 @@ class nes_fk23c_device : public nes_txrom_device nes_fk23c_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; void fk23c_set_prg(); void fk23c_set_chr(); @@ -618,7 +618,7 @@ class nes_resettxrom_device : public nes_txrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: int m_count; @@ -641,7 +641,7 @@ class nes_s24in1sc03_device : public nes_txrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: uint8_t m_reg[3]; @@ -662,7 +662,7 @@ class nes_tech9in1_device : public nes_txrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: void update_banks(); @@ -685,7 +685,7 @@ class nes_bmc_5in1_device : public nes_txrom_device protected: // device-level overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; private: required_ioport m_jumper; @@ -754,7 +754,7 @@ class nes_bmc_hik8_device : public nes_txrom_device nes_bmc_hik8_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; u8 m_reg[4]; u8 m_count; @@ -804,7 +804,7 @@ class nes_bmc_kc885_device : public nes_bmc_hik8_device protected: // device-level overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; private: required_ioport m_jumper; @@ -839,7 +839,7 @@ class nes_bmc_hik4_device : public nes_txrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: bool m_mmc3_mode; @@ -877,8 +877,8 @@ class nes_bmc_f600_device : public nes_txsrom_device protected: // device-level overrides - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; virtual void set_chr(u8 chr, int chr_base, int chr_mask) override; @@ -902,7 +902,7 @@ class nes_bmc_gn45_device : public nes_txrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: bool m_lock; @@ -923,7 +923,7 @@ class nes_bmc_gold7in1_device : public nes_txrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: bool m_lock; @@ -959,7 +959,7 @@ class nes_bmc_k3033_device : public nes_txrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: bool m_mmc3_mode; @@ -981,7 +981,7 @@ class nes_bmc_l6in1_device : public nes_txrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void set_prg(int prg_base, int prg_mask) override; @@ -1005,7 +1005,7 @@ class nes_bmc_00202650_device : public nes_txrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void set_prg(int prg_base, int prg_mask) override; virtual void set_chr(u8 chr, int chr_base, int chr_mask) override; @@ -1030,7 +1030,7 @@ class nes_bmc_411120c_device : public nes_txrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: u8 m_reg; @@ -1051,7 +1051,7 @@ class nes_bmc_810305c_device : public nes_txsrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void set_prg(int prg_base, int prg_mask) override; virtual void set_chr(u8 chr, int chr_base, int chr_mask) override; @@ -1076,7 +1076,7 @@ class nes_bmc_820720c_device : public nes_txrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void set_prg(int prg_base, int prg_mask) override; virtual void set_chr(u8 chr, int chr_base, int chr_mask) override; @@ -1143,7 +1143,7 @@ class nes_bmc_yy841155c_device : public nes_txrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: u8 m_reg[2]; @@ -1166,7 +1166,7 @@ class nes_pjoy84_device : public nes_txrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: inline void set_base_mask(); @@ -1191,7 +1191,7 @@ class nes_smd133_device : public nes_txrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: void smd133_write(offs_t offset, u8 data); diff --git a/src/devices/bus/nes/mmc5.h b/src/devices/bus/nes/mmc5.h index a806c704883..692b96e6db8 100644 --- a/src/devices/bus/nes/mmc5.h +++ b/src/devices/bus/nes/mmc5.h @@ -36,8 +36,8 @@ class nes_exrom_device : public nes_nrom_device protected: // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; void set_mirror(int page, int src); void update_prg(); diff --git a/src/devices/bus/nes/multigame.h b/src/devices/bus/nes/multigame.h index e7c401ee3ab..f7cf1508458 100644 --- a/src/devices/bus/nes/multigame.h +++ b/src/devices/bus/nes/multigame.h @@ -35,7 +35,7 @@ class nes_caltron6in1_device : public nes_nrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: void update_chr(); @@ -57,7 +57,7 @@ class nes_caltron9in1_device : public nes_nrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: u8 m_latch[3]; @@ -79,7 +79,7 @@ class nes_rumblestat_device : public nes_nrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: uint8_t m_prg, m_chr; @@ -102,7 +102,7 @@ class nes_svision16_device : public nes_nrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: void update_prg(); @@ -124,7 +124,7 @@ class nes_farid_unrom_device : public nes_nrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: u8 m_reg; @@ -145,7 +145,7 @@ class nes_kn42_device : public nes_nrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: u8 m_latch; @@ -180,7 +180,7 @@ class nes_t262_device : public nes_nrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: u16 m_latch; @@ -243,7 +243,7 @@ class nes_vt5201_device : public nes_nrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: u8 m_latch, m_jumper; @@ -264,7 +264,7 @@ class nes_bmc_80013b_device : public nes_nrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: void update_prg(); @@ -300,7 +300,7 @@ class nes_bmc_830425c_device : public nes_nrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: u8 m_latch; @@ -321,7 +321,7 @@ class nes_bmc_830928c_device : public nes_nrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: u8 m_latch; @@ -342,7 +342,7 @@ class nes_bmc_850437c_device : public nes_nrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: u8 m_reg[2]; @@ -364,7 +364,7 @@ class nes_bmc_970630c_device : public nes_nrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: u8 m_latch; @@ -412,7 +412,7 @@ class nes_bmc_ds927_device : public nes_nrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: u8 m_latch, m_mode; @@ -434,7 +434,7 @@ class nes_bmc_gka_device : public nes_nrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: u8 m_reg[2]; @@ -479,7 +479,7 @@ class nes_bmc_gn91b_device : public nes_nrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: u8 m_latch; @@ -556,7 +556,7 @@ class nes_bmc_s009_device : public nes_nrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: u8 m_reg; @@ -593,7 +593,7 @@ class nes_bmc_tf2740_device : public nes_nrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: void update_chr(); @@ -617,7 +617,7 @@ class nes_bmc_th2348_device : public nes_nrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: u8 m_latch; @@ -650,7 +650,7 @@ class nes_bmc_ws_device : public nes_nrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: uint8_t m_latch; @@ -711,8 +711,8 @@ class nes_bmc_8157_device : public nes_nrom_device protected: // device-level overrides - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; private: required_ioport m_jumper; @@ -763,7 +763,7 @@ class nes_bmc_ball11_device : public nes_nrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: void update_prg(); @@ -785,7 +785,7 @@ class nes_bmc_22games_device : public nes_nrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: int m_latch, m_reset; @@ -807,7 +807,7 @@ class nes_bmc_64y2k_device : public nes_nrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: void update_banks(); @@ -831,7 +831,7 @@ class nes_bmc_420y2k_device : public nes_nrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: u8 m_latch, m_reg; @@ -852,7 +852,7 @@ class nes_bmc_12in1_device : public nes_nrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: void update_banks(); @@ -956,7 +956,7 @@ class nes_bmc_70in1_device : public nes_nrom_device nes_bmc_70in1_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void update_banks(); void update_prg(u8 bank); @@ -997,7 +997,7 @@ class nes_bmc_72in1_device : public nes_nrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: u8 m_extra_ram[4]; @@ -1018,7 +1018,7 @@ class nes_bmc_76in1_device : public nes_nrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: u8 m_reg[2]; @@ -1066,7 +1066,7 @@ class nes_bmc_1200in1_device : public nes_nrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: uint8_t m_vram_protect; @@ -1097,7 +1097,7 @@ class nes_bmc_4in1reset_device : public nes_nrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: u8 m_latch; @@ -1121,7 +1121,7 @@ class nes_bmc_42in1reset_device : public nes_nrom_device nes_bmc_42in1reset_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, u8 mirror_flip); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: u8 m_latch; @@ -1165,7 +1165,7 @@ class nes_vram_protect_device : public nes_nrom_device nes_vram_protect_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; bool m_vram_protect; }; @@ -1186,7 +1186,7 @@ class nes_bmc_60311c_device : public nes_vram_protect_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: void update_banks(); @@ -1212,7 +1212,7 @@ class nes_bmc_ctc12in1_device : public nes_vram_protect_device nes_bmc_ctc12in1_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; u8 m_reg[2]; }; @@ -1261,7 +1261,7 @@ class nes_bmc_fam250_device : public nes_bmc_k1029_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: u8 m_latch, m_reg; @@ -1282,7 +1282,7 @@ class nes_n625092_device : public nes_vram_protect_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: u16 m_latch[2]; diff --git a/src/devices/bus/nes/namcot.h b/src/devices/bus/nes/namcot.h index 13d30804b8a..d78bf509454 100644 --- a/src/devices/bus/nes/namcot.h +++ b/src/devices/bus/nes/namcot.h @@ -26,7 +26,7 @@ class nes_namcot3433_device : public nes_nrom_device nes_namcot3433_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: uint8_t m_latch; @@ -47,7 +47,7 @@ class nes_namcot3446_device : public nes_nrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: uint8_t m_latch; @@ -68,7 +68,7 @@ class nes_namcot3425_device : public nes_nrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: uint8_t m_latch; @@ -97,7 +97,7 @@ class nes_namcot340_device : public nes_nrom_device nes_namcot340_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; TIMER_CALLBACK_MEMBER(irq_timer_tick); @@ -121,7 +121,7 @@ class nes_namcot175_device : public nes_namcot340_device nes_namcot175_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual uint8_t read_m(offs_t offset) override; virtual void write_m(offs_t offset, uint8_t data) override; virtual void write_h(offs_t offset, uint8_t data) override; @@ -155,9 +155,9 @@ class nes_namcot163_device : public nes_namcot340_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: void set_mirror(uint8_t page, uint8_t data); diff --git a/src/devices/bus/nes/nanjing.h b/src/devices/bus/nes/nanjing.h index 979fbb1e5ee..9741da6e6cd 100644 --- a/src/devices/bus/nes/nanjing.h +++ b/src/devices/bus/nes/nanjing.h @@ -27,7 +27,7 @@ class nes_nanjing_device : public nes_nrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: uint8_t m_count; diff --git a/src/devices/bus/nes/nes_slot.h b/src/devices/bus/nes/nes_slot.h index ca2d884c226..743ee43f077 100644 --- a/src/devices/bus/nes/nes_slot.h +++ b/src/devices/bus/nes/nes_slot.h @@ -439,7 +439,7 @@ class nes_cart_slot_device : public device_t, protected: // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; const char * get_default_card_ines(get_default_card_software_hook &hook, const uint8_t *ROM, uint32_t len) const; static const char * get_default_card_unif(const uint8_t *ROM, uint32_t len); diff --git a/src/devices/bus/nes/ntdec.h b/src/devices/bus/nes/ntdec.h index 160511a388a..ad0c12aeef6 100644 --- a/src/devices/bus/nes/ntdec.h +++ b/src/devices/bus/nes/ntdec.h @@ -22,7 +22,7 @@ class nes_ntdec_asder_device : public nes_nrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: u8 m_latch, m_chr_outer; diff --git a/src/devices/bus/nes/nxrom.h b/src/devices/bus/nes/nxrom.h index 7dedbdb0cad..01d0a25aa0c 100644 --- a/src/devices/bus/nes/nxrom.h +++ b/src/devices/bus/nes/nxrom.h @@ -96,7 +96,7 @@ class nes_cnrom_device : public nes_nrom_device nes_cnrom_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: uint8_t m_chr_open_bus; diff --git a/src/devices/bus/nes/pirate.h b/src/devices/bus/nes/pirate.h index 9f7be76cc56..5ddfd26a0b4 100644 --- a/src/devices/bus/nes/pirate.h +++ b/src/devices/bus/nes/pirate.h @@ -51,7 +51,7 @@ class nes_fukutake_device : public nes_nrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: uint8_t m_latch; @@ -74,7 +74,7 @@ class nes_futuremedia_device : public nes_nrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: u8 m_irq_count, m_irq_count_latch; @@ -108,7 +108,7 @@ class nes_daou306_device : public nes_nrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: u8 m_reg[16]; @@ -159,7 +159,7 @@ class nes_edu2k_device : public nes_nrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: uint8_t m_latch; @@ -182,7 +182,7 @@ class nes_jy830623c_device : public nes_nrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: void update_banks(); @@ -209,7 +209,7 @@ class nes_43272_device : public nes_nrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: uint16_t m_latch; @@ -231,7 +231,7 @@ class nes_eh8813a_device : public nes_nrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: u8 m_jumper; @@ -257,7 +257,7 @@ class nes_fujiya_device : public nes_nrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: uint8_t m_latch; diff --git a/src/devices/bus/nes/pt554.h b/src/devices/bus/nes/pt554.h index 51c2bdd9af3..db0765e84c5 100644 --- a/src/devices/bus/nes/pt554.h +++ b/src/devices/bus/nes/pt554.h @@ -21,7 +21,7 @@ class nes_bandai_pt554_device : public nes_cnrom_device protected: // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: required_device m_samples; diff --git a/src/devices/bus/nes/racermate.h b/src/devices/bus/nes/racermate.h index cb74a06a6b0..abd8de946e8 100644 --- a/src/devices/bus/nes/racermate.h +++ b/src/devices/bus/nes/racermate.h @@ -15,7 +15,7 @@ class nes_racermate_device : public nes_nrom_device nes_racermate_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void write_h(offs_t offset, uint8_t data) override; virtual void pcb_reset() override; diff --git a/src/devices/bus/nes/rexsoft.h b/src/devices/bus/nes/rexsoft.h index 205dffce4d1..7bfd0e28f9e 100644 --- a/src/devices/bus/nes/rexsoft.h +++ b/src/devices/bus/nes/rexsoft.h @@ -25,7 +25,7 @@ class nes_rex_dbz5_device : public nes_txrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: uint8_t m_extra; @@ -47,7 +47,7 @@ class nes_rex_sl1632_device : public nes_txrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void set_prg(int prg_base, int prg_mask) override; diff --git a/src/devices/bus/nes/sachen.h b/src/devices/bus/nes/sachen.h index 51d80966380..a7bda355a5d 100644 --- a/src/devices/bus/nes/sachen.h +++ b/src/devices/bus/nes/sachen.h @@ -111,7 +111,7 @@ class nes_sachen_tcu02_device : public nes_nrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: uint8_t m_latch; @@ -145,7 +145,7 @@ class nes_sachen_3014_device : public nes_nrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: u8 m_latch; @@ -169,7 +169,7 @@ class nes_sachen_74x374_device : public nes_nrom_device nes_sachen_74x374_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; void set_mirror(uint8_t nt); uint8_t m_latch, m_mmc_vrom_bank; @@ -206,7 +206,7 @@ class nes_sachen_8259a_device : public nes_sachen_74x374_device nes_sachen_8259a_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void chr_update(); uint8_t m_reg[8]; diff --git a/src/devices/bus/nes/sealie.h b/src/devices/bus/nes/sealie.h index 734d69741c6..0b7a9a3b5a9 100644 --- a/src/devices/bus/nes/sealie.h +++ b/src/devices/bus/nes/sealie.h @@ -68,7 +68,7 @@ class nes_8bitxmas_device : public nes_unrom512_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: void update_led(); diff --git a/src/devices/bus/nes/somari.h b/src/devices/bus/nes/somari.h index 2c566696242..e284e5a78d3 100644 --- a/src/devices/bus/nes/somari.h +++ b/src/devices/bus/nes/somari.h @@ -27,7 +27,7 @@ class nes_somari_device : public nes_txrom_device nes_somari_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, u8 mmc1_prg_shift); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: void mmc1_reset_latch(); diff --git a/src/devices/bus/nes/subor.h b/src/devices/bus/nes/subor.h index a4ffc13a553..2fb12136852 100644 --- a/src/devices/bus/nes/subor.h +++ b/src/devices/bus/nes/subor.h @@ -26,7 +26,7 @@ class nes_subor0_device : protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: uint8_t m_reg[4]; @@ -47,7 +47,7 @@ class nes_subor1_device : protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: uint8_t m_reg[4]; @@ -71,7 +71,7 @@ class nes_subor2_device : protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: void update_banks(); diff --git a/src/devices/bus/nes/sunsoft.h b/src/devices/bus/nes/sunsoft.h index 000150922c7..05c82759d86 100644 --- a/src/devices/bus/nes/sunsoft.h +++ b/src/devices/bus/nes/sunsoft.h @@ -51,7 +51,7 @@ class nes_sunsoft_3_device : public nes_nrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; TIMER_CALLBACK_MEMBER(irq_timer_tick); @@ -82,7 +82,7 @@ class nes_sunsoft_4_device : public nes_nrom_device nes_sunsoft_4_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; u8 m_wram_enable; @@ -112,7 +112,7 @@ class nes_sunsoft_fme7_device : public nes_nrom_device nes_sunsoft_fme7_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; TIMER_CALLBACK_MEMBER(irq_timer_tick); @@ -138,7 +138,7 @@ class nes_sunsoft_5_device : public nes_sunsoft_fme7_device virtual void write_h(offs_t offset, uint8_t data) override; protected: - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: required_device m_ym2149; diff --git a/src/devices/bus/nes/sunsoft_dcs.h b/src/devices/bus/nes/sunsoft_dcs.h index bb98c1f8081..8fb49a81bd8 100644 --- a/src/devices/bus/nes/sunsoft_dcs.h +++ b/src/devices/bus/nes/sunsoft_dcs.h @@ -73,7 +73,7 @@ class nes_ntb_slot_device : public device_t, protected: // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; ntb_cart_interface *m_cart; }; @@ -101,8 +101,8 @@ class nes_ntb_rom_device : public device_t, protected: // device_t implementation - 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; }; // device type definition @@ -135,8 +135,8 @@ class nes_sunsoft_dcs_device : public nes_sunsoft_4_device protected: // device-level overrides - 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; TIMER_CALLBACK_MEMBER(protect_tick); diff --git a/src/devices/bus/nes/taito.h b/src/devices/bus/nes/taito.h index 6f3981aa993..791ed08ffe9 100644 --- a/src/devices/bus/nes/taito.h +++ b/src/devices/bus/nes/taito.h @@ -40,7 +40,7 @@ class nes_tc0190fmc_pal16r4_device : public nes_tc0190fmc_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: u8 m_irq_count, m_irq_count_latch; @@ -63,7 +63,7 @@ class nes_x1_005_device : public nes_nrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: u8 m_latch; @@ -89,7 +89,7 @@ class nes_x1_017_device : public nes_nrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; TIMER_CALLBACK_MEMBER(irq_timer_tick); diff --git a/src/devices/bus/nes/tengen.h b/src/devices/bus/nes/tengen.h index d5dbec1e88b..f753e5f67bb 100644 --- a/src/devices/bus/nes/tengen.h +++ b/src/devices/bus/nes/tengen.h @@ -23,7 +23,7 @@ class nes_tengen032_device : public nes_nrom_device nes_tengen032_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void set_chr(); diff --git a/src/devices/bus/nes/txc.h b/src/devices/bus/nes/txc.h index 4e7f938c1a8..a250dadcb30 100644 --- a/src/devices/bus/nes/txc.h +++ b/src/devices/bus/nes/txc.h @@ -26,7 +26,7 @@ class nes_txc_22211_device : public nes_nrom_device nes_txc_22211_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; uint8_t m_reg[4]; }; @@ -72,7 +72,7 @@ class nes_txc_strikew_device : public nes_nrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; u8 m_reg[4]; }; diff --git a/src/devices/bus/nes/vrc_clones.h b/src/devices/bus/nes/vrc_clones.h index c6fe5b55550..438ab5ef51a 100644 --- a/src/devices/bus/nes/vrc_clones.h +++ b/src/devices/bus/nes/vrc_clones.h @@ -22,7 +22,7 @@ class nes_2yudb_device : public nes_konami_vrc4_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void set_prg() override { nes_konami_vrc4_device::set_prg(m_outer, 0x1f); } @@ -45,7 +45,7 @@ class nes_900218_device : public nes_konami_vrc2_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; TIMER_CALLBACK_MEMBER(irq_timer_tick); @@ -69,7 +69,7 @@ class nes_ax40g_device : public nes_konami_vrc2_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; }; @@ -85,7 +85,7 @@ class nes_ax5705_device : public nes_konami_vrc4_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; }; @@ -103,7 +103,7 @@ class nes_bmc_830506c_device : public nes_konami_vrc4_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void irq_ack_w() override; virtual void set_prg() override { nes_konami_vrc4_device::set_prg(m_outer, 0x0f); } @@ -129,7 +129,7 @@ class nes_bmc_831128c_device : public nes_konami_vrc4_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: u8 m_reg; @@ -150,7 +150,7 @@ class nes_bmc_kl06_device : public nes_konami_vrc4_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void set_prg() override; virtual void set_chr() override { nes_konami_vrc4_device::set_chr((m_reg & 0x03) << 7, 0x7f); } @@ -172,7 +172,7 @@ class nes_cityfight_device : public nes_konami_vrc4_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; }; @@ -192,7 +192,7 @@ class nes_shuiguan_device : public nes_konami_vrc4_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: u8 m_reg; @@ -211,7 +211,7 @@ class nes_t230_device : public nes_konami_vrc4_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; }; @@ -225,7 +225,7 @@ class nes_tf1201_device : public nes_konami_vrc4_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void irq_ack_w() override; }; @@ -245,7 +245,7 @@ class nes_th21311_device : public nes_konami_vrc2_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; TIMER_CALLBACK_MEMBER(irq_timer_tick); @@ -274,7 +274,7 @@ class nes_waixing_sgz_device : public nes_konami_vrc4_device nes_waixing_sgz_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, u8 chr_match); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: u8 m_chr_mask, m_chr_match; diff --git a/src/devices/bus/nes/waixing.h b/src/devices/bus/nes/waixing.h index 78a979f4b0b..91a06eef3ac 100644 --- a/src/devices/bus/nes/waixing.h +++ b/src/devices/bus/nes/waixing.h @@ -28,7 +28,7 @@ class nes_waixing_a_device : public nes_txrom_device nes_waixing_a_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; void set_mirror(uint8_t nt); @@ -202,7 +202,7 @@ class nes_waixing_j_device : public nes_waixing_a_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void set_prg(int prg_base, int prg_mask) override; uint8_t m_reg[4]; @@ -223,7 +223,7 @@ class nes_waixing_sh2_device : public nes_txrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void set_chr(u8 chr, int chr_base, int chr_mask) override; @@ -248,7 +248,7 @@ class nes_waixing_sec_device : public nes_txrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; uint8_t m_reg; }; @@ -268,7 +268,7 @@ class nes_waixing_sgzlz_device : public nes_nrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; uint8_t m_reg[4]; }; @@ -288,7 +288,7 @@ class nes_waixing_ffv_device : public nes_nrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; uint8_t m_reg[2]; }; @@ -344,7 +344,7 @@ class nes_waixing_fs304_device : public nes_nrom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; uint8_t m_reg[4]; }; diff --git a/src/devices/bus/nes_ctrl/4score.h b/src/devices/bus/nes_ctrl/4score.h index 64e5cba8002..51dec907297 100644 --- a/src/devices/bus/nes_ctrl/4score.h +++ b/src/devices/bus/nes_ctrl/4score.h @@ -31,8 +31,8 @@ class nes_4score_device : public device_t, nes_4score_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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; uint32_t m_latch; }; @@ -49,7 +49,7 @@ class nes_4score_p1p3_device : public nes_4score_device protected: // device-level overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; private: required_ioport m_joypad1; @@ -68,7 +68,7 @@ class nes_4score_p2p4_device : public nes_4score_device protected: // device-level overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; private: required_ioport m_joypad2; diff --git a/src/devices/bus/nes_ctrl/arkpaddle.h b/src/devices/bus/nes_ctrl/arkpaddle.h index 7ac48917adb..2dc20d63b92 100644 --- a/src/devices/bus/nes_ctrl/arkpaddle.h +++ b/src/devices/bus/nes_ctrl/arkpaddle.h @@ -34,8 +34,8 @@ class nes_vaus_device : public device_t, public device_nes_control_port_interfac nes_vaus_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); // device-level overrides - 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; required_ioport m_paddle; required_ioport m_button; @@ -57,7 +57,7 @@ class nes_vausfc_device : public nes_vaus_device protected: // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: required_device m_daisychain; diff --git a/src/devices/bus/nes_ctrl/bandaihs.h b/src/devices/bus/nes_ctrl/bandaihs.h index 3ab57b5a053..169b9eaa5e1 100644 --- a/src/devices/bus/nes_ctrl/bandaihs.h +++ b/src/devices/bus/nes_ctrl/bandaihs.h @@ -33,9 +33,9 @@ class nes_bandaihs_device : public device_t, protected: // device-level overrides - virtual void device_start() override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual void device_start() override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; private: required_device m_sensor; diff --git a/src/devices/bus/nes_ctrl/bcbattle.h b/src/devices/bus/nes_ctrl/bcbattle.h index c51f2db64ac..907a0c550f8 100644 --- a/src/devices/bus/nes_ctrl/bcbattle.h +++ b/src/devices/bus/nes_ctrl/bcbattle.h @@ -32,10 +32,10 @@ class nes_bcbattle_device : public device_t, 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 device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; int read_current_bit(); diff --git a/src/devices/bus/nes_ctrl/ctrl.h b/src/devices/bus/nes_ctrl/ctrl.h index 01777358cda..3fb22995b3c 100644 --- a/src/devices/bus/nes_ctrl/ctrl.h +++ b/src/devices/bus/nes_ctrl/ctrl.h @@ -82,7 +82,7 @@ class nes_control_port_device : public device_t, protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // devices device_nes_control_port_interface *m_device; diff --git a/src/devices/bus/nes_ctrl/dorepiano.h b/src/devices/bus/nes_ctrl/dorepiano.h index 63f6c1eb7af..41d2ef2860d 100644 --- a/src/devices/bus/nes_ctrl/dorepiano.h +++ b/src/devices/bus/nes_ctrl/dorepiano.h @@ -33,8 +33,8 @@ class nes_dorepiano_device : protected: // device-level overrides - 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; private: required_ioport_array<8> m_port; diff --git a/src/devices/bus/nes_ctrl/fckeybrd.h b/src/devices/bus/nes_ctrl/fckeybrd.h index 137ff90fc1f..0260c5386db 100644 --- a/src/devices/bus/nes_ctrl/fckeybrd.h +++ b/src/devices/bus/nes_ctrl/fckeybrd.h @@ -33,10 +33,10 @@ class nes_fckeybrd_device : public device_t, protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; - virtual ioport_constructor device_input_ports() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: required_device m_cassette; diff --git a/src/devices/bus/nes_ctrl/fcmat.h b/src/devices/bus/nes_ctrl/fcmat.h index 0ed731c9067..70e65a3318f 100644 --- a/src/devices/bus/nes_ctrl/fcmat.h +++ b/src/devices/bus/nes_ctrl/fcmat.h @@ -34,7 +34,7 @@ class nes_fcmat_device : nes_fcmat_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: required_ioport_array<4> m_mat; @@ -52,7 +52,7 @@ class nes_ftrainer_device : public nes_fcmat_device protected: // device-level overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; }; @@ -66,7 +66,7 @@ class nes_taptapmat_device : public nes_fcmat_device protected: // device-level overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; }; diff --git a/src/devices/bus/nes_ctrl/hori.h b/src/devices/bus/nes_ctrl/hori.h index 6146aa90d52..f8bd7f7c692 100644 --- a/src/devices/bus/nes_ctrl/hori.h +++ b/src/devices/bus/nes_ctrl/hori.h @@ -33,7 +33,7 @@ class nes_horitwin_device : public device_t, protected: // device-level overrides virtual void device_start() override { } - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: required_device_array m_subexp; @@ -54,9 +54,9 @@ class nes_hori4p_device : public device_t, protected: // device-level overrides - virtual void device_start() override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual void device_start() override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; private: void reset_regs(); diff --git a/src/devices/bus/nes_ctrl/joypad.h b/src/devices/bus/nes_ctrl/joypad.h index 5e54f26a079..d1911111976 100644 --- a/src/devices/bus/nes_ctrl/joypad.h +++ b/src/devices/bus/nes_ctrl/joypad.h @@ -35,8 +35,8 @@ class nes_joypad_device : public device_t, nes_joypad_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, u32 latch_fill = 0x80); // device-level overrides - 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 void set_latch() { m_latch = m_joypad->read(); } @@ -74,7 +74,7 @@ class nes_fcpad2_device : public nes_joypad_device protected: // device-level overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; private: required_ioport m_mic; @@ -91,7 +91,7 @@ class nes_ccpadl_device : public nes_joypad_device protected: // device-level overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; }; @@ -105,7 +105,7 @@ class nes_ccpadr_device : public nes_joypad_device protected: // device-level overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; }; @@ -122,8 +122,8 @@ class nes_arcstick_device : public nes_fcpadexp_device protected: // device-level overrides - virtual ioport_constructor device_input_ports() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: required_device m_daisychain; @@ -141,7 +141,7 @@ class nes_vboyctrl_device : public nes_joypad_device protected: // device-level overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; }; diff --git a/src/devices/bus/nes_ctrl/konamibag.h b/src/devices/bus/nes_ctrl/konamibag.h index ff98808c058..e7179763c38 100644 --- a/src/devices/bus/nes_ctrl/konamibag.h +++ b/src/devices/bus/nes_ctrl/konamibag.h @@ -35,8 +35,8 @@ class nes_konamibag_device : protected: // device-level overrides - 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; private: required_ioport_array<2> m_sensor; diff --git a/src/devices/bus/nes_ctrl/konamihs.h b/src/devices/bus/nes_ctrl/konamihs.h index 9e8f94b6823..0e960594387 100644 --- a/src/devices/bus/nes_ctrl/konamihs.h +++ b/src/devices/bus/nes_ctrl/konamihs.h @@ -32,8 +32,8 @@ class nes_konamihs_device : public device_t, protected: // device-level overrides - 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; private: required_ioport_array<2> m_ipt; diff --git a/src/devices/bus/nes_ctrl/miracle.h b/src/devices/bus/nes_ctrl/miracle.h index f06480d9a43..2e584c8664d 100644 --- a/src/devices/bus/nes_ctrl/miracle.h +++ b/src/devices/bus/nes_ctrl/miracle.h @@ -40,9 +40,9 @@ class nes_miracle_device : public device_t, static constexpr int RECV_RING_SIZE = 64; // device-level overrides - 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; TIMER_CALLBACK_MEMBER(strobe_tick); diff --git a/src/devices/bus/nes_ctrl/mjpanel.h b/src/devices/bus/nes_ctrl/mjpanel.h index bbe18208426..a14c0c75d46 100644 --- a/src/devices/bus/nes_ctrl/mjpanel.h +++ b/src/devices/bus/nes_ctrl/mjpanel.h @@ -32,8 +32,8 @@ class nes_mjpanel_device : public device_t, protected: // device-level overrides - 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; private: void set_latch(); diff --git a/src/devices/bus/nes_ctrl/pachinko.h b/src/devices/bus/nes_ctrl/pachinko.h index d70503c6fcf..709a589080d 100644 --- a/src/devices/bus/nes_ctrl/pachinko.h +++ b/src/devices/bus/nes_ctrl/pachinko.h @@ -28,7 +28,7 @@ class nes_pachinko_device : public nes_fcpadexp_device protected: // device-level overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; virtual void set_latch() override; diff --git a/src/devices/bus/nes_ctrl/partytap.h b/src/devices/bus/nes_ctrl/partytap.h index a8531a2b84d..4568665749a 100644 --- a/src/devices/bus/nes_ctrl/partytap.h +++ b/src/devices/bus/nes_ctrl/partytap.h @@ -32,8 +32,8 @@ class nes_partytap_device : public device_t, protected: // device-level overrides - 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; private: required_ioport m_inputs; diff --git a/src/devices/bus/nes_ctrl/powerpad.h b/src/devices/bus/nes_ctrl/powerpad.h index a6d76c81192..8fa8565ad26 100644 --- a/src/devices/bus/nes_ctrl/powerpad.h +++ b/src/devices/bus/nes_ctrl/powerpad.h @@ -32,8 +32,8 @@ class nes_powerpad_device : public device_t, protected: // device-level overrides - 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; private: required_ioport_array<2> m_ipt; diff --git a/src/devices/bus/nes_ctrl/rob.h b/src/devices/bus/nes_ctrl/rob.h index 05e529f45e2..36d46dd65ab 100644 --- a/src/devices/bus/nes_ctrl/rob.h +++ b/src/devices/bus/nes_ctrl/rob.h @@ -31,10 +31,10 @@ class nes_rob_device : public device_t, protected: // device-level overrides - virtual void device_start() override; - virtual void device_add_mconfig(machine_config &config) override; - virtual const tiny_rom_entry *device_rom_region() const override; - virtual ioport_constructor device_input_ports() const override; + virtual void device_start() 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; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; private: required_device m_maincpu; diff --git a/src/devices/bus/nes_ctrl/sharpcass.h b/src/devices/bus/nes_ctrl/sharpcass.h index c66b561c066..5d43c9be597 100644 --- a/src/devices/bus/nes_ctrl/sharpcass.h +++ b/src/devices/bus/nes_ctrl/sharpcass.h @@ -35,7 +35,7 @@ class nes_sharpcass_device : public device_t, // device-level overrides virtual void device_start() override { } - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: required_device m_cassette; diff --git a/src/devices/bus/nes_ctrl/snesadapter.h b/src/devices/bus/nes_ctrl/snesadapter.h index 903581466c7..dab91783a2a 100644 --- a/src/devices/bus/nes_ctrl/snesadapter.h +++ b/src/devices/bus/nes_ctrl/snesadapter.h @@ -33,7 +33,7 @@ class nes_snesadapter_device : public device_t, public device_nes_control_port_i protected: // device-level overrides virtual void device_start() override { } - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: required_device m_snesctrl; diff --git a/src/devices/bus/nes_ctrl/suborkey.h b/src/devices/bus/nes_ctrl/suborkey.h index a72c1dbaca7..5d99ce14de8 100644 --- a/src/devices/bus/nes_ctrl/suborkey.h +++ b/src/devices/bus/nes_ctrl/suborkey.h @@ -32,9 +32,9 @@ class nes_suborkey_device : public device_t, protected: // device-level overrides - virtual void device_start() override; - virtual void device_reset() override; - virtual ioport_constructor device_input_ports() const override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; private: required_ioport_array<13> m_kbd; diff --git a/src/devices/bus/nes_ctrl/turbofile.h b/src/devices/bus/nes_ctrl/turbofile.h index ba8545082d4..b95a28c6024 100644 --- a/src/devices/bus/nes_ctrl/turbofile.h +++ b/src/devices/bus/nes_ctrl/turbofile.h @@ -35,11 +35,11 @@ class nes_turbofile_device : public device_t, 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 ioport_constructor device_input_ports() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: required_device m_nvram; diff --git a/src/devices/bus/nes_ctrl/zapper.h b/src/devices/bus/nes_ctrl/zapper.h index 232a38cce5b..e22a4001551 100644 --- a/src/devices/bus/nes_ctrl/zapper.h +++ b/src/devices/bus/nes_ctrl/zapper.h @@ -35,9 +35,9 @@ class nes_zapper_device : public device_t, protected: // device-level overrides - virtual void device_start() override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual void device_start() override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; private: required_device m_sensor; diff --git a/src/devices/bus/newbrain/eim.h b/src/devices/bus/newbrain/eim.h index 89551a4bca4..bac4ff72ac7 100644 --- a/src/devices/bus/newbrain/eim.h +++ b/src/devices/bus/newbrain/eim.h @@ -40,12 +40,12 @@ class newbrain_eim_device : public device_t, public device_newbrain_expansion_s 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; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; // device_newbrain_expansion_slot_interface overrides virtual uint8_t mreq_r(offs_t offset, uint8_t data, bool &romov, int &exrm, bool &raminh) override; diff --git a/src/devices/bus/newbrain/exp.h b/src/devices/bus/newbrain/exp.h index 922ef17213a..cd250652428 100644 --- a/src/devices/bus/newbrain/exp.h +++ b/src/devices/bus/newbrain/exp.h @@ -76,8 +76,8 @@ class newbrain_expansion_slot_device : public device_t, 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; device_newbrain_expansion_slot_interface *m_card; }; diff --git a/src/devices/bus/newbrain/fdc.h b/src/devices/bus/newbrain/fdc.h index a95d4679d2b..4fc9340b9c0 100644 --- a/src/devices/bus/newbrain/fdc.h +++ b/src/devices/bus/newbrain/fdc.h @@ -32,12 +32,12 @@ class newbrain_fdc_device : public device_t, public device_newbrain_expansion_s 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; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; // device_newbrain_expansion_slot_interface overrides virtual uint8_t mreq_r(offs_t offset, uint8_t data, bool &romov, int &exrm, bool &raminh) override; @@ -52,8 +52,8 @@ class newbrain_fdc_device : public device_t, public device_newbrain_expansion_s uint8_t fdc_control_r(); void io_dec_w(uint8_t data); - void newbrain_fdc_io(address_map &map); - void newbrain_fdc_mem(address_map &map); + void newbrain_fdc_io(address_map &map) ATTR_COLD; + void newbrain_fdc_mem(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_fdc; diff --git a/src/devices/bus/nscsi/applecd.h b/src/devices/bus/nscsi/applecd.h index 577dfcf5b01..fa2d0fe3387 100644 --- a/src/devices/bus/nscsi/applecd.h +++ b/src/devices/bus/nscsi/applecd.h @@ -16,13 +16,13 @@ class applecd150_device : public device_t, public nscsi_slot_card_interface static constexpr feature_type unemulated_features() { return feature::DISK; } protected: - virtual void device_start() 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_add_mconfig(machine_config &config) override ATTR_COLD; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; private: - void prog_map(address_map &map); - void ext_map(address_map &map); + void prog_map(address_map &map) ATTR_COLD; + void ext_map(address_map &map) ATTR_COLD; }; DECLARE_DEVICE_TYPE(APPLECD150, applecd150_device) diff --git a/src/devices/bus/nscsi/cd.h b/src/devices/bus/nscsi/cd.h index 189f43d343a..939d3fa8210 100644 --- a/src/devices/bus/nscsi/cd.h +++ b/src/devices/bus/nscsi/cd.h @@ -35,9 +35,9 @@ class nscsi_cdrom_device : public nscsi_full_device this->compliance = compliance; } - 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; virtual void scsi_command() override; virtual uint8_t scsi_get_data(int id, int pos) override; @@ -129,7 +129,7 @@ class nscsi_cdrom_apple_device : public nscsi_cdrom_device { public: nscsi_cdrom_apple_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 0); - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; protected: virtual void scsi_command() override; diff --git a/src/devices/bus/nscsi/cdd2000.h b/src/devices/bus/nscsi/cdd2000.h index 546e4dfa96f..e08a187794f 100644 --- a/src/devices/bus/nscsi/cdd2000.h +++ b/src/devices/bus/nscsi/cdd2000.h @@ -16,13 +16,13 @@ class cdd2000_device : public device_t, public nscsi_slot_card_interface static constexpr feature_type unemulated_features() { return feature::DISK; } protected: - 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; private: - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; required_device m_cdcpu; required_memory_bank m_rombank; diff --git a/src/devices/bus/nscsi/cdrn820s.h b/src/devices/bus/nscsi/cdrn820s.h index c76fb007bbd..4d6a2df53e8 100644 --- a/src/devices/bus/nscsi/cdrn820s.h +++ b/src/devices/bus/nscsi/cdrn820s.h @@ -19,12 +19,12 @@ class cdrn820s_device : public device_t, public nscsi_slot_card_interface protected: cdrn820s_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); - virtual void device_start() 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_add_mconfig(machine_config &config) override ATTR_COLD; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; private: - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; required_device m_h8; }; diff --git a/src/devices/bus/nscsi/cdu415.h b/src/devices/bus/nscsi/cdu415.h index 11ccab36a2c..807eb774668 100644 --- a/src/devices/bus/nscsi/cdu415.h +++ b/src/devices/bus/nscsi/cdu415.h @@ -18,12 +18,12 @@ class cdu415_device : public device_t, public nscsi_slot_card_interface static constexpr feature_type unemulated_features() { return feature::DISK; } protected: - virtual void device_start() 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_add_mconfig(machine_config &config) override ATTR_COLD; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; private: - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; required_device m_mcu; required_device m_scsi; diff --git a/src/devices/bus/nscsi/cdu561.h b/src/devices/bus/nscsi/cdu561.h index 1e61ec179c9..74a0c29aef2 100644 --- a/src/devices/bus/nscsi/cdu561.h +++ b/src/devices/bus/nscsi/cdu561.h @@ -16,12 +16,12 @@ class cdu561_25_device : public device_t, public nscsi_slot_card_interface static constexpr feature_type unemulated_features() { return feature::DISK; } protected: - virtual void device_start() 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_add_mconfig(machine_config &config) override ATTR_COLD; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; private: - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; }; DECLARE_DEVICE_TYPE(CDU561_25, cdu561_25_device) diff --git a/src/devices/bus/nscsi/cdu75s.h b/src/devices/bus/nscsi/cdu75s.h index 5fd64d0d889..518060322c7 100644 --- a/src/devices/bus/nscsi/cdu75s.h +++ b/src/devices/bus/nscsi/cdu75s.h @@ -18,12 +18,12 @@ class cdu75s_device : public device_t, public nscsi_slot_card_interface static constexpr feature_type unemulated_features() { return feature::DISK; } protected: - virtual void device_start() 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_add_mconfig(machine_config &config) override ATTR_COLD; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; private: - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; required_device m_mcu; required_device m_scsi; diff --git a/src/devices/bus/nscsi/cfp1080s.h b/src/devices/bus/nscsi/cfp1080s.h index 8b0ea6d568b..8a9e4efb0ed 100644 --- a/src/devices/bus/nscsi/cfp1080s.h +++ b/src/devices/bus/nscsi/cfp1080s.h @@ -16,9 +16,9 @@ class cfp1080s_device : public nscsi_device, public nscsi_slot_card_interface static constexpr feature_type unemulated_features() { return feature::DISK; } protected: - virtual void device_start() 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_add_mconfig(machine_config &config) override ATTR_COLD; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; private: u8 ff081_r(); @@ -28,7 +28,7 @@ class cfp1080s_device : public nscsi_device, public nscsi_slot_card_interface void addrptrm_w(u8 data); void addrptrh_w(u8 data); - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; required_device m_hdcpu; diff --git a/src/devices/bus/nscsi/crd254sh.h b/src/devices/bus/nscsi/crd254sh.h index 3aacce43669..d3409d945b4 100644 --- a/src/devices/bus/nscsi/crd254sh.h +++ b/src/devices/bus/nscsi/crd254sh.h @@ -18,12 +18,12 @@ class crd254sh_device : public device_t, public nscsi_slot_card_interface static constexpr feature_type unemulated_features() { return feature::DISK; } protected: - virtual void device_start() 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_add_mconfig(machine_config &config) override ATTR_COLD; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; private: - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; required_device m_mcu; required_device m_scsi; diff --git a/src/devices/bus/nscsi/cw7501.h b/src/devices/bus/nscsi/cw7501.h index 0b785c4d3ba..17a41900704 100644 --- a/src/devices/bus/nscsi/cw7501.h +++ b/src/devices/bus/nscsi/cw7501.h @@ -19,16 +19,16 @@ class cw7501_device : public device_t, public nscsi_slot_card_interface protected: cw7501_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); - virtual void device_start() 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_add_mconfig(machine_config &config) override ATTR_COLD; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; private: u8 mystery_data_r(); void mystery_data_w(u8 data); void mystery_address_w(u8 data); - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; required_device m_cdcpu; @@ -43,7 +43,7 @@ class cdr4210_device : public cw7501_device static constexpr feature_type unemulated_features() { return feature::DISK; } protected: - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; }; DECLARE_DEVICE_TYPE(CW7501, cw7501_device) diff --git a/src/devices/bus/nscsi/hd.h b/src/devices/bus/nscsi/hd.h index 3dc2060099c..07c32689589 100644 --- a/src/devices/bus/nscsi/hd.h +++ b/src/devices/bus/nscsi/hd.h @@ -16,9 +16,9 @@ class nscsi_harddisk_device : public nscsi_full_device protected: nscsi_harddisk_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; virtual void scsi_command() override; virtual uint8_t scsi_get_data(int id, int pos) override; diff --git a/src/devices/bus/nscsi/s1410.h b/src/devices/bus/nscsi/s1410.h index c3341357a63..36ff2f5161b 100644 --- a/src/devices/bus/nscsi/s1410.h +++ b/src/devices/bus/nscsi/s1410.h @@ -71,7 +71,7 @@ class nscsi_s1410_device : public nscsi_harddisk_device SK_FORMAT_ERROR = 0x1a }; - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; virtual bool scsi_command_done(uint8_t command, uint8_t length) override; virtual void scsi_command() override; diff --git a/src/devices/bus/nscsi/smoc501.h b/src/devices/bus/nscsi/smoc501.h index a5a30179f82..1069e30fbd8 100644 --- a/src/devices/bus/nscsi/smoc501.h +++ b/src/devices/bus/nscsi/smoc501.h @@ -16,13 +16,13 @@ class smoc501_device : public device_t, public nscsi_slot_card_interface static constexpr feature_type unemulated_features() { return feature::DISK; } protected: - virtual void device_start() override; - virtual ioport_constructor device_input_ports() const 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 ioport_constructor device_input_ports() const 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; private: - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; }; DECLARE_DEVICE_TYPE(SMOC501, smoc501_device) diff --git a/src/devices/bus/nscsi/tape.h b/src/devices/bus/nscsi/tape.h index b3758252fa7..6f3dc1d67e6 100644 --- a/src/devices/bus/nscsi/tape.h +++ b/src/devices/bus/nscsi/tape.h @@ -23,11 +23,11 @@ class nscsi_tape_device : public nscsi_full_device nscsi_tape_device(const machine_config &config, device_type type, const char *tag, device_t *owner, u32 clock); // device_t implementation - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; // nscsi_full_device 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; virtual void scsi_command() override; virtual u8 scsi_get_data(int id, int pos) override; virtual void scsi_put_data(int id, int pos, u8 data) override; diff --git a/src/devices/bus/nubus/8lc.cpp b/src/devices/bus/nubus/8lc.cpp index 2e326def9d0..9b0ff52eb2c 100644 --- a/src/devices/bus/nubus/8lc.cpp +++ b/src/devices/bus/nubus/8lc.cpp @@ -67,13 +67,13 @@ class lcpds_cv8lc_device : public device_t, required_ioport m_monitor_config; // 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; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual const tiny_rom_entry *device_rom_region() const override; - virtual ioport_constructor device_input_ports() 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; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; u32 registers_r(offs_t offset, u32 mem_mask); void registers_w(offs_t offset, u32 data, u32 mem_mask); diff --git a/src/devices/bus/nubus/bootbug.h b/src/devices/bus/nubus/bootbug.h index 735d343eb6c..2293427281b 100644 --- a/src/devices/bus/nubus/bootbug.h +++ b/src/devices/bus/nubus/bootbug.h @@ -28,12 +28,12 @@ class nubus_bootbug_device : required_device m_uart; // 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; // 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; private: uint32_t dev_r(offs_t offset); diff --git a/src/devices/bus/nubus/laserview.cpp b/src/devices/bus/nubus/laserview.cpp index e4804b55547..9ed112fc5db 100644 --- a/src/devices/bus/nubus/laserview.cpp +++ b/src/devices/bus/nubus/laserview.cpp @@ -46,12 +46,12 @@ namespace { 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; // 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; private: u8 regs_r(offs_t offset); diff --git a/src/devices/bus/nubus/nubus.h b/src/devices/bus/nubus/nubus.h index 68ba2aca96a..e01a88adbb0 100644 --- a/src/devices/bus/nubus/nubus.h +++ b/src/devices/bus/nubus/nubus.h @@ -92,8 +92,8 @@ class nubus_slot_device : public device_t, public device_single_card_slot_interf nubus_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 m_nubus; @@ -142,7 +142,7 @@ class nubus_device : public device_t nubus_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; diff --git a/src/devices/bus/nubus/nubus_48gc.cpp b/src/devices/bus/nubus/nubus_48gc.cpp index 9237b893150..ef1d85362e5 100644 --- a/src/devices/bus/nubus/nubus_48gc.cpp +++ b/src/devices/bus/nubus/nubus_48gc.cpp @@ -92,11 +92,11 @@ class jmfb_device : jmfb_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; // palette implementation uint32_t palette_entries() const noexcept override; @@ -166,8 +166,8 @@ class nubus_48gc_device : public jmfb_device protected: // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual ioport_constructor device_input_ports() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; private: void mac_48gc_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0); @@ -180,8 +180,8 @@ class nubus_824gc_device : public jmfb_device protected: // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual ioport_constructor device_input_ports() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; }; diff --git a/src/devices/bus/nubus/nubus_asntmc3b.cpp b/src/devices/bus/nubus/nubus_asntmc3b.cpp index 1a384e4bd81..2756ca16456 100644 --- a/src/devices/bus/nubus/nubus_asntmc3b.cpp +++ b/src/devices/bus/nubus/nubus_asntmc3b.cpp @@ -60,12 +60,12 @@ class nubus_mac8390_device : public device_t, nubus_mac8390_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); // 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; // 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; u8 asntm3b_ram_r(offs_t offset); void asntm3b_ram_w(offs_t offset, u8 data); @@ -93,27 +93,27 @@ class nubus_appleenet_device : public nubus_mac8390_device { public: nubus_appleenet_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; }; class pds030_ethermac30i_device : public nubus_mac8390_device { public: pds030_ethermac30i_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; }; class pdslc_macconilc_device : public nubus_mac8390_device { public: pdslc_macconilc_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; }; void nubus_mac8390_device::device_add_mconfig(machine_config &config) diff --git a/src/devices/bus/nubus/nubus_cb264.cpp b/src/devices/bus/nubus/nubus_cb264.cpp index e0ef3750ae1..57a78196506 100644 --- a/src/devices/bus/nubus/nubus_cb264.cpp +++ b/src/devices/bus/nubus/nubus_cb264.cpp @@ -45,12 +45,12 @@ class nubus_cb264_device : public device_t, nubus_cb264_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); // 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; // 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; uint32_t cb264_r(offs_t offset, uint32_t mem_mask = ~0); void cb264_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0); diff --git a/src/devices/bus/nubus/nubus_image.cpp b/src/devices/bus/nubus/nubus_image.cpp index 3d17b2500a1..fcbfe6e6130 100644 --- a/src/devices/bus/nubus/nubus_image.cpp +++ b/src/devices/bus/nubus/nubus_image.cpp @@ -54,8 +54,8 @@ class nubus_image_device::messimg_disk_image_device : public device_t, public de 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; public: uint32_t m_size; diff --git a/src/devices/bus/nubus/nubus_image.h b/src/devices/bus/nubus/nubus_image.h index ae9257ac0c4..02cb0f8df68 100644 --- a/src/devices/bus/nubus/nubus_image.h +++ b/src/devices/bus/nubus/nubus_image.h @@ -49,12 +49,12 @@ class nubus_image_device : nubus_image_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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; // 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; uint32_t image_status_r(); void image_status_w(uint32_t data); diff --git a/src/devices/bus/nubus/nubus_m2hires.h b/src/devices/bus/nubus/nubus_m2hires.h index 91af4aedafd..609e0ad05e6 100644 --- a/src/devices/bus/nubus/nubus_m2hires.h +++ b/src/devices/bus/nubus/nubus_m2hires.h @@ -26,12 +26,12 @@ class nubus_m2hires_device : nubus_m2hires_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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; // 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; TIMER_CALLBACK_MEMBER(vbl_tick); diff --git a/src/devices/bus/nubus/nubus_m2video.h b/src/devices/bus/nubus/nubus_m2video.h index 79f0f777eed..c42ec1211b4 100644 --- a/src/devices/bus/nubus/nubus_m2video.h +++ b/src/devices/bus/nubus/nubus_m2video.h @@ -26,12 +26,12 @@ class nubus_m2video_device : nubus_m2video_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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; // 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; TIMER_CALLBACK_MEMBER(vbl_tick); diff --git a/src/devices/bus/nubus/nubus_radiustpd.h b/src/devices/bus/nubus/nubus_radiustpd.h index 54fbbaa329e..c714966eac4 100644 --- a/src/devices/bus/nubus/nubus_radiustpd.h +++ b/src/devices/bus/nubus/nubus_radiustpd.h @@ -26,12 +26,12 @@ class nubus_radiustpd_device : nubus_radiustpd_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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; // 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; TIMER_CALLBACK_MEMBER(vbl_tick); diff --git a/src/devices/bus/nubus/nubus_spec8.cpp b/src/devices/bus/nubus/nubus_spec8.cpp index e85430b0f17..5a75ca8ff64 100644 --- a/src/devices/bus/nubus/nubus_spec8.cpp +++ b/src/devices/bus/nubus/nubus_spec8.cpp @@ -85,13 +85,13 @@ class nubus_spec8s3_device : nubus_spec8s3_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual const tiny_rom_entry *device_rom_region() const override; - virtual ioport_constructor device_input_ports() 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; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; // palette implementation virtual uint32_t palette_entries() const noexcept override; diff --git a/src/devices/bus/nubus/nubus_specpdq.cpp b/src/devices/bus/nubus/nubus_specpdq.cpp index 6b06faa1b4b..5aec705f1b1 100644 --- a/src/devices/bus/nubus/nubus_specpdq.cpp +++ b/src/devices/bus/nubus/nubus_specpdq.cpp @@ -68,13 +68,13 @@ class nubus_specpdq_device : nubus_specpdq_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual const tiny_rom_entry *device_rom_region() const override; - virtual ioport_constructor device_input_ports() 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; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; // palette implementation virtual uint32_t palette_entries() const noexcept override; diff --git a/src/devices/bus/nubus/nubus_vikbw.cpp b/src/devices/bus/nubus/nubus_vikbw.cpp index 88f3ef5a5d4..b6feefc5fc9 100644 --- a/src/devices/bus/nubus/nubus_vikbw.cpp +++ b/src/devices/bus/nubus/nubus_vikbw.cpp @@ -39,12 +39,12 @@ class nubus_vikbw_device : public device_t, nubus_vikbw_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); // 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; // 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; private: u32 viking_ack_r(); diff --git a/src/devices/bus/nubus/nubus_wsportrait.cpp b/src/devices/bus/nubus/nubus_wsportrait.cpp index 77b6b43fda8..76a760c309a 100644 --- a/src/devices/bus/nubus/nubus_wsportrait.cpp +++ b/src/devices/bus/nubus/nubus_wsportrait.cpp @@ -43,12 +43,12 @@ class nubus_wsportrait_device : public device_t, nubus_wsportrait_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); // 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; // 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; TIMER_CALLBACK_MEMBER(vbl_tick); diff --git a/src/devices/bus/nubus/pds30_30hr.h b/src/devices/bus/nubus/pds30_30hr.h index 6114a5dcfa8..24e3580b970 100644 --- a/src/devices/bus/nubus/pds30_30hr.h +++ b/src/devices/bus/nubus/pds30_30hr.h @@ -26,12 +26,12 @@ class nubus_xceed30hr_device : nubus_xceed30hr_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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; // 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; TIMER_CALLBACK_MEMBER(vbl_tick); diff --git a/src/devices/bus/nubus/pds30_cb264.h b/src/devices/bus/nubus/pds30_cb264.h index b991dc44d1f..81ef6149ec8 100644 --- a/src/devices/bus/nubus/pds30_cb264.h +++ b/src/devices/bus/nubus/pds30_cb264.h @@ -26,12 +26,12 @@ class nubus_cb264se30_device : nubus_cb264se30_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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; // 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; TIMER_CALLBACK_MEMBER(vbl_tick); diff --git a/src/devices/bus/nubus/pds30_mc30.h b/src/devices/bus/nubus/pds30_mc30.h index 33cdabed6dc..3a1f5340230 100644 --- a/src/devices/bus/nubus/pds30_mc30.h +++ b/src/devices/bus/nubus/pds30_mc30.h @@ -26,12 +26,12 @@ class nubus_xceedmc30_device : nubus_xceedmc30_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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; // 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; TIMER_CALLBACK_MEMBER(vbl_tick); diff --git a/src/devices/bus/nubus/pds30_procolor816.h b/src/devices/bus/nubus/pds30_procolor816.h index 653186d572b..9f756611851 100644 --- a/src/devices/bus/nubus/pds30_procolor816.h +++ b/src/devices/bus/nubus/pds30_procolor816.h @@ -26,12 +26,12 @@ class nubus_procolor816_device : nubus_procolor816_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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; // 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; TIMER_CALLBACK_MEMBER(vbl_tick); diff --git a/src/devices/bus/nubus/pds30_sigmalview.h b/src/devices/bus/nubus/pds30_sigmalview.h index e120b00ab53..1fb2599333e 100644 --- a/src/devices/bus/nubus/pds30_sigmalview.h +++ b/src/devices/bus/nubus/pds30_sigmalview.h @@ -26,12 +26,12 @@ class nubus_lview_device : nubus_lview_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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; // 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; TIMER_CALLBACK_MEMBER(vbl_tick); diff --git a/src/devices/bus/nubus/quadralink.h b/src/devices/bus/nubus/quadralink.h index 3960c24d069..54c86b0c4f8 100644 --- a/src/devices/bus/nubus/quadralink.h +++ b/src/devices/bus/nubus/quadralink.h @@ -28,12 +28,12 @@ class nubus_quadralink_device : required_device m_scc1, m_scc2; // 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; // 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; private: uint32_t dev_r(offs_t offset, uint32_t mem_mask = ~0); diff --git a/src/devices/bus/nubus/thunder4gx.cpp b/src/devices/bus/nubus/thunder4gx.cpp index 0d092d1707d..cbc3853689f 100644 --- a/src/devices/bus/nubus/thunder4gx.cpp +++ b/src/devices/bus/nubus/thunder4gx.cpp @@ -63,13 +63,13 @@ class nubus_thunder4gx_device : public device_t, required_ioport m_monitor_config; // 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; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual const tiny_rom_entry *device_rom_region() const override; - virtual ioport_constructor device_input_ports() 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; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; u32 registers_r(offs_t offset, u32 mem_mask); void registers_w(offs_t offset, u32 data, u32 mem_mask); diff --git a/src/devices/bus/odyssey2/4in1.cpp b/src/devices/bus/odyssey2/4in1.cpp index 30f10d1d1bf..5adb1ecc403 100644 --- a/src/devices/bus/odyssey2/4in1.cpp +++ b/src/devices/bus/odyssey2/4in1.cpp @@ -27,7 +27,7 @@ class o2_4in1_device : public device_t, public device_o2_cart_interface o2_4in1_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void cart_init() override; diff --git a/src/devices/bus/odyssey2/chess.cpp b/src/devices/bus/odyssey2/chess.cpp index 9122e5fe378..ae8efb14ce8 100644 --- a/src/devices/bus/odyssey2/chess.cpp +++ b/src/devices/bus/odyssey2/chess.cpp @@ -30,8 +30,8 @@ class o2_chess_device : public device_t, public device_o2_cart_interface o2_chess_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); protected: - 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; virtual void cart_init() override; @@ -50,8 +50,8 @@ class o2_chess_device : public device_t, public device_o2_cart_interface u8 internal_rom_r(offs_t offset) { return m_exrom[offset]; } - void chess_io(address_map &map); - void chess_mem(address_map &map); + void chess_io(address_map &map) ATTR_COLD; + void chess_mem(address_map &map) ATTR_COLD; }; o2_chess_device::o2_chess_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock) : diff --git a/src/devices/bus/odyssey2/homecomp.cpp b/src/devices/bus/odyssey2/homecomp.cpp index 345d9270ca9..5b0457ebcb5 100644 --- a/src/devices/bus/odyssey2/homecomp.cpp +++ b/src/devices/bus/odyssey2/homecomp.cpp @@ -43,10 +43,10 @@ class o2_homecomp_device : public device_t, public device_o2_cart_interface o2_homecomp_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); protected: - virtual void device_start() override; - virtual void device_reset() override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() 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 ioport_constructor device_input_ports() const override ATTR_COLD; virtual void cart_init() override; @@ -71,8 +71,8 @@ class o2_homecomp_device : public device_t, public device_o2_cart_interface u8 internal_io_r(offs_t offset); u8 internal_rom_r(offs_t offset) { return m_exrom[offset]; } - void homecomp_io(address_map &map); - void homecomp_mem(address_map &map); + void homecomp_io(address_map &map) ATTR_COLD; + void homecomp_mem(address_map &map) ATTR_COLD; }; o2_homecomp_device::o2_homecomp_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock) : diff --git a/src/devices/bus/odyssey2/ktaa.cpp b/src/devices/bus/odyssey2/ktaa.cpp index f14fdf7c113..fa45748f6b5 100644 --- a/src/devices/bus/odyssey2/ktaa.cpp +++ b/src/devices/bus/odyssey2/ktaa.cpp @@ -23,7 +23,7 @@ class o2_ktaa_device : public device_t, public device_o2_cart_interface o2_ktaa_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void cart_init() override; diff --git a/src/devices/bus/odyssey2/rally.cpp b/src/devices/bus/odyssey2/rally.cpp index c02cf078c62..491a725367f 100644 --- a/src/devices/bus/odyssey2/rally.cpp +++ b/src/devices/bus/odyssey2/rally.cpp @@ -31,7 +31,7 @@ class o2_rally_device : public device_t, public device_o2_cart_interface o2_rally_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void cart_init() override; diff --git a/src/devices/bus/odyssey2/rom.cpp b/src/devices/bus/odyssey2/rom.cpp index 9dcdc480842..a64d8d3d1b9 100644 --- a/src/devices/bus/odyssey2/rom.cpp +++ b/src/devices/bus/odyssey2/rom.cpp @@ -21,7 +21,7 @@ class o2_rom_device : public device_t, public device_o2_cart_interface o2_rom_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void cart_init() override; diff --git a/src/devices/bus/odyssey2/slot.h b/src/devices/bus/odyssey2/slot.h index 386a6a3aeb5..ce59d0704a8 100644 --- a/src/devices/bus/odyssey2/slot.h +++ b/src/devices/bus/odyssey2/slot.h @@ -141,7 +141,7 @@ class o2_cart_slot_device : public device_t, protected: // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; int m_type; device_o2_cart_interface* m_cart; diff --git a/src/devices/bus/odyssey2/test.cpp b/src/devices/bus/odyssey2/test.cpp index f5656975818..4130c010d04 100644 --- a/src/devices/bus/odyssey2/test.cpp +++ b/src/devices/bus/odyssey2/test.cpp @@ -30,7 +30,7 @@ class o2_test_device : public device_t, public device_o2_cart_interface o2_test_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void cart_init() override; diff --git a/src/devices/bus/odyssey2/voice.cpp b/src/devices/bus/odyssey2/voice.cpp index 28911004c47..9ca1ea26101 100644 --- a/src/devices/bus/odyssey2/voice.cpp +++ b/src/devices/bus/odyssey2/voice.cpp @@ -50,11 +50,11 @@ class o2_voice_device : public device_t, public device_o2_cart_interface virtual int t0_read() override; protected: - 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 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: required_device m_speech; diff --git a/src/devices/bus/oricext/jasmin.h b/src/devices/bus/oricext/jasmin.h index fa4ffe7bf46..0dc008cb9cf 100644 --- a/src/devices/bus/oricext/jasmin.h +++ b/src/devices/bus/oricext/jasmin.h @@ -21,10 +21,10 @@ class oric_jasmin_device : public device_t, public device_oricext_interface DECLARE_INPUT_CHANGED_MEMBER(boot_pressed); protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; virtual void map_io(address_space_installer &space) override; virtual void map_rom() override; diff --git a/src/devices/bus/oricext/microdisc.h b/src/devices/bus/oricext/microdisc.h index 16696dd8fbf..49919482441 100644 --- a/src/devices/bus/oricext/microdisc.h +++ b/src/devices/bus/oricext/microdisc.h @@ -26,10 +26,10 @@ class oric_microdisc_device : public device_t, public device_oricext_interface P_EPROM = 0x80 }; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual void map_io(address_space_installer &space) override; virtual void map_rom() override; diff --git a/src/devices/bus/oricext/oricext.h b/src/devices/bus/oricext/oricext.h index 3030888ec9d..e442cfdc4ac 100644 --- a/src/devices/bus/oricext/oricext.h +++ b/src/devices/bus/oricext/oricext.h @@ -44,7 +44,7 @@ class oricext_connector: public device_t, public device_single_card_slot_interfa void map_rom(); protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; devcb_write_line irq_handler; devcb_write_line reset_handler; diff --git a/src/devices/bus/pasopia/pac2.h b/src/devices/bus/pasopia/pac2.h index 9bbf30b44ca..a03e274151f 100644 --- a/src/devices/bus/pasopia/pac2.h +++ b/src/devices/bus/pasopia/pac2.h @@ -45,8 +45,8 @@ class pasopia_pac2_slot_device : public device_t, public device_single_card_slot protected: // device-specific overrides - 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; private: pac2_card_interface *m_card; diff --git a/src/devices/bus/pasopia/pac2exp.h b/src/devices/bus/pasopia/pac2exp.h index ae874c01490..d2fb5b994a0 100644 --- a/src/devices/bus/pasopia/pac2exp.h +++ b/src/devices/bus/pasopia/pac2exp.h @@ -23,8 +23,8 @@ class pasopia_pa7234_device : public device_t, public pac2_card_interface protected: // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; // pac2_card_interface overrides virtual u8 pac2_read(offs_t offset) override; diff --git a/src/devices/bus/pasopia/rampac2.h b/src/devices/bus/pasopia/rampac2.h index 54e8a652049..19cf9dcc478 100644 --- a/src/devices/bus/pasopia/rampac2.h +++ b/src/devices/bus/pasopia/rampac2.h @@ -22,7 +22,7 @@ class pasopia_rampac2_device : public device_t, public pac2_card_interface, publ pasopia_rampac2_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, u32 ram_size); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_nvram_interface overrides virtual bool nvram_read(util::read_stream &file) override; diff --git a/src/devices/bus/pasopia/rompac2.h b/src/devices/bus/pasopia/rompac2.h index 1b734e3b29f..3a709d69745 100644 --- a/src/devices/bus/pasopia/rompac2.h +++ b/src/devices/bus/pasopia/rompac2.h @@ -23,8 +23,8 @@ class pasopia_pa7246_device : public device_t, public pac2_card_interface protected: // device-level overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_start() override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; // pac2_card_interface overrides virtual u8 pac2_read(offs_t offset) override; diff --git a/src/devices/bus/pc1512/mouse.h b/src/devices/bus/pc1512/mouse.h index 8b2215fe1c0..64c6f9479b1 100644 --- a/src/devices/bus/pc1512/mouse.h +++ b/src/devices/bus/pc1512/mouse.h @@ -80,7 +80,7 @@ class pc1512_mouse_port_device : public device_t, public device_single_card_slot protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; devcb_write8 m_write_x; devcb_write8 m_write_y; @@ -100,7 +100,7 @@ class pc1512_mouse_device : public device_t, public device_pc1512_mouse_port_int pc1512_mouse_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // optional information overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; DECLARE_INPUT_CHANGED_MEMBER( mouse_x_changed ) { m_port->x_w(newval); } DECLARE_INPUT_CHANGED_MEMBER( mouse_y_changed ) { m_port->y_w(newval); } @@ -109,7 +109,7 @@ class pc1512_mouse_device : public device_t, public device_pc1512_mouse_port_int protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; }; diff --git a/src/devices/bus/pc8801/gsx8800.h b/src/devices/bus/pc8801/gsx8800.h index 8d275c960a3..dd44faaea9a 100644 --- a/src/devices/bus/pc8801/gsx8800.h +++ b/src/devices/bus/pc8801/gsx8800.h @@ -16,10 +16,10 @@ class gsx8800_device : public pc8801_exp_device static constexpr feature_type unemulated_features() { return feature::SOUND; } - virtual void io_map(address_map &map) override; + virtual void io_map(address_map &map) override ATTR_COLD; private: - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; required_device_array m_psg; }; diff --git a/src/devices/bus/pc8801/hmb20.h b/src/devices/bus/pc8801/hmb20.h index 3f2c4b61493..a197c2ae069 100644 --- a/src/devices/bus/pc8801/hmb20.h +++ b/src/devices/bus/pc8801/hmb20.h @@ -14,10 +14,10 @@ class hmb20_device : public pc8801_exp_device public: hmb20_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - virtual void io_map(address_map &map) override; + virtual void io_map(address_map &map) override ATTR_COLD; private: - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; required_device m_opm; }; diff --git a/src/devices/bus/pc8801/jmbx1.h b/src/devices/bus/pc8801/jmbx1.h index 27f9050cae5..50ea182d9f9 100644 --- a/src/devices/bus/pc8801/jmbx1.h +++ b/src/devices/bus/pc8801/jmbx1.h @@ -15,10 +15,10 @@ class jmbx1_device : public pc8801_exp_device public: jmbx1_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - virtual void io_map(address_map &map) override; + virtual void io_map(address_map &map) override ATTR_COLD; private: - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; required_device m_opm1; required_device m_opm2; diff --git a/src/devices/bus/pc8801/pc8801_23.h b/src/devices/bus/pc8801/pc8801_23.h index ed36a171b10..b0bf65ae8ab 100644 --- a/src/devices/bus/pc8801/pc8801_23.h +++ b/src/devices/bus/pc8801/pc8801_23.h @@ -16,15 +16,15 @@ class pc8801_23_device : public pc8801_exp_device static constexpr feature_type unemulated_features() { return feature::SOUND; } - virtual void io_map(address_map &map) override; + virtual void io_map(address_map &map) override ATTR_COLD; protected: - 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 int4_w(int state) override; private: - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; required_device m_opna; @@ -34,7 +34,7 @@ class pc8801_23_device : public pc8801_exp_device bool m_irq_mask = false; bool m_irq_pending = false; - void opna_map(address_map &map); + void opna_map(address_map &map) ATTR_COLD; }; DECLARE_DEVICE_TYPE(PC8801_23, pc8801_23_device) diff --git a/src/devices/bus/pc8801/pc8801_31.h b/src/devices/bus/pc8801/pc8801_31.h index e028d51528b..aea5614943c 100644 --- a/src/devices/bus/pc8801/pc8801_31.h +++ b/src/devices/bus/pc8801/pc8801_31.h @@ -29,13 +29,13 @@ class pc8801_31_device : public device_t auto rom_bank_cb() { return m_rom_bank_cb.bind(); } // I/O operations - void amap(address_map &map); + void amap(address_map &map) ATTR_COLD; protected: // device_t implementation - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; TIMER_CALLBACK_MEMBER(select_off); diff --git a/src/devices/bus/pc8801/pc8801_exp.h b/src/devices/bus/pc8801/pc8801_exp.h index 411d15e5fe8..8305c68522f 100644 --- a/src/devices/bus/pc8801/pc8801_exp.h +++ b/src/devices/bus/pc8801/pc8801_exp.h @@ -39,7 +39,7 @@ class pc8801_exp_slot_device : public device_t, public device_single_card_slot_i protected: // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: required_address_space m_iospace; @@ -80,8 +80,8 @@ class pc8801_exp_device : public device_t, public device_pc8801_exp_interface protected: -// virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; +// virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; }; diff --git a/src/devices/bus/pc8801/pcg8100.h b/src/devices/bus/pc8801/pcg8100.h index 4d71f8509d1..0fc6f84eea7 100644 --- a/src/devices/bus/pc8801/pcg8100.h +++ b/src/devices/bus/pc8801/pcg8100.h @@ -15,14 +15,14 @@ class pcg8100_device : public pc8801_exp_device public: pcg8100_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - virtual void io_map(address_map &map) override; + virtual void io_map(address_map &map) override ATTR_COLD; protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; u8 m_pcg_data = 0; u16 m_pcg_address = 0; diff --git a/src/devices/bus/pc_joy/pc_joy.h b/src/devices/bus/pc_joy/pc_joy.h index 7ad13fa97f6..0593325817f 100644 --- a/src/devices/bus/pc_joy/pc_joy.h +++ b/src/devices/bus/pc_joy/pc_joy.h @@ -56,7 +56,7 @@ class pc_basic_joy_device : public device_t, { public: pc_basic_joy_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 0); - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; virtual uint8_t x1(int delta) override { return (m_x1->read() > delta); } virtual uint8_t x2(int delta) override { return (m_x2->read() > delta); } diff --git a/src/devices/bus/pc_joy/pc_joy_magnum6.h b/src/devices/bus/pc_joy/pc_joy_magnum6.h index c08fe34cdfa..ab7daf41701 100644 --- a/src/devices/bus/pc_joy/pc_joy_magnum6.h +++ b/src/devices/bus/pc_joy/pc_joy_magnum6.h @@ -16,7 +16,7 @@ class pc_joy_magnum6_device : public pc_basic_joy_device virtual uint8_t x2(int delta) override { return BIT(m_btn->read(), 4); } virtual uint8_t y2(int delta) override { return BIT(m_btn->read(), 5); } - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; }; DECLARE_DEVICE_TYPE(PC_MAGNUM6_PAD, pc_joy_magnum6_device) diff --git a/src/devices/bus/pc_joy/pc_joy_sw.h b/src/devices/bus/pc_joy/pc_joy_sw.h index 5d83a10d0c1..6083dbec589 100644 --- a/src/devices/bus/pc_joy/pc_joy_sw.h +++ b/src/devices/bus/pc_joy/pc_joy_sw.h @@ -10,15 +10,15 @@ class pc_mssw_pad_device : public device_t, { public: pc_mssw_pad_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; virtual uint8_t btn() override { return m_state; } // timing is guessed, calibrated for at486 virtual void port_write() override { if(!m_active) { m_timer->adjust(attotime::from_usec(50), 0, attotime::from_usec(5)); m_active = true; } } protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; TIMER_CALLBACK_MEMBER(timer_tick); diff --git a/src/devices/bus/pc_kbd/cherry_mx1500.h b/src/devices/bus/pc_kbd/cherry_mx1500.h index 5bdabe34642..7581a17faeb 100644 --- a/src/devices/bus/pc_kbd/cherry_mx1500.h +++ b/src/devices/bus/pc_kbd/cherry_mx1500.h @@ -16,10 +16,10 @@ class cherry_g80_1500_device : public device_t, public device_pc_kbd_interface protected: virtual void data_write(int state) override; - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; - virtual void device_add_mconfig(machine_config &config) override; - virtual const tiny_rom_entry *device_rom_region() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() 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; private: void mcu_p1_w(u8 data); @@ -28,8 +28,8 @@ class cherry_g80_1500_device : public device_t, public device_pc_kbd_interface u8 matrix_r(offs_t offset); void outputs_w(offs_t offset, u8 data); - void prog_map(address_map &map); - void ext_map(address_map &map); + void prog_map(address_map &map) ATTR_COLD; + void ext_map(address_map &map) ATTR_COLD; required_device m_mcu; required_ioport_array<13> m_keys; diff --git a/src/devices/bus/pc_kbd/ec1841.h b/src/devices/bus/pc_kbd/ec1841.h index cade4b56eee..2c70ce91abd 100644 --- a/src/devices/bus/pc_kbd/ec1841.h +++ b/src/devices/bus/pc_kbd/ec1841.h @@ -30,13 +30,13 @@ class ec_1841_keyboard_device : public device_t, public device_pc_kbd_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; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; // device_pc_kbd_interface overrides virtual void clock_write(int state) override; diff --git a/src/devices/bus/pc_kbd/hle_mouse.h b/src/devices/bus/pc_kbd/hle_mouse.h index d4222a35fd2..1a5d91273d7 100644 --- a/src/devices/bus/pc_kbd/hle_mouse.h +++ b/src/devices/bus/pc_kbd/hle_mouse.h @@ -17,9 +17,9 @@ class hle_ps2_mouse_device protected: // device_t overrides - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; - virtual void device_reset() override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; // device_pc_kbd_interface overrides virtual void clock_write(int state) override; diff --git a/src/devices/bus/pc_kbd/iskr1030.h b/src/devices/bus/pc_kbd/iskr1030.h index 8d4224eb5f2..b879dd00b53 100644 --- a/src/devices/bus/pc_kbd/iskr1030.h +++ b/src/devices/bus/pc_kbd/iskr1030.h @@ -31,13 +31,13 @@ class iskr_1030_keyboard_device : public device_t, public device_pc_kbd_interfac 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; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; // device_pc_kbd_interface overrides virtual void clock_write(int state) override; @@ -52,7 +52,7 @@ class iskr_1030_keyboard_device : public device_t, public device_pc_kbd_interfac uint8_t ram_r(offs_t offset); void ram_w(offs_t offset, uint8_t data); - void iskr_1030_keyboard_io(address_map &map); + void iskr_1030_keyboard_io(address_map &map) ATTR_COLD; required_device m_maincpu; required_ioport m_md00; diff --git a/src/devices/bus/pc_kbd/keytro.h b/src/devices/bus/pc_kbd/keytro.h index 3ba6b6a583e..df4515511df 100644 --- a/src/devices/bus/pc_kbd/keytro.h +++ b/src/devices/bus/pc_kbd/keytro.h @@ -36,13 +36,13 @@ class pc_kbd_keytronic_pc3270_device : public device_t, uint32_t clock); // 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; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; - virtual const tiny_rom_entry *device_rom_region() const override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; virtual void clock_write(int state) override; virtual void data_write(int state) override; @@ -56,8 +56,8 @@ class pc_kbd_keytronic_pc3270_device : public device_t, uint8_t p3_read(); void p3_write(uint8_t data); - void keytronic_pc3270_io(address_map &map); - void keytronic_pc3270_program(address_map &map); + void keytronic_pc3270_io(address_map &map) ATTR_COLD; + void keytronic_pc3270_program(address_map &map) ATTR_COLD; required_device m_cpu; @@ -75,7 +75,7 @@ class pc_kbd_keytronic_pc3270_at_device : public pc_kbd_keytronic_pc3270_device // construction/destruction pc_kbd_keytronic_pc3270_at_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; }; diff --git a/src/devices/bus/pc_kbd/msnat.h b/src/devices/bus/pc_kbd/msnat.h index 01a1d325a67..acf98030ddf 100644 --- a/src/devices/bus/pc_kbd/msnat.h +++ b/src/devices/bus/pc_kbd/msnat.h @@ -27,13 +27,13 @@ class pc_kbd_microsoft_natural_device : public device_t, 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; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; - virtual const tiny_rom_entry *device_rom_region() const override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; virtual void clock_write(int state) override; virtual void data_write(int state) override; diff --git a/src/devices/bus/pc_kbd/pc83.h b/src/devices/bus/pc_kbd/pc83.h index ea1c762e6dd..0459b9043c5 100644 --- a/src/devices/bus/pc_kbd/pc83.h +++ b/src/devices/bus/pc_kbd/pc83.h @@ -32,13 +32,13 @@ class ibm_pc_83_keyboard_device : public device_t, 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; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; // device_pc_kbd_interface overrides virtual void clock_write(int state) override { } diff --git a/src/devices/bus/pc_kbd/pc_kbdc.h b/src/devices/bus/pc_kbd/pc_kbdc.h index dbbf8024872..78e683b1d5b 100644 --- a/src/devices/bus/pc_kbd/pc_kbdc.h +++ b/src/devices/bus/pc_kbd/pc_kbdc.h @@ -53,8 +53,8 @@ class pc_kbdc_device : public device_t, public device_single_card_slot_interface protected: // device-level overrides - 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; void update_clock_state(bool fromkb); void update_data_state(bool fromkb); diff --git a/src/devices/bus/pc_kbd/pcat101.h b/src/devices/bus/pc_kbd/pcat101.h index 449947eccad..b60370141fd 100644 --- a/src/devices/bus/pc_kbd/pcat101.h +++ b/src/devices/bus/pc_kbd/pcat101.h @@ -19,13 +19,13 @@ class ibm_pc_at_101_keyboard_device 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; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; // device_pc_kbd_interface overrides virtual void data_write(int state) override; diff --git a/src/devices/bus/pc_kbd/pcat84.h b/src/devices/bus/pc_kbd/pcat84.h index b9f6374eaca..72a99c82b2e 100644 --- a/src/devices/bus/pc_kbd/pcat84.h +++ b/src/devices/bus/pc_kbd/pcat84.h @@ -34,13 +34,13 @@ class ibm_pc_at_84_keyboard_device : public device_t, ibm_pc_at_84_keyboard_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; // device_pc_kbd_interface overrides virtual void clock_write(int state) override { m_maincpu->set_input_line(MCS48_INPUT_IRQ, state); } @@ -86,8 +86,8 @@ class ibm_3270pc_122_keyboard_device : public ibm_pc_at_84_keyboard_device ibm_3270pc_122_keyboard_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual ioport_constructor device_input_ports() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; }; diff --git a/src/devices/bus/pc_kbd/pcxt83.h b/src/devices/bus/pc_kbd/pcxt83.h index d12ceade4fc..b1740603279 100644 --- a/src/devices/bus/pc_kbd/pcxt83.h +++ b/src/devices/bus/pc_kbd/pcxt83.h @@ -31,13 +31,13 @@ class ibm_pc_xt_83_keyboard_device : public device_t, public device_pc_kbd_inter 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; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; // device_pc_kbd_interface overrides virtual void clock_write(int state) override; diff --git a/src/devices/bus/pccard/ataflash.h b/src/devices/bus/pccard/ataflash.h index 08c00237c1b..16000d88e88 100644 --- a/src/devices/bus/pccard/ataflash.h +++ b/src/devices/bus/pccard/ataflash.h @@ -22,8 +22,8 @@ class ata_flash_pccard_device : public cf_device_base, public device_pccard_inte ata_flash_pccard_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; private: // ata_hle_device_base implementation @@ -48,8 +48,8 @@ class taito_pccard1_device : public ata_flash_pccard_device virtual void write_reg(offs_t offset, uint16_t data, uint16_t mem_mask = ~0) override; protected: - 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 process_command() override; virtual bool is_ready() override; @@ -64,8 +64,8 @@ class taito_pccard2_device : public ata_flash_pccard_device taito_pccard2_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - 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 process_command() override; virtual void process_buffer() override; virtual bool is_ready() override; @@ -84,8 +84,8 @@ class taito_compact_flash_device : public ata_flash_pccard_device taito_compact_flash_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - 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 process_command() override; virtual bool is_ready() override; diff --git a/src/devices/bus/pccard/k573npu.h b/src/devices/bus/pccard/k573npu.h index dadff15298d..5b8f1a53ab1 100644 --- a/src/devices/bus/pccard/k573npu.h +++ b/src/devices/bus/pccard/k573npu.h @@ -18,10 +18,10 @@ class k573npu_device : public device_t, k573npu_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 void device_start() override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; - void maincpu_program_map(address_map &map); + void maincpu_program_map(address_map &map) ATTR_COLD; }; DECLARE_DEVICE_TYPE(KONAMI_573_NETWORK_PCB_UNIT, k573npu_device) diff --git a/src/devices/bus/pccard/konami_dual.h b/src/devices/bus/pccard/konami_dual.h index d88e397e8b7..aefe97ac553 100644 --- a/src/devices/bus/pccard/konami_dual.h +++ b/src/devices/bus/pccard/konami_dual.h @@ -19,8 +19,8 @@ class konami_dual_pccard_device : protected: // device_t - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; required_device_array m_slot; }; diff --git a/src/devices/bus/pccard/linflash.h b/src/devices/bus/pccard/linflash.h index fb214b68d85..07a8b9ccba6 100644 --- a/src/devices/bus/pccard/linflash.h +++ b/src/devices/bus/pccard/linflash.h @@ -23,8 +23,8 @@ class linear_flash_pccard_device : linear_flash_pccard_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, address_map_constructor amap); // device_t - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; // device_memory_interface virtual space_config_vector memory_space_config() const override; @@ -41,7 +41,7 @@ class linear_flash_pccard_8bit_device : protected: linear_flash_pccard_8bit_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); - void amap(address_map &map); + void amap(address_map &map) ATTR_COLD; required_device_array m_l; required_device_array m_u; @@ -54,7 +54,7 @@ class linear_flash_pccard_16bit_device : protected: linear_flash_pccard_16bit_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); - void amap(address_map &map); + void amap(address_map &map) ATTR_COLD; required_device_array m_flash; }; @@ -67,7 +67,7 @@ class linear_flash_pccard_29f017a_device : linear_flash_pccard_29f017a_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // device_t - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; template @@ -78,7 +78,7 @@ class linear_flash_pccard_lh28f016s_device : linear_flash_pccard_lh28f016s_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // device_t - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; template @@ -89,7 +89,7 @@ class linear_flash_pccard_28f640j5_device : linear_flash_pccard_28f640j5_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // device_t - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; class fujitsu_16mb_flash_card_device : public linear_flash_pccard_29f017a_device<4> diff --git a/src/devices/bus/pccard/pccard.h b/src/devices/bus/pccard/pccard.h index c36e99bf9f1..9af4d483232 100644 --- a/src/devices/bus/pccard/pccard.h +++ b/src/devices/bus/pccard/pccard.h @@ -71,7 +71,7 @@ class pccard_slot_device : protected: virtual void device_config_complete() override; - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; void update_cd1(int state); void update_cd2(int state); diff --git a/src/devices/bus/pccard/sram.h b/src/devices/bus/pccard/sram.h index 1cd30a07224..ae65b711164 100644 --- a/src/devices/bus/pccard/sram.h +++ b/src/devices/bus/pccard/sram.h @@ -36,8 +36,8 @@ class pccard_sram_device : pccard_sram_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // device_t overrides - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; // device_memory_interface overrides virtual space_config_vector memory_space_config() const override; @@ -91,7 +91,7 @@ class pccard_mitsubishi_mf31m1_lycat01_device : public pccard_mitsubishi_sram_de pccard_mitsubishi_mf31m1_lycat01_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 0); private: - void memory_map(address_map &map); + void memory_map(address_map &map) ATTR_COLD; }; class pccard_centennial_sram_device : public pccard_sram_device @@ -119,11 +119,11 @@ class pccard_centennial_sl01m_15_11194_device : public pccard_centennial_sram_de protected: // device_t overrides - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; private: - void memory_map(address_map &map); - void attribute_map(address_map &map); + void memory_map(address_map &map) ATTR_COLD; + void attribute_map(address_map &map) ATTR_COLD; }; class pccard_centennial_sl02m_15_11194_device : public pccard_centennial_sram_device @@ -134,11 +134,11 @@ class pccard_centennial_sl02m_15_11194_device : public pccard_centennial_sram_de protected: // device_t overrides - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; private: - void memory_map(address_map &map); - void attribute_map(address_map &map); + void memory_map(address_map &map) ATTR_COLD; + void attribute_map(address_map &map) ATTR_COLD; }; class pccard_centennial_sl04m_15_11194_device : public pccard_centennial_sram_device @@ -149,11 +149,11 @@ class pccard_centennial_sl04m_15_11194_device : public pccard_centennial_sram_de protected: // device_t overrides - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; private: - void memory_map(address_map &map); - void attribute_map(address_map &map); + void memory_map(address_map &map) ATTR_COLD; + void attribute_map(address_map &map) ATTR_COLD; }; // device type definition diff --git a/src/devices/bus/pce/pce_acard.h b/src/devices/bus/pce/pce_acard.h index 2c3622ac2b2..e7e148c0516 100644 --- a/src/devices/bus/pce/pce_acard.h +++ b/src/devices/bus/pce/pce_acard.h @@ -26,8 +26,8 @@ class pce_acard_duo_device : public device_t, pce_acard_duo_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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; private: uint8_t ram_r(offs_t offset); @@ -96,7 +96,7 @@ class pce_acard_pro_device : public pce_acard_duo_device virtual void install_memory_handlers(address_space &space) override; protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: pce_scdsys_shared m_scdsys; diff --git a/src/devices/bus/pce/pce_rom.h b/src/devices/bus/pce/pce_rom.h index 714e891706f..368fd604083 100644 --- a/src/devices/bus/pce/pce_rom.h +++ b/src/devices/bus/pce/pce_rom.h @@ -54,7 +54,7 @@ class pce_sf2_device : public pce_rom_device protected: // device-level overrides - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; private: void bank_w(offs_t offset, uint8_t data); @@ -76,8 +76,8 @@ class pce_tennokoe_device : public pce_rom_device, 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 nvram_default() override; virtual bool nvram_read(util::read_stream &file) override; virtual bool nvram_write(util::write_stream &file) override; diff --git a/src/devices/bus/pce/pce_scdsys.h b/src/devices/bus/pce/pce_scdsys.h index 1a4220bdc57..9bc962d42fa 100644 --- a/src/devices/bus/pce/pce_scdsys.h +++ b/src/devices/bus/pce/pce_scdsys.h @@ -42,7 +42,7 @@ class pce_cdsys3_device : public device_t, protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // construction/destruction pce_cdsys3_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); @@ -72,7 +72,7 @@ class pce_cdsys3u_device : public pce_cdsys3_device pce_cdsys3u_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; }; // device type definition diff --git a/src/devices/bus/pce/pce_slot.h b/src/devices/bus/pce/pce_slot.h index 337214d0b81..cb022445335 100644 --- a/src/devices/bus/pce/pce_slot.h +++ b/src/devices/bus/pce/pce_slot.h @@ -101,7 +101,7 @@ class pce_cart_slot_device : public device_t, protected: // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; const char *m_interface; int m_type; diff --git a/src/devices/bus/pce_ctrl/joypad2.cpp b/src/devices/bus/pce_ctrl/joypad2.cpp index ff09eb8dbe9..121647cfbf7 100644 --- a/src/devices/bus/pce_ctrl/joypad2.cpp +++ b/src/devices/bus/pce_ctrl/joypad2.cpp @@ -87,11 +87,11 @@ class pce_joypad2_device : public device_t, public device_pce_control_port_inter pce_joypad2_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); // optional information overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; // device_pce_control_port_interface overrides virtual u8 peripheral_r() override; @@ -113,12 +113,12 @@ class pce_joypad2_turbo_device : public pce_joypad2_device protected: // optional information overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; // device_pce_control_port_interface overrides virtual void clr_w(int state) override; diff --git a/src/devices/bus/pce_ctrl/joypad6.cpp b/src/devices/bus/pce_ctrl/joypad6.cpp index ef5deb6d272..81143cda367 100644 --- a/src/devices/bus/pce_ctrl/joypad6.cpp +++ b/src/devices/bus/pce_ctrl/joypad6.cpp @@ -48,9 +48,9 @@ class pce_joypad6_base_device : public device_t, pce_joypad6_base_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; // device_pce_control_port_interface overrides virtual u8 peripheral_r() override; @@ -85,10 +85,10 @@ class pce_avenue_pad_6_device : public pce_joypad6_base_device pce_avenue_pad_6_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); // optional information overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; template u8 buttons_r(); @@ -108,7 +108,7 @@ class pce_arcade_pad_6_device : public pce_avenue_pad_6_device protected: // optional information overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; }; diff --git a/src/devices/bus/pce_ctrl/mouse.cpp b/src/devices/bus/pce_ctrl/mouse.cpp index 9d608008104..5f0fd47625f 100644 --- a/src/devices/bus/pce_ctrl/mouse.cpp +++ b/src/devices/bus/pce_ctrl/mouse.cpp @@ -45,7 +45,7 @@ class pce_mouse_device : public device_t, public device_pce_control_port_interfa protected: virtual ioport_constructor device_input_ports() const override { return INPUT_PORTS_NAME(pce_mouse); } - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: required_ioport m_buttons; diff --git a/src/devices/bus/pce_ctrl/multitap.h b/src/devices/bus/pce_ctrl/multitap.h index 5dd3234114b..c814d563772 100644 --- a/src/devices/bus/pce_ctrl/multitap.h +++ b/src/devices/bus/pce_ctrl/multitap.h @@ -31,9 +31,9 @@ class pce_multitap_device : public device_t, protected: // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; // device_pce_control_port_interface overrides virtual u8 peripheral_r() override; diff --git a/src/devices/bus/pce_ctrl/pachinko.h b/src/devices/bus/pce_ctrl/pachinko.h index 266c351bcee..3e1808c3195 100644 --- a/src/devices/bus/pce_ctrl/pachinko.h +++ b/src/devices/bus/pce_ctrl/pachinko.h @@ -31,10 +31,10 @@ class pce_pachinko_device : public device_t, protected: // optional information overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_pce_control_port_interface overrides virtual u8 peripheral_r() override; diff --git a/src/devices/bus/pce_ctrl/pcectrl.h b/src/devices/bus/pce_ctrl/pcectrl.h index 3d190f5e1f3..ac3aa841fbb 100644 --- a/src/devices/bus/pce_ctrl/pcectrl.h +++ b/src/devices/bus/pce_ctrl/pcectrl.h @@ -45,7 +45,7 @@ class pce_control_port_device : public device_t, protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; device_pce_control_port_interface *m_device; }; diff --git a/src/devices/bus/pce_ctrl/xhe3.cpp b/src/devices/bus/pce_ctrl/xhe3.cpp index db73882e0fc..2484ffb259f 100644 --- a/src/devices/bus/pce_ctrl/xhe3.cpp +++ b/src/devices/bus/pce_ctrl/xhe3.cpp @@ -32,9 +32,9 @@ class pce_xhe3_device : public device_t, public device_pce_control_port_interfac virtual void clr_w(int state) override; protected: - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual ioport_constructor device_input_ports() const override { return INPUT_PORTS_NAME(pce_xhe3); } - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: required_device m_port; diff --git a/src/devices/bus/pci/aha2940au.h b/src/devices/bus/pci/aha2940au.h index 8e119f4312c..5fb0208365c 100644 --- a/src/devices/bus/pci/aha2940au.h +++ b/src/devices/bus/pci/aha2940au.h @@ -18,16 +18,16 @@ class aha2940au_scsi_device : public pci_card_device protected: aha2940au_scsi_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; - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; // virtual void map_extra(uint64_t memory_window_start, uint64_t memory_window_end, uint64_t memory_offset, address_space *memory_space, // uint64_t io_window_start, uint64_t io_window_end, uint64_t io_offset, address_space *io_space) override; - virtual void config_map(address_map &map) override; + virtual void config_map(address_map &map) override ATTR_COLD; required_memory_region m_scsi_rom; diff --git a/src/devices/bus/pci/audiowerk2.h b/src/devices/bus/pci/audiowerk2.h index f7b5bdd976b..74f87216073 100644 --- a/src/devices/bus/pci/audiowerk2.h +++ b/src/devices/bus/pci/audiowerk2.h @@ -18,19 +18,19 @@ class audiowerk2_device : public pci_card_device protected: audiowerk2_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; -// virtual const tiny_rom_entry *device_rom_region() const override; +// virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; // virtual void map_extra(uint64_t memory_window_start, uint64_t memory_window_end, uint64_t memory_offset, address_space *memory_space, // uint64_t io_window_start, uint64_t io_window_end, uint64_t io_offset, address_space *io_space) override; - virtual void config_map(address_map &map) override; + virtual void config_map(address_map &map) override ATTR_COLD; private: - void map(address_map &map); + void map(address_map &map) ATTR_COLD; }; DECLARE_DEVICE_TYPE(AUDIOWERK2, audiowerk2_device) diff --git a/src/devices/bus/pci/clgd5446.h b/src/devices/bus/pci/clgd5446.h index b25937d1cce..9bb9b54a676 100644 --- a/src/devices/bus/pci/clgd5446.h +++ b/src/devices/bus/pci/clgd5446.h @@ -13,24 +13,24 @@ class cirrus_gd5446_pci_device : public pci_card_device public: cirrus_gd5446_pci_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - void legacy_memory_map(address_map &map); - void legacy_io_map(address_map &map); + void legacy_memory_map(address_map &map) ATTR_COLD; + void legacy_io_map(address_map &map) ATTR_COLD; protected: - 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; - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; virtual void map_extra(uint64_t memory_window_start, uint64_t memory_window_end, uint64_t memory_offset, address_space *memory_space, uint64_t io_window_start, uint64_t io_window_end, uint64_t io_offset, address_space *io_space) override; - virtual void config_map(address_map &map) override; + virtual void config_map(address_map &map) override ATTR_COLD; - virtual void mmio_map(address_map &map); - virtual void vram_aperture_map(address_map &map); - virtual void gpio_map(address_map &map); + virtual void mmio_map(address_map &map) ATTR_COLD; + virtual void vram_aperture_map(address_map &map) ATTR_COLD; + virtual void gpio_map(address_map &map) ATTR_COLD; private: required_device m_vga; required_memory_region m_vga_rom; diff --git a/src/devices/bus/pci/clgd546x_laguna.h b/src/devices/bus/pci/clgd546x_laguna.h index c9cf83d7a1d..601378e1d73 100644 --- a/src/devices/bus/pci/clgd546x_laguna.h +++ b/src/devices/bus/pci/clgd546x_laguna.h @@ -13,23 +13,23 @@ class cirrus_gd5465_laguna3d_device : public pci_card_device public: cirrus_gd5465_laguna3d_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - void legacy_memory_map(address_map &map); - void legacy_io_map(address_map &map); + void legacy_memory_map(address_map &map) ATTR_COLD; + void legacy_io_map(address_map &map) ATTR_COLD; protected: - 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; - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; virtual void map_extra(uint64_t memory_window_start, uint64_t memory_window_end, uint64_t memory_offset, address_space *memory_space, uint64_t io_window_start, uint64_t io_window_end, uint64_t io_offset, address_space *io_space) override; - virtual void config_map(address_map &map) override; + virtual void config_map(address_map &map) override ATTR_COLD; - virtual void mmio_map(address_map &map); - virtual void vram_aperture_map(address_map &map); + virtual void mmio_map(address_map &map) ATTR_COLD; + virtual void vram_aperture_map(address_map &map) ATTR_COLD; private: required_device m_vga; required_memory_region m_vga_rom; diff --git a/src/devices/bus/pci/ds2416.h b/src/devices/bus/pci/ds2416.h index 2193a7e2720..b184b3db664 100644 --- a/src/devices/bus/pci/ds2416.h +++ b/src/devices/bus/pci/ds2416.h @@ -13,8 +13,8 @@ class ds2416_device : public ymp21_device { ds2416_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 0); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; }; DECLARE_DEVICE_TYPE(DS2416, ds2416_device) diff --git a/src/devices/bus/pci/ess_maestro.h b/src/devices/bus/pci/ess_maestro.h index bb65bc9ec8e..72b7bfb3fb5 100644 --- a/src/devices/bus/pci/ess_maestro.h +++ b/src/devices/bus/pci/ess_maestro.h @@ -18,25 +18,25 @@ class es1946_solo1e_device : public pci_card_device protected: es1946_solo1e_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; -// virtual const tiny_rom_entry *device_rom_region() const override; +// virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; // virtual void map_extra(uint64_t memory_window_start, uint64_t memory_window_end, uint64_t memory_offset, address_space *memory_space, // uint64_t io_window_start, uint64_t io_window_end, uint64_t io_offset, address_space *io_space) override; - virtual void config_map(address_map &map) override; + virtual void config_map(address_map &map) override ATTR_COLD; virtual u8 capptr_r() override; private: - void extended_map(address_map &map); - void sb_map(address_map &map); - void vcbase_map(address_map &map); - void mpu_map(address_map &map); - void gameport_map(address_map &map); + void extended_map(address_map &map) ATTR_COLD; + void sb_map(address_map &map) ATTR_COLD; + void vcbase_map(address_map &map) ATTR_COLD; + void mpu_map(address_map &map) ATTR_COLD; + void gameport_map(address_map &map) ATTR_COLD; }; DECLARE_DEVICE_TYPE(ES1946_SOLO1E, es1946_solo1e_device) diff --git a/src/devices/bus/pci/geforce.h b/src/devices/bus/pci/geforce.h index 890b2b6676f..eebbb87145f 100644 --- a/src/devices/bus/pci/geforce.h +++ b/src/devices/bus/pci/geforce.h @@ -23,8 +23,8 @@ class geforce256_device : public rivatnt2_device protected: geforce256_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_start() override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; }; class geforce256_ddr_device : public geforce256_device @@ -33,7 +33,7 @@ class geforce256_ddr_device : public geforce256_device geforce256_ddr_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 quadro_device : public geforce256_device @@ -45,7 +45,7 @@ class quadro_device : public geforce256_device static constexpr feature_type unemulated_features() { return feature::PROTECTION; } protected: - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; }; diff --git a/src/devices/bus/pci/mga2064w.h b/src/devices/bus/pci/mga2064w.h index b092ebf7e32..745d915c54e 100644 --- a/src/devices/bus/pci/mga2064w.h +++ b/src/devices/bus/pci/mga2064w.h @@ -14,26 +14,26 @@ class mga2064w_device : public pci_card_device, public device_memory_interface { public: mga2064w_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - void legacy_memory_map(address_map &map); - void legacy_io_map(address_map &map); + void legacy_memory_map(address_map &map) ATTR_COLD; + void legacy_io_map(address_map &map) ATTR_COLD; protected: - 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 device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual space_config_vector memory_space_config() const override; - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; virtual void map_extra(uint64_t memory_window_start, uint64_t memory_window_end, uint64_t memory_offset, address_space *memory_space, uint64_t io_window_start, uint64_t io_window_end, uint64_t io_offset, address_space *io_space) override; - virtual void config_map(address_map &map) override; + virtual void config_map(address_map &map) override ATTR_COLD; - void mgabase1_map(address_map &map); - void mgabase2_map(address_map &map); + void mgabase1_map(address_map &map) ATTR_COLD; + void mgabase2_map(address_map &map) ATTR_COLD; - void dwgreg_map(address_map &map); + void dwgreg_map(address_map &map) ATTR_COLD; u32 dmawin_idump_r(offs_t offset, u32 mem_mask = ~0); void dmawin_iload_w(offs_t offset, u32 data, u32 mem_mask = ~0); diff --git a/src/devices/bus/pci/ncr53c825.h b/src/devices/bus/pci/ncr53c825.h index 1297f340dbc..694c101d261 100644 --- a/src/devices/bus/pci/ncr53c825.h +++ b/src/devices/bus/pci/ncr53c825.h @@ -18,16 +18,16 @@ class ncr53c825_pci_device : public pci_card_device protected: ncr53c825_pci_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; - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; - virtual void config_map(address_map &map) override; + virtual void config_map(address_map &map) override ATTR_COLD; - void io_map(address_map &map); - void scripts_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void scripts_map(address_map &map) ATTR_COLD; required_memory_region m_scsi_rom; private: diff --git a/src/devices/bus/pci/neon250.h b/src/devices/bus/pci/neon250.h index c303189e678..41f5162ce8d 100644 --- a/src/devices/bus/pci/neon250.h +++ b/src/devices/bus/pci/neon250.h @@ -14,22 +14,22 @@ class neon250_device : public pci_card_device public: neon250_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - void legacy_memory_map(address_map &map); - void legacy_io_map(address_map &map); + void legacy_memory_map(address_map &map) ATTR_COLD; + void legacy_io_map(address_map &map) ATTR_COLD; protected: neon250_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; - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; virtual void map_extra(uint64_t memory_window_start, uint64_t memory_window_end, uint64_t memory_offset, address_space *memory_space, uint64_t io_window_start, uint64_t io_window_end, uint64_t io_offset, address_space *io_space) override; - virtual void config_map(address_map &map) override; + virtual void config_map(address_map &map) override ATTR_COLD; required_device m_svga; required_memory_region m_vga_rom; @@ -41,12 +41,12 @@ class neon250_device : public pci_card_device u8 vram_r(offs_t offset); void vram_w(offs_t offset, uint8_t data); - void pvr_fb_map(address_map &map); - void pvr_mmio_map(address_map &map); - void pvr_io_map(address_map &map); + void pvr_fb_map(address_map &map) ATTR_COLD; + void pvr_mmio_map(address_map &map) ATTR_COLD; + void pvr_io_map(address_map &map) ATTR_COLD; - void vga_fb_map(address_map &map); - void vga_mmio_map(address_map &map); + void vga_fb_map(address_map &map) ATTR_COLD; + void vga_mmio_map(address_map &map) ATTR_COLD; }; DECLARE_DEVICE_TYPE(NEON250, neon250_device) diff --git a/src/devices/bus/pci/opti82c861.h b/src/devices/bus/pci/opti82c861.h index dfb79221fa9..10ac39172d7 100644 --- a/src/devices/bus/pci/opti82c861.h +++ b/src/devices/bus/pci/opti82c861.h @@ -14,11 +14,11 @@ class opti_82c861_device : public pci_card_device opti_82c861_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); opti_82c861_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; void map_extra(u64 memory_window_start, u64 memory_window_end, u64 memory_offset, address_space *memory_space, u64 io_window_start, u64 io_window_end, u64 io_offset, address_space *io_space) override; diff --git a/src/devices/bus/pci/oti_spitfire.h b/src/devices/bus/pci/oti_spitfire.h index 46b63764c59..11a1620cb1b 100644 --- a/src/devices/bus/pci/oti_spitfire.h +++ b/src/devices/bus/pci/oti_spitfire.h @@ -16,28 +16,28 @@ class oti64111_pci_device : public pci_card_device static constexpr feature_type imperfect_features() { return feature::GRAPHICS; } - void legacy_io_map(address_map &map); + void legacy_io_map(address_map &map) ATTR_COLD; protected: oti64111_pci_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; - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; virtual void map_extra(uint64_t memory_window_start, uint64_t memory_window_end, uint64_t memory_offset, address_space *memory_space, uint64_t io_window_start, uint64_t io_window_end, uint64_t io_offset, address_space *io_space) override; - virtual void config_map(address_map &map) override; + virtual void config_map(address_map &map) override ATTR_COLD; required_device m_svga; required_memory_region m_vga_rom; private: - void mmio_map(address_map &map); - void vram_aperture_map(address_map &map); - void extio_map(address_map &map); + void mmio_map(address_map &map) ATTR_COLD; + void vram_aperture_map(address_map &map) ATTR_COLD; + void extio_map(address_map &map) ATTR_COLD; u8 vram_r(offs_t offset); void vram_w(offs_t offset, uint8_t data); diff --git a/src/devices/bus/pci/pci_slot.h b/src/devices/bus/pci/pci_slot.h index 7c8c17ff320..3d63159437c 100644 --- a/src/devices/bus/pci/pci_slot.h +++ b/src/devices/bus/pci/pci_slot.h @@ -43,7 +43,7 @@ class pci_slot_device: public device_t, public device_single_card_slot_interface void get_irq_map(std::array &map) const { map = m_irq; } protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: std::array m_irq; @@ -76,8 +76,8 @@ class pci_card_device : public pci_device, public pci_card_interface u8 m_pin_state; std::array m_irq_map; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; pci_card_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); diff --git a/src/devices/bus/pci/pdc20262.h b/src/devices/bus/pci/pdc20262.h index f448894eb03..9278c158d9c 100644 --- a/src/devices/bus/pci/pdc20262.h +++ b/src/devices/bus/pci/pdc20262.h @@ -20,24 +20,24 @@ class pdc20262_device : public pci_card_device protected: pdc20262_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; - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; // virtual void map_extra(uint64_t memory_window_start, uint64_t memory_window_end, uint64_t memory_offset, address_space *memory_space, // uint64_t io_window_start, uint64_t io_window_end, uint64_t io_offset, address_space *io_space) override; - virtual void config_map(address_map &map) override; + virtual void config_map(address_map &map) override ATTR_COLD; private: - void ide1_command_map(address_map &map); - void ide1_control_map(address_map &map); - void ide2_command_map(address_map &map); - void ide2_control_map(address_map &map); - void bus_master_ide_control_map(address_map &map); - void extra_map(address_map &map); + void ide1_command_map(address_map &map) ATTR_COLD; + void ide1_control_map(address_map &map) ATTR_COLD; + void ide2_command_map(address_map &map) ATTR_COLD; + void ide2_control_map(address_map &map) ATTR_COLD; + void bus_master_ide_control_map(address_map &map) ATTR_COLD; + void extra_map(address_map &map) ATTR_COLD; // virtual void device_config_complete() override; diff --git a/src/devices/bus/pci/promotion.h b/src/devices/bus/pci/promotion.h index 11a20f94269..704d6deb354 100644 --- a/src/devices/bus/pci/promotion.h +++ b/src/devices/bus/pci/promotion.h @@ -16,24 +16,24 @@ class promotion3210_device : public pci_card_device public: promotion3210_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - void legacy_memory_map(address_map &map); - void legacy_io_map(address_map &map); + void legacy_memory_map(address_map &map) ATTR_COLD; + void legacy_io_map(address_map &map) ATTR_COLD; static constexpr feature_type unemulated_features() { return feature::GRAPHICS; } protected: promotion3210_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; - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; virtual void map_extra(uint64_t memory_window_start, uint64_t memory_window_end, uint64_t memory_offset, address_space *memory_space, uint64_t io_window_start, uint64_t io_window_end, uint64_t io_offset, address_space *io_space) override; - virtual void config_map(address_map &map) override; + virtual void config_map(address_map &map) override ATTR_COLD; required_device m_vga; required_memory_region m_vga_rom; @@ -41,7 +41,7 @@ class promotion3210_device : public pci_card_device u8 vram_r(offs_t offset); void vram_w(offs_t offset, uint8_t data); - void vram_aperture_map(address_map &map); + void vram_aperture_map(address_map &map) ATTR_COLD; }; DECLARE_DEVICE_TYPE(PROMOTION3210, promotion3210_device) diff --git a/src/devices/bus/pci/riva128.h b/src/devices/bus/pci/riva128.h index a16a1ad5357..a01d8721729 100644 --- a/src/devices/bus/pci/riva128.h +++ b/src/devices/bus/pci/riva128.h @@ -15,26 +15,26 @@ class riva128_device : public pci_card_device public: riva128_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - void legacy_memory_map(address_map &map); - void legacy_io_map(address_map &map); + void legacy_memory_map(address_map &map) ATTR_COLD; + void legacy_io_map(address_map &map) ATTR_COLD; protected: riva128_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; - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; virtual void map_extra(uint64_t memory_window_start, uint64_t memory_window_end, uint64_t memory_offset, address_space *memory_space, uint64_t io_window_start, uint64_t io_window_end, uint64_t io_offset, address_space *io_space) override; - virtual void config_map(address_map &map) override; + virtual void config_map(address_map &map) override ATTR_COLD; - virtual void mmio_map(address_map &map); - virtual void vram_aperture_map(address_map &map); - virtual void indirect_io_map(address_map &map); + virtual void mmio_map(address_map &map) ATTR_COLD; + virtual void vram_aperture_map(address_map &map) ATTR_COLD; + virtual void indirect_io_map(address_map &map) ATTR_COLD; required_device m_svga; required_memory_region m_vga_rom; @@ -56,7 +56,7 @@ class riva128zx_device : public riva128_device riva128zx_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; }; DECLARE_DEVICE_TYPE(RIVA128, riva128_device) diff --git a/src/devices/bus/pci/rivatnt.h b/src/devices/bus/pci/rivatnt.h index 97e77675368..a23393ad29a 100644 --- a/src/devices/bus/pci/rivatnt.h +++ b/src/devices/bus/pci/rivatnt.h @@ -20,8 +20,8 @@ class rivatnt_device : public riva128_device protected: rivatnt_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_start() override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; }; class rivatnt2_device : public rivatnt_device @@ -32,8 +32,8 @@ class rivatnt2_device : public rivatnt_device protected: rivatnt2_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_start() override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; }; class rivatnt2_ultra_device : public rivatnt2_device @@ -42,7 +42,7 @@ class rivatnt2_ultra_device : public rivatnt2_device rivatnt2_ultra_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 vanta_device : public rivatnt2_device @@ -51,7 +51,7 @@ class vanta_device : public rivatnt2_device vanta_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 rivatnt2_model64_device : public rivatnt2_device @@ -60,7 +60,7 @@ class rivatnt2_model64_device : public rivatnt2_device rivatnt2_model64_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; }; DECLARE_DEVICE_TYPE(RIVATNT, rivatnt_device) diff --git a/src/devices/bus/pci/rtl8029as_pci.h b/src/devices/bus/pci/rtl8029as_pci.h index 103b5198b68..746d41b36ff 100644 --- a/src/devices/bus/pci/rtl8029as_pci.h +++ b/src/devices/bus/pci/rtl8029as_pci.h @@ -18,16 +18,16 @@ class rtl8029as_pci_device : public pci_card_device protected: rtl8029as_pci_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; -// virtual const tiny_rom_entry *device_rom_region() const override; +// virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; // virtual void map_extra(uint64_t memory_window_start, uint64_t memory_window_end, uint64_t memory_offset, address_space *memory_space, // uint64_t io_window_start, uint64_t io_window_end, uint64_t io_offset, address_space *io_space) override; - virtual void config_map(address_map &map) override; + virtual void config_map(address_map &map) override ATTR_COLD; private: // ... diff --git a/src/devices/bus/pci/rtl8139_pci.h b/src/devices/bus/pci/rtl8139_pci.h index fd46b599726..5e9220cdee7 100644 --- a/src/devices/bus/pci/rtl8139_pci.h +++ b/src/devices/bus/pci/rtl8139_pci.h @@ -18,16 +18,16 @@ class rtl8139_pci_device : public pci_card_device protected: rtl8139_pci_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; -// virtual const tiny_rom_entry *device_rom_region() const override; +// virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; // virtual void map_extra(uint64_t memory_window_start, uint64_t memory_window_end, uint64_t memory_offset, address_space *memory_space, // uint64_t io_window_start, uint64_t io_window_end, uint64_t io_offset, address_space *io_space) override; - virtual void config_map(address_map &map) override; + virtual void config_map(address_map &map) override ATTR_COLD; private: // ... diff --git a/src/devices/bus/pci/sis6326.h b/src/devices/bus/pci/sis6326.h index 114e2bedde8..ff467785024 100644 --- a/src/devices/bus/pci/sis6326.h +++ b/src/devices/bus/pci/sis6326.h @@ -19,28 +19,28 @@ class sis6326_agp_device : public pci_card_device protected: sis6326_agp_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; - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; virtual void map_extra(uint64_t memory_window_start, uint64_t memory_window_end, uint64_t memory_offset, address_space *memory_space, uint64_t io_window_start, uint64_t io_window_end, uint64_t io_offset, address_space *io_space) override; - virtual void config_map(address_map &map) override; + virtual void config_map(address_map &map) override ATTR_COLD; virtual u8 capptr_r() override; - void vram_aperture_map(address_map &map); - void mmio_map(address_map &map); - void vmi_map(address_map &map); + void vram_aperture_map(address_map &map) ATTR_COLD; + void mmio_map(address_map &map) ATTR_COLD; + void vmi_map(address_map &map) ATTR_COLD; private: required_device m_vga; required_memory_region m_vga_rom; - void legacy_memory_map(address_map &map); - void legacy_io_map(address_map &map); + void legacy_memory_map(address_map &map) ATTR_COLD; + void legacy_io_map(address_map &map) ATTR_COLD; u8 vram_r(offs_t offset); void vram_w(offs_t offset, uint8_t data); diff --git a/src/devices/bus/pci/sonicvibes.h b/src/devices/bus/pci/sonicvibes.h index 5e798c6cdaf..7a216a83f8e 100644 --- a/src/devices/bus/pci/sonicvibes.h +++ b/src/devices/bus/pci/sonicvibes.h @@ -22,21 +22,21 @@ class sonicvibes_device : public pci_card_device protected: sonicvibes_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; - virtual void config_map(address_map &map) override; + virtual void config_map(address_map &map) override ATTR_COLD; private: required_device m_opl3; required_device m_joy; - void games_legacy_map(address_map &map); - void enhanced_map(address_map &map); - void fm_map(address_map &map); - void midi_map(address_map &map); - void gameport_map(address_map &map); + void games_legacy_map(address_map &map) ATTR_COLD; + void enhanced_map(address_map &map) ATTR_COLD; + void fm_map(address_map &map) ATTR_COLD; + void midi_map(address_map &map) ATTR_COLD; + void gameport_map(address_map &map) ATTR_COLD; }; DECLARE_DEVICE_TYPE(SONICVIBES, sonicvibes_device) diff --git a/src/devices/bus/pci/sw1000xg.h b/src/devices/bus/pci/sw1000xg.h index 1ef7bdf4e2b..bb375a704ee 100644 --- a/src/devices/bus/pci/sw1000xg.h +++ b/src/devices/bus/pci/sw1000xg.h @@ -17,17 +17,17 @@ class sw1000xg_device : public ymp21_device { sw1000xg_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 0); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: required_device m_maincpu; required_device m_swp30; - void h8_map(address_map &map); - void swp30_map(address_map &map); + void h8_map(address_map &map) ATTR_COLD; + void swp30_map(address_map &map) ATTR_COLD; }; DECLARE_DEVICE_TYPE(SW1000XG, sw1000xg_device) diff --git a/src/devices/bus/pci/virge_pci.h b/src/devices/bus/pci/virge_pci.h index d820e686514..4ddc836f707 100644 --- a/src/devices/bus/pci/virge_pci.h +++ b/src/devices/bus/pci/virge_pci.h @@ -34,24 +34,24 @@ class virge_pci_device : public pci_card_device virge_pci_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); virge_pci_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - void lfb_map(address_map &map); - void mmio_map(address_map& map); + void lfb_map(address_map &map) ATTR_COLD; + void mmio_map(address_map &map) ATTR_COLD; uint8_t vram_r(offs_t offset); void vram_w(offs_t offset, uint8_t data); uint32_t base_address_r(); void base_address_w(offs_t offset, uint32_t data); - void legacy_io_map(address_map &map); + void legacy_io_map(address_map &map) ATTR_COLD; protected: - virtual void device_start() 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_add_mconfig(machine_config &config) override ATTR_COLD; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; virtual void map_extra(uint64_t memory_window_start, uint64_t memory_window_end, uint64_t memory_offset, address_space *memory_space, uint64_t io_window_start, uint64_t io_window_end, uint64_t io_offset, address_space *io_space) override; - virtual void config_map(address_map &map) override; + virtual void config_map(address_map &map) override ATTR_COLD; void postload(void); @@ -78,9 +78,9 @@ class virgedx_pci_device : public virge_pci_device virgedx_pci_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - virtual void device_start() 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_add_mconfig(machine_config &config) override ATTR_COLD; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; // required_device m_vga; // required_memory_region m_bios; diff --git a/src/devices/bus/pci/vision.h b/src/devices/bus/pci/vision.h index f1e9439ddb6..ebe0f0b9a54 100644 --- a/src/devices/bus/pci/vision.h +++ b/src/devices/bus/pci/vision.h @@ -17,16 +17,16 @@ class vision864_pci_device : public pci_card_device static constexpr feature_type imperfect_features() { return feature::GRAPHICS; } - void legacy_io_map(address_map &map); + void legacy_io_map(address_map &map) ATTR_COLD; protected: vision864_pci_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; - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; virtual void map_extra(uint64_t memory_window_start, uint64_t memory_window_end, uint64_t memory_offset, address_space *memory_space, uint64_t io_window_start, uint64_t io_window_end, uint64_t io_offset, address_space *io_space) override; @@ -46,9 +46,9 @@ class vision964_pci_device : public vision864_pci_device protected: vision964_pci_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; }; class vision968_pci_device : public vision964_pci_device @@ -57,16 +57,16 @@ class vision968_pci_device : public vision964_pci_device vision968_pci_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 void device_add_mconfig(machine_config &config) override ATTR_COLD; - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_start() override; - virtual void device_reset() override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; virtual void map_extra(uint64_t memory_window_start, uint64_t memory_window_end, uint64_t memory_offset, address_space *memory_space, uint64_t io_window_start, uint64_t io_window_end, uint64_t io_offset, address_space *io_space) override; - void lfb_map(address_map &map); + void lfb_map(address_map &map) ATTR_COLD; }; DECLARE_DEVICE_TYPE(VISION864_PCI, vision864_pci_device) diff --git a/src/devices/bus/pci/vt6306.h b/src/devices/bus/pci/vt6306.h index a11c355b58c..485f16aac22 100644 --- a/src/devices/bus/pci/vt6306.h +++ b/src/devices/bus/pci/vt6306.h @@ -16,18 +16,18 @@ class vt6306_device : public pci_card_device protected: vt6306_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; // virtual void map_extra(uint64_t memory_window_start, uint64_t memory_window_end, uint64_t memory_offset, address_space *memory_space, // uint64_t io_window_start, uint64_t io_window_end, uint64_t io_offset, address_space *io_space) override; - virtual void config_map(address_map &map) override; + virtual void config_map(address_map &map) override ATTR_COLD; private: - void ohci_mmio_map(address_map &map); - void vio_map(address_map &map); + void ohci_mmio_map(address_map &map) ATTR_COLD; + void vio_map(address_map &map) ATTR_COLD; virtual u8 capptr_r() override; diff --git a/src/devices/bus/pci/wd9710_pci.h b/src/devices/bus/pci/wd9710_pci.h index 52dfcb4a207..13bf3961e7c 100644 --- a/src/devices/bus/pci/wd9710_pci.h +++ b/src/devices/bus/pci/wd9710_pci.h @@ -18,27 +18,27 @@ class wd9710_pci_device : public pci_card_device static constexpr feature_type unemulated_features() { return feature::GRAPHICS; } - void legacy_io_map(address_map &map); + void legacy_io_map(address_map &map) ATTR_COLD; protected: wd9710_pci_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; - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; virtual void map_extra(uint64_t memory_window_start, uint64_t memory_window_end, uint64_t memory_offset, address_space *memory_space, uint64_t io_window_start, uint64_t io_window_end, uint64_t io_offset, address_space *io_space) override; - virtual void config_map(address_map &map) override; + virtual void config_map(address_map &map) override ATTR_COLD; private: required_device m_svga; required_memory_region m_vga_rom; - void vram_aperture_map(address_map &map); + void vram_aperture_map(address_map &map) ATTR_COLD; u8 vram_r(offs_t offset); void vram_w(offs_t offset, uint8_t data); diff --git a/src/devices/bus/pci/ymp21.h b/src/devices/bus/pci/ymp21.h index 21f22a3e09a..c19e797ab15 100644 --- a/src/devices/bus/pci/ymp21.h +++ b/src/devices/bus/pci/ymp21.h @@ -19,8 +19,8 @@ class ymp21_device : public pci_card_device { ymp21_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock = 0); - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: memory_share_creator m_dsp3_buffer; @@ -29,7 +29,7 @@ class ymp21_device : public pci_card_device { emu_timer *m_rx_timer[2], *m_tx_timer[2]; - void map(address_map &map); + void map(address_map &map) ATTR_COLD; TIMER_CALLBACK_MEMBER(uart_rx); TIMER_CALLBACK_MEMBER(uart_tx); diff --git a/src/devices/bus/pci/zr36057.h b/src/devices/bus/pci/zr36057.h index 6a249a24217..7e7089ac49c 100644 --- a/src/devices/bus/pci/zr36057.h +++ b/src/devices/bus/pci/zr36057.h @@ -19,19 +19,19 @@ class zr36057_device : public pci_card_device protected: zr36057_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; -// virtual const tiny_rom_entry *device_rom_region() const override; +// virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; // virtual void map_extra(uint64_t memory_window_start, uint64_t memory_window_end, uint64_t memory_offset, address_space *memory_space, // uint64_t io_window_start, uint64_t io_window_end, uint64_t io_offset, address_space *io_space) override; - virtual void config_map(address_map &map) override; + virtual void config_map(address_map &map) override ATTR_COLD; private: - void map(address_map &map); + void map(address_map &map) ATTR_COLD; }; DECLARE_DEVICE_TYPE(ZR36057_PCI, zr36057_device) diff --git a/src/devices/bus/pet/2joysnd.h b/src/devices/bus/pet/2joysnd.h index 22694f7d439..0359bddd618 100644 --- a/src/devices/bus/pet/2joysnd.h +++ b/src/devices/bus/pet/2joysnd.h @@ -40,11 +40,11 @@ class pet_userport_joystick_and_sound_device : public device_t, public device_pe protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual ioport_constructor device_input_ports() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; void update_port1(); void update_port2(); diff --git a/src/devices/bus/pet/64k.h b/src/devices/bus/pet/64k.h index 6b55cc3098e..02a3db20ebb 100644 --- a/src/devices/bus/pet/64k.h +++ b/src/devices/bus/pet/64k.h @@ -29,8 +29,8 @@ class pet_64k_expansion_device : public device_t, public device_pet_expansion_ca 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; // device_pet_expansion_card_interface overrides virtual int pet_norom_r(offs_t offset, int sel) override; diff --git a/src/devices/bus/pet/c2n.h b/src/devices/bus/pet/c2n.h index d8c741c6b4f..1af93b59684 100644 --- a/src/devices/bus/pet/c2n.h +++ b/src/devices/bus/pet/c2n.h @@ -33,10 +33,10 @@ class c2n_device : public device_t, c2n_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; // device_pet_datassette_port_interface overrides virtual int datassette_read() override; diff --git a/src/devices/bus/pet/cass.h b/src/devices/bus/pet/cass.h index 51c2e5dfa42..c0f53276733 100644 --- a/src/devices/bus/pet/cass.h +++ b/src/devices/bus/pet/cass.h @@ -69,7 +69,7 @@ class pet_datassette_port_device : public device_t, public device_single_card_sl protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; devcb_write_line m_read_handler; diff --git a/src/devices/bus/pet/cb2snd.h b/src/devices/bus/pet/cb2snd.h index 719e0db7c9f..a6dd4e7c2cd 100644 --- a/src/devices/bus/pet/cb2snd.h +++ b/src/devices/bus/pet/cb2snd.h @@ -29,9 +29,9 @@ class pet_userport_cb2_sound_device : public device_t, protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; required_device m_dac; }; diff --git a/src/devices/bus/pet/diag.h b/src/devices/bus/pet/diag.h index 400c3df6a1c..634b030356a 100644 --- a/src/devices/bus/pet/diag.h +++ b/src/devices/bus/pet/diag.h @@ -44,7 +44,7 @@ class pet_userport_diagnostic_connector_device : public device_t, public device_ protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; }; diff --git a/src/devices/bus/pet/diag264_lb_tape.h b/src/devices/bus/pet/diag264_lb_tape.h index 6eb11fd395d..205780114df 100644 --- a/src/devices/bus/pet/diag264_lb_tape.h +++ b/src/devices/bus/pet/diag264_lb_tape.h @@ -30,7 +30,7 @@ class diag264_cassette_loopback_device : public device_t, protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_pet_datassette_port_interface overrides virtual int datassette_read() override; diff --git a/src/devices/bus/pet/exp.h b/src/devices/bus/pet/exp.h index b8b53701a79..a95dc536300 100644 --- a/src/devices/bus/pet/exp.h +++ b/src/devices/bus/pet/exp.h @@ -79,7 +79,7 @@ class pet_expansion_slot_device : public device_t, protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; device_pet_expansion_card_interface *m_card; diff --git a/src/devices/bus/pet/hsg.h b/src/devices/bus/pet/hsg.h index e86cb101ac3..394dd6b7526 100644 --- a/src/devices/bus/pet/hsg.h +++ b/src/devices/bus/pet/hsg.h @@ -29,11 +29,11 @@ class cbm8000_hsg_device : public device_t, public device_pet_expansion_card_int cbm8000_hsg_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; // device_pet_expansion_card_interface overrides virtual int pet_norom_r(offs_t offset, int sel) override; @@ -58,10 +58,10 @@ class cbm8000_hsg_a_device : public cbm8000_hsg_device protected: // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: - void hsg_a_map(address_map &map); + void hsg_a_map(address_map &map) ATTR_COLD; }; @@ -75,10 +75,10 @@ class cbm8000_hsg_b_device : public cbm8000_hsg_device protected: // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: - void hsg_b_map(address_map &map); + void hsg_b_map(address_map &map) ATTR_COLD; }; diff --git a/src/devices/bus/pet/petuja.h b/src/devices/bus/pet/petuja.h index 9d5c9693743..80003dee386 100644 --- a/src/devices/bus/pet/petuja.h +++ b/src/devices/bus/pet/petuja.h @@ -30,7 +30,7 @@ class pet_userport_joystick_adapter_device : public device_t, pet_userport_joystick_adapter_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // optional information overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; // device_pet_user_port_interface overrides void write_up1(int state) { m_up1 = state; update_port1(); } @@ -42,7 +42,7 @@ class pet_userport_joystick_adapter_device : public device_t, protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; void update_port1(); void update_port2(); diff --git a/src/devices/bus/pet/superpet.h b/src/devices/bus/pet/superpet.h index 8dff4cd00b6..2625d85f997 100644 --- a/src/devices/bus/pet/superpet.h +++ b/src/devices/bus/pet/superpet.h @@ -32,13 +32,13 @@ class superpet_device : public device_t, 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; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; // device_pet_expansion_card_interface overrides virtual int pet_norom_r(offs_t offset, int sel) override; @@ -53,7 +53,7 @@ class superpet_device : public device_t, uint8_t read(offs_t offset); void write(offs_t offset, uint8_t data); - void superpet_mem(address_map &map); + void superpet_mem(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_acia; diff --git a/src/devices/bus/pet/user.h b/src/devices/bus/pet/user.h index 52e334d40d0..99a2e76cf4f 100644 --- a/src/devices/bus/pet/user.h +++ b/src/devices/bus/pet/user.h @@ -90,7 +90,7 @@ class pet_user_port_device : public device_t, public device_slot_interface protected: // device-level overrides virtual void device_config_complete() override; - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; devcb_write_line m_2_handler; devcb_write_line m_3_handler; diff --git a/src/devices/bus/plg1x0/plg100-vl.cpp b/src/devices/bus/plg1x0/plg100-vl.cpp index 177813052df..ae6f326c2bd 100644 --- a/src/devices/bus/plg1x0/plg100-vl.cpp +++ b/src/devices/bus/plg1x0/plg100-vl.cpp @@ -24,16 +24,16 @@ class plg100_vl_device : public device_t, public device_plg1x0_interface virtual void midi_rx(int state) override; protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: required_device m_cpu; required_device m_dspv; - void map(address_map &map); + void map(address_map &map) ATTR_COLD; }; plg100_vl_device::plg100_vl_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) : diff --git a/src/devices/bus/plg1x0/plg150-ap.cpp b/src/devices/bus/plg1x0/plg150-ap.cpp index 964ec39108b..c1455819fa7 100644 --- a/src/devices/bus/plg1x0/plg150-ap.cpp +++ b/src/devices/bus/plg1x0/plg150-ap.cpp @@ -23,15 +23,15 @@ class plg150_ap_device : public device_t, public device_plg1x0_interface virtual void midi_rx(int state) override; protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: required_device m_cpu; - void map(address_map &map); + void map(address_map &map) ATTR_COLD; }; plg150_ap_device::plg150_ap_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) : diff --git a/src/devices/bus/plg1x0/plg1x0.h b/src/devices/bus/plg1x0/plg1x0.h index 8c049c215d5..b4917ba9b39 100644 --- a/src/devices/bus/plg1x0/plg1x0.h +++ b/src/devices/bus/plg1x0/plg1x0.h @@ -56,7 +56,7 @@ class plg1x0_connector: public device_t, public device_single_card_slot_interfac bool m_state_system_is_annoying = true; devcb_write_line m_midi_tx; - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; }; class device_plg1x0_interface: public device_interface diff --git a/src/devices/bus/plus4/c1551.h b/src/devices/bus/plus4/c1551.h index eddad2c8046..3868fe1b7d5 100644 --- a/src/devices/bus/plus4/c1551.h +++ b/src/devices/bus/plus4/c1551.h @@ -34,13 +34,13 @@ class c1551_device : public device_t, public device_plus4_expansion_card_interfa 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; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; // device_plus4_expansion_card_interface overrides virtual uint8_t plus4_cd_r(offs_t offset, uint8_t data, int ba, int cs0, int c1l, int c2l, int cs1, int c1h, int c2h) override; @@ -64,7 +64,7 @@ class c1551_device : public device_t, public device_plus4_expansion_card_interfa uint8_t tpi0_r(offs_t offset); void tpi0_w(offs_t offset, uint8_t data); - void c1551_mem(address_map &map); + void c1551_mem(address_map &map) ATTR_COLD; static void floppy_formats(format_registration &fr); diff --git a/src/devices/bus/plus4/diag264_lb_user.h b/src/devices/bus/plus4/diag264_lb_user.h index 932868f81a3..e2f50055500 100644 --- a/src/devices/bus/plus4/diag264_lb_user.h +++ b/src/devices/bus/plus4/diag264_lb_user.h @@ -29,7 +29,7 @@ class diag264_user_port_loopback_device : public device_t, public device_pet_use protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_pet_user_port_interface overrides virtual void input_b(int state) override { output_6(state); } diff --git a/src/devices/bus/plus4/exp.h b/src/devices/bus/plus4/exp.h index 8dbd43106cf..951031c9796 100644 --- a/src/devices/bus/plus4/exp.h +++ b/src/devices/bus/plus4/exp.h @@ -85,7 +85,7 @@ class plus4_expansion_slot_device : public device_t, protected: // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_image_interface implementation virtual std::pair call_load() override; diff --git a/src/devices/bus/plus4/sid.h b/src/devices/bus/plus4/sid.h index 1566381e6d2..1e91e046934 100644 --- a/src/devices/bus/plus4/sid.h +++ b/src/devices/bus/plus4/sid.h @@ -32,12 +32,12 @@ class plus4_sid_cartridge_device : public device_t, 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; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; // device_plus4_expansion_card_interface overrides virtual uint8_t plus4_cd_r(offs_t offset, uint8_t data, int ba, int cs0, int c1l, int c2l, int cs1, int c1h, int c2h) override; diff --git a/src/devices/bus/plus4/std.h b/src/devices/bus/plus4/std.h index f1f3ae75328..a3379305f71 100644 --- a/src/devices/bus/plus4/std.h +++ b/src/devices/bus/plus4/std.h @@ -30,7 +30,7 @@ class plus4_standard_cartridge_device : public device_t, protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_plus4_expansion_card_interface overrides virtual uint8_t plus4_cd_r(offs_t offset, uint8_t data, int ba, int cs0, int c1l, int c2l, int cs1, int c1h, int c2h) override; diff --git a/src/devices/bus/pofo/ccm.h b/src/devices/bus/pofo/ccm.h index 317884c8ce2..df889bd4bab 100644 --- a/src/devices/bus/pofo/ccm.h +++ b/src/devices/bus/pofo/ccm.h @@ -116,7 +116,7 @@ class portfolio_memory_card_slot_device : public device_t, protected: // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_image_interface implementation virtual std::pair call_load() override; diff --git a/src/devices/bus/pofo/exp.h b/src/devices/bus/pofo/exp.h index 9f37bcf444c..9dd1dbe9ffa 100644 --- a/src/devices/bus/pofo/exp.h +++ b/src/devices/bus/pofo/exp.h @@ -124,8 +124,8 @@ class portfolio_expansion_slot_device : public device_t, public device_single_ca 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; devcb_write_line m_write_eint; devcb_write_line m_write_nmio; diff --git a/src/devices/bus/pofo/hpc101.h b/src/devices/bus/pofo/hpc101.h index fa18b5d6d4d..22832457173 100644 --- a/src/devices/bus/pofo/hpc101.h +++ b/src/devices/bus/pofo/hpc101.h @@ -31,11 +31,11 @@ class pofo_hpc101_device : public device_t, public device_portfolio_expansion_sl 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; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; // device_portfolio_expansion_slot_interface overrides bool pdet() override { return 1; } diff --git a/src/devices/bus/pofo/hpc102.h b/src/devices/bus/pofo/hpc102.h index c7168b12787..a05664eed3c 100644 --- a/src/devices/bus/pofo/hpc102.h +++ b/src/devices/bus/pofo/hpc102.h @@ -31,11 +31,11 @@ class pofo_hpc102_device : public device_t, public device_portfolio_expansion_sl 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; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; // device_portfolio_expansion_slot_interface overrides bool pdet() override { return 1; } diff --git a/src/devices/bus/pofo/hpc104.h b/src/devices/bus/pofo/hpc104.h index d8802d869f1..9dded68f9e1 100644 --- a/src/devices/bus/pofo/hpc104.h +++ b/src/devices/bus/pofo/hpc104.h @@ -34,10 +34,10 @@ class pofo_hpc104_device : public device_t, pofo_hpc104_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // device_t implementation - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; // device_nvram_interface implementation virtual void nvram_default() override; @@ -72,7 +72,7 @@ class pofo_hpc104_2_device : public pofo_hpc104_device pofo_hpc104_2_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // optional information overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; }; diff --git a/src/devices/bus/pofo/ram.h b/src/devices/bus/pofo/ram.h index 0332d201fb9..edd7326dff0 100644 --- a/src/devices/bus/pofo/ram.h +++ b/src/devices/bus/pofo/ram.h @@ -31,7 +31,7 @@ class portfolio_ram_card_device : public device_t, protected: // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_nvram_interface implementation virtual void nvram_default() override; diff --git a/src/devices/bus/pofo/rom.h b/src/devices/bus/pofo/rom.h index 6df19402a36..8be5e4e882c 100644 --- a/src/devices/bus/pofo/rom.h +++ b/src/devices/bus/pofo/rom.h @@ -30,7 +30,7 @@ class portfolio_rom_card_device : public device_t, protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_portfolio_memory_card_slot_interface overrides virtual bool cdet() override { return 0; } diff --git a/src/devices/bus/psi_kbd/ergoline.h b/src/devices/bus/psi_kbd/ergoline.h index 3b3329d45cb..4a94376167e 100644 --- a/src/devices/bus/psi_kbd/ergoline.h +++ b/src/devices/bus/psi_kbd/ergoline.h @@ -32,18 +32,18 @@ class ergoline_keyboard_device : public device_t, public device_psi_keyboard_int protected: // device_t overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual ioport_constructor device_input_ports() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; // from host virtual void tx_w(int state) override; private: - void kbd_io(address_map &map); - void kbd_mem(address_map &map); + void kbd_io(address_map &map) ATTR_COLD; + void kbd_mem(address_map &map) ATTR_COLD; }; diff --git a/src/devices/bus/psi_kbd/hle.h b/src/devices/bus/psi_kbd/hle.h index b563489ef22..266270e115c 100644 --- a/src/devices/bus/psi_kbd/hle.h +++ b/src/devices/bus/psi_kbd/hle.h @@ -31,9 +31,9 @@ class psi_hle_keyboard_device : public device_t, protected: // device_t overrides - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; - virtual void device_reset() override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; // device_matrix_keyboard_interface overrides virtual void key_make(uint8_t row, uint8_t column) override; diff --git a/src/devices/bus/psi_kbd/psi_kbd.h b/src/devices/bus/psi_kbd/psi_kbd.h index 37e9f1f327e..e2ba0f6f642 100644 --- a/src/devices/bus/psi_kbd/psi_kbd.h +++ b/src/devices/bus/psi_kbd/psi_kbd.h @@ -71,8 +71,8 @@ class psi_keyboard_bus_device : public device_t, public device_single_card_slot_ 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; private: device_psi_keyboard_interface *m_kbd; diff --git a/src/devices/bus/psion/honda/slot.h b/src/devices/bus/psion/honda/slot.h index 30ef50e1a3f..5f7eeef0165 100644 --- a/src/devices/bus/psion/honda/slot.h +++ b/src/devices/bus/psion/honda/slot.h @@ -78,7 +78,7 @@ class psion_honda_slot_device : public device_t, public device_single_card_slot_ protected: // device_t overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: devcb_write_line m_rxd_handler; diff --git a/src/devices/bus/psion/honda/ssd.h b/src/devices/bus/psion/honda/ssd.h index 171b0549110..9302c544b10 100644 --- a/src/devices/bus/psion/honda/ssd.h +++ b/src/devices/bus/psion/honda/ssd.h @@ -31,10 +31,10 @@ class psion_siena_ssd_device : protected: // device_t overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual uint8_t data_r() override { return m_ssd->data_r(); } virtual void data_w(uint16_t data) override { m_ssd->data_w(data); } diff --git a/src/devices/bus/psion/module/slot.h b/src/devices/bus/psion/module/slot.h index 8919277627b..66c427dfb94 100644 --- a/src/devices/bus/psion/module/slot.h +++ b/src/devices/bus/psion/module/slot.h @@ -79,7 +79,7 @@ class psion_module_slot_device : public device_t, public device_single_card_slot protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; device_psion_module_interface *m_card; diff --git a/src/devices/bus/psion/sibo/3fax.h b/src/devices/bus/psion/sibo/3fax.h index 744e1cf0c6b..43fb614d803 100644 --- a/src/devices/bus/psion/sibo/3fax.h +++ b/src/devices/bus/psion/sibo/3fax.h @@ -31,11 +31,11 @@ class psion_3fax_modem_device : protected: // device_t overrides - virtual void device_start() override; + virtual void device_start() 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; virtual uint8_t data_r() override { return m_asic4->data_r(); } virtual void data_w(uint16_t data) override { m_asic4->data_w(data); } @@ -43,7 +43,7 @@ class psion_3fax_modem_device : private: required_device m_asic4; - void asic4_map(address_map &map); + void asic4_map(address_map &map) ATTR_COLD; }; diff --git a/src/devices/bus/psion/sibo/3link.h b/src/devices/bus/psion/sibo/3link.h index c17acca8d1d..f25c9f341e0 100644 --- a/src/devices/bus/psion/sibo/3link.h +++ b/src/devices/bus/psion/sibo/3link.h @@ -29,12 +29,12 @@ class psion_3link_serial_device : public device_t, public device_psion_sibo_inte protected: // device_t 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; // 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; virtual uint8_t data_r() override { return m_asic5->data_r(); } virtual void data_w(uint16_t data) override { m_asic5->data_w(data); } @@ -58,11 +58,11 @@ class psion_3link_parallel_device : public device_t, public device_psion_sibo_in protected: // device_t 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; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual uint8_t data_r() override { return m_asic5->data_r(); } virtual void data_w(uint16_t data) override { m_asic5->data_w(data); } diff --git a/src/devices/bus/psion/sibo/slot.h b/src/devices/bus/psion/sibo/slot.h index c4f9a9f0429..9b035732b27 100644 --- a/src/devices/bus/psion/sibo/slot.h +++ b/src/devices/bus/psion/sibo/slot.h @@ -57,7 +57,7 @@ class psion_sibo_slot_device : public device_t, public device_single_card_slot_i protected: // device_t overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: devcb_write_line m_int_cb; diff --git a/src/devices/bus/psx/analogue.h b/src/devices/bus/psx/analogue.h index 09eaf9baa65..825b3895efd 100644 --- a/src/devices/bus/psx/analogue.h +++ b/src/devices/bus/psx/analogue.h @@ -14,7 +14,7 @@ class psx_analog_controller_device : public device_t, public device_psx_controller_interface { public: - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; DECLARE_INPUT_CHANGED_MEMBER(change_mode); protected: enum class model { JOYSTICK, DUALSHOCK }; @@ -22,7 +22,7 @@ class psx_analog_controller_device : public device_t, psx_analog_controller_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, model mod); virtual void device_start() override { } - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; private: virtual bool get_pad(int count, uint8_t *odata, uint8_t idata) override; diff --git a/src/devices/bus/psx/ctlrport.h b/src/devices/bus/psx/ctlrport.h index 0fc7fba52d7..24e65ecedb0 100644 --- a/src/devices/bus/psx/ctlrport.h +++ b/src/devices/bus/psx/ctlrport.h @@ -67,7 +67,7 @@ class psx_standard_controller_device : public device_t, public: psx_standard_controller_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; protected: virtual void device_start() override { } @@ -94,7 +94,7 @@ class psxcontrollerports_device : public device_t void write_txd(int state); protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: required_device m_port0; @@ -141,7 +141,7 @@ class psx_controller_port_device : public device_t, virtual void device_reset() override { m_tx = true; } virtual void device_config_complete() override; - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: void_cb m_ack_cb; diff --git a/src/devices/bus/psx/gamebooster.h b/src/devices/bus/psx/gamebooster.h index 9e990f726d5..9d6571c3c6c 100644 --- a/src/devices/bus/psx/gamebooster.h +++ b/src/devices/bus/psx/gamebooster.h @@ -30,10 +30,10 @@ class psx_gamebooster_device : protected: // device_t implementation - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; // device_memory_interface implementation virtual space_config_vector memory_space_config() const override; diff --git a/src/devices/bus/psx/memcard.h b/src/devices/bus/psx/memcard.h index 557800cb4d8..e4ec1dfc5d3 100644 --- a/src/devices/bus/psx/memcard.h +++ b/src/devices/bus/psx/memcard.h @@ -31,8 +31,8 @@ class psxcard_device : public device_t, bool ack_r() { return m_ack; } protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: void read_card(const unsigned short addr, unsigned char *buf); diff --git a/src/devices/bus/psx/multitap.h b/src/devices/bus/psx/multitap.h index 0ac7e6626f7..d8a0321d19d 100644 --- a/src/devices/bus/psx/multitap.h +++ b/src/devices/bus/psx/multitap.h @@ -14,12 +14,12 @@ class psx_multitap_device : public device_t, psx_multitap_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void device_stop() override { device_psx_controller_interface::m_owner->disable_card(false); } virtual void device_reset() override { device_psx_controller_interface::m_owner->disable_card(true); } virtual void interface_pre_reset() override; - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: virtual bool get_pad(int count, uint8_t *odata, uint8_t idata) override; diff --git a/src/devices/bus/psx/parallel.h b/src/devices/bus/psx/parallel.h index 313a2ecc951..7d75093a34d 100644 --- a/src/devices/bus/psx/parallel.h +++ b/src/devices/bus/psx/parallel.h @@ -37,7 +37,7 @@ class psx_parallel_slot_device : public device_t, public device_single_card_slot protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: psx_parallel_interface *m_card; diff --git a/src/devices/bus/qbus/dsd4432.h b/src/devices/bus/qbus/dsd4432.h index 6f59404077c..0b18d9532a5 100644 --- a/src/devices/bus/qbus/dsd4432.h +++ b/src/devices/bus/qbus/dsd4432.h @@ -29,10 +29,10 @@ class dsd4432_device : public device_t, public device_qbus_card_interface protected: // device-level overrides - virtual void device_start() override; - virtual ioport_constructor device_input_ports() const 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 ioport_constructor device_input_ports() const 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; required_region_ptr m_bootstrap; required_ioport m_bootaddr; diff --git a/src/devices/bus/qbus/dvk_kgd.h b/src/devices/bus/qbus/dvk_kgd.h index 8ecd4ef23e2..dfcb027706d 100644 --- a/src/devices/bus/qbus/dvk_kgd.h +++ b/src/devices/bus/qbus/dvk_kgd.h @@ -42,9 +42,9 @@ class dvk_kgd_device : public device_t, protected: // device-level overrides - 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; required_device m_screen; diff --git a/src/devices/bus/qbus/dvk_mx.h b/src/devices/bus/qbus/dvk_mx.h index f65b4ec1b27..556ec5839fb 100644 --- a/src/devices/bus/qbus/dvk_mx.h +++ b/src/devices/bus/qbus/dvk_mx.h @@ -34,9 +34,9 @@ class dvk_mx_device : public device_t, public device_qbus_card_interface protected: // device_t implementation - 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; TIMER_CALLBACK_MEMBER(update_floppy); TIMER_CALLBACK_MEMBER(twokhz_tick); diff --git a/src/devices/bus/qbus/pc11.h b/src/devices/bus/qbus/pc11.h index 2247fb54f72..1793808826c 100644 --- a/src/devices/bus/qbus/pc11.h +++ b/src/devices/bus/qbus/pc11.h @@ -48,8 +48,8 @@ class pc11_device : public paper_tape_reader_device, protected: // 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; // device_z80daisy_interface implementation virtual int z80daisy_irq_state() override; diff --git a/src/devices/bus/qbus/qbus.h b/src/devices/bus/qbus/qbus.h index 7e647eb40da..613e366546a 100644 --- a/src/devices/bus/qbus/qbus.h +++ b/src/devices/bus/qbus/qbus.h @@ -95,8 +95,8 @@ class qbus_device : public device_t, protected: // 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; // device_z80daisy_interface implementation virtual int z80daisy_irq_state() override; @@ -142,7 +142,7 @@ class qbus_slot_device : public device_t, public device_slot_interface protected: // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; devcb_write_line m_write_birq4; devcb_write_line m_write_birq5; diff --git a/src/devices/bus/qbus/qg640.h b/src/devices/bus/qbus/qg640.h index 30cd93ca0ce..5138a22c99a 100644 --- a/src/devices/bus/qbus/qg640.h +++ b/src/devices/bus/qbus/qg640.h @@ -26,9 +26,9 @@ class qg640_device : public device_t, public device_qbus_card_interface protected: // device-level overrides - virtual void device_start() 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_add_mconfig(machine_config &config) override ATTR_COLD; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; private: u32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); @@ -39,8 +39,8 @@ class qg640_device : public device_t, public device_qbus_card_interface u16 acrtc_r(offs_t offset); void acrtc_w(offs_t offset, u16 data); - void mem_map(address_map &map); - void videoram_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void videoram_map(address_map &map) ATTR_COLD; required_device m_qgcpu; required_device m_fifo; diff --git a/src/devices/bus/qbus/qtx.h b/src/devices/bus/qbus/qtx.h index 2357c0342e3..ae48ecd7150 100644 --- a/src/devices/bus/qbus/qtx.h +++ b/src/devices/bus/qbus/qtx.h @@ -25,9 +25,9 @@ class qts1_device : public device_t, public device_qbus_card_interface protected: // device-level overrides - virtual void device_start() 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_add_mconfig(machine_config &config) override ATTR_COLD; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; private: u8 asc_r(offs_t offset); @@ -38,8 +38,8 @@ class qts1_device : public device_t, public device_qbus_card_interface void asc_config(device_t *device); - void prg_map(address_map &map); - void fc7_map(address_map &map); + void prg_map(address_map &map) ATTR_COLD; + void fc7_map(address_map &map) ATTR_COLD; required_device m_localcpu; required_device m_mfp; diff --git a/src/devices/bus/qbus/uknc_kmd.h b/src/devices/bus/qbus/uknc_kmd.h index fc7b8ece7b9..4e3a4cb916e 100644 --- a/src/devices/bus/qbus/uknc_kmd.h +++ b/src/devices/bus/qbus/uknc_kmd.h @@ -30,8 +30,8 @@ class uknc_kmd_device : public device_t, public device_qbus_card_interface protected: // device_t implementation - 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; required_device m_fdc; }; diff --git a/src/devices/bus/ql/cst_q_plus4.h b/src/devices/bus/ql/cst_q_plus4.h index 799829bce99..75e8228e0f8 100644 --- a/src/devices/bus/ql/cst_q_plus4.h +++ b/src/devices/bus/ql/cst_q_plus4.h @@ -30,11 +30,11 @@ class cst_q_plus4_device : public device_t, public device_ql_expansion_card_inte protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; // device_ql_expansion_card_interface overrides virtual uint8_t read(offs_t offset, uint8_t data) override; diff --git a/src/devices/bus/ql/cst_qdisc.h b/src/devices/bus/ql/cst_qdisc.h index fdd492f1230..90df785ce98 100644 --- a/src/devices/bus/ql/cst_qdisc.h +++ b/src/devices/bus/ql/cst_qdisc.h @@ -29,11 +29,11 @@ class cst_ql_disc_interface_device : public device_t, cst_ql_disc_interface_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_ql_expansion_card_interface overrides virtual uint8_t read(offs_t offset, uint8_t data) override; diff --git a/src/devices/bus/ql/cumana_fdi.h b/src/devices/bus/ql/cumana_fdi.h index 2080251fcf3..89006faeec7 100644 --- a/src/devices/bus/ql/cumana_fdi.h +++ b/src/devices/bus/ql/cumana_fdi.h @@ -28,11 +28,11 @@ class cumana_floppy_disk_interface_device : public device_t, public device_ql_ex cumana_floppy_disk_interface_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_ql_expansion_card_interface overrides virtual uint8_t read(offs_t offset, uint8_t data) override; diff --git a/src/devices/bus/ql/exp.h b/src/devices/bus/ql/exp.h index 767f98cf4ef..32d24f85862 100644 --- a/src/devices/bus/ql/exp.h +++ b/src/devices/bus/ql/exp.h @@ -112,8 +112,8 @@ class ql_expansion_slot_device : public device_t, public device_single_card_slot protected: // device-level overrides - 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; devcb_write_line m_write_ipl0l; devcb_write_line m_write_ipl1l; diff --git a/src/devices/bus/ql/kempston_di.h b/src/devices/bus/ql/kempston_di.h index cc75a5fe0fc..a8a8024f0fd 100644 --- a/src/devices/bus/ql/kempston_di.h +++ b/src/devices/bus/ql/kempston_di.h @@ -28,11 +28,11 @@ class kempston_disk_interface_device : public device_t, public device_ql_expansi kempston_disk_interface_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_ql_expansion_card_interface overrides virtual uint8_t read(offs_t offset, uint8_t data) override; diff --git a/src/devices/bus/ql/miracle_gold_card.h b/src/devices/bus/ql/miracle_gold_card.h index 7ed9d0e2eb8..1f3dc5b73db 100644 --- a/src/devices/bus/ql/miracle_gold_card.h +++ b/src/devices/bus/ql/miracle_gold_card.h @@ -28,11 +28,11 @@ class miracle_gold_card_device : public device_t, public device_ql_expansion_car miracle_gold_card_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_ql_expansion_card_interface overrides virtual uint8_t read(offs_t offset, uint8_t data) override; diff --git a/src/devices/bus/ql/miracle_hd.h b/src/devices/bus/ql/miracle_hd.h index 983dce66f8b..285bab8ddb0 100644 --- a/src/devices/bus/ql/miracle_hd.h +++ b/src/devices/bus/ql/miracle_hd.h @@ -29,11 +29,11 @@ class miracle_hard_disk_device : public device_t, miracle_hard_disk_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_ql_rom_cartridge_card_interface overrides virtual uint8_t read(offs_t offset, uint8_t data) override; diff --git a/src/devices/bus/ql/mp_fdi.h b/src/devices/bus/ql/mp_fdi.h index 3fc9d9d8c83..5a27246e02a 100644 --- a/src/devices/bus/ql/mp_fdi.h +++ b/src/devices/bus/ql/mp_fdi.h @@ -27,11 +27,11 @@ class micro_peripherals_floppy_disk_interface_device : public device_t, public d micro_peripherals_floppy_disk_interface_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_ql_expansion_card_interface overrides virtual uint8_t read(offs_t offset, uint8_t data) override; diff --git a/src/devices/bus/ql/opd_basic_master.h b/src/devices/bus/ql/opd_basic_master.h index 3592823dd2b..431176d3e3e 100644 --- a/src/devices/bus/ql/opd_basic_master.h +++ b/src/devices/bus/ql/opd_basic_master.h @@ -28,11 +28,11 @@ class opd_basic_master_device : public device_t, public device_ql_expansion_card opd_basic_master_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_ql_expansion_card_interface overrides virtual uint8_t read(offs_t offset, uint8_t data) override; diff --git a/src/devices/bus/ql/pcml_qdisk.h b/src/devices/bus/ql/pcml_qdisk.h index cedd3f953f7..e0cb7d01e33 100644 --- a/src/devices/bus/ql/pcml_qdisk.h +++ b/src/devices/bus/ql/pcml_qdisk.h @@ -28,11 +28,11 @@ class pcml_q_disk_interface_device : public device_t, public device_ql_expansion pcml_q_disk_interface_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_ql_expansion_card_interface overrides virtual uint8_t read(offs_t offset, uint8_t data) override; diff --git a/src/devices/bus/ql/qubide.h b/src/devices/bus/ql/qubide.h index 8f4d88d37ee..8685e5c247c 100644 --- a/src/devices/bus/ql/qubide.h +++ b/src/devices/bus/ql/qubide.h @@ -30,13 +30,13 @@ class qubide_device : public device_t, public device_ql_expansion_card_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; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; // device_ql_expansion_card_interface overrides virtual uint8_t read(offs_t offset, uint8_t data) override; diff --git a/src/devices/bus/ql/rom.h b/src/devices/bus/ql/rom.h index fe32cdcf828..b9bccfc21aa 100644 --- a/src/devices/bus/ql/rom.h +++ b/src/devices/bus/ql/rom.h @@ -92,8 +92,8 @@ class ql_rom_cartridge_slot_device : public device_t, protected: // 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; // device_image_interface implementation virtual std::pair call_load() override; diff --git a/src/devices/bus/ql/sandy_superdisk.h b/src/devices/bus/ql/sandy_superdisk.h index ec7f7cc9ef2..75f99aef7bf 100644 --- a/src/devices/bus/ql/sandy_superdisk.h +++ b/src/devices/bus/ql/sandy_superdisk.h @@ -32,12 +32,12 @@ class sandy_super_disk_device : public device_t, public device_ql_expansion_card 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; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; // device_ql_expansion_card_interface overrides virtual uint8_t read(offs_t offset, uint8_t data) override; diff --git a/src/devices/bus/ql/sandy_superqboard.h b/src/devices/bus/ql/sandy_superqboard.h index bc64d9c6c97..571e54e6209 100644 --- a/src/devices/bus/ql/sandy_superqboard.h +++ b/src/devices/bus/ql/sandy_superqboard.h @@ -37,12 +37,12 @@ class sandy_superqboard_device : public device_t, public device_ql_expansion_car sandy_superqboard_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, int ram_size); // 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; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; // device_ql_expansion_card_interface overrides virtual uint8_t read(offs_t offset, uint8_t data) override; @@ -102,7 +102,7 @@ class sandy_superqmouse_device : public sandy_superqboard_device sandy_superqmouse_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // optional information overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; }; @@ -115,7 +115,7 @@ class sandy_superqmouse_512k_device : public sandy_superqboard_device sandy_superqmouse_512k_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // optional information overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; }; diff --git a/src/devices/bus/ql/std.h b/src/devices/bus/ql/std.h index 823c3a70008..5e1572fa32c 100644 --- a/src/devices/bus/ql/std.h +++ b/src/devices/bus/ql/std.h @@ -29,7 +29,7 @@ class ql_standard_rom_cartridge_device : public device_t, public device_ql_rom_c protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_ql_rom_cartridge_card_interface overrides virtual uint8_t read(offs_t offset, uint8_t data) override; diff --git a/src/devices/bus/ql/trumpcard.h b/src/devices/bus/ql/trumpcard.h index a3833f1c1d8..6570e7f6cb0 100644 --- a/src/devices/bus/ql/trumpcard.h +++ b/src/devices/bus/ql/trumpcard.h @@ -33,12 +33,12 @@ class ql_trump_card_device : public device_t, public device_ql_expansion_card_in ql_trump_card_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, int ram_size); // 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; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; // device_ql_expansion_card_interface overrides virtual uint8_t read(offs_t offset, uint8_t data) override; diff --git a/src/devices/bus/rc2014/cf.cpp b/src/devices/bus/rc2014/cf.cpp index 3ba614f2cdb..60e91639fd6 100644 --- a/src/devices/bus/rc2014/cf.cpp +++ b/src/devices/bus/rc2014/cf.cpp @@ -25,9 +25,9 @@ class compact_flash_device : public device_t, public device_rc2014_card_interfac protected: // device-level overrides - 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; void tx_w(int state) { m_bus->tx_w(state); } diff --git a/src/devices/bus/rc2014/clock.cpp b/src/devices/bus/rc2014/clock.cpp index 00a5e88d358..4399c79e1e7 100644 --- a/src/devices/bus/rc2014/clock.cpp +++ b/src/devices/bus/rc2014/clock.cpp @@ -25,8 +25,8 @@ class single_clock_device : public device_t, public device_rc2014_card_interface protected: // device-level overrides - 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; void clk_w(int state) { m_bus->clk_w(state); } }; @@ -64,10 +64,10 @@ class dual_clock_base : public device_t dual_clock_base(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); // device-level overrides - virtual void device_start() override; - virtual void device_reset() override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() 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 ioport_constructor device_input_ports() const override ATTR_COLD; virtual void clk_w(int state) = 0; virtual void clk2_w(int state) = 0; @@ -170,7 +170,7 @@ class dual_clock_device : public dual_clock_base, public device_rc2014_ext_card_ protected: // device-level overrides - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; // base-class overrides void clk_w(int state) override { m_bus->clk_w(state); } @@ -201,7 +201,7 @@ class dual_clock_device_40pin : public dual_clock_base, public device_rc2014_car protected: // device-level overrides - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; // base-class overrides void clk_w(int state) override { m_bus->clk_w(state); } diff --git a/src/devices/bus/rc2014/edge.cpp b/src/devices/bus/rc2014/edge.cpp index 5585c790d17..505ec77125d 100644 --- a/src/devices/bus/rc2014/edge.cpp +++ b/src/devices/bus/rc2014/edge.cpp @@ -27,8 +27,8 @@ class sc106_device : public device_t, public device_rc2014_rc80_card_interface sc106_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); // device-level overrides - 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; private: required_device m_rc80_bus; @@ -113,8 +113,8 @@ class sc141_device : public device_t, public device_rc2014_card_interface protected: // device-level overrides - 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; private: required_device m_rc40_bus; @@ -161,8 +161,8 @@ class sc147_device : public device_t, public device_rc2014_card_interface protected: // device-level overrides - 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; private: required_device m_rc40_bus; diff --git a/src/devices/bus/rc2014/fdc.cpp b/src/devices/bus/rc2014/fdc.cpp index b650e96f7ad..6a774c682d8 100644 --- a/src/devices/bus/rc2014/fdc.cpp +++ b/src/devices/bus/rc2014/fdc.cpp @@ -27,10 +27,10 @@ class rc2014_fdc9266_device : public device_t, public device_rc2014_card_interfa protected: // device-level overrides - virtual void device_start() override; - virtual void device_reset() override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() 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 ioport_constructor device_input_ports() const override ATTR_COLD; private: void control_w(offs_t offset, uint8_t data); @@ -146,10 +146,10 @@ class rc2014_wd37c65_device : public device_t, public device_rc2014_card_interfa protected: // device-level overrides - virtual void device_start() override; - virtual void device_reset() override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() 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 ioport_constructor device_input_ports() const override ATTR_COLD; // DACK confirmation is same as pulsing TC uint8_t dack_r(address_space &space, offs_t) { m_fdc->tc_w(true); m_fdc->tc_w(false); return space.unmap(); } diff --git a/src/devices/bus/rc2014/ide.cpp b/src/devices/bus/rc2014/ide.cpp index e81a168cba6..7c5d596ea1c 100644 --- a/src/devices/bus/rc2014/ide.cpp +++ b/src/devices/bus/rc2014/ide.cpp @@ -24,8 +24,8 @@ class rc2014_ide_base : public device_t, public device_rc2014_card_interface rc2014_ide_base(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); // device-level overrides - 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; uint8_t ppi_pa_r() { return m_data.b.l; } uint8_t ppi_pb_r() { return m_data.b.h; } @@ -79,8 +79,8 @@ class rc2014_82c55_ide_device : public rc2014_ide_base protected: // device-level overrides - virtual void device_reset() override; - virtual ioport_constructor device_input_ports() const override; + virtual void device_reset() override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; void ppi_pc_w(uint8_t data) override; private: @@ -210,8 +210,8 @@ class rc2014_ide_hdd_device : public rc2014_ide_base protected: // device-level overrides - virtual void device_reset() override; - virtual ioport_constructor device_input_ports() const override; + virtual void device_reset() override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; void ppi_pc_w(uint8_t data) override; private: diff --git a/src/devices/bus/rc2014/micro.cpp b/src/devices/bus/rc2014/micro.cpp index 80f89ce56b0..d119f54e519 100644 --- a/src/devices/bus/rc2014/micro.cpp +++ b/src/devices/bus/rc2014/micro.cpp @@ -33,12 +33,12 @@ class rc2014_micro : public device_t, public device_rc2014_card_interface private: // device_t implementation - virtual void device_start() override; - virtual void device_reset() override; - virtual void device_resolve_objects() override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const 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_resolve_objects() override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; virtual void card_int_w(int state) override { m_maincpu->set_input_line(INPUT_LINE_IRQ0, state); } virtual void card_rx_w(int state) override { m_acia->write_rxd(state); } @@ -180,12 +180,12 @@ class rc2014_mini_cpm : public device_t, public device_rc2014_card_interface protected: // 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; virtual void device_post_load() override { update_banks(); } - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; - virtual const tiny_rom_entry *device_rom_region() const override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; void tx_w(int state) { m_bus->tx_w(state); } diff --git a/src/devices/bus/rc2014/ram.cpp b/src/devices/bus/rc2014/ram.cpp index 588e606a12f..1e42dd3113e 100644 --- a/src/devices/bus/rc2014/ram.cpp +++ b/src/devices/bus/rc2014/ram.cpp @@ -24,7 +24,7 @@ class ram_32k_device : public device_t, public device_rc2014_card_interface protected: // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: std::unique_ptr m_ram; @@ -62,11 +62,11 @@ class ram_64k_base : public device_t ram_64k_base(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 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; virtual void device_post_load() override { update_banks(); } - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; void page_w(int state) { m_bank = state; update_banks(); } @@ -132,7 +132,7 @@ class ram_64k_device : public ram_64k_base, public device_rc2014_ext_card_interf protected: // device_t implementation - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; // base-class overrides void update_banks() override; @@ -177,7 +177,7 @@ class ram_64k_device_40pin : public ram_64k_base, public device_rc2014_card_inte protected: // device_t implementation - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; // base-class overrides void update_banks() override {}; diff --git a/src/devices/bus/rc2014/rc2014.h b/src/devices/bus/rc2014/rc2014.h index 225ea087ea5..2cca6e784d7 100644 --- a/src/devices/bus/rc2014/rc2014.h +++ b/src/devices/bus/rc2014/rc2014.h @@ -103,8 +103,8 @@ class rc2014_bus_device : public device_t rc2014_bus_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; private: using card_vector = std::vector >; @@ -163,8 +163,8 @@ class rc2014_slot_device : public device_t, public device_slot_interface rc2014_slot_device(machine_config const &mconfig, device_type type, char const *tag, device_t *owner, u32 clock); // device_t implementation - virtual void device_start() override; - virtual void device_resolve_objects() override; + virtual void device_start() override ATTR_COLD; + virtual void device_resolve_objects() override ATTR_COLD; required_device m_bus; }; @@ -249,8 +249,8 @@ class rc2014_ext_slot_device : public rc2014_slot_device rc2014_ext_slot_device(machine_config const &mconfig, device_type type, char const *tag, device_t *owner, u32 clock); // device_t implementation - virtual void device_start() override; - virtual void device_resolve_objects() override; + virtual void device_start() override ATTR_COLD; + virtual void device_resolve_objects() override ATTR_COLD; }; //************************************************************************** @@ -272,7 +272,7 @@ class rc2014_rc80_bus_device : public rc2014_ext_bus_device rc2014_rc80_bus_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; private: using card_vector = std::vector >; @@ -312,8 +312,8 @@ class rc2014_rc80_slot_device : public rc2014_ext_slot_device protected: // device_t implementation - virtual void device_start() override; - virtual void device_resolve_objects() override; + virtual void device_start() override ATTR_COLD; + virtual void device_resolve_objects() override ATTR_COLD; }; diff --git a/src/devices/bus/rc2014/rom.cpp b/src/devices/bus/rc2014/rom.cpp index 61d0d8bb191..acdddb55c4a 100644 --- a/src/devices/bus/rc2014/rom.cpp +++ b/src/devices/bus/rc2014/rom.cpp @@ -24,10 +24,10 @@ class switchable_rom_device : public device_t, public device_rc2014_card_interfa protected: // device-level overrides - virtual void device_start() override; - virtual void device_reset() override; - virtual ioport_constructor device_input_ports() const 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 ioport_constructor device_input_ports() const override ATTR_COLD; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; private: required_memory_region m_rom; required_ioport m_rom_selector; @@ -116,11 +116,11 @@ class pagable_rom_device : public device_t, public device_rc2014_ext_card_interf 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 device_post_load() override { update_banks(); } - virtual ioport_constructor device_input_ports() const override; - virtual const tiny_rom_entry *device_rom_region() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; void reset_bank_w(offs_t, uint8_t) { m_bank = 0; update_banks(); m_bus->page_w(CLEAR_LINE);} void toggle_bank_w(offs_t, uint8_t) { m_bank = m_bank ? 0 : 1; update_banks(); m_bus->page_w(m_bank ? ASSERT_LINE : CLEAR_LINE); } diff --git a/src/devices/bus/rc2014/romram.cpp b/src/devices/bus/rc2014/romram.cpp index e0fcc03fa39..c774ba64ee7 100644 --- a/src/devices/bus/rc2014/romram.cpp +++ b/src/devices/bus/rc2014/romram.cpp @@ -25,10 +25,10 @@ class rom_ram_512k_device : public device_t, public device_rc2014_card_interface protected: // device-level overrides - 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; void page_w(offs_t offset, uint8_t data) { m_page_reg[offset & 3] = data & 0x3f; } void page_en_w(offs_t, uint8_t data) { m_page_en = data & 1; } @@ -167,9 +167,9 @@ class sc119_device : public device_t, public device_rc2014_rc80_card_interface protected: // device-level overrides - virtual void device_start() 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_add_mconfig(machine_config &config) override ATTR_COLD; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; private: std::unique_ptr m_ram; diff --git a/src/devices/bus/rc2014/rtc.cpp b/src/devices/bus/rc2014/rtc.cpp index 4e8659c2771..4c3834f9928 100644 --- a/src/devices/bus/rc2014/rtc.cpp +++ b/src/devices/bus/rc2014/rtc.cpp @@ -25,10 +25,10 @@ class rc2014_ds1302_device : public device_t, public device_rc2014_card_interfac protected: // device-level overrides - virtual void device_start() override; - virtual void device_reset() override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() 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 ioport_constructor device_input_ports() const override ATTR_COLD; uint8_t rtc_r(offs_t offset); void rtc_w(offs_t offset, uint8_t data); diff --git a/src/devices/bus/rc2014/serial.cpp b/src/devices/bus/rc2014/serial.cpp index f62841666fe..c78eaad5559 100644 --- a/src/devices/bus/rc2014/serial.cpp +++ b/src/devices/bus/rc2014/serial.cpp @@ -29,9 +29,9 @@ class serial_io_device : public device_t, public device_rc2014_card_interface protected: // device_t implementation - 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; void irq_w(int state) { m_bus->int_w(state); } void tx_w(int state) { m_bus->tx_w(state); } @@ -101,10 +101,10 @@ class dual_serial_base : public device_t dual_serial_base(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); // device-level overrides - virtual void device_start() override; - virtual void device_reset() override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() 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 ioport_constructor device_input_ports() const override ATTR_COLD; virtual void irq_w(int state) = 0; virtual void tx_w(int state) = 0; @@ -182,8 +182,8 @@ class dual_serial_device : public dual_serial_base, public device_rc2014_ext_car protected: // device-level overrides - virtual void device_reset() override; - virtual void device_resolve_objects() override; + virtual void device_reset() override ATTR_COLD; + virtual void device_resolve_objects() override ATTR_COLD; // base-class overrides void irq_w(int state) override { m_bus->int_w(state); } @@ -229,8 +229,8 @@ class dual_serial_device_40pin : public dual_serial_base, public device_rc2014_c protected: // device-level overrides - virtual void device_reset() override; - virtual void device_resolve_objects() override; + virtual void device_reset() override ATTR_COLD; + virtual void device_resolve_objects() override ATTR_COLD; // base-class overrides void irq_w(int state) override { m_bus->int_w(state); } diff --git a/src/devices/bus/rc2014/sound.cpp b/src/devices/bus/rc2014/sound.cpp index 204d52f9f6c..acdb36e5442 100644 --- a/src/devices/bus/rc2014/sound.cpp +++ b/src/devices/bus/rc2014/sound.cpp @@ -25,9 +25,9 @@ class rc2014_ym_ay_device : public device_t, public device_rc2014_card_interface rc2014_ym_ay_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); // device-level overrides - virtual void device_start() override; - virtual void device_reset() override; - virtual ioport_constructor device_input_ports() const override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; // base class members required_device m_psg; @@ -137,8 +137,8 @@ class rc2014_ym2149_device : public rc2014_ym_ay_device protected: // device-level overrides - virtual void device_reset() override; - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_reset() override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; rc2014_ym2149_device::rc2014_ym2149_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock) @@ -180,7 +180,7 @@ class rc2014_ay8190_device : public rc2014_ym_ay_device protected: // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; rc2014_ay8190_device::rc2014_ay8190_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock) diff --git a/src/devices/bus/rc2014/z180cpu.cpp b/src/devices/bus/rc2014/z180cpu.cpp index 53128c585ba..09e59c7c94a 100644 --- a/src/devices/bus/rc2014/z180cpu.cpp +++ b/src/devices/bus/rc2014/z180cpu.cpp @@ -27,9 +27,9 @@ class z180cpu_base : public device_t, public device_rc2014_rc80_card_interface z180cpu_base(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); // device_t implementation - virtual void device_start() override; - virtual void device_resolve_objects() override; - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_start() override ATTR_COLD; + virtual void device_resolve_objects() override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; void addrmap_mem(address_map &map) { map.unmap_value_high(); } void addrmap_io(address_map &map) { map.unmap_value_high(); } @@ -113,7 +113,7 @@ class sc111_device : public z180cpu_base protected: // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; }; sc111_device::sc111_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock) diff --git a/src/devices/bus/rc2014/z80cpu.cpp b/src/devices/bus/rc2014/z80cpu.cpp index b14f0342229..b33d3ef22a4 100644 --- a/src/devices/bus/rc2014/z80cpu.cpp +++ b/src/devices/bus/rc2014/z80cpu.cpp @@ -24,8 +24,8 @@ class z80cpu_base : public device_t z80cpu_base(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); // device_t implementation - 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; void addrmap_mem(address_map &map) { map.unmap_value_high(); } void addrmap_io(address_map &map) { map.unmap_value_high(); } @@ -64,8 +64,8 @@ class z80cpu_device : public z80cpu_base, public device_rc2014_card_interface protected: // device_t implementation - virtual void device_start() override; - virtual void device_resolve_objects() override; + virtual void device_start() override ATTR_COLD; + virtual void device_resolve_objects() override ATTR_COLD; virtual void card_int_w(int state) override { m_maincpu->set_input_line(INPUT_LINE_IRQ0, state); } }; @@ -100,8 +100,8 @@ class z80cpu21_device : public z80cpu_base, public device_rc2014_ext_card_interf protected: // device_t implementation - virtual void device_start() override; - virtual void device_resolve_objects() override; + virtual void device_start() override ATTR_COLD; + virtual void device_resolve_objects() override ATTR_COLD; virtual void card_int_w(int state) override { m_maincpu->set_input_line(INPUT_LINE_IRQ0, state); } virtual void card_nmi_w(int state) override { m_maincpu->set_input_line(INPUT_LINE_NMI, state); } diff --git a/src/devices/bus/rs232/exorterm.h b/src/devices/bus/rs232/exorterm.h index c658b4bbe8e..a87aba800f2 100644 --- a/src/devices/bus/rs232/exorterm.h +++ b/src/devices/bus/rs232/exorterm.h @@ -20,10 +20,10 @@ class exorterm155_terminal_device : public device_t, public device_rs232_port_in DECLARE_INPUT_CHANGED_MEMBER(flow_control); protected: - virtual void device_start() override; - virtual void device_reset() override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() 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 ioport_constructor device_input_ports() const override ATTR_COLD; private: required_device m_exorterm155; diff --git a/src/devices/bus/rs232/hlemouse.h b/src/devices/bus/rs232/hlemouse.h index 183822c9dc5..2911e8de9ce 100644 --- a/src/devices/bus/rs232/hlemouse.h +++ b/src/devices/bus/rs232/hlemouse.h @@ -30,8 +30,8 @@ class hle_msmouse_device_base : public buffered_rs232_device<8> protected: hle_msmouse_device_base(machine_config const &mconfig, device_type type, char const *tag, device_t *owner, uint32_t clock); - 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; virtual void input_dtr(int state) override; virtual void input_rts(int state) override; @@ -68,7 +68,7 @@ class hle_msft_mouse_device : public hle_msmouse_device_base hle_msft_mouse_device(machine_config const &mconfig, char const *tag, device_t *owner, uint32_t clock); protected: - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; private: virtual void reset_and_identify() override; @@ -86,7 +86,7 @@ class hle_logitech_mouse_device : public hle_msmouse_device_base hle_logitech_mouse_device(machine_config const &mconfig, char const *tag, device_t *owner, uint32_t clock); protected: - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; private: virtual void reset_and_identify() override; @@ -104,8 +104,8 @@ class hle_wheel_mouse_device : public hle_msmouse_device_base hle_wheel_mouse_device(machine_config const &mconfig, char const *tag, device_t *owner, uint32_t clock); protected: - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; virtual bool read_inputs() override; @@ -131,7 +131,7 @@ class hle_msystems_device_base : public device_t, public device_rs232_port_inter protected: hle_msystems_device_base(machine_config const &mconfig, device_type type, char const *tag, device_t *owner, uint32_t clock); - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void tra_callback() override; virtual void tra_complete() override; @@ -162,8 +162,8 @@ class hle_msystems_mouse_device : public hle_msystems_device_base protected: hle_msystems_mouse_device(machine_config const &mconfig, device_type type, char const *tag, device_t *owner, uint32_t clock); - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; private: virtual bool read_inputs() override; @@ -190,8 +190,8 @@ class hle_rotatable_mouse_device : public hle_msystems_device_base hle_rotatable_mouse_device(machine_config const &mconfig, char const *tag, device_t *owner, uint32_t clock); protected: - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; private: virtual bool read_inputs() override; @@ -217,7 +217,7 @@ class hle_sgi_mouse_device : public hle_msystems_mouse_device hle_sgi_mouse_device(machine_config const &mconfig, char const *tag, device_t *owner, uint32_t clock); protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; }; } // namespace bus::rs232 diff --git a/src/devices/bus/rs232/ie15.cpp b/src/devices/bus/rs232/ie15.cpp index 7f11557fa10..286b75b098c 100644 --- a/src/devices/bus/rs232/ie15.cpp +++ b/src/devices/bus/rs232/ie15.cpp @@ -22,9 +22,9 @@ class ie15_terminal_device : public device_t, public device_rs232_port_interface protected: virtual void device_start() override { } - virtual void device_reset() override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual void device_reset() override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; private: required_device m_ie15; diff --git a/src/devices/bus/rs232/keyboard.h b/src/devices/bus/rs232/keyboard.h index 04552216079..5580eb840e4 100644 --- a/src/devices/bus/rs232/keyboard.h +++ b/src/devices/bus/rs232/keyboard.h @@ -16,7 +16,7 @@ class serial_keyboard_device public: serial_keyboard_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; virtual void input_txd(int state) override; @@ -25,7 +25,7 @@ class serial_keyboard_device protected: serial_keyboard_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; virtual void tra_callback() override; virtual void send_key(uint8_t code) override; diff --git a/src/devices/bus/rs232/loopback.h b/src/devices/bus/rs232/loopback.h index bfd167e451d..112ce148148 100644 --- a/src/devices/bus/rs232/loopback.h +++ b/src/devices/bus/rs232/loopback.h @@ -18,7 +18,7 @@ class rs232_loopback_device : public device_t, public device_rs232_port_interfac virtual void input_dtr(int state) override; protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; }; class dec_rs232_loopback_device : public device_t, public device_rs232_port_interface @@ -32,7 +32,7 @@ class dec_rs232_loopback_device : public device_t, public device_rs232_port_inte virtual void input_spds(int state) override; protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; }; DECLARE_DEVICE_TYPE(RS232_LOOPBACK, rs232_loopback_device) diff --git a/src/devices/bus/rs232/mboardd.cpp b/src/devices/bus/rs232/mboardd.cpp index 05649283a89..002f868c40a 100644 --- a/src/devices/bus/rs232/mboardd.cpp +++ b/src/devices/bus/rs232/mboardd.cpp @@ -43,10 +43,10 @@ class mockingboard_d_device : public device_t, public device_rs232_port_interfac required_device m_ay2; protected: - 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; private: u8 p2_r() { return m_rx_state<<3; }; @@ -56,7 +56,7 @@ class mockingboard_d_device : public device_t, public device_rs232_port_interfac void c000_w(u8 data) { m_c000_latch = data; }; - void m6803_mem(address_map &map); + void m6803_mem(address_map &map) ATTR_COLD; int m_rx_state; u8 m_c000_latch; }; diff --git a/src/devices/bus/rs232/nss_tvinterface.cpp b/src/devices/bus/rs232/nss_tvinterface.cpp index 2456ff26161..efdd4142d86 100644 --- a/src/devices/bus/rs232/nss_tvinterface.cpp +++ b/src/devices/bus/rs232/nss_tvinterface.cpp @@ -49,11 +49,11 @@ class nss_tvinterface_device : public device_t, public device_rs232_port_interfa nss_tvinterface_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); protected: - 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; - virtual const tiny_rom_entry *device_rom_region() const override; - virtual ioport_constructor device_input_ports() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; virtual void input_txd(int state) override { m_rx_state = state ? 1 : 0; } @@ -75,7 +75,7 @@ class nss_tvinterface_device : public device_t, public device_rs232_port_interfa void cga_color_select_w(u8 data); void unknown_w(u8 data); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; u8 p2_r(); void p2_w(u8 data); diff --git a/src/devices/bus/rs232/null_modem.h b/src/devices/bus/rs232/null_modem.h index c59973dc39b..94e2b7a85d0 100644 --- a/src/devices/bus/rs232/null_modem.h +++ b/src/devices/bus/rs232/null_modem.h @@ -23,10 +23,10 @@ class null_modem_device : public device_t, void update_serial(int state); protected: - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; - virtual void device_reset() override; - virtual void device_add_mconfig(machine_config &config) override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + 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 void tra_callback() override; virtual void tra_complete() override; diff --git a/src/devices/bus/rs232/patchbox.cpp b/src/devices/bus/rs232/patchbox.cpp index 8d6ed0c9153..70b0b3b6c19 100644 --- a/src/devices/bus/rs232/patchbox.cpp +++ b/src/devices/bus/rs232/patchbox.cpp @@ -91,7 +91,7 @@ class rs232_patch_box_device: public device_t, public device_rs232_port_interfac m_dce_port->txc_handler().set(FUNC(rs232_patch_box_device::signal_in)); } - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; virtual void device_resolve_objects() override { diff --git a/src/devices/bus/rs232/printer.h b/src/devices/bus/rs232/printer.h index 795c1128896..ece0bad54f2 100644 --- a/src/devices/bus/rs232/printer.h +++ b/src/devices/bus/rs232/printer.h @@ -22,10 +22,10 @@ class serial_printer_device : public device_t, protected: serial_printer_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; virtual void rcv_complete() override; int m_initial_rx_state; diff --git a/src/devices/bus/rs232/pty.h b/src/devices/bus/rs232/pty.h index 0f7ae08aa2a..ea4cd39c7c3 100644 --- a/src/devices/bus/rs232/pty.h +++ b/src/devices/bus/rs232/pty.h @@ -22,10 +22,10 @@ class pseudo_terminal_device : public device_t, void update_serial(int state); protected: - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; - virtual void device_stop() override; - virtual void device_reset() override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_stop() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; virtual void tra_callback() override; virtual void tra_complete() override; diff --git a/src/devices/bus/rs232/rs232.h b/src/devices/bus/rs232/rs232.h index cfbd9206265..46d797923ad 100644 --- a/src/devices/bus/rs232/rs232.h +++ b/src/devices/bus/rs232/rs232.h @@ -148,9 +148,9 @@ class rs232_port_device : public device_t, public device_single_card_slot_interf protected: rs232_port_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); - virtual void device_resolve_objects() override; - virtual void device_reset() override; - virtual void device_start() override; + virtual void device_resolve_objects() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; + virtual void device_start() override ATTR_COLD; virtual void device_config_complete() override; int m_rxd; diff --git a/src/devices/bus/rs232/rs232_sync_io.h b/src/devices/bus/rs232/rs232_sync_io.h index 3b821b31a18..c8d83002cf5 100644 --- a/src/devices/bus/rs232/rs232_sync_io.h +++ b/src/devices/bus/rs232/rs232_sync_io.h @@ -30,10 +30,10 @@ class rs232_sync_io_device : public device_t, public device_rs232_port_interface protected: // device-level overrides - virtual ioport_constructor device_input_ports() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; TIMER_CALLBACK_MEMBER(clock_tick); diff --git a/src/devices/bus/rs232/scorpion.cpp b/src/devices/bus/rs232/scorpion.cpp index e32f0a2b12c..0019e89944c 100644 --- a/src/devices/bus/rs232/scorpion.cpp +++ b/src/devices/bus/rs232/scorpion.cpp @@ -60,18 +60,18 @@ class scorpion_ic_device : public device_t, public device_rs232_port_interface virtual void input_rts(int state) override { m_rts = state; } 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; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: required_device m_maincpu; required_memory_bank m_rombank; required_device m_rtc; - void scorpion_map(address_map &map); + void scorpion_map(address_map &map) ATTR_COLD; uint8_t port2_r(); uint8_t port5_r(); diff --git a/src/devices/bus/rs232/swtpc8212.h b/src/devices/bus/rs232/swtpc8212.h index 6105faa7058..13d1fe1f6d3 100644 --- a/src/devices/bus/rs232/swtpc8212.h +++ b/src/devices/bus/rs232/swtpc8212.h @@ -20,10 +20,10 @@ class swtpc8212_terminal_device : public device_t, public device_rs232_port_inte DECLARE_INPUT_CHANGED_MEMBER(flow_control); protected: - virtual void device_start() override; - virtual void device_reset() override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() 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 ioport_constructor device_input_ports() const override ATTR_COLD; private: required_device m_swtpc8212; diff --git a/src/devices/bus/rs232/terminal.cpp b/src/devices/bus/rs232/terminal.cpp index a1ae0612694..d9748f07003 100644 --- a/src/devices/bus/rs232/terminal.cpp +++ b/src/devices/bus/rs232/terminal.cpp @@ -20,8 +20,8 @@ class serial_terminal_device : public generic_terminal_device, void update_serial(int state); protected: - virtual ioport_constructor device_input_ports() const override; - virtual void device_reset() override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; virtual void tra_callback() override; virtual void send_key(uint8_t code) override; diff --git a/src/devices/bus/rs232/xvd701.h b/src/devices/bus/rs232/xvd701.h index 2d1419d307f..ba12a3b48a3 100644 --- a/src/devices/bus/rs232/xvd701.h +++ b/src/devices/bus/rs232/xvd701.h @@ -15,10 +15,10 @@ class jvc_xvd701_device : public device_t, virtual void input_txd(int state) override { device_serial_interface::rx_w(state); } protected: - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; - virtual void device_reset() override; - virtual void device_add_mconfig(machine_config &config) override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + 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 void tra_callback() override; virtual void tra_complete() override; diff --git a/src/devices/bus/rtpc/kbd.h b/src/devices/bus/rtpc/kbd.h index 860cb5c2218..be349c5f342 100644 --- a/src/devices/bus/rtpc/kbd.h +++ b/src/devices/bus/rtpc/kbd.h @@ -18,11 +18,11 @@ class rtpc_kbd_device protected: // device_t overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; - virtual void device_reset() override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; // device_rtpc_kbd_interface overrides virtual void data_w(int state) override; diff --git a/src/devices/bus/rtpc/kbd_con.h b/src/devices/bus/rtpc/kbd_con.h index 1c38bbc09e7..da3e0798005 100644 --- a/src/devices/bus/rtpc/kbd_con.h +++ b/src/devices/bus/rtpc/kbd_con.h @@ -37,7 +37,7 @@ class rtpc_kbd_con_device protected: virtual void device_config_complete() override; - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; void update_clock_state(bool fromkb); void update_data_state(bool fromkb); diff --git a/src/devices/bus/s100/am310.cpp b/src/devices/bus/s100/am310.cpp index 5eee55b1a2e..07edfe8b0df 100644 --- a/src/devices/bus/s100/am310.cpp +++ b/src/devices/bus/s100/am310.cpp @@ -33,11 +33,11 @@ class s100_am310_device : public device_t, public device_s100_card_interface protected: // device-level overrides - virtual void device_start() override; - virtual void device_reset() override; - virtual ioport_constructor device_input_ports() const 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 ioport_constructor device_input_ports() const 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; // device_s100_card_interface overrides virtual u8 s100_sinp_r(offs_t offset) override; @@ -53,7 +53,7 @@ class s100_am310_device : public device_t, public device_s100_card_interface void int_w(offs_t offset, u8 data); // address map - void z80_map(address_map &map); + void z80_map(address_map &map) ATTR_COLD; // object finders required_device m_z80; diff --git a/src/devices/bus/s100/ascsasi.cpp b/src/devices/bus/s100/ascsasi.cpp index 1733b2caf3e..9193913e2e1 100644 --- a/src/devices/bus/s100/ascsasi.cpp +++ b/src/devices/bus/s100/ascsasi.cpp @@ -34,11 +34,11 @@ class asc_sasi_device : public device_t, public device_s100_card_interface protected: // device-level overrides - virtual void device_start() override; - virtual void device_reset() override; - virtual ioport_constructor device_input_ports() const 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 ioport_constructor device_input_ports() const 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; // device_s100_card_interface overrides virtual u8 s100_smemr_r(offs_t offset) override; diff --git a/src/devices/bus/s100/dg640.h b/src/devices/bus/s100/dg640.h index 97d1a3ecbc3..746d2c7f6c3 100644 --- a/src/devices/bus/s100/dg640.h +++ b/src/devices/bus/s100/dg640.h @@ -21,10 +21,10 @@ class dg640_device : public device_t, public device_s100_card_interface protected: // device-level overrides - virtual void device_start() override; - virtual ioport_constructor device_input_ports() const 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 ioport_constructor device_input_ports() const 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; // device_s100_card_interface overrides virtual u8 s100_smemr_r(offs_t offset) override; diff --git a/src/devices/bus/s100/dj2db.h b/src/devices/bus/s100/dj2db.h index 6be3d63c117..8536b3774c8 100644 --- a/src/devices/bus/s100/dj2db.h +++ b/src/devices/bus/s100/dj2db.h @@ -34,13 +34,13 @@ class s100_dj2db_device : public device_t, 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; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; // device_s100_card_interface overrides virtual uint8_t s100_smemr_r(offs_t offset) override; diff --git a/src/devices/bus/s100/djdma.h b/src/devices/bus/s100/djdma.h index d9453aef25c..e763e4aef2c 100644 --- a/src/devices/bus/s100/djdma.h +++ b/src/devices/bus/s100/djdma.h @@ -30,19 +30,19 @@ class s100_djdma_device : public device_t, public device_s100_card_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; // bus-level overrides; virtual void s100_sout_w(offs_t offset, uint8_t data) override; // 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; private: - void djdma_io(address_map &map); - void djdma_mem(address_map &map); + void djdma_io(address_map &map) ATTR_COLD; + void djdma_mem(address_map &map) ATTR_COLD; void reset_int_w(u8 data); u8 disk_di_r(); diff --git a/src/devices/bus/s100/mm65k16s.h b/src/devices/bus/s100/mm65k16s.h index 706d7e697b6..c0e38867d8d 100644 --- a/src/devices/bus/s100/mm65k16s.h +++ b/src/devices/bus/s100/mm65k16s.h @@ -29,13 +29,13 @@ class s100_mm65k16s_device : public device_t, s100_mm65k16s_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual ioport_constructor device_input_ports() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; 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; // device_s100_card_interface overrides virtual uint8_t s100_smemr_r(offs_t offset) override; diff --git a/src/devices/bus/s100/nsmdsa.h b/src/devices/bus/s100/nsmdsa.h index a36f39127ec..bfe25954f27 100644 --- a/src/devices/bus/s100/nsmdsa.h +++ b/src/devices/bus/s100/nsmdsa.h @@ -31,12 +31,12 @@ class s100_mds_a_device : public device_t, 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; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; // device_s100_card_interface overrides virtual uint8_t s100_smemr_r(offs_t offset) override; diff --git a/src/devices/bus/s100/nsmdsad.h b/src/devices/bus/s100/nsmdsad.h index ce5a248d553..3636f171b35 100644 --- a/src/devices/bus/s100/nsmdsad.h +++ b/src/devices/bus/s100/nsmdsad.h @@ -31,12 +31,12 @@ class s100_mds_ad_device : public device_t, 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; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; // device_s100_card_interface overrides virtual uint8_t s100_smemr_r(offs_t offset) override; diff --git a/src/devices/bus/s100/poly16k.cpp b/src/devices/bus/s100/poly16k.cpp index 98861545d39..af1566348ea 100644 --- a/src/devices/bus/s100/poly16k.cpp +++ b/src/devices/bus/s100/poly16k.cpp @@ -30,8 +30,8 @@ class poly_16k_ram_device : public device_t, public device_s100_card_interface protected: // device-specific overrides - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; // S-100 memory access handlers virtual u8 s100_smemr_r(offs_t offset) override; diff --git a/src/devices/bus/s100/polyfdc.cpp b/src/devices/bus/s100/polyfdc.cpp index 962424324e0..f36411af7ef 100644 --- a/src/devices/bus/s100/polyfdc.cpp +++ b/src/devices/bus/s100/polyfdc.cpp @@ -26,8 +26,8 @@ class poly_fdc_device : public device_t, public device_s100_card_interface protected: // device-level overrides - 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; // device_s100_card_interface overrides virtual u8 s100_sinp_r(offs_t offset) override; diff --git a/src/devices/bus/s100/polyvti.cpp b/src/devices/bus/s100/polyvti.cpp index e84ea2e7ded..5aa3009762f 100644 --- a/src/devices/bus/s100/polyvti.cpp +++ b/src/devices/bus/s100/polyvti.cpp @@ -40,10 +40,10 @@ class poly_vti_device : public device_t, public device_s100_card_interface protected: // device-level overrides - virtual void device_start() override; - virtual ioport_constructor device_input_ports() const 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 ioport_constructor device_input_ports() const 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; // device_s100_card_interface overrides virtual u8 s100_smemr_r(offs_t offset) override; diff --git a/src/devices/bus/s100/s100.h b/src/devices/bus/s100/s100.h index 337cb4264c3..13f895cf7a0 100644 --- a/src/devices/bus/s100/s100.h +++ b/src/devices/bus/s100/s100.h @@ -183,8 +183,8 @@ class s100_bus_device : public device_t protected: // 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; private: using card_vector = std::vector >; @@ -232,7 +232,7 @@ class s100_slot_device : public device_t, public device_single_card_slot_interfa protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: required_device m_bus; diff --git a/src/devices/bus/s100/seals8k.cpp b/src/devices/bus/s100/seals8k.cpp index ae81cc50d01..e5aa23623ec 100644 --- a/src/devices/bus/s100/seals8k.cpp +++ b/src/devices/bus/s100/seals8k.cpp @@ -47,8 +47,8 @@ class s100_8k_sc_device : public device_t, public device_s100_card_interface s100_8k_sc_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); // device-specific overrides - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; // S-100 memory access handlers virtual u8 s100_smemr_r(offs_t offset) override; diff --git a/src/devices/bus/s100/vectordualmode.h b/src/devices/bus/s100/vectordualmode.h index 2df40dd8193..c2d3ecd8ad5 100644 --- a/src/devices/bus/s100/vectordualmode.h +++ b/src/devices/bus/s100/vectordualmode.h @@ -17,8 +17,8 @@ class s100_vector_dualmode_device : s100_vector_dualmode_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - void device_start() override; - void device_reset() override; + void device_start() override ATTR_COLD; + void device_reset() override ATTR_COLD; void device_add_mconfig(machine_config &config) override; uint8_t s100_sinp_r(offs_t offset) override; diff --git a/src/devices/bus/s100/wunderbus.h b/src/devices/bus/s100/wunderbus.h index a50fbea2d70..69be1df1fc1 100644 --- a/src/devices/bus/s100/wunderbus.h +++ b/src/devices/bus/s100/wunderbus.h @@ -33,12 +33,12 @@ class s100_wunderbus_device : public device_t, 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; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; // device_s100_card_interface overrides virtual void s100_vi0_w(int state) override; diff --git a/src/devices/bus/saitek_osa/expansion.h b/src/devices/bus/saitek_osa/expansion.h index 34afb641a53..6954c392384 100644 --- a/src/devices/bus/saitek_osa/expansion.h +++ b/src/devices/bus/saitek_osa/expansion.h @@ -81,8 +81,8 @@ class saitekosa_expansion_device : public device_t, public device_single_card_sl protected: // device-level overrides - 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; private: devcb_write_line m_stb_handler; diff --git a/src/devices/bus/saitek_osa/maestro.cpp b/src/devices/bus/saitek_osa/maestro.cpp index 074ca363172..790c92b0d2c 100644 --- a/src/devices/bus/saitek_osa/maestro.cpp +++ b/src/devices/bus/saitek_osa/maestro.cpp @@ -64,11 +64,11 @@ class saitekosa_maestro_device : public device_t, public device_saitekosa_expans protected: saitekosa_maestro_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); - virtual const tiny_rom_entry *device_rom_region() const override; - virtual ioport_constructor device_input_ports() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; required_device m_maincpu; memory_share_creator m_banked_ram; @@ -80,7 +80,7 @@ class saitekosa_maestro_device : public device_t, public device_saitekosa_expans bool m_latch_enable = false; u8 m_extrom_bank = 0; - virtual void main_map(address_map &map); + virtual void main_map(address_map &map) ATTR_COLD; u8 extrom_r(offs_t offset); template void stall_w(u8 data = 0); @@ -118,13 +118,13 @@ class saitekosa_analyst_device : public saitekosa_maestro_device static auto parent_rom_device_type() { return &OSA_MAESTRO; } protected: - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: required_device m_lcd; - virtual void main_map(address_map &map) override; + virtual void main_map(address_map &map) override ATTR_COLD; }; saitekosa_analyst_device::saitekosa_analyst_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock) : diff --git a/src/devices/bus/saitek_osa/maestroa.cpp b/src/devices/bus/saitek_osa/maestroa.cpp index 0d3cdb07116..44a97fb1a20 100644 --- a/src/devices/bus/saitek_osa/maestroa.cpp +++ b/src/devices/bus/saitek_osa/maestroa.cpp @@ -48,11 +48,11 @@ class saitekosa_maestroa_device : public device_t, public device_saitekosa_expan virtual void ack_w(int state) override; protected: - virtual const tiny_rom_entry *device_rom_region() const override; - virtual ioport_constructor device_input_ports() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: required_device m_maincpu; @@ -60,7 +60,7 @@ class saitekosa_maestroa_device : public device_t, public device_saitekosa_expan u8 m_latch = 0xff; bool m_latch_enable = false; - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; u8 rts_r(); u8 xdata_r(); diff --git a/src/devices/bus/saitek_osa/sparc.cpp b/src/devices/bus/saitek_osa/sparc.cpp index 3293782c512..82f4e04a005 100644 --- a/src/devices/bus/saitek_osa/sparc.cpp +++ b/src/devices/bus/saitek_osa/sparc.cpp @@ -55,11 +55,11 @@ class saitekosa_sparc_device : public device_t, public device_saitekosa_expansio virtual void ack_w(int state) override; protected: - virtual const tiny_rom_entry *device_rom_region() const override; - virtual ioport_constructor device_input_ports() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: required_device m_maincpu; @@ -71,7 +71,7 @@ class saitekosa_sparc_device : public device_t, public device_saitekosa_expansio u32 m_ram_mask = 0; bool m_installed = false; - void debugger_map(address_map &map); + void debugger_map(address_map &map) ATTR_COLD; u32 rom_r(offs_t offset, u32 mem_mask) { return m_rom[offset & m_rom_mask]; } u32 ram_r(offs_t offset, u32 mem_mask) { return m_ram[offset & m_ram_mask]; } diff --git a/src/devices/bus/samcoupe/drive/atom.h b/src/devices/bus/samcoupe/drive/atom.h index 0abfee86749..243a3010a46 100644 --- a/src/devices/bus/samcoupe/drive/atom.h +++ b/src/devices/bus/samcoupe/drive/atom.h @@ -32,8 +32,8 @@ class sam_atom_hdd_device : public device_t, public device_samcoupe_drive_interf virtual void write(offs_t offset, uint8_t data) override; protected: - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; private: required_device m_ata; diff --git a/src/devices/bus/samcoupe/drive/drive.h b/src/devices/bus/samcoupe/drive/drive.h index f02b8a8d743..5033769aebb 100644 --- a/src/devices/bus/samcoupe/drive/drive.h +++ b/src/devices/bus/samcoupe/drive/drive.h @@ -64,7 +64,7 @@ class samcoupe_drive_port_device : public device_t, public device_single_card_sl protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: device_samcoupe_drive_interface *m_module; diff --git a/src/devices/bus/samcoupe/drive/floppy.h b/src/devices/bus/samcoupe/drive/floppy.h index 8f227009cbb..de624669cbe 100644 --- a/src/devices/bus/samcoupe/drive/floppy.h +++ b/src/devices/bus/samcoupe/drive/floppy.h @@ -33,8 +33,8 @@ class sam_floppy_device : public device_t, public device_samcoupe_drive_interfac virtual void write(offs_t offset, uint8_t data) override; protected: - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; private: required_device m_fdc; diff --git a/src/devices/bus/samcoupe/expansion/blue_sampler.h b/src/devices/bus/samcoupe/expansion/blue_sampler.h index 56c1298345c..56080059784 100644 --- a/src/devices/bus/samcoupe/expansion/blue_sampler.h +++ b/src/devices/bus/samcoupe/expansion/blue_sampler.h @@ -34,8 +34,8 @@ class sam_blue_sound_sampler_device : public device_t, public device_samcoupe_ex virtual void iorq_w(offs_t offset, uint8_t data) override; protected: - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; private: TIMER_DEVICE_CALLBACK_MEMBER(clock_callback); diff --git a/src/devices/bus/samcoupe/expansion/dallas.h b/src/devices/bus/samcoupe/expansion/dallas.h index 4b011e5db34..94630939bf3 100644 --- a/src/devices/bus/samcoupe/expansion/dallas.h +++ b/src/devices/bus/samcoupe/expansion/dallas.h @@ -34,8 +34,8 @@ class sam_dallas_clock_device : public device_t, public device_samcoupe_expansio virtual void iorq_w(offs_t offset, uint8_t data) override; protected: - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; private: required_device m_rtc; diff --git a/src/devices/bus/samcoupe/expansion/expansion.h b/src/devices/bus/samcoupe/expansion/expansion.h index 2bd8d199866..c052de71741 100644 --- a/src/devices/bus/samcoupe/expansion/expansion.h +++ b/src/devices/bus/samcoupe/expansion/expansion.h @@ -89,7 +89,7 @@ class samcoupe_expansion_device : public device_t, public device_single_card_slo protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: devcb_write_line m_int_handler; diff --git a/src/devices/bus/samcoupe/expansion/onemeg.h b/src/devices/bus/samcoupe/expansion/onemeg.h index 40b60accf82..2f6a9b0b1e9 100644 --- a/src/devices/bus/samcoupe/expansion/onemeg.h +++ b/src/devices/bus/samcoupe/expansion/onemeg.h @@ -34,8 +34,8 @@ class sam_onemeg_device : public device_t, public device_samcoupe_expansion_inte virtual void iorq_w(offs_t offset, uint8_t data) override; protected: - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; private: required_ioport m_dip; diff --git a/src/devices/bus/samcoupe/expansion/sambus.h b/src/devices/bus/samcoupe/expansion/sambus.h index 4d17ed4ae74..e2cb0542f4a 100644 --- a/src/devices/bus/samcoupe/expansion/sambus.h +++ b/src/devices/bus/samcoupe/expansion/sambus.h @@ -37,8 +37,8 @@ class sam_sambus_device : public device_t, public device_samcoupe_expansion_inte virtual void iorq_w(offs_t offset, uint8_t data) override; protected: - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; private: required_device m_rtc; diff --git a/src/devices/bus/samcoupe/expansion/sdide.h b/src/devices/bus/samcoupe/expansion/sdide.h index 75974d885f8..d9054bf4c2f 100644 --- a/src/devices/bus/samcoupe/expansion/sdide.h +++ b/src/devices/bus/samcoupe/expansion/sdide.h @@ -32,8 +32,8 @@ class sam_sdide_device : public device_t, public device_samcoupe_expansion_inter virtual void iorq_w(offs_t offset, uint8_t data) override; protected: - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; private: required_device m_ata; diff --git a/src/devices/bus/samcoupe/expansion/sid.h b/src/devices/bus/samcoupe/expansion/sid.h index 9580f00af65..f5e46958bfc 100644 --- a/src/devices/bus/samcoupe/expansion/sid.h +++ b/src/devices/bus/samcoupe/expansion/sid.h @@ -31,7 +31,7 @@ class sam_sid_device : public device_t, public device_samcoupe_expansion_interfa virtual void iorq_w(offs_t offset, uint8_t data) override; protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; required_device m_sid; }; @@ -45,7 +45,7 @@ class sam_sid6581_device : public sam_sid_device sam_sid6581_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 void device_add_mconfig(machine_config &config) override ATTR_COLD; }; // ======================> sam_sid8580_device @@ -57,7 +57,7 @@ class sam_sid8580_device : public sam_sid_device sam_sid8580_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 void device_add_mconfig(machine_config &config) override ATTR_COLD; }; // device type definition diff --git a/src/devices/bus/samcoupe/expansion/spi.h b/src/devices/bus/samcoupe/expansion/spi.h index 674ecf3880e..acd1eaca3ab 100644 --- a/src/devices/bus/samcoupe/expansion/spi.h +++ b/src/devices/bus/samcoupe/expansion/spi.h @@ -34,8 +34,8 @@ class sam_spi_device : public device_t, public device_samcoupe_expansion_interfa virtual void iorq_w(offs_t offset, uint8_t data) override; protected: - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; private: required_device m_data_out; diff --git a/src/devices/bus/samcoupe/expansion/voicebox.h b/src/devices/bus/samcoupe/expansion/voicebox.h index 775bc544a49..07b7dd3659c 100644 --- a/src/devices/bus/samcoupe/expansion/voicebox.h +++ b/src/devices/bus/samcoupe/expansion/voicebox.h @@ -32,9 +32,9 @@ class sam_voicebox_device : public device_t, public device_samcoupe_expansion_in virtual void iorq_w(offs_t offset, uint8_t data) override; protected: - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; private: required_device m_sp0256; diff --git a/src/devices/bus/samcoupe/mouse/mouse.h b/src/devices/bus/samcoupe/mouse/mouse.h index 076f3035b6d..57368bff608 100644 --- a/src/devices/bus/samcoupe/mouse/mouse.h +++ b/src/devices/bus/samcoupe/mouse/mouse.h @@ -30,9 +30,9 @@ class sam_mouse_device : public device_t, public device_samcoupe_mouse_interface virtual uint8_t read() override; protected: - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; - virtual void device_reset() override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; TIMER_CALLBACK_MEMBER(reset_tick); diff --git a/src/devices/bus/samcoupe/mouse/mouseport.h b/src/devices/bus/samcoupe/mouse/mouseport.h index 89233101758..f7b188e5e56 100644 --- a/src/devices/bus/samcoupe/mouse/mouseport.h +++ b/src/devices/bus/samcoupe/mouse/mouseport.h @@ -59,7 +59,7 @@ class samcoupe_mouse_port_device : public device_t, public device_single_card_sl protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: devcb_write_line m_mseint_handler; diff --git a/src/devices/bus/sat_ctrl/analog.h b/src/devices/bus/sat_ctrl/analog.h index d86313e59a1..642e181d8c5 100644 --- a/src/devices/bus/sat_ctrl/analog.h +++ b/src/devices/bus/sat_ctrl/analog.h @@ -28,12 +28,12 @@ class saturn_analog_device : public device_t, saturn_analog_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // optional information overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; 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; // device_saturn_control_port_interface overrides virtual uint8_t read_ctrl(uint8_t offset) override; diff --git a/src/devices/bus/sat_ctrl/ctrl.h b/src/devices/bus/sat_ctrl/ctrl.h index d17bed9b067..1b62546c1a5 100644 --- a/src/devices/bus/sat_ctrl/ctrl.h +++ b/src/devices/bus/sat_ctrl/ctrl.h @@ -63,7 +63,7 @@ class saturn_control_port_device : public device_t, public device_single_card_sl uint8_t read_id(int idx); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; protected: device_saturn_control_port_interface *m_device; diff --git a/src/devices/bus/sat_ctrl/joy.h b/src/devices/bus/sat_ctrl/joy.h index b4e124fc034..9ea27b80b9d 100644 --- a/src/devices/bus/sat_ctrl/joy.h +++ b/src/devices/bus/sat_ctrl/joy.h @@ -28,12 +28,12 @@ class saturn_joy_device : public device_t, saturn_joy_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // optional information overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; 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; // device_saturn_control_port_interface overrides virtual uint16_t read_direct() override; diff --git a/src/devices/bus/sat_ctrl/joy_md.h b/src/devices/bus/sat_ctrl/joy_md.h index 845c6bce9da..8490ca1c234 100644 --- a/src/devices/bus/sat_ctrl/joy_md.h +++ b/src/devices/bus/sat_ctrl/joy_md.h @@ -28,7 +28,7 @@ class saturn_joymd3b_device : public device_t, saturn_joymd3b_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // optional information overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; protected: // device-level overrides @@ -55,7 +55,7 @@ class saturn_joymd6b_device : public device_t, saturn_joymd6b_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // optional information overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; protected: // device-level overrides diff --git a/src/devices/bus/sat_ctrl/keybd.h b/src/devices/bus/sat_ctrl/keybd.h index dafb932974c..f4ff4e2515a 100644 --- a/src/devices/bus/sat_ctrl/keybd.h +++ b/src/devices/bus/sat_ctrl/keybd.h @@ -28,14 +28,14 @@ class saturn_keybd_device : public device_t, saturn_keybd_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // optional information overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; DECLARE_INPUT_CHANGED_MEMBER(key_stroke); 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; // device_saturn_control_port_interface overrides virtual uint8_t read_ctrl(uint8_t offset) override; diff --git a/src/devices/bus/sat_ctrl/mouse.h b/src/devices/bus/sat_ctrl/mouse.h index 2b896ca6b49..cf053e36c5f 100644 --- a/src/devices/bus/sat_ctrl/mouse.h +++ b/src/devices/bus/sat_ctrl/mouse.h @@ -28,12 +28,12 @@ class saturn_mouse_device : public device_t, saturn_mouse_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // optional information overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; 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; // device_saturn_control_port_interface overrides virtual uint8_t read_ctrl(uint8_t offset) override; diff --git a/src/devices/bus/sat_ctrl/multitap.h b/src/devices/bus/sat_ctrl/multitap.h index 5aa98dacf3b..1d142a6cc9d 100644 --- a/src/devices/bus/sat_ctrl/multitap.h +++ b/src/devices/bus/sat_ctrl/multitap.h @@ -27,8 +27,8 @@ class saturn_multitap_device : public device_t, public device_saturn_control_por protected: // device-level overrides - 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; // device_saturn_control_port_interface overrides virtual uint8_t read_ctrl(uint8_t offset) override; diff --git a/src/devices/bus/sat_ctrl/pointer.h b/src/devices/bus/sat_ctrl/pointer.h index 869455706ef..b2e082dd942 100644 --- a/src/devices/bus/sat_ctrl/pointer.h +++ b/src/devices/bus/sat_ctrl/pointer.h @@ -28,12 +28,12 @@ class saturn_track_device : public device_t, saturn_track_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // optional information overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; 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; // device_saturn_control_port_interface overrides virtual uint8_t read_ctrl(uint8_t offset) override; diff --git a/src/devices/bus/sat_ctrl/racing.h b/src/devices/bus/sat_ctrl/racing.h index 9f426c9ef51..837c8e7c7cd 100644 --- a/src/devices/bus/sat_ctrl/racing.h +++ b/src/devices/bus/sat_ctrl/racing.h @@ -28,12 +28,12 @@ class saturn_wheel_device : public device_t, saturn_wheel_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // optional information overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; 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; // device_saturn_control_port_interface overrides virtual uint8_t read_ctrl(uint8_t offset) override; diff --git a/src/devices/bus/sat_ctrl/segatap.h b/src/devices/bus/sat_ctrl/segatap.h index 799d4d8356a..d8ee8a0b8d8 100644 --- a/src/devices/bus/sat_ctrl/segatap.h +++ b/src/devices/bus/sat_ctrl/segatap.h @@ -28,8 +28,8 @@ class saturn_segatap_device : public device_t, public device_saturn_control_port protected: // device-level overrides - 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; // device_saturn_control_port_interface overrides virtual uint8_t read_ctrl(uint8_t offset) override; diff --git a/src/devices/bus/saturn/bram.h b/src/devices/bus/saturn/bram.h index 97e419b19fd..7833eccd8e4 100644 --- a/src/devices/bus/saturn/bram.h +++ b/src/devices/bus/saturn/bram.h @@ -22,8 +22,8 @@ class saturn_bram_device : public device_t, saturn_bram_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, int cart_type); // 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; // device_nvram_interface overrides virtual void nvram_default() override; diff --git a/src/devices/bus/saturn/dram.h b/src/devices/bus/saturn/dram.h index 847c90a9955..0d603093439 100644 --- a/src/devices/bus/saturn/dram.h +++ b/src/devices/bus/saturn/dram.h @@ -23,8 +23,8 @@ class saturn_dram_device : public device_t, saturn_dram_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, int cart_type); // 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; }; class saturn_dram8mb_device : public saturn_dram_device diff --git a/src/devices/bus/saturn/rom.h b/src/devices/bus/saturn/rom.h index 0706a74a420..e0ad109835a 100644 --- a/src/devices/bus/saturn/rom.h +++ b/src/devices/bus/saturn/rom.h @@ -21,8 +21,8 @@ class saturn_rom_device : public device_t, public device_sat_cart_interface saturn_rom_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, int cart_type); // 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; }; diff --git a/src/devices/bus/saturn/sat_slot.h b/src/devices/bus/saturn/sat_slot.h index eff07096f79..261042a1ab1 100644 --- a/src/devices/bus/saturn/sat_slot.h +++ b/src/devices/bus/saturn/sat_slot.h @@ -103,7 +103,7 @@ class sat_cart_slot_device : public device_t, protected: // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: device_sat_cart_interface* m_cart; diff --git a/src/devices/bus/sbus/artecon.h b/src/devices/bus/sbus/artecon.h index 9b0d9a4cbbb..4395b79bf76 100644 --- a/src/devices/bus/sbus/artecon.h +++ b/src/devices/bus/sbus/artecon.h @@ -22,9 +22,9 @@ class sbus_artecon_device : public device_t, public device_sbus_card_interface protected: // device_t overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; // device_sbus_slot_interface overrides virtual void install_device() override; diff --git a/src/devices/bus/sbus/bwtwo.h b/src/devices/bus/sbus/bwtwo.h index d307f16f977..9a9f949d20c 100644 --- a/src/devices/bus/sbus/bwtwo.h +++ b/src/devices/bus/sbus/bwtwo.h @@ -22,9 +22,9 @@ class sbus_bwtwo_device : public device_t, public device_sbus_card_interface protected: // device_t overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; // device_sbus_slot_interface overrides virtual void install_device() override; diff --git a/src/devices/bus/sbus/cgsix.h b/src/devices/bus/sbus/cgsix.h index 40392f250df..e6fd8da7790 100644 --- a/src/devices/bus/sbus/cgsix.h +++ b/src/devices/bus/sbus/cgsix.h @@ -34,8 +34,8 @@ class sbus_cgsix_device : public device_t, public device_sbus_card_interface void set_vram_size(uint32_t vram_size) { m_vram_size = vram_size; } // device_t 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; uint32_t rom_r(offs_t offset); uint32_t unknown_r(offs_t offset, uint32_t mem_mask = ~0); @@ -58,7 +58,7 @@ class sbus_cgsix_device : public device_t, public device_sbus_card_interface void handle_draw_command(); void handle_blit_command(); - void base_map(address_map &map); + void base_map(address_map &map) ATTR_COLD; enum { @@ -524,7 +524,7 @@ class sbus_turbogx_device : public sbus_cgsix_device protected: // device_t overrides - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; void device_add_mconfig(machine_config &config) override; // device_sbus_slot_interface overrides @@ -540,7 +540,7 @@ class sbus_turbogxp_device : public sbus_cgsix_device protected: // device_t overrides - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; void device_add_mconfig(machine_config &config) override; // device_sbus_slot_interface overrides diff --git a/src/devices/bus/sbus/cgthree.h b/src/devices/bus/sbus/cgthree.h index d95a104aef5..4169f73ffa5 100644 --- a/src/devices/bus/sbus/cgthree.h +++ b/src/devices/bus/sbus/cgthree.h @@ -24,10 +24,10 @@ class sbus_cgthree_device : public device_t, public device_sbus_card_interface protected: // device_t overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; // device_sbus_slot_interface overrides virtual void install_device() override; diff --git a/src/devices/bus/sbus/hme.h b/src/devices/bus/sbus/hme.h index fde0571c755..61e0b3cbc4d 100644 --- a/src/devices/bus/sbus/hme.h +++ b/src/devices/bus/sbus/hme.h @@ -22,9 +22,9 @@ class sbus_hme_device : public device_t, public device_sbus_card_interface protected: // device_t overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; // device_sbus_slot_interface overrides virtual void install_device() override; diff --git a/src/devices/bus/sbus/sbus.h b/src/devices/bus/sbus/sbus.h index 8f395afa253..9439fc916ec 100644 --- a/src/devices/bus/sbus/sbus.h +++ b/src/devices/bus/sbus/sbus.h @@ -40,8 +40,8 @@ class sbus_slot_device : public device_t, public device_single_card_slot_interfa // device_t implementation virtual void device_validity_check(validity_checker &valid) const override; - 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 m_sbus; @@ -94,7 +94,7 @@ class sbus_device : public device_t, sbus_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_device m_maincpu; @@ -107,9 +107,9 @@ class sbus_device : public device_t, device_sbus_card_interface *m_device_list[3]; private: - void slot1_timeout_map(address_map &map); - void slot2_timeout_map(address_map &map); - void slot3_timeout_map(address_map &map); + void slot1_timeout_map(address_map &map) ATTR_COLD; + void slot2_timeout_map(address_map &map) ATTR_COLD; + void slot3_timeout_map(address_map &map) ATTR_COLD; template uint32_t slot_timeout_r(); template void slot_timeout_w(uint32_t data); diff --git a/src/devices/bus/sbus/sunpc.h b/src/devices/bus/sbus/sunpc.h index 951b0c6f7d6..13b61680c3a 100644 --- a/src/devices/bus/sbus/sunpc.h +++ b/src/devices/bus/sbus/sunpc.h @@ -22,9 +22,9 @@ class sbus_sunpc_device : public device_t, public device_sbus_card_interface protected: // device_t overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; // device_sbus_slot_interface overrides virtual void install_device() override; diff --git a/src/devices/bus/scsi/cdu76s.h b/src/devices/bus/scsi/cdu76s.h index 7eb6f7487ea..99b6f06d410 100644 --- a/src/devices/bus/scsi/cdu76s.h +++ b/src/devices/bus/scsi/cdu76s.h @@ -25,7 +25,7 @@ class sony_cdu76s_device : public scsicd_device virtual void ReadData( uint8_t *data, int dataLength ) override; 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 diff --git a/src/devices/bus/scsi/omti5100.h b/src/devices/bus/scsi/omti5100.h index 4b1e1dda59a..7a4af5f3170 100644 --- a/src/devices/bus/scsi/omti5100.h +++ b/src/devices/bus/scsi/omti5100.h @@ -17,9 +17,9 @@ class omti5100_device : public scsihd_device virtual void WriteData( uint8_t *data, int dataLength ) override; protected: - void device_start() override; + void device_start() override ATTR_COLD; - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: required_device m_image0; diff --git a/src/devices/bus/scsi/s1410.h b/src/devices/bus/scsi/s1410.h index 305b63a1141..806f21fad85 100644 --- a/src/devices/bus/scsi/s1410.h +++ b/src/devices/bus/scsi/s1410.h @@ -21,8 +21,8 @@ class s1410_device : public scsihd_device protected: // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual void ExecCommand() override; virtual void WriteData( uint8_t *data, int dataLength ) override; @@ -31,8 +31,8 @@ class s1410_device : public scsihd_device private: required_device m_image; - void s1410_io(address_map &map); - void s1410_mem(address_map &map); + void s1410_io(address_map &map) ATTR_COLD; + void s1410_mem(address_map &map) ATTR_COLD; }; diff --git a/src/devices/bus/scsi/sa1403d.h b/src/devices/bus/scsi/sa1403d.h index f4b229d6514..80a5acf143a 100644 --- a/src/devices/bus/scsi/sa1403d.h +++ b/src/devices/bus/scsi/sa1403d.h @@ -25,9 +25,9 @@ class sa1403d_device : public scsihd_device protected: // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; }; diff --git a/src/devices/bus/scsi/scsi.h b/src/devices/bus/scsi/scsi.h index 4906125cf56..c91bc1c5312 100644 --- a/src/devices/bus/scsi/scsi.h +++ b/src/devices/bus/scsi/scsi.h @@ -85,8 +85,8 @@ class scsi_port_device : public device_t protected: // device-level overrides - 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; void update_bsy(); void update_sel(); @@ -181,7 +181,7 @@ class scsi_port_slot_device : public device_t, public device_single_card_slot_in protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void device_config_complete() override; protected: diff --git a/src/devices/bus/scsi/scsicd.h b/src/devices/bus/scsi/scsicd.h index 6416352880d..7f1bc54ed7e 100644 --- a/src/devices/bus/scsi/scsicd.h +++ b/src/devices/bus/scsi/scsicd.h @@ -20,9 +20,9 @@ class scsicd_device : public scsihle_device, public t10mmc protected: scsicd_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; virtual bool exists() const override; }; diff --git a/src/devices/bus/scsi/scsicd512.h b/src/devices/bus/scsi/scsicd512.h index 0345a74ca9a..88dc772b3b9 100644 --- a/src/devices/bus/scsi/scsicd512.h +++ b/src/devices/bus/scsi/scsicd512.h @@ -32,7 +32,7 @@ class scsicd512_device : public scsicd_device m_data = data; } - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; char m_manufacturer[8]; char m_product[16]; diff --git a/src/devices/bus/scsi/scsihd.h b/src/devices/bus/scsi/scsihd.h index 734e1ef4547..95456ca3d5f 100644 --- a/src/devices/bus/scsi/scsihd.h +++ b/src/devices/bus/scsi/scsihd.h @@ -22,8 +22,8 @@ class scsihd_device : public scsihle_device, public t10sbc protected: scsihd_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; virtual bool exists() const override; }; diff --git a/src/devices/bus/scsi/scsihle.h b/src/devices/bus/scsi/scsihle.h index 95849f34332..2ea069b702d 100644 --- a/src/devices/bus/scsi/scsihle.h +++ b/src/devices/bus/scsi/scsihle.h @@ -42,9 +42,9 @@ class scsihle_device : public device_t, scsihle_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // device-level overrides - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; - virtual void device_reset() override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; TIMER_CALLBACK_MEMBER(req_tick); TIMER_CALLBACK_MEMBER(sel_tick); diff --git a/src/devices/bus/scv/rom.h b/src/devices/bus/scv/rom.h index 74fa0591179..775453cafc9 100644 --- a/src/devices/bus/scv/rom.h +++ b/src/devices/bus/scv/rom.h @@ -69,8 +69,8 @@ class scv_rom32ram8_device : public scv_rom8_device 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; private: uint8_t m_ram_enabled; @@ -86,8 +86,8 @@ class scv_rom64_device : public scv_rom8_device scv_rom64_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // 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; // reading and writing virtual uint8_t read_cart(offs_t offset) override; @@ -112,8 +112,8 @@ class scv_rom128_device : public scv_rom8_device 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; private: uint8_t m_bank_base; @@ -135,8 +135,8 @@ class scv_rom128ram4_device : public scv_rom8_device 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; private: uint8_t m_bank_base, m_ram_enabled; diff --git a/src/devices/bus/scv/slot.h b/src/devices/bus/scv/slot.h index 1836a517cdb..8744156af27 100644 --- a/src/devices/bus/scv/slot.h +++ b/src/devices/bus/scv/slot.h @@ -102,7 +102,7 @@ class scv_cart_slot_device : public device_t, protected: // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; int m_type; device_scv_cart_interface *m_cart; diff --git a/src/devices/bus/sdk85/i8755.h b/src/devices/bus/sdk85/i8755.h index 2960be386e7..c62779a8b76 100644 --- a/src/devices/bus/sdk85/i8755.h +++ b/src/devices/bus/sdk85/i8755.h @@ -19,9 +19,9 @@ class sdk85exp_i8755_device : public device_t, public device_sdk85_romexp_card_i protected: // device-level overrides - virtual void device_start() 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_add_mconfig(machine_config &config) override ATTR_COLD; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; // device_sdk85_romexp_card_interface overrides virtual u8 read_memory(offs_t offset) override; diff --git a/src/devices/bus/sdk85/memexp.h b/src/devices/bus/sdk85/memexp.h index 1c82d1dc807..b42182a49ba 100644 --- a/src/devices/bus/sdk85/memexp.h +++ b/src/devices/bus/sdk85/memexp.h @@ -53,7 +53,7 @@ class sdk85_romexp_device : public device_t, protected: // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_image_interface implementation virtual std::pair call_load() override; diff --git a/src/devices/bus/sega8/ccatch.h b/src/devices/bus/sega8/ccatch.h index ab00942904f..869d32e831c 100644 --- a/src/devices/bus/sega8/ccatch.h +++ b/src/devices/bus/sega8/ccatch.h @@ -22,7 +22,7 @@ class sega8_cardcatch_device : public sega8_rom_device virtual void write_mapper(offs_t offset, uint8_t data) override {} protected: - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; required_device m_card; }; diff --git a/src/devices/bus/sega8/mgear.h b/src/devices/bus/sega8/mgear.h index 3e8e5f64fc9..5ce47c56d5a 100644 --- a/src/devices/bus/sega8/mgear.h +++ b/src/devices/bus/sega8/mgear.h @@ -25,10 +25,10 @@ class sega8_mgear_device : public sega8_rom_device 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 device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; required_device m_subslot; }; diff --git a/src/devices/bus/sega8/rom.h b/src/devices/bus/sega8/rom.h index ec4928fba22..479ea4d7048 100644 --- a/src/devices/bus/sega8/rom.h +++ b/src/devices/bus/sega8/rom.h @@ -28,8 +28,8 @@ class sega8_rom_device : public device_t, sega8_rom_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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; uint8_t m_rom_bank_base[3]; uint8_t m_ram_base; @@ -116,7 +116,7 @@ class sega8_terebi_device : public sega8_rom_device sega8_terebi_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // device-level overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; required_ioport m_tvdraw_x; required_ioport m_tvdraw_y; @@ -128,8 +128,8 @@ class sega8_terebi_device : public sega8_rom_device virtual void write_mapper(offs_t offset, uint8_t data) override { } protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; uint8_t m_tvdraw_data; }; @@ -192,11 +192,11 @@ class sega8_eeprom_device : public device_t, virtual void write_mapper(offs_t offset, uint8_t data) override; protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; uint8_t m_rom_bank_base[3]; @@ -224,8 +224,8 @@ class sega8_codemasters_device : public device_t, 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; uint8_t m_rom_bank_base[3]; uint8_t m_ram_base; @@ -247,8 +247,8 @@ class sega8_4pak_device : public sega8_rom_device 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; private: uint8_t m_reg[3]; @@ -275,8 +275,8 @@ class sega8_zemina_device : public device_t, sega8_zemina_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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; uint8_t m_rom_bank_base[6]; uint8_t m_ram_base; @@ -373,8 +373,8 @@ class sega8_korean_188_device : public sega8_rom_device 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; private: u8 m_rom_bank_base; @@ -411,8 +411,8 @@ class sega8_seojin_device : public sega8_rom_device 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; uint8_t m_gamesel; uint8_t m_readxor; @@ -438,8 +438,8 @@ class sega8_multicart_device : public sega8_rom_device 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; private: uint8_t m_block; @@ -465,8 +465,8 @@ class sega8_megacart_device : public sega8_rom_device 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; private: uint8_t m_block; @@ -477,7 +477,7 @@ class sega8_x_terminator_device : public sega8_rom_device public: sega8_x_terminator_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; // reading and writing virtual uint8_t read_cart(offs_t offset) override; @@ -490,9 +490,9 @@ class sega8_x_terminator_device : public sega8_rom_device protected: // device-level overrides - 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; required_device m_subslot; required_ioport m_switch; diff --git a/src/devices/bus/sega8/sega8_slot.h b/src/devices/bus/sega8/sega8_slot.h index bc2d7d8e27e..0e2f7b0bd18 100644 --- a/src/devices/bus/sega8/sega8_slot.h +++ b/src/devices/bus/sega8/sega8_slot.h @@ -153,7 +153,7 @@ class sega8_cart_slot_device : public device_t, sega8_cart_slot_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, bool is_card = false); // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; int m_type; bool const m_is_card; diff --git a/src/devices/bus/segaai/segaai_slot.h b/src/devices/bus/segaai/segaai_slot.h index 5e8723fe471..3ce496a2b1f 100644 --- a/src/devices/bus/segaai/segaai_slot.h +++ b/src/devices/bus/segaai/segaai_slot.h @@ -44,7 +44,7 @@ class segaai_card_slot_device : public device_t, virtual std::string get_default_card_software(get_default_card_software_hook &hook) const override; protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: optional_address_space m_address_space; diff --git a/src/devices/bus/segaai/soundbox.cpp b/src/devices/bus/segaai/soundbox.cpp index 5730ab0042d..3496f1ac479 100644 --- a/src/devices/bus/segaai/soundbox.cpp +++ b/src/devices/bus/segaai/soundbox.cpp @@ -102,10 +102,10 @@ class segaai_soundbox_device : public device_t, static constexpr feature_type unemulated_features() { return feature::KEYBOARD; } protected: - virtual void device_add_mconfig(machine_config &config) override; - virtual const tiny_rom_entry *device_rom_region() const override; - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; private: static constexpr u32 EXPANSION_RAM_SIZE = 0x20000; diff --git a/src/devices/bus/sg1000_exp/fm_unit.h b/src/devices/bus/sg1000_exp/fm_unit.h index d1c80e0b178..8b2ec889bad 100644 --- a/src/devices/bus/sg1000_exp/fm_unit.h +++ b/src/devices/bus/sg1000_exp/fm_unit.h @@ -33,9 +33,9 @@ class sega_fm_unit_device : public device_t, protected: // device-level overrides - 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; // device_sg1000_expansion_slot_interface overrides virtual uint8_t peripheral_r(offs_t offset) override; diff --git a/src/devices/bus/sg1000_exp/kblink.h b/src/devices/bus/sg1000_exp/kblink.h index ee0aec9315d..6c667b60b1a 100644 --- a/src/devices/bus/sg1000_exp/kblink.h +++ b/src/devices/bus/sg1000_exp/kblink.h @@ -35,9 +35,9 @@ class sk1100_link_cable_device : public device_t, protected: // device-level overrides - 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; // device_sk1100_link_cable_interface overrides virtual void input_data(int state) override { m_data = state; set_data_transfer(); } diff --git a/src/devices/bus/sg1000_exp/sg1000exp.h b/src/devices/bus/sg1000_exp/sg1000exp.h index d297e255d97..53c1c486338 100644 --- a/src/devices/bus/sg1000_exp/sg1000exp.h +++ b/src/devices/bus/sg1000_exp/sg1000exp.h @@ -47,7 +47,7 @@ class sg1000_expansion_slot_device : public device_t, public device_single_card_ protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: device_sg1000_expansion_slot_interface *m_device; diff --git a/src/devices/bus/sg1000_exp/sk1100.h b/src/devices/bus/sg1000_exp/sk1100.h index edaea0a706d..ceb33e6769d 100644 --- a/src/devices/bus/sg1000_exp/sk1100.h +++ b/src/devices/bus/sg1000_exp/sk1100.h @@ -35,12 +35,12 @@ class sega_sk1100_device : public device_t, sega_sk1100_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // optional information overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; protected: // device-level overrides - 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; // device_sg1000_expansion_slot_interface overrides virtual uint8_t peripheral_r(offs_t offset) override; diff --git a/src/devices/bus/sg1000_exp/sk1100prn.h b/src/devices/bus/sg1000_exp/sk1100prn.h index 56771a774b7..a0d8bb83cae 100644 --- a/src/devices/bus/sg1000_exp/sk1100prn.h +++ b/src/devices/bus/sg1000_exp/sk1100prn.h @@ -49,7 +49,7 @@ class sk1100_printer_port_device : public device_t, public device_single_card_sl protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: device_sk1100_printer_port_interface *m_device; diff --git a/src/devices/bus/sms_ctrl/diypaddle.cpp b/src/devices/bus/sms_ctrl/diypaddle.cpp index e84b8e9212b..7ab811b7ca4 100644 --- a/src/devices/bus/sms_ctrl/diypaddle.cpp +++ b/src/devices/bus/sms_ctrl/diypaddle.cpp @@ -60,12 +60,12 @@ class sms_diy_paddle_device : public device_t, public device_sms_control_interfa protected: virtual tiny_rom_entry const *device_rom_region() const override { return ROM_NAME(sms_diy_paddle); } virtual ioport_constructor device_input_ports() const override { return INPUT_PORTS_NAME(sms_diy_paddle); } - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; private: - void program_map(address_map &map); - void data_map(address_map &map); + void program_map(address_map &map) ATTR_COLD; + void data_map(address_map &map) ATTR_COLD; u8 portb_in(); u8 portc_in(); diff --git a/src/devices/bus/sms_ctrl/graphic.cpp b/src/devices/bus/sms_ctrl/graphic.cpp index c2ea024ebf2..fa46594ded7 100644 --- a/src/devices/bus/sms_ctrl/graphic.cpp +++ b/src/devices/bus/sms_ctrl/graphic.cpp @@ -73,7 +73,7 @@ class sms_graphic_device : public device_t, public device_sms_control_interface protected: // device_t implementation virtual ioport_constructor device_input_ports() const override { return INPUT_PORTS_NAME(sms_graphic); } - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: required_ioport m_buttons; diff --git a/src/devices/bus/sms_ctrl/lphaser.cpp b/src/devices/bus/sms_ctrl/lphaser.cpp index dd518c1c5e1..ab5b9b4d082 100644 --- a/src/devices/bus/sms_ctrl/lphaser.cpp +++ b/src/devices/bus/sms_ctrl/lphaser.cpp @@ -46,9 +46,9 @@ class sms_light_phaser_device : public device_t, public device_sms_control_inter protected: // device_t implementation - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; - virtual void device_reset() override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: required_ioport m_trigger; diff --git a/src/devices/bus/sms_ctrl/md6bt.cpp b/src/devices/bus/sms_ctrl/md6bt.cpp index 0e8ee72a258..7b5f145e744 100644 --- a/src/devices/bus/sms_ctrl/md6bt.cpp +++ b/src/devices/bus/sms_ctrl/md6bt.cpp @@ -49,8 +49,8 @@ class sms_md6button_device : public device_t, public device_sms_control_interfac protected: virtual ioport_constructor device_input_ports() const override { return INPUT_PORTS_NAME(sms_md6button); } - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: TIMER_CALLBACK_MEMBER(timeout); diff --git a/src/devices/bus/sms_ctrl/mdpad.cpp b/src/devices/bus/sms_ctrl/mdpad.cpp index d0c22c42085..7df30b42de0 100644 --- a/src/devices/bus/sms_ctrl/mdpad.cpp +++ b/src/devices/bus/sms_ctrl/mdpad.cpp @@ -36,7 +36,7 @@ class sms_mdpad_device : public device_t, public device_sms_control_interface protected: virtual ioport_constructor device_input_ports() const override { return INPUT_PORTS_NAME(sms_mdpad); } - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: required_ioport m_pad; diff --git a/src/devices/bus/sms_ctrl/mouse.cpp b/src/devices/bus/sms_ctrl/mouse.cpp index bb39fcd8bcd..bf34dc8f5fd 100644 --- a/src/devices/bus/sms_ctrl/mouse.cpp +++ b/src/devices/bus/sms_ctrl/mouse.cpp @@ -59,7 +59,7 @@ class sms_megamouse_device : public device_t, public device_sms_control_interfac sms_megamouse_device(machine_config const &mconfig, device_type type, char const *tag, device_t *owner, u32 clock); virtual ioport_constructor device_input_ports() const override { return INPUT_PORTS_NAME(sms_megamouse); } - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: TIMER_CALLBACK_MEMBER(next_step); diff --git a/src/devices/bus/sms_ctrl/multitap.cpp b/src/devices/bus/sms_ctrl/multitap.cpp index 6d5017095a5..5634f0c989d 100644 --- a/src/devices/bus/sms_ctrl/multitap.cpp +++ b/src/devices/bus/sms_ctrl/multitap.cpp @@ -39,9 +39,9 @@ class sms_multitap_device : public device_t, public device_sms_control_interface protected: // device_t implementation - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_resolve_objects() override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_resolve_objects() override ATTR_COLD; + virtual void device_start() override ATTR_COLD; private: TIMER_CALLBACK_MEMBER(reset_timeout); diff --git a/src/devices/bus/sms_ctrl/rfu.cpp b/src/devices/bus/sms_ctrl/rfu.cpp index 4f3307759ca..61a07a198f5 100644 --- a/src/devices/bus/sms_ctrl/rfu.cpp +++ b/src/devices/bus/sms_ctrl/rfu.cpp @@ -56,11 +56,11 @@ class sms_rapid_fire_device : public device_t, public device_sms_control_interfa protected: // device_t implementation - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; virtual void device_config_complete() override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: required_device m_subctrl_port; diff --git a/src/devices/bus/sms_ctrl/rs232adapt.cpp b/src/devices/bus/sms_ctrl/rs232adapt.cpp index 64fdf1db195..e6fb0b6ecd9 100644 --- a/src/devices/bus/sms_ctrl/rs232adapt.cpp +++ b/src/devices/bus/sms_ctrl/rs232adapt.cpp @@ -23,7 +23,7 @@ class sms_rs232_device : public device_t, public device_sms_control_interface protected: virtual void device_start() override { } - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: required_device m_port; diff --git a/src/devices/bus/sms_ctrl/smsctrl.h b/src/devices/bus/sms_ctrl/smsctrl.h index 4f6e7f5a919..d88869b9539 100644 --- a/src/devices/bus/sms_ctrl/smsctrl.h +++ b/src/devices/bus/sms_ctrl/smsctrl.h @@ -91,7 +91,7 @@ class sms_control_port_device : public device_t, public device_single_card_slot_ void out_w(u8 data, u8 mem_mask); protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: optional_device m_screen; diff --git a/src/devices/bus/sms_ctrl/sports.cpp b/src/devices/bus/sms_ctrl/sports.cpp index 62a11a7d882..dc8bc7c13bf 100644 --- a/src/devices/bus/sms_ctrl/sports.cpp +++ b/src/devices/bus/sms_ctrl/sports.cpp @@ -78,7 +78,7 @@ class sms_sports_pad_device : public device_t, public device_sms_control_interfa protected: // device_t implementation virtual ioport_constructor device_input_ports() const override { return INPUT_PORTS_NAME(sms_sports_pad); } - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: TIMER_CALLBACK_MEMBER(timeout); diff --git a/src/devices/bus/sms_ctrl/teamplayer.cpp b/src/devices/bus/sms_ctrl/teamplayer.cpp index c73af605e60..999e0e09341 100644 --- a/src/devices/bus/sms_ctrl/teamplayer.cpp +++ b/src/devices/bus/sms_ctrl/teamplayer.cpp @@ -38,10 +38,10 @@ class sms_teamplayer_device : public device_t, public device_sms_control_interfa DECLARE_INPUT_CHANGED_MEMBER(reselect); protected: - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; - virtual void device_resolve_objects() override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_resolve_objects() override ATTR_COLD; + virtual void device_start() override ATTR_COLD; private: enum : u8 diff --git a/src/devices/bus/sms_exp/gender.h b/src/devices/bus/sms_exp/gender.h index 7620d5c5cec..27eaf33fc7d 100644 --- a/src/devices/bus/sms_exp/gender.h +++ b/src/devices/bus/sms_exp/gender.h @@ -41,8 +41,8 @@ class sms_gender_adapter_device : public device_t, protected: // device-level overrides - 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; private: required_device m_subslot; diff --git a/src/devices/bus/sms_exp/smsexp.h b/src/devices/bus/sms_exp/smsexp.h index 1fb6a709468..88a1b4aa613 100644 --- a/src/devices/bus/sms_exp/smsexp.h +++ b/src/devices/bus/sms_exp/smsexp.h @@ -73,7 +73,7 @@ class sms_expansion_slot_device : public device_t, public device_single_card_slo protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; device_sms_expansion_slot_interface *m_device; }; diff --git a/src/devices/bus/snes/bsx.h b/src/devices/bus/snes/bsx.h index e144ff118ff..9a7314302e2 100644 --- a/src/devices/bus/snes/bsx.h +++ b/src/devices/bus/snes/bsx.h @@ -50,10 +50,10 @@ class sns_rom_bsx_device : public sns_rom_device sns_rom_bsx_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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 device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; void access_update(); @@ -89,9 +89,9 @@ class sns_rom_bsxlo_device : public sns_rom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: required_device m_slot; @@ -111,9 +111,9 @@ class sns_rom_bsxhi_device : public sns_rom21_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: required_device m_slot; @@ -138,8 +138,8 @@ class sns_rom_bsmempak_device : public sns_rom_device 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; // flash regs uint32_t m_command; diff --git a/src/devices/bus/snes/event.h b/src/devices/bus/snes/event.h index 5c075b50b27..b37052be814 100644 --- a/src/devices/bus/snes/event.h +++ b/src/devices/bus/snes/event.h @@ -20,11 +20,11 @@ class sns_pfest94_device : public device_t, 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 device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; virtual void speedup_addon_bios_access() override; @@ -53,8 +53,8 @@ class sns_pfest94_device : public device_t, emu_timer *pfest94_timer; - void dsp_data_map_lorom(address_map &map); - void dsp_prg_map_lorom(address_map &map); + void dsp_data_map_lorom(address_map &map) ATTR_COLD; + void dsp_prg_map_lorom(address_map &map) ATTR_COLD; }; diff --git a/src/devices/bus/snes/profighter.h b/src/devices/bus/snes/profighter.h index 164ddce5b99..9f2c6415c6a 100644 --- a/src/devices/bus/snes/profighter.h +++ b/src/devices/bus/snes/profighter.h @@ -16,10 +16,10 @@ class sns_pro_fighter_q_device : public device_t, sns_pro_fighter_q_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - 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; }; class sns_pro_fighter_qa_device : public device_t, @@ -29,10 +29,10 @@ class sns_pro_fighter_qa_device : public device_t, sns_pro_fighter_qa_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - 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; }; class sns_pro_fighter_qb_device : public device_t, @@ -42,10 +42,10 @@ class sns_pro_fighter_qb_device : public device_t, sns_pro_fighter_qb_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - 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; }; class sns_pro_fighter_x_device : public device_t, @@ -55,10 +55,10 @@ class sns_pro_fighter_x_device : public device_t, sns_pro_fighter_x_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - 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; }; diff --git a/src/devices/bus/snes/rom.h b/src/devices/bus/snes/rom.h index d2a09b774c1..8901846e3fe 100644 --- a/src/devices/bus/snes/rom.h +++ b/src/devices/bus/snes/rom.h @@ -24,7 +24,7 @@ class sns_rom_device : public device_t, public device_sns_cart_interface sns_rom_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; }; // ======================> sns_rom_obc1_device @@ -41,8 +41,8 @@ class sns_rom_obc1_device : public sns_rom_device 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; int m_address; int m_offset; @@ -66,8 +66,8 @@ class sns_rom_pokemon_device : public sns_rom_device 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; uint8_t m_latch; }; @@ -86,8 +86,8 @@ class sns_rom_tekken2_device : public sns_rom_device 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; void update_prot(uint32_t offset); @@ -123,8 +123,8 @@ class sns_rom_mcpirate1_device : public sns_rom_device 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; uint8_t m_base_bank; }; @@ -144,8 +144,8 @@ class sns_rom_mcpirate2_device : public sns_rom_device 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; uint8_t m_base_bank; }; @@ -165,7 +165,7 @@ class sns_rom_20col_device : public sns_rom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; uint8_t m_base_bank; }; @@ -204,8 +204,8 @@ class sns_rom_bugs_device : public sns_rom_device 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; uint8_t m_latch[0x800]; }; diff --git a/src/devices/bus/snes/rom21.h b/src/devices/bus/snes/rom21.h index fb9b0b6c65a..5614d19ee8f 100644 --- a/src/devices/bus/snes/rom21.h +++ b/src/devices/bus/snes/rom21.h @@ -25,8 +25,8 @@ class sns_rom21_device : public device_t, sns_rom21_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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; }; // ======================> sns_rom21_srtc_device @@ -52,8 +52,8 @@ class sns_rom21_srtc_device : public sns_rom21_device }; // 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; void update_time(); uint8_t srtc_weekday(uint32_t year, uint32_t month, uint32_t day); diff --git a/src/devices/bus/snes/sa1.h b/src/devices/bus/snes/sa1.h index 8b68820a826..b32b27a32fa 100644 --- a/src/devices/bus/snes/sa1.h +++ b/src/devices/bus/snes/sa1.h @@ -21,10 +21,10 @@ class sns_sa1_device : public device_t, 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 device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; // reading and writing virtual u8 read_l(offs_t offset) override; @@ -178,7 +178,7 @@ class sns_sa1_device : public device_t, void sa1_lo_w(offs_t offset, u8 data); void sa1_hi_w(offs_t offset, u8 data); - void sa1_map(address_map &map); + void sa1_map(address_map &map) ATTR_COLD; }; diff --git a/src/devices/bus/snes/sdd1.h b/src/devices/bus/snes/sdd1.h index 5164a169f65..d650f2447b5 100644 --- a/src/devices/bus/snes/sdd1.h +++ b/src/devices/bus/snes/sdd1.h @@ -30,8 +30,8 @@ class sns_rom_sdd1_device : public device_t, sns_rom_sdd1_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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; // misc classes for the S-DD1 diff --git a/src/devices/bus/snes/sfx.h b/src/devices/bus/snes/sfx.h index b46ca0c639d..36fb7135c10 100644 --- a/src/devices/bus/snes/sfx.h +++ b/src/devices/bus/snes/sfx.h @@ -17,8 +17,8 @@ class sns_rom_superfx_device : public sns_rom_device sns_rom_superfx_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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 snes_extern_irq_w(int state); @@ -41,7 +41,7 @@ class sns_rom_superfx_device : public sns_rom_device uint8_t sfx_ram[0x200000]; - void sfx_map(address_map &map); + void sfx_map(address_map &map) ATTR_COLD; }; class sns_rom_superfx1_device : public sns_rom_superfx_device @@ -51,7 +51,7 @@ class sns_rom_superfx1_device : public sns_rom_superfx_device sns_rom_superfx1_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 void device_add_mconfig(machine_config &config) override ATTR_COLD; }; class sns_rom_superfx2_device : public sns_rom_superfx_device @@ -61,7 +61,7 @@ class sns_rom_superfx2_device : public sns_rom_superfx_device sns_rom_superfx2_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 void device_add_mconfig(machine_config &config) override ATTR_COLD; }; // device type definition diff --git a/src/devices/bus/snes/sgb.h b/src/devices/bus/snes/sgb.h index 46d600a704b..f022217abe2 100644 --- a/src/devices/bus/snes/sgb.h +++ b/src/devices/bus/snes/sgb.h @@ -26,8 +26,8 @@ class sns_rom_sgb_device : public sns_rom_device sns_rom_sgb_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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; // reading and writing virtual uint8_t read_l(offs_t offset) override; @@ -40,7 +40,7 @@ class sns_rom_sgb_device : public sns_rom_device uint8_t gb_ie_r(offs_t offset); void gb_ie_w(offs_t offset, uint8_t data); - void supergb_map(address_map &map); + void supergb_map(address_map &map) ATTR_COLD; required_device m_sgb_cpu; required_device m_sgb_apu; @@ -81,8 +81,8 @@ class sns_rom_sgb1_device : public sns_rom_sgb_device protected: // device-level 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; }; @@ -94,8 +94,8 @@ class sns_rom_sgb2_device : public sns_rom_sgb_device protected: // device-level 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; }; // device type definition diff --git a/src/devices/bus/snes/snes_slot.h b/src/devices/bus/snes/snes_slot.h index 2390da66d4f..1e9ade9f3ed 100644 --- a/src/devices/bus/snes/snes_slot.h +++ b/src/devices/bus/snes/snes_slot.h @@ -237,7 +237,7 @@ class base_sns_cart_slot_device : public device_t, base_sns_cart_slot_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; private: devcb_write_line m_irq_callback; diff --git a/src/devices/bus/snes/spc7110.h b/src/devices/bus/snes/spc7110.h index a7c798244c1..ecb43869f1c 100644 --- a/src/devices/bus/snes/spc7110.h +++ b/src/devices/bus/snes/spc7110.h @@ -30,7 +30,7 @@ class sns_rom_spc7110_device : public sns_rom21_device sns_rom_spc7110_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; class SPC7110_Decomp { @@ -207,7 +207,7 @@ class sns_rom_spc7110rtc_device : public sns_rom_spc7110_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; }; // device type definition diff --git a/src/devices/bus/snes/sufami.h b/src/devices/bus/snes/sufami.h index 1b231131a2b..feb4464576b 100644 --- a/src/devices/bus/snes/sufami.h +++ b/src/devices/bus/snes/sufami.h @@ -25,9 +25,9 @@ class sns_rom_sufami_device : public sns_rom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: required_device m_slot1; @@ -47,7 +47,7 @@ class sns_rom_strom_device : public sns_rom_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; }; diff --git a/src/devices/bus/snes/upd.h b/src/devices/bus/snes/upd.h index 65dd780c725..d7ed6040795 100644 --- a/src/devices/bus/snes/upd.h +++ b/src/devices/bus/snes/upd.h @@ -22,8 +22,8 @@ class sns_rom20_necdsp_device : public sns_rom_device sns_rom20_necdsp_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // device-level overrides - 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; virtual void speedup_addon_bios_access() override; @@ -34,8 +34,8 @@ class sns_rom20_necdsp_device : public sns_rom_device uint32_t necdsp_prg_r(offs_t offset); uint16_t necdsp_data_r(offs_t offset); - void dsp_data_map_lorom(address_map &map); - void dsp_prg_map_lorom(address_map &map); + void dsp_data_map_lorom(address_map &map) ATTR_COLD; + void dsp_prg_map_lorom(address_map &map) ATTR_COLD; required_device m_upd7725; @@ -56,8 +56,8 @@ class sns_rom21_necdsp_device : public sns_rom21_device sns_rom21_necdsp_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // device-level overrides - 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; virtual void speedup_addon_bios_access() override; @@ -68,8 +68,8 @@ class sns_rom21_necdsp_device : public sns_rom21_device uint32_t necdsp_prg_r(offs_t offset); uint16_t necdsp_data_r(offs_t offset); - void dsp_data_map_hirom(address_map &map); - void dsp_prg_map_hirom(address_map &map); + void dsp_data_map_hirom(address_map &map) ATTR_COLD; + void dsp_prg_map_hirom(address_map &map) ATTR_COLD; required_device m_upd7725; @@ -90,7 +90,7 @@ class sns_rom_setadsp_device : public sns_rom_device sns_rom_setadsp_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // additional reading and writing virtual uint8_t chip_read(offs_t offset) override; @@ -99,8 +99,8 @@ class sns_rom_setadsp_device : public sns_rom_device virtual uint32_t setadsp_prg_r(offs_t offset); virtual uint16_t setadsp_data_r(offs_t offset); - void st01x_data_map(address_map &map); - void st01x_prg_map(address_map &map); + void st01x_data_map(address_map &map) ATTR_COLD; + void st01x_prg_map(address_map &map) ATTR_COLD; required_device m_upd96050; @@ -119,7 +119,7 @@ class sns_rom_seta10dsp_device : public sns_rom_setadsp_device protected: // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; // ======================> sns_rom_seta11dsp_device [Faster CPU than ST010] @@ -132,7 +132,7 @@ class sns_rom_seta11dsp_device : public sns_rom_setadsp_device protected: // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; @@ -154,8 +154,8 @@ class sns_rom20_necdsp1_legacy_device : public sns_rom20_necdsp_device protected: // device-level 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; }; class sns_rom20_necdsp1b_legacy_device : public sns_rom20_necdsp_device @@ -166,8 +166,8 @@ class sns_rom20_necdsp1b_legacy_device : public sns_rom20_necdsp_device protected: // device-level 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; }; class sns_rom20_necdsp2_legacy_device : public sns_rom20_necdsp_device @@ -178,8 +178,8 @@ class sns_rom20_necdsp2_legacy_device : public sns_rom20_necdsp_device protected: // device-level 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; }; class sns_rom20_necdsp3_legacy_device : public sns_rom20_necdsp_device @@ -190,8 +190,8 @@ class sns_rom20_necdsp3_legacy_device : public sns_rom20_necdsp_device protected: // device-level 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; }; class sns_rom20_necdsp4_legacy_device : public sns_rom20_necdsp_device @@ -202,8 +202,8 @@ class sns_rom20_necdsp4_legacy_device : public sns_rom20_necdsp_device protected: // device-level 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; }; class sns_rom21_necdsp1_legacy_device : public sns_rom21_necdsp_device @@ -214,8 +214,8 @@ class sns_rom21_necdsp1_legacy_device : public sns_rom21_necdsp_device protected: // device-level 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; }; class sns_rom_seta10dsp_legacy_device : public sns_rom_setadsp_device @@ -226,8 +226,8 @@ class sns_rom_seta10dsp_legacy_device : public sns_rom_setadsp_device protected: // device-level 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; }; class sns_rom_seta11dsp_legacy_device : public sns_rom_setadsp_device @@ -238,8 +238,8 @@ class sns_rom_seta11dsp_legacy_device : public sns_rom_setadsp_device protected: // device-level 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; }; DECLARE_DEVICE_TYPE(SNS_LOROM_NECDSP1_LEG, sns_rom20_necdsp1_legacy_device) diff --git a/src/devices/bus/snes_ctrl/bcbattle.h b/src/devices/bus/snes_ctrl/bcbattle.h index a7073ac4ba0..aaa45759bfd 100644 --- a/src/devices/bus/snes_ctrl/bcbattle.h +++ b/src/devices/bus/snes_ctrl/bcbattle.h @@ -30,10 +30,10 @@ class snes_bcbattle_device : public device_t, 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 device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual uint8_t read_pin4() override; virtual void write_strobe(uint8_t data) override; diff --git a/src/devices/bus/snes_ctrl/ctrl.h b/src/devices/bus/snes_ctrl/ctrl.h index 30169d8a7dd..3b9ed59844d 100644 --- a/src/devices/bus/snes_ctrl/ctrl.h +++ b/src/devices/bus/snes_ctrl/ctrl.h @@ -76,7 +76,7 @@ class snes_control_port_device : public device_t, public device_single_card_slot protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; onscreen_delegate m_onscreen_cb; gunlatch_delegate m_gunlatch_cb; diff --git a/src/devices/bus/snes_ctrl/joypad.h b/src/devices/bus/snes_ctrl/joypad.h index 204cceac6d5..251c96afb50 100644 --- a/src/devices/bus/snes_ctrl/joypad.h +++ b/src/devices/bus/snes_ctrl/joypad.h @@ -28,12 +28,12 @@ class snes_joypad_device : public device_t, snes_joypad_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // optional information overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; 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; // device_snes_control_port_interface overrides virtual uint8_t read_pin4() override; diff --git a/src/devices/bus/snes_ctrl/miracle.h b/src/devices/bus/snes_ctrl/miracle.h index b2bf08d2a49..602bacdb6e6 100644 --- a/src/devices/bus/snes_ctrl/miracle.h +++ b/src/devices/bus/snes_ctrl/miracle.h @@ -35,10 +35,10 @@ class snes_miracle_device : public device_t, static constexpr int RECV_RING_SIZE = 64; // 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 device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; // serial overrides virtual void rcv_complete() override; // Rx completed receiving byte diff --git a/src/devices/bus/snes_ctrl/mouse.h b/src/devices/bus/snes_ctrl/mouse.h index cd6f3839950..08e91e3da75 100644 --- a/src/devices/bus/snes_ctrl/mouse.h +++ b/src/devices/bus/snes_ctrl/mouse.h @@ -28,12 +28,12 @@ class snes_mouse_device : public device_t, snes_mouse_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // optional information overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; 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; // device_snes_control_port_interface overrides virtual uint8_t read_pin4() override; diff --git a/src/devices/bus/snes_ctrl/multitap.h b/src/devices/bus/snes_ctrl/multitap.h index 779744fe753..0099bca5b9d 100644 --- a/src/devices/bus/snes_ctrl/multitap.h +++ b/src/devices/bus/snes_ctrl/multitap.h @@ -29,12 +29,12 @@ class snes_multitap_device : public device_t, 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; // optional information overrides - virtual ioport_constructor device_input_ports() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; // device_snes_control_port_interface overrides virtual uint8_t read_pin4() override; diff --git a/src/devices/bus/snes_ctrl/pachinko.h b/src/devices/bus/snes_ctrl/pachinko.h index 0fffa05767a..d2f1cb52b48 100644 --- a/src/devices/bus/snes_ctrl/pachinko.h +++ b/src/devices/bus/snes_ctrl/pachinko.h @@ -28,12 +28,12 @@ class snes_pachinko_device : public device_t, snes_pachinko_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // optional information overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; 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; // device_snes_control_port_interface overrides virtual uint8_t read_pin4() override; diff --git a/src/devices/bus/snes_ctrl/sscope.h b/src/devices/bus/snes_ctrl/sscope.h index b81afda179d..2af2329749b 100644 --- a/src/devices/bus/snes_ctrl/sscope.h +++ b/src/devices/bus/snes_ctrl/sscope.h @@ -28,12 +28,12 @@ class snes_sscope_device : public device_t, snes_sscope_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // optional information overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; 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; // device_snes_control_port_interface overrides virtual uint8_t read_pin4() override; diff --git a/src/devices/bus/snes_ctrl/twintap.h b/src/devices/bus/snes_ctrl/twintap.h index ccd1d4cfef8..60345cc8048 100644 --- a/src/devices/bus/snes_ctrl/twintap.h +++ b/src/devices/bus/snes_ctrl/twintap.h @@ -28,12 +28,12 @@ class snes_twintap_device : public device_t, snes_twintap_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // optional information overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; 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; // device_snes_control_port_interface overrides virtual uint8_t read_pin4() override; diff --git a/src/devices/bus/spc1000/exp.h b/src/devices/bus/spc1000/exp.h index e2b1baeb958..78cf7776327 100644 --- a/src/devices/bus/spc1000/exp.h +++ b/src/devices/bus/spc1000/exp.h @@ -46,7 +46,7 @@ class spc1000_exp_device : public device_t, public device_single_card_slot_inter protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; device_spc1000_card_interface* m_card; }; diff --git a/src/devices/bus/spc1000/fdd.h b/src/devices/bus/spc1000/fdd.h index 1275f1b9bfb..e571ef1b544 100644 --- a/src/devices/bus/spc1000/fdd.h +++ b/src/devices/bus/spc1000/fdd.h @@ -25,10 +25,10 @@ class spc1000_fdd_exp_device : public device_t, public device_spc1000_card_inter protected: // device-level overrides - 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; virtual uint8_t read(offs_t offset) override; virtual void write(offs_t offset, uint8_t data) override; @@ -55,8 +55,8 @@ class spc1000_fdd_exp_device : public device_t, public device_spc1000_card_inter uint8_t tc_r(); void control_w(uint8_t data); - void sd725_io(address_map &map); - void sd725_mem(address_map &map); + void sd725_io(address_map &map) ATTR_COLD; + void sd725_mem(address_map &map) ATTR_COLD; }; diff --git a/src/devices/bus/spc1000/vdp.h b/src/devices/bus/spc1000/vdp.h index 3f7bdf31dfe..b7612f0dad0 100644 --- a/src/devices/bus/spc1000/vdp.h +++ b/src/devices/bus/spc1000/vdp.h @@ -23,9 +23,9 @@ class spc1000_vdp_exp_device : public device_t, public device_spc1000_card_inter protected: // device-level overrides - 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; virtual uint8_t read(offs_t offset) override; virtual void write(offs_t offset, uint8_t data) override; diff --git a/src/devices/bus/spectrum/beta.h b/src/devices/bus/spectrum/beta.h index 22afe752ee9..cec3bb8be05 100644 --- a/src/devices/bus/spectrum/beta.h +++ b/src/devices/bus/spectrum/beta.h @@ -34,13 +34,13 @@ class spectrum_betav2_device : 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; // optional information overrides void device_add_mconfig_base(machine_config& config); - 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; virtual void pre_opcode_fetch(offs_t offset) override; virtual void pre_data_fetch(offs_t offset) override; @@ -78,8 +78,8 @@ class spectrum_betav3_device : spectrum_betav3_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; virtual void iorq_w(offs_t offset, uint8_t data) override; virtual void motors_control() override; @@ -96,8 +96,8 @@ class spectrum_betaplus_device : DECLARE_INPUT_CHANGED_MEMBER(magic_button); protected: - virtual const tiny_rom_entry *device_rom_region() const override; - virtual ioport_constructor device_input_ports() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; }; @@ -111,7 +111,7 @@ class spectrum_betaclone_device : protected: virtual uint8_t mreq_r(offs_t offset) override; - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; }; @@ -124,12 +124,12 @@ class spectrum_betacbi_device : spectrum_betacbi_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - 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; virtual void fetch(offs_t offset) override; virtual uint8_t iorq_r(offs_t offset) override; virtual void iorq_w(offs_t offset, uint8_t data) override; - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; required_device m_centronics; @@ -146,11 +146,11 @@ class spectrum_gamma_device : ioport_value busy_r() { return !m_centronics_busy; } protected: - virtual void device_start() override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual void device_start() override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; virtual uint8_t mreq_r(offs_t offset) override; - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; virtual uint8_t iorq_r(offs_t offset) override; virtual void iorq_w(offs_t offset, uint8_t data) override; virtual bool romcs() override { return 1; } diff --git a/src/devices/bus/spectrum/beta128.h b/src/devices/bus/spectrum/beta128.h index 3201e9ecf6e..38495782ea1 100644 --- a/src/devices/bus/spectrum/beta128.h +++ b/src/devices/bus/spectrum/beta128.h @@ -31,13 +31,13 @@ class spectrum_beta128_device : 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; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual const tiny_rom_entry *device_rom_region() const override; - virtual ioport_constructor device_input_ports() 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; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; virtual void pre_opcode_fetch(offs_t offset) override; virtual uint8_t mreq_r(offs_t offset) override; diff --git a/src/devices/bus/spectrum/d40.h b/src/devices/bus/spectrum/d40.h index b3f3b856217..f63438f5eb4 100644 --- a/src/devices/bus/spectrum/d40.h +++ b/src/devices/bus/spectrum/d40.h @@ -31,11 +31,11 @@ class spectrum_d40base_device: public device_t, public device_spectrum_expansion spectrum_d40base_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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; // optional information overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; virtual void pre_opcode_fetch(offs_t offset) override; virtual uint8_t mreq_r(offs_t offset) override; @@ -69,11 +69,11 @@ class spectrum_d40_device : protected: spectrum_d40_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); - 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; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; required_device m_fdc; required_device_array m_floppy; @@ -97,7 +97,7 @@ class spectrum_d80_device : spectrum_d80_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 void device_add_mconfig(machine_config &config) override ATTR_COLD; }; class spectrum_d80v2_device : @@ -107,8 +107,8 @@ class spectrum_d80v2_device : spectrum_d80v2_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; virtual void pre_opcode_fetch(offs_t offset) override; virtual uint8_t mreq_r(offs_t offset) override; diff --git a/src/devices/bus/spectrum/exp.h b/src/devices/bus/spectrum/exp.h index 677d23d6f9e..030986fa6e8 100644 --- a/src/devices/bus/spectrum/exp.h +++ b/src/devices/bus/spectrum/exp.h @@ -95,7 +95,7 @@ class spectrum_expansion_slot_device : public device_t, public device_single_car protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; device_spectrum_expansion_interface *m_card; diff --git a/src/devices/bus/spectrum/floppyone.h b/src/devices/bus/spectrum/floppyone.h index 1020dac7518..7992f0c7aea 100644 --- a/src/devices/bus/spectrum/floppyone.h +++ b/src/devices/bus/spectrum/floppyone.h @@ -33,14 +33,14 @@ class spectrum_flpone_device : 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; // optional information overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; - 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; virtual void post_opcode_fetch(offs_t offset) override; virtual uint8_t mreq_r(offs_t offset) override; diff --git a/src/devices/bus/spectrum/fuller.h b/src/devices/bus/spectrum/fuller.h index 70c776a81a2..dc60cc3631e 100644 --- a/src/devices/bus/spectrum/fuller.h +++ b/src/devices/bus/spectrum/fuller.h @@ -31,11 +31,11 @@ class spectrum_fuller_device : protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; virtual uint8_t iorq_r(offs_t offset) override; virtual void iorq_w(offs_t offset, uint8_t data) override; diff --git a/src/devices/bus/spectrum/intf1.h b/src/devices/bus/spectrum/intf1.h index bd40d12f25b..59ffaf95838 100644 --- a/src/devices/bus/spectrum/intf1.h +++ b/src/devices/bus/spectrum/intf1.h @@ -30,12 +30,12 @@ class spectrum_intf1_device: static constexpr feature_type unemulated_features() { return feature::DISK | feature::LAN; } protected: - 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; virtual void pre_opcode_fetch(offs_t offset) override; virtual void post_opcode_fetch(offs_t offset) override; diff --git a/src/devices/bus/spectrum/intf2.h b/src/devices/bus/spectrum/intf2.h index cbb2a18ca45..5fb9adcb217 100644 --- a/src/devices/bus/spectrum/intf2.h +++ b/src/devices/bus/spectrum/intf2.h @@ -28,11 +28,11 @@ class spectrum_intf2_device: spectrum_intf2_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; virtual bool romcs() override; virtual uint8_t mreq_r(offs_t offset) override; diff --git a/src/devices/bus/spectrum/kempdisc.h b/src/devices/bus/spectrum/kempdisc.h index 9737da16887..7f5ad23f593 100644 --- a/src/devices/bus/spectrum/kempdisc.h +++ b/src/devices/bus/spectrum/kempdisc.h @@ -31,12 +31,12 @@ class spectrum_kempdisc_device : protected: spectrum_kempdisc_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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; // 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; virtual uint8_t mreq_r(offs_t offset) override; virtual uint8_t iorq_r(offs_t offset) override; @@ -68,7 +68,7 @@ class spectrum_spdos_device : protected: // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; virtual void iorq_w(offs_t offset, uint8_t data) override; virtual uint8_t mreq_r(offs_t offset) override; diff --git a/src/devices/bus/spectrum/kempjoy.h b/src/devices/bus/spectrum/kempjoy.h index 466dceb7517..0f7557b3911 100644 --- a/src/devices/bus/spectrum/kempjoy.h +++ b/src/devices/bus/spectrum/kempjoy.h @@ -30,10 +30,10 @@ class spectrum_kempjoy_device : protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; virtual uint8_t iorq_r(offs_t offset) override; diff --git a/src/devices/bus/spectrum/logitek.h b/src/devices/bus/spectrum/logitek.h index 01236da2dde..71ab217f821 100644 --- a/src/devices/bus/spectrum/logitek.h +++ b/src/devices/bus/spectrum/logitek.h @@ -34,14 +34,14 @@ class spectrum_proceed_device : 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; // optional information overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; - 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 fetch(offs_t offset); diff --git a/src/devices/bus/spectrum/lprint.h b/src/devices/bus/spectrum/lprint.h index f8a1f135096..ccf330b7ded 100644 --- a/src/devices/bus/spectrum/lprint.h +++ b/src/devices/bus/spectrum/lprint.h @@ -27,12 +27,12 @@ class spectrum_lprint_device : 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; // 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; virtual void pre_opcode_fetch(offs_t offset) override; virtual void pre_data_fetch(offs_t offset) override; @@ -61,12 +61,12 @@ class spectrum_lprint3_device : 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; // 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; virtual uint8_t mreq_r(offs_t offset) override; virtual uint8_t iorq_r(offs_t offset) override; @@ -102,11 +102,11 @@ class spectrum_kempcentrs_device : 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; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual uint8_t iorq_r(offs_t offset) override; virtual void iorq_w(offs_t offset, uint8_t data) override; @@ -131,12 +131,12 @@ class spectrum_kempcentre_device : spectrum_kempcentre_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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; // 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; virtual void pre_opcode_fetch(offs_t offset) override; virtual void pre_data_fetch(offs_t offset) override; @@ -164,10 +164,10 @@ class spectrum_kempcentreu_device : protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; virtual void pre_opcode_fetch(offs_t offset) override; virtual uint8_t iorq_r(offs_t offset) override; diff --git a/src/devices/bus/spectrum/melodik.h b/src/devices/bus/spectrum/melodik.h index b5775e6438f..5364ae6906e 100644 --- a/src/devices/bus/spectrum/melodik.h +++ b/src/devices/bus/spectrum/melodik.h @@ -31,10 +31,10 @@ class spectrum_melodik_device : protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual uint8_t iorq_r(offs_t offset) override; virtual void iorq_w(offs_t offset, uint8_t data) override; diff --git a/src/devices/bus/spectrum/mface.h b/src/devices/bus/spectrum/mface.h index c4c73f3d931..9cd172dbdf0 100644 --- a/src/devices/bus/spectrum/mface.h +++ b/src/devices/bus/spectrum/mface.h @@ -29,12 +29,12 @@ class spectrum_mface_base_device : spectrum_mface_base_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; virtual void pre_opcode_fetch(offs_t offset) override; virtual uint8_t mreq_r(offs_t offset) override; @@ -69,11 +69,11 @@ class spectrum_mface1v2_device : public spectrum_mface_base_device spectrum_mface1v2_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual ioport_constructor device_input_ports() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; virtual uint8_t iorq_r(offs_t offset) override; virtual void iorq_w(offs_t offset, uint8_t data) override; @@ -89,10 +89,10 @@ class spectrum_mface1v1_device : public spectrum_mface1v2_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; virtual uint8_t mreq_r(offs_t offset) override; virtual void mreq_w(offs_t offset, uint8_t data) override; @@ -107,7 +107,7 @@ class spectrum_mface1v3_device : public spectrum_mface1v2_device spectrum_mface1v3_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; virtual uint8_t iorq_r(offs_t offset) override; virtual void iorq_w(offs_t offset, uint8_t data) override; @@ -122,8 +122,8 @@ class spectrum_mface1_device : public spectrum_mface1v3_device protected: // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual ioport_constructor device_input_ports() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; virtual uint8_t iorq_r(offs_t offset) override; virtual void iorq_w(offs_t offset, uint8_t data) override; @@ -140,8 +140,8 @@ class spectrum_mface128_base_device : public spectrum_mface_base_device spectrum_mface128_base_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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; int m_hidden; }; @@ -155,10 +155,10 @@ class spectrum_mface128v1_device : public spectrum_mface128_base_device spectrum_mface128v1_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; virtual uint8_t iorq_r(offs_t offset) override; virtual void iorq_w(offs_t offset, uint8_t data) override; @@ -173,7 +173,7 @@ class spectrum_mface128_device : public spectrum_mface128v1_device protected: // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; virtual void pre_opcode_fetch(offs_t offset) override; virtual uint8_t iorq_r(offs_t offset) override; @@ -189,12 +189,12 @@ class spectrum_mface3_device : public spectrum_mface128_base_device 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; // 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; virtual uint8_t iorq_r(offs_t offset) override; virtual void iorq_w(offs_t offset, uint8_t data) override; @@ -211,12 +211,12 @@ class spectrum_mprint_device : public spectrum_mface128_base_device 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; // 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; virtual void pre_opcode_fetch(offs_t offset) override; virtual uint8_t iorq_r(offs_t offset) override; diff --git a/src/devices/bus/spectrum/mgt.h b/src/devices/bus/spectrum/mgt.h index b40b18c5711..0e3b2a72a79 100644 --- a/src/devices/bus/spectrum/mgt.h +++ b/src/devices/bus/spectrum/mgt.h @@ -37,13 +37,13 @@ class spectrum_plusd_device: public device_t, public device_spectrum_expansion_i spectrum_plusd_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; - virtual const tiny_rom_entry *device_rom_region() const override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; virtual void pre_opcode_fetch(offs_t offset) override; virtual uint8_t mreq_r(offs_t offset) override; @@ -74,13 +74,13 @@ class spectrum_disciple_device: public spectrum_plusd_device 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; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; - virtual const tiny_rom_entry *device_rom_region() const override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; virtual void pre_opcode_fetch(offs_t offset) override; virtual uint8_t mreq_r(offs_t offset) override; diff --git a/src/devices/bus/spectrum/mikroplus.h b/src/devices/bus/spectrum/mikroplus.h index 2ac3bb08fb1..2800f5a4c09 100644 --- a/src/devices/bus/spectrum/mikroplus.h +++ b/src/devices/bus/spectrum/mikroplus.h @@ -30,11 +30,11 @@ class spectrum_mikroplus_device : protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual ioport_constructor device_input_ports() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; virtual bool romcs() override; virtual uint8_t mreq_r(offs_t offset) override; diff --git a/src/devices/bus/spectrum/mpoker.h b/src/devices/bus/spectrum/mpoker.h index 12e72154d5e..a04d8c57316 100644 --- a/src/devices/bus/spectrum/mpoker.h +++ b/src/devices/bus/spectrum/mpoker.h @@ -27,12 +27,12 @@ class spectrum_mpoker_device : public device_t, public device_spectrum_expansion 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; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual ioport_constructor device_input_ports() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; virtual uint8_t mreq_r(offs_t offset) override; virtual void iorq_w(offs_t offset, uint8_t data) override; diff --git a/src/devices/bus/spectrum/nemoide.cpp b/src/devices/bus/spectrum/nemoide.cpp index dd1797ec374..77985969739 100644 --- a/src/devices/bus/spectrum/nemoide.cpp +++ b/src/devices/bus/spectrum/nemoide.cpp @@ -22,11 +22,11 @@ class nemoide_device : public device_t, public device_zxbus_card_interface { } protected: - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; private: - void map_io(address_map &map); + void map_io(address_map &map) ATTR_COLD; u8 ata_r(offs_t offset); void ata_w(offs_t offset, u8 data); diff --git a/src/devices/bus/spectrum/neogs.cpp b/src/devices/bus/spectrum/neogs.cpp index e9d011a7aef..2c133f48899 100644 --- a/src/devices/bus/spectrum/neogs.cpp +++ b/src/devices/bus/spectrum/neogs.cpp @@ -86,17 +86,17 @@ class neogs_device : public device_t, public device_zxbus_card_interface protected: // device_t implementation - 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; - void neogsmap(address_map &map); + void neogsmap(address_map &map) ATTR_COLD; INTERRUPT_GEN_MEMBER(irq0_line_assert); - void map_memory(address_map &map); - void map_io(address_map &map); + void map_memory(address_map &map) ATTR_COLD; + void map_io(address_map &map) ATTR_COLD; void update_config(); required_device m_maincpu; diff --git a/src/devices/bus/spectrum/opus.h b/src/devices/bus/spectrum/opus.h index 1bdf7ad26fa..d8e2a158481 100644 --- a/src/devices/bus/spectrum/opus.h +++ b/src/devices/bus/spectrum/opus.h @@ -33,13 +33,13 @@ class spectrum_opus_device: 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; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; - virtual const tiny_rom_entry *device_rom_region() const override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; virtual void post_opcode_fetch(offs_t offset) override; virtual uint8_t mreq_r(offs_t offset) override; diff --git a/src/devices/bus/spectrum/plus2test.h b/src/devices/bus/spectrum/plus2test.h index 34a7e014e41..2a4d659f8f3 100644 --- a/src/devices/bus/spectrum/plus2test.h +++ b/src/devices/bus/spectrum/plus2test.h @@ -30,10 +30,10 @@ class spectrum_plus2test_device : protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; virtual bool romcs() override; virtual uint8_t mreq_r(offs_t offset) override; diff --git a/src/devices/bus/spectrum/protek.h b/src/devices/bus/spectrum/protek.h index 9edd5a82f29..7d29ff46302 100644 --- a/src/devices/bus/spectrum/protek.h +++ b/src/devices/bus/spectrum/protek.h @@ -30,10 +30,10 @@ class spectrum_protek_device : protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; virtual uint8_t iorq_r(offs_t offset) override; diff --git a/src/devices/bus/spectrum/sdi.h b/src/devices/bus/spectrum/sdi.h index 539ca55eb6b..71e843d3ebb 100644 --- a/src/devices/bus/spectrum/sdi.h +++ b/src/devices/bus/spectrum/sdi.h @@ -30,12 +30,12 @@ class spectrum_sdi_device : 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; // 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; virtual void pre_opcode_fetch(offs_t offset) override; virtual uint8_t mreq_r(offs_t offset) override; diff --git a/src/devices/bus/spectrum/sixword.h b/src/devices/bus/spectrum/sixword.h index 2c35304a391..368352390e0 100644 --- a/src/devices/bus/spectrum/sixword.h +++ b/src/devices/bus/spectrum/sixword.h @@ -35,14 +35,14 @@ class spectrum_swiftdisc_device : spectrum_swiftdisc_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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; // optional information overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; - 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; virtual void post_opcode_fetch(offs_t offset) override; virtual uint8_t mreq_r(offs_t offset) override; @@ -78,13 +78,13 @@ class spectrum_swiftdisc2_device : 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 ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; - 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; virtual void post_opcode_fetch(offs_t offset) override; virtual uint8_t mreq_r(offs_t offset) override; diff --git a/src/devices/bus/spectrum/smuc.cpp b/src/devices/bus/spectrum/smuc.cpp index ba2aba269f4..b086175aa33 100644 --- a/src/devices/bus/spectrum/smuc.cpp +++ b/src/devices/bus/spectrum/smuc.cpp @@ -26,12 +26,12 @@ class smuc_device : public device_t, public device_zxbus_card_interface { } protected: - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: - void map_io(address_map &map); + void map_io(address_map &map) ATTR_COLD; void port_ffba_w(offs_t offset, u8 data); u8 ata_r(offs_t offset); diff --git a/src/devices/bus/spectrum/speccydos.h b/src/devices/bus/spectrum/speccydos.h index 6c5ade77630..fc6ecd29c97 100644 --- a/src/devices/bus/spectrum/speccydos.h +++ b/src/devices/bus/spectrum/speccydos.h @@ -31,14 +31,14 @@ class spectrum_speccydos_device : 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; // optional information overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; - 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; virtual void pre_opcode_fetch(offs_t offset) override; virtual uint8_t mreq_r(offs_t offset) override; diff --git a/src/devices/bus/spectrum/specdrum.h b/src/devices/bus/spectrum/specdrum.h index 7412a8509c0..43c454e7bf6 100644 --- a/src/devices/bus/spectrum/specdrum.h +++ b/src/devices/bus/spectrum/specdrum.h @@ -32,10 +32,10 @@ class spectrum_specdrum_device : protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual void iorq_w(offs_t offset, uint8_t data) override; diff --git a/src/devices/bus/spectrum/specmate.h b/src/devices/bus/spectrum/specmate.h index 2c0951a119b..5b6ec2773d7 100644 --- a/src/devices/bus/spectrum/specmate.h +++ b/src/devices/bus/spectrum/specmate.h @@ -27,13 +27,13 @@ class spectrum_specmate_device : public device_t, public device_spectrum_expansi 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; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual const tiny_rom_entry *device_rom_region() const override; - virtual ioport_constructor device_input_ports() 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; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; virtual void pre_opcode_fetch(offs_t offset) override; virtual uint8_t mreq_r(offs_t offset) override; diff --git a/src/devices/bus/spectrum/uslot.h b/src/devices/bus/spectrum/uslot.h index 7cda022c3d9..1c99bc52280 100644 --- a/src/devices/bus/spectrum/uslot.h +++ b/src/devices/bus/spectrum/uslot.h @@ -30,11 +30,11 @@ class spectrum_uslot_device : 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; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual void pre_opcode_fetch(offs_t offset) override; virtual void post_opcode_fetch(offs_t offset) override; diff --git a/src/devices/bus/spectrum/usource.h b/src/devices/bus/spectrum/usource.h index b30aadb7eec..4e64e412133 100644 --- a/src/devices/bus/spectrum/usource.h +++ b/src/devices/bus/spectrum/usource.h @@ -32,11 +32,11 @@ class spectrum_usource_device : 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; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; virtual void pre_opcode_fetch(offs_t offset) override; virtual bool romcs() override; diff --git a/src/devices/bus/spectrum/uspeech.h b/src/devices/bus/spectrum/uspeech.h index d1ec459c8d3..0cacd79f13c 100644 --- a/src/devices/bus/spectrum/uspeech.h +++ b/src/devices/bus/spectrum/uspeech.h @@ -33,12 +33,12 @@ class spectrum_uspeech_device : 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; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual void pre_opcode_fetch(offs_t offset) override; virtual bool romcs() override; diff --git a/src/devices/bus/spectrum/vtx5000.cpp b/src/devices/bus/spectrum/vtx5000.cpp index b028f198266..2c2aa36b4eb 100644 --- a/src/devices/bus/spectrum/vtx5000.cpp +++ b/src/devices/bus/spectrum/vtx5000.cpp @@ -28,11 +28,11 @@ class spectrum_vtx5000_device : public device_t, public device_spectrum_expansio } protected: - 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 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; virtual uint8_t mreq_r(offs_t offset) override; virtual uint8_t iorq_r(offs_t offset) override; diff --git a/src/devices/bus/spectrum/wafa.h b/src/devices/bus/spectrum/wafa.h index 39ce95e2a76..e2d90a2b000 100644 --- a/src/devices/bus/spectrum/wafa.h +++ b/src/devices/bus/spectrum/wafa.h @@ -32,12 +32,12 @@ class spectrum_wafa_device: static constexpr feature_type unemulated_features() { return feature::DISK | feature::LAN; } protected: - 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; virtual void pre_opcode_fetch(offs_t offset) override; virtual void post_opcode_fetch(offs_t offset) override; diff --git a/src/devices/bus/spectrum/zxbus.h b/src/devices/bus/spectrum/zxbus.h index 09aeec5abad..ac819ecd6cc 100644 --- a/src/devices/bus/spectrum/zxbus.h +++ b/src/devices/bus/spectrum/zxbus.h @@ -72,7 +72,7 @@ class zxbus_slot_device : public device_t, public device_single_card_slot_interf protected: zxbus_slot_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; required_device m_zxbus_bus; }; @@ -96,7 +96,7 @@ class zxbus_device : public device_t protected: zxbus_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: required_address_space m_iospace; diff --git a/src/devices/bus/ss50/dc5.cpp b/src/devices/bus/ss50/dc5.cpp index 3b077403255..913feaa7a0b 100644 --- a/src/devices/bus/ss50/dc5.cpp +++ b/src/devices/bus/ss50/dc5.cpp @@ -62,10 +62,10 @@ class ss50_dc5_device : public device_t, public ss50_card_interface DECLARE_INPUT_CHANGED_MEMBER(expected_clock_change); protected: - virtual ioport_constructor device_input_ports() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; virtual uint8_t register_read(offs_t offset) override; virtual void register_write(offs_t offset, uint8_t data) override; diff --git a/src/devices/bus/ss50/interface.h b/src/devices/bus/ss50/interface.h index ead1754ba00..efffd46e7f0 100644 --- a/src/devices/bus/ss50/interface.h +++ b/src/devices/bus/ss50/interface.h @@ -56,8 +56,8 @@ class ss50_interface_port_device : public device_t, public device_single_card_sl protected: // device-specific overrides - 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; private: // output callbacks diff --git a/src/devices/bus/ss50/mpc.cpp b/src/devices/bus/ss50/mpc.cpp index 947e2d80144..f18bbff8fe4 100644 --- a/src/devices/bus/ss50/mpc.cpp +++ b/src/devices/bus/ss50/mpc.cpp @@ -37,9 +37,9 @@ class ss50_mpc_device : public device_t, public ss50_card_interface protected: // device-specific overrides - virtual ioport_constructor device_input_ports() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; // interface-specific overrides virtual u8 register_read(offs_t offset) override; diff --git a/src/devices/bus/ss50/mps.cpp b/src/devices/bus/ss50/mps.cpp index 5275c84350d..7ded01bf5f4 100644 --- a/src/devices/bus/ss50/mps.cpp +++ b/src/devices/bus/ss50/mps.cpp @@ -36,9 +36,9 @@ class ss50_mps_device : public device_t, public ss50_card_interface protected: // device-specific overrides - virtual ioport_constructor device_input_ports() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; // interface-specific overrides virtual u8 register_read(offs_t offset) override; diff --git a/src/devices/bus/ss50/mps2.cpp b/src/devices/bus/ss50/mps2.cpp index 9d8b8990ac1..ce49fa911fb 100644 --- a/src/devices/bus/ss50/mps2.cpp +++ b/src/devices/bus/ss50/mps2.cpp @@ -38,8 +38,8 @@ class ss50_mps2_device : public device_t, public ss50_card_interface protected: // device-specific overrides - virtual ioport_constructor device_input_ports() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual void device_start() override { } // interface-specific overrides diff --git a/src/devices/bus/ss50/mpt.cpp b/src/devices/bus/ss50/mpt.cpp index b6763c88961..ce930c4a3f5 100644 --- a/src/devices/bus/ss50/mpt.cpp +++ b/src/devices/bus/ss50/mpt.cpp @@ -27,9 +27,9 @@ class ss50_mpt_device : public device_t, public ss50_card_interface } protected: - virtual ioport_constructor device_input_ports() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; virtual u8 register_read(offs_t offset) override; virtual void register_write(offs_t offset, u8 data) override; diff --git a/src/devices/bus/ss50/piaide.cpp b/src/devices/bus/ss50/piaide.cpp index 9ab93593c38..b669805f18b 100644 --- a/src/devices/bus/ss50/piaide.cpp +++ b/src/devices/bus/ss50/piaide.cpp @@ -59,8 +59,8 @@ class ss50_piaide_device : public device_t, public ss50_card_interface protected: // device-specific overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; // interface-specific overrides virtual uint8_t register_read(offs_t offset) override; diff --git a/src/devices/bus/sunkbd/hlekbd.h b/src/devices/bus/sunkbd/hlekbd.h index 775117eb790..12677678e75 100644 --- a/src/devices/bus/sunkbd/hlekbd.h +++ b/src/devices/bus/sunkbd/hlekbd.h @@ -35,9 +35,9 @@ class hle_device_base uint32_t clock); // device overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; // device_buffered_serial_interface overrides virtual void tra_callback() override; diff --git a/src/devices/bus/sunkbd/sunkbd.h b/src/devices/bus/sunkbd/sunkbd.h index 39d38b093ec..687e92eb5c9 100644 --- a/src/devices/bus/sunkbd/sunkbd.h +++ b/src/devices/bus/sunkbd/sunkbd.h @@ -39,7 +39,7 @@ class sun_keyboard_port_device : public device_t, public device_single_card_slot sun_keyboard_port_device(machine_config const &mconfig, device_type type, char const *tag, device_t *owner, uint32_t clock); virtual void device_config_complete() override; - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; int m_rxd; diff --git a/src/devices/bus/sunmouse/hlemouse.h b/src/devices/bus/sunmouse/hlemouse.h index 342eb04241e..b025dd28d97 100644 --- a/src/devices/bus/sunmouse/hlemouse.h +++ b/src/devices/bus/sunmouse/hlemouse.h @@ -32,9 +32,9 @@ class hle_device_base unsigned multiplier); // device overrides - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; - virtual void device_reset() override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; // device_serial_interface overrides virtual void tra_callback() override; diff --git a/src/devices/bus/sunmouse/sunmouse.h b/src/devices/bus/sunmouse/sunmouse.h index 4c91aac522e..e36e94bd6fb 100644 --- a/src/devices/bus/sunmouse/sunmouse.h +++ b/src/devices/bus/sunmouse/sunmouse.h @@ -39,8 +39,8 @@ class sun_mouse_port_device : public device_t, public device_single_card_slot_in sun_mouse_port_device(machine_config const &mconfig, device_type type, char const *tag, device_t *owner, uint32_t clock); virtual void device_config_complete() override; - 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; int m_rxd; diff --git a/src/devices/bus/supracan/rom.h b/src/devices/bus/supracan/rom.h index a75cb26fa66..2f8abc900df 100644 --- a/src/devices/bus/supracan/rom.h +++ b/src/devices/bus/supracan/rom.h @@ -29,9 +29,9 @@ class superacan_rom_device : public device_t, protected: superacan_rom_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: const u16 *m_rom_base; diff --git a/src/devices/bus/supracan/slot.h b/src/devices/bus/supracan/slot.h index 2c285377807..a9982603add 100644 --- a/src/devices/bus/supracan/slot.h +++ b/src/devices/bus/supracan/slot.h @@ -80,7 +80,7 @@ class superacan_cart_slot_device : public device_t, protected: // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; device_superacan_cart_interface *m_cart; }; diff --git a/src/devices/bus/svi3x8/expander/expander.h b/src/devices/bus/svi3x8/expander/expander.h index 62fc16a337c..393b0fb2761 100644 --- a/src/devices/bus/svi3x8/expander/expander.h +++ b/src/devices/bus/svi3x8/expander/expander.h @@ -99,7 +99,7 @@ class svi_expander_device : protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: device_svi_expander_interface *m_module; diff --git a/src/devices/bus/svi3x8/expander/sv601.h b/src/devices/bus/svi3x8/expander/sv601.h index cd08e785aa6..f18a4ff4509 100644 --- a/src/devices/bus/svi3x8/expander/sv601.h +++ b/src/devices/bus/svi3x8/expander/sv601.h @@ -44,8 +44,8 @@ class sv601_device : public device_t, public device_svi_expander_interface virtual void bk32_w(int state) override; protected: - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; private: required_device m_slotbus; diff --git a/src/devices/bus/svi3x8/expander/sv602.h b/src/devices/bus/svi3x8/expander/sv602.h index d90a0c0ae8e..b1bad9af7a6 100644 --- a/src/devices/bus/svi3x8/expander/sv602.h +++ b/src/devices/bus/svi3x8/expander/sv602.h @@ -39,8 +39,8 @@ class sv602_device : public device_t, public device_svi_expander_interface virtual void bk32_w(int state) override; protected: - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; private: // from slots diff --git a/src/devices/bus/svi3x8/expander/sv603.h b/src/devices/bus/svi3x8/expander/sv603.h index a0bc5297835..46b6e33b154 100644 --- a/src/devices/bus/svi3x8/expander/sv603.h +++ b/src/devices/bus/svi3x8/expander/sv603.h @@ -36,10 +36,10 @@ class sv603_device : public device_t, public device_svi_expander_interface template void joy_irq_w(int state); protected: - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: required_memory_region m_bios; diff --git a/src/devices/bus/svi3x8/slot/slot.h b/src/devices/bus/svi3x8/slot/slot.h index ca69257b99c..9d48c6d3630 100644 --- a/src/devices/bus/svi3x8/slot/slot.h +++ b/src/devices/bus/svi3x8/slot/slot.h @@ -86,7 +86,7 @@ class svi_slot_bus_device : public device_t using card_vector = std::vector >; // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; card_vector m_dev; @@ -121,7 +121,7 @@ class svi_slot_device : public device_t, public device_single_card_slot_interfac protected: // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // configuration required_device m_bus; diff --git a/src/devices/bus/svi3x8/slot/sv801.h b/src/devices/bus/svi3x8/slot/sv801.h index 1369dc27972..59773b0380b 100644 --- a/src/devices/bus/svi3x8/slot/sv801.h +++ b/src/devices/bus/svi3x8/slot/sv801.h @@ -32,9 +32,9 @@ class sv801_device : public device_t, public device_svi_slot_interface virtual void iorq_w(offs_t offset, uint8_t data) override; protected: - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: void motor_w(uint8_t data); diff --git a/src/devices/bus/svi3x8/slot/sv802.h b/src/devices/bus/svi3x8/slot/sv802.h index f70440fc9fd..9345b736305 100644 --- a/src/devices/bus/svi3x8/slot/sv802.h +++ b/src/devices/bus/svi3x8/slot/sv802.h @@ -32,8 +32,8 @@ class sv802_device : public device_t, public device_svi_slot_interface virtual void iorq_w(offs_t offset, uint8_t data) override; protected: - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; private: void busy_w(int state); diff --git a/src/devices/bus/svi3x8/slot/sv803.h b/src/devices/bus/svi3x8/slot/sv803.h index 8cae18acf64..60a8a089812 100644 --- a/src/devices/bus/svi3x8/slot/sv803.h +++ b/src/devices/bus/svi3x8/slot/sv803.h @@ -30,8 +30,8 @@ class sv803_device : public device_t, public device_svi_slot_interface virtual void mreq_w(offs_t offset, uint8_t data) override; protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: std::unique_ptr m_ram; diff --git a/src/devices/bus/svi3x8/slot/sv805.h b/src/devices/bus/svi3x8/slot/sv805.h index 317fa0fe47c..96c27612d54 100644 --- a/src/devices/bus/svi3x8/slot/sv805.h +++ b/src/devices/bus/svi3x8/slot/sv805.h @@ -32,8 +32,8 @@ class sv805_device : public device_t, public device_svi_slot_interface virtual void iorq_w(offs_t offset, uint8_t data) override; protected: - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; private: void uart_intr_w(int state); diff --git a/src/devices/bus/svi3x8/slot/sv806.h b/src/devices/bus/svi3x8/slot/sv806.h index 095e8291acc..216a722ee97 100644 --- a/src/devices/bus/svi3x8/slot/sv806.h +++ b/src/devices/bus/svi3x8/slot/sv806.h @@ -34,9 +34,9 @@ class sv806_device : public device_t, public device_svi_slot_interface virtual void iorq_w(offs_t offset, uint8_t data) override; protected: - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; private: MC6845_UPDATE_ROW(crtc_update_row); diff --git a/src/devices/bus/svi3x8/slot/sv807.h b/src/devices/bus/svi3x8/slot/sv807.h index 8d12befff79..c84a2fd5d2d 100644 --- a/src/devices/bus/svi3x8/slot/sv807.h +++ b/src/devices/bus/svi3x8/slot/sv807.h @@ -27,7 +27,7 @@ class sv807_device : public device_t, public device_svi_slot_interface sv807_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // optional information overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; virtual uint8_t mreq_r(offs_t offset) override; virtual void mreq_w(offs_t offset, uint8_t data) override; @@ -38,8 +38,8 @@ class sv807_device : public device_t, public device_svi_slot_interface virtual void bk32_w(int state) override; protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: required_ioport m_switch; diff --git a/src/devices/bus/tanbus/bullsnd.h b/src/devices/bus/tanbus/bullsnd.h index 1573eab6351..b71813429a4 100644 --- a/src/devices/bus/tanbus/bullsnd.h +++ b/src/devices/bus/tanbus/bullsnd.h @@ -29,10 +29,10 @@ class tanbus_bullsnd_device : protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual uint8_t read(offs_t offset, int inhrom, int inhram, int be) override; virtual void write(offs_t offset, uint8_t data, int inhrom, int inhram, int be) override; diff --git a/src/devices/bus/tanbus/etirtc.h b/src/devices/bus/tanbus/etirtc.h index 7f7c51eeaea..1c4a00a3758 100644 --- a/src/devices/bus/tanbus/etirtc.h +++ b/src/devices/bus/tanbus/etirtc.h @@ -27,10 +27,10 @@ class tanbus_etirtc_device : public device_t, public device_tanbus_interface protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual uint8_t read(offs_t offset, int inhrom, int inhram, int be) override; virtual void write(offs_t offset, uint8_t data, int inhrom, int inhram, int be) override; diff --git a/src/devices/bus/tanbus/etisnd.h b/src/devices/bus/tanbus/etisnd.h index 6bc8bead361..8aa6fa21634 100644 --- a/src/devices/bus/tanbus/etisnd.h +++ b/src/devices/bus/tanbus/etisnd.h @@ -30,10 +30,10 @@ class tanbus_etisnd_device : public device_t, public device_tanbus_interface protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual uint8_t read(offs_t offset, int inhrom, int inhram, int be) override; virtual void write(offs_t offset, uint8_t data, int inhrom, int inhram, int be) override; diff --git a/src/devices/bus/tanbus/keyboard/keyboard.h b/src/devices/bus/tanbus/keyboard/keyboard.h index a9b0c5300b1..4c12e12be8a 100644 --- a/src/devices/bus/tanbus/keyboard/keyboard.h +++ b/src/devices/bus/tanbus/keyboard/keyboard.h @@ -48,7 +48,7 @@ class microtan_kbd_slot_device : public device_t, public device_single_card_slot protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: device_microtan_kbd_interface *m_kbd; diff --git a/src/devices/bus/tanbus/keyboard/mt006.h b/src/devices/bus/tanbus/keyboard/mt006.h index 02315a94149..b3d279e2ba0 100644 --- a/src/devices/bus/tanbus/keyboard/mt006.h +++ b/src/devices/bus/tanbus/keyboard/mt006.h @@ -28,10 +28,10 @@ class microtan_kbd_mt006 : public device_t, public device_microtan_kbd_interface protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; virtual uint8_t read() override; virtual void write(uint8_t data) override; diff --git a/src/devices/bus/tanbus/keyboard/mt009.h b/src/devices/bus/tanbus/keyboard/mt009.h index f9c934f551d..00d3185de07 100644 --- a/src/devices/bus/tanbus/keyboard/mt009.h +++ b/src/devices/bus/tanbus/keyboard/mt009.h @@ -29,12 +29,12 @@ class microtan_kbd_mt009 : public device_t, public device_microtan_kbd_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; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual ioport_constructor device_input_ports() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; virtual uint8_t read() override; diff --git a/src/devices/bus/tanbus/keyboard/spinveti.h b/src/devices/bus/tanbus/keyboard/spinveti.h index 941581a5912..aedb3df73a3 100644 --- a/src/devices/bus/tanbus/keyboard/spinveti.h +++ b/src/devices/bus/tanbus/keyboard/spinveti.h @@ -28,10 +28,10 @@ class microtan_kbd_spinveti : public device_t, public device_microtan_kbd_interf protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; virtual uint8_t read() override; virtual void write(uint8_t data) override; diff --git a/src/devices/bus/tanbus/mpvdu.h b/src/devices/bus/tanbus/mpvdu.h index 37db354574e..5fff82fb7c7 100644 --- a/src/devices/bus/tanbus/mpvdu.h +++ b/src/devices/bus/tanbus/mpvdu.h @@ -33,10 +33,10 @@ class tanbus_mpvdu_device : protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual uint8_t read(offs_t offset, int inhrom, int inhram, int be) override; virtual void write(offs_t offset, uint8_t data, int inhrom, int inhram, int be) override; diff --git a/src/devices/bus/tanbus/ra32k.h b/src/devices/bus/tanbus/ra32k.h index e92e96452fa..f4232519a16 100644 --- a/src/devices/bus/tanbus/ra32k.h +++ b/src/devices/bus/tanbus/ra32k.h @@ -25,7 +25,7 @@ class tanbus_ra32k_device : public device_t, public device_tanbus_interface tanbus_ra32k_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // optional information overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; required_ioport_array<3> m_dsw; required_ioport m_link; @@ -44,7 +44,7 @@ class tanbus_ra32kram_device : public tanbus_ra32k_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual uint8_t read(offs_t offset, int inhrom, int inhram, int be) override; virtual void write(offs_t offset, uint8_t data, int inhrom, int inhram, int be) override; @@ -64,10 +64,10 @@ class tanbus_ra32krom_device : public tanbus_ra32k_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; virtual uint8_t read(offs_t offset, int inhrom, int inhram, int be) override; diff --git a/src/devices/bus/tanbus/radisc.h b/src/devices/bus/tanbus/radisc.h index 86654897c8a..615d4f4fad9 100644 --- a/src/devices/bus/tanbus/radisc.h +++ b/src/devices/bus/tanbus/radisc.h @@ -36,10 +36,10 @@ class tanbus_radisc_device : public device_t, public device_tanbus_interface protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual uint8_t read(offs_t offset, int inhrom, int inhram, int be) override; virtual void write(offs_t offset, uint8_t data, int inhrom, int inhram, int be) override; diff --git a/src/devices/bus/tanbus/ravdu.h b/src/devices/bus/tanbus/ravdu.h index e98fe034d4f..1736178c565 100644 --- a/src/devices/bus/tanbus/ravdu.h +++ b/src/devices/bus/tanbus/ravdu.h @@ -33,11 +33,11 @@ class tanbus_ravdu_device : 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; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual uint8_t read(offs_t offset, int inhrom, int inhram, int be) override; virtual void write(offs_t offset, uint8_t data, int inhrom, int inhram, int be) override; diff --git a/src/devices/bus/tanbus/tanbus.h b/src/devices/bus/tanbus/tanbus.h index 86636e834dd..d8dfe06c95e 100644 --- a/src/devices/bus/tanbus/tanbus.h +++ b/src/devices/bus/tanbus/tanbus.h @@ -48,7 +48,7 @@ class tanbus_slot_device : public device_t, public device_single_card_slot_inter protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: required_device m_tanbus; @@ -92,8 +92,8 @@ class tanbus_device : public device_t 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; private: // internal state diff --git a/src/devices/bus/tanbus/tandos.h b/src/devices/bus/tanbus/tandos.h index 449ea65df72..962fa2f5048 100644 --- a/src/devices/bus/tanbus/tandos.h +++ b/src/devices/bus/tanbus/tandos.h @@ -34,12 +34,12 @@ class tanbus_tandos_device : public device_t, public device_tanbus_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; // 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; virtual uint8_t read(offs_t offset, int inhrom, int inhram, int be) override; virtual void write(offs_t offset, uint8_t data, int inhrom, int inhram, int be) override; diff --git a/src/devices/bus/tanbus/tanex.h b/src/devices/bus/tanbus/tanex.h index 96afff46e2c..a0a6550a927 100644 --- a/src/devices/bus/tanbus/tanex.h +++ b/src/devices/bus/tanbus/tanex.h @@ -36,13 +36,13 @@ class tanbus_tanex_device : 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; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual const tiny_rom_entry *device_rom_region() const override; - virtual ioport_constructor device_input_ports() 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; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; virtual uint8_t read(offs_t offset, int inhrom, int inhram, int be) override; virtual void write(offs_t offset, uint8_t data, int inhrom, int inhram, int be) override; diff --git a/src/devices/bus/tanbus/tanhrg.h b/src/devices/bus/tanbus/tanhrg.h index bce2c68bd78..0db2d8efaec 100644 --- a/src/devices/bus/tanbus/tanhrg.h +++ b/src/devices/bus/tanbus/tanhrg.h @@ -30,11 +30,11 @@ class tanbus_tanhrg_device : protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; virtual uint8_t read(offs_t offset, int inhrom, int inhram, int be) override; virtual void write(offs_t offset, uint8_t data, int inhrom, int inhram, int be) override; @@ -61,11 +61,11 @@ class tanbus_tanhrgc_device : protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; virtual uint8_t read(offs_t offset, int inhrom, int inhram, int be) override; virtual void write(offs_t offset, uint8_t data, int inhrom, int inhram, int be) override; diff --git a/src/devices/bus/tanbus/tanram.h b/src/devices/bus/tanbus/tanram.h index 9cdf7970c77..96e8ff2b320 100644 --- a/src/devices/bus/tanbus/tanram.h +++ b/src/devices/bus/tanbus/tanram.h @@ -28,7 +28,7 @@ class tanbus_tanram_device : protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual uint8_t read(offs_t offset, int inhrom, int inhram, int be) override; virtual void write(offs_t offset, uint8_t data, int inhrom, int inhram, int be) override; diff --git a/src/devices/bus/tanbus/tanrtc.h b/src/devices/bus/tanbus/tanrtc.h index 737abf10528..b6c75ede992 100644 --- a/src/devices/bus/tanbus/tanrtc.h +++ b/src/devices/bus/tanbus/tanrtc.h @@ -27,10 +27,10 @@ class tanbus_tanrtc_device : public device_t, public device_tanbus_interface protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual uint8_t read(offs_t offset, int inhrom, int inhram, int be) override; virtual void write(offs_t offset, uint8_t data, int inhrom, int inhram, int be) override; diff --git a/src/devices/bus/tanbus/tug64k.h b/src/devices/bus/tanbus/tug64k.h index e6163d7a187..1014cf19906 100644 --- a/src/devices/bus/tanbus/tug64k.h +++ b/src/devices/bus/tanbus/tug64k.h @@ -28,10 +28,10 @@ class tanbus_tug64k_device : protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; virtual uint8_t read(offs_t offset, int inhrom, int inhram, int be) override; virtual void write(offs_t offset, uint8_t data, int inhrom, int inhram, int be) override; diff --git a/src/devices/bus/tanbus/tug8082.h b/src/devices/bus/tanbus/tug8082.h index aae8887a6d8..9712cbb1179 100644 --- a/src/devices/bus/tanbus/tug8082.h +++ b/src/devices/bus/tanbus/tug8082.h @@ -35,12 +35,12 @@ class tanbus_tug8082_device : protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() 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 ioport_constructor device_input_ports() 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; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; virtual uint8_t read(offs_t offset, int inhrom, int inhram, int be) override; virtual void write(offs_t offset, uint8_t data, int inhrom, int inhram, int be) override; @@ -59,7 +59,7 @@ class tanbus_tug8082_device : required_device m_palette; required_shared_ptr m_videoram; - void vid8082_map(address_map &map); + void vid8082_map(address_map &map) ATTR_COLD; }; diff --git a/src/devices/bus/tanbus/tugcombo.h b/src/devices/bus/tanbus/tugcombo.h index 66dcfc9e90e..9f0189ef530 100644 --- a/src/devices/bus/tanbus/tugcombo.h +++ b/src/devices/bus/tanbus/tugcombo.h @@ -32,11 +32,11 @@ class tanbus_tugcombo_device tanbus_tugcombo_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; // device_memory_interface overrides virtual space_config_vector memory_space_config() const override; @@ -66,12 +66,12 @@ class tanbus_tugcombo2716_device : public tanbus_tugcombo_device tanbus_tugcombo2716_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: required_device_array m_rom; - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; }; @@ -86,12 +86,12 @@ class tanbus_tugcombo2732_device : public tanbus_tugcombo_device tanbus_tugcombo2732_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: required_device_array m_rom; - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; }; @@ -106,10 +106,10 @@ class tanbus_tugcombo6116_device : public tanbus_tugcombo_device tanbus_tugcombo6116_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; }; diff --git a/src/devices/bus/tanbus/tugpgm.h b/src/devices/bus/tanbus/tugpgm.h index 215f66a397c..c14dadc6421 100644 --- a/src/devices/bus/tanbus/tugpgm.h +++ b/src/devices/bus/tanbus/tugpgm.h @@ -30,10 +30,10 @@ class tanbus_tugpgm_device : protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; virtual uint8_t read(offs_t offset, int inhrom, int inhram, int be) override; virtual void write(offs_t offset, uint8_t data, int inhrom, int inhram, int be) override; diff --git a/src/devices/bus/thomson/cc90_232.h b/src/devices/bus/thomson/cc90_232.h index 910f8a3bacc..3731edfb22f 100644 --- a/src/devices/bus/thomson/cc90_232.h +++ b/src/devices/bus/thomson/cc90_232.h @@ -13,12 +13,12 @@ class cc90_232_device : public device_t, public thomson_extension_interface public: cc90_232_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - virtual void rom_map(address_map &map) override; - virtual void io_map(address_map &map) override; + virtual void rom_map(address_map &map) override ATTR_COLD; + virtual void io_map(address_map &map) override ATTR_COLD; protected: - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; private: // read data register diff --git a/src/devices/bus/thomson/cd90_015.h b/src/devices/bus/thomson/cd90_015.h index 9af21d04a4c..82fc4cba29e 100644 --- a/src/devices/bus/thomson/cd90_015.h +++ b/src/devices/bus/thomson/cd90_015.h @@ -18,14 +18,14 @@ class cd90_015_device : public device_t, public thomson_extension_interface cd90_015_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); virtual ~cd90_015_device() = default; - virtual void rom_map(address_map &map) override; - virtual void io_map(address_map &map) override; + virtual void rom_map(address_map &map) override ATTR_COLD; + virtual void io_map(address_map &map) override ATTR_COLD; protected: - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; TIMER_CALLBACK_MEMBER(motor_tick); diff --git a/src/devices/bus/thomson/cd90_351.h b/src/devices/bus/thomson/cd90_351.h index 6609eddf7a8..6b4b0784f3b 100644 --- a/src/devices/bus/thomson/cd90_351.h +++ b/src/devices/bus/thomson/cd90_351.h @@ -18,14 +18,14 @@ class cd90_351_device : public device_t, public thomson_extension_interface cd90_351_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 16000000); virtual ~cd90_351_device() = default; - virtual void rom_map(address_map &map) override; - virtual void io_map(address_map &map) override; + virtual void rom_map(address_map &map) override ATTR_COLD; + virtual void io_map(address_map &map) override ATTR_COLD; protected: - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; virtual void device_post_load() override; TIMER_CALLBACK_MEMBER(motor_off); diff --git a/src/devices/bus/thomson/cd90_640.h b/src/devices/bus/thomson/cd90_640.h index 184ca9a59e6..b1a7d35fbab 100644 --- a/src/devices/bus/thomson/cd90_640.h +++ b/src/devices/bus/thomson/cd90_640.h @@ -18,14 +18,14 @@ class cd90_640_device : public device_t, public thomson_extension_interface cd90_640_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); virtual ~cd90_640_device() = default; - virtual void rom_map(address_map &map) override; - virtual void io_map(address_map &map) override; + virtual void rom_map(address_map &map) override ATTR_COLD; + virtual void io_map(address_map &map) override ATTR_COLD; protected: - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: required_device m_fdc; diff --git a/src/devices/bus/thomson/cq90_028.h b/src/devices/bus/thomson/cq90_028.h index a31a022405d..8b15366487e 100644 --- a/src/devices/bus/thomson/cq90_028.h +++ b/src/devices/bus/thomson/cq90_028.h @@ -19,14 +19,14 @@ class cq90_028_device : public device_t, public thomson_extension_interface static constexpr feature_type unemulated_features() { return feature::DISK; } - virtual void rom_map(address_map &map) override; - virtual void io_map(address_map &map) override; + virtual void rom_map(address_map &map) override ATTR_COLD; + virtual void io_map(address_map &map) override ATTR_COLD; protected: - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: required_device m_serial; diff --git a/src/devices/bus/thomson/extension.h b/src/devices/bus/thomson/extension.h index d17b5d22536..50aaa4c0204 100644 --- a/src/devices/bus/thomson/extension.h +++ b/src/devices/bus/thomson/extension.h @@ -44,7 +44,7 @@ class thomson_extension_device : public device_t, public device_single_card_slot void io_map(address_space_installer &space, offs_t start, offs_t end); protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; devcb_write_line m_firq_callback; devcb_write_line m_irq_callback; diff --git a/src/devices/bus/thomson/md90_120.h b/src/devices/bus/thomson/md90_120.h index e8d13ff1292..efe068ec2bd 100644 --- a/src/devices/bus/thomson/md90_120.h +++ b/src/devices/bus/thomson/md90_120.h @@ -14,13 +14,13 @@ class md90_120_device : public device_t, public thomson_extension_interface static constexpr feature_type unemulated_features() { return feature::COMMS; } - virtual void rom_map(address_map &map) override; - virtual void io_map(address_map &map) override; + virtual void rom_map(address_map &map) override ATTR_COLD; + virtual void io_map(address_map &map) override ATTR_COLD; protected: - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: void modem_cb(int state); diff --git a/src/devices/bus/thomson/midipak.h b/src/devices/bus/thomson/midipak.h index b6a1135cd3f..d477ee22610 100644 --- a/src/devices/bus/thomson/midipak.h +++ b/src/devices/bus/thomson/midipak.h @@ -11,12 +11,12 @@ class logimus_midipak_device : public device_t, public thomson_extension_interfa public: logimus_midipak_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); - virtual void rom_map(address_map &map) override; - virtual void io_map(address_map &map) override; + virtual void rom_map(address_map &map) override ATTR_COLD; + virtual void io_map(address_map &map) override ATTR_COLD; protected: - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; }; // device type declaration diff --git a/src/devices/bus/thomson/nanoreseau.h b/src/devices/bus/thomson/nanoreseau.h index 1d7cde2ce9a..e2c39635d12 100644 --- a/src/devices/bus/thomson/nanoreseau.h +++ b/src/devices/bus/thomson/nanoreseau.h @@ -17,14 +17,14 @@ class nanoreseau_device : public device_t, public thomson_extension_interface nanoreseau_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, bool no_id = false); virtual ~nanoreseau_device() = default; - virtual void rom_map(address_map &map) override; - virtual void io_map(address_map &map) override; + virtual void rom_map(address_map &map) override ATTR_COLD; + virtual void io_map(address_map &map) override ATTR_COLD; protected: - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; - virtual ioport_constructor device_input_ports() const override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; TIMER_CALLBACK_MEMBER(answer_tick); @@ -48,7 +48,7 @@ class nanoreseau_mo_device : public nanoreseau_device virtual ~nanoreseau_mo_device() = default; protected: - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; }; class nanoreseau_to_device : public nanoreseau_device @@ -58,7 +58,7 @@ class nanoreseau_to_device : public nanoreseau_device virtual ~nanoreseau_to_device() = default; protected: - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; }; DECLARE_DEVICE_TYPE(NANORESEAU_MO, nanoreseau_mo_device) diff --git a/src/devices/bus/thomson/rf57_932.h b/src/devices/bus/thomson/rf57_932.h index 9023403f528..5d552caafd2 100644 --- a/src/devices/bus/thomson/rf57_932.h +++ b/src/devices/bus/thomson/rf57_932.h @@ -11,12 +11,12 @@ class rf57_932_device : public device_t, public thomson_extension_interface public: rf57_932_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); - virtual void rom_map(address_map &map) override; - virtual void io_map(address_map &map) override; + virtual void rom_map(address_map &map) override ATTR_COLD; + virtual void io_map(address_map &map) override ATTR_COLD; protected: - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; }; // device type declaration diff --git a/src/devices/bus/thomson/speech.h b/src/devices/bus/thomson/speech.h index c4e6f227edf..992a536495d 100644 --- a/src/devices/bus/thomson/speech.h +++ b/src/devices/bus/thomson/speech.h @@ -11,12 +11,12 @@ class thomson_speech_device : public device_t, public thomson_extension_interfac public: thomson_speech_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); - virtual void rom_map(address_map &map) override; - virtual void io_map(address_map &map) override; + virtual void rom_map(address_map &map) override ATTR_COLD; + virtual void io_map(address_map &map) override ATTR_COLD; protected: - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; }; // device type declaration diff --git a/src/devices/bus/ti8x/bitsocket.cpp b/src/devices/bus/ti8x/bitsocket.cpp index df14d58292d..94149c0d642 100644 --- a/src/devices/bus/ti8x/bitsocket.cpp +++ b/src/devices/bus/ti8x/bitsocket.cpp @@ -26,8 +26,8 @@ class bit_socket_device bit_socket_device(machine_config const &mconfig, char const *tag, device_t *owner, uint32_t clock); protected: - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; virtual void input_tip(int state) override; virtual void input_ring(int state) override; diff --git a/src/devices/bus/ti8x/graphlinkhle.cpp b/src/devices/bus/ti8x/graphlinkhle.cpp index 6322f2b422d..fd01966d7bd 100644 --- a/src/devices/bus/ti8x/graphlinkhle.cpp +++ b/src/devices/bus/ti8x/graphlinkhle.cpp @@ -22,9 +22,9 @@ class graph_link_hle_device graph_link_hle_device(machine_config const &mconfig, char const *tag, device_t *owner, uint32_t clock); protected: - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; virtual void byte_collision() override; virtual void byte_send_timeout() override; diff --git a/src/devices/bus/ti8x/teeconn.cpp b/src/devices/bus/ti8x/teeconn.cpp index 8a873c4c72d..e58af49bcbd 100644 --- a/src/devices/bus/ti8x/teeconn.cpp +++ b/src/devices/bus/ti8x/teeconn.cpp @@ -16,8 +16,8 @@ class tee_connector_device : public device_t, public device_ti8x_link_port_inter tee_connector_device(machine_config const &mconfig, char const *tag, device_t *owner, uint32_t clock); protected: - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; virtual void input_tip(int state) override; virtual void input_ring(int state) override; diff --git a/src/devices/bus/ti8x/ti8x.h b/src/devices/bus/ti8x/ti8x.h index a757a999ba0..3bf95c0c270 100644 --- a/src/devices/bus/ti8x/ti8x.h +++ b/src/devices/bus/ti8x/ti8x.h @@ -77,7 +77,7 @@ class ti8x_link_port_device : public device_t, public device_single_card_slot_in device_t *owner, u32 clock); - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void device_config_complete() override; devcb_write_line m_tip_handler; diff --git a/src/devices/bus/ti99/colorbus/busmouse.h b/src/devices/bus/ti99/colorbus/busmouse.h index d12e550fa11..c53ed629443 100644 --- a/src/devices/bus/ti99/colorbus/busmouse.h +++ b/src/devices/bus/ti99/colorbus/busmouse.h @@ -27,8 +27,8 @@ class v9938_busmouse_device : public device_t, public device_v9938_colorbus_inte DECLARE_INPUT_CHANGED_MEMBER( mouse_pos_changed ); protected: - void device_start() override; - void device_reset() override; + void device_start() override ATTR_COLD; + void device_reset() override ATTR_COLD; ioport_constructor device_input_ports() const override; private: diff --git a/src/devices/bus/ti99/colorbus/colorbus.h b/src/devices/bus/ti99/colorbus/colorbus.h index edd088b480a..35d593f5605 100644 --- a/src/devices/bus/ti99/colorbus/colorbus.h +++ b/src/devices/bus/ti99/colorbus/colorbus.h @@ -65,7 +65,7 @@ class v9938_colorbus_device : public device_t, public device_single_card_slot_in void buttons(int bstate); protected: - void device_start() override; + void device_start() override ATTR_COLD; private: required_device m_v9938; diff --git a/src/devices/bus/ti99/gromport/cartridges.h b/src/devices/bus/ti99/gromport/cartridges.h index 6402d4cf38c..b25c34accd8 100644 --- a/src/devices/bus/ti99/gromport/cartridges.h +++ b/src/devices/bus/ti99/gromport/cartridges.h @@ -51,7 +51,7 @@ class ti99_cartridge_device : public device_t, public device_cartrom_image_inter protected: virtual void device_start() override { } - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual const tiny_rom_entry* device_rom_region() const override; // Image handling: implementation of methods which are abstract in the parent diff --git a/src/devices/bus/ti99/gromport/gkracker.h b/src/devices/bus/ti99/gromport/gkracker.h index 79efe94544c..0d2f272a43a 100644 --- a/src/devices/bus/ti99/gromport/gkracker.h +++ b/src/devices/bus/ti99/gromport/gkracker.h @@ -32,12 +32,12 @@ class ti99_gkracker_device : public cartridge_connector_device, public device_nv bool is_grom_idle() override; protected: - 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 device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual const tiny_rom_entry* device_rom_region() const override; - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; // device_nvram_interface virtual void nvram_default() override; diff --git a/src/devices/bus/ti99/gromport/gromport.h b/src/devices/bus/ti99/gromport/gromport.h index 10c339e9128..f70dfaddc78 100644 --- a/src/devices/bus/ti99/gromport/gromport.h +++ b/src/devices/bus/ti99/gromport/gromport.h @@ -59,10 +59,10 @@ class gromport_device : public device_t, public device_single_card_slot_interfac gromport_device& extend() { m_mask = 0x3fff; return *this; } protected: - 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 device_config_complete() override; - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; private: cartridge_connector_device* m_connector; diff --git a/src/devices/bus/ti99/gromport/multiconn.h b/src/devices/bus/ti99/gromport/multiconn.h index 1767461b82f..bfa69936bb7 100644 --- a/src/devices/bus/ti99/gromport/multiconn.h +++ b/src/devices/bus/ti99/gromport/multiconn.h @@ -35,10 +35,10 @@ class ti99_multi_cart_conn_device : public cartridge_connector_device bool is_grom_idle() override; protected: - virtual void device_start() override; - virtual void device_reset() override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() 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 ioport_constructor device_input_ports() const override ATTR_COLD; private: static constexpr unsigned NUMBER_OF_CARTRIDGE_SLOTS = 4; diff --git a/src/devices/bus/ti99/gromport/singleconn.h b/src/devices/bus/ti99/gromport/singleconn.h index c368e37683c..44db36d070a 100644 --- a/src/devices/bus/ti99/gromport/singleconn.h +++ b/src/devices/bus/ti99/gromport/singleconn.h @@ -30,7 +30,7 @@ class ti99_single_cart_conn_device : public cartridge_connector_device protected: virtual void device_start() override { }; - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: required_device m_cartridge; diff --git a/src/devices/bus/ti99/internal/992board.h b/src/devices/bus/ti99/internal/992board.h index 41c198a8e5d..ca2aef61768 100644 --- a/src/devices/bus/ti99/internal/992board.h +++ b/src/devices/bus/ti99/internal/992board.h @@ -57,8 +57,8 @@ class video992_device : public device_t, video992_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); int m_beol; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; TIMER_CALLBACK_MEMBER(hold_cpu); TIMER_CALLBACK_MEMBER(free_cpu); @@ -114,8 +114,8 @@ class io992_device : public bus::hexbus::hexbus_chained_device io992_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); bool m_have_banked_rom; - 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; void hexbus_value_changed(uint8_t data) override; @@ -213,7 +213,7 @@ class ti992_expram_device : public ti992_expport_attached_device protected: virtual void device_start() override {} - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: required_device m_ram; diff --git a/src/devices/bus/ti99/internal/998board.h b/src/devices/bus/ti99/internal/998board.h index fea5f18e412..f1a1fa797bb 100644 --- a/src/devices/bus/ti99/internal/998board.h +++ b/src/devices/bus/ti99/internal/998board.h @@ -99,8 +99,8 @@ class vaquerro_device : public device_t { public: vaquerro_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - void device_start() override; - void device_reset() override; + void device_start() override ATTR_COLD; + void device_reset() override ATTR_COLD; line_state ready(); void treset(); @@ -248,8 +248,8 @@ class mofetta_device : public device_t public: mofetta_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - void device_start() override; - void device_reset() override; + void device_start() override ATTR_COLD; + void device_reset() override ATTR_COLD; void cruwrite(offs_t offset, uint8_t data); void set_address(offs_t offset, int state); @@ -334,8 +334,8 @@ class amigo_device : public device_t { public: amigo_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - void device_start() override; - void device_reset() override; + void device_start() override ATTR_COLD; + void device_reset() override ATTR_COLD; uint8_t read(); void write(uint8_t data); @@ -457,7 +457,7 @@ class oso_device : public bus::hexbus::hexbus_chained_device oso_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); uint8_t read(offs_t offset); void write(offs_t offset, uint8_t data); - void device_start() override; + void device_start() override ATTR_COLD; void hexbus_value_changed(uint8_t data) override; void clock_in(int state); @@ -583,9 +583,9 @@ class mainboard8_device : public device_t void pbox_ready(int state); protected: - void device_start() override; - void device_reset() override; - virtual void device_add_mconfig(machine_config &config) override; + void device_start() override ATTR_COLD; + void device_reset() override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: // Holds the state of the A14 line diff --git a/src/devices/bus/ti99/internal/buffram.h b/src/devices/bus/ti99/internal/buffram.h index 646716d665b..488588140e9 100644 --- a/src/devices/bus/ti99/internal/buffram.h +++ b/src/devices/bus/ti99/internal/buffram.h @@ -30,7 +30,7 @@ class buffered_ram_device : public device_t, public device_nvram_interface void set_buffered(bool on) { nvram_enable_backup(on); } private: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // derived class overrides virtual void nvram_default() override; diff --git a/src/devices/bus/ti99/internal/datamux.h b/src/devices/bus/ti99/internal/datamux.h index f83b81dc807..851addb9755 100644 --- a/src/devices/bus/ti99/internal/datamux.h +++ b/src/devices/bus/ti99/internal/datamux.h @@ -58,9 +58,9 @@ class datamux_device : public device_t protected: /* Constructor */ - void device_start() override; + void device_start() override ATTR_COLD; void device_stop() override; - void device_reset() override; + void device_reset() override ATTR_COLD; ioport_constructor device_input_ports() const override; private: diff --git a/src/devices/bus/ti99/internal/evpcconn.h b/src/devices/bus/ti99/internal/evpcconn.h index 09b1b576521..d7eb2b810f8 100644 --- a/src/devices/bus/ti99/internal/evpcconn.h +++ b/src/devices/bus/ti99/internal/evpcconn.h @@ -21,7 +21,7 @@ class evpc_clock_connector : public device_t evpc_clock_connector(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); void vclock_line(int state); - void device_start() override; + void device_start() override ATTR_COLD; auto vdpint_cb() { return m_vdpint.bind(); } private: diff --git a/src/devices/bus/ti99/internal/genboard.h b/src/devices/bus/ti99/internal/genboard.h index 41fa28eb4c1..754887b09b2 100644 --- a/src/devices/bus/ti99/internal/genboard.h +++ b/src/devices/bus/ti99/internal/genboard.h @@ -162,7 +162,7 @@ class geneve_gate_array_device : public device_t } decfunct_t; void device_start() override; - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; // Wait state creation bool m_have_waitstate; @@ -264,7 +264,7 @@ class geneve_pal_device : public device_t auto ready_cb() { return m_ready.bind(); } private: - void device_start() override; + void device_start() override ATTR_COLD; void set_ready(); // Pins @@ -305,7 +305,7 @@ class genmod_decoder_device : public device_t void sndready_in(int state); private: - void device_start() override; + void device_start() override ATTR_COLD; // Emulation-specific: Is the debugger active? bool m_debug; diff --git a/src/devices/bus/ti99/internal/genkbd.h b/src/devices/bus/ti99/internal/genkbd.h index 94786af46fd..9e359f9991c 100644 --- a/src/devices/bus/ti99/internal/genkbd.h +++ b/src/devices/bus/ti99/internal/genkbd.h @@ -30,9 +30,9 @@ class geneve_xt_101_hle_keyboard_device : public device_t, public device_pc_kbd_ protected: // device-level overrides - virtual void device_start() override; - virtual void device_reset() override; - virtual ioport_constructor device_input_ports() const override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; // device_pc_kbd_interface overrides virtual void clock_write(int state) override; diff --git a/src/devices/bus/ti99/internal/ioport.h b/src/devices/bus/ti99/internal/ioport.h index 29ac6fb7fc4..39dcd955492 100644 --- a/src/devices/bus/ti99/internal/ioport.h +++ b/src/devices/bus/ti99/internal/ioport.h @@ -86,7 +86,7 @@ class ioport_device : public device_t, public device_single_card_slot_interface< auto ready_cb() { return m_console_ready.bind(); } protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void device_config_complete() override; // Methods called back from the external device diff --git a/src/devices/bus/ti99/joyport/handset.h b/src/devices/bus/ti99/joyport/handset.h index 344f74bed7a..3c7a0e03ba3 100644 --- a/src/devices/bus/ti99/joyport/handset.h +++ b/src/devices/bus/ti99/joyport/handset.h @@ -34,9 +34,9 @@ class ti99_handset_device : public device_t, public device_ti99_joyport_interfac void pulse_clock() override; protected: - virtual void device_start() override; - virtual void device_reset() override; - virtual ioport_constructor device_input_ports() const override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; TIMER_CALLBACK_MEMBER(delayed_data_ack); @@ -69,13 +69,13 @@ class ti99_twin_joystick_device : public device_t, public device_ti99_joyport_in { public: ti99_twin_joystick_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; uint8_t read_dev() override; void write_dev(uint8_t data) override; protected: - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; private: // Which joystick is selected? diff --git a/src/devices/bus/ti99/joyport/joyport.h b/src/devices/bus/ti99/joyport/joyport.h index b377e6ce7c1..85d2f8acb53 100644 --- a/src/devices/bus/ti99/joyport/joyport.h +++ b/src/devices/bus/ti99/joyport/joyport.h @@ -76,7 +76,7 @@ class joyport_device : public device_t, public device_single_card_slot_interface auto int_cb() { return m_interrupt.bind(); } protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void device_config_complete() override; private: diff --git a/src/devices/bus/ti99/joyport/mecmouse.h b/src/devices/bus/ti99/joyport/mecmouse.h index 0ee23ade546..e6d29e79a07 100644 --- a/src/devices/bus/ti99/joyport/mecmouse.h +++ b/src/devices/bus/ti99/joyport/mecmouse.h @@ -27,9 +27,9 @@ class mecmouse_device : public device_t, public device_ti99_joyport_interface void write_dev(uint8_t data) override; protected: - virtual void device_start() override; - virtual void device_reset() override; - virtual ioport_constructor device_input_ports() const override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; TIMER_CALLBACK_MEMBER(poll_mouse); diff --git a/src/devices/bus/ti99/peb/bwg.h b/src/devices/bus/ti99/peb/bwg.h index 4739c09c175..6b096d8cf50 100644 --- a/src/devices/bus/ti99/peb/bwg.h +++ b/src/devices/bus/ti99/peb/bwg.h @@ -39,12 +39,12 @@ class snug_bwg_device : public device_t, public device_ti99_peribox_card_interfa void cruwrite(offs_t offset, uint8_t data) override; protected: - 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 const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; private: static void floppy_formats(format_registration &fr); diff --git a/src/devices/bus/ti99/peb/cc_fdc.h b/src/devices/bus/ti99/peb/cc_fdc.h index 736b8c0ae14..bf674f2acbd 100644 --- a/src/devices/bus/ti99/peb/cc_fdc.h +++ b/src/devices/bus/ti99/peb/cc_fdc.h @@ -59,11 +59,11 @@ class corcomp_fdc_device : public device_t, public device_ti99_peribox_card_inte protected: corcomp_fdc_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, const char *dpname, const char *cpname); - 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 device_add_mconfig(machine_config &config) override =0; - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; void common_config(machine_config& config); @@ -131,8 +131,8 @@ class corcomp_dcc_device : public corcomp_fdc_device public: corcomp_dcc_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; }; // =========== Decoder PAL circuit ================ @@ -210,8 +210,8 @@ class corcomp_fdca_device : public corcomp_fdc_device public: corcomp_fdca_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: bool ready_trap_active(); }; diff --git a/src/devices/bus/ti99/peb/evpc.h b/src/devices/bus/ti99/peb/evpc.h index f2f14675cf1..83ef67c86c1 100644 --- a/src/devices/bus/ti99/peb/evpc.h +++ b/src/devices/bus/ti99/peb/evpc.h @@ -49,13 +49,13 @@ class snug_enhanced_video_device : public device_t, public device_ti99_peribox_c //int dirty; }; - void device_start() override; - void device_reset() override; + void device_start() override ATTR_COLD; + void device_reset() override ATTR_COLD; void device_stop() override; - virtual const tiny_rom_entry *device_rom_region() const override; - virtual ioport_constructor device_input_ports() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual void nvram_default() override; virtual bool nvram_read(util::read_stream &file) override; diff --git a/src/devices/bus/ti99/peb/forti.h b/src/devices/bus/ti99/peb/forti.h index 6deb68f05ed..991014799e7 100644 --- a/src/devices/bus/ti99/peb/forti.h +++ b/src/devices/bus/ti99/peb/forti.h @@ -34,8 +34,8 @@ class forti_device : public device_t, public device_ti99_peribox_card_interface void ready_sound(int state); private: - void device_start() override; - void device_reset() override; + void device_start() override ATTR_COLD; + void device_reset() override ATTR_COLD; void device_add_mconfig(machine_config &config) override; // TODO: Replace by TMS9919 when available diff --git a/src/devices/bus/ti99/peb/hfdc.h b/src/devices/bus/ti99/peb/hfdc.h index a600412849a..9c7ea88d8ae 100644 --- a/src/devices/bus/ti99/peb/hfdc.h +++ b/src/devices/bus/ti99/peb/hfdc.h @@ -44,12 +44,12 @@ class myarc_hfdc_device : public device_t, public device_ti99_peribox_card_inter virtual void cruwrite(offs_t offset, uint8_t data) override; protected: - 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 const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; TIMER_CALLBACK_MEMBER(motor_off); diff --git a/src/devices/bus/ti99/peb/horizon.h b/src/devices/bus/ti99/peb/horizon.h index dc15c8586bc..7fb99429f5b 100644 --- a/src/devices/bus/ti99/peb/horizon.h +++ b/src/devices/bus/ti99/peb/horizon.h @@ -35,11 +35,11 @@ class horizon_ramdisk_device : public device_t, public device_ti99_peribox_card_ DECLARE_INPUT_CHANGED_MEMBER( hs_changed ); protected: - 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 device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; virtual void nvram_default() override; virtual bool nvram_read(util::read_stream &file) override; diff --git a/src/devices/bus/ti99/peb/hsgpl.h b/src/devices/bus/ti99/peb/hsgpl.h index 6d946b1ac64..e0d58ba42fe 100644 --- a/src/devices/bus/ti99/peb/hsgpl.h +++ b/src/devices/bus/ti99/peb/hsgpl.h @@ -35,12 +35,12 @@ class snug_high_speed_gpl_device : public device_t, public device_ti99_peribox_c void cruwrite(offs_t offset, uint8_t data) override; protected: - virtual void device_start() override; - virtual void device_reset() override; - virtual void device_stop() override; - virtual ioport_constructor device_input_ports() const override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; + virtual void device_stop() override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: required_device m_dsr_eeprom; diff --git a/src/devices/bus/ti99/peb/memex.h b/src/devices/bus/ti99/peb/memex.h index 32c56326d47..4db2e3d2feb 100644 --- a/src/devices/bus/ti99/peb/memex.h +++ b/src/devices/bus/ti99/peb/memex.h @@ -31,10 +31,10 @@ class geneve_memex_device : public device_t, public device_ti99_peribox_card_int void cruwrite(offs_t offset, uint8_t data) override { } protected: - void device_start() override; - void device_reset() override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + void device_start() override ATTR_COLD; + void device_reset() override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; private: bool access_enabled(offs_t offset); diff --git a/src/devices/bus/ti99/peb/myarcfdc.h b/src/devices/bus/ti99/peb/myarcfdc.h index 2e3bd355576..88ee0ce5d39 100644 --- a/src/devices/bus/ti99/peb/myarcfdc.h +++ b/src/devices/bus/ti99/peb/myarcfdc.h @@ -39,12 +39,12 @@ class myarc_fdc_device : public device_t, public device_ti99_peribox_card_interf void cruwrite(offs_t offset, uint8_t data) override; protected: - 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 const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; private: static void floppy_formats(format_registration &fr); diff --git a/src/devices/bus/ti99/peb/myarcmem.h b/src/devices/bus/ti99/peb/myarcmem.h index b641dfafcc3..b7d9c864f65 100644 --- a/src/devices/bus/ti99/peb/myarcmem.h +++ b/src/devices/bus/ti99/peb/myarcmem.h @@ -31,11 +31,11 @@ class myarc_memory_expansion_device : public device_t, public device_ti99_peribo void cruwrite(offs_t offset, uint8_t data) override; protected: - void device_start() override; - void device_reset() override; + void device_start() override ATTR_COLD; + void device_reset() override ATTR_COLD; const tiny_rom_entry *device_rom_region() const override; ioport_constructor device_input_ports() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: int get_base(int offset); diff --git a/src/devices/bus/ti99/peb/pcode.h b/src/devices/bus/ti99/peb/pcode.h index 2092046b071..700508df1a4 100644 --- a/src/devices/bus/ti99/peb/pcode.h +++ b/src/devices/bus/ti99/peb/pcode.h @@ -38,12 +38,12 @@ class ti_pcode_card_device : public device_t, public device_ti99_peribox_card_in DECLARE_INPUT_CHANGED_MEMBER( switch_changed ); protected: - 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 device_config_complete() override; - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; private: void ready_line(int state); diff --git a/src/devices/bus/ti99/peb/peribox.h b/src/devices/bus/ti99/peb/peribox.h index d8e19ff0e66..ef33b9e5945 100644 --- a/src/devices/bus/ti99/peb/peribox.h +++ b/src/devices/bus/ti99/peb/peribox.h @@ -65,10 +65,10 @@ class peribox_device : public bus::ti99::internal::ioport_attached_device protected: peribox_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_start() override ATTR_COLD; virtual void device_config_complete() override; - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; // Next three methods call back the console via slot 1 devcb_write_line m_slot1_inta; // INTA line (Box to console) @@ -125,7 +125,7 @@ class peribox_sg_device : public peribox_device peribox_sg_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 void device_add_mconfig(machine_config &config) override ATTR_COLD; }; /* @@ -137,7 +137,7 @@ class peribox_ev_device : public peribox_device peribox_ev_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 void device_add_mconfig(machine_config &config) override ATTR_COLD; }; @@ -151,7 +151,7 @@ class peribox_gen_device : public peribox_device protected: peribox_gen_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; /* @@ -163,7 +163,7 @@ class peribox_genmod_device : public peribox_gen_device peribox_genmod_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 void device_add_mconfig(machine_config &config) override ATTR_COLD; }; /***************************************************************************** @@ -251,7 +251,7 @@ class peribox_slot_device : public device_t, public device_single_card_slot_inte void set_number(int number) { m_slotnumber = number; } protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void device_config_complete() override; private: diff --git a/src/devices/bus/ti99/peb/pgram.h b/src/devices/bus/ti99/peb/pgram.h index d050c3deac7..27feb1768cc 100644 --- a/src/devices/bus/ti99/peb/pgram.h +++ b/src/devices/bus/ti99/peb/pgram.h @@ -38,8 +38,8 @@ class pgram_device : public device_t, public device_ti99_peribox_card_interface DECLARE_INPUT_CHANGED_MEMBER( sw2_changed ); private: - void device_start() override; - void device_reset() override; + void device_start() override ATTR_COLD; + void device_reset() override ATTR_COLD; void device_add_mconfig(machine_config &config) override; // Settings diff --git a/src/devices/bus/ti99/peb/samsmem.h b/src/devices/bus/ti99/peb/samsmem.h index 6cd900e7361..314664cb7b3 100644 --- a/src/devices/bus/ti99/peb/samsmem.h +++ b/src/devices/bus/ti99/peb/samsmem.h @@ -34,10 +34,10 @@ class sams_memory_expansion_device : public device_t, public device_ti99_peribox void cruwrite(offs_t offset, uint8_t data) override; protected: - void device_start() override; - void device_reset() override; + void device_start() override ATTR_COLD; + void device_reset() override ATTR_COLD; - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: void access_mapper_w(int state); diff --git a/src/devices/bus/ti99/peb/scsicard.h b/src/devices/bus/ti99/peb/scsicard.h index e41bdcc3948..4f100a31ae1 100644 --- a/src/devices/bus/ti99/peb/scsicard.h +++ b/src/devices/bus/ti99/peb/scsicard.h @@ -42,11 +42,11 @@ class whtech_scsi_card_device : public device_t, public device_ti99_peribox_card void debug_write(offs_t offset, uint8_t data); protected: - virtual void device_start() override; - virtual void device_reset() override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const 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 ioport_constructor device_input_ports() const override ATTR_COLD; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; private: // SCSI card on-board SRAM (32K) @@ -117,8 +117,8 @@ class whtscsi_pld_device : public device_t void update_line_states(int address, bool drq, bool irq); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: whtech_scsi_card_device* m_board; diff --git a/src/devices/bus/ti99/peb/sidmaster.h b/src/devices/bus/ti99/peb/sidmaster.h index 63965c9c5d0..765d4a6d3ac 100644 --- a/src/devices/bus/ti99/peb/sidmaster.h +++ b/src/devices/bus/ti99/peb/sidmaster.h @@ -33,8 +33,8 @@ class sidmaster_device : public device_t, public device_ti99_peribox_card_interf void cruwrite(offs_t offset, uint8_t data) override; private: - void device_start() override; - void device_reset() override; + void device_start() override ATTR_COLD; + void device_reset() override ATTR_COLD; void device_add_mconfig(machine_config &config) override; required_device m_sid; diff --git a/src/devices/bus/ti99/peb/spchsyn.h b/src/devices/bus/ti99/peb/spchsyn.h index 7322714883e..ff9c3f237e6 100644 --- a/src/devices/bus/ti99/peb/spchsyn.h +++ b/src/devices/bus/ti99/peb/spchsyn.h @@ -35,9 +35,9 @@ class ti_speech_synthesizer_device : public device_t, public device_ti99_peribox protected: 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 ioport_constructor device_input_ports() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; private: void speech_ready(int state); diff --git a/src/devices/bus/ti99/peb/ti_32kmem.h b/src/devices/bus/ti99/peb/ti_32kmem.h index 275f85fc6a7..fd341e0a8f8 100644 --- a/src/devices/bus/ti99/peb/ti_32kmem.h +++ b/src/devices/bus/ti99/peb/ti_32kmem.h @@ -32,8 +32,8 @@ class ti_32k_expcard_device : public device_t, public device_ti99_peribox_card_i void cruwrite(offs_t offset, uint8_t data) override { } protected: - void device_start() override; - virtual void device_add_mconfig(machine_config &config) override; + void device_start() override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: required_device m_ram; diff --git a/src/devices/bus/ti99/peb/ti_fdc.h b/src/devices/bus/ti99/peb/ti_fdc.h index 3b67295d367..b176dbb8e57 100644 --- a/src/devices/bus/ti99/peb/ti_fdc.h +++ b/src/devices/bus/ti99/peb/ti_fdc.h @@ -38,11 +38,11 @@ class ti_fdc_device : public device_t, public device_ti99_peribox_card_interface // bool dvena_r(); protected: - 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 const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: static void floppy_formats(format_registration &fr); diff --git a/src/devices/bus/ti99/peb/ti_rs232.h b/src/devices/bus/ti99/peb/ti_rs232.h index edd20827765..f985a04973d 100644 --- a/src/devices/bus/ti99/peb/ti_rs232.h +++ b/src/devices/bus/ti99/peb/ti_rs232.h @@ -38,12 +38,12 @@ class ti_rs232_pio_device : public device_t, public device_ti99_peribox_card_int void cruwrite(offs_t offset, uint8_t data) override; protected: - virtual void device_start() override; - virtual void device_reset() override; - virtual void device_stop() override; - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; + virtual void device_stop() 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; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; private: void int0_callback(int state); diff --git a/src/devices/bus/ti99/peb/tipi.h b/src/devices/bus/ti99/peb/tipi.h index cc5e3096225..2e5446cdaeb 100644 --- a/src/devices/bus/ti99/peb/tipi.h +++ b/src/devices/bus/ti99/peb/tipi.h @@ -38,8 +38,8 @@ class tipi_card_device : public device_t, public device_ti99_peribox_card_interf void cruwrite(offs_t offset, uint8_t data) override; private: - void device_start() override; - void device_reset() override; + void device_start() override ATTR_COLD; + void device_reset() override ATTR_COLD; void device_stop() override; ioport_constructor device_input_ports() const override; const tiny_rom_entry *device_rom_region() const override; diff --git a/src/devices/bus/ti99/peb/tn_ide.h b/src/devices/bus/ti99/peb/tn_ide.h index fba16021778..1ac042cde38 100644 --- a/src/devices/bus/ti99/peb/tn_ide.h +++ b/src/devices/bus/ti99/peb/tn_ide.h @@ -37,8 +37,8 @@ class nouspikel_ide_card_device : public device_t, public device_ti99_peribox_ca DECLARE_INPUT_CHANGED_MEMBER( mode_changed ); private: - void device_start() override; - void device_reset() override; + void device_start() override ATTR_COLD; + void device_reset() override ATTR_COLD; void device_add_mconfig(machine_config &config) override; ioport_constructor device_input_ports() const override; diff --git a/src/devices/bus/ti99/peb/tn_usbsm.h b/src/devices/bus/ti99/peb/tn_usbsm.h index 314e9ec5a5a..a2414da480e 100644 --- a/src/devices/bus/ti99/peb/tn_usbsm.h +++ b/src/devices/bus/ti99/peb/tn_usbsm.h @@ -34,10 +34,10 @@ class nouspikel_usb_smartmedia_device : public device_t, public device_ti99_peri void cruwrite(offs_t offset, uint8_t data) override; protected: - virtual void device_start() override; - virtual void device_reset() override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() 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 ioport_constructor device_input_ports() const override ATTR_COLD; private: diff --git a/src/devices/bus/ti99x/990_dk.h b/src/devices/bus/ti99x/990_dk.h index f5079462ccc..8d490fa703e 100644 --- a/src/devices/bus/ti99x/990_dk.h +++ b/src/devices/bus/ti99x/990_dk.h @@ -28,8 +28,8 @@ class fd800_legacy_device : public device_t static constexpr unsigned MAX_FLOPPIES = 4; - void device_start() override; - void device_reset() override; + void device_start() override ATTR_COLD; + void device_reset() override ATTR_COLD; void set_interrupt_line(); int read_id(int unit, int head, int *cylinder_id, int *sector_id); diff --git a/src/devices/bus/ti99x/990_hd.h b/src/devices/bus/ti99x/990_hd.h index d5b9f60b477..596e63c6056 100644 --- a/src/devices/bus/ti99x/990_hd.h +++ b/src/devices/bus/ti99x/990_hd.h @@ -26,8 +26,8 @@ class ti990_hdc_device : public device_t protected: // device-level overrides - 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; int get_id_from_device( device_t *device ); diff --git a/src/devices/bus/ti99x/990_tap.cpp b/src/devices/bus/ti99x/990_tap.cpp index 58f3619c101..2a98a847823 100644 --- a/src/devices/bus/ti99x/990_tap.cpp +++ b/src/devices/bus/ti99x/990_tap.cpp @@ -906,7 +906,7 @@ class ti990_tape_image_device : public magtape_image_device protected: // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: int tape_get_id(); diff --git a/src/devices/bus/ti99x/990_tap.h b/src/devices/bus/ti99x/990_tap.h index 26ee8edbef6..cc7a5076597 100644 --- a/src/devices/bus/ti99x/990_tap.h +++ b/src/devices/bus/ti99x/990_tap.h @@ -31,8 +31,8 @@ class tap_990_device : public device_t protected: // device_t implementation - 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; private: static constexpr unsigned MAX_TAPE_UNIT = 4; diff --git a/src/devices/bus/tiki100/8088.h b/src/devices/bus/tiki100/8088.h index a997389ddf4..d17358c2e13 100644 --- a/src/devices/bus/tiki100/8088.h +++ b/src/devices/bus/tiki100/8088.h @@ -31,10 +31,10 @@ class tiki100_8088_device : public device_t, protected: // device-level overrides - 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; // device_tiki100bus_card_interface overrides virtual uint8_t iorq_r(offs_t offset, uint8_t data) override; @@ -48,8 +48,8 @@ class tiki100_8088_device : public device_t, uint8_t read(); void write(uint8_t data); - void i8088_io(address_map &map); - void i8088_mem(address_map &map); + void i8088_io(address_map &map) ATTR_COLD; + void i8088_mem(address_map &map) ATTR_COLD; }; diff --git a/src/devices/bus/tiki100/exp.h b/src/devices/bus/tiki100/exp.h index 4f49a8cd546..5d21a381c25 100644 --- a/src/devices/bus/tiki100/exp.h +++ b/src/devices/bus/tiki100/exp.h @@ -90,7 +90,7 @@ class tiki100_bus_slot_device : public device_t, protected: // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_z80daisy_interface implementation virtual int z80daisy_irq_state() override { return get_card_device() ? m_card->z80daisy_irq_state() : 0; } @@ -143,7 +143,7 @@ class tiki100_bus_device : public device_t protected: // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: using card_vector = std::vector >; diff --git a/src/devices/bus/tiki100/hdc.h b/src/devices/bus/tiki100/hdc.h index d38927ff004..543039ead6a 100644 --- a/src/devices/bus/tiki100/hdc.h +++ b/src/devices/bus/tiki100/hdc.h @@ -31,9 +31,9 @@ class tiki100_hdc_device : public device_t, public device_tiki100bus_card_interf protected: // device-level overrides - 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; // device_tiki100bus_card_interface overrides virtual uint8_t iorq_r(offs_t offset, uint8_t data) override; diff --git a/src/devices/bus/tim011/aycard.cpp b/src/devices/bus/tim011/aycard.cpp index 9969716fb44..07dc362d46e 100644 --- a/src/devices/bus/tim011/aycard.cpp +++ b/src/devices/bus/tim011/aycard.cpp @@ -37,11 +37,11 @@ class tim011_aycard_device : protected: // 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; // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual ioport_constructor device_input_ports() const override { return INPUT_PORTS_NAME(joystick); } private: diff --git a/src/devices/bus/tim011/exp.h b/src/devices/bus/tim011/exp.h index 06dcf0f3e1a..d2138c9b038 100644 --- a/src/devices/bus/tim011/exp.h +++ b/src/devices/bus/tim011/exp.h @@ -75,7 +75,7 @@ class exp_slot_device : public device_t, public device_single_card_slot_interfac protected: // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: devcb_write_line m_int_handler; diff --git a/src/devices/bus/tmc600/euro.h b/src/devices/bus/tmc600/euro.h index 699de5b8383..afd52a8daa3 100644 --- a/src/devices/bus/tmc600/euro.h +++ b/src/devices/bus/tmc600/euro.h @@ -89,7 +89,7 @@ class tmc600_eurobus_slot_device : public device_t, public device_single_card_sl protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; device_tmc600_eurobus_card_interface *m_card; }; diff --git a/src/devices/bus/tvc/hbf.h b/src/devices/bus/tvc/hbf.h index 463a5209309..c344e2ed9e3 100644 --- a/src/devices/bus/tvc/hbf.h +++ b/src/devices/bus/tvc/hbf.h @@ -26,10 +26,10 @@ class tvc_hbf_device : protected: // device-level overrides - 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; // tvcexp_interface overrides virtual uint8_t id_r() override { return 0x02; } // ID_A to GND, ID_B to VCC diff --git a/src/devices/bus/tvc/tvc.h b/src/devices/bus/tvc/tvc.h index bf184967685..840cb9ef717 100644 --- a/src/devices/bus/tvc/tvc.h +++ b/src/devices/bus/tvc/tvc.h @@ -117,7 +117,7 @@ class tvcexp_slot_device : public device_t, public device_single_card_slot_inter protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; devcb_write_line m_out_irq_cb; devcb_write_line m_out_nmi_cb; diff --git a/src/devices/bus/uts_kbd/400kbd.h b/src/devices/bus/uts_kbd/400kbd.h index 808c52fec5a..37b1ed5f1d3 100644 --- a/src/devices/bus/uts_kbd/400kbd.h +++ b/src/devices/bus/uts_kbd/400kbd.h @@ -16,10 +16,10 @@ class uts_400_keyboard_device : public device_t, public device_uts_keyboard_inte protected: virtual void ready_w(int state) override; - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; - virtual void device_add_mconfig(machine_config &config) override; - virtual const tiny_rom_entry *device_rom_region() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() 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; private: u8 bus_r(); @@ -28,7 +28,7 @@ class uts_400_keyboard_device : public device_t, public device_uts_keyboard_inte int t1_r(); void prog_w(int state); - void ext_map(address_map &map); + void ext_map(address_map &map) ATTR_COLD; required_ioport_array<16> m_keys; output_finder<> m_shift_led; diff --git a/src/devices/bus/uts_kbd/extw.h b/src/devices/bus/uts_kbd/extw.h index 1bde8144781..e3fb4da9273 100644 --- a/src/devices/bus/uts_kbd/extw.h +++ b/src/devices/bus/uts_kbd/extw.h @@ -16,10 +16,10 @@ class uts_extw_keyboard_device : public device_t, public device_uts_keyboard_int protected: virtual void ready_w(int state) override; - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; - virtual void device_add_mconfig(machine_config &config) override; - virtual const tiny_rom_entry *device_rom_region() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() 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; private: u8 p1_r(); @@ -29,8 +29,8 @@ class uts_extw_keyboard_device : public device_t, public device_uts_keyboard_int int t1_r(); void prog_w(int state); - void prog_map(address_map &map); - void ext_map(address_map &map); + void prog_map(address_map &map) ATTR_COLD; + void ext_map(address_map &map) ATTR_COLD; required_ioport_array<16> m_keys; output_finder<> m_shift_led; diff --git a/src/devices/bus/uts_kbd/uts_kbd.h b/src/devices/bus/uts_kbd/uts_kbd.h index 5d34f7f98cb..873de3ee9e7 100644 --- a/src/devices/bus/uts_kbd/uts_kbd.h +++ b/src/devices/bus/uts_kbd/uts_kbd.h @@ -47,7 +47,7 @@ class uts_keyboard_port_device : public device_t, public device_single_card_slot protected: // device_t implementation virtual void device_config_complete() override; - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // called from keyboard void write_rxd(int state) { m_rxd_callback(state); } diff --git a/src/devices/bus/vc4000/slot.h b/src/devices/bus/vc4000/slot.h index 457f266dade..adb0711e497 100644 --- a/src/devices/bus/vc4000/slot.h +++ b/src/devices/bus/vc4000/slot.h @@ -99,7 +99,7 @@ class vc4000_cart_slot_device : public device_t, uint32_t clock); // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; int m_type; device_vc4000_cart_interface *m_cart; diff --git a/src/devices/bus/vcs/compumat.h b/src/devices/bus/vcs/compumat.h index 2d16f24db88..3cfe799a41d 100644 --- a/src/devices/bus/vcs/compumat.h +++ b/src/devices/bus/vcs/compumat.h @@ -20,12 +20,12 @@ class a26_rom_cm_device : public a26_rom_base_device a26_rom_cm_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // device-level overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; virtual void install_memory_handlers(address_space *space) override; protected: - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; memory_bank_creator m_bank; }; diff --git a/src/devices/bus/vcs/dpc.h b/src/devices/bus/vcs/dpc.h index 9bbf4382b95..f76abf945ae 100644 --- a/src/devices/bus/vcs/dpc.h +++ b/src/devices/bus/vcs/dpc.h @@ -26,8 +26,8 @@ class dpc_device : public device_t 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; TIMER_CALLBACK_MEMBER(oscillator_tick); @@ -76,7 +76,7 @@ class a26_rom_dpc_device : public a26_rom_f8_device virtual void setup_addon_ptr(uint8_t *ptr) override; protected: - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual uint8_t get_start_bank() override { return 0; } }; diff --git a/src/devices/bus/vcs/harmony_melody.h b/src/devices/bus/vcs/harmony_melody.h index eb23afcbec3..63ad7a7ab69 100644 --- a/src/devices/bus/vcs/harmony_melody.h +++ b/src/devices/bus/vcs/harmony_melody.h @@ -19,9 +19,9 @@ class a26_rom_harmony_device : public a26_rom_base_device virtual void install_memory_handlers(address_space *space) override; protected: - 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; private: @@ -29,7 +29,7 @@ class a26_rom_harmony_device : public a26_rom_base_device uint8_t read(offs_t offset); void write(offs_t offset, uint8_t data); uint8_t read8_r(offs_t offset); - void harmony_arm7_map(address_map &map); + void harmony_arm7_map(address_map &map) ATTR_COLD; required_device m_cpu; uint8_t m_base_bank; diff --git a/src/devices/bus/vcs/rom.h b/src/devices/bus/vcs/rom.h index 039a0d4ca1d..3bd20c68611 100644 --- a/src/devices/bus/vcs/rom.h +++ b/src/devices/bus/vcs/rom.h @@ -49,7 +49,7 @@ class a26_rom_f6_device : public a26_rom_base_device a26_rom_f6_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); void install_super_chip_handlers(address_space *space); - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; virtual uint8_t get_start_bank() { return 0; } void switch_bank(offs_t offset, uint8_t data); @@ -119,8 +119,8 @@ class a26_rom_fe_device : public a26_rom_base_device virtual void install_memory_handlers(address_space *space) override; protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; void trigger_bank(); void switch_bank(uint8_t data); @@ -140,7 +140,7 @@ class a26_rom_3e_device : public a26_rom_base_device virtual void install_memory_handlers(address_space *space) override; protected: - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; void select_ram_bank(offs_t offset, uint8_t data); void select_rom_bank(offs_t offset, uint8_t data); @@ -162,7 +162,7 @@ class a26_rom_3f_device : public a26_rom_base_device virtual void install_memory_handlers(address_space *space) override; protected: - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; void select_bank(offs_t offset, uint8_t data); memory_bank_creator m_bank; @@ -180,7 +180,7 @@ class a26_rom_e0_device : public a26_rom_base_device virtual void install_memory_handlers(address_space *space) override; protected: - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; template void switch_bank(offs_t offset, uint8_t data); memory_bank_array_creator<3> m_bank; @@ -197,7 +197,7 @@ class a26_rom_e7_device : public a26_rom_base_device virtual void install_memory_handlers(address_space *space) override; protected: - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; void switch_rom_bank(offs_t offset, uint8_t data); void switch_ram_bank(offs_t offset, uint8_t data); @@ -218,7 +218,7 @@ class a26_rom_ua_device : public a26_rom_base_device virtual void install_memory_handlers(address_space *space) override; protected: - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; void change_bank(offs_t offset); memory_bank_creator m_bank; @@ -246,7 +246,7 @@ class a26_rom_dc_device : public a26_rom_base_device virtual void install_memory_handlers(address_space *space) override; protected: - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; uint8_t read_current_bank(offs_t offset); void switch_bank(offs_t offset, uint8_t data); @@ -264,7 +264,7 @@ class a26_rom_fv_device : public a26_rom_base_device virtual void install_memory_handlers(address_space *space) override; protected: - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; void switch_bank(offs_t offset, uint8_t data); memory_bank_creator m_bank; @@ -281,7 +281,7 @@ class a26_rom_jvp_device : public a26_rom_base_device virtual void install_memory_handlers(address_space *space) override; protected: - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; void change_bank(); memory_bank_creator m_bank; @@ -298,8 +298,8 @@ class a26_rom_4in1_device : public a26_rom_base_device virtual void install_memory_handlers(address_space *space) override; protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; memory_bank_creator m_bank; uint8_t m_current_game; @@ -316,8 +316,8 @@ class a26_rom_8in1_device : public a26_rom_base_device virtual void install_memory_handlers(address_space *space) override; protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; void switch_bank(offs_t offset, uint8_t data); memory_bank_creator m_bank; @@ -335,8 +335,8 @@ class a26_rom_32in1_device : public a26_rom_base_device virtual void install_memory_handlers(address_space *space) override; protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; memory_bank_creator m_bank; uint8_t m_current_game; diff --git a/src/devices/bus/vcs/scharger.h b/src/devices/bus/vcs/scharger.h index 25544868ab4..8f4801f4cca 100644 --- a/src/devices/bus/vcs/scharger.h +++ b/src/devices/bus/vcs/scharger.h @@ -27,10 +27,10 @@ class a26_rom_ss_device : public a26_rom_base_device private: static constexpr uint32_t RAM_WRITE_TIME = 5; - 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 device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; void install_tap_handler(); required_device m_cassette; diff --git a/src/devices/bus/vcs/vcs_slot.h b/src/devices/bus/vcs/vcs_slot.h index 3b014f5c352..333784e3637 100644 --- a/src/devices/bus/vcs/vcs_slot.h +++ b/src/devices/bus/vcs/vcs_slot.h @@ -47,7 +47,7 @@ class vcs_cart_slot_device : public device_t, protected: // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: device_vcs_cart_interface *m_cart; diff --git a/src/devices/bus/vcs_ctrl/ctrl.h b/src/devices/bus/vcs_ctrl/ctrl.h index 6e129ba62c9..45a788b7bfe 100644 --- a/src/devices/bus/vcs_ctrl/ctrl.h +++ b/src/devices/bus/vcs_ctrl/ctrl.h @@ -95,7 +95,7 @@ class vcs_control_port_device : public device_t, protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; device_vcs_control_port_interface *m_device; diff --git a/src/devices/bus/vcs_ctrl/cx85.h b/src/devices/bus/vcs_ctrl/cx85.h index 32fca503a9f..6fb0bf0a316 100644 --- a/src/devices/bus/vcs_ctrl/cx85.h +++ b/src/devices/bus/vcs_ctrl/cx85.h @@ -30,11 +30,11 @@ class atari_cx85_device : public device_t, protected: // device-level overrides - 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; // optional information overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; // device_vcs_control_port_interface overrides virtual u8 vcs_joy_r() override; diff --git a/src/devices/bus/vcs_ctrl/joybooster.h b/src/devices/bus/vcs_ctrl/joybooster.h index 23f97fdb7a7..4bb0695b47f 100644 --- a/src/devices/bus/vcs_ctrl/joybooster.h +++ b/src/devices/bus/vcs_ctrl/joybooster.h @@ -39,10 +39,10 @@ class vcs_joystick_booster_device : public device_t, protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; private: required_ioport m_joy; diff --git a/src/devices/bus/vcs_ctrl/joystick.h b/src/devices/bus/vcs_ctrl/joystick.h index 1c8f941a633..af82bf5dd77 100644 --- a/src/devices/bus/vcs_ctrl/joystick.h +++ b/src/devices/bus/vcs_ctrl/joystick.h @@ -33,10 +33,10 @@ class vcs_joystick_device : public device_t, protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; private: required_ioport m_joy; diff --git a/src/devices/bus/vcs_ctrl/keypad.h b/src/devices/bus/vcs_ctrl/keypad.h index 13218b0bf0c..83a1f1a904f 100644 --- a/src/devices/bus/vcs_ctrl/keypad.h +++ b/src/devices/bus/vcs_ctrl/keypad.h @@ -39,10 +39,10 @@ class vcs_keypad_device : public device_t, protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; private: uint8_t read_keys(uint8_t column); diff --git a/src/devices/bus/vcs_ctrl/lightpen.h b/src/devices/bus/vcs_ctrl/lightpen.h index 82c4f06c5aa..bd375b07888 100644 --- a/src/devices/bus/vcs_ctrl/lightpen.h +++ b/src/devices/bus/vcs_ctrl/lightpen.h @@ -35,10 +35,10 @@ class vcs_lightpen_device : public device_t, protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; private: required_ioport m_joy; diff --git a/src/devices/bus/vcs_ctrl/mouse.h b/src/devices/bus/vcs_ctrl/mouse.h index e90f413f8b3..e31000e9180 100644 --- a/src/devices/bus/vcs_ctrl/mouse.h +++ b/src/devices/bus/vcs_ctrl/mouse.h @@ -38,10 +38,10 @@ class vcs_mouse_device : public device_t, protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; private: required_ioport m_joy; diff --git a/src/devices/bus/vcs_ctrl/paddles.h b/src/devices/bus/vcs_ctrl/paddles.h index 941bea3fc5a..6e80b632a58 100644 --- a/src/devices/bus/vcs_ctrl/paddles.h +++ b/src/devices/bus/vcs_ctrl/paddles.h @@ -40,10 +40,10 @@ class vcs_paddles_device : public device_t, protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; private: required_ioport m_joy; diff --git a/src/devices/bus/vcs_ctrl/wheel.h b/src/devices/bus/vcs_ctrl/wheel.h index 8919e2d2888..6981eaa6b63 100644 --- a/src/devices/bus/vcs_ctrl/wheel.h +++ b/src/devices/bus/vcs_ctrl/wheel.h @@ -33,10 +33,10 @@ class vcs_wheel_device : public device_t, protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; private: required_ioport m_joy; diff --git a/src/devices/bus/vectrex/rom.h b/src/devices/bus/vectrex/rom.h index dd83f54042c..eb5eb0fa2ec 100644 --- a/src/devices/bus/vectrex/rom.h +++ b/src/devices/bus/vectrex/rom.h @@ -42,8 +42,8 @@ class vectrex_rom64k_device : public vectrex_rom_device 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; private: int m_bank; diff --git a/src/devices/bus/vectrex/slot.h b/src/devices/bus/vectrex/slot.h index 3be89a8bbd1..5276a1062fa 100644 --- a/src/devices/bus/vectrex/slot.h +++ b/src/devices/bus/vectrex/slot.h @@ -88,7 +88,7 @@ class vectrex_cart_slot_device : public device_t, protected: // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; int m_type, m_vec3d; device_vectrex_cart_interface *m_cart; diff --git a/src/devices/bus/vic10/exp.h b/src/devices/bus/vic10/exp.h index 58b6d555718..fdfb96408d1 100644 --- a/src/devices/bus/vic10/exp.h +++ b/src/devices/bus/vic10/exp.h @@ -83,7 +83,7 @@ class vic10_expansion_slot_device : public device_t, protected: // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_image_interface implementation virtual std::pair call_load() override; diff --git a/src/devices/bus/vic10/multimax.h b/src/devices/bus/vic10/multimax.h index 51175fc7bd8..9e732f9de48 100644 --- a/src/devices/bus/vic10/multimax.h +++ b/src/devices/bus/vic10/multimax.h @@ -29,8 +29,8 @@ class vic10_multimax_device : public device_t, public device_vic10_expansion_car 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; // device_vic10_expansion_card_interface overrides virtual uint8_t vic10_cd_r(offs_t offset, uint8_t data, int lorom, int uprom, int exram) override; diff --git a/src/devices/bus/vic10/std.h b/src/devices/bus/vic10/std.h index 3279a58333c..72e21dc58a0 100644 --- a/src/devices/bus/vic10/std.h +++ b/src/devices/bus/vic10/std.h @@ -30,7 +30,7 @@ class vic10_standard_cartridge_device : public device_t, protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_vic10_expansion_card_interface overrides virtual uint8_t vic10_cd_r(offs_t offset, uint8_t data, int lorom, int uprom, int exram) override; diff --git a/src/devices/bus/vic20/4cga.h b/src/devices/bus/vic20/4cga.h index e6d101f94ca..48c7391dfac 100644 --- a/src/devices/bus/vic20/4cga.h +++ b/src/devices/bus/vic20/4cga.h @@ -30,7 +30,7 @@ class c64_4cga_device : public device_t, c64_4cga_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // optional information overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; void write_joy3_0(int state) { if (state) m_joy3 |= 1; else m_joy3 &= ~1; update_output(); } void write_joy3_1(int state) { if (state) m_joy3 |= 2; else m_joy3 &= ~2; update_output(); } @@ -44,7 +44,7 @@ class c64_4cga_device : public device_t, protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_pet_user_port_interface overrides virtual void input_l(int state) override; diff --git a/src/devices/bus/vic20/exp.h b/src/devices/bus/vic20/exp.h index 6a0fb941737..02ae3e73dde 100644 --- a/src/devices/bus/vic20/exp.h +++ b/src/devices/bus/vic20/exp.h @@ -81,8 +81,8 @@ class vic20_expansion_slot_device : public device_t, protected: // 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; // device_image_interface implementation virtual std::pair call_load() override; diff --git a/src/devices/bus/vic20/fe3.h b/src/devices/bus/vic20/fe3.h index c82fff2f7ee..02871283ddb 100644 --- a/src/devices/bus/vic20/fe3.h +++ b/src/devices/bus/vic20/fe3.h @@ -31,12 +31,12 @@ class vic20_final_expansion_3_device : public device_t, 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; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; // device_vic20_expansion_card_interface overrides virtual uint8_t vic20_cd_r(offs_t offset, uint8_t data, int ram1, int ram2, int ram3, int blk1, int blk2, int blk3, int blk5, int io2, int io3) override; diff --git a/src/devices/bus/vic20/megacart.h b/src/devices/bus/vic20/megacart.h index f812e2b6f63..7e99646fe6a 100644 --- a/src/devices/bus/vic20/megacart.h +++ b/src/devices/bus/vic20/megacart.h @@ -31,9 +31,9 @@ class vic20_megacart_device : public device_t, protected: // device_t implementation - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; // device_nvram_interface implementation virtual void nvram_default() override; diff --git a/src/devices/bus/vic20/speakeasy.h b/src/devices/bus/vic20/speakeasy.h index 6df3880d2df..1fd60ef0732 100644 --- a/src/devices/bus/vic20/speakeasy.h +++ b/src/devices/bus/vic20/speakeasy.h @@ -32,10 +32,10 @@ class vic20_speakeasy_device : public device_t, protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; // device_vic20_expansion_card_interface overrides virtual uint8_t vic20_cd_r(offs_t offset, uint8_t data, int ram1, int ram2, int ram3, int blk1, int blk2, int blk3, int blk5, int io2, int io3) override; diff --git a/src/devices/bus/vic20/std.h b/src/devices/bus/vic20/std.h index 0318f80aa54..cf2b5837a14 100644 --- a/src/devices/bus/vic20/std.h +++ b/src/devices/bus/vic20/std.h @@ -30,7 +30,7 @@ class vic20_standard_cartridge_device : public device_t, protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_vic20_expansion_card_interface overrides virtual uint8_t vic20_cd_r(offs_t offset, uint8_t data, int ram1, int ram2, int ram3, int blk1, int blk2, int blk3, int blk5, int io2, int io3) override; diff --git a/src/devices/bus/vic20/vic1010.h b/src/devices/bus/vic20/vic1010.h index af85f4bfc3c..c7bb7b93b16 100644 --- a/src/devices/bus/vic20/vic1010.h +++ b/src/devices/bus/vic20/vic1010.h @@ -30,11 +30,11 @@ class vic1010_device : public device_t, 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; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; // device_vic20_expansion_card_interface overrides virtual uint8_t vic20_cd_r(offs_t offset, uint8_t data, int ram1, int ram2, int ram3, int blk1, int blk2, int blk3, int blk5, int io2, int io3) override; diff --git a/src/devices/bus/vic20/vic1011.h b/src/devices/bus/vic20/vic1011.h index 63490aaf087..5ba68aab310 100644 --- a/src/devices/bus/vic20/vic1011.h +++ b/src/devices/bus/vic20/vic1011.h @@ -36,10 +36,10 @@ class vic1011_device : public device_t, public device_pet_user_port_interface protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: void output_rxd(int state); diff --git a/src/devices/bus/vic20/vic1110.h b/src/devices/bus/vic20/vic1110.h index 831bc478bf4..07546c913fb 100644 --- a/src/devices/bus/vic20/vic1110.h +++ b/src/devices/bus/vic20/vic1110.h @@ -29,11 +29,11 @@ class vic1110_device : public device_t, vic1110_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // optional information overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_vic20_expansion_card_interface overrides virtual uint8_t vic20_cd_r(offs_t offset, uint8_t data, int ram1, int ram2, int ram3, int blk1, int blk2, int blk3, int blk5, int io2, int io3) override; diff --git a/src/devices/bus/vic20/vic1111.h b/src/devices/bus/vic20/vic1111.h index 7d391875732..a1d47a5e6d7 100644 --- a/src/devices/bus/vic20/vic1111.h +++ b/src/devices/bus/vic20/vic1111.h @@ -30,7 +30,7 @@ class vic1111_device : public device_t, protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_vic20_expansion_card_interface overrides virtual uint8_t vic20_cd_r(offs_t offset, uint8_t data, int ram1, int ram2, int ram3, int blk1, int blk2, int blk3, int blk5, int io2, int io3) override; diff --git a/src/devices/bus/vic20/vic1112.h b/src/devices/bus/vic20/vic1112.h index fc5c144a051..67080793640 100644 --- a/src/devices/bus/vic20/vic1112.h +++ b/src/devices/bus/vic20/vic1112.h @@ -35,11 +35,11 @@ class vic1112_device : public device_t, 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; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; // device_vic20_expansion_card_interface overrides virtual uint8_t vic20_cd_r(offs_t offset, uint8_t data, int ram1, int ram2, int ram3, int blk1, int blk2, int blk3, int blk5, int io2, int io3) override; diff --git a/src/devices/bus/vic20/vic1210.h b/src/devices/bus/vic20/vic1210.h index 9f20f9164ad..82eb40fd651 100644 --- a/src/devices/bus/vic20/vic1210.h +++ b/src/devices/bus/vic20/vic1210.h @@ -31,7 +31,7 @@ class vic1210_device : public device_t, protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_vic20_expansion_card_interface overrides virtual uint8_t vic20_cd_r(offs_t offset, uint8_t data, int ram1, int ram2, int ram3, int blk1, int blk2, int blk3, int blk5, int io2, int io3) override; diff --git a/src/devices/bus/vic20/videopak.h b/src/devices/bus/vic20/videopak.h index d87b04d35c1..8819ef7e7d1 100644 --- a/src/devices/bus/vic20/videopak.h +++ b/src/devices/bus/vic20/videopak.h @@ -34,12 +34,12 @@ class vic20_video_pak_device : public device_t, 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; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; // device_vic20_expansion_card_interface overrides virtual uint8_t vic20_cd_r(offs_t offset, uint8_t data, int ram1, int ram2, int ram3, int blk1, int blk2, int blk3, int blk5, int io2, int io3) override; diff --git a/src/devices/bus/vidbrain/comp_language.h b/src/devices/bus/vidbrain/comp_language.h index 146e2238efa..32ae4e10ce0 100644 --- a/src/devices/bus/vidbrain/comp_language.h +++ b/src/devices/bus/vidbrain/comp_language.h @@ -29,7 +29,7 @@ class videobrain_comp_language_cartridge_device : public device_t, public device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_videobrain_expansion_card_interface overrides virtual uint8_t videobrain_bo_r(offs_t offset, int cs1, int cs2) override; diff --git a/src/devices/bus/vidbrain/exp.h b/src/devices/bus/vidbrain/exp.h index f4c75d1e169..de7737eb8f0 100644 --- a/src/devices/bus/vidbrain/exp.h +++ b/src/devices/bus/vidbrain/exp.h @@ -117,7 +117,7 @@ class videobrain_expansion_slot_device : public device_t, protected: // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_image_interface implementation virtual std::pair call_load() override; diff --git a/src/devices/bus/vip/byteio.h b/src/devices/bus/vip/byteio.h index 7d564f2bf03..851e66e8174 100644 --- a/src/devices/bus/vip/byteio.h +++ b/src/devices/bus/vip/byteio.h @@ -83,8 +83,8 @@ class vip_byteio_port_device : public device_t, public device_single_card_slot_i 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; devcb_write_line m_write_inst; diff --git a/src/devices/bus/vip/exp.h b/src/devices/bus/vip/exp.h index cdd03a768ea..4f1c7cc4264 100644 --- a/src/devices/bus/vip/exp.h +++ b/src/devices/bus/vip/exp.h @@ -89,7 +89,7 @@ class vip_expansion_slot_device : public device_t, public device_single_card_slo protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; devcb_write_line m_write_int; devcb_write_line m_write_dma_out; diff --git a/src/devices/bus/vip/vp550.h b/src/devices/bus/vip/vp550.h index c7f629bbf9d..85575490c7a 100644 --- a/src/devices/bus/vip/vp550.h +++ b/src/devices/bus/vip/vp550.h @@ -31,8 +31,8 @@ class vp550_device : public device_t, protected: // device-level overrides - 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; // device_vip_expansion_card_interface overrides virtual void vip_program_w(offs_t offset, uint8_t data, int cdef, int *minh) override; diff --git a/src/devices/bus/vip/vp570.h b/src/devices/bus/vip/vp570.h index 2f026bd1eac..58575193d6a 100644 --- a/src/devices/bus/vip/vp570.h +++ b/src/devices/bus/vip/vp570.h @@ -29,11 +29,11 @@ class vp570_device : public device_t, vp570_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // optional information overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_vip_expansion_card_interface overrides virtual uint8_t vip_program_r(offs_t offset, int cs, int cdef, int *minh) override; diff --git a/src/devices/bus/vip/vp575.h b/src/devices/bus/vip/vp575.h index 19c1da4c50c..8ab057db789 100644 --- a/src/devices/bus/vip/vp575.h +++ b/src/devices/bus/vip/vp575.h @@ -30,8 +30,8 @@ class vp575_device : public device_t, protected: // device-level overrides - 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; // device_vip_expansion_card_interface overrides virtual uint8_t vip_program_r(offs_t offset, int cs, int cdef, int *minh) override; diff --git a/src/devices/bus/vip/vp585.h b/src/devices/bus/vip/vp585.h index f32bf055e91..bbfd52ae69d 100644 --- a/src/devices/bus/vip/vp585.h +++ b/src/devices/bus/vip/vp585.h @@ -29,11 +29,11 @@ class vp585_device : public device_t, vp585_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // optional information overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_vip_expansion_card_interface overrides virtual void vip_io_w(offs_t offset, uint8_t data) override; diff --git a/src/devices/bus/vip/vp590.h b/src/devices/bus/vip/vp590.h index 54306da55a4..a272d190c42 100644 --- a/src/devices/bus/vip/vp590.h +++ b/src/devices/bus/vip/vp590.h @@ -32,9 +32,9 @@ class vp590_device : public device_t, protected: // device-level overrides - virtual void device_start() override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual void device_start() override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; // device_vip_expansion_card_interface overrides virtual void vip_program_w(offs_t offset, uint8_t data, int cdef, int *minh) override; diff --git a/src/devices/bus/vip/vp595.h b/src/devices/bus/vip/vp595.h index 5c98b33fe7c..7b7d3890816 100644 --- a/src/devices/bus/vip/vp595.h +++ b/src/devices/bus/vip/vp595.h @@ -31,8 +31,8 @@ class vp595_device : public device_t, protected: // device-level overrides - 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; // device_vip_expansion_card_interface overrides virtual void vip_io_w(offs_t offset, uint8_t data) override; diff --git a/src/devices/bus/vip/vp620.h b/src/devices/bus/vip/vp620.h index 3541db5d8e5..10389bd0bba 100644 --- a/src/devices/bus/vip/vp620.h +++ b/src/devices/bus/vip/vp620.h @@ -31,8 +31,8 @@ class vp620_device : public device_t, protected: // device-level overrides - 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; // device_vip_byteio_port_interface overrides virtual uint8_t vip_in_r() override; diff --git a/src/devices/bus/vip/vp700.h b/src/devices/bus/vip/vp700.h index 4927005742e..9bb34a20f74 100644 --- a/src/devices/bus/vip/vp700.h +++ b/src/devices/bus/vip/vp700.h @@ -30,11 +30,11 @@ class vp700_device : public device_t, vp700_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_vip_expansion_card_interface overrides virtual uint8_t vip_program_r(offs_t offset, int cs, int cdef, int *minh) override; diff --git a/src/devices/bus/vme/cp31.h b/src/devices/bus/vme/cp31.h index 774de7c3152..8344b24a166 100644 --- a/src/devices/bus/vme/cp31.h +++ b/src/devices/bus/vme/cp31.h @@ -25,13 +25,13 @@ class vme_cp31_card_device : public device_t, public device_vme_card_interface protected: vme_cp31_card_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 ioport_constructor device_input_ports() 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; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; TIMER_CALLBACK_MEMBER(bus_error_off); @@ -65,8 +65,8 @@ class vme_cp31_card_device : public device_t, public device_vme_card_interface void set_bus_error(uint32_t address, bool write, uint32_t mem_mask); - void cp31_mem(address_map &map); - void cpu_space_map(address_map &map); + void cp31_mem(address_map &map) ATTR_COLD; + void cpu_space_map(address_map &map) ATTR_COLD; }; #endif // MAME_BUS_VME_CP31_H diff --git a/src/devices/bus/vme/enp10.h b/src/devices/bus/vme/enp10.h index c5997c945e4..3bb1e3ad909 100644 --- a/src/devices/bus/vme/enp10.h +++ b/src/devices/bus/vme/enp10.h @@ -18,15 +18,15 @@ class vme_enp10_card_device vme_enp10_card_device(machine_config const &mconfig, char const *tag, device_t *owner, u32 clock); protected: - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; - virtual void device_reset() override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: - void cpu_map(address_map &map); - void vme_map(address_map &map); + void cpu_map(address_map &map) ATTR_COLD; + void vme_map(address_map &map) ATTR_COLD; u8 addr_r(); void irq_w(u8 data); diff --git a/src/devices/bus/vme/hcpu30.h b/src/devices/bus/vme/hcpu30.h index b84cb120048..28697b782fe 100644 --- a/src/devices/bus/vme/hcpu30.h +++ b/src/devices/bus/vme/hcpu30.h @@ -30,13 +30,13 @@ class vme_hcpu30_card_device : public device_t, public device_vme_card_interface protected: vme_hcpu30_card_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 ioport_constructor device_input_ports() 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; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; TIMER_CALLBACK_MEMBER(bus_error_off); @@ -85,10 +85,10 @@ class vme_hcpu30_card_device : public device_t, public device_vme_card_interface void set_bus_error(uint32_t address, bool write, uint32_t mem_mask); void update_030_irq(int irq, line_state state); - void hcpu30_mem(address_map &map); - void hcpu30_os_mem(address_map &map); - void cpu_space_map(address_map &map); - void oscpu_space_map(address_map &map); + void hcpu30_mem(address_map &map) ATTR_COLD; + void hcpu30_os_mem(address_map &map) ATTR_COLD; + void cpu_space_map(address_map &map) ATTR_COLD; + void oscpu_space_map(address_map &map) ATTR_COLD; }; #endif // MAME_BUS_VME_HCPU30_H diff --git a/src/devices/bus/vme/hk68v10.h b/src/devices/bus/vme/hk68v10.h index 4b7703ea880..ae805c054d5 100644 --- a/src/devices/bus/vme/hk68v10.h +++ b/src/devices/bus/vme/hk68v10.h @@ -17,11 +17,11 @@ class vme_hk68v10_card_device vme_hk68v10_card_device(machine_config const &mconfig, char const *tag, device_t *owner, u32 clock); protected: - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; - virtual void device_reset() override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: //uint16_t vme_a24_r(); @@ -29,7 +29,7 @@ class vme_hk68v10_card_device //uint16_t vme_a16_r(); //void vme_a16_w(uint16_t data); - void hk68v10_mem(address_map &map); + void hk68v10_mem(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_sccterm; diff --git a/src/devices/bus/vme/mvme120.h b/src/devices/bus/vme/mvme120.h index 5d221b0b3db..4738dbf8a2a 100644 --- a/src/devices/bus/vme/mvme120.h +++ b/src/devices/bus/vme/mvme120.h @@ -42,17 +42,17 @@ class vme_mvme120_device : public device_t, public device_vme_card_interface protected: void device_add_mconfig(machine_config &config) override; - virtual const tiny_rom_entry *device_rom_region() const override; - virtual ioport_constructor device_input_ports() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; - void mvme12x_base_mem(address_map &map); - void mvme120_mem(address_map &map); - void mvme121_mem(address_map &map); - void mvme122_mem(address_map &map); - void mvme123_mem(address_map &map); + void mvme12x_base_mem(address_map &map) ATTR_COLD; + void mvme120_mem(address_map &map) ATTR_COLD; + void mvme121_mem(address_map &map) ATTR_COLD; + void mvme122_mem(address_map &map) ATTR_COLD; + void mvme123_mem(address_map &map) ATTR_COLD; required_device m_maincpu; @@ -103,7 +103,7 @@ class vme_mvme120_card_device : public vme_mvme120_device { } // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; class vme_mvme121_card_device : public vme_mvme120_device @@ -117,7 +117,7 @@ class vme_mvme121_card_device : public vme_mvme120_device { } // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; @@ -132,7 +132,7 @@ class vme_mvme122_card_device : public vme_mvme120_device { } // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; @@ -147,7 +147,7 @@ class vme_mvme123_card_device : public vme_mvme120_device { } // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; #endif // MAME_BUS_VME_MVME120_H diff --git a/src/devices/bus/vme/mvme147.h b/src/devices/bus/vme/mvme147.h index 5ed9d879fef..0318b95feb7 100644 --- a/src/devices/bus/vme/mvme147.h +++ b/src/devices/bus/vme/mvme147.h @@ -17,11 +17,11 @@ class vme_mvme147_card_device vme_mvme147_card_device(machine_config const &mconfig, char const *tag, device_t *owner, u32 clock); protected: - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; - virtual void device_reset() override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: /* PCC - Peripheral Channel Controller */ @@ -37,7 +37,7 @@ class vme_mvme147_card_device //void vme_a24_w(uint16_t data); //uint16_t vme_a16_r(); //void vme_a16_w(uint16_t data); - void mvme147_mem(address_map &map); + void mvme147_mem(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_sccterm; diff --git a/src/devices/bus/vme/mvme180.h b/src/devices/bus/vme/mvme180.h index 494678de61b..6e035fe18cd 100644 --- a/src/devices/bus/vme/mvme180.h +++ b/src/devices/bus/vme/mvme180.h @@ -23,14 +23,14 @@ class vme_mvme180_card_device protected: // device_t overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; - virtual void device_reset() override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: - void cpu_mem(address_map &map); + void cpu_mem(address_map &map) ATTR_COLD; template void irq_w(int state); void interrupt(); diff --git a/src/devices/bus/vme/mvme181.h b/src/devices/bus/vme/mvme181.h index e558be23e8f..aaa4acf954e 100644 --- a/src/devices/bus/vme/mvme181.h +++ b/src/devices/bus/vme/mvme181.h @@ -22,14 +22,14 @@ class vme_mvme181_card_device vme_mvme181_card_device(machine_config const &mconfig, char const *tag, device_t *owner, u32 clock); protected: - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; - virtual void device_reset() override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: - void cpu_mem(address_map &map); + void cpu_mem(address_map &map) ATTR_COLD; template void irq_w(int state); void interrupt(); diff --git a/src/devices/bus/vme/mvme187.h b/src/devices/bus/vme/mvme187.h index cfac9cfef05..fc2249a3fca 100644 --- a/src/devices/bus/vme/mvme187.h +++ b/src/devices/bus/vme/mvme187.h @@ -25,14 +25,14 @@ class vme_mvme187_card_device vme_mvme187_card_device(machine_config const &mconfig, char const *tag, device_t *owner, u32 clock); protected: - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; - virtual void device_reset() override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: - void cpu_mem(address_map &map); + void cpu_mem(address_map &map) ATTR_COLD; required_device m_cpu; required_device_array m_mmu; diff --git a/src/devices/bus/vme/mvme327a.h b/src/devices/bus/vme/mvme327a.h index 26f115b9cd3..b84b863c770 100644 --- a/src/devices/bus/vme/mvme327a.h +++ b/src/devices/bus/vme/mvme327a.h @@ -23,15 +23,15 @@ class vme_mvme327a_device vme_mvme327a_device(machine_config const &mconfig, char const *tag, device_t *owner, u32 clock); protected: - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; - virtual void device_reset() override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: - void cpu_mem(address_map &map); - void cpu_int(address_map &map); + void cpu_mem(address_map &map) ATTR_COLD; + void cpu_int(address_map &map) ATTR_COLD; required_device m_cpu; required_device m_pit; diff --git a/src/devices/bus/vme/mvme328.h b/src/devices/bus/vme/mvme328.h index 235ebba591f..6b82809fc45 100644 --- a/src/devices/bus/vme/mvme328.h +++ b/src/devices/bus/vme/mvme328.h @@ -19,15 +19,15 @@ class vme_mvme328_device vme_mvme328_device(machine_config const &mconfig, char const *tag, device_t *owner, u32 clock); protected: - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; - virtual void device_reset() override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: - void cpu_mem(address_map &map); - void cpu_int(address_map &map); + void cpu_mem(address_map &map) ATTR_COLD; + void cpu_int(address_map &map) ATTR_COLD; void timer(int param); diff --git a/src/devices/bus/vme/mvme350.h b/src/devices/bus/vme/mvme350.h index 11d767bc9ad..2cd391ef437 100644 --- a/src/devices/bus/vme/mvme350.h +++ b/src/devices/bus/vme/mvme350.h @@ -21,15 +21,15 @@ class vme_mvme350_card_device : public device_t, public device_vme_card_interfac protected: vme_mvme350_card_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; private: - void mvme350_mem(address_map &map); + void mvme350_mem(address_map &map) ATTR_COLD; }; #endif // MAME_BUS_VME_MVME350_H diff --git a/src/devices/bus/vme/mzr8105.h b/src/devices/bus/vme/mzr8105.h index ef16d00703c..086111f30a7 100644 --- a/src/devices/bus/vme/mzr8105.h +++ b/src/devices/bus/vme/mzr8105.h @@ -16,14 +16,14 @@ class vme_mzr8105_card_device vme_mzr8105_card_device(machine_config const &mconfig, char const *tag, device_t *owner, u32 clock); protected: - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; - virtual void device_reset() override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: - void mzr8105_mem(address_map &map); + void mzr8105_mem(address_map &map) ATTR_COLD; required_device m_maincpu; }; diff --git a/src/devices/bus/vme/mzr8300.h b/src/devices/bus/vme/mzr8300.h index 31dc17752aa..e619b9f719b 100644 --- a/src/devices/bus/vme/mzr8300.h +++ b/src/devices/bus/vme/mzr8300.h @@ -22,11 +22,11 @@ class vme_mzr8300_card_device : public device_t, public device_vme_card_interfac protected: vme_mzr8300_card_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 void device_add_mconfig(machine_config &config) override ATTR_COLD; private: required_device_array m_sio; diff --git a/src/devices/bus/vme/smvme2000.h b/src/devices/bus/vme/smvme2000.h index 8f60abc0739..745dd9eb17c 100644 --- a/src/devices/bus/vme/smvme2000.h +++ b/src/devices/bus/vme/smvme2000.h @@ -24,15 +24,15 @@ class vme_smvme2000_card_device protected: // device_t overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; - virtual void device_reset() override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: - void cpu_mem(address_map &map); - void cpu_int(address_map &map); + void cpu_mem(address_map &map) ATTR_COLD; + void cpu_int(address_map &map) ATTR_COLD; required_device m_cpu; //optional_device m_mmu; diff --git a/src/devices/bus/vme/sys68k_cpu1.h b/src/devices/bus/vme/sys68k_cpu1.h index 4f68fac5dbd..4843f29b81f 100644 --- a/src/devices/bus/vme/sys68k_cpu1.h +++ b/src/devices/bus/vme/sys68k_cpu1.h @@ -24,11 +24,11 @@ class vme_sys68k_cpu1_card_device vme_sys68k_cpu1_card_device(machine_config const &mconfig, char const *tag, device_t *owner, u32 clock); protected: - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; - virtual void device_reset() override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: void fccpu1_eprom_sockets(machine_config &config); @@ -61,7 +61,7 @@ class vme_sys68k_cpu1_card_device DECLARE_DEVICE_IMAGE_LOAD_MEMBER(exp1_load) { return force68k_load_cart(image, m_cart); } uint16_t read16_rom(offs_t offset); - void force68k_mem(address_map &map); + void force68k_mem(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_rtc; diff --git a/src/devices/bus/vme/sys68k_cpu20.h b/src/devices/bus/vme/sys68k_cpu20.h index 28106623ea7..25f04980c29 100644 --- a/src/devices/bus/vme/sys68k_cpu20.h +++ b/src/devices/bus/vme/sys68k_cpu20.h @@ -41,12 +41,12 @@ class vme_sys68k_cpu20_card_device_base : public device_t, public device_vme_ca vme_sys68k_cpu20_card_device_base(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, fc_board_t board_id); - 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; TIMER_CALLBACK_MEMBER(grant_bus); @@ -65,8 +65,8 @@ class vme_sys68k_cpu20_card_device_base : public device_t, public device_vme_ca uint8_t pitb_r(); uint8_t pitc_r(); - void cpu20_mem(address_map &map); - void cpu_space_map(address_map &map); + void cpu20_mem(address_map &map) ATTR_COLD; + void cpu_space_map(address_map &map) ATTR_COLD; required_device m_pit; required_device m_bim; @@ -97,7 +97,7 @@ public : { } // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; class vme_sys68k_cpu21s_card_device : public vme_sys68k_cpu20_card_device_base @@ -111,7 +111,7 @@ public : { } // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; class vme_sys68k_cpu21_card_device : public vme_sys68k_cpu20_card_device_base @@ -125,7 +125,7 @@ public : { } // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; class vme_sys68k_cpu21a_card_device : public vme_sys68k_cpu20_card_device_base @@ -139,7 +139,7 @@ public : { } // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; class vme_sys68k_cpu21ya_card_device : public vme_sys68k_cpu20_card_device_base @@ -153,7 +153,7 @@ public : { } // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; class vme_sys68k_cpu21b_card_device : public vme_sys68k_cpu20_card_device_base @@ -167,7 +167,7 @@ public : { } // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; class vme_sys68k_cpu21yb_card_device : public vme_sys68k_cpu20_card_device_base @@ -181,7 +181,7 @@ public : { } // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; diff --git a/src/devices/bus/vme/sys68k_cpu30.h b/src/devices/bus/vme/sys68k_cpu30.h index 28691cbc4e9..711181153d0 100644 --- a/src/devices/bus/vme/sys68k_cpu30.h +++ b/src/devices/bus/vme/sys68k_cpu30.h @@ -22,9 +22,9 @@ class sys68k_cpu30_device_base sys68k_cpu30_device_base(machine_config const &mconfig, device_type type, char const *tag, device_t *owner, u32 clock, uint8_t board_id); protected: - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; - virtual void device_reset() override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; void sys68k_cpu30(machine_config &config, XTAL clock, char const *const ram_default, char const *const ram_options); @@ -35,7 +35,7 @@ class sys68k_cpu30_device_base uint8_t slot1_status_r(); /* Interrupt support */ - void cpu_space_map(address_map &map); + void cpu_space_map(address_map &map) ATTR_COLD; void fga_irq_callback(int state); uint8_t fga_irq_state = 0; // int fga_irq_vector = 0; @@ -59,7 +59,7 @@ class sys68k_cpu30_device_base //uint16_t vme_a16_r(); //void vme_a16_w(uint16_t data); - void cpu30_mem(address_map &map); + void cpu30_mem(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_ram; @@ -88,8 +88,8 @@ class vme_sys68k_cpu30_card_device : public sys68k_cpu30_device_base vme_sys68k_cpu30_card_device(machine_config const &mconfig, char const *tag, device_t *owner, u32 clock); protected: - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; class vme_sys68k_cpu30x_card_device : public sys68k_cpu30_device_base { @@ -97,8 +97,8 @@ class vme_sys68k_cpu30x_card_device : public sys68k_cpu30_device_base vme_sys68k_cpu30x_card_device(machine_config const &mconfig, char const *tag, device_t *owner, u32 clock); protected: - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; class vme_sys68k_cpu30xa_card_device : public sys68k_cpu30_device_base { @@ -106,8 +106,8 @@ class vme_sys68k_cpu30xa_card_device : public sys68k_cpu30_device_base vme_sys68k_cpu30xa_card_device(machine_config const &mconfig, char const *tag, device_t *owner, u32 clock); protected: - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; class vme_sys68k_cpu30za_card_device : public sys68k_cpu30_device_base { @@ -115,8 +115,8 @@ class vme_sys68k_cpu30za_card_device : public sys68k_cpu30_device_base vme_sys68k_cpu30za_card_device(machine_config const &mconfig, char const *tag, device_t *owner, u32 clock); protected: - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; class vme_sys68k_cpu30be_card_device : public sys68k_cpu30_device_base { @@ -124,8 +124,8 @@ class vme_sys68k_cpu30be_card_device : public sys68k_cpu30_device_base vme_sys68k_cpu30be_card_device(machine_config const &mconfig, char const *tag, device_t *owner, u32 clock); protected: - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; class vme_sys68k_cpu30lite_card_device : public sys68k_cpu30_device_base { @@ -133,8 +133,8 @@ class vme_sys68k_cpu30lite_card_device : public sys68k_cpu30_device_base vme_sys68k_cpu30lite_card_device(machine_config const &mconfig, char const *tag, device_t *owner, u32 clock); protected: - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; class vme_sys68k_cpu33_card_device : public sys68k_cpu30_device_base { @@ -142,8 +142,8 @@ class vme_sys68k_cpu33_card_device : public sys68k_cpu30_device_base vme_sys68k_cpu33_card_device(machine_config const &mconfig, char const *tag, device_t *owner, u32 clock); protected: - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; DECLARE_DEVICE_TYPE(VME_SYS68K_CPU30, vme_sys68k_cpu30_card_device) diff --git a/src/devices/bus/vme/sys68k_iscsi.h b/src/devices/bus/vme/sys68k_iscsi.h index 489d8600306..b3d6ff1f20b 100644 --- a/src/devices/bus/vme/sys68k_iscsi.h +++ b/src/devices/bus/vme/sys68k_iscsi.h @@ -21,12 +21,12 @@ class vme_sys68k_iscsi1_card_device : public device_t, public device_vme_card_in protected: vme_sys68k_iscsi1_card_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 update_irq_to_maincpu(); @@ -54,8 +54,8 @@ class vme_sys68k_iscsi1_card_device : public device_t, public device_vme_card_in uint8_t scsi_r(offs_t offset); void scsi_w(offs_t offset, uint8_t data); - void fcscsi1_mem(address_map &map); - void cpu_space_map(address_map &map); + void fcscsi1_mem(address_map &map) ATTR_COLD; + void cpu_space_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_fdc; diff --git a/src/devices/bus/vme/sys68k_isio.h b/src/devices/bus/vme/sys68k_isio.h index d31580c064d..f3d9012397c 100644 --- a/src/devices/bus/vme/sys68k_isio.h +++ b/src/devices/bus/vme/sys68k_isio.h @@ -20,12 +20,12 @@ class vme_sys68k_isio1_card_device : public device_t, public device_vme_card_int protected: vme_sys68k_isio1_card_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; private: uint8_t config_rd(); @@ -34,7 +34,7 @@ class vme_sys68k_isio1_card_device : public device_t, public device_vme_card_int uint8_t not_implemented_r(); void not_implemented_w(uint8_t data); - void fcisio1_mem(address_map &map); + void fcisio1_mem(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_duscc0; diff --git a/src/devices/bus/vme/tp881v.h b/src/devices/bus/vme/tp881v.h index f7e58980b2d..817e65ab3b3 100644 --- a/src/devices/bus/vme/tp881v.h +++ b/src/devices/bus/vme/tp881v.h @@ -27,15 +27,15 @@ class vme_tp881v_card_device vme_tp881v_card_device(machine_config const &mconfig, char const *tag, device_t *owner, u32 clock); protected: - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; - virtual void device_reset() override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: - void cpu_mem(address_map &map); - void net_mem(address_map &map); + void cpu_mem(address_map &map) ATTR_COLD; + void net_mem(address_map &map) ATTR_COLD; required_device m_cpu; required_device_array m_mmu; diff --git a/src/devices/bus/vme/vme.h b/src/devices/bus/vme/vme.h index 298f623112b..657e7b8a967 100644 --- a/src/devices/bus/vme/vme.h +++ b/src/devices/bus/vme/vme.h @@ -94,16 +94,16 @@ class vme_bus_device protected: // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_memory_interface implementation virtual space_config_vector memory_space_config() const override; private: - void iack(address_map &map); - void a16(address_map &map); - void a24(address_map &map); - void a32(address_map &map); + void iack(address_map &map) ATTR_COLD; + void a16(address_map &map) ATTR_COLD; + void a24(address_map &map) ATTR_COLD; + void a32(address_map &map) ATTR_COLD; u32 read_iack(address_space &space, offs_t offset, u32 mem_mask); u32 read_berr(address_space &space, offs_t offset, u32 mem_mask); @@ -149,7 +149,7 @@ class vme_slot_device protected: // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: required_device m_bus; diff --git a/src/devices/bus/vsmile/keyboard.h b/src/devices/bus/vsmile/keyboard.h index 2d01776ee39..b908e611caa 100644 --- a/src/devices/bus/vsmile/keyboard.h +++ b/src/devices/bus/vsmile/keyboard.h @@ -56,8 +56,8 @@ class vsmile_keyboard_device : public vsmile_ctrl_device_base, protected device_ vsmile_keyboard_device(machine_config const &mconfig, device_type type, char const *tag, device_t *owner, uint32_t clock, uint8_t layout_type); // 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; // vsmile_ctrl_device_base implementation virtual void tx_complete() override; @@ -107,7 +107,7 @@ class vsmile_keyboard_us_device : public vsmile_keyboard_device protected: // device_t implementation - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; }; class vsmile_keyboard_fr_device : public vsmile_keyboard_device @@ -118,7 +118,7 @@ class vsmile_keyboard_fr_device : public vsmile_keyboard_device protected: // device_t implementation - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; }; class vsmile_keyboard_ge_device : public vsmile_keyboard_device @@ -129,7 +129,7 @@ class vsmile_keyboard_ge_device : public vsmile_keyboard_device protected: // device_t implementation - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; }; /*************************************************************************** diff --git a/src/devices/bus/vsmile/mat.h b/src/devices/bus/vsmile/mat.h index 253930ff085..fbebf762e57 100644 --- a/src/devices/bus/vsmile/mat.h +++ b/src/devices/bus/vsmile/mat.h @@ -47,7 +47,7 @@ class vsmile_mat_device : public vsmile_pad_device protected: // device_t implementation - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; // vsmile_pad_device implementation virtual void tx_complete() override; diff --git a/src/devices/bus/vsmile/pad.h b/src/devices/bus/vsmile/pad.h index e5e08ce410c..857e41a7920 100644 --- a/src/devices/bus/vsmile/pad.h +++ b/src/devices/bus/vsmile/pad.h @@ -45,8 +45,8 @@ class vsmile_pad_device : public vsmile_ctrl_device_base vsmile_pad_device(machine_config const &mconfig, device_type type, char const *tag, device_t *owner, uint32_t clock = 0U); // device_t implementation - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; // vsmile_ctrl_device_base implementation virtual void tx_complete() override; diff --git a/src/devices/bus/vsmile/rom.h b/src/devices/bus/vsmile/rom.h index b9ac8ef0b07..52f7b420d68 100644 --- a/src/devices/bus/vsmile/rom.h +++ b/src/devices/bus/vsmile/rom.h @@ -28,8 +28,8 @@ class vsmile_rom_device : public device_t, public device_vsmile_cart_interface vsmile_rom_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // device-level overrides - virtual void device_start() override; - virtual void device_resolve_objects() override; + virtual void device_start() override ATTR_COLD; + virtual void device_resolve_objects() override ATTR_COLD; uint32_t m_bank_offset; }; diff --git a/src/devices/bus/vsmile/vsmile_ctrl.h b/src/devices/bus/vsmile/vsmile_ctrl.h index 99369dc6cbf..0a9cdcc37d2 100644 --- a/src/devices/bus/vsmile/vsmile_ctrl.h +++ b/src/devices/bus/vsmile/vsmile_ctrl.h @@ -74,8 +74,8 @@ class vsmile_ctrl_port_device : public device_t, public device_single_card_slot_ protected: // 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; private: device_vsmile_ctrl_interface *m_device; @@ -99,7 +99,7 @@ class vsmile_ctrl_device_base : public device_t, public device_vsmile_ctrl_inter vsmile_ctrl_device_base(machine_config const &mconfig, device_type type, char const *tag, device_t *owner, uint32_t clock); // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // UART simulation helpers bool is_tx_empty() const { return m_tx_fifo_empty; } diff --git a/src/devices/bus/vsmile/vsmile_slot.h b/src/devices/bus/vsmile/vsmile_slot.h index 627fb8ac4ad..d35c2ade4c3 100644 --- a/src/devices/bus/vsmile/vsmile_slot.h +++ b/src/devices/bus/vsmile/vsmile_slot.h @@ -108,7 +108,7 @@ class vsmile_cart_slot_device : public device_t, protected: // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; int m_type; device_vsmile_cart_interface *m_cart; diff --git a/src/devices/bus/vtech/ioexp/ioexp.h b/src/devices/bus/vtech/ioexp/ioexp.h index c851d0e0d48..1df488770cd 100644 --- a/src/devices/bus/vtech/ioexp/ioexp.h +++ b/src/devices/bus/vtech/ioexp/ioexp.h @@ -61,7 +61,7 @@ class vtech_ioexp_slot_device : public device_t, public device_single_card_slot_ protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: required_address_space m_iospace; @@ -97,8 +97,8 @@ class vtech_ioexp_device : public device_t, public device_vtech_ioexp_interface virtual void iorq_w(offs_t offset, uint8_t data) override; protected: - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; virtual void io_map(address_map &map) { } diff --git a/src/devices/bus/vtech/ioexp/joystick.h b/src/devices/bus/vtech/ioexp/joystick.h index 2d59f7d4951..12af4c39d11 100644 --- a/src/devices/bus/vtech/ioexp/joystick.h +++ b/src/devices/bus/vtech/ioexp/joystick.h @@ -32,10 +32,10 @@ class vtech_joystick_interface_device : public vtech_ioexp_device uint8_t joystick_r(offs_t offset); protected: - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; - virtual void io_map(address_map &map) override; + virtual void io_map(address_map &map) override ATTR_COLD; private: required_ioport m_joy0; diff --git a/src/devices/bus/vtech/ioexp/lpen.h b/src/devices/bus/vtech/ioexp/lpen.h index 95759e5fcff..53676e3d0d6 100644 --- a/src/devices/bus/vtech/ioexp/lpen.h +++ b/src/devices/bus/vtech/ioexp/lpen.h @@ -29,9 +29,9 @@ class vtech_lpen_interface_device : public vtech_ioexp_device static constexpr feature_type unemulated_features() { return feature::CONTROLS; } protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; - virtual void io_map(address_map &map) override; + virtual void io_map(address_map &map) override ATTR_COLD; private: uint8_t lpen_r(offs_t offset); diff --git a/src/devices/bus/vtech/ioexp/printer.h b/src/devices/bus/vtech/ioexp/printer.h index c45dfd9c836..c5c772e1f7b 100644 --- a/src/devices/bus/vtech/ioexp/printer.h +++ b/src/devices/bus/vtech/ioexp/printer.h @@ -30,10 +30,10 @@ class vtech_printer_interface_device : public vtech_ioexp_device vtech_printer_interface_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 void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; - virtual void io_map(address_map &map) override; + virtual void io_map(address_map &map) override ATTR_COLD; private: required_device m_centronics; diff --git a/src/devices/bus/vtech/memexp/floppy.h b/src/devices/bus/vtech/memexp/floppy.h index df208c0ef0a..236abc84d72 100644 --- a/src/devices/bus/vtech/memexp/floppy.h +++ b/src/devices/bus/vtech/memexp/floppy.h @@ -31,13 +31,13 @@ class vtech_floppy_controller_device : public vtech_memexp_device vtech_floppy_controller_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 void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; - virtual void mem_map(address_map &map) override; - virtual void io_map(address_map &map) override; + virtual void mem_map(address_map &map) override ATTR_COLD; + virtual void io_map(address_map &map) override ATTR_COLD; private: required_device m_memexp; diff --git a/src/devices/bus/vtech/memexp/memexp.h b/src/devices/bus/vtech/memexp/memexp.h index 6dc44bdba25..6521fd5bdc6 100644 --- a/src/devices/bus/vtech/memexp/memexp.h +++ b/src/devices/bus/vtech/memexp/memexp.h @@ -79,7 +79,7 @@ class vtech_memexp_slot_device : public device_t, public device_single_card_slot protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: required_address_space m_memspace; @@ -123,8 +123,8 @@ class vtech_memexp_device : public device_t, public device_vtech_memexp_interfac virtual void iorq_w(offs_t offset, uint8_t data) override; protected: - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; virtual void mem_map(address_map &map) { } virtual void io_map(address_map &map) { } diff --git a/src/devices/bus/vtech/memexp/memory.h b/src/devices/bus/vtech/memexp/memory.h index 5af19fd27f1..2f467c73fdd 100644 --- a/src/devices/bus/vtech/memexp/memory.h +++ b/src/devices/bus/vtech/memexp/memory.h @@ -27,9 +27,9 @@ class vtech_laser110_16k_device : public vtech_memexp_device vtech_laser110_16k_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; - virtual void mem_map(address_map &map) override; + virtual void mem_map(address_map &map) override ATTR_COLD; }; // ======================> vtech_laser210_16k_device @@ -41,9 +41,9 @@ class vtech_laser210_16k_device : public vtech_memexp_device vtech_laser210_16k_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; - virtual void mem_map(address_map &map) override; + virtual void mem_map(address_map &map) override ATTR_COLD; }; // ======================> vtech_laser310_16k_device @@ -55,9 +55,9 @@ class vtech_laser310_16k_device : public vtech_memexp_device vtech_laser310_16k_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; - virtual void mem_map(address_map &map) override; + virtual void mem_map(address_map &map) override ATTR_COLD; }; // ======================> vtech_laser_64k_device @@ -69,10 +69,10 @@ class vtech_laser_64k_device : public vtech_memexp_device vtech_laser_64k_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; - virtual void mem_map(address_map &map) override; - virtual void io_map(address_map &map) override; + virtual void mem_map(address_map &map) override ATTR_COLD; + virtual void io_map(address_map &map) override ATTR_COLD; private: required_memory_bank m_fixed_bank; diff --git a/src/devices/bus/vtech/memexp/rs232.h b/src/devices/bus/vtech/memexp/rs232.h index 30af4a2eaaf..6640be2d2d5 100644 --- a/src/devices/bus/vtech/memexp/rs232.h +++ b/src/devices/bus/vtech/memexp/rs232.h @@ -28,11 +28,11 @@ class vtech_rs232_interface_device : public vtech_memexp_device vtech_rs232_interface_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 void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; - virtual void mem_map(address_map &map) override; + virtual void mem_map(address_map &map) override ATTR_COLD; private: required_device m_rs232; diff --git a/src/devices/bus/vtech/memexp/rtty.h b/src/devices/bus/vtech/memexp/rtty.h index 62d1f5b94af..6313001ba04 100644 --- a/src/devices/bus/vtech/memexp/rtty.h +++ b/src/devices/bus/vtech/memexp/rtty.h @@ -27,10 +27,10 @@ class vtech_rtty_interface_device : public vtech_memexp_device vtech_rtty_interface_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 void device_start() override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; - virtual void mem_map(address_map &map) override; + virtual void mem_map(address_map &map) override ATTR_COLD; private: uint8_t receive_data_r(); diff --git a/src/devices/bus/vtech/memexp/sdloader.h b/src/devices/bus/vtech/memexp/sdloader.h index fe1fa6ea313..3b004d4b4f0 100644 --- a/src/devices/bus/vtech/memexp/sdloader.h +++ b/src/devices/bus/vtech/memexp/sdloader.h @@ -30,13 +30,13 @@ class vtech_sdloader_device : public vtech_memexp_device static constexpr feature_type unemulated_features() { return feature::DISK; } protected: - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; - virtual void mem_map(address_map &map) override; - virtual void io_map(address_map &map) override; + virtual void mem_map(address_map &map) override ATTR_COLD; + virtual void io_map(address_map &map) override ATTR_COLD; private: required_device m_sdcard; diff --git a/src/devices/bus/vtech/memexp/wordpro.h b/src/devices/bus/vtech/memexp/wordpro.h index 0515a12bb36..11cd0b53917 100644 --- a/src/devices/bus/vtech/memexp/wordpro.h +++ b/src/devices/bus/vtech/memexp/wordpro.h @@ -27,10 +27,10 @@ class vtech_wordpro_device : public vtech_memexp_device vtech_wordpro_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 void device_start() override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; - virtual void mem_map(address_map &map) override; + virtual void mem_map(address_map &map) override ATTR_COLD; }; // device type definition diff --git a/src/devices/bus/wangpc/emb.h b/src/devices/bus/wangpc/emb.h index 1f23fed9f09..de137305f44 100644 --- a/src/devices/bus/wangpc/emb.h +++ b/src/devices/bus/wangpc/emb.h @@ -30,8 +30,8 @@ class wangpc_emb_device : public device_t, 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; // device_wangpcbus_card_interface overrides virtual uint16_t wangpcbus_mrdc_r(offs_t offset, uint16_t mem_mask) override; diff --git a/src/devices/bus/wangpc/lic.h b/src/devices/bus/wangpc/lic.h index 8ead2c65f0a..a93cfe308fb 100644 --- a/src/devices/bus/wangpc/lic.h +++ b/src/devices/bus/wangpc/lic.h @@ -30,10 +30,10 @@ class wangpc_lic_device : public device_t, protected: // device-level overrides - 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; // device_wangpcbus_card_interface overrides virtual uint16_t wangpcbus_mrdc_r(offs_t offset, uint16_t mem_mask) override; diff --git a/src/devices/bus/wangpc/lvc.h b/src/devices/bus/wangpc/lvc.h index 48e271f91ef..9e954497bab 100644 --- a/src/devices/bus/wangpc/lvc.h +++ b/src/devices/bus/wangpc/lvc.h @@ -31,9 +31,9 @@ class wangpc_lvc_device : public device_t, protected: // device-level overrides - 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; // device_wangpcbus_card_interface overrides virtual uint16_t wangpcbus_mrdc_r(offs_t offset, uint16_t mem_mask) override; diff --git a/src/devices/bus/wangpc/mcc.h b/src/devices/bus/wangpc/mcc.h index 9aa0d4adee1..848969f584f 100644 --- a/src/devices/bus/wangpc/mcc.h +++ b/src/devices/bus/wangpc/mcc.h @@ -31,9 +31,9 @@ class wangpc_mcc_device : public device_t, protected: // device-level overrides - 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; // device_wangpcbus_card_interface overrides virtual uint16_t wangpcbus_iorc_r(offs_t offset, uint16_t mem_mask) override; diff --git a/src/devices/bus/wangpc/mvc.h b/src/devices/bus/wangpc/mvc.h index 9e0d6cd5b44..30fa9e38454 100644 --- a/src/devices/bus/wangpc/mvc.h +++ b/src/devices/bus/wangpc/mvc.h @@ -31,9 +31,9 @@ class wangpc_mvc_device : public device_t, protected: // device-level overrides - 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; // device_wangpcbus_card_interface overrides virtual uint16_t wangpcbus_mrdc_r(offs_t offset, uint16_t mem_mask) override; diff --git a/src/devices/bus/wangpc/rtc.h b/src/devices/bus/wangpc/rtc.h index 4366536ccdf..7fc1afb3d7e 100644 --- a/src/devices/bus/wangpc/rtc.h +++ b/src/devices/bus/wangpc/rtc.h @@ -34,11 +34,11 @@ class wangpc_rtc_device : public device_t, protected: // device-level overrides - 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 ioport_constructor device_input_ports() const 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; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; // device_wangpcbus_card_interface overrides virtual uint16_t wangpcbus_mrdc_r(offs_t offset, uint16_t mem_mask) override; @@ -54,8 +54,8 @@ class wangpc_rtc_device : public device_t, required_device m_sio; memory_share_creator m_char_ram; - void wangpc_rtc_io(address_map &map); - void wangpc_rtc_mem(address_map &map); + void wangpc_rtc_io(address_map &map) ATTR_COLD; + void wangpc_rtc_mem(address_map &map) ATTR_COLD; }; diff --git a/src/devices/bus/wangpc/tig.h b/src/devices/bus/wangpc/tig.h index 0e95eb42676..70b1a4e83de 100644 --- a/src/devices/bus/wangpc/tig.h +++ b/src/devices/bus/wangpc/tig.h @@ -32,10 +32,10 @@ class wangpc_tig_device : public device_t, protected: // device-level overrides - 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; // device_wangpcbus_card_interface overrides virtual uint16_t wangpcbus_iorc_r(offs_t offset, uint16_t mem_mask) override; @@ -50,8 +50,8 @@ class wangpc_tig_device : public device_t, UPD7220_DRAW_TEXT_LINE_MEMBER( hgdc_draw_text ); UPD7220_DISPLAY_PIXELS_MEMBER( hgdc_display_pixels ); - void upd7220_0_map(address_map &map); - void upd7220_1_map(address_map &map); + void upd7220_0_map(address_map &map) ATTR_COLD; + void upd7220_1_map(address_map &map) ATTR_COLD; // internal state required_device m_hgdc0; diff --git a/src/devices/bus/wangpc/wangpc.h b/src/devices/bus/wangpc/wangpc.h index 8da788e1398..4c9e4cc69a8 100644 --- a/src/devices/bus/wangpc/wangpc.h +++ b/src/devices/bus/wangpc/wangpc.h @@ -52,7 +52,7 @@ class wangpcbus_slot_device : public device_t, public device_single_card_slot_in protected: // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: // configuration @@ -122,7 +122,7 @@ class wangpcbus_device : public device_t protected: // devicedevice_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: using card_vector = std::vector >; diff --git a/src/devices/bus/wangpc/wdc.h b/src/devices/bus/wangpc/wdc.h index cb09025e13e..e654cc444b1 100644 --- a/src/devices/bus/wangpc/wdc.h +++ b/src/devices/bus/wangpc/wdc.h @@ -33,10 +33,10 @@ class wangpc_wdc_device : public device_t, protected: // device-level overrides - 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; // device_wangpcbus_card_interface overrides virtual uint16_t wangpcbus_mrdc_r(offs_t offset, uint16_t mem_mask) override; @@ -61,8 +61,8 @@ class wangpc_wdc_device : public device_t, uint8_t ctc_ch3_r(); void ctc_ch3_w(uint8_t data); - void wangpc_wdc_io(address_map &map); - void wangpc_wdc_mem(address_map &map); + void wangpc_wdc_io(address_map &map) ATTR_COLD; + void wangpc_wdc_mem(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_ctc; diff --git a/src/devices/bus/waveblaster/db50xg.cpp b/src/devices/bus/waveblaster/db50xg.cpp index 76cf8a47330..6d3c0f067d5 100644 --- a/src/devices/bus/waveblaster/db50xg.cpp +++ b/src/devices/bus/waveblaster/db50xg.cpp @@ -28,16 +28,16 @@ class db50xg_device : public device_t, public device_waveblaster_interface virtual void midi_rx(int state) override; protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: required_device m_cpu; required_device m_swp00; - void map(address_map &map); + void map(address_map &map) ATTR_COLD; }; db50xg_device::db50xg_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) : diff --git a/src/devices/bus/waveblaster/db60xg.cpp b/src/devices/bus/waveblaster/db60xg.cpp index 8ccd724e320..4f8ede66612 100644 --- a/src/devices/bus/waveblaster/db60xg.cpp +++ b/src/devices/bus/waveblaster/db60xg.cpp @@ -26,16 +26,16 @@ class db60xg_device : public device_t, public device_waveblaster_interface virtual void midi_rx(int state) override; protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: required_device m_cpu; required_device m_swp00; - void map(address_map &map); + void map(address_map &map) ATTR_COLD; }; db60xg_device::db60xg_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) : diff --git a/src/devices/bus/waveblaster/omniwave.cpp b/src/devices/bus/waveblaster/omniwave.cpp index 913c85a6d38..54d5731029f 100644 --- a/src/devices/bus/waveblaster/omniwave.cpp +++ b/src/devices/bus/waveblaster/omniwave.cpp @@ -20,9 +20,9 @@ class omniwave_device : public device_t, public device_waveblaster_interface virtual void midi_rx(int state) override; protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: required_device m_ks0164; diff --git a/src/devices/bus/waveblaster/waveblaster.h b/src/devices/bus/waveblaster/waveblaster.h index 342dfce9bcc..4276d8d31cc 100644 --- a/src/devices/bus/waveblaster/waveblaster.h +++ b/src/devices/bus/waveblaster/waveblaster.h @@ -34,7 +34,7 @@ class waveblaster_connector: public device_t, public device_single_card_slot_int bool m_state_system_is_annoying = true; devcb_write_line m_midi_tx; - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; }; class device_waveblaster_interface: public device_interface diff --git a/src/devices/bus/waveblaster/wg130.cpp b/src/devices/bus/waveblaster/wg130.cpp index 385a39581f3..32aeae3c8a3 100644 --- a/src/devices/bus/waveblaster/wg130.cpp +++ b/src/devices/bus/waveblaster/wg130.cpp @@ -22,15 +22,15 @@ class wg130_device : public device_t, public device_waveblaster_interface virtual void midi_rx(int state) override; protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; const tiny_rom_entry *device_rom_region() const override; - virtual ioport_constructor device_input_ports() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: required_device m_gt913; - void map(address_map &map); + void map(address_map &map) ATTR_COLD; }; INPUT_PORTS_START(wg130) diff --git a/src/devices/bus/wswan/rom.h b/src/devices/bus/wswan/rom.h index 9a47ebf8023..a4ab1082503 100644 --- a/src/devices/bus/wswan/rom.h +++ b/src/devices/bus/wswan/rom.h @@ -26,8 +26,8 @@ class ws_rom_device : public device_t, ws_rom_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); // 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; TIMER_CALLBACK_MEMBER(rtc_tick); @@ -67,8 +67,8 @@ class ws_rom_sram_device : public ws_rom_device ws_rom_sram_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); // 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; private: u32 m_nvram_base; @@ -89,8 +89,8 @@ class ws_rom_eeprom_device : public ws_rom_device 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; private: u8 m_eeprom_mode; /* eeprom mode */ @@ -113,8 +113,8 @@ class ws_wwitch_device : public ws_rom_sram_device 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; private: enum { diff --git a/src/devices/bus/wswan/slot.h b/src/devices/bus/wswan/slot.h index 6c84f093450..308fedf97a3 100644 --- a/src/devices/bus/wswan/slot.h +++ b/src/devices/bus/wswan/slot.h @@ -173,7 +173,7 @@ class ws_cart_slot_device : public device_t, protected: // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; int m_type; device_ws_cart_interface *m_cart; diff --git a/src/devices/bus/wysekbd/wysegakb.h b/src/devices/bus/wysekbd/wysegakb.h index 1bef4102a5b..d4c581a0cdb 100644 --- a/src/devices/bus/wysekbd/wysegakb.h +++ b/src/devices/bus/wysekbd/wysegakb.h @@ -27,7 +27,7 @@ class wyse_gate_array_keyboard_device : public device_t, public wyse_keyboard_in wyse_gate_array_keyboard_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // wyse_keyboard_interface overrides virtual bool wysekbd_read_data() override; @@ -55,7 +55,7 @@ class wy85_keyboard_device : public wyse_gate_array_keyboard_device wy85_keyboard_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock = 0U); protected: - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; virtual u8 wysekbd_get_id() override; }; @@ -68,7 +68,7 @@ class wy30_keyboard_device : public wyse_gate_array_keyboard_device wy30_keyboard_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock = 0U); protected: - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; virtual u8 wysekbd_get_id() override; }; @@ -81,7 +81,7 @@ class wy60_ascii_keyboard_device : public wyse_gate_array_keyboard_device wy60_ascii_keyboard_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock = 0U); protected: - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; virtual u8 wysekbd_get_id() override; }; @@ -96,9 +96,9 @@ class wyse_at_keyboard_device : public wyse_gate_array_keyboard_device protected: wyse_at_keyboard_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); - virtual void device_resolve_objects() override; + virtual void device_resolve_objects() override ATTR_COLD; - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; virtual u8 wysekbd_get_id() override; virtual void wysekbd_update_leds(u8 index) override; @@ -118,7 +118,7 @@ class wyse_316x_keyboard_device : public wyse_gate_array_keyboard_device wyse_316x_keyboard_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock = 0U); protected: - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; virtual u8 wysekbd_get_id() override; private: @@ -134,7 +134,7 @@ class wyse_pce_keyboard_device : public wyse_at_keyboard_device wyse_pce_keyboard_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock = 0U); protected: - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; virtual u8 wysekbd_get_id() override; }; @@ -147,7 +147,7 @@ class wyse_pceint_keyboard_device : public wyse_at_keyboard_device wyse_pceint_keyboard_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock = 0U); protected: - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; virtual u8 wysekbd_get_id() override; }; diff --git a/src/devices/bus/wysekbd/wysekbd.h b/src/devices/bus/wysekbd/wysekbd.h index 68e64fc9530..dace2925ef4 100644 --- a/src/devices/bus/wysekbd/wysekbd.h +++ b/src/devices/bus/wysekbd/wysekbd.h @@ -43,7 +43,7 @@ class wyse_keyboard_port_device : public device_t, public device_single_card_slo protected: // device-level overrides virtual void device_config_complete() override; - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: // selected keyboard diff --git a/src/devices/bus/x68k/x68k_midi.h b/src/devices/bus/x68k/x68k_midi.h index b43968d468b..8e17b24df82 100644 --- a/src/devices/bus/x68k/x68k_midi.h +++ b/src/devices/bus/x68k/x68k_midi.h @@ -25,15 +25,15 @@ class x68k_midi_device : public device_t, x68k_midi_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; uint8_t x68k_midi_reg_r(offs_t offset); void x68k_midi_reg_w(offs_t offset, uint8_t data); 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; // device_x68k_expansion_card_interface overrides virtual uint8_t iack4() override; diff --git a/src/devices/bus/x68k/x68k_neptunex.h b/src/devices/bus/x68k/x68k_neptunex.h index b60a58d46e1..926dee3e76b 100644 --- a/src/devices/bus/x68k/x68k_neptunex.h +++ b/src/devices/bus/x68k/x68k_neptunex.h @@ -32,9 +32,9 @@ class x68k_neptune_device : public device_t, protected: // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; // device_x68k_expansion_card_interface overrides virtual uint8_t iack2() override; diff --git a/src/devices/bus/x68k/x68k_scsiext.h b/src/devices/bus/x68k/x68k_scsiext.h index 7d48d958730..dcd345c008f 100644 --- a/src/devices/bus/x68k/x68k_scsiext.h +++ b/src/devices/bus/x68k/x68k_scsiext.h @@ -23,10 +23,10 @@ class x68k_scsiext_device : public device_t, protected: // device-level overrides - 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; // device_x68k_expansion_card_interface overrides virtual uint8_t iack2() override; diff --git a/src/devices/bus/x68k/x68kexp.h b/src/devices/bus/x68k/x68kexp.h index ccf4ac51cb6..33ad1bd46b9 100644 --- a/src/devices/bus/x68k/x68kexp.h +++ b/src/devices/bus/x68k/x68kexp.h @@ -128,7 +128,7 @@ class x68k_expansion_slot_device : public device_t, public device_single_card_sl protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; required_address_space m_space; diff --git a/src/devices/bus/z29_kbd/he191_3425.h b/src/devices/bus/z29_kbd/he191_3425.h index 9a9b94a6372..3969bbddcbb 100644 --- a/src/devices/bus/z29_kbd/he191_3425.h +++ b/src/devices/bus/z29_kbd/he191_3425.h @@ -21,11 +21,11 @@ class he191_3425_device : public device_t, public device_z29_keyboard_interface protected: // device-level overrides - virtual void device_resolve_objects() override; - virtual void device_start() override; - virtual ioport_constructor device_input_ports() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual const tiny_rom_entry *device_rom_region() const override; + virtual void device_resolve_objects() override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual ioport_constructor device_input_ports() const 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; // device_z29_keyboard_interface overrides virtual void receive_data(bool state) override; diff --git a/src/devices/bus/z29_kbd/keyboard.h b/src/devices/bus/z29_kbd/keyboard.h index b4c5aea9213..42a102a4221 100644 --- a/src/devices/bus/z29_kbd/keyboard.h +++ b/src/devices/bus/z29_kbd/keyboard.h @@ -48,7 +48,7 @@ class z29_keyboard_port_device : public device_t, public device_single_card_slot protected: // device_t implementation virtual void device_config_complete() override; - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // called from keyboard void transmit_data(bool state) { m_keyin_callback(state); } diff --git a/src/devices/bus/z29_kbd/md_kbd.h b/src/devices/bus/z29_kbd/md_kbd.h index b9fc0beb9e6..0822118aecd 100644 --- a/src/devices/bus/z29_kbd/md_kbd.h +++ b/src/devices/bus/z29_kbd/md_kbd.h @@ -18,12 +18,12 @@ class md_keyboard_device : public device_t, public device_z29_keyboard_interface protected: // device-level overrides - virtual void device_resolve_objects() override; - virtual void device_start() override; - virtual void device_reset() override; - virtual ioport_constructor device_input_ports() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual const tiny_rom_entry *device_rom_region() const override; + virtual void device_resolve_objects() override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; + virtual ioport_constructor device_input_ports() const 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; // device_z29_keyboard_interface overrides virtual void receive_data(bool state) override; @@ -40,8 +40,8 @@ class md_keyboard_device : public device_t, public device_z29_keyboard_interface void ls175_w(u8 data); // address maps - void prog_map(address_map &map); - void ext_map(address_map &map); + void prog_map(address_map &map) ATTR_COLD; + void ext_map(address_map &map) ATTR_COLD; // object finders required_device m_mcu; diff --git a/src/devices/bus/z88/flash.h b/src/devices/bus/z88/flash.h index 12d3bf7b825..97851421542 100644 --- a/src/devices/bus/z88/flash.h +++ b/src/devices/bus/z88/flash.h @@ -23,11 +23,11 @@ class z88_1024k_flash_device : public device_t, protected: // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; // z88cart_interface overrides virtual uint8_t read(offs_t offset) override; diff --git a/src/devices/bus/z88/ram.cpp b/src/devices/bus/z88/ram.cpp index 6199995b698..c697e40c7b0 100644 --- a/src/devices/bus/z88/ram.cpp +++ b/src/devices/bus/z88/ram.cpp @@ -32,7 +32,7 @@ class z88_32k_ram_device : public device_t, z88_32k_ram_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // device_t implementations - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_nvram_interface implementation virtual void nvram_default() override diff --git a/src/devices/bus/z88/rom.cpp b/src/devices/bus/z88/rom.cpp index 3f3d406365e..b62f380f0c9 100644 --- a/src/devices/bus/z88/rom.cpp +++ b/src/devices/bus/z88/rom.cpp @@ -32,7 +32,7 @@ class z88_32k_rom_device : public device_t, z88_32k_rom_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; // device_nvram_interface implementation virtual void nvram_default() override diff --git a/src/devices/bus/z88/z88.h b/src/devices/bus/z88/z88.h index 3fe6b24ff0c..072d41a58fc 100644 --- a/src/devices/bus/z88/z88.h +++ b/src/devices/bus/z88/z88.h @@ -123,7 +123,7 @@ class z88cart_slot_device : public device_t, protected: // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; TIMER_CALLBACK_MEMBER(close_flap); diff --git a/src/devices/cpu/8x300/8x300.h b/src/devices/cpu/8x300/8x300.h index d4bfd85a976..82e82a89f92 100644 --- a/src/devices/cpu/8x300/8x300.h +++ b/src/devices/cpu/8x300/8x300.h @@ -55,8 +55,8 @@ class n8x300_cpu_device : public cpu_device n8x300_cpu_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; // device_state_interface implementation virtual void state_import(const device_state_entry &entry) override; diff --git a/src/devices/cpu/adsp2100/adsp2100.h b/src/devices/cpu/adsp2100/adsp2100.h index 392ed7278b4..bf50fbca7a3 100644 --- a/src/devices/cpu/adsp2100/adsp2100.h +++ b/src/devices/cpu/adsp2100/adsp2100.h @@ -213,8 +213,8 @@ class adsp21xx_device : public cpu_device adsp21xx_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, uint32_t chiptype); // 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 device_post_load() override; // device_execute_interface overrides diff --git a/src/devices/cpu/alpha/alpha.h b/src/devices/cpu/alpha/alpha.h index 2d9d4d9f910..60d0a83ca73 100644 --- a/src/devices/cpu/alpha/alpha.h +++ b/src/devices/cpu/alpha/alpha.h @@ -21,8 +21,8 @@ class alpha_device : public cpu_device alpha_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); // device_t 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; // device_execute_interface overrides virtual u32 execute_min_cycles() const noexcept override { return 1; } @@ -80,8 +80,8 @@ class alpha_ev4_device : public alpha_device 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 cpu_execute(u32 const op) override; virtual bool cpu_translate(u64 &address, int intention) override; @@ -253,7 +253,7 @@ class dec_21064_device : public alpha_ev4_device dec_21064_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); protected: - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; virtual u32 icache_fetch(u64 const address) override; diff --git a/src/devices/cpu/alto2/alto2cpu.h b/src/devices/cpu/alto2/alto2cpu.h index c56629ca167..d8817978ba8 100644 --- a/src/devices/cpu/alto2/alto2cpu.h +++ b/src/devices/cpu/alto2/alto2cpu.h @@ -207,9 +207,9 @@ class alto2_cpu_device : public cpu_device protected: //! device-level override for start - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; //! device-level override for reset - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; //! device-level override for post reset void interface_post_reset() override; @@ -224,7 +224,7 @@ class alto2_cpu_device : public cpu_device virtual space_config_vector memory_space_config() const override; //! device (P)ROMs - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; //! device_state_interface overrides virtual void state_string_export(const device_state_entry &entry, std::string &str) const override; @@ -252,9 +252,9 @@ class alto2_cpu_device : public cpu_device std::unique_ptr m_ucode_cram; std::unique_ptr m_const_data; - void ucode_map(address_map &map); - void const_map(address_map &map); - void iomem_map(address_map &map); + void ucode_map(address_map &map) ATTR_COLD; + void const_map(address_map &map) ATTR_COLD; + void iomem_map(address_map &map) ATTR_COLD; //! read microcode CROM or CRAM, depending on m_ucode_ram_base uint32_t crom_cram_r(offs_t offset); diff --git a/src/devices/cpu/am29000/am29000.h b/src/devices/cpu/am29000/am29000.h index 9eea0b09a41..d95efc1f587 100644 --- a/src/devices/cpu/am29000/am29000.h +++ b/src/devices/cpu/am29000/am29000.h @@ -440,8 +440,8 @@ class am29000_cpu_device : public cpu_device 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; // device_execute_interface overrides virtual uint32_t execute_min_cycles() const noexcept override { return 1; } diff --git a/src/devices/cpu/amis2000/amis2000.h b/src/devices/cpu/amis2000/amis2000.h index 6b4bcf0ebd7..18f6a8baf70 100644 --- a/src/devices/cpu/amis2000/amis2000.h +++ b/src/devices/cpu/amis2000/amis2000.h @@ -32,18 +32,18 @@ class amis2000_base_device : public cpu_device // uncustomizable, but wildfire proves to be an exception to that rule. void set_7seg_table(const u8 *ptr) { m_7seg_table = ptr; } // d0=A, d1=B, etc. - void data_64x4(address_map &map); - void data_80x4(address_map &map); - void program_1_5k(address_map &map); - void program_1k(address_map &map); + void data_64x4(address_map &map) ATTR_COLD; + void data_80x4(address_map &map) ATTR_COLD; + void program_1_5k(address_map &map) ATTR_COLD; + void program_1k(address_map &map) ATTR_COLD; protected: // construction/destruction amis2000_base_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, u8 bu_bits, u8 callstack_bits, u8 callstack_depth, int prgwidth, address_map_constructor program, int datawidth, address_map_constructor data); // 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; // device_execute_interface overrides virtual u64 execute_clocks_to_cycles(u64 clocks) const noexcept override { return (clocks + 4 - 1) / 4; } // 4 cycles per machine cycle @@ -191,8 +191,8 @@ class amis2152_cpu_device : public amis2000_base_device 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; // digital-to-frequency converter u8 m_d2f_latch; diff --git a/src/devices/cpu/apexc/apexc.h b/src/devices/cpu/apexc/apexc.h index b795292cf45..6998a62dad4 100644 --- a/src/devices/cpu/apexc/apexc.h +++ b/src/devices/cpu/apexc/apexc.h @@ -28,8 +28,8 @@ class apexc_cpu_device : public cpu_device 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; // device_execute_interface overrides virtual uint32_t execute_min_cycles() const noexcept override { return 2; } diff --git a/src/devices/cpu/arc/arc.h b/src/devices/cpu/arc/arc.h index f5a49fdf76c..dc00869bb44 100644 --- a/src/devices/cpu/arc/arc.h +++ b/src/devices/cpu/arc/arc.h @@ -25,8 +25,8 @@ class arc_cpu_device : public cpu_device 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; // device_execute_interface overrides virtual uint32_t execute_min_cycles() const noexcept override { return 5; } diff --git a/src/devices/cpu/arcompact/arcompact.h b/src/devices/cpu/arcompact/arcompact.h index 11be86da76a..714e0f1ebeb 100644 --- a/src/devices/cpu/arcompact/arcompact.h +++ b/src/devices/cpu/arcompact/arcompact.h @@ -22,8 +22,8 @@ class arcompact_device : public cpu_device, protected arcompact_common 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; // device_execute_interface overrides virtual uint32_t execute_min_cycles() const noexcept override { return 5; } @@ -42,7 +42,7 @@ class arcompact_device : public cpu_device, protected arcompact_common virtual std::unique_ptr create_disassembler() override; private: - void arcompact_auxreg_map(address_map &map); + void arcompact_auxreg_map(address_map &map) ATTR_COLD; uint32_t arcompact_auxreg002_LPSTART_r(); diff --git a/src/devices/cpu/arm/arm.h b/src/devices/cpu/arm/arm.h index 9a99b16cf54..072ae9b7583 100644 --- a/src/devices/cpu/arm/arm.h +++ b/src/devices/cpu/arm/arm.h @@ -44,8 +44,8 @@ class arm_cpu_device : public cpu_device arm_cpu_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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; // device_execute_interface overrides virtual uint32_t execute_min_cycles() const noexcept override { return 3; } diff --git a/src/devices/cpu/arm7/arm7.cpp b/src/devices/cpu/arm7/arm7.cpp index 847c3eb3e60..4e9c74a6861 100644 --- a/src/devices/cpu/arm7/arm7.cpp +++ b/src/devices/cpu/arm7/arm7.cpp @@ -1460,12 +1460,10 @@ void arm7_cpu_device::execute_run() /* handle Thumb instructions if active */ if (T_IS_SET(m_r[eCPSR])) { - offs_t raddr; - pc = m_r[eR15]; // "In Thumb state, bit [0] is undefined and must be ignored. Bits [31:1] contain the PC." - raddr = pc & (~1); + offs_t const raddr = pc & ~uint32_t(1); if (!insn_fetch_thumb(raddr, insn)) { @@ -1477,12 +1475,10 @@ void arm7_cpu_device::execute_run() } else { - offs_t raddr; - /* load 32 bit instruction */ // "In ARM state, bits [1:0] of r15 are undefined and must be ignored. Bits [31:2] contain the PC." - raddr = pc & (~3); + offs_t const raddr = pc & ~uint32_t(3); if (!insn_fetch_arm(raddr, insn)) { diff --git a/src/devices/cpu/arm7/arm7.h b/src/devices/cpu/arm7/arm7.h index 44591e9dad1..ad59176f680 100644 --- a/src/devices/cpu/arm7/arm7.h +++ b/src/devices/cpu/arm7/arm7.h @@ -92,8 +92,8 @@ class arm7_cpu_device : public cpu_device, public arm7_disassembler::config void postload(); // 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; // device_execute_interface implementation virtual uint32_t execute_min_cycles() const noexcept override { return 3; } @@ -663,7 +663,7 @@ class arm946es_cpu_device : public arm9_cpu_device protected: arm946es_cpu_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_start() override ATTR_COLD; private: uint32_t cp15_control, cp15_itcm_base, cp15_dtcm_base, cp15_itcm_size, cp15_dtcm_size; @@ -694,7 +694,7 @@ class arm1176jzf_s_cpu_device : public arm11_cpu_device virtual void arm7_rt_w_callback(offs_t offset, uint32_t data) override; protected: - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; }; class igs036_cpu_device : public arm946es_cpu_device diff --git a/src/devices/cpu/arm7/arm7core.h b/src/devices/cpu/arm7/arm7core.h index 55e36ebfb97..88963ae0af4 100644 --- a/src/devices/cpu/arm7/arm7core.h +++ b/src/devices/cpu/arm7/arm7core.h @@ -29,10 +29,6 @@ #define ARM7_DEBUG_CORE 0 -/**************************************************************************************************** - * INTERRUPT LINES/EXCEPTIONS - ***************************************************************************************************/ - /**************************************************************************************************** * ARM7 CORE REGISTERS ***************************************************************************************************/ @@ -193,6 +189,7 @@ struct arm_state /**************************************************************************************************** * VARIOUS INTERNAL STRUCS/DEFINES/ETC.. ***************************************************************************************************/ + // Mode values come from bit 4-0 of CPSR, but we are ignoring bit 4 here, since bit 4 always = 1 for valid modes enum { diff --git a/src/devices/cpu/arm7/lpc210x.h b/src/devices/cpu/arm7/lpc210x.h index e481d126f67..ec6ac9a461c 100644 --- a/src/devices/cpu/arm7/lpc210x.h +++ b/src/devices/cpu/arm7/lpc210x.h @@ -66,12 +66,12 @@ class lpc210x_device : public arm7_cpu_device // todo, use an appropriate flash type instead uint8_t m_flash[0x8000]; // needs to be public because the harmony/melody device injects contents with memcpy, yuck - void lpc2103_map(address_map &map); + void lpc2103_map(address_map &map) ATTR_COLD; protected: // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; virtual space_config_vector memory_space_config() const override; diff --git a/src/devices/cpu/arm7/upd800468.h b/src/devices/cpu/arm7/upd800468.h index 1470f4ea1af..c3d62ad6572 100644 --- a/src/devices/cpu/arm7/upd800468.h +++ b/src/devices/cpu/arm7/upd800468.h @@ -30,8 +30,8 @@ class upd800468_timer_device : public device_t void control_w(u8); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; TIMER_CALLBACK_MEMBER(irq_timer_tick); @@ -48,7 +48,7 @@ class upd800468_device : public arm7_cpu_device public: upd800468_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t); - void upd800468_map(address_map &map); + void upd800468_map(address_map &map) ATTR_COLD; template auto adc_cb() { return m_adc_cb[i].bind(); } @@ -75,9 +75,9 @@ class upd800468_device : public arm7_cpu_device void port_update(offs_t); // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; virtual space_config_vector memory_space_config() const override; diff --git a/src/devices/cpu/asap/asap.h b/src/devices/cpu/asap/asap.h index 62bbd15c1f1..d8e4bcd8781 100644 --- a/src/devices/cpu/asap/asap.h +++ b/src/devices/cpu/asap/asap.h @@ -70,8 +70,8 @@ class asap_device : public cpu_device }; // 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; // device_execute_interface overrides virtual uint32_t execute_min_cycles() const noexcept override; diff --git a/src/devices/cpu/avr8/avr8.h b/src/devices/cpu/avr8/avr8.h index 1e93442b00c..9dc3d09035a 100644 --- a/src/devices/cpu/avr8/avr8.h +++ b/src/devices/cpu/avr8/avr8.h @@ -599,8 +599,8 @@ class avr8_base_device : public cpu_device std::unique_ptr m_shift_flag_cache; // 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; // device_execute_interface overrides virtual uint32_t execute_min_cycles() const noexcept override { return 1; } @@ -783,14 +783,14 @@ class avr8_device : public avr8_base_device typedef delegate timer_func; // 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; // device_execute_interface overrides virtual void execute_run() override; // address maps - void base_internal_map(address_map &map); + void base_internal_map(address_map &map) ATTR_COLD; // Miscellaneous registers void wdtcsr_w(uint8_t data); @@ -1101,7 +1101,7 @@ class atmega88_device : public avr8_device<3> public: // construction/destruction atmega88_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - void atmega88_internal_map(address_map &map); + void atmega88_internal_map(address_map &map) ATTR_COLD; }; // ======================> atmega168_device @@ -1113,7 +1113,7 @@ class atmega168_device : public avr8_device<3> atmega168_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); virtual void update_interrupt(int source) override; - void atmega168_internal_map(address_map &map); + void atmega168_internal_map(address_map &map) ATTR_COLD; }; // ======================> atmega328_device @@ -1125,7 +1125,7 @@ class atmega328_device : public avr8_device<3> atmega328_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); virtual void update_interrupt(int source) override; - void atmega328_internal_map(address_map &map); + void atmega328_internal_map(address_map &map) ATTR_COLD; }; // ======================> atmega644_device @@ -1137,7 +1137,7 @@ class atmega644_device : public avr8_device<3> atmega644_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); virtual void update_interrupt(int source) override; - void atmega644_internal_map(address_map &map); + void atmega644_internal_map(address_map &map) ATTR_COLD; }; // ======================> atmega1280_device @@ -1149,7 +1149,7 @@ class atmega1280_device : public avr8_device<6> atmega1280_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); virtual void update_interrupt(int source) override; - void atmega1280_internal_map(address_map &map); + void atmega1280_internal_map(address_map &map) ATTR_COLD; }; // ======================> atmega2560_device @@ -1161,7 +1161,7 @@ class atmega2560_device : public avr8_device<6> atmega2560_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); virtual void update_interrupt(int source) override; - void atmega2560_internal_map(address_map &map); + void atmega2560_internal_map(address_map &map) ATTR_COLD; }; // ======================> attiny15_device @@ -1171,7 +1171,7 @@ class attiny15_device : public avr8_device<2> public: // construction/destruction attiny15_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - void attiny15_internal_map(address_map &map); + void attiny15_internal_map(address_map &map) ATTR_COLD; }; /*************************************************************************** diff --git a/src/devices/cpu/axc51/axc51.h b/src/devices/cpu/axc51/axc51.h index 1f9a2f1f25b..ee6439b59a8 100644 --- a/src/devices/cpu/axc51/axc51.h +++ b/src/devices/cpu/axc51/axc51.h @@ -30,9 +30,9 @@ class axc51base_cpu_device : public cpu_device auto spi_out_cb() { return m_spi_out_cb.bind(); } auto spi_out_dir_cb() { return m_spi_out_dir_cb.bind(); } - void program_internal(address_map &map); - void data_internal(address_map &map); - void io_internal(address_map &map); + void program_internal(address_map &map) ATTR_COLD; + void data_internal(address_map &map) ATTR_COLD; + void io_internal(address_map &map) ATTR_COLD; protected: // construction/destruction @@ -40,8 +40,8 @@ class axc51base_cpu_device : public cpu_device axc51base_cpu_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, address_map_constructor program_map, address_map_constructor data_map, address_map_constructor io_map, int program_width, int data_width, uint8_t features = 0); // 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; // device_execute_interface overrides virtual uint32_t execute_min_cycles() const noexcept override { return 1; } @@ -523,12 +523,12 @@ class ax208_cpu_device : public axc51base_cpu_device protected: ax208_cpu_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; virtual std::unique_ptr create_disassembler() override; - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; - void ax208_internal_program_mem(address_map &map); + void ax208_internal_program_mem(address_map &map) ATTR_COLD; }; class ax208p_cpu_device : public ax208_cpu_device @@ -538,7 +538,7 @@ class ax208p_cpu_device : public ax208_cpu_device ax208p_cpu_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; }; diff --git a/src/devices/cpu/bcp/dp8344.h b/src/devices/cpu/bcp/dp8344.h index 263462f975a..f805b99fc50 100644 --- a/src/devices/cpu/bcp/dp8344.h +++ b/src/devices/cpu/bcp/dp8344.h @@ -65,8 +65,8 @@ class dp8344_device : public cpu_device dp8344_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 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; // device_execute_interface implementation virtual u32 execute_min_cycles() const noexcept override { return 2; } diff --git a/src/devices/cpu/c33/s1c33209.h b/src/devices/cpu/c33/s1c33209.h index aab93f4c607..d2a3581adcf 100644 --- a/src/devices/cpu/c33/s1c33209.h +++ b/src/devices/cpu/c33/s1c33209.h @@ -26,13 +26,13 @@ class s1c33209_device : public c33std_cpu_device_base u32 clock, address_map_constructor internal_map); - template void memory_map(address_map &map); + template void memory_map(address_map &map) ATTR_COLD; protected: - void device_reset() override; + void device_reset() override ATTR_COLD; private: - void peripheral_map(address_map &map); + void peripheral_map(address_map &map) ATTR_COLD; }; diff --git a/src/devices/cpu/capricorn/capricorn.h b/src/devices/cpu/capricorn/capricorn.h index 3051c8b9bd7..6e5cf79f0d5 100644 --- a/src/devices/cpu/capricorn/capricorn.h +++ b/src/devices/cpu/capricorn/capricorn.h @@ -33,8 +33,8 @@ class capricorn_cpu_device : public cpu_device protected: // device_t 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; // device_execute_interface overrides virtual u32 execute_min_cycles() const noexcept override { return 2; } diff --git a/src/devices/cpu/ccpu/ccpu.h b/src/devices/cpu/ccpu/ccpu.h index 9a952276f6c..f51cc9bf700 100644 --- a/src/devices/cpu/ccpu/ccpu.h +++ b/src/devices/cpu/ccpu/ccpu.h @@ -54,8 +54,8 @@ class ccpu_cpu_device : public cpu_device 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; // device_execute_interface overrides virtual uint32_t execute_min_cycles() const noexcept override { return 1; } diff --git a/src/devices/cpu/clipper/clipper.h b/src/devices/cpu/clipper/clipper.h index 6a03ccac86a..19f51650b3b 100644 --- a/src/devices/cpu/clipper/clipper.h +++ b/src/devices/cpu/clipper/clipper.h @@ -151,8 +151,8 @@ class clipper_device : public cpu_device clipper_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, const endianness_t endianness, const u32 cpuid); // 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; // device_execute_interface overrides virtual u32 execute_min_cycles() const noexcept override { return 1; } @@ -356,7 +356,7 @@ class clipper_c400_device : public clipper_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual u32 intrap(const u16 vector, const u32 old_pc) override; diff --git a/src/devices/cpu/cop400/cop400.h b/src/devices/cpu/cop400/cop400.h index 0155a832e05..12cd8315330 100644 --- a/src/devices/cpu/cop400/cop400.h +++ b/src/devices/cpu/cop400/cop400.h @@ -120,20 +120,20 @@ class cop400_cpu_device : public cpu_device uint8_t microbus_r(); void microbus_w(uint8_t data); - void data_128b(address_map &map); - void data_32b(address_map &map); - void data_64b(address_map &map); - void program_1kb(address_map &map); - void program_2kb(address_map &map); - void program_512b(address_map &map); + void data_128b(address_map &map) ATTR_COLD; + void data_32b(address_map &map) ATTR_COLD; + void data_64b(address_map &map) ATTR_COLD; + void program_1kb(address_map &map) ATTR_COLD; + void program_2kb(address_map &map) ATTR_COLD; + void program_512b(address_map &map) ATTR_COLD; protected: // construction/destruction cop400_cpu_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, uint8_t program_addr_bits, uint8_t data_addr_bits, uint8_t featuremask, uint8_t g_mask, uint8_t d_mask, uint8_t in_mask, bool has_counter, bool has_inil, address_map_constructor internal_map_program, address_map_constructor internal_map_data); // 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; // device_execute_interface overrides virtual uint64_t execute_clocks_to_cycles(uint64_t clocks) const noexcept override { return (clocks + m_cki - 1) / m_cki; } diff --git a/src/devices/cpu/cops1/cops1base.h b/src/devices/cpu/cops1/cops1base.h index 75009fe7b49..0d850f500d5 100644 --- a/src/devices/cpu/cops1/cops1base.h +++ b/src/devices/cpu/cops1/cops1base.h @@ -70,9 +70,9 @@ class cops1_base_device : public cpu_device cops1_base_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, int prgwidth, address_map_constructor program, int datawidth, address_map_constructor data); // device-level overrides - 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; // device_execute_interface overrides virtual u64 execute_clocks_to_cycles(u64 clocks) const noexcept override { return (clocks + 4 - 1) / 4; } diff --git a/src/devices/cpu/cops1/mm5799.h b/src/devices/cpu/cops1/mm5799.h index a07aecd97fa..e8d45625170 100644 --- a/src/devices/cpu/cops1/mm5799.h +++ b/src/devices/cpu/cops1/mm5799.h @@ -41,8 +41,8 @@ class mm5799_device : public cops1_base_device 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; // device_disasm_interface overrides virtual std::unique_ptr create_disassembler() override; @@ -51,8 +51,8 @@ class mm5799_device : public cops1_base_device virtual void execute_one() override; virtual bool op_argument() override; - void data_map(address_map &map); - void program_map(address_map &map); + void data_map(address_map &map) ATTR_COLD; + void program_map(address_map &map) ATTR_COLD; // opcode helpers u8 ram_r(); diff --git a/src/devices/cpu/cosmac/cosmac.h b/src/devices/cpu/cosmac/cosmac.h index 7071b51e3ee..ec563e75194 100644 --- a/src/devices/cpu/cosmac/cosmac.h +++ b/src/devices/cpu/cosmac/cosmac.h @@ -186,8 +186,8 @@ class cosmac_device : public cpu_device, public cosmac_disassembler::config cosmac_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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; // device_execute_interface overrides virtual uint32_t execute_min_cycles() const noexcept override; diff --git a/src/devices/cpu/cp1610/cp1610.h b/src/devices/cpu/cp1610/cp1610.h index 1def7c2eeaf..37d9d2093bc 100644 --- a/src/devices/cpu/cp1610/cp1610.h +++ b/src/devices/cpu/cp1610/cp1610.h @@ -36,8 +36,8 @@ class cp1610_cpu_device : public cpu_device 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; // device_execute_interface overrides virtual uint32_t execute_min_cycles() const noexcept override { return 1; } diff --git a/src/devices/cpu/cr16b/cr16b.h b/src/devices/cpu/cr16b/cr16b.h index a8028b03108..ef63ceed380 100644 --- a/src/devices/cpu/cr16b/cr16b.h +++ b/src/devices/cpu/cr16b/cr16b.h @@ -26,8 +26,8 @@ class cr16b_device : public cpu_device cr16b_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, address_map_constructor map); // 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; // device_execute_interface overrides virtual void execute_run() override; diff --git a/src/devices/cpu/cubeqcpu/cubeqcpu.h b/src/devices/cpu/cubeqcpu/cubeqcpu.h index 52b8132739d..76ac972bafe 100644 --- a/src/devices/cpu/cubeqcpu/cubeqcpu.h +++ b/src/devices/cpu/cubeqcpu/cubeqcpu.h @@ -57,8 +57,8 @@ class cquestsnd_cpu_device : public cpu_device }; // 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; // device_execute_interface overrides virtual u32 execute_min_cycles() const noexcept override { return 1; } @@ -155,8 +155,8 @@ class cquestrot_cpu_device : public cpu_device }; // 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; // device_execute_interface overrides virtual u32 execute_min_cycles() const noexcept override { return 1; } @@ -266,8 +266,8 @@ class cquestlin_cpu_device : public cpu_device }; // 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; // device_execute_interface overrides virtual u32 execute_min_cycles() const noexcept override { return 1; } diff --git a/src/devices/cpu/diablo/diablo1300.h b/src/devices/cpu/diablo/diablo1300.h index 68e0fc5bf31..7218b8c0356 100644 --- a/src/devices/cpu/diablo/diablo1300.h +++ b/src/devices/cpu/diablo/diablo1300.h @@ -24,9 +24,9 @@ class diablo1300_cpu_device : public cpu_device protected: // device-level overrides - virtual void device_start() override; - virtual void device_reset() override; - virtual void device_stop() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; + virtual void device_stop() override ATTR_COLD; // device_execute_interface overrides virtual uint32_t execute_min_cycles() const noexcept override; diff --git a/src/devices/cpu/dsp16/dsp16.h b/src/devices/cpu/dsp16/dsp16.h index 5c4304851f1..f513e3fdceb 100644 --- a/src/devices/cpu/dsp16/dsp16.h +++ b/src/devices/cpu/dsp16/dsp16.h @@ -75,9 +75,9 @@ class dsp16_device_base : public cpu_device, protected dsp16_disassembler::cpu address_map_constructor &&data_map); // device_t implementation - virtual void device_start() override; - virtual void device_stop() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_stop() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; // device_execute_interface implementation virtual u64 execute_clocks_to_cycles(u64 clocks) const noexcept override { return (clocks + 2 - 1) >> 1; } @@ -179,7 +179,7 @@ class dsp16_device_base : public cpu_device, protected dsp16_disassembler::cpu using recompiler_ptr = std::unique_ptr; // internal address maps - void program_map(address_map &map); + void program_map(address_map &map) ATTR_COLD; // instruction execution template void execute_some_rom(); @@ -347,7 +347,7 @@ class dsp16_device : public dsp16_device_base virtual void external_memory_enable(address_space &space, bool enable) override; // internal address maps - void data_map(address_map &map); + void data_map(address_map &map) ATTR_COLD; private: required_region_ptr m_rom; @@ -365,7 +365,7 @@ class dsp16a_device : public dsp16_device_base virtual void external_memory_enable(address_space &space, bool enable) override; // internal address maps - void data_map(address_map &map); + void data_map(address_map &map) ATTR_COLD; private: required_region_ptr m_rom; diff --git a/src/devices/cpu/dsp32/dsp32.h b/src/devices/cpu/dsp32/dsp32.h index 79d2314c8f7..4f9f3f9bdf9 100644 --- a/src/devices/cpu/dsp32/dsp32.h +++ b/src/devices/cpu/dsp32/dsp32.h @@ -103,8 +103,8 @@ class dsp32c_device : public cpu_device }; // 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; // device_execute_interface overrides virtual uint32_t execute_min_cycles() const noexcept override; diff --git a/src/devices/cpu/dsp56000/dsp56000.h b/src/devices/cpu/dsp56000/dsp56000.h index d62f2fb1523..5f991419af9 100644 --- a/src/devices/cpu/dsp56000/dsp56000.h +++ b/src/devices/cpu/dsp56000/dsp56000.h @@ -12,8 +12,8 @@ class dsp56000_device_base : public cpu_device dsp56000_device_base(machine_config const &mconfig, device_type type, char const *tag, device_t *owner, u32 clock); // device_t 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; // device_execute_interface overrides virtual u64 execute_clocks_to_cycles(u64 clocks) const noexcept override { return (clocks + 2 - 1) / 2; } diff --git a/src/devices/cpu/dsp56156/dsp56156.h b/src/devices/cpu/dsp56156/dsp56156.h index 67a8e5f4abb..9a4fae9b768 100644 --- a/src/devices/cpu/dsp56156/dsp56156.h +++ b/src/devices/cpu/dsp56156/dsp56156.h @@ -211,8 +211,8 @@ class dsp56156_device : public cpu_device void host_interface_write(uint8_t offset, uint8_t data); uint8_t host_interface_read(uint8_t offset); - void dsp56156_program_map(address_map &map); - void dsp56156_x_data_map(address_map &map); + void dsp56156_program_map(address_map &map) ATTR_COLD; + void dsp56156_x_data_map(address_map &map) ATTR_COLD; auto portc_cb() { return portC_cb.bind(); } @@ -220,8 +220,8 @@ class dsp56156_device : public cpu_device 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; // device_execute_interface overrides virtual uint64_t execute_clocks_to_cycles(uint64_t clocks) const noexcept override { return clocks; } diff --git a/src/devices/cpu/dspp/dspp.h b/src/devices/cpu/dspp/dspp.h index 68492fb7f40..13dc682b01f 100644 --- a/src/devices/cpu/dspp/dspp.h +++ b/src/devices/cpu/dspp/dspp.h @@ -74,8 +74,8 @@ class dspp_device : public cpu_device 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; // device_execute_interface overrides virtual uint32_t execute_min_cycles() const noexcept override; @@ -93,8 +93,8 @@ class dspp_device : public cpu_device // device_disasm_interface overrides virtual std::unique_ptr create_disassembler() override; - void code_map(address_map &map); - void data_map(address_map &map); + void code_map(address_map &map) ATTR_COLD; + void data_map(address_map &map) ATTR_COLD; enum { diff --git a/src/devices/cpu/e0c6200/e0c6200.h b/src/devices/cpu/e0c6200/e0c6200.h index 6e7bf86aa06..0024092e02a 100644 --- a/src/devices/cpu/e0c6200/e0c6200.h +++ b/src/devices/cpu/e0c6200/e0c6200.h @@ -18,8 +18,8 @@ class e0c6200_cpu_device : public cpu_device 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; // device_execute_interface overrides virtual u32 execute_min_cycles() const noexcept override { return 5; } diff --git a/src/devices/cpu/e0c6200/e0c6s46.h b/src/devices/cpu/e0c6200/e0c6s46.h index cf48f14a562..3f1e09e6c9e 100644 --- a/src/devices/cpu/e0c6200/e0c6s46.h +++ b/src/devices/cpu/e0c6200/e0c6s46.h @@ -69,16 +69,16 @@ class e0c6s46_device : public e0c6200_cpu_device 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; // device_execute_interface overrides virtual void execute_set_input(int line, int state) override; virtual void execute_one() override; virtual bool check_interrupt() override; - void e0c6s46_data(address_map &map); - void e0c6s46_program(address_map &map); + void e0c6s46_data(address_map &map) ATTR_COLD; + void e0c6s46_program(address_map &map) ATTR_COLD; private: required_shared_ptr m_vram1; diff --git a/src/devices/cpu/e132xs/e132xs.h b/src/devices/cpu/e132xs/e132xs.h index 3c555d83c7f..5b245afe43f 100644 --- a/src/devices/cpu/e132xs/e132xs.h +++ b/src/devices/cpu/e132xs/e132xs.h @@ -128,12 +128,12 @@ class hyperstone_device : public cpu_device, public hyperstone_disassembler::con void compute_tr(); void adjust_timer_interrupt(); - void e116_16k_iram_map(address_map &map); - void e116_4k_iram_map(address_map &map); - void e116_8k_iram_map(address_map &map); - void e132_16k_iram_map(address_map &map); - void e132_4k_iram_map(address_map &map); - void e132_8k_iram_map(address_map &map); + void e116_16k_iram_map(address_map &map) ATTR_COLD; + void e116_4k_iram_map(address_map &map) ATTR_COLD; + void e116_8k_iram_map(address_map &map) ATTR_COLD; + void e132_16k_iram_map(address_map &map) ATTR_COLD; + void e132_4k_iram_map(address_map &map) ATTR_COLD; + void e132_8k_iram_map(address_map &map) ATTR_COLD; static uint32_t imm_length(uint16_t op); @@ -279,9 +279,9 @@ class hyperstone_device : public cpu_device, public hyperstone_disassembler::con void init(int scale_mask); // device-level overrides - virtual void device_start() override; - virtual void device_reset() override; - virtual void device_stop() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; + virtual void device_stop() override ATTR_COLD; // device_execute_interface overrides virtual uint32_t execute_min_cycles() const noexcept override; @@ -619,7 +619,7 @@ class e116t_device : public hyperstone_device e116t_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; }; @@ -632,7 +632,7 @@ class e116xt_device : public hyperstone_device e116xt_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; }; @@ -645,7 +645,7 @@ class e116xs_device : public hyperstone_device e116xs_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; }; @@ -658,7 +658,7 @@ class e116xsr_device : public hyperstone_device e116xsr_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; }; @@ -671,7 +671,7 @@ class e132n_device : public hyperstone_device e132n_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; }; @@ -684,7 +684,7 @@ class e132t_device : public hyperstone_device e132t_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; }; @@ -697,7 +697,7 @@ class e132xn_device : public hyperstone_device e132xn_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; }; @@ -710,7 +710,7 @@ class e132xt_device : public hyperstone_device e132xt_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; }; @@ -723,7 +723,7 @@ class e132xs_device : public hyperstone_device e132xs_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; }; @@ -736,7 +736,7 @@ class e132xsr_device : public hyperstone_device e132xsr_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; }; @@ -749,7 +749,7 @@ class gms30c2116_device : public hyperstone_device gms30c2116_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; }; @@ -762,7 +762,7 @@ class gms30c2132_device : public hyperstone_device gms30c2132_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; }; @@ -775,7 +775,7 @@ class gms30c2216_device : public hyperstone_device gms30c2216_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; }; @@ -788,7 +788,7 @@ class gms30c2232_device : public hyperstone_device gms30c2232_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; }; diff --git a/src/devices/cpu/es5510/es5510.h b/src/devices/cpu/es5510/es5510.h index 6061d2e86bc..f64c810906a 100644 --- a/src/devices/cpu/es5510/es5510.h +++ b/src/devices/cpu/es5510/es5510.h @@ -126,8 +126,8 @@ class es5510_device : public cpu_device { void write_to_dol(int32_t value); protected: - 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 space_config_vector memory_space_config() const override; virtual uint64_t execute_clocks_to_cycles(uint64_t clocks) const noexcept override; virtual uint64_t execute_cycles_to_clocks(uint64_t cycles) const noexcept override; diff --git a/src/devices/cpu/esrip/esrip.h b/src/devices/cpu/esrip/esrip.h index 04a11b67560..7b1f2153a0f 100644 --- a/src/devices/cpu/esrip/esrip.h +++ b/src/devices/cpu/esrip/esrip.h @@ -103,9 +103,9 @@ class esrip_device : public cpu_device }; // device-level overrides - virtual void device_start() override; - virtual void device_reset() override; - virtual void device_stop() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; + virtual void device_stop() override ATTR_COLD; void make_ops(); diff --git a/src/devices/cpu/evolution/evo.h b/src/devices/cpu/evolution/evo.h index 8bbdaf60d32..db71b475f10 100644 --- a/src/devices/cpu/evolution/evo.h +++ b/src/devices/cpu/evolution/evo.h @@ -13,8 +13,8 @@ class evo_cpu_device : public cpu_device evo_cpu_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - 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 uint32_t execute_min_cycles() const noexcept override { return 1; } virtual uint32_t execute_max_cycles() const noexcept override { return 1; } diff --git a/src/devices/cpu/f2mc16/f2mc16.h b/src/devices/cpu/f2mc16/f2mc16.h index 2a3dbc7362e..ffacb4dd158 100644 --- a/src/devices/cpu/f2mc16/f2mc16.h +++ b/src/devices/cpu/f2mc16/f2mc16.h @@ -44,8 +44,8 @@ class f2mc16_device : public cpu_device f2mc16_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); // 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 state_import(const device_state_entry &entry) override; virtual void state_export(const device_state_entry &entry) override; diff --git a/src/devices/cpu/f2mc16/mb9061x.h b/src/devices/cpu/f2mc16/mb9061x.h index a68e951f890..4b5b8d31253 100644 --- a/src/devices/cpu/f2mc16/mb9061x.h +++ b/src/devices/cpu/f2mc16/mb9061x.h @@ -90,8 +90,8 @@ class mb9061x_device : public f2mc16_device mb9061x_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, address_map_constructor internal_map); // 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 execute_set_input(int inputnum, int state) override; virtual space_config_vector memory_space_config() const override; @@ -148,7 +148,7 @@ class mb90610_device : public mb9061x_device public: mb90610_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - void mb90610_map(address_map &map); + void mb90610_map(address_map &map) ATTR_COLD; protected: mb90610_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); }; @@ -158,7 +158,7 @@ class mb90611_device : public mb9061x_device public: mb90611_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - void mb90611_map(address_map &map); + void mb90611_map(address_map &map) ATTR_COLD; protected: mb90611_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); }; @@ -168,7 +168,7 @@ class mb90641_device : public mb9061x_device public: mb90641_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - void mb90641_map(address_map &map); + void mb90641_map(address_map &map) ATTR_COLD; protected: mb90641_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); }; diff --git a/src/devices/cpu/f8/f8.h b/src/devices/cpu/f8/f8.h index e6f552f1717..8477b1bf031 100644 --- a/src/devices/cpu/f8/f8.h +++ b/src/devices/cpu/f8/f8.h @@ -33,8 +33,8 @@ class f8_cpu_device : public cpu_device }; // 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; // device_execute_interface implementation virtual u32 execute_min_cycles() const noexcept override { return 4; } @@ -52,7 +52,7 @@ class f8_cpu_device : public cpu_device virtual std::unique_ptr create_disassembler() override; private: - void regs_map(address_map &map); + void regs_map(address_map &map) ATTR_COLD; address_space_config m_program_config; address_space_config m_regs_config; diff --git a/src/devices/cpu/fr/fr.h b/src/devices/cpu/fr/fr.h index 60e6eb8469f..6d68391a2c0 100644 --- a/src/devices/cpu/fr/fr.h +++ b/src/devices/cpu/fr/fr.h @@ -24,8 +24,8 @@ class fr_cpu_device : public cpu_device fr_cpu_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, int addrbits, address_map_constructor map); // 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; // device_execute_interface overrides virtual void execute_run() override; @@ -63,7 +63,7 @@ class mb91f155a_device : public fr_cpu_device mb91f155a_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); private: - void internal_map(address_map &map); + void internal_map(address_map &map) ATTR_COLD; }; // device type declaration diff --git a/src/devices/cpu/g65816/g65816.h b/src/devices/cpu/g65816/g65816.h index 39b8d1e304b..246b12a9380 100644 --- a/src/devices/cpu/g65816/g65816.h +++ b/src/devices/cpu/g65816/g65816.h @@ -70,8 +70,8 @@ class g65816_device : public cpu_device, public g65816_disassembler::config g65816_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, int cpu_type, address_map_constructor internal); // 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; // device_execute_interface overrides virtual uint32_t execute_min_cycles() const noexcept override { return 1; } @@ -1570,11 +1570,11 @@ class _5a22_device : public g65816_device void set_5a22_map(); - void _5a22_map(address_map &map); + void _5a22_map(address_map &map) ATTR_COLD; 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; // device_state_interface overrides virtual void state_import(const device_state_entry &entry) override; diff --git a/src/devices/cpu/gigatron/gigatron.h b/src/devices/cpu/gigatron/gigatron.h index ddf87eb195a..23c505c24c9 100644 --- a/src/devices/cpu/gigatron/gigatron.h +++ b/src/devices/cpu/gigatron/gigatron.h @@ -35,8 +35,8 @@ class gigatron_cpu_device : public cpu_device 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; // device_execute_interface overrides virtual uint32_t execute_min_cycles() const noexcept override { return 1; } diff --git a/src/devices/cpu/h16/hd641016.h b/src/devices/cpu/h16/hd641016.h index 1c93f5a2ff3..bc73b3f68f7 100644 --- a/src/devices/cpu/h16/hd641016.h +++ b/src/devices/cpu/h16/hd641016.h @@ -89,8 +89,8 @@ class hd641016_device : public cpu_device 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; // device_execute_interface overrides virtual u64 execute_clocks_to_cycles(u64 clocks) const noexcept override { return (clocks + 2 - 1) / 2; } @@ -110,8 +110,8 @@ class hd641016_device : public cpu_device u8 global_bank_mask() const { return BIT(m_bmr, 4) ? 7 : (2 << (m_bmr & 3)) - 1; } // internal maps - void ram_map(address_map &map); - void io_map(address_map &map); + void ram_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; // address spaces address_space_config m_program_config; diff --git a/src/devices/cpu/h6280/h6280.h b/src/devices/cpu/h6280/h6280.h index 37b863dcf1f..f1b327b47b8 100644 --- a/src/devices/cpu/h6280/h6280.h +++ b/src/devices/cpu/h6280/h6280.h @@ -75,10 +75,10 @@ class h6280_device : public cpu_device, public device_mixer_interface }; // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; - virtual void device_stop() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; + virtual void device_stop() override ATTR_COLD; // device_execute_interface overrides virtual uint32_t execute_min_cycles() const noexcept override; @@ -355,7 +355,7 @@ class h6280_device : public cpu_device, public device_mixer_interface uint8_t m_io_buffer; /* last value written to the PSG, timer, and interrupt pages */ // internal registers - void internal_map(address_map &map); + void internal_map(address_map &map) ATTR_COLD; uint8_t irq_status_r(offs_t offset); void irq_status_w(offs_t offset, uint8_t data); diff --git a/src/devices/cpu/h8/gt913.h b/src/devices/cpu/h8/gt913.h index e2d27bdf8a3..35fba6e4901 100644 --- a/src/devices/cpu/h8/gt913.h +++ b/src/devices/cpu/h8/gt913.h @@ -61,11 +61,11 @@ class gt913_device : public h8_device, public device_mixer_interface { virtual space_config_vector memory_space_config() const override; - virtual void device_add_mconfig(machine_config &config) override; - void map(address_map &map); + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + void map(address_map &map) ATTR_COLD; - 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 do_exec_full() override; virtual void do_exec_partial() override; diff --git a/src/devices/cpu/h8/h8.h b/src/devices/cpu/h8/h8.h index a359855026a..c1606e28217 100644 --- a/src/devices/cpu/h8/h8.h +++ b/src/devices/cpu/h8/h8.h @@ -136,8 +136,8 @@ class h8_device : public cpu_device, public device_nvram_interface { // device_t implementation virtual void device_config_complete() override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; // device_execute_interface implementation virtual bool cpu_is_interruptible() const override { return true; } diff --git a/src/devices/cpu/h8/h83002.h b/src/devices/cpu/h8/h83002.h index 19bbbc12bc0..c0d0dc53f19 100644 --- a/src/devices/cpu/h8/h83002.h +++ b/src/devices/cpu/h8/h83002.h @@ -87,11 +87,11 @@ class h83002_device : public h8h_device { virtual void irq_setup() override; virtual void internal_update(u64 current_time) override; virtual void notify_standby(int state) override; - virtual void device_add_mconfig(machine_config &config) override; - void map(address_map &map); + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + void map(address_map &map) ATTR_COLD; - 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 execute_set_input(int inputnum, int state) override; }; diff --git a/src/devices/cpu/h8/h83003.h b/src/devices/cpu/h8/h83003.h index 34597c07048..9953da73aab 100644 --- a/src/devices/cpu/h8/h83003.h +++ b/src/devices/cpu/h8/h83003.h @@ -97,11 +97,11 @@ class h83003_device : public h8h_device { virtual void irq_setup() override; virtual void internal_update(u64 current_time) override; virtual void notify_standby(int state) override; - virtual void device_add_mconfig(machine_config &config) override; - void map(address_map &map); + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + void map(address_map &map) ATTR_COLD; - 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 execute_set_input(int inputnum, int state) override; }; diff --git a/src/devices/cpu/h8/h83006.h b/src/devices/cpu/h8/h83006.h index 883452ce23c..70075658da0 100644 --- a/src/devices/cpu/h8/h83006.h +++ b/src/devices/cpu/h8/h83006.h @@ -80,11 +80,11 @@ class h83006_device : public h8h_device { virtual void irq_setup() override; virtual void internal_update(u64 current_time) override; virtual void notify_standby(int state) override; - virtual void device_add_mconfig(machine_config &config) override; - void map(address_map &map); + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + void map(address_map &map) ATTR_COLD; - 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 execute_set_input(int inputnum, int state) override; }; diff --git a/src/devices/cpu/h8/h83008.h b/src/devices/cpu/h8/h83008.h index 30f62b539d0..bd859e134f3 100644 --- a/src/devices/cpu/h8/h83008.h +++ b/src/devices/cpu/h8/h83008.h @@ -77,11 +77,11 @@ class h83008_device : public h8h_device { virtual void irq_setup() override; virtual void internal_update(u64 current_time) override; virtual void notify_standby(int state) override; - virtual void device_add_mconfig(machine_config &config) override; - void map(address_map &map); + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + void map(address_map &map) ATTR_COLD; - 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 execute_set_input(int inputnum, int state) override; }; diff --git a/src/devices/cpu/h8/h83032.h b/src/devices/cpu/h8/h83032.h index 0075625b325..f920205c047 100644 --- a/src/devices/cpu/h8/h83032.h +++ b/src/devices/cpu/h8/h83032.h @@ -87,11 +87,11 @@ class h83032_device : public h8h_device { virtual void irq_setup() override; virtual void internal_update(u64 current_time) override; virtual void notify_standby(int state) override; - virtual void device_add_mconfig(machine_config &config) override; - void map(address_map &map); + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + void map(address_map &map) ATTR_COLD; - 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 execute_set_input(int inputnum, int state) override; }; diff --git a/src/devices/cpu/h8/h83042.h b/src/devices/cpu/h8/h83042.h index c14bb217232..78db0b10568 100644 --- a/src/devices/cpu/h8/h83042.h +++ b/src/devices/cpu/h8/h83042.h @@ -95,11 +95,11 @@ class h83042_device : public h8h_device { virtual void irq_setup() override; virtual void internal_update(u64 current_time) override; virtual void notify_standby(int state) override; - virtual void device_add_mconfig(machine_config &config) override; - void map(address_map &map); + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + void map(address_map &map) ATTR_COLD; - 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 execute_set_input(int inputnum, int state) override; }; diff --git a/src/devices/cpu/h8/h83048.h b/src/devices/cpu/h8/h83048.h index 668e7996446..52c726cb09e 100644 --- a/src/devices/cpu/h8/h83048.h +++ b/src/devices/cpu/h8/h83048.h @@ -99,11 +99,11 @@ class h83048_device : public h8h_device { virtual void irq_setup() override; virtual void internal_update(u64 current_time) override; virtual void notify_standby(int state) override; - virtual void device_add_mconfig(machine_config &config) override; - void map(address_map &map); + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + void map(address_map &map) ATTR_COLD; - 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 execute_set_input(int inputnum, int state) override; }; diff --git a/src/devices/cpu/h8/h83217.h b/src/devices/cpu/h8/h83217.h index ba1cc717fd0..99f3e9c76d1 100644 --- a/src/devices/cpu/h8/h83217.h +++ b/src/devices/cpu/h8/h83217.h @@ -83,11 +83,11 @@ class h83217_device : public h8_device { virtual void irq_setup() override; virtual void internal_update(u64 current_time) override; virtual void notify_standby(int state) override; - virtual void device_add_mconfig(machine_config &config) override; - void map(address_map &map); + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + void map(address_map &map) ATTR_COLD; - 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 execute_set_input(int inputnum, int state) override; }; diff --git a/src/devices/cpu/h8/h8325.h b/src/devices/cpu/h8/h8325.h index de711cadd2a..7673cdd20f4 100644 --- a/src/devices/cpu/h8/h8325.h +++ b/src/devices/cpu/h8/h8325.h @@ -83,11 +83,11 @@ class h8325_device : public h8_device { virtual void irq_setup() override; virtual void internal_update(u64 current_time) override; virtual void notify_standby(int state) override; - virtual void device_add_mconfig(machine_config &config) override; - void map(address_map &map); + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + void map(address_map &map) ATTR_COLD; - 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 execute_set_input(int inputnum, int state) override; }; diff --git a/src/devices/cpu/h8/h83337.h b/src/devices/cpu/h8/h83337.h index 0a732b2e11a..60463f22c9a 100644 --- a/src/devices/cpu/h8/h83337.h +++ b/src/devices/cpu/h8/h83337.h @@ -93,11 +93,11 @@ class h83337_device : public h8_device { virtual void irq_setup() override; virtual void internal_update(u64 current_time) override; virtual void notify_standby(int state) override; - virtual void device_add_mconfig(machine_config &config) override; - void map(address_map &map); + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + void map(address_map &map) ATTR_COLD; - 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 execute_set_input(int inputnum, int state) override; }; diff --git a/src/devices/cpu/h8/h8_adc.h b/src/devices/cpu/h8/h8_adc.h index 2ea510e6c4a..66f9da51d58 100644 --- a/src/devices/cpu/h8/h8_adc.h +++ b/src/devices/cpu/h8/h8_adc.h @@ -77,8 +77,8 @@ class h8_adc_device : public device_t { bool m_analog_powered, m_adtrg; u64 m_next_event; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; void sampling(); void start_conversion(); diff --git a/src/devices/cpu/h8/h8_dma.h b/src/devices/cpu/h8/h8_dma.h index 20858847082..0a4426cf29e 100644 --- a/src/devices/cpu/h8/h8_dma.h +++ b/src/devices/cpu/h8/h8_dma.h @@ -76,8 +76,8 @@ class h8gen_dma_device : public device_t { required_device m_cpu; optional_device_array m_dmach; - 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 active_channels() const = 0; @@ -125,8 +125,8 @@ class h8s_dma_device : public h8gen_dma_device u8 m_dmawer, m_dmatcr; u16 m_dmabcr; - void device_start() override; - void device_reset() override; + void device_start() override ATTR_COLD; + void device_reset() override ATTR_COLD; u8 active_channels() const override; }; @@ -192,8 +192,8 @@ class h8gen_dma_channel_device : public device_t { u16 m_ioar[2], m_etcr[2]; bool m_dreq; - 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 dma_done(int subchannel); virtual int channel_mode() const = 0; @@ -230,8 +230,8 @@ class h8h_dma_channel_device : public h8gen_dma_channel_device bool m_has_adc; bool m_targets_sci1; - void device_start() override; - void device_reset() override; + void device_start() override ATTR_COLD; + void device_reset() override ATTR_COLD; void dma_done(int subchannel) override; int channel_mode() const override; @@ -260,8 +260,8 @@ class h8s_dma_channel_device : public h8gen_dma_channel_device u16 m_dmacr; required_device m_dma; - void device_start() override; - void device_reset() override; + void device_start() override ATTR_COLD; + void device_reset() override ATTR_COLD; void dma_done(int subchannel) override; int channel_mode() const override; diff --git a/src/devices/cpu/h8/h8_dtc.h b/src/devices/cpu/h8/h8_dtc.h index 8709fe72ede..0d5d1e70dcf 100644 --- a/src/devices/cpu/h8/h8_dtc.h +++ b/src/devices/cpu/h8/h8_dtc.h @@ -61,8 +61,8 @@ class h8_dtc_device : public device_t { int m_irq; h8_dtc_state m_states[92]; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; u8 m_dtcer[6], m_dtvecr; int m_cur_active_vector; diff --git a/src/devices/cpu/h8/h8_intc.h b/src/devices/cpu/h8/h8_intc.h index d5ef4c5574f..7b39e1953a3 100644 --- a/src/devices/cpu/h8/h8_intc.h +++ b/src/devices/cpu/h8/h8_intc.h @@ -63,8 +63,8 @@ class h8_intc_device : public device_t { h8_intc_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 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 void get_priority(int vect, int &icr_pri, int &ipr_pri) const; void update_irq_state(); @@ -106,8 +106,8 @@ class h8h_intc_device : public h8_intc_device { h8h_intc_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 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 void get_priority(int vect, int &icr_pri, int &ipr_pri) const override; }; @@ -132,8 +132,8 @@ class h8s_intc_device : public h8h_intc_device { static const int vector_to_slot[]; u8 m_ipr[11]; - 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 get_priority(int vect, int &icr_pri, int &ipr_pri) const override; virtual void update_irq_types() override; @@ -151,7 +151,7 @@ class gt913_intc_device : public h8_intc_device { void clear_interrupt(int vector); protected: - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; }; DECLARE_DEVICE_TYPE(H8_INTC, h8_intc_device) diff --git a/src/devices/cpu/h8/h8_port.h b/src/devices/cpu/h8/h8_port.h index 0416fd423f0..5f6b46368b2 100644 --- a/src/devices/cpu/h8/h8_port.h +++ b/src/devices/cpu/h8/h8_port.h @@ -50,8 +50,8 @@ class h8_port_device : public device_t { u8 m_dr; s32 m_last_output; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; void update_output(); }; diff --git a/src/devices/cpu/h8/h8_sci.h b/src/devices/cpu/h8/h8_sci.h index 5a3671e63ab..53a319ecefe 100644 --- a/src/devices/cpu/h8/h8_sci.h +++ b/src/devices/cpu/h8/h8_sci.h @@ -122,8 +122,8 @@ class h8_sci_device : public device_t { std::string m_last_clock_message; - void device_start() override; - void device_reset() override; + void device_start() override ATTR_COLD; + void device_reset() override ATTR_COLD; TIMER_CALLBACK_MEMBER(sync_tick); diff --git a/src/devices/cpu/h8/h8_timer16.h b/src/devices/cpu/h8/h8_timer16.h index 2051bbe59fd..aa807bd85e6 100644 --- a/src/devices/cpu/h8/h8_timer16.h +++ b/src/devices/cpu/h8/h8_timer16.h @@ -116,8 +116,8 @@ class h8_timer16_channel_device : public device_t { h8_timer16_channel_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 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; void update_counter(u64 cur_time = 0); void recalc_event(u64 cur_time = 0); @@ -158,8 +158,8 @@ class h8325_timer16_channel_device : public h8_timer16_channel_device { virtual void isr_update(u8 value) override; virtual u8 isr_to_sr() const override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: u8 m_tcsr; @@ -271,7 +271,7 @@ class h8_timer16_device : public device_t { u8 m_default_tstr; u8 m_tstr; - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void device_reset_after_children() override; }; diff --git a/src/devices/cpu/h8/h8_timer8.h b/src/devices/cpu/h8/h8_timer8.h index 65468a76a5d..9ed4a06d6e4 100644 --- a/src/devices/cpu/h8/h8_timer8.h +++ b/src/devices/cpu/h8/h8_timer8.h @@ -98,8 +98,8 @@ class h8_timer8_channel_device : public device_t { h8_timer8_channel_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 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; void update_counter(u64 cur_time = 0, u64 delta = 0); void recalc_event(u64 cur_time = 0); diff --git a/src/devices/cpu/h8/h8_watchdog.h b/src/devices/cpu/h8/h8_watchdog.h index 7516816f3bc..73fedbce1b1 100644 --- a/src/devices/cpu/h8/h8_watchdog.h +++ b/src/devices/cpu/h8/h8_watchdog.h @@ -39,8 +39,8 @@ class h8_watchdog_device : public device_t { void rst_w(offs_t offset, u16 data, u16 mem_mask = ~0); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: enum { diff --git a/src/devices/cpu/h8/h8s2245.h b/src/devices/cpu/h8/h8s2245.h index fd01c71b928..5f2d489a7b7 100644 --- a/src/devices/cpu/h8/h8s2245.h +++ b/src/devices/cpu/h8/h8s2245.h @@ -103,11 +103,11 @@ class h8s2245_device : public h8s2000_device { virtual void irq_setup() override; virtual void internal_update(u64 current_time) override; virtual void notify_standby(int state) override; - virtual void device_add_mconfig(machine_config &config) override; - void map(address_map &map); + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + void map(address_map &map) ATTR_COLD; - 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 execute_set_input(int inputnum, int state) override; }; diff --git a/src/devices/cpu/h8/h8s2319.h b/src/devices/cpu/h8/h8s2319.h index 357887d859b..6b82f963afc 100644 --- a/src/devices/cpu/h8/h8s2319.h +++ b/src/devices/cpu/h8/h8s2319.h @@ -103,11 +103,11 @@ class h8s2319_device : public h8s2000_device { virtual void irq_setup() override; virtual void internal_update(u64 current_time) override; virtual void notify_standby(int state) override; - virtual void device_add_mconfig(machine_config &config) override; - void map(address_map &map); + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + void map(address_map &map) ATTR_COLD; - 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 execute_set_input(int inputnum, int state) override; }; diff --git a/src/devices/cpu/h8/h8s2329.h b/src/devices/cpu/h8/h8s2329.h index e0c6bace852..ac1940cfb62 100644 --- a/src/devices/cpu/h8/h8s2329.h +++ b/src/devices/cpu/h8/h8s2329.h @@ -47,8 +47,8 @@ class h8s2321_device : public h8s2319_device { required_device m_port6; virtual void notify_standby(int state) override; - virtual void device_add_mconfig(machine_config &config) override; - void map_2321(address_map &map); + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + void map_2321(address_map &map) ATTR_COLD; }; class h8s2320_device : public h8s2321_device { @@ -66,10 +66,10 @@ class h8s2320_device : public h8s2321_device { h8s2320_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, u32 rom_size, u32 ram_size); - virtual void device_add_mconfig(machine_config &config) override; - void map_2320(address_map &map); + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + void map_2320(address_map &map) ATTR_COLD; - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void execute_set_input(int inputnum, int state) override; }; diff --git a/src/devices/cpu/h8/h8s2357.h b/src/devices/cpu/h8/h8s2357.h index 3217f8dbf87..7d7fc415b72 100644 --- a/src/devices/cpu/h8/h8s2357.h +++ b/src/devices/cpu/h8/h8s2357.h @@ -111,11 +111,11 @@ class h8s2357_device : public h8s2000_device { virtual void irq_setup() override; virtual void internal_update(u64 current_time) override; virtual void notify_standby(int state) override; - virtual void device_add_mconfig(machine_config &config) override; - void map(address_map &map); + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + void map(address_map &map) ATTR_COLD; - 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 execute_set_input(int inputnum, int state) override; }; diff --git a/src/devices/cpu/h8/h8s2600.h b/src/devices/cpu/h8/h8s2600.h index cb54f24d85a..86b5089e628 100644 --- a/src/devices/cpu/h8/h8s2600.h +++ b/src/devices/cpu/h8/h8s2600.h @@ -24,8 +24,8 @@ class h8s2600_device : public h8s2000_device { virtual std::unique_ptr create_disassembler() override; - 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 do_exec_full() override; virtual void do_exec_partial() override; diff --git a/src/devices/cpu/h8/h8s2655.h b/src/devices/cpu/h8/h8s2655.h index d92a1e8c5bc..80a55b2d234 100644 --- a/src/devices/cpu/h8/h8s2655.h +++ b/src/devices/cpu/h8/h8s2655.h @@ -102,11 +102,11 @@ class h8s2655_device : public h8s2600_device { virtual void irq_setup() override; virtual void internal_update(u64 current_time) override; virtual void notify_standby(int state) override; - virtual void device_add_mconfig(machine_config &config) override; - void map(address_map &map); + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + void map(address_map &map) ATTR_COLD; - 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 execute_set_input(int inputnum, int state) override; }; diff --git a/src/devices/cpu/h8/swx00.h b/src/devices/cpu/h8/swx00.h index 76d2006e913..256dc497625 100644 --- a/src/devices/cpu/h8/swx00.h +++ b/src/devices/cpu/h8/swx00.h @@ -120,7 +120,7 @@ class swx00_device : public h8s2000_device, public device_mixer_interface { virtual void irq_setup() override; virtual void internal_update(u64 current_time) override; virtual void notify_standby(int state) override; - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual space_config_vector memory_space_config() const override; u16 s_r(offs_t offset); @@ -140,10 +140,10 @@ class swx00_device : public h8s2000_device, public device_mixer_interface { void cmah_default_w(u8 data); void txd_default_w(u8 data); - void map(address_map &map); + void map(address_map &map) ATTR_COLD; - 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 execute_set_input(int inputnum, int state) override; }; diff --git a/src/devices/cpu/h8500/h8500.h b/src/devices/cpu/h8500/h8500.h index 6c5fb06a597..ea71f0e70d3 100644 --- a/src/devices/cpu/h8500/h8500.h +++ b/src/devices/cpu/h8500/h8500.h @@ -25,8 +25,8 @@ class h8500_device : public cpu_device // device-level overrides virtual void device_config_complete() override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; // device_execute_interface overrides virtual u64 execute_clocks_to_cycles(u64 clocks) const noexcept override { return (clocks + 2 - 1) / 2; } diff --git a/src/devices/cpu/h8500/h8510.h b/src/devices/cpu/h8500/h8510.h index 1cbefe87aa3..48db52b624f 100644 --- a/src/devices/cpu/h8500/h8510.h +++ b/src/devices/cpu/h8500/h8510.h @@ -14,7 +14,7 @@ class h8510_device : public h8500_device h8510_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); private: - void internal_map(address_map &map); + void internal_map(address_map &map) ATTR_COLD; }; class hd6415108_device : public h8510_device diff --git a/src/devices/cpu/h8500/h8520.h b/src/devices/cpu/h8500/h8520.h index 7f66327c796..749de392b69 100644 --- a/src/devices/cpu/h8500/h8520.h +++ b/src/devices/cpu/h8500/h8520.h @@ -14,7 +14,7 @@ class h8520_device : public h8500_device h8520_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); private: - void internal_map(address_map &map); + void internal_map(address_map &map) ATTR_COLD; }; class hd6435208_device : public h8520_device diff --git a/src/devices/cpu/h8500/h8532.h b/src/devices/cpu/h8500/h8532.h index 71ec652a465..d508ea09092 100644 --- a/src/devices/cpu/h8500/h8532.h +++ b/src/devices/cpu/h8500/h8532.h @@ -14,7 +14,7 @@ class h8532_device : public h8500_device h8532_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); private: - void internal_map(address_map &map); + void internal_map(address_map &map) ATTR_COLD; }; class hd6435328_device : public h8532_device diff --git a/src/devices/cpu/h8500/h8534.h b/src/devices/cpu/h8500/h8534.h index 2fad7985a70..9c7deea594c 100644 --- a/src/devices/cpu/h8500/h8534.h +++ b/src/devices/cpu/h8500/h8534.h @@ -15,10 +15,10 @@ class h8534_device : public h8500_device h8534_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); h8534_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, address_map_constructor map); - void register_field_map(address_map &map); + void register_field_map(address_map &map) ATTR_COLD; private: - void internal_map(address_map &map); + void internal_map(address_map &map) ATTR_COLD; }; class hd6435348_device : public h8534_device @@ -41,7 +41,7 @@ class h8536_device : public h8534_device h8536_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); private: - void internal_map(address_map &map); + void internal_map(address_map &map) ATTR_COLD; }; class hd6435368_device : public h8536_device diff --git a/src/devices/cpu/hcd62121/hcd62121.h b/src/devices/cpu/hcd62121/hcd62121.h index 44adef412a6..51404f95318 100644 --- a/src/devices/cpu/hcd62121/hcd62121.h +++ b/src/devices/cpu/hcd62121/hcd62121.h @@ -36,8 +36,8 @@ class hcd62121_cpu_device : public cpu_device }; // 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; // device_execute_interface overrides virtual u32 execute_min_cycles() const noexcept override { return 4; } diff --git a/src/devices/cpu/hd61700/hd61700.h b/src/devices/cpu/hd61700/hd61700.h index 4ffb595f2f8..922817e7dd0 100644 --- a/src/devices/cpu/hd61700/hd61700.h +++ b/src/devices/cpu/hd61700/hd61700.h @@ -45,8 +45,8 @@ class hd61700_cpu_device : public cpu_device 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; // device_execute_interface overrides virtual uint32_t execute_min_cycles() const noexcept override { return 1; } diff --git a/src/devices/cpu/hmcs40/hmcs40.cpp b/src/devices/cpu/hmcs40/hmcs40.cpp index 38e150b9575..a28c40904ca 100644 --- a/src/devices/cpu/hmcs40/hmcs40.cpp +++ b/src/devices/cpu/hmcs40/hmcs40.cpp @@ -53,13 +53,20 @@ DEFINE_DEVICE_TYPE(HD44820, hd44820_device, "hd44820", "Hitachi HD44820") // CMO DEFINE_DEVICE_TYPE(HD44828, hd44828_device, "hd44828", "Hitachi HD44828") // CMOS, low-power // HMCS46C/CL, 42 pins, 32 I/O lines, 4096x10 ROM, 256x4 RAM (no PMOS version exists) -//DEFINE_DEVICE_TYPE(HD44840, hd44840_device, "hd44840", "Hitachi HD44840") // CMOS -//DEFINE_DEVICE_TYPE(HD44848, hd44848_device, "hd44848", "Hitachi HD44848") // CMOS, low-power +DEFINE_DEVICE_TYPE(HD44840, hd44840_device, "hd44840", "Hitachi HD44840") // CMOS +DEFINE_DEVICE_TYPE(HD44848, hd44848_device, "hd44848", "Hitachi HD44848") // CMOS, low-power // HMCS47A/C/CL, 54 pins(QFP) or 64 pins(DIP), 44 I/O lines, 4096x10 ROM, 256x4 RAM -//DEFINE_DEVICE_TYPE(HD38870, hd38870_device, "hd38870", "Hitachi HD38870") // PMOS -//DEFINE_DEVICE_TYPE(HD44860, hd44860_device, "hd44860", "Hitachi HD44860") // CMOS -//DEFINE_DEVICE_TYPE(HD44868, hd44868_device, "hd44868", "Hitachi HD44868") // CMOS, low-power +DEFINE_DEVICE_TYPE(HD38870, hd38870_device, "hd38870", "Hitachi HD38870") // PMOS +DEFINE_DEVICE_TYPE(HD44860, hd44860_device, "hd44860", "Hitachi HD44860") // CMOS +DEFINE_DEVICE_TYPE(HD44868, hd44868_device, "hd44868", "Hitachi HD44868") // CMOS, low-power + +// LCD-III, 64 pins, HMCS44C core, LCDC with 4 commons and 32 segments +//DEFINE_DEVICE_TYPE(HD44790, hd44790_device, "hd44790", "Hitachi HD44790") // CMOS +//DEFINE_DEVICE_TYPE(HD44795, hd44795_device, "hd44795", "Hitachi HD44795") // CMOS, low-power + +// LCD-IV, 64 pins, HMCS46C core, LCDC with 4 commons and 32 segments +//DEFINE_DEVICE_TYPE(HD613901, hd613901_device, "hd613901", "Hitachi HD613901") // CMOS //------------------------------------------------- @@ -139,6 +146,33 @@ hd44828_device::hd44828_device(const machine_config &mconfig, const char *tag, d { } +hmcs46_cpu_device::hmcs46_cpu_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, u16 polarity) : + hmcs40_cpu_device(mconfig, type, tag, owner, clock, HMCS46_FAMILY, polarity, 4, 12, 12, address_map_constructor(FUNC(hmcs46_cpu_device::program_2k), this), 8, address_map_constructor(FUNC(hmcs46_cpu_device::data_256x4), this)) +{ } + +hd44840_device::hd44840_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock) : + hmcs46_cpu_device(mconfig, HD44840, tag, owner, clock, IS_CMOS) +{ } +hd44848_device::hd44848_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock) : + hmcs46_cpu_device(mconfig, HD44848, tag, owner, clock, IS_CMOS) +{ } + + +hmcs47_cpu_device::hmcs47_cpu_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, u16 polarity) : + hmcs40_cpu_device(mconfig, type, tag, owner, clock, HMCS47_FAMILY, polarity, 4, 12, 12, address_map_constructor(FUNC(hmcs47_cpu_device::program_2k), this), 8, address_map_constructor(FUNC(hmcs47_cpu_device::data_256x4), this)) +{ } + +hd38870_device::hd38870_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock) : + hmcs47_cpu_device(mconfig, HD38870, tag, owner, clock, IS_PMOS) +{ } +hd44860_device::hd44860_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock) : + hmcs47_cpu_device(mconfig, HD44860, tag, owner, clock, IS_CMOS) +{ } +hd44868_device::hd44868_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock) : + hmcs47_cpu_device(mconfig, HD44868, tag, owner, clock, IS_CMOS) +{ } + + //------------------------------------------------- // initialization //------------------------------------------------- @@ -163,7 +197,7 @@ void hmcs40_cpu_device::device_start() m_pc = 0; m_prev_pc = 0; - m_page = 0; + m_pc_upper = 0; m_a = 0; m_b = 0; m_x = 0; @@ -195,7 +229,7 @@ void hmcs40_cpu_device::device_start() save_item(NAME(m_pc)); save_item(NAME(m_prev_pc)); - save_item(NAME(m_page)); + save_item(NAME(m_pc_upper)); save_item(NAME(m_a)); save_item(NAME(m_b)); save_item(NAME(m_x)); @@ -249,6 +283,10 @@ void hmcs40_cpu_device::device_reset() // all I/O ports set to input reset_io(); + + // HMCS46/47 R70 set to 1 (already the default on CMOS devices) + if (m_family == HMCS46_FAMILY || m_family == HMCS47_FAMILY) + m_r[7] |= 1; } @@ -281,10 +319,19 @@ std::unique_ptr hmcs40_cpu_device::create_disassembler() // internal memory maps //------------------------------------------------- -// On HMCS42/3/4/5, only half of the ROM address range contains user-executable code, -// there is up to 128 bytes of pattern data in the 2nd half. The 2nd half also includes -// a couple of pages with factory test code by Hitachi, only executable when MCU test -// mode is enabled externally. This data can still be accessed with the P opcode. +/* + +On HMCS42/43/44/45, only half of the ROM address range contains user-executable +code, there is up to 128 bytes of pattern data in the 2nd half. The 2nd half +also includes a couple of pages with factory test code by Hitachi, only executable +when MCU test mode is enabled externally (TEST pin). This data can still be accessed +with the P opcode. + +On HMCS46/47, the 2nd half can be jumped to with a bank bit from R70. These MCUs +have 2 more banks with factory test code, but that part of the ROM is only accessible +under MCU test mode. + +*/ void hmcs40_cpu_device::program_1k(address_map &map) { @@ -310,6 +357,11 @@ void hmcs40_cpu_device::data_160x4(address_map &map) map(0xc0, 0xcf).ram().mirror(0x30); } +void hmcs40_cpu_device::data_256x4(address_map &map) +{ + map(0x00, 0xff).ram(); +} + device_memory_interface::space_config_vector hmcs40_cpu_device::memory_space_config() const { return space_config_vector { @@ -453,6 +505,44 @@ void hmcs45_cpu_device::write_r(u8 index, u8 data) logerror("ineffective write to port R%d = $%X @ $%04X\n", index, data & 0xf, m_prev_pc); } +// HMCS46: +// R0-R3 are i/o, R4,R5,R7 are extra registers, no R6 +// D0-D15 are i/o + +u8 hmcs46_cpu_device::read_r(u8 index) +{ + index &= 7; + + if (index == 6) + logerror("read from unknown port R%d @ $%04X\n", index, m_prev_pc); + + return hmcs40_cpu_device::read_r(index); +} + +void hmcs46_cpu_device::write_r(u8 index, u8 data) +{ + index &= 7; + + if (index != 6) + hmcs40_cpu_device::write_r(index, data); + else + logerror("ineffective write to port R%d = $%X @ $%04X\n", index, data & 0xf, m_prev_pc); +} + +// HMCS47: +// R0-R5 are i/o, R6 is output-only, R7 is an extra register +// D0-D15 are i/o + +u8 hmcs47_cpu_device::read_r(u8 index) +{ + index &= 7; + + if (index == 6) + logerror("read from output port R%d @ $%04X\n", index, m_prev_pc); + + return hmcs40_cpu_device::read_r(index); +} + //------------------------------------------------- // interrupt/timer @@ -506,23 +596,13 @@ void hmcs40_cpu_device::execute_set_input(int line, int state) // clock tc if it is in counter mode if (m_cf && line == 1) - increment_tc(); + clock_timer(); } m_int[line] = state; } -void hmcs40_cpu_device::cycle() -{ - m_icount--; - m_prescaler = (m_prescaler + 1) & 0x3f; - - // timer prescaler overflow - if (m_prescaler == 0 && !m_cf) - increment_tc(); -} - -void hmcs40_cpu_device::increment_tc() +void hmcs40_cpu_device::clock_timer() { // increment timer/counter m_tc = (m_tc + 1) & 0xf; @@ -535,6 +615,15 @@ void hmcs40_cpu_device::increment_tc() } } +void hmcs40_cpu_device::clock_prescaler() +{ + m_prescaler = (m_prescaler + 1) & 0x3f; + + // timer prescaler overflow + if (m_prescaler == 0 && !m_cf) + clock_timer(); +} + //------------------------------------------------- // execute @@ -555,6 +644,12 @@ inline void hmcs40_cpu_device::increment_pc() m_pc = (m_pc & ~mask) | ((m_pc << 1 | fb) & mask); } +void hmcs40_cpu_device::cycle() +{ + m_icount--; + clock_prescaler(); +} + void hmcs40_cpu_device::execute_run() { // in HLT state, the internal clock is not running @@ -568,7 +663,7 @@ void hmcs40_cpu_device::execute_run() { // LPU is handled 1 cycle later if ((m_prev_op & 0x7e0) == 0x340) - m_pc = ((m_page << 6) | (m_pc & 0x3f)) & m_pcmask; + m_pc = ((m_pc_upper << 6) | (m_pc & 0x3f)) & m_pcmask; // remember previous state m_prev_op = m_op; diff --git a/src/devices/cpu/hmcs40/hmcs40.h b/src/devices/cpu/hmcs40/hmcs40.h index c1c24d81b0d..c81ac756829 100644 --- a/src/devices/cpu/hmcs40/hmcs40.h +++ b/src/devices/cpu/hmcs40/hmcs40.h @@ -106,8 +106,8 @@ class hmcs40_cpu_device : public cpu_device hmcs40_cpu_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, int family, u16 polarity, int stack_levels, int pcwidth, int prgwidth, address_map_constructor program, int datawidth, address_map_constructor data); // 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; // device_execute_interface implementation virtual u64 execute_clocks_to_cycles(u64 clocks) const noexcept override { return (clocks + 4 - 1) / 4; } // 4 cycles per machine cycle @@ -125,10 +125,11 @@ class hmcs40_cpu_device : public cpu_device virtual void state_string_export(const device_state_entry &entry, std::string &str) const override; // memory maps - void program_1k(address_map &map); - void program_2k(address_map &map); - void data_160x4(address_map &map); - void data_80x4(address_map &map); + void program_1k(address_map &map) ATTR_COLD; + void program_2k(address_map &map) ATTR_COLD; + void data_80x4(address_map &map) ATTR_COLD; + void data_160x4(address_map &map) ATTR_COLD; + void data_256x4(address_map &map) ATTR_COLD; address_space_config m_program_config; address_space_config m_data_config; @@ -159,7 +160,7 @@ class hmcs40_cpu_device : public cpu_device u16 m_pc; // program counter u16 m_prev_pc; - u8 m_page; // LPU prepared page + u8 m_pc_upper; // LPU prepared upper bits of PC u8 m_a; // 4-bit accumulator u8 m_b; // 4-bit B register u8 m_x; // 1/3/4-bit X register @@ -188,6 +189,7 @@ class hmcs40_cpu_device : public cpu_device // misc internal helpers void increment_pc(); + void cycle(); u8 ram_r(); void ram_w(u8 data); @@ -200,9 +202,9 @@ class hmcs40_cpu_device : public cpu_device virtual int read_d(u8 index); virtual void write_d(u8 index, int state); - void cycle(); - void increment_tc(); void take_interrupt(); + void clock_timer(); + void clock_prescaler(); // opcode handlers void op_illegal(); @@ -409,6 +411,57 @@ class hd44828_device : public hmcs45_cpu_device }; +class hmcs46_cpu_device : public hmcs40_cpu_device +{ +protected: + hmcs46_cpu_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, u16 polarity); + + // overrides + virtual u8 read_r(u8 index) override; + virtual void write_r(u8 index, u8 data) override; +}; + +class hd44840_device : public hmcs46_cpu_device +{ +public: + hd44840_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); +}; + +class hd44848_device : public hmcs46_cpu_device +{ +public: + hd44848_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); +}; + + +class hmcs47_cpu_device : public hmcs40_cpu_device +{ +protected: + hmcs47_cpu_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, u16 polarity); + + // overrides + virtual u8 read_r(u8 index) override; +}; + +class hd38870_device : public hmcs47_cpu_device +{ +public: + hd38870_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); +}; + +class hd44860_device : public hmcs47_cpu_device +{ +public: + hd44860_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); +}; + +class hd44868_device : public hmcs47_cpu_device +{ +public: + hd44868_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); +}; + + DECLARE_DEVICE_TYPE(HD38750, hd38750_device) DECLARE_DEVICE_TYPE(HD38755, hd38755_device) DECLARE_DEVICE_TYPE(HD44750, hd44750_device) @@ -424,4 +477,12 @@ DECLARE_DEVICE_TYPE(HD38825, hd38825_device) DECLARE_DEVICE_TYPE(HD44820, hd44820_device) DECLARE_DEVICE_TYPE(HD44828, hd44828_device) +DECLARE_DEVICE_TYPE(HD44840, hd44840_device) +DECLARE_DEVICE_TYPE(HD44848, hd44848_device) + +DECLARE_DEVICE_TYPE(HD38870, hd38870_device) +DECLARE_DEVICE_TYPE(HD44860, hd44860_device) +DECLARE_DEVICE_TYPE(HD44868, hd44868_device) + + #endif // MAME_CPU_HMCS40_HMCS40_H diff --git a/src/devices/cpu/hmcs40/hmcs40d.cpp b/src/devices/cpu/hmcs40/hmcs40d.cpp index e16ff7a2bf9..251a31cdfa5 100644 --- a/src/devices/cpu/hmcs40/hmcs40d.cpp +++ b/src/devices/cpu/hmcs40/hmcs40d.cpp @@ -4,7 +4,8 @@ Hitachi HMCS40 MCU family disassembler - NOTE: start offset(basepc) is $3F, not 0 + NOTE: start offset(basepc) is $3F, not 0. In other words, if you want a full + disasm from MAME's debugger: dasm x.asm,3f,1000 */ @@ -16,7 +17,7 @@ hmcs40_disassembler::hmcs40_disassembler() { // init lfsr pc lut - for (u32 i = 0, pc = 0; i < 0x40; i++) + for (u32 i = 0, pc = 0x3f; i < 0x40; i++) { m_l2r[i] = pc; m_r2l[pc] = i; diff --git a/src/devices/cpu/hmcs40/hmcs40d.h b/src/devices/cpu/hmcs40/hmcs40d.h index a02d7e87a1b..f67ba8f3b9f 100644 --- a/src/devices/cpu/hmcs40/hmcs40d.h +++ b/src/devices/cpu/hmcs40/hmcs40d.h @@ -18,8 +18,9 @@ class hmcs40_disassembler : public util::disasm_interface virtual ~hmcs40_disassembler(); virtual u32 opcode_alignment() const override { return 1; } - virtual u32 interface_flags() const override { return NONLINEAR_PC | PAGED; } + virtual u32 interface_flags() const override { return NONLINEAR_PC | PAGED2LEVEL; } virtual u32 page_address_bits() const override { return 6; } + virtual u32 page2_address_bits() const override { return 5; } virtual offs_t pc_linear_to_real(offs_t pc) const override { return (pc & ~0x3f) | m_l2r[pc & 0x3f]; } virtual offs_t pc_real_to_linear(offs_t pc) const override { return (pc & ~0x3f) | m_r2l[pc & 0x3f]; } virtual offs_t disassemble(std::ostream &stream, offs_t pc, const data_buffer &opcodes, const data_buffer ¶ms) override; diff --git a/src/devices/cpu/hmcs40/hmcs40op.cpp b/src/devices/cpu/hmcs40/hmcs40op.cpp index 17e307ca6fa..713dd111777 100644 --- a/src/devices/cpu/hmcs40/hmcs40op.cpp +++ b/src/devices/cpu/hmcs40/hmcs40op.cpp @@ -465,7 +465,11 @@ void hmcs40_cpu_device::op_lpu() if (m_s) { m_block_int = true; - m_page = m_op & 0x1f; + m_pc_upper = m_op & 0x1f; + + // on HMCS46/47, also latches bank from R70 + if (m_family == HMCS46_FAMILY || m_family == HMCS47_FAMILY) + m_pc_upper |= ~m_r[7] << 5 & 0x20; } else m_op |= 0x400; // indicate unhandled LPU diff --git a/src/devices/cpu/hmcs400/hmcs400.cpp b/src/devices/cpu/hmcs400/hmcs400.cpp index 01e5ace61dd..2acae27c75c 100644 --- a/src/devices/cpu/hmcs400/hmcs400.cpp +++ b/src/devices/cpu/hmcs400/hmcs400.cpp @@ -428,13 +428,13 @@ void hmcs400_cpu_device::reset_io() m_d_mask = m_d = 0x000f; m_write_d(m_d_mask); - for (int i = 0; i < 10; i++) + for (int i = 0; i < 11; i++) { // R0-R2 and RA are high-voltage u8 mask = (i >= 3 && i <= 9) ? 0xf : 0; m_r_mask[i] = m_r[i] = mask; - m_write_r[i](i, mask); + m_write_r[i](i, mask, 0xf); } } @@ -449,7 +449,7 @@ u8 hmcs400_cpu_device::read_r(u8 index) } u8 mask = (index == 10) ? 3 : 0xf; // port A is 2-bit - u8 inp = m_read_r[index](index); + u8 inp = m_read_r[index](index, mask); if (m_read_r[index].isunset()) { @@ -495,7 +495,7 @@ void hmcs400_cpu_device::write_r(u8 index, u8 data) out = (out & ~pmr_mask) | (m_r_mask[index] & pmr_mask); } - m_write_r[index](index, out); + m_write_r[index](index, out, 0xf); } int hmcs400_cpu_device::read_d(u8 index) diff --git a/src/devices/cpu/hmcs400/hmcs400.h b/src/devices/cpu/hmcs400/hmcs400.h index 6b26b38227a..cea24878743 100644 --- a/src/devices/cpu/hmcs400/hmcs400.h +++ b/src/devices/cpu/hmcs400/hmcs400.h @@ -93,8 +93,8 @@ class hmcs400_cpu_device : public cpu_device, public device_nvram_interface hmcs400_cpu_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, u32 rom_size, u32 ram_size); // 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; // device_nvram_interface implementation virtual void nvram_default() override; @@ -117,8 +117,8 @@ class hmcs400_cpu_device : public cpu_device, public device_nvram_interface virtual void state_string_export(const device_state_entry &entry, std::string &str) const override; // memory maps - void program_map(address_map &map); - void data_map(address_map &map); + void program_map(address_map &map) ATTR_COLD; + void data_map(address_map &map) ATTR_COLD; address_space_config m_program_config; address_space_config m_data_config; @@ -156,8 +156,8 @@ class hmcs400_cpu_device : public cpu_device, public device_nvram_interface bool m_standby; // standby mode (SBY opcode) bool m_stop; // stop mode (STOP opcode) - u8 m_r[10]; // R outputs state - u8 m_r_mask[10]; + u8 m_r[11]; // R outputs state + u8 m_r_mask[11]; u16 m_d; // D pins state u16 m_d_mask; diff --git a/src/devices/cpu/hmcs400/hmcs400op.cpp b/src/devices/cpu/hmcs400/hmcs400op.cpp index ec7643f9193..045261fb534 100644 --- a/src/devices/cpu/hmcs400/hmcs400op.cpp +++ b/src/devices/cpu/hmcs400/hmcs400op.cpp @@ -34,12 +34,12 @@ void hmcs400_cpu_device::pop_stack() m_ca = BIT(data, 7); m_st = BIT(data, 15); } - m_pc = (data & 0x7f00) >> 1 | (data & 0x7f); + m_pc = (~data & 0x7f00) >> 1 | (~data & 0x7f); } void hmcs400_cpu_device::push_stack() { - u16 data = (m_pc << 1 & 0x7f00) | (m_pc & 0x7f) | m_ca << 7 | m_st << 15; + u16 data = (~m_pc << 1 & 0x7f00) | (~m_pc & 0x7f) | m_ca << 7 | m_st << 15; m_sp = (m_sp | 0x3c0) & 0x3ff; for (int i = 0; i < 4; i++) diff --git a/src/devices/cpu/hpc/hpc.h b/src/devices/cpu/hpc/hpc.h index 5f73a0ee2e6..5bacbbe8211 100644 --- a/src/devices/cpu/hpc/hpc.h +++ b/src/devices/cpu/hpc/hpc.h @@ -25,8 +25,8 @@ class hpc_device : public cpu_device hpc_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, address_map_constructor map); // 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; // device_execute_interface overrides virtual void execute_run() override; @@ -63,7 +63,7 @@ class hpc46003_device : public hpc_device virtual std::unique_ptr create_disassembler() override; private: - void internal_map(address_map &map); + void internal_map(address_map &map) ATTR_COLD; }; class hpc46104_device : public hpc_device @@ -77,7 +77,7 @@ class hpc46104_device : public hpc_device virtual std::unique_ptr create_disassembler() override; private: - void internal_map(address_map &map); + void internal_map(address_map &map) ATTR_COLD; }; diff --git a/src/devices/cpu/hphybrid/hphybrid.h b/src/devices/cpu/hphybrid/hphybrid.h index 0ab0071f267..89ea5d93561 100644 --- a/src/devices/cpu/hphybrid/hphybrid.h +++ b/src/devices/cpu/hphybrid/hphybrid.h @@ -98,8 +98,8 @@ class hp_hybrid_cpu_device : public cpu_device hp_hybrid_cpu_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, uint8_t addrwidth); // 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; // device_execute_interface overrides virtual uint32_t execute_min_cycles() const noexcept override { return m_r_cycles; } @@ -253,8 +253,8 @@ class hp_5061_3001_cpu_device : public hp_5061_3011_cpu_device void set_9845_boot_mode(bool mode) { m_boot_mode = mode; } protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; // TODO: fix virtual uint32_t execute_max_cycles() const noexcept override { return 237; } // FMP 15 @@ -278,7 +278,7 @@ class hp_09825_67907_cpu_device : public hp_hybrid_cpu_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_execute_interface overrides // TODO: fix diff --git a/src/devices/cpu/ht1130/ht1130.h b/src/devices/cpu/ht1130/ht1130.h index 1f2f9b030b6..befb3ef07a3 100644 --- a/src/devices/cpu/ht1130/ht1130.h +++ b/src/devices/cpu/ht1130/ht1130.h @@ -41,8 +41,8 @@ class ht1130_device : public cpu_device protected: ht1130_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, address_map_constructor data); - 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 execute_run() override; virtual bool execute_input_edge_triggered(int inputnum) const noexcept override { return inputnum == HT1130_EXT_WAKEUP_LINE; } @@ -53,8 +53,8 @@ class ht1130_device : public cpu_device virtual space_config_vector memory_space_config() const override; - void internal_map(address_map &map); - void internal_data_map(address_map &map); + void internal_map(address_map &map) ATTR_COLD; + void internal_data_map(address_map &map) ATTR_COLD; void tempram_w(offs_t offset, u8 data); void displayram_w(offs_t offset, u8 data); @@ -130,11 +130,11 @@ class ht1190_device : public ht1130_device ht1190_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual u64 get_segs(u8 coms) override; private: - void internal_data_map_ht1190(address_map &map); + void internal_data_map_ht1190(address_map &map) ATTR_COLD; }; diff --git a/src/devices/cpu/i386/athlon.h b/src/devices/cpu/i386/athlon.h index 9d7acbbe6da..fe1f84026de 100644 --- a/src/devices/cpu/i386/athlon.h +++ b/src/devices/cpu/i386/athlon.h @@ -22,8 +22,8 @@ class athlonxp_device : public pentium_device virtual void cache_writeback() override; virtual void cache_invalidate() override; virtual void cache_clean() override; - 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 enter_smm() override; virtual void leave_smm() override; diff --git a/src/devices/cpu/i386/i386.h b/src/devices/cpu/i386/i386.h index e165e8e2606..4a3ad0cfbd0 100644 --- a/src/devices/cpu/i386/i386.h +++ b/src/devices/cpu/i386/i386.h @@ -45,8 +45,8 @@ class i386_device : public cpu_device, public device_vtlb_interface, public i386 i386_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, int program_data_width, int program_addr_width, int io_data_width); // 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 device_debug_setup() override; // device_execute_interface overrides @@ -1596,8 +1596,8 @@ class i486_device : public i386_device protected: i486_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; }; class i486dx4_device : public i486_device @@ -1607,7 +1607,7 @@ class i486dx4_device : public i486_device i486dx4_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; }; @@ -1624,8 +1624,8 @@ class pentium_device : public i386_device virtual void execute_set_input(int inputnum, int state) override; virtual uint64_t opcode_rdmsr(bool &valid_msr) override; virtual void opcode_wrmsr(uint64_t data, bool &valid_msr) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; }; @@ -1636,8 +1636,8 @@ class pentium_mmx_device : public pentium_device pentium_mmx_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; }; @@ -1648,8 +1648,8 @@ class mediagx_device : public i386_device mediagx_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; }; @@ -1664,8 +1664,8 @@ class pentium_pro_device : public pentium_device virtual uint64_t opcode_rdmsr(bool &valid_msr) override; virtual void opcode_wrmsr(uint64_t data, bool &valid_msr) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; }; @@ -1676,8 +1676,8 @@ class pentium2_device : public pentium_pro_device pentium2_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; }; @@ -1688,8 +1688,8 @@ class pentium3_device : public pentium_pro_device pentium3_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - 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 opcode_cpuid() override; }; @@ -1704,8 +1704,8 @@ class pentium4_device : public pentium_device protected: virtual uint64_t opcode_rdmsr(bool &valid_msr) override; virtual void opcode_wrmsr(uint64_t data, bool &valid_msr) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; }; diff --git a/src/devices/cpu/i8008/i8008.h b/src/devices/cpu/i8008/i8008.h index 5b7882f7958..2e6701306a4 100644 --- a/src/devices/cpu/i8008/i8008.h +++ b/src/devices/cpu/i8008/i8008.h @@ -25,8 +25,8 @@ class i8008_device : public cpu_device }; // 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; // device_execute_interface overrides virtual uint32_t execute_min_cycles() const noexcept override; diff --git a/src/devices/cpu/i8085/i8085.h b/src/devices/cpu/i8085/i8085.h index 6b8755210c6..23772be54a1 100644 --- a/src/devices/cpu/i8085/i8085.h +++ b/src/devices/cpu/i8085/i8085.h @@ -66,8 +66,8 @@ class i8085a_cpu_device : public cpu_device // device-level overrides virtual void device_config_complete() override; virtual void device_clock_changed() override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; // device_execute_interface overrides virtual u32 execute_min_cycles() const noexcept override { return 4; } diff --git a/src/devices/cpu/i8089/i8089.h b/src/devices/cpu/i8089/i8089.h index abb278625b8..3ebb3bc61af 100644 --- a/src/devices/cpu/i8089/i8089.h +++ b/src/devices/cpu/i8089/i8089.h @@ -52,9 +52,9 @@ class i8089_device : public cpu_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void device_config_complete() override; - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; // device_execute_interface overrides virtual void execute_run() override; @@ -74,7 +74,7 @@ class i8089_device : public cpu_device virtual void state_string_export(const device_state_entry &entry, std::string &str) const override; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: bool sysbus_width() const { return BIT(m_sysbus, 0); } diff --git a/src/devices/cpu/i8089/i8089_channel.h b/src/devices/cpu/i8089/i8089_channel.h index 8d002598b7b..a2481a97fb1 100644 --- a/src/devices/cpu/i8089/i8089_channel.h +++ b/src/devices/cpu/i8089/i8089_channel.h @@ -76,8 +76,8 @@ class i8089_channel_device : public device_t 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; private: diff --git a/src/devices/cpu/i86/i186.h b/src/devices/cpu/i86/i186.h index 72a3eb008e8..34a95ef1309 100644 --- a/src/devices/cpu/i86/i186.h +++ b/src/devices/cpu/i86/i186.h @@ -69,8 +69,8 @@ class i80186_cpu_device : public i8086_common_cpu_device virtual uint64_t execute_clocks_to_cycles(uint64_t clocks) const noexcept override { return (clocks / 2); } virtual uint64_t execute_cycles_to_clocks(uint64_t cycles) const noexcept override { return (cycles * 2); } virtual void execute_run() override; - 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 uint8_t fetch() override; uint32_t update_pc() { return m_pc = (m_sregs[CS] << 4) + m_ip; } diff --git a/src/devices/cpu/i86/i286.h b/src/devices/cpu/i86/i286.h index 383d0a6adb9..cceb66fc931 100644 --- a/src/devices/cpu/i86/i286.h +++ b/src/devices/cpu/i86/i286.h @@ -90,8 +90,8 @@ class i80286_cpu_device : public i8086_common_cpu_device typedef device_delegate a20_cb; virtual void execute_run() override; - virtual void device_reset() override; - virtual void device_start() override; + virtual void device_reset() override ATTR_COLD; + virtual void device_start() override ATTR_COLD; // device_state_interface overrides virtual void state_import(const device_state_entry &entry) override; diff --git a/src/devices/cpu/i86/i86.h b/src/devices/cpu/i86/i86.h index 917cac19dea..5f67265638e 100644 --- a/src/devices/cpu/i86/i86.h +++ b/src/devices/cpu/i86/i86.h @@ -111,8 +111,8 @@ class i8086_common_cpu_device : public cpu_device, public i386_disassembler::con i8086_common_cpu_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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; // device_execute_interface overrides virtual uint32_t execute_min_cycles() const noexcept override { return 1; } @@ -358,7 +358,7 @@ class i8086_cpu_device : public i8086_common_cpu_device i8086_cpu_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, int data_bus_size); virtual void execute_run() override; - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual uint8_t fetch() override; inline address_space *sreg_to_space(int sreg) const; virtual uint8_t read_byte(uint32_t addr) override; diff --git a/src/devices/cpu/i860/i860.h b/src/devices/cpu/i860/i860.h index 942880a3834..fcfa1ff875f 100644 --- a/src/devices/cpu/i860/i860.h +++ b/src/devices/cpu/i860/i860.h @@ -62,8 +62,8 @@ class i860_cpu_device : public cpu_device // 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; // device_execute_interface overrides virtual uint32_t execute_min_cycles() const noexcept override { return 1; } diff --git a/src/devices/cpu/i960/i960.h b/src/devices/cpu/i960/i960.h index ca7678c9418..12d71531d74 100644 --- a/src/devices/cpu/i960/i960.h +++ b/src/devices/cpu/i960/i960.h @@ -81,8 +81,8 @@ class i960_cpu_device : public cpu_device enum { I960_RCACHE_SIZE = 4 }; // 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; // device_execute_interface overrides virtual uint32_t execute_min_cycles() const noexcept override { return 1; } /* ???? TODO: Exact timing unknown */ diff --git a/src/devices/cpu/ie15/ie15.h b/src/devices/cpu/ie15/ie15.h index a0885ce55f1..771e2c0b326 100644 --- a/src/devices/cpu/ie15/ie15.h +++ b/src/devices/cpu/ie15/ie15.h @@ -27,8 +27,8 @@ class ie15_cpu_device : public cpu_device }; // 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; // device_execute_interface overrides virtual uint32_t execute_min_cycles() const noexcept override; diff --git a/src/devices/cpu/jaguar/jaguar.h b/src/devices/cpu/jaguar/jaguar.h index 34dff918fbe..245304f0774 100644 --- a/src/devices/cpu/jaguar/jaguar.h +++ b/src/devices/cpu/jaguar/jaguar.h @@ -67,8 +67,8 @@ class jaguar_cpu_device : public cpu_device jaguar_cpu_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, u8 version, bool isdsp, address_map_constructor io_map); // 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 device_post_load() override; // device_execute_interface overrides @@ -234,7 +234,7 @@ class jaguar_cpu_device : public cpu_device void init_tables(); // I/O internal regs - void io_common_map(address_map &map); + void io_common_map(address_map &map) ATTR_COLD; // TODO: the m_io* stubs are conventionally given for allowing a correct register setup from vanilla 68k. // This is yet another reason about needing a bus device dispatcher for this system. u32 m_io_end; @@ -271,7 +271,7 @@ class jaguargpu_cpu_device : public jaguar_cpu_device // construction/destruction jaguargpu_cpu_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); - void io_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; protected: virtual void execute_run() override; @@ -288,7 +288,7 @@ class jaguardsp_cpu_device : public jaguar_cpu_device // construction/destruction jaguardsp_cpu_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); - void io_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; protected: virtual void execute_run() override; diff --git a/src/devices/cpu/ks0164/ks0164.h b/src/devices/cpu/ks0164/ks0164.h index 9cf77af7274..083f4bdad97 100644 --- a/src/devices/cpu/ks0164/ks0164.h +++ b/src/devices/cpu/ks0164/ks0164.h @@ -38,8 +38,8 @@ class ks0164_cpu_device : public cpu_device u16 m_r[8]; u32 m_irq; - 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 uint32_t execute_min_cycles() const noexcept override; virtual uint32_t execute_max_cycles() const noexcept override; virtual void execute_run() override; diff --git a/src/devices/cpu/lc8670/lc8670.h b/src/devices/cpu/lc8670/lc8670.h index a6c443958bc..2f92c6c6e6c 100644 --- a/src/devices/cpu/lc8670/lc8670.h +++ b/src/devices/cpu/lc8670/lc8670.h @@ -82,7 +82,7 @@ class lc8670_cpu_device : public cpu_device template void set_lcd_update_cb(T &&... args) { m_lcd_update_func.set(std::forward(args)...); } - void lc8670_internal_map(address_map &map); + void lc8670_internal_map(address_map &map) ATTR_COLD; protected: enum { @@ -91,8 +91,8 @@ class lc8670_cpu_device : public cpu_device }; // 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; // device_execute_interface overrides virtual uint32_t execute_min_cycles() const noexcept override { return 1; } diff --git a/src/devices/cpu/lh5801/lh5801.h b/src/devices/cpu/lh5801/lh5801.h index 5f77658ab47..841708d26f3 100644 --- a/src/devices/cpu/lh5801/lh5801.h +++ b/src/devices/cpu/lh5801/lh5801.h @@ -71,8 +71,8 @@ class lh5801_cpu_device : public cpu_device 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; // device_execute_interface overrides virtual uint64_t execute_clocks_to_cycles(uint64_t clocks) const noexcept override { return (clocks + 2 - 1) / 2; } diff --git a/src/devices/cpu/lr35902/lr35902.h b/src/devices/cpu/lr35902/lr35902.h index 578e975cfce..d4fcd3a706f 100644 --- a/src/devices/cpu/lr35902/lr35902.h +++ b/src/devices/cpu/lr35902/lr35902.h @@ -64,8 +64,8 @@ class lr35902_cpu_device : public cpu_device 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; // device_execute_interface overrides virtual uint32_t execute_min_cycles() const noexcept override { return 1; } diff --git a/src/devices/cpu/m37710/m37710.h b/src/devices/cpu/m37710/m37710.h index da888632f3e..9b634daf6b2 100644 --- a/src/devices/cpu/m37710/m37710.h +++ b/src/devices/cpu/m37710/m37710.h @@ -130,12 +130,12 @@ class m37710_cpu_device : public cpu_device, public m7700_disassembler::config auto an7_cb() { return m_analog_cb[7].bind(); } protected: - void ad_register_map(address_map &map); - void uart0_register_map(address_map &map); - void uart1_register_map(address_map &map); - void timer_register_map(address_map &map); - void timer_6channel_register_map(address_map &map); - void irq_register_map(address_map &map); + void ad_register_map(address_map &map) ATTR_COLD; + void uart0_register_map(address_map &map) ATTR_COLD; + void uart1_register_map(address_map &map) ATTR_COLD; + void timer_register_map(address_map &map) ATTR_COLD; + void timer_6channel_register_map(address_map &map) ATTR_COLD; + void irq_register_map(address_map &map) ATTR_COLD; // internal registers template uint8_t port_r(offs_t offset); @@ -202,8 +202,8 @@ class m37710_cpu_device : public cpu_device, public m7700_disassembler::config m37710_cpu_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, address_map_constructor map_delegate); // 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; // device_execute_interface overrides virtual uint64_t execute_clocks_to_cycles(uint64_t clocks) const noexcept override { return (clocks + 2 - 1) / 2; } @@ -2147,7 +2147,7 @@ class m37702s1_device : public m37710_cpu_device // construction/destruction m37702s1_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - void map(address_map &map); + void map(address_map &map) ATTR_COLD; }; class m37702m2_device : public m37710_cpu_device @@ -2157,7 +2157,7 @@ class m37702m2_device : public m37710_cpu_device m37702m2_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: m37702m2_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); - void map(address_map &map); + void map(address_map &map) ATTR_COLD; }; class m37710s4_device : public m37710_cpu_device @@ -2166,7 +2166,7 @@ class m37710s4_device : public m37710_cpu_device // construction/destruction m37710s4_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - void map(address_map &map); + void map(address_map &map) ATTR_COLD; }; class m37720s1_device : public m37710_cpu_device @@ -2175,7 +2175,7 @@ class m37720s1_device : public m37710_cpu_device // construction/destruction m37720s1_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - void map(address_map &map); + void map(address_map &map) ATTR_COLD; }; class m37730s2_device : public m37710_cpu_device @@ -2184,7 +2184,7 @@ class m37730s2_device : public m37710_cpu_device // construction/destruction m37730s2_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - void map(address_map &map); + void map(address_map &map) ATTR_COLD; }; class m37732s4_device : public m37710_cpu_device @@ -2193,7 +2193,7 @@ class m37732s4_device : public m37710_cpu_device // construction/destruction m37732s4_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - void map(address_map &map); + void map(address_map &map) ATTR_COLD; }; DECLARE_DEVICE_TYPE(M37702M2, m37702m2_device) diff --git a/src/devices/cpu/m6502/deco16.h b/src/devices/cpu/m6502/deco16.h index 63494f6b1d4..60c0e2a4eaf 100644 --- a/src/devices/cpu/m6502/deco16.h +++ b/src/devices/cpu/m6502/deco16.h @@ -28,7 +28,7 @@ class deco16_device : public m6502_device { address_space_config io_config; virtual space_config_vector memory_space_config() const override; - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; #define O(o) void o ## _full(); void o ## _partial() diff --git a/src/devices/cpu/m6502/gew12.h b/src/devices/cpu/m6502/gew12.h index aeb4db9c040..bc4f2a8ac59 100644 --- a/src/devices/cpu/m6502/gew12.h +++ b/src/devices/cpu/m6502/gew12.h @@ -21,10 +21,10 @@ class gew12_device : public m6502_mcu_device_base, public device_ template auto port_out_cb() { return m_out_cb[Num].bind(); } protected: - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; - 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 internal_update(u64 current_time) override; using m6502_mcu_device_base::internal_update; @@ -56,7 +56,7 @@ class gew12_device : public m6502_mcu_device_base, public device_ void irq_update(); - void internal_map(address_map &map); + void internal_map(address_map &map) ATTR_COLD; u8 m_irq_pending, m_irq_enable; diff --git a/src/devices/cpu/m6502/gew7.h b/src/devices/cpu/m6502/gew7.h index fd29e7402c8..6a2a6de27eb 100644 --- a/src/devices/cpu/m6502/gew7.h +++ b/src/devices/cpu/m6502/gew7.h @@ -26,10 +26,10 @@ class gew7_device : public m6502_mcu_device_base, public device_m protected: - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; - 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 internal_update(u64 current_time) override; using m6502_mcu_device_base::internal_update; @@ -49,7 +49,7 @@ class gew7_device : public m6502_mcu_device_base, public device_m u8 port_ddr_r(offs_t offset); void port_ddr_w(offs_t offset, u8 data); - void internal_map(address_map &map); + void internal_map(address_map &map) ATTR_COLD; u8 m_timer_stat, m_timer_en; u16 m_timer_count[2]; diff --git a/src/devices/cpu/m6502/m3745x.h b/src/devices/cpu/m6502/m3745x.h index bab3558e0a2..9f7bc5acc93 100644 --- a/src/devices/cpu/m6502/m3745x.h +++ b/src/devices/cpu/m6502/m3745x.h @@ -56,8 +56,8 @@ class m3745x_device : public m740_device m3745x_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, address_map_constructor internal_map); // 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 space_config_vector memory_space_config() const override; // device_execute_interface overrides @@ -90,7 +90,7 @@ class m37450_device : public m3745x_device public: m37450_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - void m37450_map(address_map &map); + void m37450_map(address_map &map) ATTR_COLD; protected: m37450_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); }; diff --git a/src/devices/cpu/m6502/m37640.h b/src/devices/cpu/m6502/m37640.h index 75e3d79494b..efd7077a426 100644 --- a/src/devices/cpu/m6502/m37640.h +++ b/src/devices/cpu/m6502/m37640.h @@ -24,13 +24,13 @@ class m37640_device : public m740_device m37640_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock, u32 mode = 2); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: u32 m_mode; - void map(address_map &map); + void map(address_map &map) ATTR_COLD; }; DECLARE_DEVICE_TYPE(M37640, m37640_device) diff --git a/src/devices/cpu/m6502/m4510.h b/src/devices/cpu/m6502/m4510.h index f357b237f50..c0e21977c2b 100644 --- a/src/devices/cpu/m6502/m4510.h +++ b/src/devices/cpu/m6502/m4510.h @@ -54,8 +54,8 @@ class m4510_device : public m65ce02_device { uint8_t pullup, floating, dir, port, drive; - 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 bool memory_translate(int spacenum, int intention, offs_t &address, address_space *&target_space) override; inline uint32_t map(uint16_t adr) { diff --git a/src/devices/cpu/m6502/m50734.h b/src/devices/cpu/m6502/m50734.h index 94ade4ad585..a8c8a9a093c 100644 --- a/src/devices/cpu/m6502/m50734.h +++ b/src/devices/cpu/m6502/m50734.h @@ -77,8 +77,8 @@ class m50734_device : public m740_device protected: // device_t implementation virtual void device_config_complete() override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; // device_execute_interface implementation virtual u64 execute_clocks_to_cycles(u64 clocks) const noexcept override { return (clocks + 4 - 1) / 4; } @@ -125,7 +125,7 @@ class m50734_device : public m740_device u8 timer_x_r(offs_t offset); void timer_x_w(offs_t offset, u8 data); - void internal_map(address_map &map); + void internal_map(address_map &map) ATTR_COLD; const address_space_config m_data_config; memory_access<16, 0, 0, ENDIANNESS_LITTLE>::specific m_data; diff --git a/src/devices/cpu/m6502/m5074x.h b/src/devices/cpu/m6502/m5074x.h index 2b860a56e83..f466f212573 100644 --- a/src/devices/cpu/m6502/m5074x.h +++ b/src/devices/cpu/m6502/m5074x.h @@ -54,8 +54,8 @@ class m5074x_device : public m740_device m5074x_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, int addrbits, address_map_constructor internal_map); // 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 space_config_vector memory_space_config() const override; // device_execute_interface overrides (TODO: /8 in M50740A/41/52/57/58 SLW mode) @@ -96,7 +96,7 @@ class m50740_device : public m5074x_device m50740_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); private: - void m50740_map(address_map &map); + void m50740_map(address_map &map) ATTR_COLD; }; class m50741_device : public m5074x_device @@ -108,7 +108,7 @@ class m50741_device : public m5074x_device m50741_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); private: - void m50741_map(address_map &map); + void m50741_map(address_map &map) ATTR_COLD; }; class m50753_device : public m5074x_device @@ -130,15 +130,15 @@ class m50753_device : public m5074x_device m50753_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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 execute_set_input(int inputnum, int state) override; virtual TIMER_CALLBACK_MEMBER(adc_complete) override; private: - void m50753_map(address_map &map); + void m50753_map(address_map &map) ATTR_COLD; uint8_t ad_r(); uint8_t in_r(); diff --git a/src/devices/cpu/m6502/m6500_1.h b/src/devices/cpu/m6502/m6500_1.h index 15af85ff417..0736e927ae5 100644 --- a/src/devices/cpu/m6502/m6500_1.h +++ b/src/devices/cpu/m6502/m6500_1.h @@ -77,8 +77,8 @@ class m6500_1_device : public m6502_mcu_device_base M6500_1_LC }; - 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 u64 execute_clocks_to_cycles(u64 clocks) const noexcept override; virtual u64 execute_cycles_to_clocks(u64 cycles) const noexcept override; @@ -109,7 +109,7 @@ class m6500_1_device : public m6502_mcu_device_base TIMER_CALLBACK_MEMBER(set_cntr_in); void toggle_cntr(); - void memory_map(address_map &map); + void memory_map(address_map &map) ATTR_COLD; private: devcb_read8::array<4> m_port_in_cb; diff --git a/src/devices/cpu/m6502/m6502.h b/src/devices/cpu/m6502/m6502.h index 6d490e98af6..112630dfd50 100644 --- a/src/devices/cpu/m6502/m6502.h +++ b/src/devices/cpu/m6502/m6502.h @@ -94,8 +94,8 @@ class m6502_device : public cpu_device { virtual void init(); // 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; // device_execute_interface overrides virtual bool cpu_is_interruptible() const override { return true; } diff --git a/src/devices/cpu/m6502/m6509.h b/src/devices/cpu/m6502/m6509.h index 4359c691c0e..383bfcc178a 100644 --- a/src/devices/cpu/m6502/m6509.h +++ b/src/devices/cpu/m6502/m6509.h @@ -36,8 +36,8 @@ class m6509_device : public m6502_device { virtual void write_9(uint16_t adr, uint8_t val) override; }; - 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 offs_t pc_to_external(u16 pc) override; uint8_t bank_i, bank_y; diff --git a/src/devices/cpu/m6502/m6510.h b/src/devices/cpu/m6502/m6510.h index 6f9bac1fff8..b7d4e585b86 100644 --- a/src/devices/cpu/m6502/m6510.h +++ b/src/devices/cpu/m6502/m6510.h @@ -49,8 +49,8 @@ class m6510_device : public m6502_device { uint8_t pullup, floating, dir, port, drive; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; uint8_t dir_r(); void dir_w(uint8_t data); @@ -79,7 +79,7 @@ class m6508_device : public m6510_device { m6508_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; class mi_6508 : public memory_interface { public: diff --git a/src/devices/cpu/m6502/m65ce02.h b/src/devices/cpu/m6502/m65ce02.h index 6e27c66e010..3cf488208a1 100644 --- a/src/devices/cpu/m6502/m65ce02.h +++ b/src/devices/cpu/m6502/m65ce02.h @@ -30,8 +30,8 @@ class m65ce02_device : public m65c02_device { uint16_t B; /* Zero page base address (always xx00) */ virtual void init() override; - 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 state_import(const device_state_entry &entry) override; virtual void state_string_export(const device_state_entry &entry, std::string &str) const override; diff --git a/src/devices/cpu/m6502/m740.h b/src/devices/cpu/m6502/m740.h index de483675f81..6c64c0af79c 100644 --- a/src/devices/cpu/m6502/m740.h +++ b/src/devices/cpu/m6502/m740.h @@ -37,8 +37,8 @@ class m740_device : public m6502_device, public m740_disassembler::config { }; protected: - 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 state_string_export(const device_state_entry &entry, std::string &str) const override; diff --git a/src/devices/cpu/m6502/r65c19.h b/src/devices/cpu/m6502/r65c19.h index 6f018fb661b..7c53a74ecc4 100644 --- a/src/devices/cpu/m6502/r65c19.h +++ b/src/devices/cpu/m6502/r65c19.h @@ -23,8 +23,8 @@ class r65c19_device : public r65c02_device protected: r65c19_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, address_map_constructor internal_map); - 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 std::unique_ptr create_disassembler() override; virtual void do_exec_full() override; @@ -114,8 +114,8 @@ class c39_device : public r65c19_device virtual space_config_vector memory_space_config() const override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; u8 pbs_r(); void pbs_w(u8 data); @@ -156,7 +156,7 @@ class l2800_device : public c39_device l2800_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); private: - void internal_map(address_map &map); + void internal_map(address_map &map) ATTR_COLD; }; DECLARE_DEVICE_TYPE(R65C19, r65c19_device) diff --git a/src/devices/cpu/m6502/rp2a03.h b/src/devices/cpu/m6502/rp2a03.h index 3f5d952065a..4112bbbe152 100644 --- a/src/devices/cpu/m6502/rp2a03.h +++ b/src/devices/cpu/m6502/rp2a03.h @@ -45,14 +45,14 @@ class rp2a03_device : public rp2a03_core_device, public device_mixer_interface { public: rp2a03_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - void rp2a03_map(address_map &map); + void rp2a03_map(address_map &map) ATTR_COLD; protected: rp2a03_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); required_device m_apu; - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; void apu_irq(int state); uint8_t apu_read_mem(offs_t offset); @@ -64,7 +64,7 @@ class rp2a03g_device : public rp2a03_device rp2a03g_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 void device_add_mconfig(machine_config &config) override ATTR_COLD; }; /* These are the official XTAL values and clock rates used by Nintendo for diff --git a/src/devices/cpu/m6502/st2204.h b/src/devices/cpu/m6502/st2204.h index 63e537309f2..ba4ed6e9ee4 100644 --- a/src/devices/cpu/m6502/st2204.h +++ b/src/devices/cpu/m6502/st2204.h @@ -37,8 +37,8 @@ class st2204_device : public st2xxx_device protected: st2204_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, address_map_constructor int_map); - 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 u16 st2xxx_ireq_mask() const override { return 0x0f7f; } virtual const char *st2xxx_irq_name(int i) const override; @@ -59,7 +59,7 @@ class st2204_device : public st2xxx_device virtual u8 st2xxx_uctr_mask() const override { return 0x0f; } virtual u8 st2xxx_bctr_mask() const override { return 0x87; } - void common_map(address_map &map); + void common_map(address_map &map) ATTR_COLD; private: class mi_st2204 : public mi_st2xxx { @@ -126,7 +126,7 @@ class st2204_device : public st2xxx_device u8 dmem_r(offs_t offset); void dmem_w(offs_t offset, u8 data); - void int_map(address_map &map); + void int_map(address_map &map) ATTR_COLD; devcb_write8 m_dac_callback; @@ -154,7 +154,7 @@ class st2202_device : public st2204_device virtual u8 st2xxx_lctr_mask() const override { return 0xe0; } private: - void int_map(address_map &map); + void int_map(address_map &map) ATTR_COLD; }; DECLARE_DEVICE_TYPE(ST2202, st2202_device) diff --git a/src/devices/cpu/m6502/st2205u.h b/src/devices/cpu/m6502/st2205u.h index bd73e481822..17cc7f18740 100644 --- a/src/devices/cpu/m6502/st2205u.h +++ b/src/devices/cpu/m6502/st2205u.h @@ -61,7 +61,7 @@ class st2205u_base_device : public st2xxx_device, public device_sound_interface protected: st2205u_base_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, address_map_constructor internal_map, int data_bits, bool has_banked_ram); - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; // sound stream update overrides virtual void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; @@ -138,7 +138,7 @@ class st2205u_base_device : public st2xxx_device, public device_sound_interface u8 mulh_r(); void mulh_w(u8 data); - void base_map(address_map &map); + void base_map(address_map &map) ATTR_COLD; sound_stream *m_stream; @@ -183,8 +183,8 @@ class st2205u_device : public st2205u_base_device st2205u_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); protected: - 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 u16 st2xxx_ireq_mask() const override { return 0xdfff; } virtual const char *st2xxx_irq_name(int i) const override; @@ -244,7 +244,7 @@ class st2205u_device : public st2205u_base_device u8 bmem_r(offs_t offset); void bmem_w(offs_t offset, u8 data); - void int_map(address_map &map); + void int_map(address_map &map) ATTR_COLD; u8 m_lbuf; u8 m_lpal_index; @@ -257,7 +257,7 @@ class st2302u_device : public st2205u_base_device st2302u_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual u16 st2xxx_ireq_mask() const override { return 0xd37f; } // ??? virtual const char *st2xxx_irq_name(int i) const override; @@ -309,7 +309,7 @@ class st2302u_device : public st2205u_base_device u8 dmem_r(offs_t offset); void dmem_w(offs_t offset, u8 data); - void int_map(address_map &map); + void int_map(address_map &map) ATTR_COLD; }; DECLARE_DEVICE_TYPE(ST2205U, st2205u_device) diff --git a/src/devices/cpu/m6502/st2xxx.h b/src/devices/cpu/m6502/st2xxx.h index 6f63866f2de..5189cb24a5d 100644 --- a/src/devices/cpu/m6502/st2xxx.h +++ b/src/devices/cpu/m6502/st2xxx.h @@ -88,7 +88,7 @@ class st2xxx_device : public w65c02s_device { st2xxx_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, address_map_constructor internal_map, int data_bits, bool has_banked_ram); virtual space_config_vector memory_space_config() const override; - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; virtual u16 st2xxx_ireq_mask() const = 0; virtual const char *st2xxx_irq_name(int i) const = 0; diff --git a/src/devices/cpu/m6502/xavix.h b/src/devices/cpu/m6502/xavix.h index ccab73f75d4..1afa58d365c 100644 --- a/src/devices/cpu/m6502/xavix.h +++ b/src/devices/cpu/m6502/xavix.h @@ -168,8 +168,8 @@ class xavix_device : public m6502_device { uint32_t adr_with_codebank(uint16_t adr) { return adr | (get_codebank() << 16); } - 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 offs_t pc_to_external(u16 pc) override; virtual void state_import(const device_state_entry &entry) override; virtual void state_string_export(const device_state_entry &entry, std::string &str) const override; diff --git a/src/devices/cpu/m6502/xavix2000.h b/src/devices/cpu/m6502/xavix2000.h index c5e3113e840..1416d919328 100644 --- a/src/devices/cpu/m6502/xavix2000.h +++ b/src/devices/cpu/m6502/xavix2000.h @@ -23,7 +23,7 @@ class xavix2000_device : public xavix_device { virtual void do_exec_full() override; virtual void do_exec_partial() override; - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void state_import(const device_state_entry &entry) override; virtual void state_string_export(const device_state_entry &entry, std::string &str) const override; diff --git a/src/devices/cpu/m6800/m6800.h b/src/devices/cpu/m6800/m6800.h index 427db624aa7..d7db49864e8 100644 --- a/src/devices/cpu/m6800/m6800.h +++ b/src/devices/cpu/m6800/m6800.h @@ -42,8 +42,8 @@ class m6800_cpu_device : public cpu_device m6800_cpu_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, const m6800_cpu_device::op_func *insn, const u8 *cycles, address_map_constructor internal); // 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; // device_execute_interface overrides virtual u32 execute_min_cycles() const noexcept override { return 1; } @@ -375,7 +375,7 @@ class m6802_cpu_device : public m6800_cpu_device bool m_ram_enable; private: - void ram_map(address_map &map); + void ram_map(address_map &map) ATTR_COLD; }; diff --git a/src/devices/cpu/m6800/m6801.h b/src/devices/cpu/m6800/m6801.h index e7799f4807d..98f8e5c081a 100644 --- a/src/devices/cpu/m6800/m6801.h +++ b/src/devices/cpu/m6800/m6801.h @@ -72,8 +72,8 @@ class m6801_cpu_device : public m6800_cpu_device, public device_nvram_interface m6801_cpu_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, const m6800_cpu_device::op_func *insn, const u8 *cycles, address_map_constructor internal, int nvram_bytes); // 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; // device_nvram_interface implementation virtual void nvram_default() override; @@ -128,10 +128,10 @@ class m6801_cpu_device : public m6800_cpu_device, public device_nvram_interface virtual void rcr_w(u8 data); u8 ff_r(); - void m6801_io(address_map &map); - void m6801_mem(address_map &map); - void hd6801_mem(address_map &map); - void m6803_mem(address_map &map); + void m6801_io(address_map &map) ATTR_COLD; + void m6801_mem(address_map &map) ATTR_COLD; + void hd6801_mem(address_map &map) ATTR_COLD; + void m6803_mem(address_map &map) ATTR_COLD; devcb_read8::array<4> m_in_port_func; devcb_write8::array<4> m_out_port_func; @@ -210,12 +210,12 @@ class m6801u4_cpu_device : public m6801_cpu_device protected: // 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; private: - void m6801u4_io(address_map &map); - void m6801u4_mem(address_map &map); + void m6801u4_io(address_map &map) ATTR_COLD; + void m6801u4_mem(address_map &map) ATTR_COLD; virtual void check_irq2() override; virtual void set_timer_event() override; @@ -357,14 +357,14 @@ class hd6301x_cpu_device : public hd6301_cpu_device virtual bool nvram_read(util::read_stream &file) override; virtual bool nvram_write(util::write_stream &file) override; - void hd6301x_io(address_map &map); - void hd6303x_io(address_map &map); - void hd6301x_mem(address_map &map); - void hd6303x_mem(address_map &map); + void hd6301x_io(address_map &map) ATTR_COLD; + void hd6303x_io(address_map &map) ATTR_COLD; + void hd6301x_mem(address_map &map) ATTR_COLD; + void hd6303x_mem(address_map &map) ATTR_COLD; // 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; virtual void write_port2() override; @@ -435,7 +435,7 @@ class hd6301x0_cpu_device : public hd6301x_cpu_device protected: hd6301x0_cpu_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, address_map_constructor internal, int nvram_bytes); - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; }; @@ -464,14 +464,14 @@ class hd6301y_cpu_device : public hd6301x_cpu_device protected: hd6301y_cpu_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, address_map_constructor internal, int nvram_bytes); - void hd6301y_io(address_map &map); - void hd6303y_io(address_map &map); - void hd6301y_mem(address_map &map); - void hd6303y_mem(address_map &map); + void hd6301y_io(address_map &map) ATTR_COLD; + void hd6303y_io(address_map &map) ATTR_COLD; + void hd6301y_mem(address_map &map) ATTR_COLD; + void hd6303y_mem(address_map &map) ATTR_COLD; // 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; // device_execute_interface overrides virtual void execute_set_input(int inputnum, int state) override; diff --git a/src/devices/cpu/m68000/fscpu32.h b/src/devices/cpu/m68000/fscpu32.h index b4e26a122eb..52045e7964f 100644 --- a/src/devices/cpu/m68000/fscpu32.h +++ b/src/devices/cpu/m68000/fscpu32.h @@ -16,7 +16,7 @@ class fscpu32_device : public m68000_musashi_device virtual u32 execute_max_cycles() const noexcept override { return 158; } // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; protected: fscpu32_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock, diff --git a/src/devices/cpu/m68000/m68000.h b/src/devices/cpu/m68000/m68000.h index 3d1b939d814..2279622d896 100644 --- a/src/devices/cpu/m68000/m68000.h +++ b/src/devices/cpu/m68000/m68000.h @@ -40,8 +40,8 @@ class m68000_device : public m68000_base_device virtual void state_import(const device_state_entry &entry) override; virtual void state_string_export(const device_state_entry &entry, std::string &str) const override; virtual space_config_vector memory_space_config() const override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; void set_current_mmu(mmu *m); @@ -188,7 +188,7 @@ class m68000_device : public m68000_base_device void do_post_run(); // cpu space map with autovectors - void default_autovectors_map(address_map &map); + void default_autovectors_map(address_map &map) ATTR_COLD; // helper for interrupt vector access void start_interrupt_vector_lookup(); diff --git a/src/devices/cpu/m68000/m68000mcu.h b/src/devices/cpu/m68000/m68000mcu.h index 07a50ff5977..aa6d8309c44 100644 --- a/src/devices/cpu/m68000/m68000mcu.h +++ b/src/devices/cpu/m68000/m68000mcu.h @@ -28,7 +28,7 @@ class m68000_mcu_device : public m68000_device void internal_update(); virtual void internal_update(uint64_t current_time) = 0; - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; void set_current_interrupt_level(u32 level); }; diff --git a/src/devices/cpu/m68000/m68000musashi.h b/src/devices/cpu/m68000/m68000musashi.h index 0d025d05e44..cea6e63216a 100644 --- a/src/devices/cpu/m68000/m68000musashi.h +++ b/src/devices/cpu/m68000/m68000musashi.h @@ -19,7 +19,7 @@ class m68000msh_device : public m68000_musashi_device virtual u32 execute_max_cycles() const noexcept override { return 158; } // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; }; DECLARE_DEVICE_TYPE(M68000MUSASHI, m68000msh_device) diff --git a/src/devices/cpu/m68000/m68008.h b/src/devices/cpu/m68000/m68008.h index 170d5eeea81..84c3cd91071 100644 --- a/src/devices/cpu/m68000/m68008.h +++ b/src/devices/cpu/m68000/m68008.h @@ -27,7 +27,7 @@ class m68008_device : public m68000_device void set_current_mmu(mmu8 *m); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; protected: // Typed constructor @@ -67,7 +67,7 @@ class m68008fn_device : public m68008_device virtual u32 execute_max_cycles() const noexcept override { return 158; } // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; }; DECLARE_DEVICE_TYPE(M68008, m68008_device) diff --git a/src/devices/cpu/m68000/m68010.h b/src/devices/cpu/m68000/m68010.h index 154ec0160f3..a607e641e3c 100644 --- a/src/devices/cpu/m68000/m68010.h +++ b/src/devices/cpu/m68000/m68010.h @@ -19,7 +19,7 @@ class m68010_device : public m68000_musashi_device virtual u32 execute_max_cycles() const noexcept override { return 158; } // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; }; DECLARE_DEVICE_TYPE(M68010, m68010_device) diff --git a/src/devices/cpu/m68000/m68020.h b/src/devices/cpu/m68000/m68020.h index c582b7fbd0f..d392d59ad59 100644 --- a/src/devices/cpu/m68000/m68020.h +++ b/src/devices/cpu/m68000/m68020.h @@ -19,7 +19,7 @@ class m68ec020_device : public m68000_musashi_device virtual u32 execute_max_cycles() const noexcept override { return 158; } // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; }; class m68020_device : public m68000_musashi_device @@ -34,7 +34,7 @@ class m68020_device : public m68000_musashi_device virtual u32 execute_max_cycles() const noexcept override { return 158; } // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; }; class m68020fpu_device : public m68000_musashi_device @@ -49,7 +49,7 @@ class m68020fpu_device : public m68000_musashi_device virtual u32 execute_max_cycles() const noexcept override { return 158; } // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; }; class m68020pmmu_device : public m68000_musashi_device @@ -64,7 +64,7 @@ class m68020pmmu_device : public m68000_musashi_device virtual u32 execute_max_cycles() const noexcept override { return 158; } // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; }; class m68020hmmu_device : public m68000_musashi_device @@ -81,7 +81,7 @@ class m68020hmmu_device : public m68000_musashi_device virtual bool memory_translate(int space, int intention, offs_t &address, address_space *&target_space) override; // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; }; DECLARE_DEVICE_TYPE(M68EC020, m68ec020_device) diff --git a/src/devices/cpu/m68000/m68030.h b/src/devices/cpu/m68000/m68030.h index 6817c990fa6..08fedda2e17 100644 --- a/src/devices/cpu/m68000/m68030.h +++ b/src/devices/cpu/m68000/m68030.h @@ -19,7 +19,7 @@ class m68ec030_device : public m68000_musashi_device virtual u32 execute_max_cycles() const noexcept override { return 158; } // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; }; class m68030_device : public m68000_musashi_device @@ -34,7 +34,7 @@ class m68030_device : public m68000_musashi_device virtual u32 execute_max_cycles() const noexcept override { return 158; } // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; }; DECLARE_DEVICE_TYPE(M68EC030, m68ec030_device) diff --git a/src/devices/cpu/m68000/m68040.h b/src/devices/cpu/m68000/m68040.h index 538772f7f15..d4a562757dc 100644 --- a/src/devices/cpu/m68000/m68040.h +++ b/src/devices/cpu/m68000/m68040.h @@ -19,7 +19,7 @@ class m68ec040_device : public m68000_musashi_device virtual u32 execute_max_cycles() const noexcept override { return 158; } // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; }; class m68lc040_device : public m68000_musashi_device @@ -34,7 +34,7 @@ class m68lc040_device : public m68000_musashi_device virtual u32 execute_max_cycles() const noexcept override { return 158; } // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; }; class m68040_device : public m68000_musashi_device @@ -49,7 +49,7 @@ class m68040_device : public m68000_musashi_device virtual u32 execute_max_cycles() const noexcept override { return 158; } // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; }; DECLARE_DEVICE_TYPE(M68EC040, m68ec040_device) diff --git a/src/devices/cpu/m68000/m68kcommon.h b/src/devices/cpu/m68000/m68kcommon.h index 604cd97ad52..c92b1926a49 100644 --- a/src/devices/cpu/m68000/m68kcommon.h +++ b/src/devices/cpu/m68000/m68kcommon.h @@ -48,7 +48,7 @@ class m68000_base_device : public cpu_device }; static constexpr u8 autovector(int level) { return 0x18 + level; } - void autovectors_map(address_map &map); + void autovectors_map(address_map &map) ATTR_COLD; void set_cpu_space(int space_id) { m_cpu_space_id = space_id; } void set_interrupt_mixer(bool enable) { m_interrupt_mixer = enable; } diff --git a/src/devices/cpu/m68000/m68kmusashi.h b/src/devices/cpu/m68000/m68kmusashi.h index 53670da8b33..a1e24c0af03 100644 --- a/src/devices/cpu/m68000/m68kmusashi.h +++ b/src/devices/cpu/m68000/m68kmusashi.h @@ -100,9 +100,9 @@ class m68000_musashi_device : public m68000_base_device virtual bool execute_input_edge_triggered(int inputnum) const noexcept override { return inputnum == M68K_LINE_BUSERROR || (m_interrupt_mixer ? inputnum == M68K_IRQ_7 : false); } // device-level overrides - virtual void device_start() override; - virtual void device_reset() override; - virtual void device_stop() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; + virtual void device_stop() override ATTR_COLD; virtual void device_pre_save() override; virtual void device_post_load() override; @@ -295,7 +295,7 @@ class m68000_musashi_device : public m68000_base_device void init_cpu_scc68070(void); void init_cpu_coldfire(void); - void default_autovectors_map(address_map &map); + void default_autovectors_map(address_map &map) ATTR_COLD; void m68ki_exception_interrupt(u32 int_level); diff --git a/src/devices/cpu/m68000/mcf5206e.h b/src/devices/cpu/m68000/mcf5206e.h index 7455a8c3119..425d54504eb 100644 --- a/src/devices/cpu/m68000/mcf5206e.h +++ b/src/devices/cpu/m68000/mcf5206e.h @@ -20,7 +20,7 @@ class mcf5206e_device : public m68000_musashi_device // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; }; DECLARE_DEVICE_TYPE(MCF5206E, mcf5206e_device) diff --git a/src/devices/cpu/m68000/scc68070.h b/src/devices/cpu/m68000/scc68070.h index 031d9542b14..06ab08e20bc 100644 --- a/src/devices/cpu/m68000/scc68070.h +++ b/src/devices/cpu/m68000/scc68070.h @@ -16,7 +16,7 @@ class scc68070_base_device : public m68000_musashi_device virtual u32 execute_max_cycles() const noexcept override { return 158; } // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; scc68070_base_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock, const device_type type, address_map_constructor internal_map); diff --git a/src/devices/cpu/m68000/tmp68301.h b/src/devices/cpu/m68000/tmp68301.h index 2e308afa6ac..c521f6b6c1f 100644 --- a/src/devices/cpu/m68000/tmp68301.h +++ b/src/devices/cpu/m68000/tmp68301.h @@ -33,16 +33,16 @@ class tmp68301_device : public m68000_mcu_device devcb_write16 m_parallel_w_cb; devcb_write_line::array<3> m_tx_cb; - void device_start() override; - void device_reset() override; + void device_start() override ATTR_COLD; + void device_reset() override ATTR_COLD; void execute_set_input(int inputnum, int state) override; void internal_update(uint64_t current_time = 0) override; virtual u8 base_timer_irq() const noexcept { return 4; } - void internal_map(address_map &map); - void cpu_space_map(address_map &map); + void internal_map(address_map &map) ATTR_COLD; + void cpu_space_map(address_map &map) ATTR_COLD; // Address decoder u8 m_amar[2], m_aamr[2], m_aacr[3]; diff --git a/src/devices/cpu/m6805/m6805.h b/src/devices/cpu/m6805/m6805.h index 1153fe87f56..4af76eaf403 100644 --- a/src/devices/cpu/m6805/m6805.h +++ b/src/devices/cpu/m6805/m6805.h @@ -126,8 +126,8 @@ class m6805_base_device : public cpu_device address_map_constructor internal_map); // 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; // device_execute_interface overrides virtual uint32_t execute_min_cycles() const noexcept override; @@ -318,7 +318,7 @@ class m68hc05eg_device : public m6805_base_device protected: // device-level overrides - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; virtual void interrupt_vector() override; @@ -343,7 +343,7 @@ class hd6305_device : public m6805_base_device address_map_constructor internal_map); // device-level overrides - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; virtual void execute_set_input(int inputnum, int state) override; virtual bool execute_input_edge_triggered(int inputnum) const noexcept override { return inputnum == INPUT_LINE_NMI; } @@ -361,7 +361,7 @@ class hd6305v0_device : public hd6305_device hd6305v0_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); private: - void internal_map(address_map &map); + void internal_map(address_map &map) ATTR_COLD; }; // ======================> hd6305y2_device @@ -373,7 +373,7 @@ class hd6305y2_device : public hd6305_device hd6305y2_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); private: - void internal_map(address_map &map); + void internal_map(address_map &map) ATTR_COLD; }; // ======================> hd63705z0_device @@ -385,7 +385,7 @@ class hd63705z0_device : public hd6305_device hd63705z0_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); private: - void internal_map(address_map &map); + void internal_map(address_map &map) ATTR_COLD; }; #define M6805_IRQ_LINE 0 diff --git a/src/devices/cpu/m6805/m68705.h b/src/devices/cpu/m6805/m68705.h index e2406ae1a29..97ee495123b 100644 --- a/src/devices/cpu/m6805/m68705.h +++ b/src/devices/cpu/m6805/m68705.h @@ -168,7 +168,7 @@ class m6805_hmos_device : public m6805_base_device m6805_hmos_device(machine_config const &mconfig, char const *tag, device_t *owner, u32 clock, device_type type, u32 addr_width, unsigned ram_size); void map(address_map &map) { internal_map(map); } - virtual void internal_map(address_map &map); + virtual void internal_map(address_map &map) ATTR_COLD; template void set_port_open_drain(bool value); template void set_port_mask(u8 mask); @@ -187,8 +187,8 @@ class m6805_hmos_device : public m6805_base_device u8 arr_r(); void arr_w(u8 data); - 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 execute_set_input(int inputnum, int state) override; virtual void interrupt() override; @@ -235,7 +235,7 @@ class m6805_mrom_device : public m6805_hmos_device { } - virtual void internal_map(address_map &map) override; + virtual void internal_map(address_map &map) override ATTR_COLD; }; class m68705_device : public m6805_hmos_device, public device_nvram_interface @@ -251,7 +251,7 @@ class m68705_device : public m6805_hmos_device, public device_nvram_interface }; protected: - virtual void internal_map(address_map &map) override; + virtual void internal_map(address_map &map) override ATTR_COLD; m68705_device(machine_config const &mconfig, char const *tag, device_t *owner, u32 clock, device_type type, u32 addr_width, unsigned ram_size); @@ -261,8 +261,8 @@ class m68705_device : public m6805_hmos_device, public device_nvram_interface u8 pcr_r(); void pcr_w(u8 data); - 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 execute_set_input(int inputnum, int state) override; virtual void nvram_default() override; virtual bool nvram_read(util::read_stream &file) override; @@ -293,11 +293,11 @@ class m68705p_device : public m68705_device void pc_w(u8 data) { port_input_w<2>(data); } protected: - virtual void internal_map(address_map &map) override; + virtual void internal_map(address_map &map) override ATTR_COLD; m68705p_device(machine_config const &mconfig, char const *tag, device_t *owner, u32 clock, device_type type); - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual std::unique_ptr create_disassembler() override; }; @@ -311,11 +311,11 @@ class m68705u_device : public m68705_device void pd_w(u8 data) { port_input_w<3>(data); } // TODO: PD6 is also /INT2 protected: - virtual void internal_map(address_map &map) override; + virtual void internal_map(address_map &map) override ATTR_COLD; m68705u_device(machine_config const &mconfig, char const *tag, device_t *owner, u32 clock, device_type type); - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual std::unique_ptr create_disassembler() override; }; @@ -323,11 +323,11 @@ class m68705u_device : public m68705_device class m68705r_device : public m68705u_device { protected: - virtual void internal_map(address_map &map) override; + virtual void internal_map(address_map &map) override ATTR_COLD; m68705r_device(machine_config const &mconfig, char const *tag, device_t *owner, u32 clock, device_type type); - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual std::unique_ptr create_disassembler() override; }; @@ -363,7 +363,7 @@ class m6805r2_device : public m6805_mrom_device void set_timer_external_source(bool external) { m_timer.set_source(external ? m6805_timer::TIMER : m6805_timer::CLOCK_TIMER); } protected: - virtual void internal_map(address_map &map) override; + virtual void internal_map(address_map &map) override ATTR_COLD; }; class m6805r3_device : public m6805_mrom_device @@ -372,7 +372,7 @@ class m6805r3_device : public m6805_mrom_device m6805r3_device(machine_config const &mconfig, char const *tag, device_t *owner, u32 clock); protected: - virtual void internal_map(address_map &map) override; + virtual void internal_map(address_map &map) override ATTR_COLD; }; class m6805u2_device : public m6805_mrom_device @@ -411,7 +411,7 @@ class m68705p3_device : public m68705p_device m68705p3_device(machine_config const &mconfig, char const *tag, device_t *owner, u32 clock); protected: - virtual tiny_rom_entry const *device_rom_region() const override; + virtual tiny_rom_entry const *device_rom_region() const override ATTR_COLD; virtual u8 get_mask_options() const override; }; @@ -422,7 +422,7 @@ class m68705p5_device : public m68705p_device m68705p5_device(machine_config const &mconfig, char const *tag, device_t *owner, u32 clock); protected: - virtual tiny_rom_entry const *device_rom_region() const override; + virtual tiny_rom_entry const *device_rom_region() const override ATTR_COLD; virtual u8 get_mask_options() const override; }; @@ -433,7 +433,7 @@ class m68705r3_device : public m68705r_device m68705r3_device(machine_config const &mconfig, char const *tag, device_t *owner, u32 clock); protected: - virtual tiny_rom_entry const *device_rom_region() const override; + virtual tiny_rom_entry const *device_rom_region() const override ATTR_COLD; virtual u8 get_mask_options() const override; }; @@ -446,7 +446,7 @@ class m68705u3_device : public m68705u_device static auto parent_rom_device_type() { return &M68705R3; } protected: - virtual tiny_rom_entry const *device_rom_region() const override; + virtual tiny_rom_entry const *device_rom_region() const override ATTR_COLD; virtual u8 get_mask_options() const override; }; diff --git a/src/devices/cpu/m6805/m68hc05.h b/src/devices/cpu/m6805/m68hc05.h index 939f71de211..d441c8d7084 100644 --- a/src/devices/cpu/m6805/m68hc05.h +++ b/src/devices/cpu/m6805/m68hc05.h @@ -114,8 +114,8 @@ class m68hc05_device : public m6805_base_device void copcr_w(u8 data); void copr_w(u8 data); - 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 execute_set_input(int inputnum, int state) override; virtual u64 execute_clocks_to_cycles(u64 clocks) const noexcept override; @@ -204,9 +204,9 @@ class m68hc05c4_device : public m68hc05_device m68hc05c4_device(machine_config const &mconfig, char const *tag, device_t *owner, u32 clock); protected: - void c4_map(address_map &map); + void c4_map(address_map &map) ATTR_COLD; - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual std::unique_ptr create_disassembler() override; }; @@ -220,9 +220,9 @@ class m68hc05c8_device : public m68hc05_device m68hc05c8_device(machine_config const &mconfig, char const *tag, device_t *owner, u32 clock); protected: - void c8_map(address_map &map); + void c8_map(address_map &map) ATTR_COLD; - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual std::unique_ptr create_disassembler() override; }; @@ -236,12 +236,12 @@ class m68hc705c4a_device : public m68hc705_device m68hc705c4a_device(machine_config const &mconfig, char const *tag, device_t *owner, u32 clock); protected: - void c4a_map(address_map &map); + void c4a_map(address_map &map) ATTR_COLD; - virtual tiny_rom_entry const *device_rom_region() const override; + virtual tiny_rom_entry const *device_rom_region() const override ATTR_COLD; - 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 std::unique_ptr create_disassembler() override; @@ -260,12 +260,12 @@ class m68hc705c8a_device : public m68hc705_device m68hc705c8a_device(machine_config const &mconfig, char const *tag, device_t *owner, u32 clock); protected: - void c8a_map(address_map &map); + void c8a_map(address_map &map) ATTR_COLD; - virtual tiny_rom_entry const *device_rom_region() const override; + virtual tiny_rom_entry const *device_rom_region() const override ATTR_COLD; - 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 std::unique_ptr create_disassembler() override; @@ -290,10 +290,10 @@ class m68hc705j1a_device : public m68hc705_device m68hc705j1a_device(machine_config const &mconfig, char const *tag, device_t *owner, u32 clock); protected: - void j1a_map(address_map &map); + void j1a_map(address_map &map) ATTR_COLD; - 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 std::unique_ptr create_disassembler() override; }; @@ -307,9 +307,9 @@ class m68hc05l9_device : public m68hc05_device m68hc05l9_device(machine_config const &mconfig, char const *tag, device_t *owner, u32 clock); protected: - void l9_map(address_map &map); + void l9_map(address_map &map) ATTR_COLD; - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual std::unique_ptr create_disassembler() override; }; @@ -323,9 +323,9 @@ class m68hc05l11_device : public m68hc05_device m68hc05l11_device(machine_config const &mconfig, char const *tag, device_t *owner, u32 clock); protected: - void l11_map(address_map &map); + void l11_map(address_map &map) ATTR_COLD; - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual std::unique_ptr create_disassembler() override; }; diff --git a/src/devices/cpu/m6805/m68hc05e1.h b/src/devices/cpu/m6805/m68hc05e1.h index 77e9b2afba7..958c41a26a5 100644 --- a/src/devices/cpu/m6805/m68hc05e1.h +++ b/src/devices/cpu/m6805/m68hc05e1.h @@ -24,8 +24,8 @@ class m68hc05ex_device : public m6805_base_device m68hc05ex_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, int addrbits, address_map_constructor internal_map); // 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 space_config_vector memory_space_config() const override; virtual void interrupt_vector() override; @@ -75,7 +75,7 @@ class m68hc05e1_device : public m68hc05ex_device required_shared_ptr m_internal_ram; private: - void m68hc05e1_map(address_map &map); + void m68hc05e1_map(address_map &map) ATTR_COLD; }; class m68hc05e5_device : public m68hc05e1_device @@ -90,7 +90,7 @@ class m68hc05e5_device : public m68hc05e1_device required_shared_ptr m_internal_ram; private: - void m68hc05e5_map(address_map &map); + void m68hc05e5_map(address_map &map) ATTR_COLD; }; DECLARE_DEVICE_TYPE(M68HC05E1, m68hc05e1_device) diff --git a/src/devices/cpu/m6809/hd6309.h b/src/devices/cpu/m6809/hd6309.h index 1eb8761e101..2cd57f7790c 100644 --- a/src/devices/cpu/m6809/hd6309.h +++ b/src/devices/cpu/m6809/hd6309.h @@ -35,8 +35,8 @@ class hd6309_device : public m6809_base_device hd6309_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock, device_type type, int divider); // 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 device_pre_save() override; virtual void device_post_load() override; diff --git a/src/devices/cpu/m6809/konami.h b/src/devices/cpu/m6809/konami.h index 2e113e5c2c4..08cf3974f47 100644 --- a/src/devices/cpu/m6809/konami.h +++ b/src/devices/cpu/m6809/konami.h @@ -34,7 +34,7 @@ class konami_cpu_device : public m6809_base_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_execute_interface overrides virtual void execute_run() override; diff --git a/src/devices/cpu/m6809/m6809.h b/src/devices/cpu/m6809/m6809.h index 6a05ab16280..dfcc3611868 100644 --- a/src/devices/cpu/m6809/m6809.h +++ b/src/devices/cpu/m6809/m6809.h @@ -54,8 +54,8 @@ class m6809_base_device : public cpu_device }; // 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 device_pre_save() override; virtual void device_post_load() override; diff --git a/src/devices/cpu/m68hc16/cpu16.h b/src/devices/cpu/m68hc16/cpu16.h index ccf9929a896..fee614edbf7 100644 --- a/src/devices/cpu/m68hc16/cpu16.h +++ b/src/devices/cpu/m68hc16/cpu16.h @@ -29,8 +29,8 @@ class cpu16_device : public cpu_device cpu16_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, address_map_constructor map); // 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; // device_execute_interface overrides virtual u32 execute_min_cycles() const noexcept override { return 2; } diff --git a/src/devices/cpu/m68hc16/m68hc16z.h b/src/devices/cpu/m68hc16/m68hc16z.h index e28fb879df1..1265bf792e7 100644 --- a/src/devices/cpu/m68hc16/m68hc16z.h +++ b/src/devices/cpu/m68hc16/m68hc16z.h @@ -15,14 +15,14 @@ class m68hc16z_device : public cpu16_device m68hc16z_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, address_map_constructor map); // 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; - void sim_map(address_map &map); - void sram_map(address_map &map); - void adc_map(address_map &map); - void qsm_map(address_map &map); - void gpt_map(address_map &map); + void sim_map(address_map &map) ATTR_COLD; + void sram_map(address_map &map) ATTR_COLD; + void adc_map(address_map &map) ATTR_COLD; + void qsm_map(address_map &map) ATTR_COLD; + void gpt_map(address_map &map) ATTR_COLD; private: void simcr_w(offs_t offset, u16 data, u16 mem_mask = 0xffff); @@ -95,7 +95,7 @@ class mc68hc16z1_device : public m68hc16z_device mc68hc16z1_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); private: - void internal_map(address_map &map); + void internal_map(address_map &map) ATTR_COLD; }; // device type declaration diff --git a/src/devices/cpu/m88000/m88000.h b/src/devices/cpu/m88000/m88000.h index 8e1d2e9e127..e646f9334c8 100644 --- a/src/devices/cpu/m88000/m88000.h +++ b/src/devices/cpu/m88000/m88000.h @@ -25,8 +25,8 @@ class mc88100_device : public cpu_device protected: // 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; // device_execute_interface implementation virtual void execute_run() override; diff --git a/src/devices/cpu/mb86233/mb86233.h b/src/devices/cpu/mb86233/mb86233.h index 5609de49102..97f98bced44 100644 --- a/src/devices/cpu/mb86233/mb86233.h +++ b/src/devices/cpu/mb86233/mb86233.h @@ -70,8 +70,8 @@ class mb86233_device : public cpu_device protected: mb86233_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 uint32_t execute_min_cycles() const noexcept override { return 1; } virtual uint32_t execute_max_cycles() const noexcept override { return 1; } diff --git a/src/devices/cpu/mb86235/mb86235.h b/src/devices/cpu/mb86235/mb86235.h index c8a97cf452e..137189b5170 100644 --- a/src/devices/cpu/mb86235/mb86235.h +++ b/src/devices/cpu/mb86235/mb86235.h @@ -51,12 +51,12 @@ class mb86235_device : public cpu_device MB86235_ST }; - void internal_abus(address_map &map); - void internal_bbus(address_map &map); + void internal_abus(address_map &map) ATTR_COLD; + void internal_bbus(address_map &map) ATTR_COLD; 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; // device_execute_interface overrides virtual uint32_t execute_min_cycles() const noexcept override { return 1; } diff --git a/src/devices/cpu/mb88xx/mb88xx.h b/src/devices/cpu/mb88xx/mb88xx.h index 58c3105e37c..90223c93d6e 100644 --- a/src/devices/cpu/mb88xx/mb88xx.h +++ b/src/devices/cpu/mb88xx/mb88xx.h @@ -98,20 +98,20 @@ class mb88_cpu_device : public cpu_device void clock_w(int state); - void data_4bit(address_map &map); - void data_5bit(address_map &map); - void data_6bit(address_map &map); - void data_7bit(address_map &map); - void program_10bit(address_map &map); - void program_11bit(address_map &map); - void program_9bit(address_map &map); + void data_4bit(address_map &map) ATTR_COLD; + void data_5bit(address_map &map) ATTR_COLD; + void data_6bit(address_map &map) ATTR_COLD; + void data_7bit(address_map &map) ATTR_COLD; + void program_10bit(address_map &map) ATTR_COLD; + void program_11bit(address_map &map) ATTR_COLD; + void program_9bit(address_map &map) ATTR_COLD; protected: mb88_cpu_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, int program_width, int data_width); // 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; // device_execute_interface overrides virtual u32 execute_min_cycles() const noexcept override { return 1; } diff --git a/src/devices/cpu/mc68hc11/mc68hc11.h b/src/devices/cpu/mc68hc11/mc68hc11.h index 6e08e2c44fc..a7248de563b 100644 --- a/src/devices/cpu/mc68hc11/mc68hc11.h +++ b/src/devices/cpu/mc68hc11/mc68hc11.h @@ -56,8 +56,8 @@ class mc68hc11_cpu_device : public cpu_device, public device_nvram_interface mc68hc11_cpu_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, uint16_t ram_size, uint16_t reg_block_size, uint16_t rom_size, uint16_t eeprom_size, uint8_t init_value, uint8_t config_mask, uint8_t option_mask); // 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; // device_execute_interface implementation virtual uint32_t execute_min_cycles() const noexcept override { return 1; } @@ -228,7 +228,7 @@ class mc68hc11_cpu_device : public cpu_device, public device_nvram_interface ophandler hc11_optable_page3[256]; ophandler hc11_optable_page4[256]; - void internal_map(address_map &map); + void internal_map(address_map &map) ATTR_COLD; uint8_t FETCH(); uint16_t FETCH16(); @@ -564,7 +564,7 @@ class mc68hc11a1_device : public mc68hc11_cpu_device mc68hc11a1_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; virtual void mc68hc11_reg_map(memory_view::memory_view_entry &block, offs_t base) override; @@ -579,7 +579,7 @@ class mc68hc11d0_device : public mc68hc11_cpu_device mc68hc11d0_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; virtual void mc68hc11_reg_map(memory_view::memory_view_entry &block, offs_t base) override; @@ -594,7 +594,7 @@ class mc68hc11e1_device : public mc68hc11_cpu_device mc68hc11e1_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; virtual void mc68hc11_reg_map(memory_view::memory_view_entry &block, offs_t base) override; }; @@ -606,7 +606,7 @@ class mc68hc811e2_device : public mc68hc11_cpu_device mc68hc811e2_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; virtual void mc68hc11_reg_map(memory_view::memory_view_entry &block, offs_t base) override; }; @@ -618,7 +618,7 @@ class mc68hc11f1_device : public mc68hc11_cpu_device mc68hc11f1_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; virtual void mc68hc11_reg_map(memory_view::memory_view_entry &block, offs_t base) override; }; diff --git a/src/devices/cpu/mcs40/mcs40.h b/src/devices/cpu/mcs40/mcs40.h index 5dd54020dee..2933413a1b1 100644 --- a/src/devices/cpu/mcs40/mcs40.h +++ b/src/devices/cpu/mcs40/mcs40.h @@ -82,8 +82,8 @@ class mcs40_cpu_device_base : public cpu_device unsigned cr_mask); // device_t implementation - void device_start() override; - void device_reset() override; + void device_start() override ATTR_COLD; + void device_reset() override ATTR_COLD; // device_execute_interface implementation virtual void execute_run() override; diff --git a/src/devices/cpu/mcs48/mcs48.h b/src/devices/cpu/mcs48/mcs48.h index b5bec683335..72d2d36ef0e 100644 --- a/src/devices/cpu/mcs48/mcs48.h +++ b/src/devices/cpu/mcs48/mcs48.h @@ -138,9 +138,9 @@ class mcs48_cpu_device : public cpu_device mcs48_cpu_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, int rom_size, int ram_size, u8 feature_mask, const mcs48_ophandler *opcode_table); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void device_config_complete() override; - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; virtual void device_post_load() override { update_regptr(); } // device_execute_interface overrides @@ -226,8 +226,8 @@ class mcs48_cpu_device : public cpu_device static const mcs48_ophandler s_i8022_opcodes[256]; const mcs48_ophandler *const m_opcode_table; - void program_map(address_map &map); - void data_map(address_map &map); + void program_map(address_map &map) ATTR_COLD; + void data_map(address_map &map) ATTR_COLD; // ROM is mapped to AS_PROGRAM u8 program_r(offs_t a) { return m_program.read_byte(a); } diff --git a/src/devices/cpu/mcs51/mcs51.h b/src/devices/cpu/mcs51/mcs51.h index 9d8d4dc3dd9..a1c8351c856 100644 --- a/src/devices/cpu/mcs51/mcs51.h +++ b/src/devices/cpu/mcs51/mcs51.h @@ -64,16 +64,16 @@ class mcs51_cpu_device : public cpu_device template auto port_in_cb() { return m_port_in_cb[N].bind(); } template auto port_out_cb() { return m_port_out_cb[N].bind(); } - void program_internal(address_map &map); - void data_internal(address_map &map); + void program_internal(address_map &map) ATTR_COLD; + void data_internal(address_map &map) ATTR_COLD; protected: // construction/destruction mcs51_cpu_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, int program_width, int data_width, uint8_t features = 0); mcs51_cpu_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, address_map_constructor program_map, address_map_constructor data_map, int program_width, int data_width, uint8_t features = 0); // 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; // device_execute_interface overrides virtual uint64_t execute_clocks_to_cycles(uint64_t clocks) const noexcept override { return (clocks + 12 - 1) / 12; } diff --git a/src/devices/cpu/mcs96/i8x9x.h b/src/devices/cpu/mcs96/i8x9x.h index d9e0832605f..e499ce832be 100644 --- a/src/devices/cpu/mcs96/i8x9x.h +++ b/src/devices/cpu/mcs96/i8x9x.h @@ -70,8 +70,8 @@ class i8x9x_device : public mcs96_device { protected: i8x9x_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, int data_width); - 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 execute_set_input(int linenum, int state) override; @@ -81,7 +81,7 @@ class i8x9x_device : public mcs96_device { virtual void do_exec_partial() override; virtual void internal_update(u64 current_time) override; - void internal_regs(address_map &map); + void internal_regs(address_map &map) ATTR_COLD; void ad_command_w(u8 data); u8 ad_result_r(offs_t offset); void hsi_mode_w(u8 data); diff --git a/src/devices/cpu/mcs96/i8xc196.h b/src/devices/cpu/mcs96/i8xc196.h index 02d3e3d9840..f6bd1d0d193 100644 --- a/src/devices/cpu/mcs96/i8xc196.h +++ b/src/devices/cpu/mcs96/i8xc196.h @@ -22,7 +22,7 @@ class i8xc196_device : public mcs96_device { virtual void do_exec_full() override; virtual void do_exec_partial() override; - void internal_regs(address_map &map); + void internal_regs(address_map &map) ATTR_COLD; #define O(o) void o ## _196_full(); void o ## _196_partial() diff --git a/src/devices/cpu/mcs96/mcs96.h b/src/devices/cpu/mcs96/mcs96.h index eb22ae13d30..5acdef19cb2 100644 --- a/src/devices/cpu/mcs96/mcs96.h +++ b/src/devices/cpu/mcs96/mcs96.h @@ -47,8 +47,8 @@ class mcs96_device : public cpu_device { mcs96_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, int data_width, address_map_constructor regs_map); // 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; // device_execute_interface overrides virtual uint32_t execute_min_cycles() const noexcept override; diff --git a/src/devices/cpu/melps4/m58846.h b/src/devices/cpu/melps4/m58846.h index 2ba855e3dd2..3f45829b685 100644 --- a/src/devices/cpu/melps4/m58846.h +++ b/src/devices/cpu/melps4/m58846.h @@ -23,8 +23,8 @@ class m58846_device : public melps4_cpu_device 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; // device_execute_interface overrides virtual void execute_one() override; @@ -33,8 +33,8 @@ class m58846_device : public melps4_cpu_device virtual void write_v(u8 data) override; TIMER_CALLBACK_MEMBER(timer_update); - void data_128x4(address_map &map); - void program_2kx9(address_map &map); + void data_128x4(address_map &map) ATTR_COLD; + void program_2kx9(address_map &map) ATTR_COLD; emu_timer *m_timer; void reset_timer(); diff --git a/src/devices/cpu/melps4/melps4.h b/src/devices/cpu/melps4/melps4.h index 6274dee3266..3ce171f9d0a 100644 --- a/src/devices/cpu/melps4/melps4.h +++ b/src/devices/cpu/melps4/melps4.h @@ -93,8 +93,8 @@ class melps4_cpu_device : public cpu_device melps4_cpu_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, int prgwidth, address_map_constructor program, int datawidth, address_map_constructor data, int d_pins, u8 sm_page, u8 int_page); // 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; // device_execute_interface overrides virtual u64 execute_clocks_to_cycles(u64 clocks) const noexcept override { return (clocks + 6 - 1) / 6; } // 6 t-states per machine cycle diff --git a/src/devices/cpu/minx/minx.h b/src/devices/cpu/minx/minx.h index 6e7507d183f..72ecceb9233 100644 --- a/src/devices/cpu/minx/minx.h +++ b/src/devices/cpu/minx/minx.h @@ -22,8 +22,8 @@ class minx_cpu_device : public cpu_device 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; // device_execute_interface overrides virtual uint32_t execute_min_cycles() const noexcept override { return 1; } diff --git a/src/devices/cpu/mips/mips1.h b/src/devices/cpu/mips/mips1.h index 6baa1eb8533..618f36cbcc0 100644 --- a/src/devices/cpu/mips/mips1.h +++ b/src/devices/cpu/mips/mips1.h @@ -20,8 +20,8 @@ class mips1core_device_base : public cpu_device mips1core_device_base(machine_config const &mconfig, device_type type, char const *tag, device_t *owner, u32 clock, u32 cpurev, size_t icache_size, size_t dcache_size, bool cache_pws); // 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; // device_execute_interface implementation virtual u32 execute_min_cycles() const noexcept override { return 1; } @@ -163,8 +163,8 @@ class mips1_device_base : public mips1core_device_base mips1_device_base(machine_config const &mconfig, device_type type, char const *tag, device_t *owner, u32 clock, u32 cpurev, size_t icache_size, size_t dcache_size, bool cache_pws); // 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; virtual translate_result translate(int intention, offs_t &address, bool debug) override; @@ -219,8 +219,8 @@ class r3041_device : public mips1core_device_base r3041_device(machine_config const &mconfig, char const *tag, device_t *owner, u32 clock); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; }; class r3051_device : public mips1core_device_base diff --git a/src/devices/cpu/mips/mips3.h b/src/devices/cpu/mips/mips3.h index 76d035dc64b..0f002080ea7 100644 --- a/src/devices/cpu/mips/mips3.h +++ b/src/devices/cpu/mips/mips3.h @@ -313,9 +313,9 @@ class mips3_device : public cpu_device, public device_vtlb_interface { protected: // device-level overrides - virtual void device_start() override; - virtual void device_reset() override; - virtual void device_stop() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; + virtual void device_stop() override ATTR_COLD; // device_execute_interface overrides virtual uint32_t execute_min_cycles() const noexcept override { return 1; } @@ -879,7 +879,7 @@ class r5900_device : public mips3_device { { } - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_disasm_interface overrides virtual std::unique_ptr create_disassembler() override; diff --git a/src/devices/cpu/mips/ps2vif1.h b/src/devices/cpu/mips/ps2vif1.h index 171a3839f8f..e054b448852 100644 --- a/src/devices/cpu/mips/ps2vif1.h +++ b/src/devices/cpu/mips/ps2vif1.h @@ -44,8 +44,8 @@ class ps2_vif1_device : public device_t, public device_execute_interface bool fifo_available(uint32_t count) const { return (BUFFER_SIZE - m_end) >= count; } protected: - 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 execute_run() override; uint32_t calculate_unpack_count(); diff --git a/src/devices/cpu/mips/ps2vu.h b/src/devices/cpu/mips/ps2vu.h index e5c7ef7009a..245c623ebfa 100644 --- a/src/devices/cpu/mips/ps2vu.h +++ b/src/devices/cpu/mips/ps2vu.h @@ -110,8 +110,8 @@ class sonyvu_device : public cpu_device }; // 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; // device_execute_interface overrides virtual uint32_t execute_min_cycles() const noexcept override { return 1; } @@ -191,14 +191,14 @@ class sonyvu1_device : public sonyvu_device void vif_w(offs_t offset, uint64_t data); protected: - 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; virtual void state_string_export(const device_state_entry &entry, std::string &str) const override; - void micro_map(address_map &map); - void vu_map(address_map &map); + void micro_map(address_map &map) ATTR_COLD; + void vu_map(address_map &map) ATTR_COLD; void execute_xgkick(uint32_t rs) override; @@ -221,11 +221,11 @@ class sonyvu0_device : public sonyvu_device sonyvu0_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; - void micro_map(address_map &map); - void vu_map(address_map &map); + void micro_map(address_map &map) ATTR_COLD; + void vu_map(address_map &map) ATTR_COLD; void execute_xgkick(uint32_t rs) override; diff --git a/src/devices/cpu/mips/r4000.h b/src/devices/cpu/mips/r4000.h index 503894a53f8..a6e0f816d9a 100644 --- a/src/devices/cpu/mips/r4000.h +++ b/src/devices/cpu/mips/r4000.h @@ -316,9 +316,9 @@ class r4000_base_device : public cpu_device }; // device_t overrides - virtual void device_start() override; - virtual void device_reset() override; - virtual void device_stop() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; + virtual void device_stop() override ATTR_COLD; // device_memory_interface overrides virtual space_config_vector memory_space_config() const override; diff --git a/src/devices/cpu/mipsx/mipsx.h b/src/devices/cpu/mipsx/mipsx.h index ce189d3fcf5..90b6de49b67 100644 --- a/src/devices/cpu/mipsx/mipsx.h +++ b/src/devices/cpu/mipsx/mipsx.h @@ -12,8 +12,8 @@ class mipsx_cpu_device : public cpu_device mipsx_cpu_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - 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 uint32_t execute_min_cycles() const noexcept override { return 1; } virtual uint32_t execute_max_cycles() const noexcept override { return 5; } diff --git a/src/devices/cpu/mk1/mk1.h b/src/devices/cpu/mk1/mk1.h index dad3f3ab9f7..85d20a61b26 100644 --- a/src/devices/cpu/mk1/mk1.h +++ b/src/devices/cpu/mk1/mk1.h @@ -26,8 +26,8 @@ class mk1_cpu_device : public cpu_device 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; // device_execute_interface overrides virtual void execute_run() override; diff --git a/src/devices/cpu/mn10200/mn10200.h b/src/devices/cpu/mn10200/mn10200.h index d1131b9b909..750b0fcae04 100644 --- a/src/devices/cpu/mn10200/mn10200.h +++ b/src/devices/cpu/mn10200/mn10200.h @@ -43,7 +43,7 @@ class mn10200_device : public cpu_device uint8_t io_control_r(offs_t offset); void io_control_w(offs_t offset, uint8_t data); - void mn1020012a_internal_map(address_map &map); + void mn1020012a_internal_map(address_map &map) ATTR_COLD; protected: static constexpr unsigned MN10200_NUM_PRESCALERS = 2; static constexpr unsigned MN10200_NUM_TIMERS_8BIT = 10; @@ -54,8 +54,8 @@ class mn10200_device : public cpu_device mn10200_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, address_map_constructor program); // 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; // device_execute_interface overrides virtual uint64_t execute_clocks_to_cycles(uint64_t clocks) const noexcept override { return (clocks + 2 - 1) / 2; } // internal /2 divider diff --git a/src/devices/cpu/mn1400/mn1400base.h b/src/devices/cpu/mn1400/mn1400base.h index 55f10cb4f65..1749f070257 100644 --- a/src/devices/cpu/mn1400/mn1400base.h +++ b/src/devices/cpu/mn1400/mn1400base.h @@ -47,9 +47,9 @@ class mn1400_base_device : public cpu_device mn1400_base_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, int stack_levels, int prgwidth, address_map_constructor program, int datawidth, address_map_constructor data); // device-level overrides - 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; virtual void state_string_export(const device_state_entry &entry, std::string &str) const override; @@ -64,10 +64,10 @@ class mn1400_base_device : public cpu_device // device_memory_interface overrides virtual space_config_vector memory_space_config() const override; - void program_1kx8(address_map &map); - void program_2kx8(address_map &map); - void data_64x4(address_map &map); - void data_128x4(address_map &map); + void program_1kx8(address_map &map) ATTR_COLD; + void program_2kx8(address_map &map) ATTR_COLD; + void data_64x4(address_map &map) ATTR_COLD; + void data_128x4(address_map &map) ATTR_COLD; address_space_config m_program_config; address_space_config m_data_config; diff --git a/src/devices/cpu/mn1880/mn1880.h b/src/devices/cpu/mn1880/mn1880.h index 1e6d19699a2..787ad33cd83 100644 --- a/src/devices/cpu/mn1880/mn1880.h +++ b/src/devices/cpu/mn1880/mn1880.h @@ -32,8 +32,8 @@ class mn1880_device : public cpu_device mn1880_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, bool has_mmu, address_map_constructor data_map); // 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; // device_execute_interface overrides virtual void execute_run() override; @@ -50,7 +50,7 @@ class mn1880_device : public cpu_device // device_state_interface overrides virtual void state_string_export(const device_state_entry &entry, std::string &str) const override; - void internal_data_map(address_map &map); + void internal_data_map(address_map &map) ATTR_COLD; private: struct cpu_registers diff --git a/src/devices/cpu/nanoprocessor/nanoprocessor.h b/src/devices/cpu/nanoprocessor/nanoprocessor.h index 49f63c5caca..979c1d5d843 100644 --- a/src/devices/cpu/nanoprocessor/nanoprocessor.h +++ b/src/devices/cpu/nanoprocessor/nanoprocessor.h @@ -133,8 +133,8 @@ class hp_nanoprocessor_device : public cpu_device memory_access< 4, 0, 0, ENDIANNESS_BIG>::specific m_io; // device_t 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 execute_run() override; virtual void execute_set_input(int linenum, int state) override; diff --git a/src/devices/cpu/nec/nec.h b/src/devices/cpu/nec/nec.h index 12af9f8dc57..f9c361f3840 100644 --- a/src/devices/cpu/nec/nec.h +++ b/src/devices/cpu/nec/nec.h @@ -31,8 +31,8 @@ class nec_common_device : public cpu_device, public nec_disassembler::config nec_common_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, bool is_16bit, uint8_t prefetch_size, uint8_t prefetch_cycles, uint32_t chip_type, address_map_constructor internal_port_map = address_map_constructor()); // 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; // device_execute_interface overrides virtual uint32_t execute_min_cycles() const noexcept override { return 1; } @@ -690,7 +690,7 @@ class v33_base_device : public nec_common_device // device_memory_interface overrides virtual bool memory_translate(int spacenum, int intention, offs_t &address, address_space *&target_space) override; - void v33_internal_port_map(address_map &map); + void v33_internal_port_map(address_map &map) ATTR_COLD; uint16_t xam_r(); }; diff --git a/src/devices/cpu/nec/v25.h b/src/devices/cpu/nec/v25.h index 6f239bb0c0a..8c2bfe50d8f 100644 --- a/src/devices/cpu/nec/v25.h +++ b/src/devices/cpu/nec/v25.h @@ -46,8 +46,8 @@ class v25_common_device : public cpu_device, public nec_disassembler::config v25_common_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, bool is_16bit, uint8_t prefetch_size, uint8_t prefetch_cycles, uint32_t chip_type); // 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 device_post_load() override { notify_clock_changed(); } // device_execute_interface overrides @@ -172,7 +172,7 @@ class v25_common_device : public cpu_device, public nec_disassembler::config void nec_trap(); void external_int(); - void ida_sfr_map(address_map &map); + void ida_sfr_map(address_map &map) ATTR_COLD; uint8_t read_irqcontrol(int /*INTSOURCES*/ source, uint8_t priority); void write_irqcontrol(int /*INTSOURCES*/ source, uint8_t d); uint8_t p0_r(); diff --git a/src/devices/cpu/nec/v5x.h b/src/devices/cpu/nec/v5x.h index d30bb5fdb4a..32fd6a89478 100644 --- a/src/devices/cpu/nec/v5x.h +++ b/src/devices/cpu/nec/v5x.h @@ -74,7 +74,7 @@ class device_v5x_interface : public device_interface inline void internal_io_write_byte(offs_t a, u8 v) { m_internal_io->write_byte(a & INTERNAL_IO_ADDR_MASK, v); } inline void internal_io_write_word(offs_t a, u16 v) { m_internal_io->write_word_unaligned(a & INTERNAL_IO_ADDR_MASK, v); } - void remappable_io_map(address_map &map); + void remappable_io_map(address_map &map) ATTR_COLD; virtual u8 temp_io_byte_r(offs_t offset) = 0; virtual void temp_io_byte_w(offs_t offset, u8 data) = 0; @@ -154,9 +154,9 @@ class v50_base_device : public nec_common_device, public device_v5x_interface v50_base_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, bool is_16bit, u8 prefetch_size, u8 prefetch_cycles, u32 chip_type); // device-specific overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; // device_execute_interface overrides virtual uint64_t execute_clocks_to_cycles(uint64_t clocks) const noexcept override { return (clocks / 2); } @@ -174,7 +174,7 @@ class v50_base_device : public nec_common_device, public device_v5x_interface virtual void io_write_byte(offs_t a, u8 v) override; virtual void io_write_word(offs_t a, u16 v) override; - void internal_port_map(address_map &map); + void internal_port_map(address_map &map) ATTR_COLD; u8 OPCN_r(); void OPCN_w(u8 data); @@ -243,9 +243,9 @@ class v53_device : public v33_base_device, public device_v5x_interface v53_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); // device-specific overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; // device_execute_interface overrides virtual void execute_set_input(int inputnum, int state) override; @@ -261,7 +261,7 @@ class v53_device : public v33_base_device, public device_v5x_interface virtual void io_write_byte(offs_t a, u8 v) override; virtual void io_write_word(offs_t a, u16 v) override; - void internal_port_map(address_map &map); + void internal_port_map(address_map &map) ATTR_COLD; virtual void install_peripheral_io() override; u8 SCTL_r(); diff --git a/src/devices/cpu/nios2/nios2.h b/src/devices/cpu/nios2/nios2.h index 5ec25c8369d..bb096065934 100644 --- a/src/devices/cpu/nios2/nios2.h +++ b/src/devices/cpu/nios2/nios2.h @@ -26,8 +26,8 @@ class nios2_device : public cpu_device 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; // device_execute_interface overrides virtual void execute_run() override; diff --git a/src/devices/cpu/ns32000/ns32000.h b/src/devices/cpu/ns32000/ns32000.h index 99cd956fc40..24c46f788d1 100644 --- a/src/devices/cpu/ns32000/ns32000.h +++ b/src/devices/cpu/ns32000/ns32000.h @@ -21,8 +21,8 @@ class ns32000_device : public cpu_device ns32000_device(machine_config const &mconfig, device_type type, char const *tag, device_t *owner, u32 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; // device_execute_interface implementation virtual u32 execute_min_cycles() const noexcept override { return 1; } @@ -231,8 +231,8 @@ class ns32532_device protected: // device_t implementation - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; // device_memory_interface implementation virtual space_config_vector memory_space_config() const override; diff --git a/src/devices/cpu/nuon/nuon.h b/src/devices/cpu/nuon/nuon.h index c446fad2a76..f0d0c11ac04 100644 --- a/src/devices/cpu/nuon/nuon.h +++ b/src/devices/cpu/nuon/nuon.h @@ -24,8 +24,8 @@ class nuon_device : public cpu_device 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; // device_execute_interface overrides virtual uint32_t execute_min_cycles() const noexcept override; diff --git a/src/devices/cpu/olms66k/msm665xx.h b/src/devices/cpu/olms66k/msm665xx.h index 3f3fc3ae6ab..0399bffb4e9 100644 --- a/src/devices/cpu/olms66k/msm665xx.h +++ b/src/devices/cpu/olms66k/msm665xx.h @@ -33,8 +33,8 @@ class msm665xx_device : public cpu_device protected: msm665xx_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, address_map_constructor mem_map, address_map_constructor data_map); - 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 std::unique_ptr create_disassembler() override; @@ -88,7 +88,7 @@ class msm66573_device : public msm665xx_device msm66573_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); private: - void data_map(address_map &map); + void data_map(address_map &map) ATTR_COLD; }; diff --git a/src/devices/cpu/pace/pace.h b/src/devices/cpu/pace/pace.h index ed9cadf39b9..b5c00fbb912 100644 --- a/src/devices/cpu/pace/pace.h +++ b/src/devices/cpu/pace/pace.h @@ -71,8 +71,8 @@ class pace_device : public cpu_device pace_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 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; // device_execute_interface implementation virtual u64 execute_clocks_to_cycles(u64 clocks) const noexcept override { return (clocks + 4 - 1) / 4; } diff --git a/src/devices/cpu/palm/palm.h b/src/devices/cpu/palm/palm.h index a0b474ce479..e6e1588061b 100644 --- a/src/devices/cpu/palm/palm.h +++ b/src/devices/cpu/palm/palm.h @@ -28,8 +28,8 @@ class palm_device : public cpu_device protected: // 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; // device_execute_interface implementation virtual u32 execute_min_cycles() const noexcept override { return 17; } diff --git a/src/devices/cpu/patinhofeio/patinhofeio_cpu.h b/src/devices/cpu/patinhofeio/patinhofeio_cpu.h index 1ba4a39fdb6..fdef1418dce 100644 --- a/src/devices/cpu/patinhofeio/patinhofeio_cpu.h +++ b/src/devices/cpu/patinhofeio/patinhofeio_cpu.h @@ -56,7 +56,7 @@ class patinho_feio_cpu_device : public cpu_device { void transfer_byte_from_external_device(uint8_t channel, uint8_t data); void set_iodev_status(uint8_t channel, bool status) { m_iodev_status[channel] = status; } - void prog_8bit(address_map &map); + void prog_8bit(address_map &map) ATTR_COLD; protected: virtual void execute_run() override; @@ -107,8 +107,8 @@ class patinho_feio_cpu_device : public cpu_device { address_space *m_program; // 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; // device_execute_interface overrides virtual uint32_t execute_min_cycles() const noexcept override { return 1; } diff --git a/src/devices/cpu/pdp1/pdp1.h b/src/devices/cpu/pdp1/pdp1.h index cbe0d5d8181..f4491503131 100644 --- a/src/devices/cpu/pdp1/pdp1.h +++ b/src/devices/cpu/pdp1/pdp1.h @@ -87,8 +87,8 @@ class pdp1_device : public cpu_device, public pdp1_reset_param_t protected: // device-level overrides virtual void device_config_complete() override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; // device_execute_interface overrides virtual uint32_t execute_min_cycles() const noexcept override { return 5; } diff --git a/src/devices/cpu/pdp8/hd6120.h b/src/devices/cpu/pdp8/hd6120.h index d7df0fd6547..f3a3d655ba7 100644 --- a/src/devices/cpu/pdp8/hd6120.h +++ b/src/devices/cpu/pdp8/hd6120.h @@ -82,8 +82,8 @@ class hd6120_device : public cpu_device protected: // 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; // device_execute_interface implementation virtual void execute_run() override; diff --git a/src/devices/cpu/pdp8/pdp8.h b/src/devices/cpu/pdp8/pdp8.h index 98bc1fe4ed1..d481f2752bb 100644 --- a/src/devices/cpu/pdp8/pdp8.h +++ b/src/devices/cpu/pdp8/pdp8.h @@ -25,9 +25,9 @@ class pdp8_device : public cpu_device pdp8_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // device-level overrides - virtual void device_start() override; - virtual void device_reset() override; - virtual void device_stop() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; + virtual void device_stop() override ATTR_COLD; // device_execute_interface overrides virtual uint32_t execute_min_cycles() const noexcept override; diff --git a/src/devices/cpu/pic16c5x/pic16c5x.h b/src/devices/cpu/pic16c5x/pic16c5x.h index d78c2db9738..ddc3037f511 100644 --- a/src/devices/cpu/pic16c5x/pic16c5x.h +++ b/src/devices/cpu/pic16c5x/pic16c5x.h @@ -70,24 +70,24 @@ class pic16c5x_device : public cpu_device */ void set_config(u16 data); - void core_regs(address_map &map, u8 mirror = 0); - void ram_5_2ports(address_map &map); - void ram_5_3ports(address_map &map); - void ram_1655_3ports(address_map &map); - void ram_5_4ports(address_map &map); - void ram_7_2ports(address_map &map); - void ram_7_3ports(address_map &map); - void rom_10(address_map &map); - void rom_11(address_map &map); - void rom_9(address_map &map); + void core_regs(address_map &map, u8 mirror = 0) ATTR_COLD; + void ram_5_2ports(address_map &map) ATTR_COLD; + void ram_5_3ports(address_map &map) ATTR_COLD; + void ram_1655_3ports(address_map &map) ATTR_COLD; + void ram_5_4ports(address_map &map) ATTR_COLD; + void ram_7_2ports(address_map &map) ATTR_COLD; + void ram_7_3ports(address_map &map) ATTR_COLD; + void rom_10(address_map &map) ATTR_COLD; + void rom_11(address_map &map) ATTR_COLD; + void rom_9(address_map &map) ATTR_COLD; protected: // construction/destruction pic16c5x_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, int program_width, int data_width, int picmodel, address_map_constructor data_map); // 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; // device_execute_interface overrides /************************************************************************** diff --git a/src/devices/cpu/pic16c62x/pic16c62x.h b/src/devices/cpu/pic16c62x/pic16c62x.h index 73692cb105d..6a708d69dff 100644 --- a/src/devices/cpu/pic16c62x/pic16c62x.h +++ b/src/devices/cpu/pic16c62x/pic16c62x.h @@ -67,8 +67,8 @@ class pic16c62x_device : public cpu_device pic16c62x_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, int program_width, address_map_constructor ram_map); // 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; // device_execute_interface overrides virtual uint64_t execute_clocks_to_cycles(uint64_t clocks) const noexcept override { return (clocks + 4 - 1) / 4; } @@ -240,14 +240,14 @@ class pic16c62x_device : public cpu_device void pic16c62x_update_timer(int counts); protected: - void core_regs(address_map &map); - void pic16c620_ram(address_map &map); - void pic16c622_ram(address_map &map); - void pic16c62x_rom_10(address_map &map); - void pic16c62x_rom_11(address_map &map); - void pic16c62x_rom_9(address_map &map); - void pic16c620a_ram(address_map &map); - void pic16c622a_ram(address_map &map); + void core_regs(address_map &map) ATTR_COLD; + void pic16c620_ram(address_map &map) ATTR_COLD; + void pic16c622_ram(address_map &map) ATTR_COLD; + void pic16c62x_rom_10(address_map &map) ATTR_COLD; + void pic16c62x_rom_11(address_map &map) ATTR_COLD; + void pic16c62x_rom_9(address_map &map) ATTR_COLD; + void pic16c620a_ram(address_map &map) ATTR_COLD; + void pic16c622a_ram(address_map &map) ATTR_COLD; }; diff --git a/src/devices/cpu/pic16x8x/pic16x8x.h b/src/devices/cpu/pic16x8x/pic16x8x.h index 0cd71ba978c..a2936e5bf36 100644 --- a/src/devices/cpu/pic16x8x/pic16x8x.h +++ b/src/devices/cpu/pic16x8x/pic16x8x.h @@ -54,20 +54,20 @@ class pic16x8x_device : public cpu_device, public device_nvram_interface ****************************************************************************/ void set_config(u16 data); - void core_regs(address_map &map, u8 mirror = 0); + void core_regs(address_map &map, u8 mirror = 0) ATTR_COLD; - void ram_6(address_map &map); - void rom_9(address_map &map); - void ram_7(address_map &map); - void rom_10(address_map &map); + void ram_6(address_map &map) ATTR_COLD; + void rom_9(address_map &map) ATTR_COLD; + void ram_7(address_map &map) ATTR_COLD; + void rom_10(address_map &map) ATTR_COLD; protected: // construction/destruction pic16x8x_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, int program_width, address_map_constructor program_map, address_map_constructor data_map); // 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; // device_execute_interface overrides /************************************************************************** diff --git a/src/devices/cpu/pic17/pic17.h b/src/devices/cpu/pic17/pic17.h index fed49748a67..d132950ec3d 100644 --- a/src/devices/cpu/pic17/pic17.h +++ b/src/devices/cpu/pic17/pic17.h @@ -43,8 +43,8 @@ class pic17_cpu_device : public cpu_device pic17_cpu_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, u16 rom_size, address_map_constructor data_map); // 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; // device_execute_interface overrides virtual void execute_run() override; @@ -59,7 +59,7 @@ class pic17_cpu_device : public cpu_device virtual void state_string_export(const device_state_entry &entry, std::string &str) const override; // internal data map - void core_data_map(address_map &map); + void core_data_map(address_map &map) ATTR_COLD; // helpers for derived classes void int_edge(bool rising); @@ -134,7 +134,7 @@ class pic17_cpu_device : public cpu_device void q4_write(); // address map constructor - void program_map(address_map &map); + void program_map(address_map &map) ATTR_COLD; // address spaces const address_space_config m_program_config; diff --git a/src/devices/cpu/pic17/pic17c4x.h b/src/devices/cpu/pic17/pic17c4x.h index 406244b6ee4..b02b3030ade 100644 --- a/src/devices/cpu/pic17/pic17c4x.h +++ b/src/devices/cpu/pic17/pic17c4x.h @@ -78,14 +78,14 @@ class pic17c4x_device : public pic17_cpu_device pic17c4x_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, u16 rom_size, address_map_constructor data_map); // 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; // device_execute_interface implementation virtual bool execute_input_edge_triggered(int linenum) const noexcept override { return linenum == INT_LINE || linenum == T0CKI_LINE; } virtual void execute_set_input(int linenum, int state) override; - void data_map(address_map &map); + void data_map(address_map &map) ATTR_COLD; virtual void increment_timers() override; @@ -162,7 +162,7 @@ class pic17c43_device : public pic17c4x_device pic17c43_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, u16 rom_size); private: - void data_map(address_map &map); + void data_map(address_map &map) ATTR_COLD; }; class pic17c44_device : public pic17c43_device diff --git a/src/devices/cpu/powerpc/ppc.h b/src/devices/cpu/powerpc/ppc.h index f5a5d8ca7df..3535f490178 100644 --- a/src/devices/cpu/powerpc/ppc.h +++ b/src/devices/cpu/powerpc/ppc.h @@ -250,9 +250,9 @@ class ppc_device : public cpu_device, public device_vtlb_interface protected: // device-level overrides - virtual void device_start() override; - virtual void device_reset() override; - virtual void device_stop() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; + virtual void device_stop() override ATTR_COLD; // device_execute_interface overrides virtual uint32_t execute_min_cycles() const noexcept override { return 1; } @@ -776,7 +776,7 @@ class ppc4xx_device : public ppc_device uint8_t ppc4xx_spu_r(offs_t offset); void ppc4xx_spu_w(offs_t offset, uint8_t data); - void internal_ppc4xx(address_map &map); + void internal_ppc4xx(address_map &map) ATTR_COLD; protected: ppc4xx_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, powerpc_flavor flavor, uint32_t cap, uint32_t tb_divisor); diff --git a/src/devices/cpu/pps4/pps4.h b/src/devices/cpu/pps4/pps4.h index 38fa3d5cd77..2e4fcebd1c7 100644 --- a/src/devices/cpu/pps4/pps4.h +++ b/src/devices/cpu/pps4/pps4.h @@ -53,8 +53,8 @@ class pps4_device : public cpu_device pps4_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); // 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; // device_execute_interface overrides virtual u32 execute_min_cycles() const noexcept override { return 1; } @@ -174,8 +174,8 @@ class pps4_2_device : public pps4_device 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; // device_execute_interface overrides (NOTE: these assume internal XTAL divider is always used) virtual u64 execute_clocks_to_cycles(u64 clocks) const noexcept override { return (clocks + 18 - 1) / 18; } diff --git a/src/devices/cpu/pps41/mm75.h b/src/devices/cpu/pps41/mm75.h index 39a14245cae..92785d0d5ae 100644 --- a/src/devices/cpu/pps41/mm75.h +++ b/src/devices/cpu/pps41/mm75.h @@ -40,7 +40,7 @@ class mm75_device : public mm76_device mm75_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // opcode handlers virtual void op_ios() override; diff --git a/src/devices/cpu/pps41/mm76.h b/src/devices/cpu/pps41/mm76.h index 54db25fc93b..b984ad9c713 100644 --- a/src/devices/cpu/pps41/mm76.h +++ b/src/devices/cpu/pps41/mm76.h @@ -50,9 +50,9 @@ class mm76_device : public pps41_base_device mm76_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, int prgwidth, address_map_constructor program, int datawidth, address_map_constructor data); // device-level overrides - 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; // device_disasm_interface overrides virtual std::unique_ptr create_disassembler() override; @@ -60,8 +60,8 @@ class mm76_device : public pps41_base_device // device_execute_interface overrides virtual void execute_one() override; - void data_48x4(address_map &map); - void program_0_6k(address_map &map); + void data_48x4(address_map &map) ATTR_COLD; + void program_0_6k(address_map &map) ATTR_COLD; // opcode helpers u8 ram_r(); @@ -147,7 +147,7 @@ class mm76e_device : public mm76_device protected: mm76e_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, int prgwidth, address_map_constructor program, int datawidth, address_map_constructor data); - void program_1k(address_map &map); + void program_1k(address_map &map) ATTR_COLD; }; class mm76el_device : public mm76e_device diff --git a/src/devices/cpu/pps41/mm78.h b/src/devices/cpu/pps41/mm78.h index d901d87988c..7676cd30226 100644 --- a/src/devices/cpu/pps41/mm78.h +++ b/src/devices/cpu/pps41/mm78.h @@ -51,8 +51,8 @@ class mm78_device : public mm76_device mm78_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, int prgwidth, address_map_constructor program, int datawidth, address_map_constructor data); // 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 device_add_mconfig(machine_config &config) override { ; } // device_disasm_interface overrides @@ -61,11 +61,11 @@ class mm78_device : public mm76_device // device_execute_interface overrides virtual void execute_one() override; - void data_96x4(address_map &map); - void data_128x4(address_map &map); - void program_1_3k(address_map &map); - void program_1_5k(address_map &map); - void program_2k(address_map &map); + void data_96x4(address_map &map) ATTR_COLD; + void data_128x4(address_map &map) ATTR_COLD; + void program_1_3k(address_map &map) ATTR_COLD; + void program_1_5k(address_map &map) ATTR_COLD; + void program_2k(address_map &map) ATTR_COLD; // opcode helpers virtual bool op_is_eob(u8 op) override { return (op & 0xf8) == 0x08; } diff --git a/src/devices/cpu/pps41/mm78la.h b/src/devices/cpu/pps41/mm78la.h index a9c58ab4572..cdbcb1ac275 100644 --- a/src/devices/cpu/pps41/mm78la.h +++ b/src/devices/cpu/pps41/mm78la.h @@ -52,9 +52,9 @@ class mm78la_device : public mm78_device mm78la_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, int prgwidth, address_map_constructor program, int datawidth, address_map_constructor data); // device-level overrides - 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; // opcode handlers virtual void op_ioa() override; @@ -83,9 +83,9 @@ class mm77la_device : public mm78la_device protected: // device-level overrides - 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; // opcode handlers virtual void op_ix() override; diff --git a/src/devices/cpu/pps41/pps41base.h b/src/devices/cpu/pps41/pps41base.h index f024280a234..e97a8d39f33 100644 --- a/src/devices/cpu/pps41/pps41base.h +++ b/src/devices/cpu/pps41/pps41base.h @@ -59,8 +59,8 @@ class pps41_base_device : public cpu_device pps41_base_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, int prgwidth, address_map_constructor program, int datawidth, address_map_constructor data); // 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; // device_execute_interface overrides virtual u64 execute_clocks_to_cycles(u64 clocks) const noexcept override { return (clocks + 4 - 1) / 4; } diff --git a/src/devices/cpu/psx/dma.h b/src/devices/cpu/psx/dma.h index 0d81d67da7d..647400248eb 100644 --- a/src/devices/cpu/psx/dma.h +++ b/src/devices/cpu/psx/dma.h @@ -36,8 +36,8 @@ class psxdma_device : public device_t size_t m_ramsize; protected: - 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 device_post_load() override; private: diff --git a/src/devices/cpu/psx/irq.h b/src/devices/cpu/psx/irq.h index e3d9c34408f..d59f3953222 100644 --- a/src/devices/cpu/psx/irq.h +++ b/src/devices/cpu/psx/irq.h @@ -39,8 +39,8 @@ class psxirq_device : public device_t void intin10(int state); protected: - 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 device_post_load() override; private: diff --git a/src/devices/cpu/psx/mdec.h b/src/devices/cpu/psx/mdec.h index 8d9da890069..a380413d876 100644 --- a/src/devices/cpu/psx/mdec.h +++ b/src/devices/cpu/psx/mdec.h @@ -27,8 +27,8 @@ class psxmdec_device : public device_t void dma_read( uint32_t *ram, uint32_t n_address, int32_t n_size ); protected: - 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 device_post_load() override; private: diff --git a/src/devices/cpu/psx/psx.h b/src/devices/cpu/psx/psx.h index 30bb90d85ff..16950f929da 100644 --- a/src/devices/cpu/psx/psx.h +++ b/src/devices/cpu/psx/psx.h @@ -162,7 +162,7 @@ class psxcpu_device : public cpu_device, psxcpu_disassembler::config void set_disable_rom_berr(bool mode); - void psxcpu_internal_map(address_map &map); + void psxcpu_internal_map(address_map &map) ATTR_COLD; protected: static constexpr unsigned ICACHE_ENTRIES = 0x400; static constexpr unsigned DCACHE_ENTRIES = 0x100; @@ -170,10 +170,10 @@ class psxcpu_device : public cpu_device, psxcpu_disassembler::config psxcpu_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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 device_post_load() override; - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; // device_execute_interface overrides virtual uint32_t execute_min_cycles() const noexcept override { return 1; } diff --git a/src/devices/cpu/psx/rcnt.h b/src/devices/cpu/psx/rcnt.h index ee3e637a1e9..25df13a2d7e 100644 --- a/src/devices/cpu/psx/rcnt.h +++ b/src/devices/cpu/psx/rcnt.h @@ -40,8 +40,8 @@ class psxrcnt_device : public device_t uint32_t read(offs_t offset, uint32_t mem_mask = ~0); protected: - 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 device_post_load() override; TIMER_CALLBACK_MEMBER( timer_update ); diff --git a/src/devices/cpu/psx/sio.h b/src/devices/cpu/psx/sio.h index f751e7949cf..6bc07ab1df8 100644 --- a/src/devices/cpu/psx/sio.h +++ b/src/devices/cpu/psx/sio.h @@ -53,7 +53,7 @@ class psxsio_device : public device_t psxsio_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void device_post_load() override; TIMER_CALLBACK_MEMBER( sio_tick ); diff --git a/src/devices/cpu/rii/riscii.h b/src/devices/cpu/rii/riscii.h index 5dedcf53af5..f050ce77c6f 100644 --- a/src/devices/cpu/rii/riscii.h +++ b/src/devices/cpu/rii/riscii.h @@ -95,8 +95,8 @@ class riscii_series_device : public cpu_device riscii_series_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, unsigned addrbits, unsigned pcbits, unsigned bankbits, u8 maxbank, u8 post_id_mask, address_map_constructor regs); // 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; // device_execute_interface implementation virtual void execute_run() override; @@ -108,7 +108,7 @@ class riscii_series_device : public cpu_device // device_state_interface implementation virtual void state_string_export(const device_state_entry &entry, std::string &str) const override; - void core_regs_map(address_map &map); + void core_regs_map(address_map &map) ATTR_COLD; // register handlers u8 fsr0_r(); @@ -399,7 +399,7 @@ class epg3231_device : public riscii_series_device virtual std::unique_ptr create_disassembler() override; private: - void regs_map(address_map &map); + void regs_map(address_map &map) ATTR_COLD; }; DECLARE_DEVICE_TYPE(EPG3231, epg3231_device) diff --git a/src/devices/cpu/romp/romp.h b/src/devices/cpu/romp/romp.h index 556de7e6e95..9528a15078c 100644 --- a/src/devices/cpu/romp/romp.h +++ b/src/devices/cpu/romp/romp.h @@ -107,8 +107,8 @@ class romp_device : public cpu_device }; // device_t 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; // device_execute_interface overrides virtual u32 execute_min_cycles() const noexcept override { return 1; } diff --git a/src/devices/cpu/rsp/rsp.h b/src/devices/cpu/rsp/rsp.h index c19784ed03d..0007e96714c 100644 --- a/src/devices/cpu/rsp/rsp.h +++ b/src/devices/cpu/rsp/rsp.h @@ -95,9 +95,9 @@ class rsp_device : public cpu_device protected: // device-level overrides - virtual void device_start() override; - virtual void device_reset() override; - virtual void device_stop() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; + virtual void device_stop() override ATTR_COLD; // device_execute_interface overrides virtual uint32_t execute_min_cycles() const noexcept override { return 1; } diff --git a/src/devices/cpu/rw5000/a5500.h b/src/devices/cpu/rw5000/a5500.h index 138c38df630..6485a6cb868 100644 --- a/src/devices/cpu/rw5000/a5500.h +++ b/src/devices/cpu/rw5000/a5500.h @@ -33,8 +33,8 @@ class a5500_cpu_device : public a5000_cpu_device virtual void reset_pc() override { set_pc(0, 0); } virtual u8 sr_page() override { return 15; } - void program_768x8(address_map &map); - void data_48x4(address_map &map); + void program_768x8(address_map &map) ATTR_COLD; + void data_48x4(address_map &map) ATTR_COLD; }; diff --git a/src/devices/cpu/rw5000/a5900.h b/src/devices/cpu/rw5000/a5900.h index b6b59508578..d9de3004d5b 100644 --- a/src/devices/cpu/rw5000/a5900.h +++ b/src/devices/cpu/rw5000/a5900.h @@ -20,7 +20,7 @@ class a5900_cpu_device : public a5000_cpu_device a5900_cpu_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); protected: - void program_512x8(address_map &map); + void program_512x8(address_map &map) ATTR_COLD; // opcode handlers virtual void op_read() override; diff --git a/src/devices/cpu/rw5000/b5000.h b/src/devices/cpu/rw5000/b5000.h index 828ef1d9bd7..abc84759de5 100644 --- a/src/devices/cpu/rw5000/b5000.h +++ b/src/devices/cpu/rw5000/b5000.h @@ -63,8 +63,8 @@ class b5000_cpu_device : public rw5000_base_device virtual u8 sr_page() { return 0; } virtual u16 decode_digit(u8 data); - void program_448x8(address_map &map); - void data_45x4(address_map &map); + void program_448x8(address_map &map) ATTR_COLD; + void data_45x4(address_map &map) ATTR_COLD; // opcode helpers u8 ram_r(); diff --git a/src/devices/cpu/rw5000/b6000.h b/src/devices/cpu/rw5000/b6000.h index e415c353ee5..a99c754dbd9 100644 --- a/src/devices/cpu/rw5000/b6000.h +++ b/src/devices/cpu/rw5000/b6000.h @@ -53,12 +53,12 @@ class b6000_cpu_device : public b5000_cpu_device virtual std::unique_ptr create_disassembler() override; // device-level overrides - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; virtual void execute_one() override; virtual u16 decode_digit(u8 data) override; - void program_512x8(address_map &map); + void program_512x8(address_map &map) ATTR_COLD; // opcode handlers virtual void op_tkbs() override; diff --git a/src/devices/cpu/rw5000/b6100.h b/src/devices/cpu/rw5000/b6100.h index bd6a3db9e1b..ac914a5984c 100644 --- a/src/devices/cpu/rw5000/b6100.h +++ b/src/devices/cpu/rw5000/b6100.h @@ -59,8 +59,8 @@ class b6100_cpu_device : public b6000_cpu_device virtual u8 sr_page() override { return 15; } virtual u16 decode_digit(u8 data) override; - void program_896x8(address_map &map); - void data_48x4(address_map &map); + void program_896x8(address_map &map) ATTR_COLD; + void data_48x4(address_map &map) ATTR_COLD; // opcode handlers virtual void op_tkbs() override; diff --git a/src/devices/cpu/rw5000/rw5000base.h b/src/devices/cpu/rw5000/rw5000base.h index f6dc6146af8..a84968cd5aa 100644 --- a/src/devices/cpu/rw5000/rw5000base.h +++ b/src/devices/cpu/rw5000/rw5000base.h @@ -41,8 +41,8 @@ class rw5000_base_device : public cpu_device rw5000_base_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, int prgwidth, address_map_constructor program, int datawidth, address_map_constructor data); // 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; // device_execute_interface overrides virtual u64 execute_clocks_to_cycles(u64 clocks) const noexcept override { return (clocks + 4 - 1) / 4; } // 4-phase clock diff --git a/src/devices/cpu/rx01/rx01.h b/src/devices/cpu/rx01/rx01.h index 230f1cb8170..4eaf7fc8eee 100644 --- a/src/devices/cpu/rx01/rx01.h +++ b/src/devices/cpu/rx01/rx01.h @@ -52,8 +52,8 @@ class rx01_cpu_device : public cpu_device protected: // 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; // device_execute_interface implementation virtual u64 execute_clocks_to_cycles(u64 clocks) const noexcept override { return (clocks + 4 - 1) / 4; } diff --git a/src/devices/cpu/s2650/s2650.h b/src/devices/cpu/s2650/s2650.h index c17287b5380..e21e861aa62 100644 --- a/src/devices/cpu/s2650/s2650.h +++ b/src/devices/cpu/s2650/s2650.h @@ -38,8 +38,8 @@ class s2650_device : public cpu_device, public s2650_disassembler::config 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; // device_execute_interface overrides virtual uint32_t execute_min_cycles() const noexcept override { return 5; } diff --git a/src/devices/cpu/saturn/saturn.h b/src/devices/cpu/saturn/saturn.h index f40d3eb7237..3a2132d260f 100644 --- a/src/devices/cpu/saturn/saturn.h +++ b/src/devices/cpu/saturn/saturn.h @@ -80,8 +80,8 @@ class saturn_device : public cpu_device, public saturn_disassembler::config 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; // device_execute_interface overrides virtual uint32_t execute_min_cycles() const noexcept override { return 2; } diff --git a/src/devices/cpu/sc61860/sc61860.h b/src/devices/cpu/sc61860/sc61860.h index ab0e83c1bec..8345ee08067 100644 --- a/src/devices/cpu/sc61860/sc61860.h +++ b/src/devices/cpu/sc61860/sc61860.h @@ -68,8 +68,8 @@ class sc61860_device : public cpu_device 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; // device_execute_interface overrides virtual uint32_t execute_min_cycles() const noexcept override { return 2; } diff --git a/src/devices/cpu/scmp/scmp.h b/src/devices/cpu/scmp/scmp.h index bfa52a56e9d..dfc4d3e48c8 100644 --- a/src/devices/cpu/scmp/scmp.h +++ b/src/devices/cpu/scmp/scmp.h @@ -29,8 +29,8 @@ class scmp_device : public cpu_device scmp_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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; // device_execute_interface overrides virtual uint32_t execute_min_cycles() const noexcept override { return 5; } diff --git a/src/devices/cpu/score/score.h b/src/devices/cpu/score/score.h index 887d3ad68cb..b6328729a1a 100644 --- a/src/devices/cpu/score/score.h +++ b/src/devices/cpu/score/score.h @@ -37,8 +37,8 @@ class score7_cpu_device : public cpu_device 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; // device_execute_interface overrides virtual uint32_t execute_min_cycles() const noexcept override { return 1; } diff --git a/src/devices/cpu/scudsp/scudsp.h b/src/devices/cpu/scudsp/scudsp.h index 19e2a079c4f..bb4bc6b8fea 100644 --- a/src/devices/cpu/scudsp/scudsp.h +++ b/src/devices/cpu/scudsp/scudsp.h @@ -59,12 +59,12 @@ class scudsp_cpu_device : public cpu_device uint32_t ram_address_r(); void ram_address_w(uint32_t data); - void data_map(address_map &map); - void program_map(address_map &map); + void data_map(address_map &map) ATTR_COLD; + void program_map(address_map &map) ATTR_COLD; 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; // device_execute_interface overrides virtual uint32_t execute_min_cycles() const noexcept override { return 1; } diff --git a/src/devices/cpu/se3208/se3208.h b/src/devices/cpu/se3208/se3208.h index dff3ca9888c..8f6b2a1ccbb 100644 --- a/src/devices/cpu/se3208/se3208.h +++ b/src/devices/cpu/se3208/se3208.h @@ -26,8 +26,8 @@ class se3208_device : public cpu_device protected: // 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; // device_execute_interface implementation virtual uint32_t execute_min_cycles() const noexcept override { return 1; } diff --git a/src/devices/cpu/sh/sh.h b/src/devices/cpu/sh/sh.h index 54e27e963fc..9980fa87709 100644 --- a/src/devices/cpu/sh/sh.h +++ b/src/devices/cpu/sh/sh.h @@ -480,7 +480,7 @@ class sh_common_execution : public cpu_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; }; class sh_frontend : public drc_frontend diff --git a/src/devices/cpu/sh/sh2.h b/src/devices/cpu/sh/sh2.h index a552318df46..7e7af7c7d1e 100644 --- a/src/devices/cpu/sh/sh2.h +++ b/src/devices/cpu/sh/sh2.h @@ -36,8 +36,8 @@ class sh2_device : public sh_common_execution void check_pending_irq(const char *message); // 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; // device_execute_interface overrides virtual uint32_t execute_min_cycles() const noexcept override { return 1; } diff --git a/src/devices/cpu/sh/sh4.h b/src/devices/cpu/sh/sh4.h index ef745d85add..329cd9d2c71 100644 --- a/src/devices/cpu/sh/sh4.h +++ b/src/devices/cpu/sh/sh4.h @@ -257,8 +257,8 @@ class sh34_base_device : public sh_common_execution sh34_base_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, endianness_t endianness, address_map_constructor internal); // 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; // device_execute_interface overrides virtual uint32_t execute_min_cycles() const noexcept override { return 1; } @@ -685,12 +685,12 @@ class sh3_base_device : public sh34_base_device void sh3_internal_high_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0); uint32_t sh3_internal_high_r(offs_t offset, uint32_t mem_mask = ~0); - void sh3_internal_map(address_map &map); + void sh3_internal_map(address_map &map) ATTR_COLD; protected: // construction/destruction sh3_base_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, endianness_t endianness); - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; }; @@ -713,13 +713,13 @@ class sh4_base_device : public sh34_base_device virtual uint32_t sh4_getsqremap(uint32_t address) override; sh4_utlb m_utlb[64]; - void sh4_internal_map(address_map &map); + void sh4_internal_map(address_map &map) ATTR_COLD; protected: // construction/destruction sh4_base_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, endianness_t endianness); - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; }; diff --git a/src/devices/cpu/sh/sh7014.h b/src/devices/cpu/sh/sh7014.h index 40f33e1ac55..8999558b6ef 100644 --- a/src/devices/cpu/sh/sh7014.h +++ b/src/devices/cpu/sh/sh7014.h @@ -48,16 +48,16 @@ class sh7014_device : public sh2_device auto read_portf() { return m_port.lookup()->port_f_read_callback(); } protected: - 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; virtual void execute_set_input(int inputnum, int state) override; virtual void sh2_exception_internal(const char *message, int irqline, int vector) override; private: - void sh7014_map(address_map &map); + void sh7014_map(address_map &map) ATTR_COLD; void set_irq(int vector, int level, bool is_internal); diff --git a/src/devices/cpu/sh/sh7014_bsc.h b/src/devices/cpu/sh/sh7014_bsc.h index 97f4b0c879c..0a2f77df123 100644 --- a/src/devices/cpu/sh/sh7014_bsc.h +++ b/src/devices/cpu/sh/sh7014_bsc.h @@ -17,11 +17,11 @@ class sh7014_bsc_device : public device_t public: sh7014_bsc_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 0); - void map(address_map &map); + void map(address_map &map) ATTR_COLD; protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: uint16_t bcr1_r(); diff --git a/src/devices/cpu/sh/sh7014_dmac.h b/src/devices/cpu/sh/sh7014_dmac.h index d9c92918222..d44b3414a0d 100644 --- a/src/devices/cpu/sh/sh7014_dmac.h +++ b/src/devices/cpu/sh/sh7014_dmac.h @@ -51,15 +51,15 @@ class sh7014_dmac_channel_device : public device_t auto notify_dma_source_callback() { return m_notify_dma_source_cb.bind(); } - void map(address_map &map); + void map(address_map &map) ATTR_COLD; void dma_check(); bool is_dma_activated(int vector); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: enum { @@ -143,15 +143,15 @@ class sh7014_dmac_device : public device_t m_chan[1].lookup()->notify_dma_source_callback().set(std::forward(args)...); } - void map(address_map &map); + void map(address_map &map) ATTR_COLD; int is_dma_activated(int vector); bool is_transfer_allowed(); protected: - 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; private: enum { diff --git a/src/devices/cpu/sh/sh7014_intc.h b/src/devices/cpu/sh/sh7014_intc.h index d8d71f6dbc3..3a6629dcb60 100644 --- a/src/devices/cpu/sh/sh7014_intc.h +++ b/src/devices/cpu/sh/sh7014_intc.h @@ -71,15 +71,15 @@ class sh7014_intc_device : public device_t template void set_irq_callback(T &&... args) { m_set_irq_cb.set(std::forward(args)...); } - void map(address_map &map); + void map(address_map &map) ATTR_COLD; void set_input(int inputnum, int state); void set_interrupt(int vector, int state); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: enum { diff --git a/src/devices/cpu/sh/sh7014_mtu.h b/src/devices/cpu/sh/sh7014_mtu.h index c9c9e784390..1dc2f71653e 100644 --- a/src/devices/cpu/sh/sh7014_mtu.h +++ b/src/devices/cpu/sh/sh7014_mtu.h @@ -28,12 +28,12 @@ class sh7014_mtu_device : public device_t m_intc.set_tag(std::forward(intc)); } - void map(address_map &map); + void map(address_map &map) ATTR_COLD; protected: - 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; private: enum { @@ -78,15 +78,15 @@ class sh7014_mtu_channel_device : public device_t m_tgr_count = chan_id == 0 ? 4 : 2; } - void map_chan0(address_map &map); - void map_chan1_2(address_map &map); + void map_chan0(address_map &map) ATTR_COLD; + void map_chan1_2(address_map &map) ATTR_COLD; void set_enable(bool enabled); bool is_enabled() { return m_channel_active; } protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: enum { diff --git a/src/devices/cpu/sh/sh7014_port.h b/src/devices/cpu/sh/sh7014_port.h index 675812ebbaa..dc69a62a839 100644 --- a/src/devices/cpu/sh/sh7014_port.h +++ b/src/devices/cpu/sh/sh7014_port.h @@ -71,8 +71,8 @@ class sh7014_port_device : public device_t uint8_t pfdr_r(); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: devcb_read16 m_port_a_read_cb; diff --git a/src/devices/cpu/sh/sh7014_sci.h b/src/devices/cpu/sh/sh7014_sci.h index cc713bc737c..1673c631477 100644 --- a/src/devices/cpu/sh/sh7014_sci.h +++ b/src/devices/cpu/sh/sh7014_sci.h @@ -39,11 +39,11 @@ class sh7014_sci_device : public device_t, public device_serial_interface void set_external_clock_period(const attotime &_period); void set_send_full_data_transmit_on_sync_hack(bool enabled); - void map(address_map &map); + void map(address_map &map) ATTR_COLD; protected: - 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 rcv_complete() override; diff --git a/src/devices/cpu/sh/sh7021.h b/src/devices/cpu/sh/sh7021.h index 8540b2bbb62..487470ed8b1 100644 --- a/src/devices/cpu/sh/sh7021.h +++ b/src/devices/cpu/sh/sh7021.h @@ -26,8 +26,8 @@ class sh7021_device : public sh2_device template void write_pbdr_bit(int state); protected: - 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 execute_run() override; @@ -184,7 +184,7 @@ class sh7021_device : public sh2_device uint16_t pfc_cascr_r(); void pfc_cascr_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); - void internal_map(address_map &map); + void internal_map(address_map &map) ATTR_COLD; void recalc_irq(); diff --git a/src/devices/cpu/sh/sh7032.h b/src/devices/cpu/sh/sh7032.h index 907fe84a8c9..8608da410d6 100644 --- a/src/devices/cpu/sh/sh7032.h +++ b/src/devices/cpu/sh/sh7032.h @@ -16,11 +16,11 @@ class sh7032_device : public sh2_device sh7032_device(const machine_config &mconfig, const char *_tag, device_t *_owner, uint32_t _clock); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: - void sh7032_map(address_map &map); + void sh7032_map(address_map &map) ATTR_COLD; uint16_t sh7032_r(offs_t offset); void sh7032_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); diff --git a/src/devices/cpu/sh/sh7042.h b/src/devices/cpu/sh/sh7042.h index 6060380cc9c..dbe2b32f6aa 100644 --- a/src/devices/cpu/sh/sh7042.h +++ b/src/devices/cpu/sh/sh7042.h @@ -83,9 +83,9 @@ class sh7042_device : public sh2_device sh7042_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 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; virtual void sh2_exception_internal(const char *message, int irqline, int vector) override; virtual void execute_set_input(int irqline, int state) override; @@ -132,7 +132,7 @@ class sh7042_device : public sh2_device u32 m_pcf_e; u16 m_pcf_if; - void map(address_map &map); + void map(address_map &map) ATTR_COLD; u16 adc_default(int adc); u16 port16_default_r(int port); diff --git a/src/devices/cpu/sh/sh7604.h b/src/devices/cpu/sh/sh7604.h index c75c6964e49..bc0bfcc3330 100644 --- a/src/devices/cpu/sh/sh7604.h +++ b/src/devices/cpu/sh/sh7604.h @@ -37,8 +37,8 @@ class sh7604_device : public sh2_device protected: sh7604_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, int cpu_type, address_map_constructor internal_map, int addrlines); - 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 sh2_exception(const char *message, int irqline) override; @@ -55,7 +55,7 @@ class sh7604_device : public sh2_device CCLRA = 0x01 }; - void sh7604_map(address_map &map); + void sh7604_map(address_map &map) ATTR_COLD; uint32_t sh2_internal_a5(); diff --git a/src/devices/cpu/sh/sh7604_bus.h b/src/devices/cpu/sh/sh7604_bus.h index 8189e6d2bf0..6400f27cb43 100644 --- a/src/devices/cpu/sh/sh7604_bus.h +++ b/src/devices/cpu/sh/sh7604_bus.h @@ -26,7 +26,7 @@ class sh7604_bus_device : public device_t sh7604_bus_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // I/O operations - void bus_regs(address_map &map); + void bus_regs(address_map &map) ATTR_COLD; void write(address_space &space, offs_t offset, uint32_t data, uint32_t mem_mask = ~0); uint32_t read(address_space &space, offs_t offset); @@ -48,8 +48,8 @@ class sh7604_bus_device : public device_t protected: // device-level overrides //virtual void device_validity_check(validity_checker &valid) const; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: bool m_is_slave; diff --git a/src/devices/cpu/sh/sh7604_sci.h b/src/devices/cpu/sh/sh7604_sci.h index c760ff42588..87748a17a3e 100644 --- a/src/devices/cpu/sh/sh7604_sci.h +++ b/src/devices/cpu/sh/sh7604_sci.h @@ -26,7 +26,7 @@ class sh7604_sci_device : public device_t sh7604_sci_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // I/O operations - void sci_regs(address_map &map); + void sci_regs(address_map &map) ATTR_COLD; void write(address_space &space, offs_t offset, uint8_t data); uint8_t read(address_space &space, offs_t offset); @@ -59,8 +59,8 @@ class sh7604_sci_device : public device_t // device-level overrides // virtual void device_validity_check(validity_checker &valid) const; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: const address_space_config m_space_config; diff --git a/src/devices/cpu/sh/sh7604_wdt.h b/src/devices/cpu/sh/sh7604_wdt.h index dd39f4be514..a0d977f7c01 100644 --- a/src/devices/cpu/sh/sh7604_wdt.h +++ b/src/devices/cpu/sh/sh7604_wdt.h @@ -26,7 +26,7 @@ class sh7604_wdt_device : public device_t sh7604_wdt_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // I/O operations - void wdt_regs(address_map &map); + void wdt_regs(address_map &map) ATTR_COLD; void write(address_space &space, offs_t offset, uint16_t data); uint8_t read(address_space &space, offs_t offset); @@ -34,8 +34,8 @@ class sh7604_wdt_device : public device_t protected: // device-level overrides // virtual void device_validity_check(validity_checker &valid) const; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: const address_space_config m_space_config; }; diff --git a/src/devices/cpu/sh/sh_adc.h b/src/devices/cpu/sh/sh_adc.h index 10f55c9793b..d9e8236f09b 100644 --- a/src/devices/cpu/sh/sh_adc.h +++ b/src/devices/cpu/sh/sh_adc.h @@ -71,8 +71,8 @@ class sh_adc_device : public device_t { bool m_analog_powered, m_adtrg; u64 m_next_event; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; void sampling(); void start_conversion(); diff --git a/src/devices/cpu/sh/sh_bsc.h b/src/devices/cpu/sh/sh_bsc.h index 574e57ccd64..f1c78916cf7 100644 --- a/src/devices/cpu/sh/sh_bsc.h +++ b/src/devices/cpu/sh/sh_bsc.h @@ -38,8 +38,8 @@ class sh_bsc_device : public device_t { protected: u16 m_bcr1, m_bcr2, m_wcr1, m_wcr2, m_dcr, m_rtcsr, m_rtcnt, m_rtcor; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; }; DECLARE_DEVICE_TYPE(SH_BSC, sh_bsc_device) diff --git a/src/devices/cpu/sh/sh_cmt.h b/src/devices/cpu/sh/sh_cmt.h index 0407f71c06e..4451e90e3ef 100644 --- a/src/devices/cpu/sh/sh_cmt.h +++ b/src/devices/cpu/sh/sh_cmt.h @@ -58,8 +58,8 @@ class sh_cmt_device : public device_t { std::array m_cnt; std::array m_cor; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; void csr_w(int reg, u16 data, u16 mem_mask); void cnt_w(int reg, u16 data, u16 mem_mask); diff --git a/src/devices/cpu/sh/sh_dmac.h b/src/devices/cpu/sh/sh_dmac.h index f5ae0bfeec5..3c8436df0d8 100644 --- a/src/devices/cpu/sh/sh_dmac.h +++ b/src/devices/cpu/sh/sh_dmac.h @@ -38,8 +38,8 @@ class sh_dmac_device : public device_t { u16 m_dmaor; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; }; class sh_dmac_channel_device : public device_t { @@ -69,8 +69,8 @@ class sh_dmac_channel_device : public device_t { u32 m_sar, m_dar, m_dmatcr, m_chcr; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; }; DECLARE_DEVICE_TYPE(SH_DMAC, sh_dmac_device) diff --git a/src/devices/cpu/sh/sh_intc.h b/src/devices/cpu/sh/sh_intc.h index d00f167b927..9a743f4e778 100644 --- a/src/devices/cpu/sh/sh_intc.h +++ b/src/devices/cpu/sh/sh_intc.h @@ -47,8 +47,8 @@ class sh_intc_device : public device_t { required_device m_cpu; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; void update_irq(); }; diff --git a/src/devices/cpu/sh/sh_mtu.h b/src/devices/cpu/sh/sh_mtu.h index 9c90bc398bf..7d1a9be9d6e 100644 --- a/src/devices/cpu/sh/sh_mtu.h +++ b/src/devices/cpu/sh/sh_mtu.h @@ -125,8 +125,8 @@ class sh_mtu_channel_device : public device_t { bool m_channel_active; std::array m_count_types; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; void update_counter(u64 cur_time = 0); void recalc_event(u64 cur_time = 0); }; @@ -172,8 +172,8 @@ class sh_mtu_device : public device_t { u8 m_tstr, m_tsyr, m_toer, m_tocr, m_tgcr; u16 m_tcdr, m_tddr, m_tcnts, m_tcbr; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; }; DECLARE_DEVICE_TYPE(SH_MTU, sh_mtu_device) diff --git a/src/devices/cpu/sh/sh_port.h b/src/devices/cpu/sh/sh_port.h index ec2a19228ee..45f7d14feaf 100644 --- a/src/devices/cpu/sh/sh_port.h +++ b/src/devices/cpu/sh/sh_port.h @@ -38,8 +38,8 @@ class sh_port16_device : public device_t { u16 m_default_io, m_mask; u16 m_dr, m_io; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; }; class sh_port32_device : public device_t { @@ -65,8 +65,8 @@ class sh_port32_device : public device_t { u32 m_default_io, m_mask; u32 m_dr, m_io; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; }; DECLARE_DEVICE_TYPE(SH_PORT16, sh_port16_device) diff --git a/src/devices/cpu/sh/sh_sci.h b/src/devices/cpu/sh/sh_sci.h index bb1890c3c8b..3c36a346254 100644 --- a/src/devices/cpu/sh/sh_sci.h +++ b/src/devices/cpu/sh/sh_sci.h @@ -120,8 +120,8 @@ class sh_sci_device : public device_t { std::string m_last_clock_message; - void device_start() override; - void device_reset() override; + void device_start() override ATTR_COLD; + void device_reset() override ATTR_COLD; TIMER_CALLBACK_MEMBER(sync_tick); diff --git a/src/devices/cpu/sharc/sharc.h b/src/devices/cpu/sharc/sharc.h index eafbd7fe74f..e8246a32d8f 100644 --- a/src/devices/cpu/sharc/sharc.h +++ b/src/devices/cpu/sharc/sharc.h @@ -200,12 +200,12 @@ class adsp21062_device : public cpu_device EXCEPTION_COUNT }; - void internal_data(address_map &map); - void internal_pgm(address_map &map); + void internal_data(address_map &map) ATTR_COLD; + void internal_pgm(address_map &map) ATTR_COLD; 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; // device_execute_interface overrides virtual uint32_t execute_min_cycles() const noexcept override { return 8; } diff --git a/src/devices/cpu/sm510/sm500.h b/src/devices/cpu/sm510/sm500.h index 04cc902e90f..93f7da163c6 100644 --- a/src/devices/cpu/sm510/sm500.h +++ b/src/devices/cpu/sm510/sm500.h @@ -59,11 +59,11 @@ class sm500_device : public sm510_base_device protected: sm500_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, int stack_levels, int o_pins, int prgwidth, address_map_constructor program, int datawidth, address_map_constructor data); - void program_1_2k(address_map &map); - void data_4x10x4(address_map &map); + void program_1_2k(address_map &map) ATTR_COLD; + void data_4x10x4(address_map &map) ATTR_COLD; - 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 std::unique_ptr create_disassembler() override; virtual void execute_one() override; virtual bool op_argument() override; diff --git a/src/devices/cpu/sm510/sm510.h b/src/devices/cpu/sm510/sm510.h index 49cb0e7b9c6..64f6d7c7258 100644 --- a/src/devices/cpu/sm510/sm510.h +++ b/src/devices/cpu/sm510/sm510.h @@ -64,8 +64,8 @@ class sm510_device : public sm510_base_device sm510_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock = 32768); protected: - void program_2_7k(address_map &map); - void data_96_32x4(address_map &map); + void program_2_7k(address_map &map) ATTR_COLD; + void data_96_32x4(address_map &map) ATTR_COLD; virtual std::unique_ptr create_disassembler() override; virtual void execute_one() override; diff --git a/src/devices/cpu/sm510/sm510base.h b/src/devices/cpu/sm510/sm510base.h index 139f5cdb79c..3f65b117c97 100644 --- a/src/devices/cpu/sm510/sm510base.h +++ b/src/devices/cpu/sm510/sm510base.h @@ -70,8 +70,8 @@ class sm510_base_device : public cpu_device sm510_base_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, int stack_levels, int prgwidth, address_map_constructor program, int datawidth, address_map_constructor data); // 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; // device_execute_interface implementation virtual u64 execute_clocks_to_cycles(u64 clocks) const noexcept override { return (clocks + m_clk_div - 1) / m_clk_div; } // default 2 cycles per machine cycle diff --git a/src/devices/cpu/sm510/sm511.h b/src/devices/cpu/sm510/sm511.h index 463ede6be04..c6eef9ce1b9 100644 --- a/src/devices/cpu/sm510/sm511.h +++ b/src/devices/cpu/sm510/sm511.h @@ -32,11 +32,11 @@ class sm511_device : public sm510_base_device protected: sm511_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, int stack_levels, int prgwidth, address_map_constructor program, int datawidth, address_map_constructor data); - void program_4k(address_map &map); - void data_96_32x4(address_map &map); + void program_4k(address_map &map) ATTR_COLD; + void data_96_32x4(address_map &map) ATTR_COLD; virtual void device_post_load() override { notify_clock_changed(); } - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; virtual std::unique_ptr create_disassembler() override; virtual void execute_one() override; @@ -53,7 +53,7 @@ class sm512_device : public sm511_device sm512_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock = 32768); protected: - void data_80_48x4(address_map &map); + void data_80_48x4(address_map &map) ATTR_COLD; }; diff --git a/src/devices/cpu/sm510/sm530.h b/src/devices/cpu/sm510/sm530.h index 654bcf2963e..adcde423087 100644 --- a/src/devices/cpu/sm510/sm530.h +++ b/src/devices/cpu/sm510/sm530.h @@ -77,11 +77,11 @@ class sm530_device : public sm511_device protected: sm530_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, int stack_levels, int prgwidth, address_map_constructor program, int datawidth, address_map_constructor data); - void program_2k(address_map &map); - void data_64_24x4(address_map &map); + void program_2k(address_map &map) ATTR_COLD; + void data_64_24x4(address_map &map) ATTR_COLD; - 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 std::unique_ptr create_disassembler() override; virtual u64 execute_clocks_to_cycles(u64 clocks) const noexcept override { return (clocks + 3 - 1) / 3; } // 3 cycles per machine cycle diff --git a/src/devices/cpu/sm510/sm590.h b/src/devices/cpu/sm510/sm590.h index 8e866b954f8..bb0455c4bad 100644 --- a/src/devices/cpu/sm510/sm590.h +++ b/src/devices/cpu/sm510/sm590.h @@ -99,14 +99,14 @@ class sm590_device : public sm510_base_device protected: sm590_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, int stack_levels, int prgwidth, address_map_constructor program, int datawidth, address_map_constructor data); - void program_512x8(address_map &map); - void program_768x8(address_map &map); - void program_1kx8(address_map &map); - void data_32x4(address_map &map); - void data_56x4(address_map &map); - - virtual void device_start() override; - virtual void device_reset() override; + void program_512x8(address_map &map) ATTR_COLD; + void program_768x8(address_map &map) ATTR_COLD; + void program_1kx8(address_map &map) ATTR_COLD; + void data_32x4(address_map &map) ATTR_COLD; + void data_56x4(address_map &map) ATTR_COLD; + + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; virtual std::unique_ptr create_disassembler() override; virtual u64 execute_clocks_to_cycles(u64 clocks) const noexcept override { return (clocks + 4 - 1) / 4; } // 4 cycles per machine cycle diff --git a/src/devices/cpu/sm510/sm5a.h b/src/devices/cpu/sm510/sm5a.h index 193c5123610..05d746b9bf3 100644 --- a/src/devices/cpu/sm510/sm5a.h +++ b/src/devices/cpu/sm510/sm5a.h @@ -65,8 +65,8 @@ class sm5a_device : public sm500_device protected: sm5a_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, int stack_levels, int o_pins, int prgwidth, address_map_constructor program, int datawidth, address_map_constructor data); - void program_1_8k(address_map &map); - void data_5x13x4(address_map &map); + void program_1_8k(address_map &map) ATTR_COLD; + void data_5x13x4(address_map &map) ATTR_COLD; virtual std::unique_ptr create_disassembler() override; virtual void execute_one() override; diff --git a/src/devices/cpu/sm8500/sm8500.h b/src/devices/cpu/sm8500/sm8500.h index 936bb42a599..b65634e34d9 100644 --- a/src/devices/cpu/sm8500/sm8500.h +++ b/src/devices/cpu/sm8500/sm8500.h @@ -51,8 +51,8 @@ class sm8500_cpu_device : public cpu_device static constexpr uint8_t FLAG_I = 0x01; // 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; // device_execute_interface overrides virtual uint32_t execute_min_cycles() const noexcept override { return 1; } diff --git a/src/devices/cpu/sparc/sparc.h b/src/devices/cpu/sparc/sparc.h index 821da8e9fb1..f61ddb30e5e 100644 --- a/src/devices/cpu/sparc/sparc.h +++ b/src/devices/cpu/sparc/sparc.h @@ -26,10 +26,10 @@ class sparc_base_device : public cpu_device, public sparc_mmu_host_interface, pr template void set_mmu(T &&tag) { m_mmu.set_tag(std::forward(tag)); } // 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 device_post_load() override; - virtual void device_resolve_objects() override; + virtual void device_resolve_objects() override ATTR_COLD; // device_execute_interface overrides virtual uint32_t execute_min_cycles() const noexcept override; @@ -295,8 +295,8 @@ class sparcv8_device : public sparc_base_device protected: sparcv8_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 bool execute_extra_group2(uint32_t op) override; virtual bool execute_extra_group3(uint32_t op) override; @@ -339,8 +339,8 @@ class mb86930_device : public sparcv8_device 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 device_post_load() override; virtual bool execute_extra_group2(uint32_t op) override; @@ -397,14 +397,14 @@ class mb86930_device : public sparcv8_device u32 dcache_data_r(offs_t offset, u32 mem_mask); void dcache_data_w(offs_t offset, u32 data, u32 mem_mask); - void control_map(address_map &map); - void icache_lock_map(address_map &map); - void dcache_lock_map(address_map &map); - template void mmu_map(address_map &map); - void icache_tag_map(address_map &map); - void icache_data_map(address_map &map); - void dcache_tag_map(address_map &map); - void dcache_data_map(address_map &map); + void control_map(address_map &map) ATTR_COLD; + void icache_lock_map(address_map &map) ATTR_COLD; + void dcache_lock_map(address_map &map) ATTR_COLD; + template void mmu_map(address_map &map) ATTR_COLD; + void icache_tag_map(address_map &map) ATTR_COLD; + void icache_data_map(address_map &map) ATTR_COLD; + void dcache_tag_map(address_map &map) ATTR_COLD; + void dcache_data_map(address_map &map) ATTR_COLD; void update_addr_masks(); void update_wait_states(); diff --git a/src/devices/cpu/spc700/spc700.h b/src/devices/cpu/spc700/spc700.h index b43c6dd71f2..59c862f645a 100644 --- a/src/devices/cpu/spc700/spc700.h +++ b/src/devices/cpu/spc700/spc700.h @@ -17,8 +17,8 @@ class spc700_device : public cpu_device spc700_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, address_map_constructor internal_map = address_map_constructor()); // 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; // device_execute_interface overrides virtual uint32_t execute_min_cycles() const noexcept override { return 2; } diff --git a/src/devices/cpu/ssem/ssem.h b/src/devices/cpu/ssem/ssem.h index 06180551468..f3d4d9b8041 100644 --- a/src/devices/cpu/ssem/ssem.h +++ b/src/devices/cpu/ssem/ssem.h @@ -26,9 +26,9 @@ class ssem_device : public cpu_device protected: // device-level overrides - virtual void device_start() override; - virtual void device_reset() override; - virtual void device_stop() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; + virtual void device_stop() override ATTR_COLD; // device_execute_interface overrides virtual uint32_t execute_min_cycles() const noexcept override; diff --git a/src/devices/cpu/ssp1601/ssp1601.h b/src/devices/cpu/ssp1601/ssp1601.h index 673b0eb0f55..48133cd5790 100644 --- a/src/devices/cpu/ssp1601/ssp1601.h +++ b/src/devices/cpu/ssp1601/ssp1601.h @@ -26,8 +26,8 @@ class ssp1601_device : public cpu_device 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; // device_execute_interface overrides virtual uint32_t execute_min_cycles() const noexcept override { return 1; } diff --git a/src/devices/cpu/st62xx/st62xx.h b/src/devices/cpu/st62xx/st62xx.h index 0cb3e36ea42..e897dab172a 100644 --- a/src/devices/cpu/st62xx/st62xx.h +++ b/src/devices/cpu/st62xx/st62xx.h @@ -89,8 +89,8 @@ class st6228_device : public cpu_device 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; // device_execute_interface overrides virtual uint32_t execute_min_cycles() const noexcept override; @@ -108,8 +108,8 @@ class st6228_device : public cpu_device virtual void state_string_export(const device_state_entry &entry, std::string &str) const override; // address spaces - void st6228_program_map(address_map &map); - void st6228_data_map(address_map &map); + void st6228_program_map(address_map &map) ATTR_COLD; + void st6228_data_map(address_map &map) ATTR_COLD; void unimplemented_opcode(uint8_t op); diff --git a/src/devices/cpu/st9/st905x.h b/src/devices/cpu/st9/st905x.h index 17605756f1b..813251666f9 100644 --- a/src/devices/cpu/st9/st905x.h +++ b/src/devices/cpu/st9/st905x.h @@ -22,8 +22,8 @@ class st9_device : public cpu_device st9_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, address_map_constructor regmap); // 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; // device_execute_interface overrides virtual void execute_run() override; @@ -86,7 +86,7 @@ class st90r50_device : public st9_device st90r50_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); private: - void register_map(address_map &map); + void register_map(address_map &map) ATTR_COLD; }; // device type declaration diff --git a/src/devices/cpu/superfx/superfx.h b/src/devices/cpu/superfx/superfx.h index 9cbe9adf353..32ac4bc1016 100644 --- a/src/devices/cpu/superfx/superfx.h +++ b/src/devices/cpu/superfx/superfx.h @@ -108,8 +108,8 @@ class superfx_device : public cpu_device, public superfx_disassembler::config superfx_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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; // device_execute_interface overrides virtual void execute_run() override; diff --git a/src/devices/cpu/t11/t11.h b/src/devices/cpu/t11/t11.h index 431da089b8f..0ac0a17790a 100644 --- a/src/devices/cpu/t11/t11.h +++ b/src/devices/cpu/t11/t11.h @@ -89,8 +89,8 @@ class t11_device : public cpu_device t11_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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; // device_execute_interface overrides virtual uint32_t execute_min_cycles() const noexcept override { return 12; } @@ -1203,7 +1203,7 @@ class k1801vm1_device : public t11_device, public z80_daisy_chain_interface protected: // device-level overrides - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; // device_state_interface overrides virtual void state_string_export(const device_state_entry &entry, std::string &str) const override; @@ -1221,7 +1221,7 @@ class k1801vm2_device : public t11_device, public z80_daisy_chain_interface protected: // device-level overrides - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; // device_state_interface overrides virtual void state_string_export(const device_state_entry &entry, std::string &str) const override; diff --git a/src/devices/cpu/tlcs870/tlcs870.h b/src/devices/cpu/tlcs870/tlcs870.h index 189fec2f90f..e6e4d5f5d05 100644 --- a/src/devices/cpu/tlcs870/tlcs870.h +++ b/src/devices/cpu/tlcs870/tlcs870.h @@ -45,8 +45,8 @@ class tlcs870_device : public cpu_device tlcs870_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, address_map_constructor program_map); // 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; // device_execute_interface overrides virtual uint32_t execute_min_cycles() const noexcept override { return 2; } @@ -66,7 +66,7 @@ class tlcs870_device : public cpu_device // device_disasm_interface overrides virtual std::unique_ptr create_disassembler() override; - void tmp87ph40an_mem(address_map &map); + void tmp87ph40an_mem(address_map &map) ATTR_COLD; uint32_t m_debugger_temp; diff --git a/src/devices/cpu/tlcs90/tlcs90.h b/src/devices/cpu/tlcs90/tlcs90.h index c7e9b598003..9f690c934ad 100644 --- a/src/devices/cpu/tlcs90/tlcs90.h +++ b/src/devices/cpu/tlcs90/tlcs90.h @@ -38,8 +38,8 @@ class tlcs90_device : public cpu_device tlcs90_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, address_map_constructor program_map); // 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; // device_execute_interface overrides virtual uint32_t execute_min_cycles() const noexcept override { return 2; } @@ -55,13 +55,13 @@ class tlcs90_device : public cpu_device virtual void state_string_export(const device_state_entry &entry, std::string &str) const override; // address maps - void tmp90840_regs(address_map &map); - void tmp90840_mem(address_map &map); - void tmp90841_mem(address_map &map); - void tmp90844_regs(address_map &map); - void tmp90ph44_mem(address_map &map); - void tmp91640_mem(address_map &map); - void tmp91641_mem(address_map &map); + void tmp90840_regs(address_map &map) ATTR_COLD; + void tmp90840_mem(address_map &map) ATTR_COLD; + void tmp90841_mem(address_map &map) ATTR_COLD; + void tmp90844_regs(address_map &map) ATTR_COLD; + void tmp90ph44_mem(address_map &map) ATTR_COLD; + void tmp91640_mem(address_map &map) ATTR_COLD; + void tmp91641_mem(address_map &map) ATTR_COLD; TIMER_CALLBACK_MEMBER(t90_timer_callback); TIMER_CALLBACK_MEMBER(t90_timer4_callback); diff --git a/src/devices/cpu/tlcs900/tlcs900.h b/src/devices/cpu/tlcs900/tlcs900.h index f2cfa8d3723..a3ce3d5fa67 100644 --- a/src/devices/cpu/tlcs900/tlcs900.h +++ b/src/devices/cpu/tlcs900/tlcs900.h @@ -51,8 +51,8 @@ class tlcs900_device : public cpu_device tlcs900_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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; // device_execute_interface overrides virtual uint32_t execute_min_cycles() const noexcept override { return 1; } /* FIXME */ @@ -644,7 +644,7 @@ class tlcs900h_device : public tlcs900_device tlcs900h_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // device-level overrides - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; virtual int tlcs900_gpr_cycles() const override { return 1; } virtual int tlcs900_mem_index_cycles() const override { return 1; } diff --git a/src/devices/cpu/tlcs900/tmp95c061.h b/src/devices/cpu/tlcs900/tmp95c061.h index fc59747457e..7b52057fa2d 100644 --- a/src/devices/cpu/tlcs900/tmp95c061.h +++ b/src/devices/cpu/tlcs900/tmp95c061.h @@ -48,8 +48,8 @@ class tmp95c061_device : public tlcs900h_device protected: virtual void device_config_complete() override; - 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 execute_set_input(int inputnum, int state) override; virtual void tlcs900_check_hdma() override; @@ -133,7 +133,7 @@ class tmp95c061_device : public tlcs900h_device uint8_t dmemcr_r(); void dmemcr_w(uint8_t data); - void internal_mem(address_map &map); + void internal_mem(address_map &map) ATTR_COLD; // analogue inputs, sampled at 10 bits devcb_read16::array<4> m_an_read; diff --git a/src/devices/cpu/tlcs900/tmp95c063.h b/src/devices/cpu/tlcs900/tmp95c063.h index 47782529d4e..acbcfc10f3c 100644 --- a/src/devices/cpu/tlcs900/tmp95c063.h +++ b/src/devices/cpu/tlcs900/tmp95c063.h @@ -58,8 +58,8 @@ class tmp95c063_device : public tlcs900h_device protected: virtual void device_config_complete() override; - 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 execute_set_input(int inputnum, int state) override; virtual void tlcs900_check_hdma() override; @@ -158,7 +158,7 @@ class tmp95c063_device : public tlcs900h_device void dadrv_w(uint8_t data); void dareg_w(offs_t offset, uint8_t data); - void internal_mem(address_map &map); + void internal_mem(address_map &map) ATTR_COLD; // analogue inputs, sampled at 10 bits devcb_read16::array<8> m_an_read; diff --git a/src/devices/cpu/tlcs900/tmp96c141.h b/src/devices/cpu/tlcs900/tmp96c141.h index 973693a201b..4710820f71e 100644 --- a/src/devices/cpu/tlcs900/tmp96c141.h +++ b/src/devices/cpu/tlcs900/tmp96c141.h @@ -76,8 +76,8 @@ class tmp96c141_device : public tlcs900_device protected: // device-level overrides virtual void device_config_complete() override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; // device_execute_interface overrides virtual void execute_set_input(int inputnum, int state) override; @@ -89,7 +89,7 @@ class tmp96c141_device : public tlcs900_device virtual void tlcs900_handle_timers() override; private: - void internal_mem(address_map &map); + void internal_mem(address_map &map) ATTR_COLD; }; // device type declaration diff --git a/src/devices/cpu/tms1000/smc1102.h b/src/devices/cpu/tms1000/smc1102.h index 585b70a12b0..b94f4b7807f 100644 --- a/src/devices/cpu/tms1000/smc1102.h +++ b/src/devices/cpu/tms1000/smc1102.h @@ -52,8 +52,8 @@ class smc1102_cpu_device : public tms1100_cpu_device smc1102_cpu_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, u8 o_pins, u8 r_pins, u8 pc_bits, u8 byte_bits, u8 x_bits, u8 stack_levels, int rom_width, address_map_constructor rom_map, int ram_width, address_map_constructor ram_map); // 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 device_add_mconfig(machine_config &config) override { } virtual void execute_set_input(int line, int state) override; diff --git a/src/devices/cpu/tms1000/tms0270.h b/src/devices/cpu/tms1000/tms0270.h index e6f3f89197e..f47b4bb3c2b 100644 --- a/src/devices/cpu/tms1000/tms0270.h +++ b/src/devices/cpu/tms1000/tms0270.h @@ -21,10 +21,10 @@ class tms0270_cpu_device : public tms0980_cpu_device protected: // 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 device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual void write_o_reg(u8 index) override { tms1k_base_device::write_o_reg(index); } virtual u8 read_k_input() override; diff --git a/src/devices/cpu/tms1000/tms0970.h b/src/devices/cpu/tms1000/tms0970.h index 583a9480e91..901f092b88e 100644 --- a/src/devices/cpu/tms1000/tms0970.h +++ b/src/devices/cpu/tms1000/tms0970.h @@ -23,8 +23,8 @@ class tms0970_cpu_device : public tms1000_cpu_device tms0970_cpu_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, u8 o_pins, u8 r_pins, u8 pc_bits, u8 byte_bits, u8 x_bits, u8 stack_levels, int rom_width, address_map_constructor rom_map, int ram_width, address_map_constructor ram_map); // overrides - virtual void device_reset() override; - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_reset() override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual void write_o_reg(u8 index) override; @@ -40,7 +40,7 @@ class tms0950_cpu_device : public tms0970_cpu_device protected: // overrides virtual void device_reset() override { tms1000_cpu_device::device_reset(); } - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual void op_rstr() override { } // assume it has no RSTR or CLO virtual void op_clo() override { } // " diff --git a/src/devices/cpu/tms1000/tms0980.h b/src/devices/cpu/tms1000/tms0980.h index b2d8b4c106d..87ab670af28 100644 --- a/src/devices/cpu/tms1000/tms0980.h +++ b/src/devices/cpu/tms1000/tms0980.h @@ -46,14 +46,14 @@ class tms0980_cpu_device : public tms0970_cpu_device protected: tms0980_cpu_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, u8 o_pins, u8 r_pins, u8 pc_bits, u8 byte_bits, u8 x_bits, u8 stack_levels, int rom_width, address_map_constructor rom_map, int ram_width, address_map_constructor ram_map); - void ram_144x4(address_map &map); + void ram_144x4(address_map &map) ATTR_COLD; // overrides virtual u32 decode_fixed(offs_t offset); virtual u32 decode_micro(offs_t offset) override; - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual std::unique_ptr create_disassembler() override; @@ -78,7 +78,7 @@ class tms1980_cpu_device : public tms0980_cpu_device protected: // overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual void write_o_reg(u8 index) override { tms1k_base_device::write_o_reg(index); } diff --git a/src/devices/cpu/tms1000/tms1000.h b/src/devices/cpu/tms1000/tms1000.h index c850b98e6d0..3faeb98d96e 100644 --- a/src/devices/cpu/tms1000/tms1000.h +++ b/src/devices/cpu/tms1000/tms1000.h @@ -68,12 +68,12 @@ class tms1000_cpu_device : public tms1k_base_device protected: tms1000_cpu_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, u8 o_pins, u8 r_pins, u8 pc_bits, u8 byte_bits, u8 x_bits, u8 stack_levels, int rom_width, address_map_constructor rom_map, int ram_width, address_map_constructor ram_map); - void rom_9bitm(address_map &map); - void ram_32x4(address_map &map); + void rom_9bitm(address_map &map) ATTR_COLD; + void ram_32x4(address_map &map) ATTR_COLD; // overrides - virtual void device_reset() override; - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_reset() override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual std::unique_ptr create_disassembler() override; virtual u32 decode_micro(offs_t offset); @@ -100,7 +100,7 @@ class tms1070_cpu_device : public tms1000_cpu_device protected: tms1070_cpu_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, u8 o_pins, u8 r_pins, u8 pc_bits, u8 byte_bits, u8 x_bits, u8 stack_levels, int rom_width, address_map_constructor rom_map, int ram_width, address_map_constructor ram_map); - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual void write_o_output(u16 data) override { tms1000_cpu_device::write_o_output(bitswap<10>(data,0,1,9,8,7,6,5,4,3,2)); } }; diff --git a/src/devices/cpu/tms1000/tms1000c.h b/src/devices/cpu/tms1000/tms1000c.h index b698a575615..35539a257ed 100644 --- a/src/devices/cpu/tms1000/tms1000c.h +++ b/src/devices/cpu/tms1000/tms1000c.h @@ -21,7 +21,7 @@ class tms1000c_cpu_device : public tms1000_cpu_device protected: // overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual u32 decode_micro(offs_t offset) override; }; diff --git a/src/devices/cpu/tms1000/tms1100.h b/src/devices/cpu/tms1000/tms1100.h index c421a562d58..534f436275a 100644 --- a/src/devices/cpu/tms1000/tms1100.h +++ b/src/devices/cpu/tms1000/tms1100.h @@ -69,8 +69,8 @@ class tms1100_cpu_device : public tms1000_cpu_device tms1100_cpu_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, u8 o_pins, u8 r_pins, u8 pc_bits, u8 byte_bits, u8 x_bits, u8 stack_levels, int rom_width, address_map_constructor rom_map, int ram_width, address_map_constructor ram_map); // 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 std::unique_ptr create_disassembler() override; diff --git a/src/devices/cpu/tms1000/tms1400.h b/src/devices/cpu/tms1000/tms1400.h index acac9ea4ca1..47e5a123624 100644 --- a/src/devices/cpu/tms1000/tms1400.h +++ b/src/devices/cpu/tms1000/tms1400.h @@ -47,8 +47,8 @@ class tms1400_cpu_device : public tms1100_cpu_device tms1400_cpu_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, u8 o_pins, u8 r_pins, u8 pc_bits, u8 byte_bits, u8 x_bits, u8 stack_levels, int rom_width, address_map_constructor rom_map, int ram_width, address_map_constructor ram_map); // overrides - virtual void device_reset() override; - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_reset() override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual std::unique_ptr create_disassembler() override; diff --git a/src/devices/cpu/tms1000/tms1k_base.h b/src/devices/cpu/tms1000/tms1k_base.h index 01437ba9d4d..1d749ebd1e7 100644 --- a/src/devices/cpu/tms1000/tms1k_base.h +++ b/src/devices/cpu/tms1000/tms1k_base.h @@ -55,8 +55,8 @@ class tms1k_base_device : public cpu_device tms1k_base_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, u8 o_pins, u8 r_pins, u8 pc_bits, u8 byte_bits, u8 x_bits, u8 stack_levels, int rom_width, address_map_constructor rom_map, int ram_width, address_map_constructor ram_map); // 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; // device_execute_interface overrides virtual u32 execute_min_cycles() const noexcept override { return 1; } @@ -138,12 +138,12 @@ class tms1k_base_device : public cpu_device F_EXTRA = (1ULL << 28), // custom opcodes }; - void rom_10bit(address_map &map); - void rom_11bit(address_map &map); - void rom_12bit(address_map &map); - void ram_6bit(address_map &map); - void ram_7bit(address_map &map); - void ram_8bit(address_map &map); + void rom_10bit(address_map &map) ATTR_COLD; + void rom_11bit(address_map &map) ATTR_COLD; + void rom_12bit(address_map &map) ATTR_COLD; + void ram_6bit(address_map &map) ATTR_COLD; + void ram_7bit(address_map &map) ATTR_COLD; + void ram_8bit(address_map &map) ATTR_COLD; void next_pc(); diff --git a/src/devices/cpu/tms1000/tms2100.h b/src/devices/cpu/tms1000/tms2100.h index 9cf2c9eb61d..886ea90684a 100644 --- a/src/devices/cpu/tms1000/tms2100.h +++ b/src/devices/cpu/tms1000/tms2100.h @@ -75,9 +75,9 @@ class tms2100_cpu_device : public tms1100_cpu_device tms2100_cpu_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, u8 o_pins, u8 r_pins, u8 pc_bits, u8 byte_bits, u8 x_bits, u8 stack_levels, int rom_width, address_map_constructor rom_map, int ram_width, address_map_constructor ram_map); // overrides - 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; virtual void device_clock_changed() override { reset_prescaler(); } virtual void execute_set_input(int line, int state) override; diff --git a/src/devices/cpu/tms1000/tms2400.h b/src/devices/cpu/tms1000/tms2400.h index 25692d3207e..91be18e6b5c 100644 --- a/src/devices/cpu/tms1000/tms2400.h +++ b/src/devices/cpu/tms1000/tms2400.h @@ -23,7 +23,7 @@ class tms2400_cpu_device : public tms2100_cpu_device tms2400_cpu_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, u8 o_pins, u8 r_pins, u8 pc_bits, u8 byte_bits, u8 x_bits, u8 stack_levels, int rom_width, address_map_constructor rom_map, int ram_width, address_map_constructor ram_map); // overrides - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; virtual std::unique_ptr create_disassembler() override; diff --git a/src/devices/cpu/tms1000/tp0320.h b/src/devices/cpu/tms1000/tp0320.h index c972e009b1b..c08676fb286 100644 --- a/src/devices/cpu/tms1000/tp0320.h +++ b/src/devices/cpu/tms1000/tp0320.h @@ -20,15 +20,15 @@ class tp0320_cpu_device : public tms0980_cpu_device tp0320_cpu_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); protected: - void ram_192x4(address_map &map); + void ram_192x4(address_map &map) ATTR_COLD; // overrides virtual u32 decode_fixed(offs_t offset) override { return 0; } // not yet virtual u32 decode_micro(offs_t offset) override; - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; virtual std::unique_ptr create_disassembler() override; - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; diff --git a/src/devices/cpu/tms32010/tms32010.h b/src/devices/cpu/tms32010/tms32010.h index 7eb7a435349..b240c0b3ab8 100644 --- a/src/devices/cpu/tms32010/tms32010.h +++ b/src/devices/cpu/tms32010/tms32010.h @@ -39,8 +39,8 @@ class tms3201x_base_device : public cpu_device tms3201x_base_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, address_map_constructor data_map); // 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; // device_execute_interface implementation virtual uint32_t execute_min_cycles() const noexcept override { return 1; } @@ -59,8 +59,8 @@ class tms3201x_base_device : public cpu_device // device_disasm_interface implementation virtual std::unique_ptr create_disassembler() override; - void tms32010_ram(address_map &map); - void tms32015_ram(address_map &map); + void tms32010_ram(address_map &map) ATTR_COLD; + void tms32015_ram(address_map &map) ATTR_COLD; private: address_space_config m_program_config; diff --git a/src/devices/cpu/tms32025/tms32025.h b/src/devices/cpu/tms32025/tms32025.h index 1aa602a838f..687675f74f1 100644 --- a/src/devices/cpu/tms32025/tms32025.h +++ b/src/devices/cpu/tms32025/tms32025.h @@ -69,17 +69,17 @@ class tms3202x_device : public cpu_device auto dr_in_cb() { return m_dr_in.bind(); } auto dx_out_cb() { return m_dx_out.bind(); } - //void tms32025_program(address_map &map); - void tms3202x_data(address_map &map); - void tms32026_data(address_map &map); + //void tms32025_program(address_map &map) ATTR_COLD; + void tms3202x_data(address_map &map) ATTR_COLD; + void tms32026_data(address_map &map) ATTR_COLD; protected: // construction/destruction tms3202x_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, unsigned stack_depth, address_map_constructor prgmap, address_map_constructor datamap); // 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; // device_execute_interface implementation virtual uint32_t execute_min_cycles() const noexcept override { return 4; } @@ -380,9 +380,9 @@ class tms32025_device : public tms3202x_device tms32025_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, address_map_constructor prgmap, address_map_constructor datamap); // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; bool m_mp_mc; }; @@ -394,7 +394,7 @@ class tms32026_device : public tms32025_device tms32026_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; virtual void cnfd() override; virtual void cnfp() override; virtual void conf() override; diff --git a/src/devices/cpu/tms32031/tms32031.h b/src/devices/cpu/tms32031/tms32031.h index 39852736baf..282ac81b7d2 100644 --- a/src/devices/cpu/tms32031/tms32031.h +++ b/src/devices/cpu/tms32031/tms32031.h @@ -144,13 +144,13 @@ class tms3203x_device : public cpu_device // construction/destruction tms3203x_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, uint32_t chiptype, int clock_per_inst, address_map_constructor internal_map); - void common_3203x(address_map &map); + void common_3203x(address_map &map) ATTR_COLD; // 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 const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; // device_execute_interface overrides virtual uint32_t execute_min_cycles() const noexcept override; @@ -803,7 +803,7 @@ class tms32030_device : public tms3203x_device public: // construction/destruction tms32030_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - void internal_32030(address_map &map); + void internal_32030(address_map &map) ATTR_COLD; }; @@ -814,7 +814,7 @@ class tms32031_device : public tms3203x_device public: // construction/destruction tms32031_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - void internal_32031(address_map &map); + void internal_32031(address_map &map) ATTR_COLD; }; @@ -825,7 +825,7 @@ class tms32032_device : public tms3203x_device public: // construction/destruction tms32032_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - void internal_32032(address_map &map); + void internal_32032(address_map &map) ATTR_COLD; }; @@ -836,7 +836,7 @@ class tms32033_device : public tms3203x_device public: // construction/destruction tms32033_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - void internal_32033(address_map &map); + void internal_32033(address_map &map) ATTR_COLD; }; diff --git a/src/devices/cpu/tms32051/tms32051.h b/src/devices/cpu/tms32051/tms32051.h index b1088011ef9..f3df84fa4d3 100644 --- a/src/devices/cpu/tms32051/tms32051.h +++ b/src/devices/cpu/tms32051/tms32051.h @@ -62,14 +62,14 @@ class tms32051_device : public cpu_device uint16_t cpuregs_r(offs_t offset); void cpuregs_w(offs_t offset, uint16_t data); - void tms32051_internal_data(address_map &map); - void tms32051_internal_pgm(address_map &map); + void tms32051_internal_data(address_map &map) ATTR_COLD; + void tms32051_internal_pgm(address_map &map) ATTR_COLD; protected: tms32051_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, address_map_constructor internal_pgm, address_map_constructor internal_data); // 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; // device_execute_interface overrides virtual uint32_t execute_min_cycles() const noexcept override { return 1; } @@ -374,10 +374,10 @@ class tms32053_device : public tms32051_device // construction/destruction tms32053_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - void tms32053_internal_data(address_map &map); - void tms32053_internal_pgm(address_map &map); + void tms32053_internal_data(address_map &map) ATTR_COLD; + void tms32053_internal_pgm(address_map &map) ATTR_COLD; protected: - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; }; diff --git a/src/devices/cpu/tms32082/tms32082.h b/src/devices/cpu/tms32082/tms32082.h index a02ffadf6aa..7a66698d9d6 100644 --- a/src/devices/cpu/tms32082/tms32082.h +++ b/src/devices/cpu/tms32082/tms32082.h @@ -73,11 +73,11 @@ class tms32082_mp_device : public cpu_device template void set_command_callback(T &&... args) { m_cmd_callback.set(std::forward(args)...); } - void mp_internal_map(address_map &map); + void mp_internal_map(address_map &map) ATTR_COLD; 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; // device_execute_interface overrides virtual uint32_t execute_min_cycles() const noexcept override { return 1; } @@ -163,11 +163,11 @@ class tms32082_pp_device : public cpu_device PP_PC = 1 }; - void pp_internal_map(address_map &map); + void pp_internal_map(address_map &map) ATTR_COLD; 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; // device_execute_interface overrides virtual uint32_t execute_min_cycles() const noexcept override { return 1; } diff --git a/src/devices/cpu/tms34010/tms34010.h b/src/devices/cpu/tms34010/tms34010.h index 672aada9ee3..f53843e3452 100644 --- a/src/devices/cpu/tms34010/tms34010.h +++ b/src/devices/cpu/tms34010/tms34010.h @@ -255,8 +255,8 @@ class tms340x0_device : public cpu_device, tms340x0_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, address_map_constructor internal_regs_map, bool is_34020); // 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 device_post_load() override; // device_execute_interface overrides @@ -965,12 +965,12 @@ class tms34010_device : public tms340x0_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual uint64_t execute_clocks_to_cycles(uint64_t clocks) const noexcept override { return (clocks + 8 - 1) / 8; } virtual uint64_t execute_cycles_to_clocks(uint64_t cycles) const noexcept override { return (cycles * 8); } virtual std::unique_ptr create_disassembler() override; - void internal_regs_map(address_map &map); + void internal_regs_map(address_map &map) ATTR_COLD; virtual uint16_t ROPCODE() override; virtual void execute_op(uint16_t op) override; @@ -1005,12 +1005,12 @@ class tms34020_device : public tms340x0_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual uint64_t execute_clocks_to_cycles(uint64_t clocks) const noexcept override { return (clocks + 4 - 1) / 4; } virtual uint64_t execute_cycles_to_clocks(uint64_t cycles) const noexcept override { return (cycles * 4); } virtual std::unique_ptr create_disassembler() override; - void internal_regs_map(address_map &map); + void internal_regs_map(address_map &map) ATTR_COLD; virtual uint16_t ROPCODE() override; virtual void execute_op(uint16_t op) override; diff --git a/src/devices/cpu/tms57002/tms57002.h b/src/devices/cpu/tms57002/tms57002.h index d991a5283c7..7a6dce18416 100644 --- a/src/devices/cpu/tms57002/tms57002.h +++ b/src/devices/cpu/tms57002/tms57002.h @@ -31,11 +31,11 @@ class tms57002_device : public cpu_device, public device_sound_interface int pc0_r(); void sync_w(int state); - void internal_pgm(address_map &map); + void internal_pgm(address_map &map) ATTR_COLD; protected: - 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 const &inputs, std::vector &outputs) override; virtual space_config_vector memory_space_config() const override; virtual u32 execute_min_cycles() const noexcept override; diff --git a/src/devices/cpu/tms7000/tms7000.h b/src/devices/cpu/tms7000/tms7000.h index 54826965f2c..a6b22f8d5a5 100644 --- a/src/devices/cpu/tms7000/tms7000.h +++ b/src/devices/cpu/tms7000/tms7000.h @@ -60,13 +60,13 @@ class tms7000_device : public cpu_device bool chip_is_family_70x2() const { return chip_get_family() == CHIP_FAMILY_70X2; } bool chip_is_family_70cx2() const { return chip_get_family() == CHIP_FAMILY_70CX2; } - void tms7000_mem(address_map &map); - void tms7001_mem(address_map &map); - void tms7002_mem(address_map &map); - void tms7020_mem(address_map &map); - void tms7040_mem(address_map &map); - void tms7041_mem(address_map &map); - void tms7042_mem(address_map &map); + void tms7000_mem(address_map &map) ATTR_COLD; + void tms7001_mem(address_map &map) ATTR_COLD; + void tms7002_mem(address_map &map) ATTR_COLD; + void tms7020_mem(address_map &map) ATTR_COLD; + void tms7040_mem(address_map &map) ATTR_COLD; + void tms7041_mem(address_map &map) ATTR_COLD; + void tms7042_mem(address_map &map) ATTR_COLD; protected: // chip info flags static constexpr uint32_t CHIP_IS_CMOS = 0x01; @@ -78,8 +78,8 @@ class tms7000_device : public cpu_device tms7000_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, address_map_constructor internal, uint32_t info_flags); // 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; // device_execute_interface overrides virtual uint64_t execute_clocks_to_cycles(uint64_t clocks) const noexcept override { return (clocks + m_divider - 1) / m_divider; } @@ -336,11 +336,11 @@ class tms70c46_device : public tms7000_device uint8_t e_bus_data_r() { return machine().side_effects_disabled() ? 0xff : ((m_control & 0x20) ? 0xff : m_port_in_cb[4]()); } void e_bus_data_w(uint8_t data) { if (~m_control & 0x20) m_port_out_cb[4](data); } - void tms70c46_mem(address_map &map); + void tms70c46_mem(address_map &map) ATTR_COLD; 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; private: uint8_t m_control; diff --git a/src/devices/cpu/tx0/tx0.h b/src/devices/cpu/tx0/tx0.h index 8c57c08e8f7..035c44476af 100644 --- a/src/devices/cpu/tx0/tx0.h +++ b/src/devices/cpu/tx0/tx0.h @@ -44,8 +44,8 @@ class tx0_device : public cpu_device tx0_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, int addr_bits, int address_mask, int ir_mask); // 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; // device_execute_interface overrides virtual uint32_t execute_min_cycles() const noexcept override { return 1; } diff --git a/src/devices/cpu/ucom4/ucom4.h b/src/devices/cpu/ucom4/ucom4.h index adadec64ddc..686b8293996 100644 --- a/src/devices/cpu/ucom4/ucom4.h +++ b/src/devices/cpu/ucom4/ucom4.h @@ -84,8 +84,8 @@ class ucom4_cpu_device : public cpu_device ucom4_cpu_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, int family, int stack_levels, int prgwidth, address_map_constructor program, int datawidth, address_map_constructor data); // 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; // device_execute_interface overrides virtual u64 execute_clocks_to_cycles(u64 clocks) const noexcept override { return (clocks + 4 - 1) / 4; } // 4 cycles per machine cycle @@ -105,10 +105,10 @@ class ucom4_cpu_device : public cpu_device virtual void state_string_export(const device_state_entry &entry, std::string &str) const override; // memorymaps - void program_1k(address_map &map); - void program_2k(address_map &map); - void data_64x4(address_map &map); - void data_96x4(address_map &map); + void program_1k(address_map &map) ATTR_COLD; + void program_2k(address_map &map) ATTR_COLD; + void data_64x4(address_map &map) ATTR_COLD; + void data_96x4(address_map &map) ATTR_COLD; address_space_config m_program_config; address_space_config m_data_config; diff --git a/src/devices/cpu/unsp/unsp.h b/src/devices/cpu/unsp/unsp.h index 9be731e556f..b7b72a3cf5a 100644 --- a/src/devices/cpu/unsp/unsp.h +++ b/src/devices/cpu/unsp/unsp.h @@ -124,9 +124,9 @@ class unsp_device : public cpu_device unsp_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, address_map_constructor internal); // device-level overrides - virtual void device_start() override; - virtual void device_reset() override; - virtual void device_stop() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; + virtual void device_stop() override ATTR_COLD; // device_execute_interface overrides virtual uint32_t execute_min_cycles() const noexcept override { return 5; } @@ -394,8 +394,8 @@ class unsp_20_device : public unsp_12_device virtual std::unique_ptr create_disassembler() override; virtual void execute_extended_group(uint16_t op) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: enum diff --git a/src/devices/cpu/upd7725/upd7725.h b/src/devices/cpu/upd7725/upd7725.h index c3049220b40..7e70e5642c5 100644 --- a/src/devices/cpu/upd7725/upd7725.h +++ b/src/devices/cpu/upd7725/upd7725.h @@ -44,8 +44,8 @@ class necdsp_device : public cpu_device necdsp_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, uint32_t abits, uint32_t dbits); // 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; // device_execute_interface implementation virtual uint32_t execute_min_cycles() const noexcept override; diff --git a/src/devices/cpu/upd7810/upd7810.h b/src/devices/cpu/upd7810/upd7810.h index a71d5087017..14b6aa29272 100644 --- a/src/devices/cpu/upd7810/upd7810.h +++ b/src/devices/cpu/upd7810/upd7810.h @@ -86,10 +86,10 @@ class upd7810_device : public cpu_device void sck_w(int state); protected: - void upd_internal_128_ram_map(address_map &map); - void upd_internal_256_ram_map(address_map &map); - void upd_internal_4096_rom_128_ram_map(address_map &map); - void upd_internal_4096_rom_256_ram_map(address_map &map); + void upd_internal_128_ram_map(address_map &map) ATTR_COLD; + void upd_internal_256_ram_map(address_map &map) ATTR_COLD; + void upd_internal_4096_rom_128_ram_map(address_map &map) ATTR_COLD; + void upd_internal_4096_rom_256_ram_map(address_map &map) ATTR_COLD; // flags enum @@ -136,8 +136,8 @@ class upd7810_device : public cpu_device upd7810_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, address_map_constructor internal_map); // 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; // device_execute_interface overrides virtual uint64_t execute_clocks_to_cycles(uint64_t clocks) const noexcept override { return (clocks + 3 - 1) / 3; } @@ -1401,8 +1401,8 @@ class upd7801_device : public upd7810_device upd7801_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - 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 uint64_t execute_clocks_to_cycles(uint64_t clocks) const noexcept override { return (clocks + 2 - 1) / 2; } virtual uint64_t execute_cycles_to_clocks(uint64_t cycles) const noexcept override { return (cycles * 2); } virtual void execute_set_input(int inputnum, int state) override; @@ -1422,8 +1422,8 @@ class upd78c05_device : public upd7810_device protected: upd78c05_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, address_map_constructor internal_map); - 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 uint64_t execute_clocks_to_cycles(uint64_t clocks) const noexcept override { return (clocks + 4 - 1) / 4; } virtual uint64_t execute_cycles_to_clocks(uint64_t cycles) const noexcept override { return (cycles * 4); } virtual std::unique_ptr create_disassembler() override; diff --git a/src/devices/cpu/upd78k/upd78k0.h b/src/devices/cpu/upd78k/upd78k0.h index 566dfab340f..d0b5acb506c 100644 --- a/src/devices/cpu/upd78k/upd78k0.h +++ b/src/devices/cpu/upd78k/upd78k0.h @@ -36,8 +36,8 @@ class upd78k0_device : public cpu_device upd78k0_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, u16 iram_size, address_map_constructor mem_map, address_map_constructor sfr_map); // 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; // device_execute_interface overrides virtual void execute_run() override; @@ -50,7 +50,7 @@ class upd78k0_device : public cpu_device private: // internal memory map - void iram_map(address_map &map); + void iram_map(address_map &map) ATTR_COLD; // internal helpers inline u16 register_base() const noexcept; @@ -97,8 +97,8 @@ class upd78053_device : public upd78k0_device private: // type-specific internal memory maps - void mem_map(address_map &map); - void sfr_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void sfr_map(address_map &map) ATTR_COLD; }; // device type declaration diff --git a/src/devices/cpu/upd78k/upd78k2.h b/src/devices/cpu/upd78k/upd78k2.h index c0a8e07b825..48210a28124 100644 --- a/src/devices/cpu/upd78k/upd78k2.h +++ b/src/devices/cpu/upd78k/upd78k2.h @@ -35,8 +35,8 @@ class upd78k2_device : public cpu_device upd78k2_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, int iram_bits, address_map_constructor mem_map, address_map_constructor sfr_map); // 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; // device_execute_interface overrides virtual void execute_run() override; @@ -51,7 +51,7 @@ class upd78k2_device : public cpu_device private: // internal memory map - void iram_map(address_map &map); + void iram_map(address_map &map) ATTR_COLD; // internal helpers inline u8 register_base() const noexcept; @@ -88,7 +88,7 @@ class upd78210_device : public upd78k2_device private: // type-specific internal memory maps - void sfr_map(address_map &map); + void sfr_map(address_map &map) ATTR_COLD; }; // ======================> upd78213_device @@ -105,8 +105,8 @@ class upd78213_device : public upd78k2_device private: // type-specific internal memory maps - void mem_map(address_map &map); - void sfr_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void sfr_map(address_map &map) ATTR_COLD; }; // device type declarations diff --git a/src/devices/cpu/upd78k/upd78k3.h b/src/devices/cpu/upd78k/upd78k3.h index 22867376847..234b427a7d1 100644 --- a/src/devices/cpu/upd78k/upd78k3.h +++ b/src/devices/cpu/upd78k/upd78k3.h @@ -42,8 +42,8 @@ class upd78k3_device : public cpu_device upd78k3_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, address_map_constructor mem_map, address_map_constructor sfr_map); // 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; // device_execute_interface overrides virtual void execute_run() override; @@ -60,7 +60,7 @@ class upd78k3_device : public cpu_device private: // internal memory map - void iram_map(address_map &map); + void iram_map(address_map &map) ATTR_COLD; // internal helpers inline u8 register_base() const noexcept; @@ -112,8 +112,8 @@ class upd78312_device : public upd78k3_device private: // type-specific internal memory maps - void mem_map(address_map &map); - void sfr_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void sfr_map(address_map &map) ATTR_COLD; }; // ======================> upd78310_device diff --git a/src/devices/cpu/upd78k/upd78k4.h b/src/devices/cpu/upd78k/upd78k4.h index 435600b563c..edf30005ed9 100644 --- a/src/devices/cpu/upd78k/upd78k4.h +++ b/src/devices/cpu/upd78k/upd78k4.h @@ -44,8 +44,8 @@ class upd78k4_device : public cpu_device upd78k4_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, address_map_constructor mem_map, address_map_constructor sfr_map); // 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; // device_execute_interface overrides virtual void execute_run() override; @@ -60,7 +60,7 @@ class upd78k4_device : public cpu_device private: // internal memory map - void iram_map(address_map &map); + void iram_map(address_map &map) ATTR_COLD; // internal helpers inline u16 register_base() const noexcept; @@ -100,8 +100,8 @@ class upd784031_device : public upd78k4_device private: // type-specific internal memory maps - void mem_map(address_map &map); - void sfr_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void sfr_map(address_map &map) ATTR_COLD; }; // device type declaration diff --git a/src/devices/cpu/v30mz/v30mz.h b/src/devices/cpu/v30mz/v30mz.h index cdfa6ae7539..ab342184273 100644 --- a/src/devices/cpu/v30mz/v30mz.h +++ b/src/devices/cpu/v30mz/v30mz.h @@ -29,8 +29,8 @@ class v30mz_cpu_device : public cpu_device, public nec_disassembler::config 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; // device_execute_interface overrides virtual uint32_t execute_min_cycles() const noexcept override { return 1; } diff --git a/src/devices/cpu/v60/v60.h b/src/devices/cpu/v60/v60.h index 3e44568e218..9e28eff0bbd 100644 --- a/src/devices/cpu/v60/v60.h +++ b/src/devices/cpu/v60/v60.h @@ -92,8 +92,8 @@ class v60_device : public cpu_device v60_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, int databits, int addrbits, uint32_t pir); // 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; // device_execute_interface overrides virtual uint32_t execute_min_cycles() const noexcept override { return 1; } diff --git a/src/devices/cpu/v810/v810.h b/src/devices/cpu/v810/v810.h index 4451b998119..29940c6d1e3 100644 --- a/src/devices/cpu/v810/v810.h +++ b/src/devices/cpu/v810/v810.h @@ -87,8 +87,8 @@ class v810_device : public cpu_device 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; // device_execute_interface overrides virtual uint32_t execute_min_cycles() const noexcept override { return 3; } diff --git a/src/devices/cpu/vt50/vt50.h b/src/devices/cpu/vt50/vt50.h index fcb7fc1d91c..b4a5e7e8741 100644 --- a/src/devices/cpu/vt50/vt50.h +++ b/src/devices/cpu/vt50/vt50.h @@ -42,8 +42,8 @@ class vt5x_cpu_device : public cpu_device, public device_video_interface // device_t implementation virtual void device_config_complete() override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; // device_execute_interface implementation virtual void execute_run() override; diff --git a/src/devices/cpu/vt61/vt61.h b/src/devices/cpu/vt61/vt61.h index 971343fe095..ced1a984fea 100644 --- a/src/devices/cpu/vt61/vt61.h +++ b/src/devices/cpu/vt61/vt61.h @@ -31,8 +31,8 @@ class vt61_cpu_device : public cpu_device 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; // device_execute_interface overrides virtual void execute_run() override; diff --git a/src/devices/cpu/we32000/we32100.h b/src/devices/cpu/we32000/we32100.h index c34afc4279e..cae514319a4 100644 --- a/src/devices/cpu/we32000/we32100.h +++ b/src/devices/cpu/we32000/we32100.h @@ -26,8 +26,8 @@ class we32100_device : public cpu_device 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; // device_execute_interface overrides virtual void execute_run() override; diff --git a/src/devices/cpu/xa/xa.h b/src/devices/cpu/xa/xa.h index 71b239a404d..bf09ec1c5f4 100644 --- a/src/devices/cpu/xa/xa.h +++ b/src/devices/cpu/xa/xa.h @@ -55,8 +55,8 @@ class xa_cpu : public cpu_device protected: xa_cpu(const machine_config& mconfig, device_type type, const char* tag, device_t* owner, uint32_t clock, address_map_constructor prg_map, address_map_constructor dat_map); - 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 uint32_t execute_min_cycles() const noexcept override { return 1; } virtual uint32_t execute_max_cycles() const noexcept override { return 5; } @@ -68,10 +68,10 @@ class xa_cpu : public cpu_device virtual std::unique_ptr create_disassembler() override; private: - void internal_map(address_map &map); - void internal_data_map(address_map &map); - void data_map(address_map &map); - void sfr_map(address_map &map); + void internal_map(address_map &map) ATTR_COLD; + void internal_data_map(address_map &map) ATTR_COLD; + void data_map(address_map &map) ATTR_COLD; + void sfr_map(address_map &map) ATTR_COLD; address_space_config m_program_config; address_space_config m_data_config; @@ -956,8 +956,8 @@ class mx10exa_cpu_device : public xa_cpu mx10exa_cpu_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); private: - void mx10exa_internal_map(address_map &map); - void mx10exa_internal_data_map(address_map &map); + void mx10exa_internal_map(address_map &map) ATTR_COLD; + void mx10exa_internal_data_map(address_map &map) ATTR_COLD; }; diff --git a/src/devices/cpu/xavix2/xavix2.h b/src/devices/cpu/xavix2/xavix2.h index 12d74c78e2e..459a6180fdd 100644 --- a/src/devices/cpu/xavix2/xavix2.h +++ b/src/devices/cpu/xavix2/xavix2.h @@ -27,8 +27,8 @@ class xavix2_device : public cpu_device static const u8 bpo[8]; - 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 uint32_t execute_min_cycles() const noexcept override; virtual uint32_t execute_max_cycles() const noexcept override; virtual void execute_run() override; diff --git a/src/devices/cpu/xtensa/xtensa.h b/src/devices/cpu/xtensa/xtensa.h index fc0e1d46c26..332ae4e77cd 100644 --- a/src/devices/cpu/xtensa/xtensa.h +++ b/src/devices/cpu/xtensa/xtensa.h @@ -41,8 +41,8 @@ class xtensa_device : public cpu_device 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; // device_execute_interface overrides virtual void execute_run() override; @@ -135,7 +135,7 @@ class xtensa_device : public cpu_device void set_callinc(u8 val); u8 get_callinc(); - void ext_regs(address_map &map); + void ext_regs(address_map &map) ATTR_COLD; bool handle_bz(u32 inst); void handle_retw(); diff --git a/src/devices/cpu/z180/hd647180x.h b/src/devices/cpu/z180/hd647180x.h index ca122201a5e..0916a240b7c 100644 --- a/src/devices/cpu/z180/hd647180x.h +++ b/src/devices/cpu/z180/hd647180x.h @@ -43,8 +43,8 @@ class hd647180x_device : public z180_device protected: // 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; // z180_device overrides virtual uint8_t z180_internal_port_read(uint8_t port) override; @@ -52,7 +52,7 @@ class hd647180x_device : public z180_device private: // internal memory map - void internal_map(address_map &map); + void internal_map(address_map &map) ATTR_COLD; // port callbacks devcb_read8::array<7> m_port_input_cb; diff --git a/src/devices/cpu/z180/z180.h b/src/devices/cpu/z180/z180.h index 4a8e0e5e4a5..d55c32efe0c 100644 --- a/src/devices/cpu/z180/z180.h +++ b/src/devices/cpu/z180/z180.h @@ -135,9 +135,9 @@ class z180_device : public cpu_device, public z80_daisy_chain_interface z180_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, bool extended_io, address_map_constructor internal_map); // device_t implementation - 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; // device_execute_interface implementation virtual uint32_t execute_min_cycles() const noexcept override { return 1; } @@ -1833,10 +1833,10 @@ class z8s180_device : public z180_device z8s180_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; virtual void device_clock_changed() override; - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; // device_execute_interface implementation virtual uint64_t execute_clocks_to_cycles(uint64_t clocks) const noexcept override { return BIT(m_cmr, 7) ? (clocks * 2) : BIT(m_ccr, 7) ? clocks : (clocks + 2 - 1) / 2; } diff --git a/src/devices/cpu/z180/z180asci.h b/src/devices/cpu/z180/z180asci.h index b99eec339ee..4dcd74112b7 100644 --- a/src/devices/cpu/z180/z180asci.h +++ b/src/devices/cpu/z180/z180asci.h @@ -53,8 +53,8 @@ class z180asci_channel_base : public device_t z180asci_channel_base(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, const int id, const bool ext); // 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; virtual void device_clock_changed() override; void transmit_edge(); @@ -144,7 +144,7 @@ class z180asci_channel_0 : public z180asci_channel_base z180asci_channel_0(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, const bool ext); // device_t implementation - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; }; //************************************************************************** @@ -164,7 +164,7 @@ class z180asci_channel_1 : public z180asci_channel_base z180asci_channel_1(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, const bool ext); // device_t implementation - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; }; //************************************************************************** diff --git a/src/devices/cpu/z180/z180csio.h b/src/devices/cpu/z180/z180csio.h index 3cc1c53393f..8a73eab8877 100644 --- a/src/devices/cpu/z180/z180csio.h +++ b/src/devices/cpu/z180/z180csio.h @@ -37,9 +37,9 @@ class z180csio_device : public device_t protected: // device_t implementation - virtual void device_resolve_objects() override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_resolve_objects() override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; void clock_edge(u8 cks); diff --git a/src/devices/cpu/z8/z8.h b/src/devices/cpu/z8/z8.h index 1074801c557..c50b40b140b 100644 --- a/src/devices/cpu/z8/z8.h +++ b/src/devices/cpu/z8/z8.h @@ -42,8 +42,8 @@ class z8_device : public cpu_device z8_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, uint32_t rom_size, bool preprogrammed); // 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; // device_execute_interface overrides virtual uint32_t execute_min_cycles() const noexcept override { return 6; } @@ -64,9 +64,9 @@ class z8_device : public cpu_device // device_disasm_interface overrides virtual std::unique_ptr create_disassembler() override; - void program_map(address_map &map); - void preprogrammed_map(address_map &map); - void register_map(address_map &map); + void program_map(address_map &map) ATTR_COLD; + void preprogrammed_map(address_map &map) ATTR_COLD; + void register_map(address_map &map) ATTR_COLD; private: address_space_config m_program_config; diff --git a/src/devices/cpu/z80/kc82.h b/src/devices/cpu/z80/kc82.h index 3c7f05cd70d..a1a30b07ac6 100644 --- a/src/devices/cpu/z80/kc82.h +++ b/src/devices/cpu/z80/kc82.h @@ -32,8 +32,8 @@ class kc82_device : public z80_device kc82_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, address_map_constructor mem_map, address_map_constructor io_map); // 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 device_post_load() override; // device_memory_interface overrides diff --git a/src/devices/cpu/z80/kl5c80a12.h b/src/devices/cpu/z80/kl5c80a12.h index 2d3884ad409..1a6340c6045 100644 --- a/src/devices/cpu/z80/kl5c80a12.h +++ b/src/devices/cpu/z80/kl5c80a12.h @@ -51,10 +51,10 @@ class kl5c80a12_device : public kc82_device protected: // device_t implementation - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual void device_config_complete() override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; // device_execute_interface implementation virtual u64 execute_clocks_to_cycles(u64 clocks) const noexcept override { return (clocks + 2 - 1) / 2; } @@ -73,8 +73,8 @@ class kl5c80a12_device : public kc82_device void portb_update_output(unsigned n); // internal address maps - void internal_ram(address_map &map); - void internal_io(address_map &map); + void internal_ram(address_map &map) ATTR_COLD; + void internal_io(address_map &map) ATTR_COLD; // subdevice finders required_device m_kp69; diff --git a/src/devices/cpu/z80/kl5c80a16.h b/src/devices/cpu/z80/kl5c80a16.h index a7cd2178396..10ba3df08f4 100644 --- a/src/devices/cpu/z80/kl5c80a16.h +++ b/src/devices/cpu/z80/kl5c80a16.h @@ -48,10 +48,10 @@ class kl5c80a16_device : public kc82_device protected: // device_t implementation - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual void device_config_complete() override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; // device_execute_interface implementation virtual u64 execute_clocks_to_cycles(u64 clocks) const noexcept override { return (clocks + 2 - 1) / 2; } @@ -63,7 +63,7 @@ class kl5c80a16_device : public kc82_device void port_w(offs_t offset, u8 data); // internal address map - void internal_io(address_map &map); + void internal_io(address_map &map) ATTR_COLD; // subdevice finders required_device m_kp69; diff --git a/src/devices/cpu/z80/kp63.h b/src/devices/cpu/z80/kp63.h index 93e2779d668..7d58017b6fa 100644 --- a/src/devices/cpu/z80/kp63.h +++ b/src/devices/cpu/z80/kp63.h @@ -35,8 +35,8 @@ class kp63_device : public device_t kp63_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, u8 num_counters, u8 mode_mask); // 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; private: static const char *const s_count_modes[4]; diff --git a/src/devices/cpu/z80/kp64.h b/src/devices/cpu/z80/kp64.h index d8a76dc91b6..53391c6dbc0 100644 --- a/src/devices/cpu/z80/kp64.h +++ b/src/devices/cpu/z80/kp64.h @@ -37,8 +37,8 @@ class kp64_device : public device_t protected: // 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; private: // timer callbacks diff --git a/src/devices/cpu/z80/kp69.h b/src/devices/cpu/z80/kp69.h index 31bfbd71fea..ad93c6a86af 100644 --- a/src/devices/cpu/z80/kp69.h +++ b/src/devices/cpu/z80/kp69.h @@ -44,8 +44,8 @@ class kp69_base_device : public device_t, public device_z80daisy_interface kp69_base_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 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; // device_z80daisy_interface implementation virtual int z80daisy_irq_state() override; @@ -91,8 +91,8 @@ class kp69_device : public kp69_base_device 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; private: bool m_ivr_written; diff --git a/src/devices/cpu/z80/ky80.h b/src/devices/cpu/z80/ky80.h index fce065a9c8f..2f5cef749f2 100644 --- a/src/devices/cpu/z80/ky80.h +++ b/src/devices/cpu/z80/ky80.h @@ -31,8 +31,8 @@ class ky80_device : public kc82_device private: // internal address maps - void internal_ram(address_map &map); - void internal_io(address_map &map); + void internal_ram(address_map &map) ATTR_COLD; + void internal_io(address_map &map) ATTR_COLD; }; diff --git a/src/devices/cpu/z80/lz8420m.h b/src/devices/cpu/z80/lz8420m.h index afa653c340d..50941b8a2b2 100644 --- a/src/devices/cpu/z80/lz8420m.h +++ b/src/devices/cpu/z80/lz8420m.h @@ -33,9 +33,9 @@ class lz8420m_device : public z80_device protected: // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; }; diff --git a/src/devices/cpu/z80/tmpz84c011.h b/src/devices/cpu/z80/tmpz84c011.h index 8349905d5b9..a6909e0d697 100644 --- a/src/devices/cpu/z80/tmpz84c011.h +++ b/src/devices/cpu/z80/tmpz84c011.h @@ -79,12 +79,12 @@ class tmpz84c011_device : public z80_device void tmpz84c011_dir_pd_w(uint8_t data) { m_pio_dir[3] = data; } void tmpz84c011_dir_pe_w(uint8_t data) { m_pio_dir[4] = data; } - void tmpz84c011_internal_io_map(address_map &map); + void tmpz84c011_internal_io_map(address_map &map) ATTR_COLD; protected: // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; const address_space_config m_io_space_config; diff --git a/src/devices/cpu/z80/tmpz84c015.h b/src/devices/cpu/z80/tmpz84c015.h index 449b9cd2725..03c688519bd 100644 --- a/src/devices/cpu/z80/tmpz84c015.h +++ b/src/devices/cpu/z80/tmpz84c015.h @@ -116,9 +116,9 @@ class tmpz84c015_device : public z80_device tmpz84c015_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, address_map_constructor io_map); // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; virtual void device_post_load() override; const address_space_config m_io_space_config; diff --git a/src/devices/cpu/z80/z80n.h b/src/devices/cpu/z80/z80n.h index d2247a066c2..a7db99722a9 100644 --- a/src/devices/cpu/z80/z80n.h +++ b/src/devices/cpu/z80/z80n.h @@ -23,8 +23,8 @@ class z80n_device : public z80_device void nmi() { m_nmi_pending = true; } protected: - 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 do_op() override; diff --git a/src/devices/cpu/z80/z84c015.h b/src/devices/cpu/z80/z84c015.h index 0e5c71cb11c..4443cdfc7cd 100644 --- a/src/devices/cpu/z80/z84c015.h +++ b/src/devices/cpu/z80/z84c015.h @@ -32,7 +32,7 @@ class z84c015_device : public tmpz84c015_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; const address_space_config m_program_space_config; const address_space_config m_opcodes_space_config; diff --git a/src/devices/cpu/z8000/z8000.h b/src/devices/cpu/z8000/z8000.h index 4d53285d31d..c8ba14a9157 100644 --- a/src/devices/cpu/z8000/z8000.h +++ b/src/devices/cpu/z8000/z8000.h @@ -90,8 +90,8 @@ class z8002_device : public cpu_device, public z8000_disassembler::config z8002_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, int addrbits, int vecmult); // 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; // device_execute_interface overrides virtual uint32_t execute_min_cycles() const noexcept override { return 2; } diff --git a/src/devices/imagedev/avivideo.h b/src/devices/imagedev/avivideo.h index 1325779326d..e14b4298415 100644 --- a/src/devices/imagedev/avivideo.h +++ b/src/devices/imagedev/avivideo.h @@ -51,8 +51,8 @@ class avivideo_image_device : public device_t, public device_image_interface protected: // 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; TIMER_CALLBACK_MEMBER(frame_timer); diff --git a/src/devices/imagedev/bitbngr.h b/src/devices/imagedev/bitbngr.h index d48b3548d25..7fdc7deaa6b 100644 --- a/src/devices/imagedev/bitbngr.h +++ b/src/devices/imagedev/bitbngr.h @@ -39,7 +39,7 @@ class bitbanger_device : public device_t, protected: // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_image_interface implementation virtual software_list_loader const &get_software_list_loader() const override; diff --git a/src/devices/imagedev/cassette.h b/src/devices/imagedev/cassette.h index 650b45f1739..a123d349e9c 100644 --- a/src/devices/imagedev/cassette.h +++ b/src/devices/imagedev/cassette.h @@ -107,7 +107,7 @@ class cassette_image_device : public device_t, protected: // device_t implementation virtual void device_config_complete() override; - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual bool use_software_list_file_extension_for_filetype() const noexcept override { return true; } // device_image_interface implementation diff --git a/src/devices/imagedev/cdromimg.h b/src/devices/imagedev/cdromimg.h index d37e0d5d64d..6b423c5ca5a 100644 --- a/src/devices/imagedev/cdromimg.h +++ b/src/devices/imagedev/cdromimg.h @@ -78,8 +78,8 @@ class cdrom_image_device : public device_t, // device_t implementation virtual void device_config_complete() override; - virtual void device_start() override; - virtual void device_stop() override; + virtual void device_start() override ATTR_COLD; + virtual void device_stop() override ATTR_COLD; // device_image_interface implementation virtual const software_list_loader &get_software_list_loader() const override { return rom_software_list_loader::instance(); } diff --git a/src/devices/imagedev/diablo.h b/src/devices/imagedev/diablo.h index 76cd7a320e5..56a1f4ef7c2 100644 --- a/src/devices/imagedev/diablo.h +++ b/src/devices/imagedev/diablo.h @@ -57,8 +57,8 @@ class diablo_image_device : public harddisk_image_base_device protected: // device_t implementation virtual void device_config_complete() override; - virtual void device_start() override; - virtual void device_stop() override; + virtual void device_start() override ATTR_COLD; + virtual void device_stop() override ATTR_COLD; // device_image_interface implementation virtual const software_list_loader &get_software_list_loader() const override { return rom_software_list_loader::instance(); } diff --git a/src/devices/imagedev/flopdrv.h b/src/devices/imagedev/flopdrv.h index f16afe47af4..a07307c05aa 100644 --- a/src/devices/imagedev/flopdrv.h +++ b/src/devices/imagedev/flopdrv.h @@ -167,7 +167,7 @@ class legacy_floppy_image_device : public device_t, // device_t implementation virtual void device_config_complete() override; - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_image_interface implementation virtual const software_list_loader &get_software_list_loader() const override; diff --git a/src/devices/imagedev/floppy.cpp b/src/devices/imagedev/floppy.cpp index 722738ed083..04fae79fdeb 100644 --- a/src/devices/imagedev/floppy.cpp +++ b/src/devices/imagedev/floppy.cpp @@ -890,18 +890,16 @@ bool floppy_image_device::floppy_is_hd() { if (!m_image) return false; - u32 variant = m_image->get_variant(); + u32 const variant = m_image->get_variant(); return variant == floppy_image::DSHD; - } bool floppy_image_device::floppy_is_ed() { if (!m_image) return false; - u32 variant = m_image->get_variant(); + u32 const variant = m_image->get_variant(); return variant == floppy_image::DSED; - } void floppy_image_device::track_changed() diff --git a/src/devices/imagedev/floppy.h b/src/devices/imagedev/floppy.h index 3b60b45b59e..bf38c856844 100644 --- a/src/devices/imagedev/floppy.h +++ b/src/devices/imagedev/floppy.h @@ -166,10 +166,10 @@ class floppy_image_device : public device_t, floppy_image_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; virtual void device_config_complete() override; - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; // device_image_interface implementation virtual const software_list_loader &get_software_list_loader() const override; @@ -348,8 +348,8 @@ class mac_floppy_device : public floppy_image_device { mac_floppy_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 void track_changed() override; virtual bool is_2m() const = 0; @@ -409,7 +409,7 @@ class floppy_sound_device : public samples_device void register_for_save_states(); protected: - void device_start() override; + void device_start() override ATTR_COLD; private: // device_sound_interface overrides @@ -472,7 +472,7 @@ class floppy_connector: public device_t, floppy_image_device *get_device(); protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void device_config_complete() override; private: diff --git a/src/devices/imagedev/harddriv.h b/src/devices/imagedev/harddriv.h index 5f51f70d828..d360f06f623 100644 --- a/src/devices/imagedev/harddriv.h +++ b/src/devices/imagedev/harddriv.h @@ -89,8 +89,8 @@ class harddisk_image_device : public harddisk_image_base_device // device_t implementation virtual void device_config_complete() override; - virtual void device_start() override; - virtual void device_stop() override; + virtual void device_start() override ATTR_COLD; + virtual void device_stop() override ATTR_COLD; // device_image_interface implementation virtual const software_list_loader &get_software_list_loader() const override { return rom_software_list_loader::instance(); } diff --git a/src/devices/imagedev/mfmhd.h b/src/devices/imagedev/mfmhd.h index f27b96caa68..8bf9b057683 100644 --- a/src/devices/imagedev/mfmhd.h +++ b/src/devices/imagedev/mfmhd.h @@ -257,7 +257,7 @@ class mfm_harddisk_connector : public device_t, void configure(mfmhd_enc_t encoding, int spinupms, int cache, mfmhd_format_type format); protected: - void device_start() override; + void device_start() override ATTR_COLD; void device_config_complete() override; private: diff --git a/src/devices/imagedev/microdrv.h b/src/devices/imagedev/microdrv.h index b698058261b..26aa9db97db 100644 --- a/src/devices/imagedev/microdrv.h +++ b/src/devices/imagedev/microdrv.h @@ -59,7 +59,7 @@ class microdrive_image_device : public microtape_image_device protected: // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; TIMER_CALLBACK_MEMBER(bit_timer); diff --git a/src/devices/imagedev/midiin.h b/src/devices/imagedev/midiin.h index d557a47b7c4..a7a30166218 100644 --- a/src/devices/imagedev/midiin.h +++ b/src/devices/imagedev/midiin.h @@ -54,9 +54,9 @@ class midiin_device : public device_t, protected: // device_t implementation - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; - virtual void device_reset() override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; // device_serial_interface implementation virtual void tra_complete() override; // Tx completed sending byte diff --git a/src/devices/imagedev/midiout.h b/src/devices/imagedev/midiout.h index e22c92e87a4..6640d94b3f8 100644 --- a/src/devices/imagedev/midiout.h +++ b/src/devices/imagedev/midiout.h @@ -54,8 +54,8 @@ class midiout_device : public device_t, protected: // 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; // device_serial_interface implementation virtual void rcv_complete() override; // Rx completed receiving byte diff --git a/src/devices/imagedev/picture.h b/src/devices/imagedev/picture.h index 1ab10eee35c..4e10f533458 100644 --- a/src/devices/imagedev/picture.h +++ b/src/devices/imagedev/picture.h @@ -45,7 +45,7 @@ class picture_image_device : public device_t, protected: // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: bitmap_argb32 m_picture; diff --git a/src/devices/imagedev/printer.h b/src/devices/imagedev/printer.h index 2d816ea053a..ae3b78fd7fa 100644 --- a/src/devices/imagedev/printer.h +++ b/src/devices/imagedev/printer.h @@ -52,7 +52,7 @@ class printer_image_device : public device_t, protected: // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; devcb_write_line m_online_cb; }; diff --git a/src/devices/imagedev/simh_tape_image.h b/src/devices/imagedev/simh_tape_image.h index cb98056b837..15607015e55 100644 --- a/src/devices/imagedev/simh_tape_image.h +++ b/src/devices/imagedev/simh_tape_image.h @@ -39,8 +39,8 @@ class simh_tape_image_device : public microtape_image_device // device_t implementation virtual void device_config_complete() override; - virtual void device_start() override; - virtual void device_stop() override; + virtual void device_start() override ATTR_COLD; + virtual void device_stop() override ATTR_COLD; // state std::unique_ptr m_file; // tape image file diff --git a/src/devices/imagedev/snapquik.h b/src/devices/imagedev/snapquik.h index 61ddbd6bb24..32f6f7c782f 100644 --- a/src/devices/imagedev/snapquik.h +++ b/src/devices/imagedev/snapquik.h @@ -63,7 +63,7 @@ class snapshot_image_device : public device_t, snapshot_image_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_image_interface implementation virtual const software_list_loader &get_software_list_loader() const override; diff --git a/src/devices/imagedev/wafadrive.h b/src/devices/imagedev/wafadrive.h index 6236e6e0322..b4de79654cb 100644 --- a/src/devices/imagedev/wafadrive.h +++ b/src/devices/imagedev/wafadrive.h @@ -39,7 +39,7 @@ class wafadrive_image_device : public microtape_image_device protected: // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; }; diff --git a/src/devices/machine/1801vp128.h b/src/devices/machine/1801vp128.h index 4a83f58b018..964a80ecf8e 100644 --- a/src/devices/machine/1801vp128.h +++ b/src/devices/machine/1801vp128.h @@ -60,8 +60,8 @@ class k1801vp128_device : public device_t 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; TIMER_CALLBACK_MEMBER(update_floppy); diff --git a/src/devices/machine/1ma6.h b/src/devices/machine/1ma6.h index 33075250055..58396785d35 100644 --- a/src/devices/machine/1ma6.h +++ b/src/devices/machine/1ma6.h @@ -35,9 +35,9 @@ class hp_1ma6_device : public device_t protected: // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: required_device m_tape; diff --git a/src/devices/machine/1mb5.h b/src/devices/machine/1mb5.h index 34c081ed672..630db571abe 100644 --- a/src/devices/machine/1mb5.h +++ b/src/devices/machine/1mb5.h @@ -49,8 +49,8 @@ class hp_1mb5_device : public device_t 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; private: devcb_write_line m_irl_handler; diff --git a/src/devices/machine/2812fifo.h b/src/devices/machine/2812fifo.h index 40b6e339859..d077e414ec1 100644 --- a/src/devices/machine/2812fifo.h +++ b/src/devices/machine/2812fifo.h @@ -58,9 +58,9 @@ class fifo2812_device : public device_t protected: // device_t implementation - virtual void device_resolve_objects() override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_resolve_objects() override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: enum { LENGTH = 32 }; diff --git a/src/devices/machine/28fxxx.h b/src/devices/machine/28fxxx.h index 0551f874f27..936f8440de3 100644 --- a/src/devices/machine/28fxxx.h +++ b/src/devices/machine/28fxxx.h @@ -28,7 +28,7 @@ class base_28fxxx_device : public device_t, public device_nvram_interface protected: base_28fxxx_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, u32 size, u8 manufacturer_code, u8 device_code); - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void nvram_default() override; virtual bool nvram_read(util::read_stream &file) override; diff --git a/src/devices/machine/40105.h b/src/devices/machine/40105.h index 74f44da8d2a..3ec02dab442 100644 --- a/src/devices/machine/40105.h +++ b/src/devices/machine/40105.h @@ -52,8 +52,8 @@ class cmos_40105_device : public device_t 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; private: // private helpers diff --git a/src/devices/machine/53c7xx.h b/src/devices/machine/53c7xx.h index 2d6c695acd2..5e7b78b318c 100644 --- a/src/devices/machine/53c7xx.h +++ b/src/devices/machine/53c7xx.h @@ -33,8 +33,8 @@ class ncr53c7xx_device : public nscsi_device, public nscsi_slot_card_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 execute_run() override; TIMER_CALLBACK_MEMBER(step_timer); diff --git a/src/devices/machine/53c810.h b/src/devices/machine/53c810.h index b6ecd035072..94f04635cdd 100644 --- a/src/devices/machine/53c810.h +++ b/src/devices/machine/53c810.h @@ -37,7 +37,7 @@ class lsi53c810_device : public legacy_scsi_host_adapter protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: typedef delegate opcode_handler_delegate; diff --git a/src/devices/machine/64h156.h b/src/devices/machine/64h156.h index 707071bb424..1efae62354c 100644 --- a/src/devices/machine/64h156.h +++ b/src/devices/machine/64h156.h @@ -102,9 +102,9 @@ class c64h156_device : public device_t protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void device_clock_changed() override; - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; TIMER_CALLBACK_MEMBER(update_tick); diff --git a/src/devices/machine/6522via.h b/src/devices/machine/6522via.h index 6a2d66ab76b..7895ee45d39 100644 --- a/src/devices/machine/6522via.h +++ b/src/devices/machine/6522via.h @@ -84,7 +84,7 @@ class via6522_device : public device_t auto cb2_handler() { return m_cb2_handler.bind(); } auto irq_handler() { return m_irq_handler.bind(); } - void map(address_map &map); + void map(address_map &map) ATTR_COLD; u8 read(offs_t offset); void write(offs_t offset, u8 data); @@ -121,8 +121,8 @@ class via6522_device : public device_t via6522_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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; TIMER_CALLBACK_MEMBER(shift_irq_tick); TIMER_CALLBACK_MEMBER(shift_tick); diff --git a/src/devices/machine/6525tpi.h b/src/devices/machine/6525tpi.h index 52fc12dd359..9aefd8a4a2a 100644 --- a/src/devices/machine/6525tpi.h +++ b/src/devices/machine/6525tpi.h @@ -84,8 +84,8 @@ class tpi6525_device : public device_t 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; private: // internal state diff --git a/src/devices/machine/68153bim.h b/src/devices/machine/68153bim.h index 5a8dd59428e..8b488ce15bf 100644 --- a/src/devices/machine/68153bim.h +++ b/src/devices/machine/68153bim.h @@ -48,8 +48,8 @@ class bim68153_channel : public device_t bim68153_channel(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // 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; // read register handlers uint8_t do_bimreg_control_r(); @@ -136,9 +136,9 @@ class bim68153_device : public device_t bim68153_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, uint32_t variant); // device-level overrides - 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; void trigger_interrupt(int ch); int get_channel_index(bim68153_channel *ch); diff --git a/src/devices/machine/6821pia.h b/src/devices/machine/6821pia.h index 28f8e8af925..22d5009a745 100644 --- a/src/devices/machine/6821pia.h +++ b/src/devices/machine/6821pia.h @@ -104,8 +104,8 @@ class pia6821_device : public device_t protected: // 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; private: diff --git a/src/devices/machine/68230pit.h b/src/devices/machine/68230pit.h index 663be81b151..fe3f3efd19b 100644 --- a/src/devices/machine/68230pit.h +++ b/src/devices/machine/68230pit.h @@ -275,8 +275,8 @@ class pit68230_device : public device_t pit68230_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, uint32_t variant); // 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; // Interrupt methods void trigger_interrupt(int source); diff --git a/src/devices/machine/68307.h b/src/devices/machine/68307.h index 7056c21548b..0fe0f22dd53 100644 --- a/src/devices/machine/68307.h +++ b/src/devices/machine/68307.h @@ -36,9 +36,9 @@ class m68307_cpu_device : public m68000_device class m68307_mbus; class m68307_timer; - 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; private: void reset_peripherals(int state); @@ -69,8 +69,8 @@ class m68307_cpu_device : public m68000_device uint8_t m68307_internal_mbus_r(offs_t offset); void m68307_internal_mbus_w(offs_t offset, uint8_t data); - void internal_map(address_map &map); - void cpu_space_map(address_map &map); + void internal_map(address_map &map) ATTR_COLD; + void cpu_space_map(address_map &map) ATTR_COLD; devcb_write_line m_write_irq, m_write_a_tx, m_write_b_tx; devcb_read8 m_read_inport; diff --git a/src/devices/machine/68340.h b/src/devices/machine/68340.h index 848cb7d3832..5a2b09063a6 100644 --- a/src/devices/machine/68340.h +++ b/src/devices/machine/68340.h @@ -43,9 +43,9 @@ class m68340_cpu_device : public fscpu32_device void tgate2_w(int state){ m_timer[1]->tgate_w(state); } protected: - 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; virtual void device_config_complete() override; void reset_peripherals(int state); @@ -55,7 +55,7 @@ class m68340_cpu_device : public fscpu32_device required_device_array m_timer; void update_ipl(); - void internal_vectors_r(address_map &map); + void internal_vectors_r(address_map &map) ATTR_COLD; uint8_t int_ack(offs_t offset); TIMER_CALLBACK_MEMBER(periodic_interrupt_timer_callback); @@ -97,7 +97,7 @@ class m68340_cpu_device : public fscpu32_device void set_modck(int state); void extal_w(int state); - void m68340_internal_map(address_map &map); + void m68340_internal_map(address_map &map) ATTR_COLD; /* 68340 peripheral modules */ m68340_sim* m_m68340SIM; diff --git a/src/devices/machine/68340ser.h b/src/devices/machine/68340ser.h index 35a2f77e92b..5233d9b3a0f 100644 --- a/src/devices/machine/68340ser.h +++ b/src/devices/machine/68340ser.h @@ -17,7 +17,7 @@ class mc68340_serial_module_device : public mc68340_duart_device mc68340_serial_module_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 0); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual uint8_t read(offs_t offset) override; virtual void write(offs_t offset, uint8_t data) override; diff --git a/src/devices/machine/68340tmu.h b/src/devices/machine/68340tmu.h index f0f0fd181ef..be921079f08 100644 --- a/src/devices/machine/68340tmu.h +++ b/src/devices/machine/68340tmu.h @@ -27,8 +27,8 @@ class mc68340_timer_module_device : public device_t 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; m68340_cpu_device *m_cpu; diff --git a/src/devices/machine/6840ptm.h b/src/devices/machine/6840ptm.h index bd2c6304a73..4bd357cb103 100644 --- a/src/devices/machine/6840ptm.h +++ b/src/devices/machine/6840ptm.h @@ -56,9 +56,9 @@ class ptm6840_device : public device_t protected: // device-level overrides - virtual void device_start() override; - virtual void device_reset() override; - virtual void device_resolve_objects() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; + virtual void device_resolve_objects() override ATTR_COLD; private: void deduct_from_counter(int idx); diff --git a/src/devices/machine/6850acia.h b/src/devices/machine/6850acia.h index b95e4101bae..36f89c92efb 100644 --- a/src/devices/machine/6850acia.h +++ b/src/devices/machine/6850acia.h @@ -41,8 +41,8 @@ class acia6850_device : public device_t acia6850_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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 update_irq(); int calculate_txirq(); diff --git a/src/devices/machine/68561mpcc.h b/src/devices/machine/68561mpcc.h index 4de388254b9..78cbb82acfb 100644 --- a/src/devices/machine/68561mpcc.h +++ b/src/devices/machine/68561mpcc.h @@ -80,8 +80,8 @@ class mpcc_device : public device_t, public device_serial_interface mpcc_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, uint32_t variant); // 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; // device_serial_interface overrides virtual void tra_callback() override; diff --git a/src/devices/machine/6883sam.h b/src/devices/machine/6883sam.h index 9fbf1f70a47..9f25c718278 100644 --- a/src/devices/machine/6883sam.h +++ b/src/devices/machine/6883sam.h @@ -121,8 +121,8 @@ class sam6883_device : public device_t, public device_memory_interface, public s 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 device_post_load() override; // device_memory_interface overrides diff --git a/src/devices/machine/7200fifo.h b/src/devices/machine/7200fifo.h index 3d9bf1fa703..231f7beb54d 100644 --- a/src/devices/machine/7200fifo.h +++ b/src/devices/machine/7200fifo.h @@ -82,8 +82,8 @@ class fifo7200_device : public device_t fifo7200_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, int size); // 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; private: void fifo_write(uint16_t data); diff --git a/src/devices/machine/7404.h b/src/devices/machine/7404.h index 873cb95fc11..0cd68d548de 100644 --- a/src/devices/machine/7404.h +++ b/src/devices/machine/7404.h @@ -88,8 +88,8 @@ class ttl7404_device : public device_t uint8_t y_r(uint8_t line); // 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; private: void update(); diff --git a/src/devices/machine/74123.h b/src/devices/machine/74123.h index ed571f12273..ca088c8352e 100644 --- a/src/devices/machine/74123.h +++ b/src/devices/machine/74123.h @@ -93,8 +93,8 @@ class ttl74123_device : public device_t 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 device_post_load() override { } virtual void device_clock_changed() override { } diff --git a/src/devices/machine/74145.h b/src/devices/machine/74145.h index f5965cea4b1..5213f73d28c 100644 --- a/src/devices/machine/74145.h +++ b/src/devices/machine/74145.h @@ -33,8 +33,8 @@ class ttl74145_device : public device_t 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; private: devcb_write_line::array<10> m_output_line_cb; diff --git a/src/devices/machine/74148.h b/src/devices/machine/74148.h index b9c9ddfdb56..9c5194b31f7 100644 --- a/src/devices/machine/74148.h +++ b/src/devices/machine/74148.h @@ -64,8 +64,8 @@ class ttl74148_device : public device_t 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; private: // internal state devcb_write8 m_output_cb; diff --git a/src/devices/machine/74153.h b/src/devices/machine/74153.h index 6cc412b28cd..708eb63e7c0 100644 --- a/src/devices/machine/74153.h +++ b/src/devices/machine/74153.h @@ -62,8 +62,8 @@ class ttl153_device : public device_t 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; private: void update_a(); diff --git a/src/devices/machine/74157.h b/src/devices/machine/74157.h index fbeec1aaea3..1deda5430d5 100644 --- a/src/devices/machine/74157.h +++ b/src/devices/machine/74157.h @@ -69,7 +69,7 @@ class ls157_device : public device_t ls157_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, u8 mask); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: // internal helpers diff --git a/src/devices/machine/74161.h b/src/devices/machine/74161.h index f265f9b4243..a50abd645b0 100644 --- a/src/devices/machine/74161.h +++ b/src/devices/machine/74161.h @@ -90,8 +90,8 @@ class ttl7416x_device : public device_t ttl7416x_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, bool synchronous_reset, uint8_t limit); // 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; private: void init(); diff --git a/src/devices/machine/74165.h b/src/devices/machine/74165.h index b20de384c16..e7d953fda9e 100644 --- a/src/devices/machine/74165.h +++ b/src/devices/machine/74165.h @@ -45,9 +45,9 @@ class ttl165_device : public device_t protected: // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: required_device m_timer; diff --git a/src/devices/machine/74166.h b/src/devices/machine/74166.h index 2547fdd5bff..80095ce5458 100644 --- a/src/devices/machine/74166.h +++ b/src/devices/machine/74166.h @@ -45,9 +45,9 @@ class ttl166_device : public device_t protected: // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: required_device m_timer; diff --git a/src/devices/machine/74175.h b/src/devices/machine/74175.h index 531afa4f743..921be25f9cb 100644 --- a/src/devices/machine/74175.h +++ b/src/devices/machine/74175.h @@ -68,8 +68,8 @@ class ttl741745_device : public device_t protected: ttl741745_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 void init(); virtual void tick(); @@ -105,7 +105,7 @@ class ttl74174_device : public ttl741745_device void d6_w(int state); protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void init() override; virtual void tick() override; @@ -132,7 +132,7 @@ class ttl74175_device : public ttl741745_device auto not_q4_cb() { return m_not_q4_func.bind(); } protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void tick() override; diff --git a/src/devices/machine/74181.h b/src/devices/machine/74181.h index 018eb3efaa0..76fa59f59f2 100644 --- a/src/devices/machine/74181.h +++ b/src/devices/machine/74181.h @@ -42,7 +42,7 @@ class ttl74181_device : public device_t protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void device_post_load() override; private: diff --git a/src/devices/machine/74259.h b/src/devices/machine/74259.h index 4f758b753df..cbe1ef39c6b 100644 --- a/src/devices/machine/74259.h +++ b/src/devices/machine/74259.h @@ -77,8 +77,8 @@ class addressable_latch_device : public device_t addressable_latch_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, bool clear_active); // 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; private: // internal helpers diff --git a/src/devices/machine/74381.h b/src/devices/machine/74381.h index 2aef6456540..63b28b19018 100644 --- a/src/devices/machine/74381.h +++ b/src/devices/machine/74381.h @@ -35,8 +35,8 @@ class sn74s381_device : public device_t 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; void update(); diff --git a/src/devices/machine/74543.h b/src/devices/machine/74543.h index 4c333f5fd90..55df747ce55 100644 --- a/src/devices/machine/74543.h +++ b/src/devices/machine/74543.h @@ -94,8 +94,8 @@ class ttl74543_device : public device_t protected: // device-level overrides - void device_start() override; - void device_reset() override; + void device_start() override ATTR_COLD; + void device_reset() override ATTR_COLD; private: devcb_write8 m_output_a; diff --git a/src/devices/machine/7474.h b/src/devices/machine/7474.h index 3bf2f1ee2e7..e5d1a7a1fa0 100644 --- a/src/devices/machine/7474.h +++ b/src/devices/machine/7474.h @@ -71,8 +71,8 @@ class ttl7474_device : public device_t protected: // 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; private: // callbacks diff --git a/src/devices/machine/8042kbdc.h b/src/devices/machine/8042kbdc.h index 80e855018a4..cc99b146b65 100644 --- a/src/devices/machine/8042kbdc.h +++ b/src/devices/machine/8042kbdc.h @@ -70,9 +70,9 @@ class kbdc8042_device : public device_t protected: // device-level overrides - virtual void device_start() override; - virtual void device_reset() override; - virtual ioport_constructor device_input_ports() const override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; TIMER_CALLBACK_MEMBER(update_timer); diff --git a/src/devices/machine/82s129.h b/src/devices/machine/82s129.h index 244c85ce01a..89e3bcc39ac 100644 --- a/src/devices/machine/82s129.h +++ b/src/devices/machine/82s129.h @@ -81,8 +81,8 @@ class prom82s129_base_device : public device_t prom82s129_base_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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; private: void write_line(uint8_t line, uint8_t state); diff --git a/src/devices/machine/8364_paula.h b/src/devices/machine/8364_paula.h index b4b371f8a98..ab90225f385 100644 --- a/src/devices/machine/8364_paula.h +++ b/src/devices/machine/8364_paula.h @@ -60,14 +60,14 @@ class paula_8364_device : public device_t, public device_sound_interface void update(); - template void audio_channel_map(address_map &map); + template void audio_channel_map(address_map &map) ATTR_COLD; void dmacon_set(u16 data); void adkcon_set(u16 data); 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; // sound stream update overrides virtual void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; diff --git a/src/devices/machine/8530scc.h b/src/devices/machine/8530scc.h index e4af88b3e97..cb2bd8d92eb 100644 --- a/src/devices/machine/8530scc.h +++ b/src/devices/machine/8530scc.h @@ -44,8 +44,8 @@ class scc8530_legacy_device : public device_t uint8_t read_reg(int offset); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; TIMER_CALLBACK_MEMBER(baud_expire); diff --git a/src/devices/machine/acorn_bmu.h b/src/devices/machine/acorn_bmu.h index 8cb4bb556a0..475404c2895 100644 --- a/src/devices/machine/acorn_bmu.h +++ b/src/devices/machine/acorn_bmu.h @@ -29,7 +29,7 @@ class acorn_bmu_device : public device_t protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: static constexpr uint8_t BMU_SLAVE_ADDRESS = 0xa2; diff --git a/src/devices/machine/acorn_ioc.h b/src/devices/machine/acorn_ioc.h index d4761e6089a..8fc4b7867cf 100644 --- a/src/devices/machine/acorn_ioc.h +++ b/src/devices/machine/acorn_ioc.h @@ -33,7 +33,7 @@ class acorn_ioc_device : public device_t, public device_serial_interface auto baud_w() { return m_baud_w.bind(); } auto kout_w() { return m_kout_w.bind(); } - void map(address_map &map); + void map(address_map &map) ATTR_COLD; uint32_t registers_r(offs_t offset, uint32_t mem_mask = ~0); void registers_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0); @@ -58,8 +58,8 @@ class acorn_ioc_device : public device_t, public device_serial_interface protected: // 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; // device_serial_interface implementation virtual void tra_callback() override; diff --git a/src/devices/machine/acorn_lc.h b/src/devices/machine/acorn_lc.h index 8367c90fdf1..c39bf0023a2 100644 --- a/src/devices/machine/acorn_lc.h +++ b/src/devices/machine/acorn_lc.h @@ -31,7 +31,7 @@ class acorn_lc_device : public device_t protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: diff --git a/src/devices/machine/acorn_memc.h b/src/devices/machine/acorn_memc.h index 7977527fd31..48d0c9df97d 100644 --- a/src/devices/machine/acorn_memc.h +++ b/src/devices/machine/acorn_memc.h @@ -52,8 +52,8 @@ class acorn_memc_device : public device_t, public device_memory_interface protected: // 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; // device_memory_interface implementation virtual space_config_vector memory_space_config() const override; diff --git a/src/devices/machine/acorn_vidc.h b/src/devices/machine/acorn_vidc.h index 436ee7a920b..23f8564f94a 100644 --- a/src/devices/machine/acorn_vidc.h +++ b/src/devices/machine/acorn_vidc.h @@ -53,11 +53,11 @@ class acorn_vidc10_device : public device_t, // device-level overrides //virtual void device_validity_check(validity_checker &valid) const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual u32 palette_entries() const noexcept override; virtual void device_config_complete() override; - 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 space_config_vector memory_space_config() const override; u32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); virtual u32 get_pixel_clock(); @@ -67,7 +67,7 @@ class acorn_vidc10_device : public device_t, address_space_config m_space_config; - void regs_map(address_map &map); + void regs_map(address_map &map) ATTR_COLD; enum { CRTC_HCR = 0, CRTC_HSWR, CRTC_HBSR, CRTC_HDSR, CRTC_HDER, CRTC_HBER, CRTC_HCSR, CRTC_HIR, @@ -158,11 +158,11 @@ class arm_vidc20_device : public acorn_vidc10_device virtual bool get_dac_mode() override; protected: - virtual void device_add_mconfig(machine_config &config) override; - void regs_map(address_map &map); + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + void regs_map(address_map &map) ATTR_COLD; virtual u32 palette_entries() const noexcept override; - 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 device_config_complete() override; u32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); virtual u32 get_pixel_clock() override; diff --git a/src/devices/machine/adc0804.h b/src/devices/machine/adc0804.h index 8e5ca6596b2..1fd3a8a1d84 100644 --- a/src/devices/machine/adc0804.h +++ b/src/devices/machine/adc0804.h @@ -73,8 +73,8 @@ class adc0804_device : public device_t adc0804_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); // device-level overrides - 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; private: // internal helpers diff --git a/src/devices/machine/adc0808.h b/src/devices/machine/adc0808.h index 91237a949b3..aeb529b697e 100644 --- a/src/devices/machine/adc0808.h +++ b/src/devices/machine/adc0808.h @@ -64,7 +64,7 @@ class adc0808_device : public device_t adc0808_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; TIMER_CALLBACK_MEMBER(update_state); diff --git a/src/devices/machine/adc083x.h b/src/devices/machine/adc083x.h index 3ccc6da79da..db8ad681471 100644 --- a/src/devices/machine/adc083x.h +++ b/src/devices/machine/adc083x.h @@ -53,7 +53,7 @@ class adc083x_device : public device_t adc083x_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, uint32_t mux_bits); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; const int32_t m_mux_bits; diff --git a/src/devices/machine/adc0844.h b/src/devices/machine/adc0844.h index b1496690e31..c4735da1b6c 100644 --- a/src/devices/machine/adc0844.h +++ b/src/devices/machine/adc0844.h @@ -50,7 +50,7 @@ class adc0844_device : public device_t adc0844_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; virtual TIMER_CALLBACK_MEMBER(conversion_complete); diff --git a/src/devices/machine/adc1038.h b/src/devices/machine/adc1038.h index ea399ba550d..61f2e340e51 100644 --- a/src/devices/machine/adc1038.h +++ b/src/devices/machine/adc1038.h @@ -42,8 +42,8 @@ class adc1038_device : public device_t 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; private: // internal state diff --git a/src/devices/machine/adc1213x.h b/src/devices/machine/adc1213x.h index 7d3f69caccd..77e6f1950c8 100644 --- a/src/devices/machine/adc1213x.h +++ b/src/devices/machine/adc1213x.h @@ -39,8 +39,8 @@ class adc12138_device : public device_t adc12138_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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; void convert(int channel, int bits16, int lsbfirst); diff --git a/src/devices/machine/aic565.h b/src/devices/machine/aic565.h index 3c799453ed5..37bbf3be43c 100644 --- a/src/devices/machine/aic565.h +++ b/src/devices/machine/aic565.h @@ -38,8 +38,8 @@ class aic565_device : public device_t protected: // 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; private: // synchronization helpers diff --git a/src/devices/machine/aic580.h b/src/devices/machine/aic580.h index 2ac102d4489..083388ff68f 100644 --- a/src/devices/machine/aic580.h +++ b/src/devices/machine/aic580.h @@ -31,15 +31,15 @@ class aic580_device : public device_t auto swrite_callback() { return m_swrite_callback.bind(); } // microprocessor interface - void mpu_map(address_map &map); + void mpu_map(address_map &map) ATTR_COLD; // port B DMA interface void breq_w(int state); protected: // 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; private: // register handlers diff --git a/src/devices/machine/aic6250.h b/src/devices/machine/aic6250.h index 8b8b283b0ba..2466c17af8e 100644 --- a/src/devices/machine/aic6250.h +++ b/src/devices/machine/aic6250.h @@ -13,7 +13,7 @@ class aic6250_device : public nscsi_device, public nscsi_slot_card_interface public: aic6250_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - void map(address_map &map); + void map(address_map &map) ATTR_COLD; auto int_cb() { return m_int_cb.bind(); } auto breq_cb() { return m_breq_cb.bind(); } @@ -37,8 +37,8 @@ class aic6250_device : public nscsi_device, public nscsi_slot_card_interface aic6250_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // standard device_interface 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; // ncsci_device overrides virtual void scsi_ctrl_changed() override; diff --git a/src/devices/machine/aicartc.h b/src/devices/machine/aicartc.h index fb1955ec685..1ebd0e70acb 100644 --- a/src/devices/machine/aicartc.h +++ b/src/devices/machine/aicartc.h @@ -31,8 +31,8 @@ class aicartc_device : public device_t, public device_rtc_interface protected: // device-level overrides virtual void device_validity_check(validity_checker &valid) const override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; // device_rtc_interface overrides virtual bool rtc_feature_y2k() const override { return true; } diff --git a/src/devices/machine/akiko.h b/src/devices/machine/akiko.h index eddf3525e61..1d1a61254ca 100644 --- a/src/devices/machine/akiko.h +++ b/src/devices/machine/akiko.h @@ -48,10 +48,10 @@ class akiko_device : public device_t protected: // device-level overrides - virtual void device_start() override; - virtual void device_stop() 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_stop() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: // 1X CDROM sector time in msec (300KBps) diff --git a/src/devices/machine/alpha_8921.h b/src/devices/machine/alpha_8921.h index 54d7599cd7d..0c1782c204f 100644 --- a/src/devices/machine/alpha_8921.h +++ b/src/devices/machine/alpha_8921.h @@ -35,8 +35,8 @@ class alpha_8921_device : public device_t 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; private: // inputs diff --git a/src/devices/machine/am25s55x.h b/src/devices/machine/am25s55x.h index 1fa3cab8102..21726b58c2d 100644 --- a/src/devices/machine/am25s55x.h +++ b/src/devices/machine/am25s55x.h @@ -34,8 +34,8 @@ class am25s55x_device : public device_t 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; void multiply(); @@ -82,8 +82,8 @@ class am25s557_device : public am25s55x_device void r_w(int state); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; void update_rounding(); diff --git a/src/devices/machine/am2847.h b/src/devices/machine/am2847.h index f0139233f12..f847b2ecc36 100644 --- a/src/devices/machine/am2847.h +++ b/src/devices/machine/am2847.h @@ -67,8 +67,8 @@ class am2847_base_device : public device_t protected: am2847_base_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, size_t size); - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; void init(); void shift(); diff --git a/src/devices/machine/am2901b.h b/src/devices/machine/am2901b.h index aa35d4589b7..5e1979258d8 100644 --- a/src/devices/machine/am2901b.h +++ b/src/devices/machine/am2901b.h @@ -50,8 +50,8 @@ class am2901b_device : public device_t private: // 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; void execute(); void disassemble(); diff --git a/src/devices/machine/am2910.h b/src/devices/machine/am2910.h index 6cbcbb15489..bd0dff03f36 100644 --- a/src/devices/machine/am2910.h +++ b/src/devices/machine/am2910.h @@ -40,8 +40,8 @@ class am2910_device : public device_t 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; TIMER_CALLBACK_MEMBER(clock_tick); diff --git a/src/devices/machine/am79c30.h b/src/devices/machine/am79c30.h index 43164622000..d0ddb8d5bbd 100644 --- a/src/devices/machine/am79c30.h +++ b/src/devices/machine/am79c30.h @@ -79,8 +79,8 @@ class am79c30a_device : public device_t protected: // 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; private: // lookup tables diff --git a/src/devices/machine/am79c90.h b/src/devices/machine/am79c90.h index 80c66ff58ce..8678e4c5987 100644 --- a/src/devices/machine/am79c90.h +++ b/src/devices/machine/am79c90.h @@ -24,8 +24,8 @@ class am7990_device_base : public device_t, public device_network_interface am7990_device_base(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock = 0); // device_t 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; // device_network_interface overrides virtual int recv_start_cb(u8 *buf, int length) override; diff --git a/src/devices/machine/am9513.h b/src/devices/machine/am9513.h index b19de879739..3058ed8a380 100644 --- a/src/devices/machine/am9513.h +++ b/src/devices/machine/am9513.h @@ -91,7 +91,7 @@ class am9513_device : public device_t am9513_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, bool is_am9513a); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void device_clock_changed() override; private: diff --git a/src/devices/machine/am9516.h b/src/devices/machine/am9516.h index 36583cc840f..0fbdf3c24aa 100644 --- a/src/devices/machine/am9516.h +++ b/src/devices/machine/am9516.h @@ -44,8 +44,8 @@ class am9516_device protected: // device_t 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; // device_memory_interface overrides virtual space_config_vector memory_space_config() const override; diff --git a/src/devices/machine/am9517a.h b/src/devices/machine/am9517a.h index 67b10351290..68490ef0c6c 100644 --- a/src/devices/machine/am9517a.h +++ b/src/devices/machine/am9517a.h @@ -82,8 +82,8 @@ class am9517a_device : public device_t, am9517a_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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 execute_run() override; virtual void end_of_process(); @@ -160,8 +160,8 @@ class v5x_dmau_device : public am9517a_device 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 dma_read() override; virtual void dma_write() override; @@ -187,7 +187,7 @@ class pcxport_dmac_device : public am9517a_device pcxport_dmac_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; virtual void end_of_process() override; }; @@ -231,7 +231,7 @@ class eisa_dma_device : public am9517a_device } protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: u32 m_stop[4]; diff --git a/src/devices/machine/am9519.h b/src/devices/machine/am9519.h index 20a76809070..685810be6aa 100644 --- a/src/devices/machine/am9519.h +++ b/src/devices/machine/am9519.h @@ -55,8 +55,8 @@ class am9519_device : public device_t 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; TIMER_CALLBACK_MEMBER(check_irqs); diff --git a/src/devices/machine/amiga_copper.h b/src/devices/machine/amiga_copper.h index 15fe5c3cd00..aa08820c6d2 100644 --- a/src/devices/machine/amiga_copper.h +++ b/src/devices/machine/amiga_copper.h @@ -27,7 +27,7 @@ class amiga_copper_device : public device_t void set_ecs_mode(bool ecs_mode) { m_cdang_min_reg = ecs_mode ? 0x00 : 0x20; } // I/O operations - void regs_map(address_map &map); + void regs_map(address_map &map) ATTR_COLD; void dmacon_set(u16 data); void copcon_w(u16 data); @@ -38,9 +38,9 @@ class amiga_copper_device : public device_t protected: // device-level overrides //virtual void device_validity_check(validity_checker &valid) const override; - //virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + //virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: required_device m_host_cpu; diff --git a/src/devices/machine/amigafdc.h b/src/devices/machine/amigafdc.h index 02e8c823539..508ce1deb17 100644 --- a/src/devices/machine/amigafdc.h +++ b/src/devices/machine/amigafdc.h @@ -35,8 +35,8 @@ class amiga_fdc_device : public device_t { static void floppy_formats(format_registration &fr); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; TIMER_CALLBACK_MEMBER(update_tick); diff --git a/src/devices/machine/applefdintf.h b/src/devices/machine/applefdintf.h index 97f5bc19b22..909229bdbec 100644 --- a/src/devices/machine/applefdintf.h +++ b/src/devices/machine/applefdintf.h @@ -107,8 +107,8 @@ class applefdintf_device : public device_t applefdintf_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; void update_phases(); }; diff --git a/src/devices/machine/applepic.h b/src/devices/machine/applepic.h index 52ff4df78d3..2ed67e4dbd0 100644 --- a/src/devices/machine/applepic.h +++ b/src/devices/machine/applepic.h @@ -39,9 +39,9 @@ class applepic_device : public device_t protected: // device_t implementation - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: static const std::string_view s_interrupt_names[8]; @@ -78,7 +78,7 @@ class applepic_device : public device_t u8 device_reg_r(offs_t offset); void device_reg_w(offs_t offset, u8 data); - void internal_map(address_map &map); + void internal_map(address_map &map) ATTR_COLD; // internal CPU required_device m_iopcpu; diff --git a/src/devices/machine/archimedes_keyb.h b/src/devices/machine/archimedes_keyb.h index 82311124581..d660cdc523a 100644 --- a/src/devices/machine/archimedes_keyb.h +++ b/src/devices/machine/archimedes_keyb.h @@ -31,14 +31,14 @@ class archimedes_keyboard_device : public device_t protected: // device-level overrides - virtual void device_resolve_objects() override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_resolve_objects() override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; TIMER_CALLBACK_MEMBER(update_mouse); diff --git a/src/devices/machine/arm_iomd.h b/src/devices/machine/arm_iomd.h index 2088f4d6918..139cbb4383a 100644 --- a/src/devices/machine/arm_iomd.h +++ b/src/devices/machine/arm_iomd.h @@ -50,7 +50,7 @@ class arm_iomd_device : public device_t void keyboard_reset(int state); // I/O operations - virtual void map(address_map &map); + virtual void map(address_map &map) ATTR_COLD; template void set_host_cpu_tag(T &&tag) { m_host_cpu.set_tag(std::forward(tag)); } template void set_vidc_tag(T &&tag) { m_vidc.set_tag(std::forward(tag)); } template void set_kbdc_tag(T &&tag) { m_kbdc.set_tag(std::forward(tag)); } @@ -58,13 +58,13 @@ class arm_iomd_device : public device_t protected: // device-level overrides //virtual void device_validity_check(validity_checker &valid) const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; TIMER_CALLBACK_MEMBER(timer_elapsed); - void base_map(address_map &map); + void base_map(address_map &map) ATTR_COLD; u16 m_id; u8 m_version; @@ -168,14 +168,14 @@ class arm7500fe_iomd_device : public arm_iomd_device // construction/destruction arm7500fe_iomd_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - virtual void map(address_map &map) override; + virtual void map(address_map &map) override ATTR_COLD; auto iolines_read() { return m_iolines_read_cb.bind(); } auto iolines_write() { return m_iolines_write_cb.bind(); } protected: - 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; private: devcb_read8 m_iolines_read_cb; devcb_write8 m_iolines_write_cb; diff --git a/src/devices/machine/at.h b/src/devices/machine/at.h index b6f98a06b45..31c9f81123c 100644 --- a/src/devices/machine/at.h +++ b/src/devices/machine/at.h @@ -17,7 +17,7 @@ class at_mb_device : public device_t public: at_mb_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 0); - void map(address_map &map); + void map(address_map &map) ATTR_COLD; auto kbd_clk() { return m_keybc.lookup()->kbd_clk(); } auto kbd_data() { return m_keybc.lookup()->kbd_data(); } @@ -37,9 +37,9 @@ class at_mb_device : public device_t void at_softlists(machine_config &config); protected: - void device_start() override; - void device_reset() override; - virtual void device_add_mconfig(machine_config &config) override; + void device_start() override ATTR_COLD; + void device_reset() override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: void set_dma_channel(int channel, int state); diff --git a/src/devices/machine/at28c16.h b/src/devices/machine/at28c16.h index e7b564929c5..e3043d2a1e1 100644 --- a/src/devices/machine/at28c16.h +++ b/src/devices/machine/at28c16.h @@ -34,7 +34,7 @@ class at28c16_device : protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_memory_interface overrides virtual space_config_vector memory_space_config() const override; @@ -58,7 +58,7 @@ class at28c16_device : void set_oe_12v(int state); TIMER_CALLBACK_MEMBER( write_complete ); - void at28c16_map8(address_map &map); + void at28c16_map8(address_map &map) ATTR_COLD; }; diff --git a/src/devices/machine/at28c64b.h b/src/devices/machine/at28c64b.h index f0c903e3952..e14f0af8045 100644 --- a/src/devices/machine/at28c64b.h +++ b/src/devices/machine/at28c64b.h @@ -34,7 +34,7 @@ class at28c64b_device : protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_memory_interface overrides virtual space_config_vector memory_space_config() const override; @@ -70,7 +70,7 @@ class at28c64b_device : void set_oe_12v(int state); TIMER_CALLBACK_MEMBER( write_complete ); - void at28c64b_map8(address_map &map); + void at28c64b_map8(address_map &map) ATTR_COLD; }; diff --git a/src/devices/machine/at45dbxx.h b/src/devices/machine/at45dbxx.h index 79f0a8aafd5..3732a4cd166 100644 --- a/src/devices/machine/at45dbxx.h +++ b/src/devices/machine/at45dbxx.h @@ -39,8 +39,8 @@ class at45db041_device : public device_t, at45db041_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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; // device_nvram_interface overrides virtual void nvram_default() override; diff --git a/src/devices/machine/at_keybc.h b/src/devices/machine/at_keybc.h index 4da3b698661..a65c1a61e72 100644 --- a/src/devices/machine/at_keybc.h +++ b/src/devices/machine/at_keybc.h @@ -46,7 +46,7 @@ class at_kbc_device_base : public device_t at_kbc_device_base(machine_config const &mconfig, device_type type, char const *tag, device_t *owner, u32 clock); // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // host outputs - use 1 = asserted, 0 = deasserted void set_hot_res(u8 state); @@ -89,9 +89,9 @@ class at_keyboard_controller_device : public at_kbc_device_base protected: // device_t implementation - virtual tiny_rom_entry const *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual tiny_rom_entry const *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; private: // MCU I/O handlers @@ -127,9 +127,9 @@ class ps2_keyboard_controller_device : public at_kbc_device_base protected: // device_t implementation - virtual tiny_rom_entry const *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; + virtual tiny_rom_entry const *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; private: // host outputs - use 1 = asserted, 0 = deasserted diff --git a/src/devices/machine/atahle.h b/src/devices/machine/atahle.h index 60ef3e0586b..6b6439b2cc4 100644 --- a/src/devices/machine/atahle.h +++ b/src/devices/machine/atahle.h @@ -17,8 +17,8 @@ class ata_hle_device_base : public device_t protected: ata_hle_device_base(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; TIMER_CALLBACK_MEMBER(busy_tick); TIMER_CALLBACK_MEMBER(empty_tick); diff --git a/src/devices/machine/atastorage.h b/src/devices/machine/atastorage.h index c3dc9aec416..08a3d901b98 100644 --- a/src/devices/machine/atastorage.h +++ b/src/devices/machine/atastorage.h @@ -42,7 +42,7 @@ class ata_mass_storage_device_base : public ata_hle_device_base protected: ata_mass_storage_device_base(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual int read_sector(uint32_t lba, void *buffer) = 0; virtual int write_sector(uint32_t lba, const void *buffer) = 0; @@ -97,9 +97,9 @@ class ide_hdd_device_base : public ata_mass_storage_device_base ide_hdd_device_base(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_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; virtual int read_sector(uint32_t lba, void *buffer) override { return !m_image->exists() ? 0 : m_image->read(lba, buffer); } virtual int write_sector(uint32_t lba, const void *buffer) override { return !m_image->exists() ? 0 : m_image->write(lba, buffer); } @@ -121,7 +121,7 @@ class cf_device_base : public ide_hdd_device_base cf_device_base(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // device_t implementation - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual void ide_build_identify_device() override; virtual attotime seek_time() override; diff --git a/src/devices/machine/atmel_arm_aic.h b/src/devices/machine/atmel_arm_aic.h index 72659841f3a..e388f4d816f 100644 --- a/src/devices/machine/atmel_arm_aic.h +++ b/src/devices/machine/atmel_arm_aic.h @@ -20,13 +20,13 @@ class arm_aic_device : public device_t auto irq_callback() { return m_irq_out.bind(); } - void regs_map(address_map &map); + void regs_map(address_map &map) ATTR_COLD; void set_irq(int line, int state); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: uint32_t m_irqs_enabled; diff --git a/src/devices/machine/ay31015.h b/src/devices/machine/ay31015.h index beaac297765..97f14b21ddb 100644 --- a/src/devices/machine/ay31015.h +++ b/src/devices/machine/ay31015.h @@ -104,8 +104,8 @@ class ay31015_device : public device_t ay31015_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; void rx_process(); void tx_process(); diff --git a/src/devices/machine/bacta_datalogger.h b/src/devices/machine/bacta_datalogger.h index a2592a0d183..0950473ff27 100644 --- a/src/devices/machine/bacta_datalogger.h +++ b/src/devices/machine/bacta_datalogger.h @@ -19,8 +19,8 @@ class bacta_datalogger_device : public device_t, protected: bacta_datalogger_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 void tra_callback() override; virtual void tra_complete() override; diff --git a/src/devices/machine/bankdev.h b/src/devices/machine/bankdev.h index 05a3c2eb411..eb9220dfe70 100644 --- a/src/devices/machine/bankdev.h +++ b/src/devices/machine/bankdev.h @@ -37,10 +37,10 @@ class address_map_bank_device : address_map_bank_device& stride(u32 stride) { m_stride = stride; return *this; } address_map_bank_device& shift(u32 shift) { m_shift = shift; return *this; } - void amap8(address_map &map); - void amap16(address_map &map); - void amap32(address_map &map); - void amap64(address_map &map); + void amap8(address_map &map) ATTR_COLD; + void amap16(address_map &map) ATTR_COLD; + void amap32(address_map &map) ATTR_COLD; + void amap64(address_map &map) ATTR_COLD; void write8(offs_t offset, u8 data); void write16(offs_t offset, u16 data, u16 mem_mask = 0xffff); @@ -55,7 +55,7 @@ class address_map_bank_device : void set_bank(offs_t offset); protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void device_config_complete() override; // device_memory_interface overrides diff --git a/src/devices/machine/bcreader.h b/src/devices/machine/bcreader.h index 6fd3966bef0..e527f5db238 100644 --- a/src/devices/machine/bcreader.h +++ b/src/devices/machine/bcreader.h @@ -31,7 +31,7 @@ class barcode_reader_device : public device_t protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; uint8_t m_byte_data[13]; uint8_t m_pixel_data[100]; diff --git a/src/devices/machine/bitmap_printer.h b/src/devices/machine/bitmap_printer.h index 7b05f0e8c15..261902e5e5b 100644 --- a/src/devices/machine/bitmap_printer.h +++ b/src/devices/machine/bitmap_printer.h @@ -68,11 +68,11 @@ class bitmap_printer_device : public device_t bitmap_printer_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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 device_reset_after_children() override; - virtual ioport_constructor device_input_ports() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: required_device m_screen; diff --git a/src/devices/machine/bl_handhelds_menucontrol.h b/src/devices/machine/bl_handhelds_menucontrol.h index 8b3e52b4f48..844d5be57df 100644 --- a/src/devices/machine/bl_handhelds_menucontrol.h +++ b/src/devices/machine/bl_handhelds_menucontrol.h @@ -24,8 +24,8 @@ class bl_handhelds_menucontrol_device : public device_t void reset_w(int state); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: // config diff --git a/src/devices/machine/bq4847.h b/src/devices/machine/bq4847.h index 50cee115be5..b53f4ccb43e 100644 --- a/src/devices/machine/bq4847.h +++ b/src/devices/machine/bq4847.h @@ -35,8 +35,8 @@ class bq4847_device : public device_t, bq4847_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock = 32768); // device_t - 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 device_clock_changed() override; // device_nvram_interface diff --git a/src/devices/machine/bq48x2.h b/src/devices/machine/bq48x2.h index 6a25cc45b5f..161c2adab5e 100644 --- a/src/devices/machine/bq48x2.h +++ b/src/devices/machine/bq48x2.h @@ -59,7 +59,7 @@ class bq48x2_device : public device_t, bool nvram_read(util::read_stream &file) override; bool nvram_write(util::write_stream &file) override; - void device_start() override; + void device_start() override ATTR_COLD; void set_watchdog_timer(); diff --git a/src/devices/machine/buffer.h b/src/devices/machine/buffer.h index e3f3c3bdd83..d1ce83327c1 100644 --- a/src/devices/machine/buffer.h +++ b/src/devices/machine/buffer.h @@ -20,7 +20,7 @@ class input_buffer_device : public device_t void write_bit7(int state) { if (state) m_input_data |= 0x80; else m_input_data &= ~0x80; } protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; uint8_t m_input_data; }; diff --git a/src/devices/machine/busmouse.h b/src/devices/machine/busmouse.h index 29c20d236ee..9865ab1dc13 100644 --- a/src/devices/machine/busmouse.h +++ b/src/devices/machine/busmouse.h @@ -22,16 +22,16 @@ class bus_mouse_device : public device_t DECLARE_INPUT_CHANGED_MEMBER(mouse_x_changed); DECLARE_INPUT_CHANGED_MEMBER(mouse_y_changed); - void map(address_map &map); + void map(address_map &map) ATTR_COLD; protected: // device-level overrides - 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; // optional information overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; uint8_t ppi_a_r(); uint8_t ppi_c_r(); diff --git a/src/devices/machine/cammu.h b/src/devices/machine/cammu.h index ee697c1126f..2f0760ddfa1 100644 --- a/src/devices/machine/cammu.h +++ b/src/devices/machine/cammu.h @@ -199,8 +199,8 @@ class cammu_device : public device_t cammu_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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; enum access_size : u8 { @@ -295,7 +295,7 @@ class cammu_c4_device : public cammu_device protected: cammu_c4_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_start() override ATTR_COLD; virtual bool get_access(const access_type mode, const u32 pte, const u32 ssw) const override; virtual u32 get_pdo(const bool user) const override { return user ? m_u_pdo : m_s_pdo; } @@ -320,7 +320,7 @@ class cammu_c4t_device : public cammu_c4_device public: cammu_c4t_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - virtual void map(address_map &map) override; + virtual void map(address_map &map) override ATTR_COLD; u32 ram_line_r() { return m_ram_line; } void ram_line_w(u32 data) { m_ram_line = data; } @@ -384,7 +384,7 @@ class cammu_c4t_device : public cammu_c4_device void tlb_ra_line_w(u32 data) { m_tlb_ra_line = data; } protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual bool get_alignment() const override { return (m_control & CNTL_ATD) == 0; } virtual system_tag_t get_ust_space() const override { return system_tag_t((m_control & (CNTL_IOTS | CNTL_UST)) >> 4); } @@ -410,7 +410,7 @@ class cammu_c4i_device : public cammu_c4_device public: cammu_c4i_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - virtual void map(address_map &map) override; + virtual void map(address_map &map) override ATTR_COLD; enum control_mask : u32 { @@ -486,7 +486,7 @@ class cammu_c4i_device : public cammu_c4_device void test_address_w(u32 data) { m_test_address = data; } protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual bool get_alignment() const override { return (m_control & CNTL_ATD) == 0; } // FIXME: don't really know how unmapped mode works on c4i @@ -511,8 +511,8 @@ class cammu_c3_device : public cammu_device protected: // device-level overrides - virtual void device_reset() override; - virtual void device_start() override; + virtual void device_reset() override ATTR_COLD; + virtual void device_start() override ATTR_COLD; // translation lookaside buffer and register access virtual u32 cammu_r(const u32 address) override; diff --git a/src/devices/machine/cat702.h b/src/devices/machine/cat702.h index 306ca94abf5..72185d03185 100644 --- a/src/devices/machine/cat702.h +++ b/src/devices/machine/cat702.h @@ -22,7 +22,7 @@ class cat702_device_base : public device_t protected: cat702_device_base(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; void apply_bit_sbox(int sel); void apply_sbox(const uint8_t *sbox); diff --git a/src/devices/machine/cdp1852.h b/src/devices/machine/cdp1852.h index 2ccb214a632..7727715ee47 100644 --- a/src/devices/machine/cdp1852.h +++ b/src/devices/machine/cdp1852.h @@ -46,8 +46,8 @@ class cdp1852_device : public device_t 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; private: void set_sr_line(bool state); diff --git a/src/devices/machine/cdp1871.h b/src/devices/machine/cdp1871.h index 4c560396dfb..bb350d35ea0 100644 --- a/src/devices/machine/cdp1871.h +++ b/src/devices/machine/cdp1871.h @@ -65,7 +65,7 @@ class cdp1871_device : public device_t protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; void change_output_lines(); void clock_scan_counters(); diff --git a/src/devices/machine/cdp1879.h b/src/devices/machine/cdp1879.h index 4dc761b5fd7..40c3d408e89 100644 --- a/src/devices/machine/cdp1879.h +++ b/src/devices/machine/cdp1879.h @@ -27,8 +27,8 @@ class cdp1879_device : public device_t, 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; // device_rtc_interface overrides virtual void rtc_clock_updated(int year, int month, int day, int day_of_week, int hour, int minute, int second) override; diff --git a/src/devices/machine/ch376.h b/src/devices/machine/ch376.h index d00586b1503..bea3bf4650b 100644 --- a/src/devices/machine/ch376.h +++ b/src/devices/machine/ch376.h @@ -35,7 +35,7 @@ class ch376_device : public device_t protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: enum diff --git a/src/devices/machine/chessmachine.h b/src/devices/machine/chessmachine.h index 3b863f2e268..d9f9a6ea1be 100644 --- a/src/devices/machine/chessmachine.h +++ b/src/devices/machine/chessmachine.h @@ -30,11 +30,11 @@ class chessmachine_device : public device_t protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void device_reset_after_children() override { reset_w(1); } - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; private: required_device m_maincpu; @@ -56,7 +56,7 @@ class chessmachine_device : public device_t u8 internal_r() { return m_latch[0]; } void internal_w(u8 data) { m_latch[1] = data & 1; m_data_out(m_latch[1]); } - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; }; diff --git a/src/devices/machine/clock.h b/src/devices/machine/clock.h index 0fceeb7d9cd..92ee83719f0 100644 --- a/src/devices/machine/clock.h +++ b/src/devices/machine/clock.h @@ -24,7 +24,7 @@ class clock_device : public device_t int signal_r() { return m_signal; } protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void device_reset() override { output(); } virtual void device_clock_changed() override { reinit(); } diff --git a/src/devices/machine/com52c50.h b/src/devices/machine/com52c50.h index f3e197e803c..01d80fcb2df 100644 --- a/src/devices/machine/com52c50.h +++ b/src/devices/machine/com52c50.h @@ -57,12 +57,12 @@ class com52c50_device : public device_t u8 tx_status_r(); void control_w(u8 data); void mode_w(u8 data); - void map(address_map &map); + void map(address_map &map) ATTR_COLD; protected: // 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; private: // device callbacks diff --git a/src/devices/machine/com8116.h b/src/devices/machine/com8116.h index 908d7c782d2..b7793d03e7c 100644 --- a/src/devices/machine/com8116.h +++ b/src/devices/machine/com8116.h @@ -61,8 +61,8 @@ class com8116_device : public device_t static const int divisors_16X_4_6080MHz[16]; // 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; TIMER_CALLBACK_MEMBER(fx4_tick); TIMER_CALLBACK_MEMBER(fr_tick); diff --git a/src/devices/machine/cop452.h b/src/devices/machine/cop452.h index 7aaaa668b4c..c9ffd65faa3 100644 --- a/src/devices/machine/cop452.h +++ b/src/devices/machine/cop452.h @@ -40,8 +40,8 @@ class cop452_device : public device_t 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; TIMER_CALLBACK_MEMBER(timer_tick); diff --git a/src/devices/machine/corvushd.h b/src/devices/machine/corvushd.h index 9f2d4910599..7c6b53393b4 100644 --- a/src/devices/machine/corvushd.h +++ b/src/devices/machine/corvushd.h @@ -36,7 +36,7 @@ class corvus_hdc_device : public device_t protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; TIMER_CALLBACK_MEMBER(process_timeout); TIMER_CALLBACK_MEMBER(complete_function); diff --git a/src/devices/machine/cr511b.h b/src/devices/machine/cr511b.h index 034423c29b4..0575562b2d4 100644 --- a/src/devices/machine/cr511b.h +++ b/src/devices/machine/cr511b.h @@ -60,9 +60,9 @@ class cr511b_device : public device_t protected: // device-level overrides - 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; private: enum diff --git a/src/devices/machine/cs4031.h b/src/devices/machine/cs4031.h index 4a98721861b..d8376f538f9 100644 --- a/src/devices/machine/cs4031.h +++ b/src/devices/machine/cs4031.h @@ -102,11 +102,11 @@ class cs4031_device : public device_t 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 device_reset_after_children() override; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: devcb_read16 m_read_ior; diff --git a/src/devices/machine/cs8221.h b/src/devices/machine/cs8221.h index 63b3102d5e9..192e75a3345 100644 --- a/src/devices/machine/cs8221.h +++ b/src/devices/machine/cs8221.h @@ -39,12 +39,12 @@ class cs8221_device : public device_t void set_isatag(const char *tag) { m_isatag = tag; } void set_biostag(const char *tag) { m_biostag = tag; } - void map(address_map &map); + void map(address_map &map) ATTR_COLD; 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; private: diff --git a/src/devices/machine/cs8900a.h b/src/devices/machine/cs8900a.h index a0a6f88dbb4..8f0431ddaf4 100644 --- a/src/devices/machine/cs8900a.h +++ b/src/devices/machine/cs8900a.h @@ -36,8 +36,8 @@ class cs8900a_device : public device_t, public device_network_interface { cs8900a_device(const machine_config& mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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; // device_network_interface overrides virtual int recv_start_cb(u8 *buf, int length) override; diff --git a/src/devices/machine/cxd1095.h b/src/devices/machine/cxd1095.h index f5decf3def7..a70b7e552d2 100644 --- a/src/devices/machine/cxd1095.h +++ b/src/devices/machine/cxd1095.h @@ -70,8 +70,8 @@ class cxd1095_device : public device_t 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; private: // input/output callbacks diff --git a/src/devices/machine/cxd1185.h b/src/devices/machine/cxd1185.h index 76c0f7aca35..29c097b10f4 100644 --- a/src/devices/machine/cxd1185.h +++ b/src/devices/machine/cxd1185.h @@ -20,7 +20,7 @@ class cxd1185_device auto drq_out_cb() { return m_drq_out_cb.bind(); } auto port_out_cb() { return m_port_out_cb.bind(); } - void map(address_map &map); + void map(address_map &map) ATTR_COLD; // dma and port handlers u8 dma_r(); @@ -29,8 +29,8 @@ class cxd1185_device protected: // device_t 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; // ncsci_device overrides virtual void scsi_ctrl_changed() override; diff --git a/src/devices/machine/diablo_hd.h b/src/devices/machine/diablo_hd.h index 43524706967..b89d2a59ee8 100644 --- a/src/devices/machine/diablo_hd.h +++ b/src/devices/machine/diablo_hd.h @@ -65,9 +65,9 @@ class diablo_hd_device : public device_t int rd_clock(int index); protected: - 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; TIMER_CALLBACK_MEMBER(sector_mark_tick); diff --git a/src/devices/machine/dimm_spd.h b/src/devices/machine/dimm_spd.h index 0160e392e28..d1551ca17a7 100644 --- a/src/devices/machine/dimm_spd.h +++ b/src/devices/machine/dimm_spd.h @@ -33,7 +33,7 @@ class dimm_spd_device : public device_t, public i2c_hle_interface protected: // device_t overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // i2c_hle_interface overrides virtual u8 read_data(u16 offset) override; virtual const char *get_tag() override { return tag(); } diff --git a/src/devices/machine/dl11.h b/src/devices/machine/dl11.h index d3120f5e6af..ebd575847ca 100644 --- a/src/devices/machine/dl11.h +++ b/src/devices/machine/dl11.h @@ -50,8 +50,8 @@ class dl11_device : public device_t, 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; // device_serial_interface overrides virtual void tra_callback() override; diff --git a/src/devices/machine/dmac.h b/src/devices/machine/dmac.h index e6af4efa049..9a57bb60089 100644 --- a/src/devices/machine/dmac.h +++ b/src/devices/machine/dmac.h @@ -52,8 +52,8 @@ class amiga_dmac_device : public device_t, public amiga_autoconfig 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; // amiga_autoconfig overrides virtual void autoconfig_base_address(offs_t address) override; diff --git a/src/devices/machine/dp8390.h b/src/devices/machine/dp8390.h index 0f484c5e45f..9ee258a9f84 100644 --- a/src/devices/machine/dp8390.h +++ b/src/devices/machine/dp8390.h @@ -35,8 +35,8 @@ class dp8390_device : public device_t, public device_network_interface dp8390_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, TYPE varian, u32 bandwidth); // 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; TYPE const m_variant; diff --git a/src/devices/machine/dp83932c.h b/src/devices/machine/dp83932c.h index 2a7d271eb11..825a22583cf 100644 --- a/src/devices/machine/dp83932c.h +++ b/src/devices/machine/dp83932c.h @@ -20,14 +20,14 @@ class dp83932c_device auto out_int_cb() { return m_out_int.bind(); } // external interface - void map(address_map &map); + void map(address_map &map) ATTR_COLD; u16 reg_r(offs_t offset) { return m_reg[offset]; } void reg_w(offs_t offset, u16 data); protected: // device_t 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; // device_network_interface overrides virtual void send_complete_cb(int result) override; diff --git a/src/devices/machine/dp8573a.h b/src/devices/machine/dp8573a.h index 5851c9a65ab..a0fc749d1f2 100644 --- a/src/devices/machine/dp8573a.h +++ b/src/devices/machine/dp8573a.h @@ -24,7 +24,7 @@ class dp8573a_device : public device_t, public device_nvram_interface, public de dp8573a_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; // device_nvram_interface implementation virtual void nvram_default() override; diff --git a/src/devices/machine/ds1204.h b/src/devices/machine/ds1204.h index fd7b9f8b39f..897c3059741 100644 --- a/src/devices/machine/ds1204.h +++ b/src/devices/machine/ds1204.h @@ -26,7 +26,7 @@ class ds1204_device : public device_t, public device_nvram_interface protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_nvram_interface overrides virtual void nvram_default() override; diff --git a/src/devices/machine/ds1205.h b/src/devices/machine/ds1205.h index f406fa428ca..2a5f418b73b 100644 --- a/src/devices/machine/ds1205.h +++ b/src/devices/machine/ds1205.h @@ -26,7 +26,7 @@ class ds1205_device : public device_t, public device_nvram_interface protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_nvram_interface overrides virtual void nvram_default() override; diff --git a/src/devices/machine/ds1207.h b/src/devices/machine/ds1207.h index 8afdeeb755d..0af76453178 100644 --- a/src/devices/machine/ds1207.h +++ b/src/devices/machine/ds1207.h @@ -27,8 +27,8 @@ class ds1207_device : public device_t, public device_nvram_interface, public dev 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; // device_nvram_interface overrides virtual void nvram_default() override; diff --git a/src/devices/machine/ds1302.h b/src/devices/machine/ds1302.h index 6d79cbb2c11..d838f093c7c 100644 --- a/src/devices/machine/ds1302.h +++ b/src/devices/machine/ds1302.h @@ -45,7 +45,7 @@ class ds1302_device : public device_t, ds1302_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, uint8_t ram_size); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_nvram_interface overrides virtual void nvram_default() override; diff --git a/src/devices/machine/ds1315.h b/src/devices/machine/ds1315.h index 720c4a08202..f42152c19a7 100644 --- a/src/devices/machine/ds1315.h +++ b/src/devices/machine/ds1315.h @@ -36,8 +36,8 @@ class ds1315_device : public device_t 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; private: devcb_read8 m_backing_read; diff --git a/src/devices/machine/ds1386.h b/src/devices/machine/ds1386.h index c7b15d16799..f39b1b1f909 100644 --- a/src/devices/machine/ds1386.h +++ b/src/devices/machine/ds1386.h @@ -124,7 +124,7 @@ class ds1386_device : public device_t, ds1386_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, size_t size); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_nvram_interface overrides virtual void nvram_default() override; diff --git a/src/devices/machine/ds17x85.h b/src/devices/machine/ds17x85.h index 413ed5f4b8b..b0ffc0e136c 100644 --- a/src/devices/machine/ds17x85.h +++ b/src/devices/machine/ds17x85.h @@ -86,7 +86,7 @@ class ds17x85_device : public mc146818_device ds17x85_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, u8 model, u32 extram_size); // device-specific overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_nvram_interface overrides virtual void nvram_default() override; diff --git a/src/devices/machine/ds1994.h b/src/devices/machine/ds1994.h index 248fc6e8e90..32150d06584 100644 --- a/src/devices/machine/ds1994.h +++ b/src/devices/machine/ds1994.h @@ -35,8 +35,8 @@ class ds1994_device : public device_t, public device_nvram_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; // device_nvram_interface overrides virtual void nvram_default() override; diff --git a/src/devices/machine/ds2401.h b/src/devices/machine/ds2401.h index 30d266be796..b09e2db95bc 100644 --- a/src/devices/machine/ds2401.h +++ b/src/devices/machine/ds2401.h @@ -46,8 +46,8 @@ class ds2401_device : public device_t }; // 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; TIMER_CALLBACK_MEMBER(reset_tick); TIMER_CALLBACK_MEMBER(main_tick); diff --git a/src/devices/machine/ds2404.h b/src/devices/machine/ds2404.h index 1ed22887b87..ea63e374d95 100644 --- a/src/devices/machine/ds2404.h +++ b/src/devices/machine/ds2404.h @@ -36,7 +36,7 @@ class ds2404_device : public device_t, public device_nvram_interface protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void device_reset() override { } virtual void device_post_load() override { } virtual void device_clock_changed() override { } diff --git a/src/devices/machine/ds2430a.h b/src/devices/machine/ds2430a.h index 2d00e9f31ff..40576750a25 100644 --- a/src/devices/machine/ds2430a.h +++ b/src/devices/machine/ds2430a.h @@ -59,7 +59,7 @@ class ds1wire_device : public device_t protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual state ds1wire_next_state(state prev_state, u8 command, u16 index, u8 data) = 0; virtual u8 ds1wire_read_rom(u16 index) const = 0; @@ -105,7 +105,7 @@ class ds2430a_device : public ds1wire_device, public device_nvram_interface ds2430a_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_nvram_interface overrides virtual bool nvram_read(util::read_stream &file) override; diff --git a/src/devices/machine/ds6417.h b/src/devices/machine/ds6417.h index c71f7186d14..be6b33dc274 100644 --- a/src/devices/machine/ds6417.h +++ b/src/devices/machine/ds6417.h @@ -30,8 +30,8 @@ class ds6417_device : public device_t, int data_r() { return m_read ? m_data : 0; } protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: uint8_t calccrc(uint8_t bit, uint8_t crc) const; diff --git a/src/devices/machine/ds75160a.h b/src/devices/machine/ds75160a.h index d26f2cabd46..0be5bf9a53a 100644 --- a/src/devices/machine/ds75160a.h +++ b/src/devices/machine/ds75160a.h @@ -48,7 +48,7 @@ class ds75160a_device : public device_t protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: devcb_read8 m_read; diff --git a/src/devices/machine/ds75161a.h b/src/devices/machine/ds75161a.h index a304b2893b3..4efa9a3ce69 100644 --- a/src/devices/machine/ds75161a.h +++ b/src/devices/machine/ds75161a.h @@ -70,7 +70,7 @@ class ds75161a_device : public device_t protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: void update_signals(); diff --git a/src/devices/machine/e0516.h b/src/devices/machine/e0516.h index 0e1bff9759d..81ad63afb5d 100644 --- a/src/devices/machine/e0516.h +++ b/src/devices/machine/e0516.h @@ -44,7 +44,7 @@ class e0516_device : public device_t, public device_rtc_interface protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_rtc_interface overrides virtual void rtc_clock_updated(int year, int month, int day, int day_of_week, int hour, int minute, int second) override; diff --git a/src/devices/machine/e05a03.h b/src/devices/machine/e05a03.h index 4193e218a38..259358f134f 100644 --- a/src/devices/machine/e05a03.h +++ b/src/devices/machine/e05a03.h @@ -38,8 +38,8 @@ class e05a03_device : public device_t 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; private: // internal state diff --git a/src/devices/machine/e05a30.h b/src/devices/machine/e05a30.h index 943502a808f..d8e7d1611ae 100644 --- a/src/devices/machine/e05a30.h +++ b/src/devices/machine/e05a30.h @@ -46,8 +46,8 @@ class e05a30_device : public device_t 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; private: /* callbacks */ diff --git a/src/devices/machine/edlc.h b/src/devices/machine/edlc.h index a450bcba9cd..659dbab7b55 100644 --- a/src/devices/machine/edlc.h +++ b/src/devices/machine/edlc.h @@ -22,7 +22,7 @@ class seeq8003_device : seeq8003_device(machine_config const &mconfig, char const *tag, device_t *owner, u32 clock = 0); // register interface - virtual void map(address_map &map); + virtual void map(address_map &map) ATTR_COLD; virtual u8 read(offs_t offset); virtual void write(offs_t offset, u8 data); @@ -39,8 +39,8 @@ class seeq8003_device : seeq8003_device(machine_config const &mconfig, device_type type, char const *tag, device_t *owner, u32 clock = 0); // 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; // device_network_interface implementation virtual int recv_start_cb(u8 *buf, int length) override; @@ -146,21 +146,21 @@ class seeq80c03_device : public seeq8003_device seeq80c03_device(machine_config const &mconfig, char const *tag, device_t *owner, u32 clock = 0); // register interface - virtual void map(address_map &map) override; + virtual void map(address_map &map) override ATTR_COLD; virtual u8 read(offs_t offset) override; virtual void write(offs_t offset, u8 data) override; protected: // device_t overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; // device_network_interface overrides virtual void send_complete_cb(int result) override; // banked register map - void map_reg(address_map &map); + void map_reg(address_map &map) ATTR_COLD; // register read handlers u8 tx_ccl_r() { return u8(m_tx_cc >> 0); } diff --git a/src/devices/machine/eeprom.h b/src/devices/machine/eeprom.h index e0693455e2f..2aba9bb818b 100644 --- a/src/devices/machine/eeprom.h +++ b/src/devices/machine/eeprom.h @@ -58,8 +58,8 @@ class eeprom_base_device : public device_t, // device-level overrides virtual void device_validity_check(validity_checker &valid) const override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; // device_nvram_interface overrides virtual void nvram_default() override; diff --git a/src/devices/machine/eeprompar.h b/src/devices/machine/eeprompar.h index 07f3e37e059..a0b240d94fd 100644 --- a/src/devices/machine/eeprompar.h +++ b/src/devices/machine/eeprompar.h @@ -22,8 +22,8 @@ class eeprom_parallel_base_device : public eeprom_base_device eeprom_parallel_base_device(const machine_config &mconfig, device_type devtype, const char *tag, device_t *owner); // 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; }; class eeprom_parallel_28xx_device : public eeprom_parallel_base_device @@ -47,8 +47,8 @@ class eeprom_parallel_28xx_device : public eeprom_parallel_base_device eeprom_parallel_28xx_device(const machine_config &mconfig, device_type devtype, const char *tag, device_t *owner); // 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; private: // configuration state diff --git a/src/devices/machine/eepromser.h b/src/devices/machine/eepromser.h index 4e5361e5e2f..e9f8680be8c 100644 --- a/src/devices/machine/eepromser.h +++ b/src/devices/machine/eepromser.h @@ -36,7 +36,7 @@ class eeprom_serial_base_device : public eeprom_base_device eeprom_serial_base_device(const machine_config &mconfig, device_type devtype, const char *tag, device_t *owner, eeprom_serial_streaming enable_streaming); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // read interfaces differ between implementations @@ -197,7 +197,7 @@ class eeprom_serial_x24c44_device : public eeprom_serial_base_device void execute_command() override; void copy_ram_to_eeprom(); void copy_eeprom_to_ram(); - void device_start() override; + void device_start() override ATTR_COLD; uint8_t m_ram_length; uint16_t m_ram_data[16]; uint16_t m_reading; diff --git a/src/devices/machine/em_reel.h b/src/devices/machine/em_reel.h index 1a50fffcff1..d1fb088fb84 100644 --- a/src/devices/machine/em_reel.h +++ b/src/devices/machine/em_reel.h @@ -53,7 +53,7 @@ class em_reel_device : public device_t void set_direction(dir direction) { m_direction = direction; } protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void device_validity_check(validity_checker &valid) const override; private: diff --git a/src/devices/machine/er1400.h b/src/devices/machine/er1400.h index 045fd7a0ef8..ad7bc2b5b6d 100644 --- a/src/devices/machine/er1400.h +++ b/src/devices/machine/er1400.h @@ -44,7 +44,7 @@ class er1400_device : public device_t, public device_nvram_interface protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_nvram_interface overrides virtual void nvram_default() override; diff --git a/src/devices/machine/er2055.h b/src/devices/machine/er2055.h index 449ffde2bb2..058caace178 100644 --- a/src/devices/machine/er2055.h +++ b/src/devices/machine/er2055.h @@ -54,7 +54,7 @@ class er2055_device : public device_t, protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_nvram_interface overrides virtual void nvram_default() override; diff --git a/src/devices/machine/exorterm.h b/src/devices/machine/exorterm.h index 45c141a7b95..1cbde37672f 100644 --- a/src/devices/machine/exorterm.h +++ b/src/devices/machine/exorterm.h @@ -45,12 +45,12 @@ class exorterm155_device : public device_t protected: exorterm155_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 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 void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; - virtual const tiny_rom_entry *device_rom_region() const override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; private: required_device m_maincpu; @@ -74,7 +74,7 @@ class exorterm155_device : public device_t output_finder<> m_page_mode_led; output_finder<> m_insert_char_led; - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; void acia_txd_w(int state); void acia_rts_w(int state); diff --git a/src/devices/machine/f3853.h b/src/devices/machine/f3853.h index 16bdde050e2..d24c5883254 100644 --- a/src/devices/machine/f3853.h +++ b/src/devices/machine/f3853.h @@ -87,9 +87,9 @@ class f3853_device : public device_t f3853_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_reset() override; + virtual void device_resolve_objects() override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; uint16_t timer_interrupt_vector() const { return m_int_vector & ~uint16_t(0x0080); } uint16_t external_interrupt_vector() const { return m_int_vector | uint16_t(0x0080); } @@ -153,7 +153,7 @@ class f3856_device : public f3851_device protected: f3856_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_start() override ATTR_COLD; virtual void timer_start(uint8_t value) override; diff --git a/src/devices/machine/f4702.h b/src/devices/machine/f4702.h index dcafebe5fd0..7480d08dfeb 100644 --- a/src/devices/machine/f4702.h +++ b/src/devices/machine/f4702.h @@ -42,7 +42,7 @@ class f4702_device : public device_t, public device_execute_interface protected: // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_execute_interface implementation virtual void execute_run() override; diff --git a/src/devices/machine/fdc37c665gt.h b/src/devices/machine/fdc37c665gt.h index 17e768438c0..5f4eec000e8 100644 --- a/src/devices/machine/fdc37c665gt.h +++ b/src/devices/machine/fdc37c665gt.h @@ -31,7 +31,7 @@ class fdc37c665gt_device : public device_t fdc37c665gt_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock, upd765_family_device::mode_t floppy_mode); // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; // to access io ports uint8_t read(offs_t offset); @@ -60,7 +60,7 @@ class fdc37c665gt_device : public device_t protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // for the internal floppy controller void irq_floppy_w(int state); diff --git a/src/devices/machine/fdc37c93x.h b/src/devices/machine/fdc37c93x.h index 7ec1922498f..10a2cc704cb 100644 --- a/src/devices/machine/fdc37c93x.h +++ b/src/devices/machine/fdc37c93x.h @@ -28,7 +28,7 @@ class fdc37c93x_device : public device_t, public device_isa16_card_interface ~fdc37c93x_device() {} // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; void set_sysopt_pin(int value) { sysopt_pin = value; } auto gp20_reset() { return m_gp20_reset_callback.bind(); } @@ -78,13 +78,13 @@ class fdc37c93x_device : public device_t, public device_isa16_card_interface void kbdp21_gp25_gatea20_w(int state); void kbdp20_gp20_reset_w(int state); - void unmap_fdc(address_map &map); - void map_lpt(address_map &map); - void map_serial1(address_map &map); - void map_serial2(address_map &map); - void map_rtc(address_map &map); - void map_keyboard(address_map &map); - void unmap_keyboard(address_map &map); + void unmap_fdc(address_map &map) ATTR_COLD; + void map_lpt(address_map &map) ATTR_COLD; + void map_serial1(address_map &map) ATTR_COLD; + void map_serial2(address_map &map) ATTR_COLD; + void map_rtc(address_map &map) ATTR_COLD; + void map_keyboard(address_map &map) ATTR_COLD; + void unmap_keyboard(address_map &map) ATTR_COLD; // to access io ports uint8_t read(offs_t offset); @@ -102,8 +102,8 @@ class fdc37c93x_device : public device_t, public device_isa16_card_interface fdc37c93x_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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 uint8_t dack_r(int line) override; virtual void dack_w(int line, uint8_t data) override; diff --git a/src/devices/machine/fga002.h b/src/devices/machine/fga002.h index f28a82f16e5..53e86954e7c 100644 --- a/src/devices/machine/fga002.h +++ b/src/devices/machine/fga002.h @@ -49,8 +49,8 @@ class fga002_device : public device_t fga002_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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; #if 0 // device_z80daisy_interface overrides virtual int z80daisy_irq_state() override; diff --git a/src/devices/machine/fm_scsi.h b/src/devices/machine/fm_scsi.h index 9a3df8c0ba6..359d7a6381d 100644 --- a/src/devices/machine/fm_scsi.h +++ b/src/devices/machine/fm_scsi.h @@ -40,8 +40,8 @@ class fmscsi_device : public legacy_scsi_host_adapter protected: // device-level overrides (none are required, but these are common) - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; TIMER_CALLBACK_MEMBER(update_transfer); diff --git a/src/devices/machine/gayle.h b/src/devices/machine/gayle.h index fad91716214..0e846055a09 100644 --- a/src/devices/machine/gayle.h +++ b/src/devices/machine/gayle.h @@ -88,7 +88,7 @@ class gayle_device : public device_t void cc_bvd2_w(int state); void cc_wp_w(int state); - void register_map(address_map &map); + void register_map(address_map &map) ATTR_COLD; uint16_t gayle_id_r(offs_t offset, uint16_t mem_mask = ~0); void gayle_id_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); @@ -96,8 +96,8 @@ class gayle_device : public device_t void set_id(uint8_t id) { m_gayle_id = id; } protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: void dump_register(); diff --git a/src/devices/machine/gen_fifo.h b/src/devices/machine/gen_fifo.h index 8e27ef73b6a..6ebcada58c6 100644 --- a/src/devices/machine/gen_fifo.h +++ b/src/devices/machine/gen_fifo.h @@ -196,7 +196,7 @@ template class generic_fifo_device_base : public device_t { // Notes whether the halting callbacks were triggered bool m_empty_triggered, m_full_triggered; - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; TIMER_CALLBACK_MEMBER(sync_empty); TIMER_CALLBACK_MEMBER(sync_full); diff --git a/src/devices/machine/gen_latch.h b/src/devices/machine/gen_latch.h index 946ac5c380c..81b09038016 100644 --- a/src/devices/machine/gen_latch.h +++ b/src/devices/machine/gen_latch.h @@ -43,8 +43,8 @@ class generic_latch_base_device : public device_t // construction/destruction generic_latch_base_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 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; bool has_separate_acknowledge() const { return m_separate_acknowledge; } bool is_latch_written() const { return m_latch_written; } @@ -76,7 +76,7 @@ class generic_latch_8_device : public generic_latch_base_device void clear(int state); protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; void sync_callback(s32 param); @@ -102,7 +102,7 @@ class generic_latch_16_device : public generic_latch_base_device void clear(int state); protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; void sync_callback(s32 param); diff --git a/src/devices/machine/generalplus_gpl16250soc.h b/src/devices/machine/generalplus_gpl16250soc.h index f50f2eeef60..9e66f2fe769 100644 --- a/src/devices/machine/generalplus_gpl16250soc.h +++ b/src/devices/machine/generalplus_gpl16250soc.h @@ -70,13 +70,13 @@ class sunplus_gcm394_base_device : public unsp_20_device, public device_mixer_in protected: sunplus_gcm394_base_device(const machine_config& mconfig, device_type type, const char* tag, device_t* owner, uint32_t clock, address_map_constructor internal); - 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 device_post_load() override; - void gcm394_internal_map(address_map &map); - void base_internal_map(address_map &map); + void gcm394_internal_map(address_map &map) ATTR_COLD; + void base_internal_map(address_map &map) ATTR_COLD; required_device m_screen; required_device m_spg_video; @@ -375,10 +375,10 @@ class generalplus_gpac800_device : public sunplus_gcm394_base_device generalplus_gpac800_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - void gpac800_internal_map(address_map &map); + void gpac800_internal_map(address_map &map) ATTR_COLD; - //virtual void device_start() override; - virtual void device_reset() override; + //virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: void recalculate_calculate_effective_nand_address(); @@ -430,10 +430,10 @@ class generalplus_gpspispi_device : public sunplus_gcm394_base_device generalplus_gpspispi_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - void gpspispi_internal_map(address_map &map); + void gpspispi_internal_map(address_map &map) ATTR_COLD; - //virtual void device_start() override; - //virtual void device_reset() override; + //virtual void device_start() override ATTR_COLD; + //virtual void device_reset() override ATTR_COLD; private: uint16_t spi_unk_7943_r(); @@ -455,10 +455,10 @@ class generalplus_gpspi_direct_device : public sunplus_gcm394_base_device generalplus_gpspi_direct_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - void gpspi_direct_internal_map(address_map &map); + void gpspi_direct_internal_map(address_map &map) ATTR_COLD; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: uint16_t ramread_r(offs_t offset); diff --git a/src/devices/machine/generalplus_gpl16250soc_video.h b/src/devices/machine/generalplus_gpl16250soc_video.h index e68169898ed..be112bf5d36 100644 --- a/src/devices/machine/generalplus_gpl16250soc_video.h +++ b/src/devices/machine/generalplus_gpl16250soc_video.h @@ -145,8 +145,8 @@ class gcm394_base_video_device : public device_t, public device_video_interface inline void check_video_irq(); - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; required_device m_cpu; required_device m_screen; diff --git a/src/devices/machine/generic_spi_flash.h b/src/devices/machine/generic_spi_flash.h index 4c6559fb479..d67e04309d5 100644 --- a/src/devices/machine/generic_spi_flash.h +++ b/src/devices/machine/generic_spi_flash.h @@ -33,8 +33,8 @@ class generic_spi_flash_device : public device_t, 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; // device_nvram_interface overrides virtual void nvram_default() override; diff --git a/src/devices/machine/genpc.h b/src/devices/machine/genpc.h index 4f0cdbfe3a0..577d7faa4b8 100644 --- a/src/devices/machine/genpc.h +++ b/src/devices/machine/genpc.h @@ -43,7 +43,7 @@ class ibm5160_mb_device : public device_t auto kbdclk_callback() { return m_kbdclk_callback.bind(); } auto kbddata_callback() { return m_kbddata_callback.bind(); } - void map(address_map &map); + void map(address_map &map) ATTR_COLD; uint8_t m_pit_out2; @@ -65,10 +65,10 @@ class ibm5160_mb_device : public device_t ibm5160_mb_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_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() 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 ioport_constructor device_input_ports() const override ATTR_COLD; protected: required_device m_maincpu; @@ -152,8 +152,8 @@ class ibm5150_mb_device : public ibm5160_mb_device ibm5150_mb_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // device_t implementation - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; private: required_device m_cassette; @@ -180,9 +180,9 @@ class ec1841_mb_device : public ibm5160_mb_device ec1841_mb_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; private: uint8_t pc_ppi_portc_r(); @@ -200,9 +200,9 @@ class ec1840_mb_device : public ec1841_mb_device protected: // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; private: uint8_t pc_ppi_portc_r(); @@ -220,15 +220,15 @@ class pc_noppi_mb_device : public ibm5160_mb_device uint8_t pit_out2() { return m_pit_out2; } // helper for near-clones with multifunction ics instead of 8255s - void map(address_map &map); + void map(address_map &map) ATTR_COLD; uint8_t pc_ppi_portb_r(); protected: pc_noppi_mb_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; private: uint8_t pc_ppi_porta_r(); diff --git a/src/devices/machine/gt64xxx.h b/src/devices/machine/gt64xxx.h index 9efa29e9dd2..c82a54061ca 100644 --- a/src/devices/machine/gt64xxx.h +++ b/src/devices/machine/gt64xxx.h @@ -28,7 +28,7 @@ class gt64xxx_device : public pci_host_device { void set_be(int be) { m_be = be; } void set_autoconfig(int autoconfig) { m_autoconfig = autoconfig; } void set_irq_num(int irq_num) { m_irq_num = irq_num; } - virtual void config_map(address_map &map) override; + virtual void config_map(address_map &map) override ATTR_COLD; void set_simm_size(int index, int size) { m_simm_size[index] = size; } void set_simm0_size(int size) { m_simm_size[0] = size; } void set_simm1_size(int size) { m_simm_size[1] = size; } @@ -73,8 +73,8 @@ class gt64xxx_device : public pci_host_device { address_space *m_cpu_space; virtual space_config_vector memory_space_config() const override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: @@ -119,7 +119,7 @@ class gt64xxx_device : public pci_host_device { required_memory_region m_romRegion; optional_memory_region m_updateRegion; - void cpu_map(address_map &map); + void cpu_map(address_map &map) ATTR_COLD; void map_cpu_space(); diff --git a/src/devices/machine/gt913_io.h b/src/devices/machine/gt913_io.h index 0346d701230..9619297d11c 100644 --- a/src/devices/machine/gt913_io.h +++ b/src/devices/machine/gt913_io.h @@ -45,8 +45,8 @@ class gt913_io_hle_device : public device_t void timer_check_irq(offs_t num); // device_t 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; TIMER_CALLBACK_MEMBER(irq_timer_tick); diff --git a/src/devices/machine/gt913_kbd.h b/src/devices/machine/gt913_kbd.h index 3bf2ced327e..bcb6cc4c9c9 100644 --- a/src/devices/machine/gt913_kbd.h +++ b/src/devices/machine/gt913_kbd.h @@ -31,8 +31,8 @@ class gt913_kbd_hle_device : public device_t, protected device_matrix_keyboard_i protected: // device_t 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; // device_matrix_keyboard_interface overrides virtual void key_make(uint8_t row, uint8_t column) override { key_add(row, column, 0); } diff --git a/src/devices/machine/gt913_snd.h b/src/devices/machine/gt913_snd.h index 4c5bfd4a153..de5060a16e1 100644 --- a/src/devices/machine/gt913_snd.h +++ b/src/devices/machine/gt913_snd.h @@ -34,8 +34,8 @@ class gt913_sound_device : public device_t, protected: // device_t 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; // device_sound_interface overrides virtual void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; diff --git a/src/devices/machine/hd63450.h b/src/devices/machine/hd63450.h index 8034ef784d7..46df321a9e4 100644 --- a/src/devices/machine/hd63450.h +++ b/src/devices/machine/hd63450.h @@ -68,8 +68,8 @@ class hd63450_device : public device_t 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; private: struct hd63450_regs diff --git a/src/devices/machine/hd64610.h b/src/devices/machine/hd64610.h index 9dda6ed03e5..4bd08a0f155 100644 --- a/src/devices/machine/hd64610.h +++ b/src/devices/machine/hd64610.h @@ -47,7 +47,7 @@ class hd64610_device : public device_t, protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_rtc_interface overrides virtual void rtc_clock_updated(int year, int month, int day, int day_of_week, int hour, int minute, int second) override; diff --git a/src/devices/machine/hdc92x4.h b/src/devices/machine/hdc92x4.h index 0a2ef365d7e..c8933217b4c 100644 --- a/src/devices/machine/hdc92x4.h +++ b/src/devices/machine/hdc92x4.h @@ -80,8 +80,8 @@ class hdc92x4_device : public device_t protected: hdc92x4_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, bool is_hdc9234); - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; TIMER_CALLBACK_MEMBER(gen_timer_expired); TIMER_CALLBACK_MEMBER(com_timer_expired); diff --git a/src/devices/machine/hp_dc100_tape.h b/src/devices/machine/hp_dc100_tape.h index 3792be1acb8..dcb49bb9dc1 100644 --- a/src/devices/machine/hp_dc100_tape.h +++ b/src/devices/machine/hp_dc100_tape.h @@ -101,8 +101,8 @@ class hp_dc100_tape_device : public microtape_image_device protected: // 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; TIMER_CALLBACK_MEMBER(bit_timer_tick); TIMER_CALLBACK_MEMBER(tacho_timer_tick); diff --git a/src/devices/machine/hp_taco.h b/src/devices/machine/hp_taco.h index 7c92a33618c..6135ae4a70c 100644 --- a/src/devices/machine/hp_taco.h +++ b/src/devices/machine/hp_taco.h @@ -49,9 +49,9 @@ class hp_taco_device : public device_t hp_taco_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; TIMER_CALLBACK_MEMBER(gap_timer_tick); TIMER_CALLBACK_MEMBER(evd_timer_tick); diff --git a/src/devices/machine/i2cmem.h b/src/devices/machine/i2cmem.h index f907a96d1b1..dc4bb5f7f4f 100644 --- a/src/devices/machine/i2cmem.h +++ b/src/devices/machine/i2cmem.h @@ -53,7 +53,7 @@ class i2cmem_device : i2cmem_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, int read_page_size, int write_page_size, int data_size); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_nvram_interface overrides virtual void nvram_default() override; diff --git a/src/devices/machine/i3001.h b/src/devices/machine/i3001.h index fa3368c05ce..f5ceeab827a 100644 --- a/src/devices/machine/i3001.h +++ b/src/devices/machine/i3001.h @@ -77,7 +77,7 @@ class i3001_device : public device_t void clk_w(int state); protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: device_delegate m_fo_handler; diff --git a/src/devices/machine/i3002.h b/src/devices/machine/i3002.h index 338908e3a7b..8a9e6896592 100644 --- a/src/devices/machine/i3002.h +++ b/src/devices/machine/i3002.h @@ -103,7 +103,7 @@ class i3002_device : public device_t uint8_t& get_reg(unsigned idx) { return m_reg[ idx ]; } protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: device_delegate m_co_handler; diff --git a/src/devices/machine/i6300esb.h b/src/devices/machine/i6300esb.h index a126a5c1735..f270fa8271b 100644 --- a/src/devices/machine/i6300esb.h +++ b/src/devices/machine/i6300esb.h @@ -18,11 +18,11 @@ class i6300esb_lpc_device : public pci_device { virtual void map_extra(uint64_t memory_window_start, uint64_t memory_window_end, uint64_t memory_offset, address_space *memory_space, uint64_t io_window_start, uint64_t io_window_end, uint64_t io_offset, address_space *io_space) override; - virtual void config_map(address_map &map) override; + virtual void config_map(address_map &map) override ATTR_COLD; protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: required_device acpi; @@ -30,7 +30,7 @@ class i6300esb_lpc_device : public pci_device { required_device pit; required_memory_region m_region; - void internal_io_map(address_map &map); + void internal_io_map(address_map &map) ATTR_COLD; uint32_t pmbase, gpio_base, fwh_sel1, gen_cntl, etr1, rst_cnt2, gpi_rout; uint16_t bios_cntl, pci_dma_cfg, gen1_dec, lpc_en, gen2_dec, fwh_sel2, func_dis, gen_pmcon_1; @@ -146,11 +146,11 @@ class i6300esb_watchdog_device : public pci_device { i6300esb_watchdog_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: - void map(address_map &map); + void map(address_map &map) ATTR_COLD; }; DECLARE_DEVICE_TYPE(I6300ESB_LPC, i6300esb_lpc_device) diff --git a/src/devices/machine/i7220.h b/src/devices/machine/i7220.h index a7c6a585e0e..bd5e008174a 100644 --- a/src/devices/machine/i7220.h +++ b/src/devices/machine/i7220.h @@ -65,8 +65,8 @@ class i7220_device : public device_t, protected: // 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; TIMER_CALLBACK_MEMBER(general_continue); diff --git a/src/devices/machine/i80130.h b/src/devices/machine/i80130.h index e2e0d34fe90..d63f58af770 100644 --- a/src/devices/machine/i80130.h +++ b/src/devices/machine/i80130.h @@ -27,8 +27,8 @@ class i80130_device : public device_t auto delay() { return m_write_delay.bind(); } auto baud() { return m_write_baud.bind(); } - virtual void rom_map(address_map &map); - virtual void io_map(address_map &map); + virtual void rom_map(address_map &map) ATTR_COLD; + virtual void io_map(address_map &map) ATTR_COLD; uint8_t inta_r() { return m_pic->acknowledge(); } @@ -43,11 +43,11 @@ class i80130_device : public device_t 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; // optional information overrides -// virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; +// virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: required_device m_pic; diff --git a/src/devices/machine/i8087.h b/src/devices/machine/i8087.h index be926b88a37..9f8e17b613a 100644 --- a/src/devices/machine/i8087.h +++ b/src/devices/machine/i8087.h @@ -24,8 +24,8 @@ class i8087_device : public device_t protected: i8087_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 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; TIMER_CALLBACK_MEMBER(release_busy); diff --git a/src/devices/machine/i8155.h b/src/devices/machine/i8155.h index ace27e002c9..2c7fd7ac839 100644 --- a/src/devices/machine/i8155.h +++ b/src/devices/machine/i8155.h @@ -69,8 +69,8 @@ class i8155_device : public device_t i8155_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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; private: devcb_read8 m_in_pa_cb; diff --git a/src/devices/machine/i8212.h b/src/devices/machine/i8212.h index b8992e5842e..601a55407e8 100644 --- a/src/devices/machine/i8212.h +++ b/src/devices/machine/i8212.h @@ -56,8 +56,8 @@ class i8212_device : public device_t 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; private: // helpers diff --git a/src/devices/machine/i8214.h b/src/devices/machine/i8214.h index d8514e400ef..9e42ab80f98 100644 --- a/src/devices/machine/i8214.h +++ b/src/devices/machine/i8214.h @@ -50,7 +50,7 @@ class i8214_device : public device_t protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: void trigger_interrupt(int level); diff --git a/src/devices/machine/i82355.h b/src/devices/machine/i82355.h index 8d219b36334..829b6a78cf7 100644 --- a/src/devices/machine/i82355.h +++ b/src/devices/machine/i82355.h @@ -33,8 +33,8 @@ class i82355_device : public device_t protected: // 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; private: // helpers diff --git a/src/devices/machine/i82357.h b/src/devices/machine/i82357.h index 7b15cb5c6bb..8f6f698ed28 100644 --- a/src/devices/machine/i82357.h +++ b/src/devices/machine/i82357.h @@ -25,13 +25,13 @@ class i82357_device : public device_t void in_iochk(int state); void in_parity(int state); - void map(address_map &map); + void map(address_map &map) ATTR_COLD; protected: // standard device_t overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; void nmi_reg_w(u8 data); void nmi_ext_w(u8 data); diff --git a/src/devices/machine/i82371eb_acpi.h b/src/devices/machine/i82371eb_acpi.h index 0cb3f7fb315..596cebe80b2 100644 --- a/src/devices/machine/i82371eb_acpi.h +++ b/src/devices/machine/i82371eb_acpi.h @@ -16,18 +16,18 @@ class i82371eb_acpi_device : public pci_device i82371eb_acpi_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - 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; // virtual void reset_all_mappings() override; virtual void map_extra(uint64_t memory_window_start, uint64_t memory_window_end, uint64_t memory_offset, address_space *memory_space, uint64_t io_window_start, uint64_t io_window_end, uint64_t io_offset, address_space *io_space) override; - virtual void config_map(address_map &map) override; + virtual void config_map(address_map &map) override ATTR_COLD; - void io_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; private: required_device m_acpi; diff --git a/src/devices/machine/i82371eb_isa.h b/src/devices/machine/i82371eb_isa.h index 56b9412051b..baabb8307aa 100644 --- a/src/devices/machine/i82371eb_isa.h +++ b/src/devices/machine/i82371eb_isa.h @@ -21,7 +21,7 @@ class i82371eb_isa_device : public i82371sb_isa_device i82371eb_isa_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); private: - virtual void config_map(address_map &map) override; + virtual void config_map(address_map &map) override ATTR_COLD; }; DECLARE_DEVICE_TYPE(I82371EB_ISA, i82371eb_isa_device) diff --git a/src/devices/machine/i82371eb_usb.h b/src/devices/machine/i82371eb_usb.h index ea27406d93b..a73499da0d6 100644 --- a/src/devices/machine/i82371eb_usb.h +++ b/src/devices/machine/i82371eb_usb.h @@ -14,18 +14,18 @@ class i82371eb_usb_device : public pci_device i82371eb_usb_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - 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; // virtual void reset_all_mappings() override; virtual void map_extra(uint64_t memory_window_start, uint64_t memory_window_end, uint64_t memory_offset, address_space *memory_space, uint64_t io_window_start, uint64_t io_window_end, uint64_t io_offset, address_space *io_space) override; - virtual void config_map(address_map &map) override; + virtual void config_map(address_map &map) override ATTR_COLD; - void io_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; private: u8 unmap_log_r(offs_t offset); diff --git a/src/devices/machine/i82371sb.h b/src/devices/machine/i82371sb.h index 0166a9354e2..df1372fde1e 100644 --- a/src/devices/machine/i82371sb.h +++ b/src/devices/machine/i82371sb.h @@ -70,8 +70,8 @@ class i82371sb_isa_device : public pci_device virtual void device_add_mconfig(machine_config & config) override; virtual void device_config_complete() override; - 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 reset_all_mappings() override; virtual void map_extra(uint64_t memory_window_start, uint64_t memory_window_end, uint64_t memory_offset, address_space *memory_space, @@ -79,7 +79,7 @@ class i82371sb_isa_device : public pci_device virtual bool map_first() const override { return true; } - virtual void config_map(address_map &map) override; + virtual void config_map(address_map &map) override ATTR_COLD; private: void at_pit8254_out0_changed(int state); @@ -115,7 +115,7 @@ class i82371sb_isa_device : public pci_device void pc_dma_write_word(offs_t offset, uint8_t data); uint8_t get_slave_ack(offs_t offset); - void internal_io_map(address_map &map); + void internal_io_map(address_map &map) ATTR_COLD; void boot_state_w(uint8_t data); void nop_w(uint8_t data); @@ -242,16 +242,16 @@ class i82371sb_ide_device : public pci_device protected: i82371sb_ide_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual void device_config_complete() override; - 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 reset_all_mappings() override; virtual void map_extra(uint64_t memory_window_start, uint64_t memory_window_end, uint64_t memory_offset, address_space *memory_space, uint64_t io_window_start, uint64_t io_window_end, uint64_t io_offset, address_space *io_space) override; - virtual void config_map(address_map &map) override; + virtual void config_map(address_map &map) override ATTR_COLD; void primary_int(int state); void secondary_int(int state); @@ -278,7 +278,7 @@ class i82371sb_ide_device : public pci_device uint8_t ide2_read_cs1_r(); void ide2_write_cs1_w(uint8_t data); - void internal_io_map(address_map &map); + void internal_io_map(address_map &map) ATTR_COLD; uint8_t latency_timer; uint32_t bmiba; diff --git a/src/devices/machine/i8243.h b/src/devices/machine/i8243.h index 9547abb14cb..114ec93c420 100644 --- a/src/devices/machine/i8243.h +++ b/src/devices/machine/i8243.h @@ -52,7 +52,7 @@ class i8243_device : public device_t protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: void output_update(int which); diff --git a/src/devices/machine/i82439hx.h b/src/devices/machine/i82439hx.h index 3356b44b12f..02426851eeb 100644 --- a/src/devices/machine/i82439hx.h +++ b/src/devices/machine/i82439hx.h @@ -28,15 +28,15 @@ class i82439hx_host_device : public pci_host_device { protected: i82439hx_host_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 void reset_all_mappings() override; virtual void map_extra(uint64_t memory_window_start, uint64_t memory_window_end, uint64_t memory_offset, address_space *memory_space, uint64_t io_window_start, uint64_t io_window_end, uint64_t io_offset, address_space *io_space) override; - virtual void config_map(address_map &map) override; + virtual void config_map(address_map &map) override ATTR_COLD; virtual std::tuple read_memory_holes(); diff --git a/src/devices/machine/i82439tx.h b/src/devices/machine/i82439tx.h index a2a9528b1dd..c0462dfce15 100644 --- a/src/devices/machine/i82439tx.h +++ b/src/devices/machine/i82439tx.h @@ -25,15 +25,15 @@ class i82439tx_host_device : public pci_host_device { void set_ram_size(int ram_size); protected: - 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 reset_all_mappings() override; virtual void map_extra(uint64_t memory_window_start, uint64_t memory_window_end, uint64_t memory_offset, address_space *memory_space, uint64_t io_window_start, uint64_t io_window_end, uint64_t io_offset, address_space *io_space) override; - virtual void config_map(address_map &map) override; + virtual void config_map(address_map &map) override ATTR_COLD; private: int ram_size; diff --git a/src/devices/machine/i82443bx_host.h b/src/devices/machine/i82443bx_host.h index d4848985d88..5377cccbcd6 100644 --- a/src/devices/machine/i82443bx_host.h +++ b/src/devices/machine/i82443bx_host.h @@ -24,12 +24,12 @@ class i82443bx_host_device : public i82439hx_host_device protected: i82443bx_host_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); - virtual void config_map(address_map &map) override; + virtual void config_map(address_map &map) override ATTR_COLD; - 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 apbase_map(address_map &map); + virtual void apbase_map(address_map &map) ATTR_COLD; virtual u8 capptr_r() override; @@ -77,8 +77,8 @@ class i82443bx_bridge_device : public pci_bridge_device protected: i82443bx_bridge_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 void map_extra(uint64_t memory_window_start, uint64_t memory_window_end, uint64_t memory_offset, address_space *memory_space, uint64_t io_window_start, uint64_t io_window_end, uint64_t io_offset, address_space *io_space) override; diff --git a/src/devices/machine/i8251.h b/src/devices/machine/i8251.h index 127b5ad2629..0f723309c92 100644 --- a/src/devices/machine/i8251.h +++ b/src/devices/machine/i8251.h @@ -66,8 +66,8 @@ class i8251_device : public device_t, public device_serial_interface 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; void command_w(uint8_t data); void mode_w(uint8_t data); @@ -158,8 +158,8 @@ class v5x_scu_device : public i8251_device protected: // 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; // TODO: currently unimplemented interrupt masking u8 simk_r() { return m_simk; } diff --git a/src/devices/machine/i82541.h b/src/devices/machine/i82541.h index 1614bf0b01c..9840afed556 100644 --- a/src/devices/machine/i82541.h +++ b/src/devices/machine/i82541.h @@ -17,13 +17,13 @@ class i82541_device : public pci_device { i82541_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: - void registers_map(address_map &map); - void flash_map(address_map &map); - void registers_io_map(address_map &map); + void registers_map(address_map &map) ATTR_COLD; + void flash_map(address_map &map) ATTR_COLD; + void registers_io_map(address_map &map) ATTR_COLD; }; DECLARE_DEVICE_TYPE(I82541, i82541_device) diff --git a/src/devices/machine/i8255.h b/src/devices/machine/i8255.h index 49951af0af9..fc01e952d86 100644 --- a/src/devices/machine/i8255.h +++ b/src/devices/machine/i8255.h @@ -76,8 +76,8 @@ class i8255_device : public device_t i8255_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, bool is_ams40489); // 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; const bool m_force_portb_in; const bool m_force_portc_out; diff --git a/src/devices/machine/i8257.h b/src/devices/machine/i8257.h index df1f74a4858..ba70deca369 100644 --- a/src/devices/machine/i8257.h +++ b/src/devices/machine/i8257.h @@ -64,8 +64,8 @@ class i8257_device : public device_t, public device_execute_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 execute_run() override; int m_icount; diff --git a/src/devices/machine/i82586.h b/src/devices/machine/i82586.h index 9fce2c70b6d..4239daf9ff1 100644 --- a/src/devices/machine/i82586.h +++ b/src/devices/machine/i82586.h @@ -166,8 +166,8 @@ class i82586_base_device : i82586_base_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, endianness_t endian, u8 datawidth, u8 addrwidth); // standard device_* 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 space_config_vector memory_space_config() const override; @@ -268,8 +268,8 @@ class i82586_device : public i82586_base_device protected: // standard device_* 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; // setup and scb virtual void initialise() override; @@ -327,8 +327,8 @@ class i82596_device : public i82586_base_device i82596_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, endianness_t endian, u8 datawidth); // standard device_* 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; // setup and scb virtual void initialise() override; diff --git a/src/devices/machine/i8271.h b/src/devices/machine/i8271.h index 92880af57d4..47b50b442d4 100644 --- a/src/devices/machine/i8271.h +++ b/src/devices/machine/i8271.h @@ -39,11 +39,11 @@ class i8271_device : public device_t void set_floppies(floppy_connector* f0, floppy_connector* f1); void soft_reset(); - void map(address_map &map); + void map(address_map &map) ATTR_COLD; protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; TIMER_CALLBACK_MEMBER(floppy_tick); diff --git a/src/devices/machine/i8279.h b/src/devices/machine/i8279.h index 8be33fbb4d0..25cd032bdf2 100644 --- a/src/devices/machine/i8279.h +++ b/src/devices/machine/i8279.h @@ -60,8 +60,8 @@ class i8279_device : public device_t protected: // 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; TIMER_CALLBACK_MEMBER( timerproc_callback ); diff --git a/src/devices/machine/i82875p.h b/src/devices/machine/i82875p.h index ecd252b35ef..167d4066d13 100644 --- a/src/devices/machine/i82875p.h +++ b/src/devices/machine/i82875p.h @@ -28,18 +28,18 @@ class i82875p_host_device : public pci_host_device { virtual uint8_t capptr_r() override; protected: - 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 reset_all_mappings() override; virtual void map_extra(uint64_t memory_window_start, uint64_t memory_window_end, uint64_t memory_offset, address_space *memory_space, uint64_t io_window_start, uint64_t io_window_end, uint64_t io_offset, address_space *io_space) override; - virtual void config_map(address_map &map) override; + virtual void config_map(address_map &map) override ATTR_COLD; private: - void agp_translation_map(address_map &map); + void agp_translation_map(address_map &map) ATTR_COLD; int ram_size; required_device cpu; @@ -100,8 +100,8 @@ class i82875p_agp_device : public agp_bridge_device { i82875p_agp_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; }; class i82875p_overflow_device : public pci_device { @@ -124,11 +124,11 @@ class i82875p_overflow_device : public pci_device { void dram_controller_mode_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: - void overflow_map(address_map &map); + void overflow_map(address_map &map) ATTR_COLD; uint8_t dram_row_boundary[8], dram_row_attribute[4]; uint32_t dram_timing, dram_controller_mode; diff --git a/src/devices/machine/i8291a.h b/src/devices/machine/i8291a.h index 2d048d806aa..f3ca7a392c7 100644 --- a/src/devices/machine/i8291a.h +++ b/src/devices/machine/i8291a.h @@ -64,7 +64,7 @@ class i8291a_device : public device_t uint8_t cpt_r(); uint8_t addr0_r(); uint8_t addr1_r(); - void map(address_map &map); + void map(address_map &map) ATTR_COLD; private: @@ -89,8 +89,8 @@ class i8291a_device : public device_t // 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; void update_int(); void handle_command(); diff --git a/src/devices/machine/i8355.h b/src/devices/machine/i8355.h index e9205a86a9d..fb48b86ee9c 100644 --- a/src/devices/machine/i8355.h +++ b/src/devices/machine/i8355.h @@ -52,8 +52,8 @@ class i8355_device : public device_t 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; inline uint8_t read_port(int port); inline void write_port(int port, uint8_t data); diff --git a/src/devices/machine/ibm21s850.h b/src/devices/machine/ibm21s850.h index dde6cf59a4d..1d8b7ceb10b 100644 --- a/src/devices/machine/ibm21s850.h +++ b/src/devices/machine/ibm21s850.h @@ -28,8 +28,8 @@ class ibm21s85x_base_device : public device_t ibm21s85x_base_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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; TIMER_CALLBACK_MEMBER(reset_tick); @@ -146,7 +146,7 @@ class ibm21s850_device : public ibm21s85x_base_device ibm21s850_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); private: - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; enum : uint32_t { @@ -164,7 +164,7 @@ class ibm21s851_device : public ibm21s85x_base_device ibm21s851_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); private: - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; enum : uint32_t { diff --git a/src/devices/machine/icd2061a.h b/src/devices/machine/icd2061a.h index 2308d2e9288..25e8b89889d 100644 --- a/src/devices/machine/icd2061a.h +++ b/src/devices/machine/icd2061a.h @@ -32,7 +32,7 @@ class icd2061a_device : public device_t void clk_w(int state); protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: enum : uint8_t { diff --git a/src/devices/machine/icm7170.h b/src/devices/machine/icm7170.h index 2fef930fa04..86f2ac2252a 100644 --- a/src/devices/machine/icm7170.h +++ b/src/devices/machine/icm7170.h @@ -59,8 +59,8 @@ class icm7170_device : public device_t, 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; // device_rtc_interface overrides virtual void rtc_clock_updated(int year, int month, int day, int day_of_week, int hour, int minute, int second) override; diff --git a/src/devices/machine/idectrl.h b/src/devices/machine/idectrl.h index bcca567e39a..21b129d7320 100644 --- a/src/devices/machine/idectrl.h +++ b/src/devices/machine/idectrl.h @@ -133,7 +133,7 @@ class bus_master_ide_controller_device : public ide_controller_32_device void bmdma_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0); protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void set_irq(int state) override; virtual void set_dmarq(int state) override; diff --git a/src/devices/machine/ie15.h b/src/devices/machine/ie15.h index eb82cada227..feeaadc86a0 100644 --- a/src/devices/machine/ie15.h +++ b/src/devices/machine/ie15.h @@ -53,12 +53,12 @@ class ie15_device : public device_t, public device_serial_interface protected: ie15_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 void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; - virtual const tiny_rom_entry *device_rom_region() const override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; TIMER_CALLBACK_MEMBER(hblank_onoff_tick); @@ -100,8 +100,8 @@ class ie15_device : public device_t, public device_serial_interface void serial_speed_w(uint8_t data); TIMER_CALLBACK_MEMBER(ie15_beepoff); - void ie15_io(address_map &map); - void ie15_mem(address_map &map); + void ie15_io(address_map &map) ATTR_COLD; + void ie15_mem(address_map &map) ATTR_COLD; std::unique_ptr m_tmpbmp; diff --git a/src/devices/machine/ie15_kbd.h b/src/devices/machine/ie15_kbd.h index f8ff57e963e..e788ab992e1 100644 --- a/src/devices/machine/ie15_kbd.h +++ b/src/devices/machine/ie15_kbd.h @@ -43,10 +43,10 @@ class ie15_keyboard_device : public device_t, protected device_matrix_keyboard_ protected: ie15_keyboard_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 ioport_constructor device_input_ports() const 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 ioport_constructor device_input_ports() const override ATTR_COLD; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; virtual void key_make(uint8_t row, uint8_t column) override; required_ioport m_io_kbdc; diff --git a/src/devices/machine/im6402.h b/src/devices/machine/im6402.h index b7918abcfcb..41d79f26d8b 100644 --- a/src/devices/machine/im6402.h +++ b/src/devices/machine/im6402.h @@ -90,8 +90,8 @@ class im6402_device : public device_t, public device_serial_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; // device_serial_interface overrides virtual void tra_callback() override; diff --git a/src/devices/machine/input_merger.h b/src/devices/machine/input_merger.h index 590b79c98e3..053118f72e3 100644 --- a/src/devices/machine/input_merger.h +++ b/src/devices/machine/input_merger.h @@ -42,7 +42,7 @@ class input_merger_device : public device_t int active); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; TIMER_CALLBACK_MEMBER(update_state); diff --git a/src/devices/machine/ins8154.h b/src/devices/machine/ins8154.h index b4013c0876d..981494211ee 100644 --- a/src/devices/machine/ins8154.h +++ b/src/devices/machine/ins8154.h @@ -57,8 +57,8 @@ class ins8154_device : public device_t 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 device_post_load() override { } virtual void device_clock_changed() override { } diff --git a/src/devices/machine/ins8250.h b/src/devices/machine/ins8250.h index 8cfff435ae8..71a6e7f0c83 100644 --- a/src/devices/machine/ins8250.h +++ b/src/devices/machine/ins8250.h @@ -48,8 +48,8 @@ class ins8250_uart_device : public device_t, public device_serial_interface ins8250_uart_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, dev_type device_type); - 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 rcv_complete() override; virtual void tra_complete() override; virtual void tra_callback() override; @@ -115,8 +115,8 @@ class ns16550_device : public ins8250_uart_device public: ns16550_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); protected: - 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 rcv_complete() override; virtual void tra_complete() override; @@ -145,7 +145,7 @@ class pc16552_device : public device_t void write(offs_t offset, u8 data) { ((offset & 8) ? m_chan1 : m_chan0)->ins8250_w(offset & 7, data); } protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: ns16550_device *m_chan0; diff --git a/src/devices/machine/intelfsh.h b/src/devices/machine/intelfsh.h index c28a3b586ac..f525c6327b8 100644 --- a/src/devices/machine/intelfsh.h +++ b/src/devices/machine/intelfsh.h @@ -22,7 +22,7 @@ class intelfsh_device : public device_t, intelfsh_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, uint8_t bits, uint32_t size, uint8_t maker_id, uint16_t device_id); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_nvram_interface overrides virtual void nvram_default() override; diff --git a/src/devices/machine/iopcdvd.h b/src/devices/machine/iopcdvd.h index 194933eb3d9..66fa78c56a3 100644 --- a/src/devices/machine/iopcdvd.h +++ b/src/devices/machine/iopcdvd.h @@ -33,8 +33,8 @@ class iop_cdvd_device : public device_t void write(offs_t offset, uint8_t data); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; void handle_data_command(uint8_t data); void data_fifo_push(uint8_t data); diff --git a/src/devices/machine/iopdma.h b/src/devices/machine/iopdma.h index 2e84ec44aaa..69de0529c92 100644 --- a/src/devices/machine/iopdma.h +++ b/src/devices/machine/iopdma.h @@ -127,8 +127,8 @@ class iop_dma_device : public device_t, public device_execute_interface uint32_t m_count; }; - 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 execute_run() override; void set_dpcr(uint32_t data, uint32_t index); diff --git a/src/devices/machine/iopintc.h b/src/devices/machine/iopintc.h index 5ead2c505fe..aff472f950a 100644 --- a/src/devices/machine/iopintc.h +++ b/src/devices/machine/iopintc.h @@ -45,8 +45,8 @@ class iop_intc_device : public device_t }; protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; void update_interrupts(); diff --git a/src/devices/machine/iopsio2.h b/src/devices/machine/iopsio2.h index 67fc395b6f3..0de66cf37c0 100644 --- a/src/devices/machine/iopsio2.h +++ b/src/devices/machine/iopsio2.h @@ -43,8 +43,8 @@ class iop_sio2_device : public device_t void receive_from_device_hack(uint8_t data); // TODO: Turn me into a bus interface! protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; TIMER_CALLBACK_MEMBER(response_timer); diff --git a/src/devices/machine/ioptimer.h b/src/devices/machine/ioptimer.h index a7c4891b9dc..ca70fc35527 100644 --- a/src/devices/machine/ioptimer.h +++ b/src/devices/machine/ioptimer.h @@ -47,8 +47,8 @@ class iop_timer_device : public device_t GATM_BOTH }; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; TIMER_CALLBACK_MEMBER(compare); TIMER_CALLBACK_MEMBER(overflow); diff --git a/src/devices/machine/it8705f.h b/src/devices/machine/it8705f.h index 810d75c0258..b5f9ec26291 100644 --- a/src/devices/machine/it8705f.h +++ b/src/devices/machine/it8705f.h @@ -48,11 +48,11 @@ class it8705f_device : public device_t, static void floppy_formats(format_registration &fr); protected: - 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 space_config_vector memory_space_config() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: const address_space_config m_space_config; @@ -81,7 +81,7 @@ class it8705f_device : public device_t, uint8_t read(offs_t offset); void write(offs_t offset, u8 data); - void config_map(address_map &map); + void config_map(address_map &map) ATTR_COLD; void logical_device_select_w(offs_t offset, u8 data); template u8 activate_r(offs_t offset); diff --git a/src/devices/machine/iwm.h b/src/devices/machine/iwm.h index 73045890d0d..62ca7103e0d 100644 --- a/src/devices/machine/iwm.h +++ b/src/devices/machine/iwm.h @@ -35,8 +35,8 @@ class iwm_device: public applefdintf_device virtual void sync() override; protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; TIMER_CALLBACK_MEMBER(update_timer_tick); diff --git a/src/devices/machine/jvsdev.h b/src/devices/machine/jvsdev.h index f7dba299c97..410407b501c 100644 --- a/src/devices/machine/jvsdev.h +++ b/src/devices/machine/jvsdev.h @@ -22,8 +22,8 @@ class jvs_device : public device_t jvs_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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; // JVS device overrides virtual const char *device_id(); diff --git a/src/devices/machine/jvshost.h b/src/devices/machine/jvshost.h index c0f8429a1a3..40a75009e22 100644 --- a/src/devices/machine/jvshost.h +++ b/src/devices/machine/jvshost.h @@ -16,8 +16,8 @@ class jvs_host : public device_t { jvs_host(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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; void push(uint8_t val); void commit_raw(); diff --git a/src/devices/machine/k033906.h b/src/devices/machine/k033906.h index 68b1e171ece..7c99f651b53 100644 --- a/src/devices/machine/k033906.h +++ b/src/devices/machine/k033906.h @@ -34,7 +34,7 @@ class k033906_device : public device_t protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void device_reset() override { } virtual void device_post_load() override { } virtual void device_clock_changed() override { } diff --git a/src/devices/machine/k053252.h b/src/devices/machine/k053252.h index fec683df1da..83e27f1c1be 100644 --- a/src/devices/machine/k053252.h +++ b/src/devices/machine/k053252.h @@ -30,8 +30,8 @@ class k053252_device : public device_t, public device_video_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 device_clock_changed() override { reset_internal_state(); } void reset_internal_state(); diff --git a/src/devices/machine/k054321.h b/src/devices/machine/k054321.h index 6c66659372d..9fba2f93c18 100644 --- a/src/devices/machine/k054321.h +++ b/src/devices/machine/k054321.h @@ -21,13 +21,13 @@ class k054321_device : public device_t k054321_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - void main_map(address_map &map); - void sound_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; protected: - void device_start() override; - void device_reset() override; - virtual void device_add_mconfig(machine_config &config) override; + void device_start() override ATTR_COLD; + void device_reset() override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: required_device m_left; diff --git a/src/devices/machine/k056230.h b/src/devices/machine/k056230.h index fbed55eebda..35e847aae2a 100644 --- a/src/devices/machine/k056230.h +++ b/src/devices/machine/k056230.h @@ -22,14 +22,14 @@ class k056230_device : public device_t u32 ram_r(offs_t offset, u32 mem_mask = ~0); void ram_w(offs_t offset, u32 data, u32 mem_mask = ~0); - virtual void regs_map(address_map &map); + virtual void regs_map(address_map &map) ATTR_COLD; protected: k056230_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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; memory_share_creator m_ram; @@ -45,10 +45,10 @@ class k056230_viper_device : public k056230_device // construction/destruction k056230_viper_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock = 0); - virtual void regs_map(address_map &map) override; + virtual void regs_map(address_map &map) override ATTR_COLD; protected: - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; private: u8 m_control = 0; diff --git a/src/devices/machine/kb3600.h b/src/devices/machine/kb3600.h index c65bbea3a6f..819149b82b9 100644 --- a/src/devices/machine/kb3600.h +++ b/src/devices/machine/kb3600.h @@ -81,8 +81,8 @@ class ay3600_device : public device_t 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; TIMER_CALLBACK_MEMBER(perform_scan); diff --git a/src/devices/machine/keyboard.h b/src/devices/machine/keyboard.h index 7b1cad9d817..7741c7cf398 100644 --- a/src/devices/machine/keyboard.h +++ b/src/devices/machine/keyboard.h @@ -86,7 +86,7 @@ class generic_keyboard_device : public device_t, protected device_matrix_keyboar m_keyboard_cb.set(std::forward(args)...); } - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; protected: generic_keyboard_device( @@ -95,8 +95,8 @@ class generic_keyboard_device : public device_t, protected device_matrix_keyboar char const *tag, device_t *owner, u32 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 void key_make(u8 row, u8 column) override; virtual void key_repeat(u8 row, u8 column) override; virtual void send_key(u8 code); diff --git a/src/devices/machine/keytronic_l2207.h b/src/devices/machine/keytronic_l2207.h index bad5c635fc6..b0d2abc94a0 100644 --- a/src/devices/machine/keytronic_l2207.h +++ b/src/devices/machine/keytronic_l2207.h @@ -37,11 +37,11 @@ class keytronic_l2207_device : public device_t protected: // device-level overrides - virtual void device_resolve_objects() override; - virtual void device_start() override; - virtual ioport_constructor device_input_ports() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual const tiny_rom_entry *device_rom_region() const override; + virtual void device_resolve_objects() override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual ioport_constructor device_input_ports() const 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; private: // MCU handlers @@ -50,8 +50,8 @@ class keytronic_l2207_device : public device_t void p2_w(u8 data); // address maps - void prog_map(address_map &map); - void ext_map(address_map &map); + void prog_map(address_map &map) ATTR_COLD; + void ext_map(address_map &map) ATTR_COLD; // object finders required_device m_mcu; diff --git a/src/devices/machine/kr1601rr1.h b/src/devices/machine/kr1601rr1.h index 49837e42c32..59dd42d5301 100644 --- a/src/devices/machine/kr1601rr1.h +++ b/src/devices/machine/kr1601rr1.h @@ -50,8 +50,8 @@ class kr1601rr1_device : public device_t, public device_nvram_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; // device_nvram_interface overrides virtual void nvram_default() override; diff --git a/src/devices/machine/kr2376.h b/src/devices/machine/kr2376.h index 2345ade8c5e..a6c3048eb14 100644 --- a/src/devices/machine/kr2376.h +++ b/src/devices/machine/kr2376.h @@ -70,7 +70,7 @@ class kr2376_device : public device_t protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual uint8_t key_codes(int mode, int x, int y) { return 0x00; } TIMER_CALLBACK_MEMBER(perform_scan); diff --git a/src/devices/machine/laserdsc.h b/src/devices/machine/laserdsc.h index b66029d7ee5..6bd2f8299d9 100644 --- a/src/devices/machine/laserdsc.h +++ b/src/devices/machine/laserdsc.h @@ -208,9 +208,9 @@ class laserdisc_device : public device_t, virtual void player_overlay(bitmap_yuy16 &bitmap) = 0; // device-level overrides - virtual void device_start() override; - virtual void device_stop() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_stop() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; virtual void device_validity_check(validity_checker &valid) const override; // device_sound_interface overrides diff --git a/src/devices/machine/latch8.h b/src/devices/machine/latch8.h index ece626422ae..b8655d07dc1 100644 --- a/src/devices/machine/latch8.h +++ b/src/devices/machine/latch8.h @@ -81,8 +81,8 @@ class latch8_device : public device_t 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 device_validity_check(validity_checker &valid) const override; TIMER_CALLBACK_MEMBER( timerproc ); diff --git a/src/devices/machine/lc89510.h b/src/devices/machine/lc89510.h index 4282654136c..62c45641b49 100644 --- a/src/devices/machine/lc89510.h +++ b/src/devices/machine/lc89510.h @@ -11,8 +11,8 @@ class lc89510_device : public device_t lc89510_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; }; diff --git a/src/devices/machine/ldp1000.h b/src/devices/machine/ldp1000.h index 2fd79a6a6fc..d48e4e0b2c2 100644 --- a/src/devices/machine/ldp1000.h +++ b/src/devices/machine/ldp1000.h @@ -36,9 +36,9 @@ class sony_ldp1000_device : public laserdisc_device protected: // device-level overrides virtual void device_validity_check(validity_checker &valid) const override; - virtual void device_start() override; - virtual void device_reset() 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 const tiny_rom_entry *device_rom_region() const override ATTR_COLD; virtual void player_vsync(const vbi_metadata &vbi, int fieldnum, const attotime &curtime) override; virtual int32_t player_update(const vbi_metadata &vbi, int fieldnum, const attotime &curtime) override; diff --git a/src/devices/machine/ldp1450.h b/src/devices/machine/ldp1450.h index 67a429845e1..431073f43fc 100644 --- a/src/devices/machine/ldp1450.h +++ b/src/devices/machine/ldp1450.h @@ -36,9 +36,9 @@ class sony_ldp1450_device : public laserdisc_device protected: // device-level overrides virtual void device_validity_check(validity_checker &valid) const override; - virtual void device_start() override; - virtual void device_reset() 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 const tiny_rom_entry *device_rom_region() const override ATTR_COLD; virtual void player_vsync(const vbi_metadata &vbi, int fieldnum, const attotime &curtime) override; virtual int32_t player_update(const vbi_metadata &vbi, int fieldnum, const attotime &curtime) override; diff --git a/src/devices/machine/ldp1450hle.h b/src/devices/machine/ldp1450hle.h index 91da6283039..06ccd9b5415 100644 --- a/src/devices/machine/ldp1450hle.h +++ b/src/devices/machine/ldp1450hle.h @@ -44,8 +44,8 @@ class sony_ldp1450hle_device : public laserdisc_device, public device_serial_int protected: // 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; // laserdisc_device implementation virtual void player_vsync(const vbi_metadata &vbi, int fieldnum, const attotime &curtime) override; diff --git a/src/devices/machine/ldpr8210.h b/src/devices/machine/ldpr8210.h index 4bc4615c03c..7443a48bf39 100644 --- a/src/devices/machine/ldpr8210.h +++ b/src/devices/machine/ldpr8210.h @@ -47,10 +47,10 @@ class pioneer_pr8210_device : public laserdisc_device pioneer_pr8210_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // device-level overrides - 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; // subclass overrides virtual void player_vsync(const vbi_metadata &vbi, int fieldnum, const attotime &curtime) override; @@ -129,7 +129,7 @@ class pioneer_pr8210_device : public laserdisc_device uint8_t m_i8049_port2; // 8049 port 2 state private: - void pr8210_portmap(address_map &map); + void pr8210_portmap(address_map &map) ATTR_COLD; }; @@ -154,10 +154,10 @@ class simutrek_special_device : public pioneer_pr8210_device virtual void player_vsync(const vbi_metadata &vbi, int fieldnum, const attotime &curtime) override; // device-level overrides - 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; // internal helpers virtual bool override_control() const override { return m_controlthis; } @@ -173,7 +173,7 @@ class simutrek_special_device : public pioneer_pr8210_device void i8748_port2_w(uint8_t data); int i8748_t0_r(); - void simutrek_portmap(address_map &map); + void simutrek_portmap(address_map &map) ATTR_COLD; // internal state required_device m_i8748_cpu; diff --git a/src/devices/machine/ldv1000.h b/src/devices/machine/ldv1000.h index 7c4fb58425a..7b0167693ba 100644 --- a/src/devices/machine/ldv1000.h +++ b/src/devices/machine/ldv1000.h @@ -52,10 +52,10 @@ class pioneer_ldv1000_device : public parallel_laserdisc_device protected: // device-level overrides - 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; // subclass overrides virtual void player_vsync(const vbi_metadata &vbi, int fieldnum, const attotime &curtime) override; @@ -88,8 +88,8 @@ class pioneer_ldv1000_device : public parallel_laserdisc_device void ppi1_portb_w(uint8_t data); void ppi1_portc_w(uint8_t data); - void ldv1000_map(address_map &map); - void ldv1000_portmap(address_map &map); + void ldv1000_map(address_map &map) ATTR_COLD; + void ldv1000_portmap(address_map &map) ATTR_COLD; // internal state required_device m_z80_cpu; /* CPU index of the Z80 */ diff --git a/src/devices/machine/ldv1000hle.h b/src/devices/machine/ldv1000hle.h index 8484e27825b..2a1fe694b1b 100644 --- a/src/devices/machine/ldv1000hle.h +++ b/src/devices/machine/ldv1000hle.h @@ -43,8 +43,8 @@ class pioneer_ldv1000hle_device : public parallel_laserdisc_device 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; // laserdisc overrides virtual void player_vsync(const vbi_metadata &vbi, int fieldnum, const attotime &curtime) override; diff --git a/src/devices/machine/ldv4200hle.h b/src/devices/machine/ldv4200hle.h index 3c282667010..e7826a20ec9 100644 --- a/src/devices/machine/ldv4200hle.h +++ b/src/devices/machine/ldv4200hle.h @@ -52,8 +52,8 @@ class pioneer_ldv4200hle_device : public laserdisc_device, public device_serial_ 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; // laserdisc overrides virtual void player_vsync(const vbi_metadata &vbi, int fieldnum, const attotime &curtime) override; diff --git a/src/devices/machine/ldvp931.h b/src/devices/machine/ldvp931.h index cffc81cc9dc..808aa24b1e7 100644 --- a/src/devices/machine/ldvp931.h +++ b/src/devices/machine/ldvp931.h @@ -54,10 +54,10 @@ class philips_22vp931_device : public laserdisc_device protected: // device-level overrides - 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; // subclass overrides virtual void player_vsync(const vbi_metadata &vbi, int fieldnum, const attotime &curtime) override; @@ -88,7 +88,7 @@ class philips_22vp931_device : public laserdisc_device int i8049_t0_r(); int i8049_t1_r(); - void vp931_portmap(address_map &map); + void vp931_portmap(address_map &map) ATTR_COLD; // internal state required_device m_i8049_cpu; // CPU index of the 8049 diff --git a/src/devices/machine/legscsi.h b/src/devices/machine/legscsi.h index 229580bc0bf..61ec30b6fb6 100644 --- a/src/devices/machine/legscsi.h +++ b/src/devices/machine/legscsi.h @@ -16,7 +16,7 @@ class legacy_scsi_host_adapter : public device_t protected: legacy_scsi_host_adapter(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; void reset_bus(); bool select(int id); diff --git a/src/devices/machine/lh5810.h b/src/devices/machine/lh5810.h index a383d0047eb..ecea2bf191a 100644 --- a/src/devices/machine/lh5810.h +++ b/src/devices/machine/lh5810.h @@ -29,8 +29,8 @@ class lh5810_device : public device_t 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; private: diff --git a/src/devices/machine/locomo.h b/src/devices/machine/locomo.h index ac240959d9f..52f7ad69355 100644 --- a/src/devices/machine/locomo.h +++ b/src/devices/machine/locomo.h @@ -20,8 +20,8 @@ class locomo_device : public device_t void write(offs_t offset, uint32_t data, uint32_t mem_mask = ~0U); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; uint16_t m_kbd_cmd; uint16_t m_kbd_row; diff --git a/src/devices/machine/lpc-acpi.h b/src/devices/machine/lpc-acpi.h index 1cd64636a10..7e800543b59 100644 --- a/src/devices/machine/lpc-acpi.h +++ b/src/devices/machine/lpc-acpi.h @@ -15,8 +15,8 @@ class lpc_acpi_device : public lpc_device { uint64_t io_window_start, uint64_t io_window_end, uint64_t io_offset, address_space *io_space) override; protected: - void device_start() override; - void device_reset() override; + void device_start() override ATTR_COLD; + void device_reset() override ATTR_COLD; private: uint32_t pm1_cnt, proc_cnt, gpe0_sts, gpe0_en, smi_en, smi_sts; @@ -25,7 +25,7 @@ class lpc_acpi_device : public lpc_device { uint8_t tco_rld, tco_tmr, tco_dat_in, tco_dat_out, tco_message1, tco_message2; uint8_t tco_wdstatus, sw_irq_gen; - void map(address_map &map); + void map(address_map &map) ATTR_COLD; uint16_t pm1_sts_r(); void pm1_sts_w(uint16_t data); diff --git a/src/devices/machine/lpc-pit.h b/src/devices/machine/lpc-pit.h index aa83b6af5ce..2d45bad7129 100644 --- a/src/devices/machine/lpc-pit.h +++ b/src/devices/machine/lpc-pit.h @@ -15,11 +15,11 @@ class lpc_pit_device : public lpc_device { uint64_t io_window_start, uint64_t io_window_end, uint64_t io_offset, address_space *io_space) override; protected: - void device_start() override; - void device_reset() override; + void device_start() override ATTR_COLD; + void device_reset() override ATTR_COLD; private: - void map(address_map &map); + void map(address_map &map) ATTR_COLD; uint8_t status_r(offs_t offset); void access_w(offs_t offset, uint8_t data); diff --git a/src/devices/machine/lpc-rtc.h b/src/devices/machine/lpc-rtc.h index 5243bcf7f8a..f88b1f4ed40 100644 --- a/src/devices/machine/lpc-rtc.h +++ b/src/devices/machine/lpc-rtc.h @@ -18,12 +18,12 @@ class lpc_rtc_device : public lpc_device { uint64_t io_window_start, uint64_t io_window_end, uint64_t io_offset, address_space *io_space); protected: - void device_start() override; - void device_reset() override; + void device_start() override ATTR_COLD; + void device_reset() override ATTR_COLD; private: - void map(address_map &map); - void extmap(address_map &map); + void map(address_map &map) ATTR_COLD; + void extmap(address_map &map) ATTR_COLD; uint8_t cur_index, cur_extindex; uint8_t ram[256]; diff --git a/src/devices/machine/lpci.h b/src/devices/machine/lpci.h index fb289d5538f..ef300c47c1e 100644 --- a/src/devices/machine/lpci.h +++ b/src/devices/machine/lpci.h @@ -62,8 +62,8 @@ class pci_bus_legacy_device : public device_t 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 device_post_load() override; private: diff --git a/src/devices/machine/m3002.h b/src/devices/machine/m3002.h index 8f34e5aaa49..7a6d27acc92 100644 --- a/src/devices/machine/m3002.h +++ b/src/devices/machine/m3002.h @@ -51,7 +51,7 @@ class m3002_device : public device_t, public device_nvram_interface, public devi m3002_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void device_clock_changed() override; // device_nvram_interface implementation diff --git a/src/devices/machine/m68sfdc.h b/src/devices/machine/m68sfdc.h index a545c987af1..e09fc9727d7 100644 --- a/src/devices/machine/m68sfdc.h +++ b/src/devices/machine/m68sfdc.h @@ -30,10 +30,10 @@ class m68sfdc_device : public device_t { void set_floppies_4(floppy_connector*, floppy_connector*, floppy_connector*, floppy_connector*); private: - virtual void device_start() override; - virtual void device_reset() override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() 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 ioport_constructor device_input_ports() const override ATTR_COLD; required_device m_pia; required_device m_ssda; diff --git a/src/devices/machine/m6m80011ap.h b/src/devices/machine/m6m80011ap.h index 0e628c2662c..761b4095f27 100644 --- a/src/devices/machine/m6m80011ap.h +++ b/src/devices/machine/m6m80011ap.h @@ -22,8 +22,8 @@ class m6m80011ap_device : public device_t, protected: // device-level overrides virtual void device_validity_check(validity_checker &valid) const override; - 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 nvram_default() override; virtual bool nvram_read(util::read_stream &file) override; diff --git a/src/devices/machine/m950x0.h b/src/devices/machine/m950x0.h index 0eceb6fab21..cf57de0ec5e 100644 --- a/src/devices/machine/m950x0.h +++ b/src/devices/machine/m950x0.h @@ -24,8 +24,8 @@ class m950x0_device : public eeprom_base_device protected: m950x0_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, int capacity); - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; void process_instruction(const uint8_t insn); diff --git a/src/devices/machine/mb14241.h b/src/devices/machine/mb14241.h index 00bc2a55949..c7bc32655b5 100644 --- a/src/devices/machine/mb14241.h +++ b/src/devices/machine/mb14241.h @@ -22,8 +22,8 @@ class mb14241_device : public device_t 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; private: // internal state diff --git a/src/devices/machine/mb3773.h b/src/devices/machine/mb3773.h index fd25d83e599..cf0db7101c0 100644 --- a/src/devices/machine/mb3773.h +++ b/src/devices/machine/mb3773.h @@ -24,8 +24,8 @@ class mb3773_device : public device_t 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; TIMER_CALLBACK_MEMBER(watchdog_expired); diff --git a/src/devices/machine/mb87030.h b/src/devices/machine/mb87030.h index 2040ecf1cd2..39cad8169c9 100644 --- a/src/devices/machine/mb87030.h +++ b/src/devices/machine/mb87030.h @@ -13,7 +13,7 @@ class mb87030_device : public nscsi_device, public nscsi_slot_card_interface public: mb87030_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - virtual void map(address_map &map); + virtual void map(address_map &map) ATTR_COLD; auto out_irq_callback() { return m_irq_handler.bind(); } auto out_dreq_callback() { return m_dreq_handler.bind(); } @@ -60,8 +60,8 @@ class mb87030_device : public nscsi_device, public nscsi_slot_card_interface protected: mb87030_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; private: constexpr static uint8_t SCTL_INT_ENABLE = 0x01; @@ -217,7 +217,7 @@ class mb89351_device : public mb87030_device public: mb89351_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - virtual void map(address_map &map) override; + virtual void map(address_map &map) override ATTR_COLD; }; class mb89352_device : public mb87030_device @@ -225,7 +225,7 @@ class mb89352_device : public mb87030_device public: mb89352_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - virtual void map(address_map &map) override; + virtual void map(address_map &map) override ATTR_COLD; }; DECLARE_DEVICE_TYPE(MB87030, mb87030_device) diff --git a/src/devices/machine/mb87078.h b/src/devices/machine/mb87078.h index 500a53b02a6..5b4e7686ba2 100644 --- a/src/devices/machine/mb87078.h +++ b/src/devices/machine/mb87078.h @@ -30,8 +30,8 @@ class mb87078_device : public device_t 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; private: void gain_recalc(); diff --git a/src/devices/machine/mb8795.h b/src/devices/machine/mb8795.h index 57daf378f66..a661c9b1781 100644 --- a/src/devices/machine/mb8795.h +++ b/src/devices/machine/mb8795.h @@ -19,11 +19,11 @@ class mb8795_device : public device_t, void tx_dma_w(uint8_t data, bool eof); void rx_dma_r(uint8_t &data, bool &eof); - void map(address_map &map); + void map(address_map &map) ATTR_COLD; protected: - 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 recv_cb(uint8_t *buf, int len) override; diff --git a/src/devices/machine/mb89363b.h b/src/devices/machine/mb89363b.h index 273642f96f5..3c237771e8d 100644 --- a/src/devices/machine/mb89363b.h +++ b/src/devices/machine/mb89363b.h @@ -41,9 +41,9 @@ class mb89363b_device : public device_t auto out_pf() { return m_out_b_pc_cb.bind(); } protected: - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: uint8_t i8255_a_port_a_r(offs_t offset); diff --git a/src/devices/machine/mb89371.h b/src/devices/machine/mb89371.h index 4fe1c8158d2..10f0180d65c 100644 --- a/src/devices/machine/mb89371.h +++ b/src/devices/machine/mb89371.h @@ -25,7 +25,7 @@ class mb89371_device : public device_t protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; }; diff --git a/src/devices/machine/mb89374.h b/src/devices/machine/mb89374.h index 4ea6878641f..149ddb464e0 100644 --- a/src/devices/machine/mb89374.h +++ b/src/devices/machine/mb89374.h @@ -64,8 +64,8 @@ class mb89374_device : public device_t, 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 execute_run() override; int m_icount; diff --git a/src/devices/machine/mc14411.h b/src/devices/machine/mc14411.h index 422e381bcb2..b4d8c7b488e 100644 --- a/src/devices/machine/mc14411.h +++ b/src/devices/machine/mc14411.h @@ -74,9 +74,9 @@ class mc14411_device : public device_t mc14411_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void device_clock_changed() override; - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; TIMER_CALLBACK_MEMBER(timer_tick); TIMER_CALLBACK_MEMBER(reset_tick); diff --git a/src/devices/machine/mc146818.h b/src/devices/machine/mc146818.h index 1bee70ec6c9..8fc89185e6a 100644 --- a/src/devices/machine/mc146818.h +++ b/src/devices/machine/mc146818.h @@ -54,8 +54,8 @@ class mc146818_device : public device_t, mc146818_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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; // device_nvram_interface overrides virtual void nvram_default() override; @@ -190,8 +190,8 @@ class ds1397_device : public mc146818_device public: ds1397_device(const machine_config &mconfig, 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; u8 xram_r(offs_t offset); void xram_w(offs_t offset, u8 data); diff --git a/src/devices/machine/mc68328.h b/src/devices/machine/mc68328.h index b7877e9affc..e8f4df344b5 100644 --- a/src/devices/machine/mc68328.h +++ b/src/devices/machine/mc68328.h @@ -134,9 +134,9 @@ class mc68328_base_device : public m68000_device mc68328_base_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); // device_t implementation - virtual void device_resolve_objects() override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_resolve_objects() override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; enum : u8 { @@ -822,8 +822,8 @@ class mc68328_device : public mc68328_base_device protected: // 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; private: enum : u8 @@ -1010,8 +1010,8 @@ class mc68328_device : public mc68328_base_device u8 m_lotcr; // Octet Terminal Count Register u16 m_lgpmr; // Gray Palette Mapping Register - void internal_map(address_map &map); - void cpu_space_map(address_map &map); + void internal_map(address_map &map) ATTR_COLD; + void cpu_space_map(address_map &map) ATTR_COLD; // internal state virtual void register_state_save() override; @@ -1055,8 +1055,8 @@ class mc68ez328_device : public mc68328_base_device protected: // 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; private: enum : u8 @@ -1213,8 +1213,8 @@ class mc68ez328_device : public mc68328_base_device u16 m_dayalarm; // RTC Day Alarm Register u8 m_sam_cnt; // RTC Sample Timer Counter (internal, not readable) - void internal_map(address_map &map); - void cpu_space_map(address_map &map); + void internal_map(address_map &map) ATTR_COLD; + void cpu_space_map(address_map &map) ATTR_COLD; // internal state virtual void register_state_save() override; diff --git a/src/devices/machine/mc6843.h b/src/devices/machine/mc6843.h index 86a92757279..b433e02dfe6 100644 --- a/src/devices/machine/mc6843.h +++ b/src/devices/machine/mc6843.h @@ -24,12 +24,12 @@ class mc6843_device : public device_t void set_floppy(floppy_image_device *floppy); - void map(address_map &map); + void map(address_map &map) ATTR_COLD; 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; TIMER_CALLBACK_MEMBER(update_tick); diff --git a/src/devices/machine/mc6844.h b/src/devices/machine/mc6844.h index 7737d700164..208635a640d 100644 --- a/src/devices/machine/mc6844.h +++ b/src/devices/machine/mc6844.h @@ -69,8 +69,8 @@ class mc6844_device : public device_t, public device_execute_interface protected: // 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; virtual void execute_run() override; devcb_write_line m_out_int_cb; diff --git a/src/devices/machine/mc6846.h b/src/devices/machine/mc6846.h index 3569e78bb98..06914d5b278 100644 --- a/src/devices/machine/mc6846.h +++ b/src/devices/machine/mc6846.h @@ -43,8 +43,8 @@ class mc6846_device : public device_t 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; private: // internal state diff --git a/src/devices/machine/mc6852.h b/src/devices/machine/mc6852.h index 6fb6cc512c7..3092ba2374c 100644 --- a/src/devices/machine/mc6852.h +++ b/src/devices/machine/mc6852.h @@ -71,8 +71,8 @@ class mc6852_device : public device_t, 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; // device_serial_interface overrides virtual void tra_callback() override; diff --git a/src/devices/machine/mc6854.h b/src/devices/machine/mc6854.h index 81be8766816..c8cd42bf63c 100644 --- a/src/devices/machine/mc6854.h +++ b/src/devices/machine/mc6854.h @@ -53,8 +53,8 @@ class mc6854_device : public device_t 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; bool receive_allowed() const; private: diff --git a/src/devices/machine/mc68681.cpp b/src/devices/machine/mc68681.cpp index 3a3fcfcecf7..c84b3bbee0d 100644 --- a/src/devices/machine/mc68681.cpp +++ b/src/devices/machine/mc68681.cpp @@ -531,7 +531,7 @@ uint8_t mc68340_duart_device::read(offs_t offset) uint8_t sc28c94_device::read(offs_t offset) { uint8_t r = 0; - offset &= 0x1f; + offset &= 0x3f; if (offset < 0x10) { @@ -696,7 +696,7 @@ void mc68340_duart_device::write(offs_t offset, uint8_t data) void sc28c94_device::write(offs_t offset, uint8_t data) { - offset &= 0x1f; + offset &= 0x3f; if (offset < 0x10) { @@ -712,10 +712,10 @@ void sc28c94_device::write(offs_t offset, uint8_t data) m_chanC->write_chan_reg(offset&3, data); break; - case 0x18: /* MRC */ - case 0x19: /* CSRC */ - case 0x1a: /* CRC */ - case 0x1b: /* THRC */ + case 0x18: /* MRD */ + case 0x19: /* CSRD */ + case 0x1a: /* CRD */ + case 0x1b: /* THRD */ m_chanD->write_chan_reg(offset&3, data); break; } @@ -724,6 +724,7 @@ void sc28c94_device::write(offs_t offset, uint8_t data) void xr68c681_device::write(offs_t offset, uint8_t data) { if (offset == 0x02) /* CRA */ + { switch (data >> 4) { case 0x08: /* set RX extend bit */ @@ -757,8 +758,9 @@ void xr68c681_device::write(offs_t offset, uint8_t data) data &= 0x0f; break; } - + } else if (offset == 0x0a) /* CRB */ + { switch (data >> 4) { case 0x08: /* set RX extend bit */ @@ -792,6 +794,7 @@ void xr68c681_device::write(offs_t offset, uint8_t data) data &= 0x0f; break; } + } mc68681_device::write(offset, data); /* pass on 68681 command */ } @@ -1097,7 +1100,6 @@ int xr68c681_device::calc_baud(int ch, bool rx, uint8_t data) { int baud_rate; - baud_rate = baud_rate_ACR_0[data & 0x0f]; if (ch == 0) diff --git a/src/devices/machine/mc68681.h b/src/devices/machine/mc68681.h index fecd5feb742..7887fc1eefb 100644 --- a/src/devices/machine/mc68681.h +++ b/src/devices/machine/mc68681.h @@ -19,8 +19,8 @@ class duart_channel : public device_t, public device_serial_interface duart_channel(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // 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; // device_serial overrides virtual void rcv_complete() override; // Rx completed receiving byte @@ -131,9 +131,9 @@ class duart_base_device : public device_t duart_base_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // device-level overrides - 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; devcb_write_line write_irq, write_a_tx, write_b_tx, write_c_tx, write_d_tx; devcb_read8 read_inport; @@ -211,8 +211,8 @@ class mc68681_device : public duart_base_device uint8_t get_irq_vector(); protected: - 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 update_interrupts() override; mc68681_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); @@ -237,7 +237,7 @@ class sc28c94_device : public duart_base_device virtual void write(offs_t offset, uint8_t data) override; protected: - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: }; @@ -251,7 +251,7 @@ class mc68340_duart_device : public duart_base_device virtual void write(offs_t offset, uint8_t data) override; protected: - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; mc68340_duart_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); private: @@ -267,8 +267,8 @@ class xr68c681_device : public mc68681_device virtual void write(offs_t offset, uint8_t data) override; protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: virtual int calc_baud(int ch, bool rx, uint8_t data) override; diff --git a/src/devices/machine/mc68901.h b/src/devices/machine/mc68901.h index 35712dbb8a2..84606368b98 100644 --- a/src/devices/machine/mc68901.h +++ b/src/devices/machine/mc68901.h @@ -89,8 +89,8 @@ class mc68901_device : public device_t 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; void check_interrupts(); void take_interrupt(u16 mask); diff --git a/src/devices/machine/mc88200.h b/src/devices/machine/mc88200.h index 813bce64e13..ecf5f541c2b 100644 --- a/src/devices/machine/mc88200.h +++ b/src/devices/machine/mc88200.h @@ -21,10 +21,10 @@ class mc88200_device void bus_error_w(int state) { if (!machine().side_effects_disabled()) m_bus_error = true; } protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; - void map(address_map &map); + void map(address_map &map) ATTR_COLD; u32 idr_r() { return m_idr; } u32 scr_r() { return m_scr; } diff --git a/src/devices/machine/mccs1850.h b/src/devices/machine/mccs1850.h index 3dd6b0173e6..678c18a8c5d 100644 --- a/src/devices/machine/mccs1850.h +++ b/src/devices/machine/mccs1850.h @@ -53,8 +53,8 @@ class mccs1850_device : public device_t, 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; // device_nvram_interface overrides virtual void nvram_default() override; diff --git a/src/devices/machine/mcf5206e.h b/src/devices/machine/mcf5206e.h index d4ec0dd7980..e407e4059d9 100644 --- a/src/devices/machine/mcf5206e.h +++ b/src/devices/machine/mcf5206e.h @@ -39,8 +39,8 @@ class mcf5206e_peripheral_device : public device_t, 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 device_clock_changed() override { } virtual space_config_vector memory_space_config() const override; @@ -147,7 +147,7 @@ class mcf5206e_peripheral_device : public device_t, uint8_t MBDR_r(offs_t offset); void MBDR_w(offs_t offset, uint8_t data); - void coldfire_regs_map(address_map &map); + void coldfire_regs_map(address_map &map) ATTR_COLD; enum { diff --git a/src/devices/machine/mdcr.h b/src/devices/machine/mdcr.h index 64053454a34..11dada5ed05 100644 --- a/src/devices/machine/mdcr.h +++ b/src/devices/machine/mdcr.h @@ -74,10 +74,10 @@ class mdcr_device : public device_t auto rdc_cb() { return m_rdc_cb.bind(); } protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void device_pre_save() override; virtual void device_post_load() override; - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; TIMER_CALLBACK_MEMBER(read_timer_tick); diff --git a/src/devices/machine/mediagx_cs5530_bridge.h b/src/devices/machine/mediagx_cs5530_bridge.h index f381e84697e..de5d0e37f25 100644 --- a/src/devices/machine/mediagx_cs5530_bridge.h +++ b/src/devices/machine/mediagx_cs5530_bridge.h @@ -48,14 +48,14 @@ class mediagx_cs5530_bridge_device : public pci_device protected: virtual void device_add_mconfig(machine_config & config) override; virtual void device_config_complete() override; - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; virtual void map_extra(uint64_t memory_window_start, uint64_t memory_window_end, uint64_t memory_offset, address_space *memory_space, uint64_t io_window_start, uint64_t io_window_end, uint64_t io_offset, address_space *io_space) override; virtual bool map_first() const override { return true; } - virtual void config_map(address_map &map) override; + virtual void config_map(address_map &map) override ATTR_COLD; private: void at_pit8254_out0_changed(int state); void at_pit8254_out1_changed(int state); @@ -109,7 +109,7 @@ class mediagx_cs5530_bridge_device : public pci_device void at_dma8237_2_w(offs_t offset, uint8_t data); void map_bios(address_space *memory_space, uint32_t start, uint32_t end); - void internal_io_map(address_map &map); + void internal_io_map(address_map &map) ATTR_COLD; devcb_write8 m_boot_state_hook; devcb_write8 m_rtcale; diff --git a/src/devices/machine/mediagx_cs5530_ide.h b/src/devices/machine/mediagx_cs5530_ide.h index 1cb2b00641d..a82d116f38c 100644 --- a/src/devices/machine/mediagx_cs5530_ide.h +++ b/src/devices/machine/mediagx_cs5530_ide.h @@ -25,24 +25,24 @@ class mediagx_cs5530_ide_device : public pci_device auto irq_pri() { return m_irq_pri_callback.bind(); } auto irq_sec() { return m_irq_sec_callback.bind(); } - void primary_ide_map(address_map &map); - void secondary_ide_map(address_map &map); + void primary_ide_map(address_map &map) ATTR_COLD; + void secondary_ide_map(address_map &map) ATTR_COLD; protected: - 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; // virtual void reset_all_mappings() override; // virtual void map_extra(uint64_t memory_window_start, uint64_t memory_window_end, uint64_t memory_offset, address_space *memory_space, // uint64_t io_window_start, uint64_t io_window_end, uint64_t io_offset, address_space *io_space) override; - virtual void config_map(address_map &map) override; + virtual void config_map(address_map &map) override ATTR_COLD; private: - void io_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; required_device m_ide1; required_device m_ide2; diff --git a/src/devices/machine/mediagx_cs5530_video.h b/src/devices/machine/mediagx_cs5530_video.h index 7a1428faa2a..3efaf975a4c 100644 --- a/src/devices/machine/mediagx_cs5530_video.h +++ b/src/devices/machine/mediagx_cs5530_video.h @@ -15,12 +15,12 @@ class mediagx_cs5530_video_device : public pci_device mediagx_cs5530_video_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - 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 config_map(address_map &map) override; + virtual void config_map(address_map &map) override ATTR_COLD; - void io_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; }; DECLARE_DEVICE_TYPE(MEDIAGX_CS5530_VIDEO, mediagx_cs5530_video_device) diff --git a/src/devices/machine/mediagx_host.h b/src/devices/machine/mediagx_host.h index d8cb41445f0..18fb0807598 100644 --- a/src/devices/machine/mediagx_host.h +++ b/src/devices/machine/mediagx_host.h @@ -27,15 +27,15 @@ class mediagx_host_device : public pci_host_device void set_ram_size(int ram_size) { m_ram_size = ram_size; } protected: - 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; virtual void map_extra(uint64_t memory_window_start, uint64_t memory_window_end, uint64_t memory_offset, address_space *memory_space, uint64_t io_window_start, uint64_t io_window_end, uint64_t io_offset, address_space *io_space) override; virtual space_config_vector memory_space_config() const override; - virtual void config_map(address_map &map) override; + virtual void config_map(address_map &map) override ATTR_COLD; private: void map_shadowram(address_space *memory_space, uint32_t start_offs, uint32_t end_offs, bool read_enable, bool write_enable); enum @@ -49,7 +49,7 @@ class mediagx_host_device : public pci_host_device std::vector m_smm_ram; address_space_config m_superio_space_config; - void superio_map(address_map &map); + void superio_map(address_map &map) ATTR_COLD; u8 superio_if_r(offs_t offset); void superio_if_w(offs_t offset, u8 data); u8 m_superio_index = 0; @@ -65,15 +65,15 @@ class mediagx_host_device : public pci_host_device u8 m_pci_control[2]{}; u8 m_pci_arbitration[2]{}; - void gxbase_map(address_map &map); - void gfx_pipeline_map(address_map &map); - void display_ctrl_map(address_map &map); + void gxbase_map(address_map &map) ATTR_COLD; + void gfx_pipeline_map(address_map &map) ATTR_COLD; + void display_ctrl_map(address_map &map) ATTR_COLD; u32 m_bc_dram_top = 0; u32 m_bc_xmap[3]{}; - void legacy_memory_map(address_map &map); - void legacy_io_map(address_map &map); + void legacy_memory_map(address_map &map) ATTR_COLD; + void legacy_io_map(address_map &map) ATTR_COLD; u8 vram_r(offs_t offset); void vram_w(offs_t offset, uint8_t data); }; diff --git a/src/devices/machine/meters.h b/src/devices/machine/meters.h index c8dc68a5800..4e3f683cf3f 100644 --- a/src/devices/machine/meters.h +++ b/src/devices/machine/meters.h @@ -24,8 +24,8 @@ class meters_device : public device_t 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; TIMER_CALLBACK_MEMBER(count_tick); diff --git a/src/devices/machine/microtch.h b/src/devices/machine/microtch.h index 67656f93b49..1a3353885c6 100644 --- a/src/devices/machine/microtch.h +++ b/src/devices/machine/microtch.h @@ -24,8 +24,8 @@ class microtouch_device : protected: // device_t implementation - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; // device_serial_interface implementation virtual void tra_callback() override; @@ -33,7 +33,7 @@ class microtouch_device : virtual void rcv_complete() override; // ROM region (unused, as the device is HLE'd) - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; TIMER_CALLBACK_MEMBER(update_output); diff --git a/src/devices/machine/mm5307.h b/src/devices/machine/mm5307.h index 7ca0789e3c3..d2d8d30f1da 100644 --- a/src/devices/machine/mm5307.h +++ b/src/devices/machine/mm5307.h @@ -43,8 +43,8 @@ class mm5307_device : public device_t mm5307_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, const std::array &divisors_x2); // 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; private: // timed update callback diff --git a/src/devices/machine/mm5740.h b/src/devices/machine/mm5740.h index 7158009cdf3..286fc1cc826 100644 --- a/src/devices/machine/mm5740.h +++ b/src/devices/machine/mm5740.h @@ -95,9 +95,9 @@ class mm5740_device : public device_t protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; TIMER_CALLBACK_MEMBER(perform_scan); diff --git a/src/devices/machine/mm58167.h b/src/devices/machine/mm58167.h index 82cf173ca95..57f122da7a1 100644 --- a/src/devices/machine/mm58167.h +++ b/src/devices/machine/mm58167.h @@ -36,8 +36,8 @@ class mm58167_device : public device_t, 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; // device_rtc_interface overrides virtual void rtc_clock_updated(int year, int month, int day, int day_of_week, int hour, int minute, int second) override; diff --git a/src/devices/machine/mm58174.h b/src/devices/machine/mm58174.h index 72fbfc85502..5b24b763839 100644 --- a/src/devices/machine/mm58174.h +++ b/src/devices/machine/mm58174.h @@ -22,7 +22,7 @@ class mm58174_device : public device_t, public device_rtc_interface protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_rtc_interface overrides virtual void rtc_clock_updated(int year, int month, int day, int day_of_week, int hour, int minute, int second) override; diff --git a/src/devices/machine/mm58274c.h b/src/devices/machine/mm58274c.h index 4f2d302a204..4ae9ea4c78b 100644 --- a/src/devices/machine/mm58274c.h +++ b/src/devices/machine/mm58274c.h @@ -26,7 +26,7 @@ class mm58274c_device : public device_t, public device_rtc_interface protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_rtc_interface overrides virtual bool rtc_feature_y2k() const override { return false; } diff --git a/src/devices/machine/mm74c922.h b/src/devices/machine/mm74c922.h index c3547c792fe..ce8371e290e 100644 --- a/src/devices/machine/mm74c922.h +++ b/src/devices/machine/mm74c922.h @@ -66,7 +66,7 @@ class mm74c922_device : public device_t mm74c922_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, int max_y); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; TIMER_CALLBACK_MEMBER(perform_scan); diff --git a/src/devices/machine/mos6526.h b/src/devices/machine/mos6526.h index 637124cc733..39dbfe2a674 100644 --- a/src/devices/machine/mos6526.h +++ b/src/devices/machine/mos6526.h @@ -111,8 +111,8 @@ class mos6526_device : public device_t, mos6526_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, uint32_t variant); // 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 execute_run() override; TIMER_CALLBACK_MEMBER(advance_tod_clock); diff --git a/src/devices/machine/mos6529.h b/src/devices/machine/mos6529.h index 67806441d57..8a2450a0508 100644 --- a/src/devices/machine/mos6529.h +++ b/src/devices/machine/mos6529.h @@ -55,7 +55,7 @@ class mos6529_device : public device_t protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; uint8_t m_input; diff --git a/src/devices/machine/mos6530.h b/src/devices/machine/mos6530.h index 1e814623b2c..79d86ad650d 100644 --- a/src/devices/machine/mos6530.h +++ b/src/devices/machine/mos6530.h @@ -91,8 +91,8 @@ class mos6530_device_base : public device_t mos6530_device_base(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, u32 rsize); // 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; enum { @@ -177,9 +177,9 @@ class mos6530_device : public mos6530_device_base // construction/destruction mos6530_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - virtual void rom_map(address_map &map); - virtual void ram_map(address_map &map); - virtual void io_map(address_map &map); + virtual void rom_map(address_map &map) ATTR_COLD; + virtual void ram_map(address_map &map) ATTR_COLD; + virtual void io_map(address_map &map) ATTR_COLD; protected: // device-level overrides @@ -195,8 +195,8 @@ class mos6532_device : public mos6530_device_base // construction/destruction mos6532_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - virtual void ram_map(address_map &map); - virtual void io_map(address_map &map); + virtual void ram_map(address_map &map) ATTR_COLD; + virtual void io_map(address_map &map) ATTR_COLD; }; diff --git a/src/devices/machine/mos6551.h b/src/devices/machine/mos6551.h index 0f2c00eef0f..77a3dcfe425 100644 --- a/src/devices/machine/mos6551.h +++ b/src/devices/machine/mos6551.h @@ -41,7 +41,7 @@ class mos6551_device : public device_t auto rts_handler() { return m_rts_handler.bind(); } auto dtr_handler() { return m_dtr_handler.bind(); } - void map(address_map &map); + void map(address_map &map) ATTR_COLD; uint8_t read(offs_t offset); void write(offs_t offset, uint8_t data); @@ -57,9 +57,9 @@ class mos6551_device : public device_t void set_xtal(const XTAL &clock) { set_xtal(clock.value()); } protected: - 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; private: enum diff --git a/src/devices/machine/mos6702.h b/src/devices/machine/mos6702.h index ab1ea945e6e..8f79db2a8fd 100644 --- a/src/devices/machine/mos6702.h +++ b/src/devices/machine/mos6702.h @@ -42,7 +42,7 @@ class mos6702_device : public device_t protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; }; diff --git a/src/devices/machine/mos8706.h b/src/devices/machine/mos8706.h index a1d1a225e0e..611687b0504 100644 --- a/src/devices/machine/mos8706.h +++ b/src/devices/machine/mos8706.h @@ -45,8 +45,8 @@ class mos8706_device : public device_t 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; }; diff --git a/src/devices/machine/mos8722.h b/src/devices/machine/mos8722.h index 5c86facc49b..bb17b975308 100644 --- a/src/devices/machine/mos8722.h +++ b/src/devices/machine/mos8722.h @@ -65,8 +65,8 @@ class mos8722_device : public device_t 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; private: enum diff --git a/src/devices/machine/mos8726.h b/src/devices/machine/mos8726.h index 720f348c728..503e5d3e5c3 100644 --- a/src/devices/machine/mos8726.h +++ b/src/devices/machine/mos8726.h @@ -69,8 +69,8 @@ class mos8726_device : public device_t, 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 execute_run() override; int m_icount; diff --git a/src/devices/machine/mpc106.h b/src/devices/machine/mpc106.h index da4ecca061f..2db8cadee8f 100644 --- a/src/devices/machine/mpc106.h +++ b/src/devices/machine/mpc106.h @@ -38,21 +38,21 @@ class mpc106_host_device : public pci_host_device { void set_map_type(map_type maptype); protected: - 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 reset_all_mappings() override; virtual void map_extra(u64 memory_window_start, u64 memory_window_end, u64 memory_offset, address_space *memory_space, u64 io_window_start, u64 io_window_end, u64 io_offset, address_space *io_space) override; - virtual void config_map(address_map &map) override; + virtual void config_map(address_map &map) override ATTR_COLD; virtual space_config_vector memory_space_config() const override; private: - void access_map_le(address_map &map); - void access_map_be(address_map &map); + void access_map_le(address_map &map) ATTR_COLD; + void access_map_be(address_map &map) ATTR_COLD; u32 be_config_address_r(); void be_config_address_w(offs_t offset, u32 data, u32 mem_mask = ~0); u32 be_config_data_r(offs_t offset, u32 mem_mask = ~0); diff --git a/src/devices/machine/mpu401.h b/src/devices/machine/mpu401.h index a76cc53dcdd..216480d640b 100644 --- a/src/devices/machine/mpu401.h +++ b/src/devices/machine/mpu401.h @@ -25,10 +25,10 @@ class mpu401_device : public device_t protected: // device-level overrides - 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; TIMER_CALLBACK_MEMBER(serial_tick); @@ -42,7 +42,7 @@ class mpu401_device : public device_t uint8_t port2_r(); void port2_w(uint8_t data); - void mpu401_map(address_map &map); + void mpu401_map(address_map &map) ATTR_COLD; required_device m_ourcpu; diff --git a/src/devices/machine/msm5001n.h b/src/devices/machine/msm5001n.h index d7e16998e34..af63febc7fd 100644 --- a/src/devices/machine/msm5001n.h +++ b/src/devices/machine/msm5001n.h @@ -30,7 +30,7 @@ class msm5001n_device : public device_t, public device_rtc_interface, public dev protected: // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void device_clock_changed() override; // device_nvram_interface implementation diff --git a/src/devices/machine/msm5832.h b/src/devices/machine/msm5832.h index 9e0d98bdaee..bd9ff4410e0 100644 --- a/src/devices/machine/msm5832.h +++ b/src/devices/machine/msm5832.h @@ -55,7 +55,7 @@ class msm5832_device : public device_t, protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_rtc_interface overrides virtual void rtc_clock_updated(int year, int month, int day, int day_of_week, int hour, int minute, int second) override; diff --git a/src/devices/machine/msm58321.h b/src/devices/machine/msm58321.h index e04e3136854..67c6c94eb6e 100644 --- a/src/devices/machine/msm58321.h +++ b/src/devices/machine/msm58321.h @@ -72,7 +72,7 @@ class msm58321_device : public device_t, protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_rtc_interface overrides virtual void rtc_clock_updated(int year, int month, int day, int day_of_week, int hour, int minute, int second) override; diff --git a/src/devices/machine/msm6200.h b/src/devices/machine/msm6200.h index 034950d10e7..758cc929392 100644 --- a/src/devices/machine/msm6200.h +++ b/src/devices/machine/msm6200.h @@ -20,8 +20,8 @@ class msm6200_device : public device_t u8 read(); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: optional_ioport_array<38> m_keys; diff --git a/src/devices/machine/msm6242.h b/src/devices/machine/msm6242.h index 216c66fc5b5..3f830070d7d 100644 --- a/src/devices/machine/msm6242.h +++ b/src/devices/machine/msm6242.h @@ -58,8 +58,8 @@ class msm6242_device : public device_t, public device_rtc_interface msm6242_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); // 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 device_pre_save() override; virtual void device_post_load() override; diff --git a/src/devices/machine/msm6253.h b/src/devices/machine/msm6253.h index b784bb9aec3..b5b8f76f0c7 100644 --- a/src/devices/machine/msm6253.h +++ b/src/devices/machine/msm6253.h @@ -52,7 +52,7 @@ class msm6253_device : public device_t protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: // helpers diff --git a/src/devices/machine/mv6436x.h b/src/devices/machine/mv6436x.h index 4d85912ecfe..af0d92502e2 100644 --- a/src/devices/machine/mv6436x.h +++ b/src/devices/machine/mv6436x.h @@ -45,11 +45,11 @@ class mv64361_device : public device_t template void set_pcihost_tag(int idx, T &&tag) { m_pcihost[idx].set_tag(std::forward(tag)); } protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: - void register_map(address_map &map); + void register_map(address_map &map) ATTR_COLD; // internal register cpu interface uint32_t cpu_config_r(offs_t offset, uint32_t mem_mask); @@ -256,8 +256,8 @@ class mv64361_pci_host_device : public pci_host_device void mem_w(offs_t offset, uint32_t data, uint32_t mem_mask); protected: - 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 map_extra(uint64_t memory_window_start, uint64_t memory_window_end, uint64_t memory_offset, address_space *memory_space, uint64_t io_window_start, uint64_t io_window_end, uint64_t io_offset, address_space *io_space) override; diff --git a/src/devices/machine/mv_sonora.h b/src/devices/machine/mv_sonora.h index 3761ae91033..1b9c2945a80 100644 --- a/src/devices/machine/mv_sonora.h +++ b/src/devices/machine/mv_sonora.h @@ -37,10 +37,10 @@ class mac_video_sonora_device : public device_t void set_pixel_clock(uint32_t pclk) { m_extPixelClock = pclk; } protected: - virtual void device_start() override; - virtual void device_reset() override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() 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 ioport_constructor device_input_ports() const override ATTR_COLD; private: struct modeline { diff --git a/src/devices/machine/myb3k_kbd.h b/src/devices/machine/myb3k_kbd.h index fa8f6570640..d0b7a535758 100644 --- a/src/devices/machine/myb3k_kbd.h +++ b/src/devices/machine/myb3k_kbd.h @@ -49,9 +49,9 @@ class myb3k_keyboard_device : public device_t char const *tag, device_t *owner, u32 clock); - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; - virtual void device_reset() override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; virtual void send_byte(u8 code); void key_changed(int x, int y, bool down); void update_modifiers(int y, bool down); @@ -83,7 +83,7 @@ class jb3000_keyboard_device : public myb3k_keyboard_device device_t *owner, u32 clock); private: - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; }; class stepone_keyboard_device : public myb3k_keyboard_device @@ -95,7 +95,7 @@ class stepone_keyboard_device : public myb3k_keyboard_device device_t *owner, u32 clock); private: - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; }; #endif // MAME_MACHINE_MYB3K_KBD_H diff --git a/src/devices/machine/nandflash.h b/src/devices/machine/nandflash.h index f1c53dcc88a..0be5e2de52c 100644 --- a/src/devices/machine/nandflash.h +++ b/src/devices/machine/nandflash.h @@ -57,8 +57,8 @@ class nand_device : public device_t, public device_nvram_interface nand_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; optional_memory_region m_region; diff --git a/src/devices/machine/ncr5380.h b/src/devices/machine/ncr5380.h index e7107ae285e..ae5b3bd4a84 100644 --- a/src/devices/machine/ncr5380.h +++ b/src/devices/machine/ncr5380.h @@ -20,7 +20,7 @@ class ncr5380_device auto drq_handler() { return m_drq_handler.bind(); } // register access - void map(address_map &map); + void map(address_map &map) ATTR_COLD; u8 read(offs_t offset); void write(offs_t offset, u8 data); @@ -33,8 +33,8 @@ class ncr5380_device ncr5380_device(machine_config const &mconfig, device_type type, char const *tag, device_t *owner, u32 clock, bool has_lbs = false); // device_t 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; // ncsci_device overrides virtual void scsi_ctrl_changed() override; diff --git a/src/devices/machine/ncr5385.h b/src/devices/machine/ncr5385.h index a1e8deef207..32ee4a30d17 100644 --- a/src/devices/machine/ncr5385.h +++ b/src/devices/machine/ncr5385.h @@ -52,15 +52,15 @@ class ncr5385_device ncr5385_device(machine_config const &mconfig, char const *tag, device_t *owner, u32 clock); - void map(address_map &map); + void map(address_map &map) ATTR_COLD; u8 dma_r(); void dma_w(u8 data); protected: // 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; // ncsci_device implementation virtual void scsi_ctrl_changed() override; diff --git a/src/devices/machine/ncr53c90.h b/src/devices/machine/ncr53c90.h index e1c82d5e831..1f17b14e7ad 100644 --- a/src/devices/machine/ncr53c90.h +++ b/src/devices/machine/ncr53c90.h @@ -16,7 +16,7 @@ class ncr53c90_device : public nscsi_device, public nscsi_slot_card_interface auto irq_handler_cb() { return m_irq_handler.bind(); } auto drq_handler_cb() { return m_drq_handler.bind(); } - virtual void map(address_map &map); + virtual void map(address_map &map) ATTR_COLD; uint8_t tcounter_lo_r(); void tcount_lo_w(uint8_t data); @@ -50,8 +50,8 @@ class ncr53c90_device : public nscsi_device, public nscsi_slot_card_interface protected: ncr53c90_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; TIMER_CALLBACK_MEMBER(update_tick); @@ -242,7 +242,7 @@ class ncr53c90a_device : public ncr53c90_device public: ncr53c90a_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - virtual void map(address_map &map) override; + virtual void map(address_map &map) override ATTR_COLD; virtual uint8_t status_r() override; @@ -255,8 +255,8 @@ class ncr53c90a_device : public ncr53c90_device protected: ncr53c90a_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 bool check_valid_command(uint8_t cmd) override; @@ -295,7 +295,7 @@ class ncr53c94_device : public ncr53c90a_device }; void set_busmd(busmd_t const busmd) { m_busmd = busmd; } - virtual void map(address_map &map) override; + virtual void map(address_map &map) override ATTR_COLD; uint8_t conf3_r() { return config3; } void conf3_w(uint8_t data) { config3 = data; } @@ -321,8 +321,8 @@ class ncr53c94_device : public ncr53c90a_device LBTM = 0x04, // last byte transfer mode }; - 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 check_drq() override; private: @@ -342,7 +342,7 @@ class ncr53cf94_device : public ncr53c94_device public: ncr53cf94_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - virtual void map(address_map &map) override; + virtual void map(address_map &map) override ATTR_COLD; virtual void conf2_w(uint8_t data) override; @@ -358,8 +358,8 @@ class ncr53cf94_device : public ncr53c94_device protected: ncr53cf94_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; private: u8 config4; diff --git a/src/devices/machine/netlist.h b/src/devices/machine/netlist.h index d9153f96cd2..5653551c1ca 100644 --- a/src/devices/machine/netlist.h +++ b/src/devices/machine/netlist.h @@ -134,9 +134,9 @@ class netlist_mame_device : public device_t // device_t overrides virtual void device_config_complete() override; virtual void device_validity_check(validity_checker &valid) const override; - virtual void device_start() override; - virtual void device_stop() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_stop() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; virtual void device_post_load() override; virtual void device_pre_save() override; //virtual void device_clock_changed() override; @@ -198,7 +198,7 @@ class netlist_mame_cpu_device : public netlist_mame_device, virtual void nl_register_devices(netlist::nlparse_t &parser) const override; // device_t overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void device_clock_changed() override; // device_execute_interface overrides @@ -300,11 +300,11 @@ class netlist_mame_sound_device : public netlist_mame_device, virtual void nl_register_devices(netlist::nlparse_t &parser) const override; // device_t overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_sound_interface overrides virtual void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; virtual void device_validity_check(validity_checker &valid) const override; - //virtual void device_reset() override; + //virtual void device_reset() override ATTR_COLD; private: std::map m_out; @@ -401,7 +401,7 @@ class netlist_mame_analog_input_device : public device_t, public netlist_mame_su netlist::netlist_state_t &nlstate) const override; protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; TIMER_CALLBACK_MEMBER(sync_callback); @@ -433,7 +433,7 @@ class netlist_mame_analog_output_device : public device_t, public netlist_mame_s protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void pre_parse_action(netlist::nlparse_t &parser) override; virtual void custom_netlist_additions(netlist::nlparse_t &parser) override; @@ -462,7 +462,7 @@ class netlist_mame_logic_output_device : public device_t, public netlist_mame_su protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void pre_parse_action(netlist::nlparse_t &parser) override; virtual void custom_netlist_additions(netlist::nlparse_t &parser) override; @@ -502,7 +502,7 @@ class netlist_mame_int_input_device : public device_t, public netlist_mame_sub_i protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; TIMER_CALLBACK_MEMBER(sync_callback); @@ -544,7 +544,7 @@ class netlist_mame_logic_input_device : public device_t, public netlist_mame_sub protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; TIMER_CALLBACK_MEMBER(sync_callback); @@ -573,7 +573,7 @@ class netlist_mame_ram_pointer_device : public device_t, public netlist_mame_sub protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; TIMER_CALLBACK_MEMBER(sync_callback); @@ -602,7 +602,7 @@ class netlist_mame_stream_input_device : public device_t, public netlist_mame_su protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void custom_netlist_additions(netlist::nlparse_t &parser) override; private: uint32_t m_channel; @@ -640,8 +640,8 @@ class netlist_mame_stream_output_device : public device_t, public netlist_mame_s 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 custom_netlist_additions(netlist::nlparse_t &parser) override; virtual void pre_parse_action(netlist::nlparse_t &parser) override; diff --git a/src/devices/machine/nmc9306.h b/src/devices/machine/nmc9306.h index 141a7bb62b0..22c01206e4d 100644 --- a/src/devices/machine/nmc9306.h +++ b/src/devices/machine/nmc9306.h @@ -40,7 +40,7 @@ class nmc9306_device : public device_t, protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_nvram_interface overrides virtual void nvram_default() override; diff --git a/src/devices/machine/nmk112.h b/src/devices/machine/nmk112.h index 5535d94899b..a99cfc27425 100644 --- a/src/devices/machine/nmk112.h +++ b/src/devices/machine/nmk112.h @@ -29,8 +29,8 @@ class nmk112_device : public device_t 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 device_post_load() override; private: diff --git a/src/devices/machine/ns32081.h b/src/devices/machine/ns32081.h index 12a50d9434d..c7fa595bd5f 100644 --- a/src/devices/machine/ns32081.h +++ b/src/devices/machine/ns32081.h @@ -16,8 +16,8 @@ class ns32081_device_base ns32081_device_base(machine_config const &mconfig, device_type type, char const *tag, device_t *owner, u32 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; // ns32000_slave_interface implementation virtual void state_add(device_state_interface &parent, int &index) override; @@ -73,8 +73,8 @@ class ns32081_device protected: // 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; // register helpers virtual void reg_get(unsigned const op_size, u64 &op_value, unsigned const reg) const override; @@ -108,8 +108,8 @@ class ns32381_device protected: // 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; // register helpers virtual void reg_get(unsigned const op_size, u64 &op_value, unsigned const reg) const override; diff --git a/src/devices/machine/ns32082.h b/src/devices/machine/ns32082.h index b8232e25116..b92be3bf8b5 100644 --- a/src/devices/machine/ns32082.h +++ b/src/devices/machine/ns32082.h @@ -29,8 +29,8 @@ class ns32082_device protected: // 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; void execute(); diff --git a/src/devices/machine/ns32202.h b/src/devices/machine/ns32202.h index 1c5e18fdddb..c5e7c27e35f 100644 --- a/src/devices/machine/ns32202.h +++ b/src/devices/machine/ns32202.h @@ -20,12 +20,12 @@ class ns32202_device : public device_t template void ir_w(int state); template void g_w(int state); - template void map(address_map &map); + template void map(address_map &map) ATTR_COLD; protected: // 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; void set_int(bool int_state); void set_cout(bool cout_state); diff --git a/src/devices/machine/ns32382.h b/src/devices/machine/ns32382.h index a60c6d27f5f..edf44ebf13e 100644 --- a/src/devices/machine/ns32382.h +++ b/src/devices/machine/ns32382.h @@ -29,8 +29,8 @@ class ns32382_device protected: // 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; void execute(); diff --git a/src/devices/machine/nsc810.h b/src/devices/machine/nsc810.h index 08a35465cc4..386d8513409 100644 --- a/src/devices/machine/nsc810.h +++ b/src/devices/machine/nsc810.h @@ -50,8 +50,8 @@ class nsc810_device : public device_t void write(offs_t offset, uint8_t data); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; template TIMER_CALLBACK_MEMBER(timer_tick); diff --git a/src/devices/machine/nscsi_bus.h b/src/devices/machine/nscsi_bus.h index f5d7a236d45..9eaa4c4c5d9 100644 --- a/src/devices/machine/nscsi_bus.h +++ b/src/devices/machine/nscsi_bus.h @@ -22,9 +22,9 @@ class nscsi_bus_device : public device_t uint32_t data_r() const; protected: - virtual void device_start() override; - virtual void device_reset() override; - virtual void device_resolve_objects() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; + virtual void device_resolve_objects() override ATTR_COLD; private: struct dev_t { @@ -61,7 +61,7 @@ class nscsi_connector: public device_t, nscsi_device *get_device(); protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; }; class nscsi_slot_card_interface : public device_interface @@ -133,7 +133,7 @@ class nscsi_device : public device_t protected: nscsi_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_start() override ATTR_COLD; int scsi_id; int scsi_refid; @@ -645,8 +645,8 @@ class nscsi_full_device : public nscsi_device, public nscsi_slot_card_interface nscsi_full_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 void scsi_message(); virtual void scsi_command(); diff --git a/src/devices/machine/nscsi_cb.h b/src/devices/machine/nscsi_cb.h index 5cc96b83862..acaf22a3400 100644 --- a/src/devices/machine/nscsi_cb.h +++ b/src/devices/machine/nscsi_cb.h @@ -50,8 +50,8 @@ class nscsi_callback_device : public nscsi_device, public nscsi_slot_card_interf void bsy_w(int state) { scsi_bus->ctrl_w(scsi_refid, state ? S_BSY : 0, S_BSY); } protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; devcb_write_line m_write_rst; devcb_write_line m_write_atn; diff --git a/src/devices/machine/nvram.h b/src/devices/machine/nvram.h index 92bc81f64bb..a2c75fa90a0 100644 --- a/src/devices/machine/nvram.h +++ b/src/devices/machine/nvram.h @@ -51,7 +51,7 @@ class nvram_device : public device_t, protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_nvram_interface overrides virtual void nvram_default() override; diff --git a/src/devices/machine/output_latch.h b/src/devices/machine/output_latch.h index c807e79f3e4..0a73eb1e89d 100644 --- a/src/devices/machine/output_latch.h +++ b/src/devices/machine/output_latch.h @@ -16,7 +16,7 @@ class output_latch_device : public device_t void write(uint8_t data); protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: devcb_write_line::array<8> m_bit_handlers; diff --git a/src/devices/machine/pc87306.h b/src/devices/machine/pc87306.h index 4b1256e1e52..5ce02662b6f 100644 --- a/src/devices/machine/pc87306.h +++ b/src/devices/machine/pc87306.h @@ -46,11 +46,11 @@ class pc87306_device : public device_t, void ncts2_w(int state); protected: - 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 space_config_vector memory_space_config() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: const address_space_config m_space_config; @@ -77,7 +77,7 @@ class pc87306_device : public device_t, u8 read(offs_t offset); void write(offs_t offset, u8 data); - void config_map(address_map &map); + void config_map(address_map &map) ATTR_COLD; u8 far_r(offs_t offset); void far_w(offs_t offset, u8 data); diff --git a/src/devices/machine/pc_fdc.h b/src/devices/machine/pc_fdc.h index bbb2f0a9068..8c37e5fd728 100644 --- a/src/devices/machine/pc_fdc.h +++ b/src/devices/machine/pc_fdc.h @@ -34,9 +34,9 @@ class pc_fdc_family_device : public device_t { protected: pc_fdc_family_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; private: void irq_w(int state); @@ -56,7 +56,7 @@ class pc_fdc_xt_device : public pc_fdc_family_device { public: pc_fdc_xt_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - virtual void map(address_map &map) override; + virtual void map(address_map &map) override ATTR_COLD; void dor_fifo_w(uint8_t data); }; diff --git a/src/devices/machine/pc_lpt.h b/src/devices/machine/pc_lpt.h index 911c657baa4..f3df915943d 100644 --- a/src/devices/machine/pc_lpt.h +++ b/src/devices/machine/pc_lpt.h @@ -37,9 +37,9 @@ class pc_lpt_device : public device_t protected: // device-level overrides - 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; private: void update_irq(); diff --git a/src/devices/machine/pcf8573.h b/src/devices/machine/pcf8573.h index 91916ebef12..0a00b5e6ea7 100644 --- a/src/devices/machine/pcf8573.h +++ b/src/devices/machine/pcf8573.h @@ -63,7 +63,7 @@ class pcf8573_device : protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_rtc_interface overrides virtual void rtc_clock_updated(int year, int month, int day, int day_of_week, int hour, int minute, int second) override; diff --git a/src/devices/machine/pcf8583.h b/src/devices/machine/pcf8583.h index 2086eeef6bf..e14a4ae70be 100644 --- a/src/devices/machine/pcf8583.h +++ b/src/devices/machine/pcf8583.h @@ -87,7 +87,7 @@ class pcf8583_device : protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_rtc_interface overrides virtual bool rtc_feature_y2k() const override { return true; } diff --git a/src/devices/machine/pcf8584.h b/src/devices/machine/pcf8584.h index cbf2dff9c82..ca82f95fc82 100644 --- a/src/devices/machine/pcf8584.h +++ b/src/devices/machine/pcf8584.h @@ -58,8 +58,8 @@ class pcf8584_device : public device_t protected: // 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; private: // internal helpers diff --git a/src/devices/machine/pcf8593.h b/src/devices/machine/pcf8593.h index 27f112f68c5..bd364b98560 100644 --- a/src/devices/machine/pcf8593.h +++ b/src/devices/machine/pcf8593.h @@ -30,8 +30,8 @@ class pcf8593_device : public device_t, 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; // device_rtc_interface overrides virtual bool rtc_feature_y2k() const override { return true; } diff --git a/src/devices/machine/pci-apic.h b/src/devices/machine/pci-apic.h index ede3d80baf3..ed54ee9540f 100644 --- a/src/devices/machine/pci-apic.h +++ b/src/devices/machine/pci-apic.h @@ -17,8 +17,8 @@ class apic_device : public pci_device { apic_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; }; DECLARE_DEVICE_TYPE(APIC, apic_device) diff --git a/src/devices/machine/pci-ide.h b/src/devices/machine/pci-ide.h index d258f8b288e..79d4e803c07 100644 --- a/src/devices/machine/pci-ide.h +++ b/src/devices/machine/pci-ide.h @@ -39,13 +39,13 @@ class ide_pci_device : public pci_device { void set_pif(int val) { m_pif = val & 0xff; } protected: - 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 void device_add_mconfig(machine_config &config) override ATTR_COLD; - virtual void config_map(address_map &map) override; + virtual void config_map(address_map &map) override ATTR_COLD; private: void ide_interrupt(int state); @@ -71,11 +71,11 @@ class ide_pci_device : public pci_device { required_address_space m_bus_master_space; uint32_t m_config_data[0x10]; - void chan1_data_command_map(address_map &map); - void chan1_control_map(address_map &map); - void chan2_data_command_map(address_map &map); - void chan2_control_map(address_map &map); - void bus_master_map(address_map &map); + void chan1_data_command_map(address_map &map) ATTR_COLD; + void chan1_control_map(address_map &map) ATTR_COLD; + void chan2_data_command_map(address_map &map) ATTR_COLD; + void chan2_control_map(address_map &map) ATTR_COLD; + void bus_master_map(address_map &map) ATTR_COLD; }; DECLARE_DEVICE_TYPE(IDE_PCI, ide_pci_device) diff --git a/src/devices/machine/pci-sata.h b/src/devices/machine/pci-sata.h index edf3545c1d7..753ab7157db 100644 --- a/src/devices/machine/pci-sata.h +++ b/src/devices/machine/pci-sata.h @@ -17,16 +17,16 @@ class sata_device : public pci_device { sata_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: - void primary_command_map(address_map &map); - void primary_control_map(address_map &map); - void secondary_command_map(address_map &map); - void secondary_control_map(address_map &map); - void bus_master_map(address_map &map); - void ide_command_posting_map(address_map &map); + void primary_command_map(address_map &map) ATTR_COLD; + void primary_control_map(address_map &map) ATTR_COLD; + void secondary_command_map(address_map &map) ATTR_COLD; + void secondary_control_map(address_map &map) ATTR_COLD; + void bus_master_map(address_map &map) ATTR_COLD; + void ide_command_posting_map(address_map &map) ATTR_COLD; }; DECLARE_DEVICE_TYPE(SATA, sata_device) diff --git a/src/devices/machine/pci-smbus.h b/src/devices/machine/pci-smbus.h index e2c5d7a07d8..23689d0d3bb 100644 --- a/src/devices/machine/pci-smbus.h +++ b/src/devices/machine/pci-smbus.h @@ -14,11 +14,11 @@ class smbus_device : public pci_device { } smbus_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - void map(address_map &map); + void map(address_map &map) ATTR_COLD; protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: diff --git a/src/devices/machine/pci-usb.h b/src/devices/machine/pci-usb.h index 388fa28b24d..0444d0f52d1 100644 --- a/src/devices/machine/pci-usb.h +++ b/src/devices/machine/pci-usb.h @@ -17,11 +17,11 @@ class usb_ohci_device : public pci_device { usb_ohci_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: - void map(address_map &map); + void map(address_map &map) ATTR_COLD; }; class usb_uhci_device : public pci_device { @@ -34,11 +34,11 @@ class usb_uhci_device : public pci_device { usb_uhci_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: - void map(address_map &map); + void map(address_map &map) ATTR_COLD; }; class usb_ehci_device : public pci_device { @@ -51,11 +51,11 @@ class usb_ehci_device : public pci_device { usb_ehci_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: - void map(address_map &map); + void map(address_map &map) ATTR_COLD; }; DECLARE_DEVICE_TYPE(USB_OHCI, usb_ohci_device) diff --git a/src/devices/machine/pci.h b/src/devices/machine/pci.h index d95bf58afbf..3d2173de545 100644 --- a/src/devices/machine/pci.h +++ b/src/devices/machine/pci.h @@ -29,7 +29,7 @@ class pci_device : public device_t { void map_config(uint8_t device, address_space *config_space); - virtual void config_map(address_map &map); + virtual void config_map(address_map &map) ATTR_COLD; uint32_t unmapped_r(offs_t offset, uint32_t mem_mask, int bank); void unmapped_w(offs_t offset, uint32_t data, uint32_t mem_mask, int bank); @@ -113,8 +113,8 @@ class pci_device : public device_t { bool is_multifunction_device; uint8_t intr_line, intr_pin; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; void skip_map_regs(int count); void add_map(uint64_t size, int flags, const address_map_constructor &map, device_t *relative_to = nullptr); @@ -141,8 +141,8 @@ class agp_device : public pci_device { protected: agp_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; }; class pci_bridge_device : public pci_device, public device_memory_interface { @@ -161,7 +161,7 @@ class pci_bridge_device : public pci_device, public device_memory_interface { virtual uint8_t header_type_r() override; - virtual void config_map(address_map &map) override; + virtual void config_map(address_map &map) override ATTR_COLD; uint32_t b_address_base_r(offs_t offset); void b_address_base_w(offs_t offset, uint32_t data); @@ -206,8 +206,8 @@ class pci_bridge_device : public pci_device, public device_memory_interface { pci_bridge_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 void interface_post_reset() override; virtual space_config_vector memory_space_config() const override; @@ -237,13 +237,13 @@ class agp_bridge_device : public pci_bridge_device { protected: agp_bridge_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; }; class pci_host_device : public pci_bridge_device { public: - void io_configuration_access_map(address_map &map); + void io_configuration_access_map(address_map &map) ATTR_COLD; void set_spaces(address_space *memory, address_space *io = nullptr, address_space *busmaster = nullptr); @@ -257,8 +257,8 @@ class pci_host_device : public pci_bridge_device { uint32_t config_data_ex_r(offs_t offset, uint32_t mem_mask = ~0); void config_data_ex_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0); - 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 interface_post_reset() override; virtual device_t *bus_root() override; @@ -295,8 +295,8 @@ class pci_root_device : public device_t { void set_pci_busmaster_space(address_space *space) { m_pci_busmaster_space = space; } protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: pci_pin_mapper m_pin_mapper; diff --git a/src/devices/machine/pci9050.h b/src/devices/machine/pci9050.h index e4a9db67693..9ddf4557879 100644 --- a/src/devices/machine/pci9050.h +++ b/src/devices/machine/pci9050.h @@ -26,12 +26,12 @@ class pci9050_device : public pci_device void set_map(int id, const address_map_constructor &map, device_t *device); protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void device_post_load() override; - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; private: - void map(address_map &map); + void map(address_map &map) ATTR_COLD; // PCI9050 I/O register space handlers uint32_t lasrr_r(offs_t offset); diff --git a/src/devices/machine/pckeybrd.h b/src/devices/machine/pckeybrd.h index e52981b10c4..a7600fcfc31 100644 --- a/src/devices/machine/pckeybrd.h +++ b/src/devices/machine/pckeybrd.h @@ -37,9 +37,9 @@ class pc_keyboard_device : public device_t protected: pc_keyboard_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; - virtual void device_reset() override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; TIMER_CALLBACK_MEMBER(poll_keys); @@ -92,9 +92,9 @@ class at_keyboard_device : public pc_keyboard_device void set_type(KEYBOARD_TYPE type, int default_set) { m_scan_code_set = default_set; m_type = type; } protected: - virtual ioport_constructor device_input_ports() const override; - virtual void device_reset() override; - virtual void device_start() override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; + virtual void device_start() override ATTR_COLD; private: virtual void standard_scancode_insert(int our_code, int pressed) override; diff --git a/src/devices/machine/pdc.h b/src/devices/machine/pdc.h index 9a9eb1d4d42..f35f3f1bbfd 100644 --- a/src/devices/machine/pdc.h +++ b/src/devices/machine/pdc.h @@ -57,12 +57,12 @@ class pdc_device : public device_t 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; /* Optional information overrides */ - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; - virtual const tiny_rom_entry *device_rom_region() const override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; private: void i8237_hreq_w(int state); @@ -86,8 +86,8 @@ class pdc_device : public device_t uint8_t p39_r(); void p50_5f_w(offs_t offset, uint8_t data); - void pdc_io(address_map &map); - void pdc_mem(address_map &map); + void pdc_io(address_map &map) ATTR_COLD; + void pdc_mem(address_map &map) ATTR_COLD; /* Protected variables */ //uint32_t fdd_68k_dma_address; diff --git a/src/devices/machine/phi.h b/src/devices/machine/phi.h index 292c5d45f9b..a47c9759b9f 100644 --- a/src/devices/machine/phi.h +++ b/src/devices/machine/phi.h @@ -93,8 +93,8 @@ class phi_device : public device_t phi_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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; TIMER_CALLBACK_MEMBER(delayed_update); diff --git a/src/devices/machine/pic8259.h b/src/devices/machine/pic8259.h index 0444cc5ae1d..fd658ec8621 100644 --- a/src/devices/machine/pic8259.h +++ b/src/devices/machine/pic8259.h @@ -56,8 +56,8 @@ class pic8259_device : public device_t pic8259_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; virtual bool is_x86() const { return m_is_x86; } diff --git a/src/devices/machine/pit8253.h b/src/devices/machine/pit8253.h index b9f67a30c02..0a1da759a09 100644 --- a/src/devices/machine/pit8253.h +++ b/src/devices/machine/pit8253.h @@ -48,8 +48,8 @@ class pit_counter_device : public device_t 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; private: inline uint32_t adjusted_count() const; @@ -143,9 +143,9 @@ class pit8253_device : public device_t pit8253_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, pit_type chip_type); // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_resolve_objects() override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_resolve_objects() override ATTR_COLD; + virtual void device_start() override ATTR_COLD; virtual void readback_command(uint8_t data); diff --git a/src/devices/machine/pla.h b/src/devices/machine/pla.h index 548ab4bf16b..c5e5eb6a749 100644 --- a/src/devices/machine/pla.h +++ b/src/devices/machine/pla.h @@ -73,7 +73,7 @@ class pla_device : public device_t protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: static constexpr unsigned MAX_TERMS = 512; diff --git a/src/devices/machine/ps2dma.h b/src/devices/machine/ps2dma.h index b602999de28..ccf1ae9b553 100644 --- a/src/devices/machine/ps2dma.h +++ b/src/devices/machine/ps2dma.h @@ -58,8 +58,8 @@ class ps2_dmac_device : public device_t, public device_execute_interface void disable_mask_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0); protected: - 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 execute_run() override; enum tag_id diff --git a/src/devices/machine/ps2intc.h b/src/devices/machine/ps2intc.h index 111c343372f..82f156a4fa7 100644 --- a/src/devices/machine/ps2intc.h +++ b/src/devices/machine/ps2intc.h @@ -56,8 +56,8 @@ class ps2_intc_device : public device_t }; protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; void update_interrupts(); diff --git a/src/devices/machine/ps2mc.h b/src/devices/machine/ps2mc.h index ef38dea72c2..ac67de02367 100644 --- a/src/devices/machine/ps2mc.h +++ b/src/devices/machine/ps2mc.h @@ -35,8 +35,8 @@ class ps2_mc_device : public device_t static const uint8_t SIO_DEVICE_ID = 0x81; protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; void xmit_fifo_push(uint8_t data); uint8_t recv_fifo_pop(); diff --git a/src/devices/machine/ps2pad.h b/src/devices/machine/ps2pad.h index 2b384fd0818..91a417a7a23 100644 --- a/src/devices/machine/ps2pad.h +++ b/src/devices/machine/ps2pad.h @@ -33,8 +33,8 @@ class ps2_pad_device : public device_t static const uint8_t SIO_DEVICE_ID = 0x01; protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; void xmit_fifo_push(uint8_t data); uint8_t recv_fifo_pop(); diff --git a/src/devices/machine/ps2sif.h b/src/devices/machine/ps2sif.h index 83fe5f4a076..cbfdee847e4 100644 --- a/src/devices/machine/ps2sif.h +++ b/src/devices/machine/ps2sif.h @@ -41,8 +41,8 @@ class ps2_sif_device : public device_t static const size_t MAX_FIFO_DEPTH; protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; required_device m_intc; diff --git a/src/devices/machine/ps2timer.h b/src/devices/machine/ps2timer.h index f7cd398f938..7f5ec40419f 100644 --- a/src/devices/machine/ps2timer.h +++ b/src/devices/machine/ps2timer.h @@ -65,8 +65,8 @@ class ps2_timer_device : public device_t GATS_VBLNK }; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; TIMER_CALLBACK_MEMBER(compare); TIMER_CALLBACK_MEMBER(overflow); diff --git a/src/devices/machine/psion_asic1.h b/src/devices/machine/psion_asic1.h index 09805d725d3..409580a69fb 100644 --- a/src/devices/machine/psion_asic1.h +++ b/src/devices/machine/psion_asic1.h @@ -49,8 +49,8 @@ class psion_asic1_device : public device_t, uint32_t screen_update_dual(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); protected: - 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 space_config_vector memory_space_config() const override; diff --git a/src/devices/machine/psion_asic2.h b/src/devices/machine/psion_asic2.h index 48dcfb2c690..7f35798bd14 100644 --- a/src/devices/machine/psion_asic2.h +++ b/src/devices/machine/psion_asic2.h @@ -48,8 +48,8 @@ class psion_asic2_device : public device_t void reset_w(int state); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: void update_interrupts(); diff --git a/src/devices/machine/psion_asic3.h b/src/devices/machine/psion_asic3.h index 7002746a23e..8d4724e9b33 100644 --- a/src/devices/machine/psion_asic3.h +++ b/src/devices/machine/psion_asic3.h @@ -30,8 +30,8 @@ class psion_asic3_device : public device_t protected: psion_asic3_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock = 0); - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; static constexpr uint16_t NULL_FRAME = 0x000; static constexpr uint16_t CONTROL_FRAME = 0x100; diff --git a/src/devices/machine/psion_asic4.h b/src/devices/machine/psion_asic4.h index 42860d1c11d..8e181291987 100644 --- a/src/devices/machine/psion_asic4.h +++ b/src/devices/machine/psion_asic4.h @@ -30,8 +30,8 @@ class psion_asic4_device : public device_t, public device_memory_interface protected: // device_t 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; // device_memory_interface overrides virtual space_config_vector memory_space_config() const override; diff --git a/src/devices/machine/psion_asic5.h b/src/devices/machine/psion_asic5.h index 07462d2f28d..64f4bdc5ea8 100644 --- a/src/devices/machine/psion_asic5.h +++ b/src/devices/machine/psion_asic5.h @@ -62,8 +62,8 @@ class psion_asic5_device : public device_t, public device_serial_interface protected: // device_t overrides virtual void device_validity_check(validity_checker &valid) const override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; // device_serial overrides virtual void rcv_callback() override; diff --git a/src/devices/machine/psion_asic9.h b/src/devices/machine/psion_asic9.h index bdbe4ed618e..9e328a26fcc 100644 --- a/src/devices/machine/psion_asic9.h +++ b/src/devices/machine/psion_asic9.h @@ -62,9 +62,9 @@ class psion_asic9_device : public device_t, protected: psion_asic9_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; virtual space_config_vector memory_space_config() const override; @@ -73,8 +73,8 @@ class psion_asic9_device : public device_t, required_device m_ram; required_memory_region m_rom; - void mem_map(address_map &map); - void io_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; static constexpr int AS_A9_RAM = AS_OPCODES + 1; static constexpr int AS_A9_ROM = AS_OPCODES + 2; diff --git a/src/devices/machine/psion_condor.h b/src/devices/machine/psion_condor.h index f62ae91fa91..04f1bb3b87c 100644 --- a/src/devices/machine/psion_condor.h +++ b/src/devices/machine/psion_condor.h @@ -43,8 +43,8 @@ class psion_condor_device : public device_t, public device_serial_interface protected: // device_t 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; private: devcb_write_line m_txd_handler; diff --git a/src/devices/machine/psion_ssd.h b/src/devices/machine/psion_ssd.h index 7dd9cb777aa..c4665d39bae 100644 --- a/src/devices/machine/psion_ssd.h +++ b/src/devices/machine/psion_ssd.h @@ -35,9 +35,9 @@ class psion_ssd_device : public device_t, public device_memcard_image_interface protected: // device_t implementation virtual void device_config_complete() override; - 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; // device_image_interface implementation virtual std::pair call_load() override; diff --git a/src/devices/machine/pxa255.h b/src/devices/machine/pxa255.h index 5a383a9f9e2..6f2092a3aef 100644 --- a/src/devices/machine/pxa255.h +++ b/src/devices/machine/pxa255.h @@ -34,14 +34,14 @@ class pxa255_periphs_device : public device_t template auto gpio_out() { return m_gpio_w[Bit].bind(); } template void gpio_in(int state); - void map(address_map &map); + void map(address_map &map) ATTR_COLD; // gpio_bit_w protected: - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; static constexpr u32 INTERNAL_OSC = 3686400; diff --git a/src/devices/machine/r10696.h b/src/devices/machine/r10696.h index dc33c4519f3..b46cc3f8fd8 100644 --- a/src/devices/machine/r10696.h +++ b/src/devices/machine/r10696.h @@ -33,8 +33,8 @@ class r10696_device : public device_t 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; private: uint8_t m_io_a; //!< input/output flip-flops group A diff --git a/src/devices/machine/r10788.h b/src/devices/machine/r10788.h index 9a94ad65b5c..f29ec53a166 100644 --- a/src/devices/machine/r10788.h +++ b/src/devices/machine/r10788.h @@ -41,8 +41,8 @@ class r10788_device : public device_t 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; TIMER_CALLBACK_MEMBER(display_update); diff --git a/src/devices/machine/r65c52.h b/src/devices/machine/r65c52.h index 2391bf9347d..40c0f4f7822 100644 --- a/src/devices/machine/r65c52.h +++ b/src/devices/machine/r65c52.h @@ -54,7 +54,7 @@ class r65c52_device : public device_t auto dtr1_handler() { return m_dtr_handler[0].bind(); } auto dtr2_handler() { return m_dtr_handler[1].bind(); } - void map(address_map &map); + void map(address_map &map) ATTR_COLD; u8 read(offs_t offset); @@ -78,9 +78,9 @@ class r65c52_device : public device_t void set_xtal(const XTAL &clock) { set_xtal(clock.value()); } protected: - 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; private: enum diff --git a/src/devices/machine/ra17xx.h b/src/devices/machine/ra17xx.h index 54e4fc9028f..004bf1f085e 100644 --- a/src/devices/machine/ra17xx.h +++ b/src/devices/machine/ra17xx.h @@ -33,8 +33,8 @@ class ra17xx_device : public device_t 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; private: uint8_t m_line[16]; //!< input/output flip-flops for 16 I/O lines diff --git a/src/devices/machine/ram.h b/src/devices/machine/ram.h index 8b17b3eadc5..0d778ae0a45 100644 --- a/src/devices/machine/ram.h +++ b/src/devices/machine/ram.h @@ -61,7 +61,7 @@ class ram_device : public device_t ram_device &set_default_value(u8 default_value) { m_default_value = default_value; return *this; } protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void device_validity_check(validity_checker &valid) const override; private: diff --git a/src/devices/machine/rf5c296.h b/src/devices/machine/rf5c296.h index 936b67f728f..2ba327faca5 100644 --- a/src/devices/machine/rf5c296.h +++ b/src/devices/machine/rf5c296.h @@ -23,7 +23,7 @@ class rf5c296_device : public device_t protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: void reg_w(uint8_t reg, uint8_t data); diff --git a/src/devices/machine/ripple_counter.h b/src/devices/machine/ripple_counter.h index 3a623a3ce35..1746a34ff55 100644 --- a/src/devices/machine/ripple_counter.h +++ b/src/devices/machine/ripple_counter.h @@ -40,7 +40,7 @@ class ripple_counter_device : public device_t, public device_rom_interface<14> protected: // device_t implementation virtual void device_validity_check(validity_checker &valid) const override; - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void device_clock_changed() override; // device_rom_interface implementation diff --git a/src/devices/machine/roc10937.h b/src/devices/machine/roc10937.h index 1095d78ccfb..eca7c1f2a52 100644 --- a/src/devices/machine/roc10937.h +++ b/src/devices/machine/roc10937.h @@ -45,8 +45,8 @@ class rocvfd_device : public device_t uint8_t m_cursor; uint32_t m_chars[16]; - 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 device_post_load() override; private: diff --git a/src/devices/machine/rp5c01.h b/src/devices/machine/rp5c01.h index 511663b47c0..5777a696b13 100644 --- a/src/devices/machine/rp5c01.h +++ b/src/devices/machine/rp5c01.h @@ -53,7 +53,7 @@ class rp5c01_device : public device_t, rp5c01_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_rtc_interface overrides virtual bool rtc_feature_leap_year() const override { return true; } diff --git a/src/devices/machine/rp5c15.h b/src/devices/machine/rp5c15.h index 6630260fc8c..093376343e6 100644 --- a/src/devices/machine/rp5c15.h +++ b/src/devices/machine/rp5c15.h @@ -43,7 +43,7 @@ class rp5c15_device : public device_t, protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_rtc_interface overrides virtual bool rtc_feature_leap_year() const override { return true; } diff --git a/src/devices/machine/rp5h01.h b/src/devices/machine/rp5h01.h index 53b301831d7..9e8cbf9e6a1 100644 --- a/src/devices/machine/rp5h01.h +++ b/src/devices/machine/rp5h01.h @@ -43,8 +43,8 @@ class rp5h01_device : public device_t 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; private: /* these also work as the address masks */ diff --git a/src/devices/machine/rstbuf.h b/src/devices/machine/rstbuf.h index b6bdd871ff4..4296b79e6d5 100644 --- a/src/devices/machine/rstbuf.h +++ b/src/devices/machine/rstbuf.h @@ -33,7 +33,7 @@ class rst_buffer_device : public device_t rst_buffer_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // synchronization helpers void sync_input(bool state, u8 mask); diff --git a/src/devices/machine/rtc4543.h b/src/devices/machine/rtc4543.h index 21fd2914deb..2294e4e6c3d 100644 --- a/src/devices/machine/rtc4543.h +++ b/src/devices/machine/rtc4543.h @@ -42,8 +42,8 @@ class rtc4543_device : public device_t, rtc4543_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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; // device_rtc_interface overrides virtual void rtc_clock_updated(int year, int month, int day, int day_of_week, int hour, int minute, int second) override; diff --git a/src/devices/machine/rtc65271.h b/src/devices/machine/rtc65271.h index 430af624c73..1166eefc267 100644 --- a/src/devices/machine/rtc65271.h +++ b/src/devices/machine/rtc65271.h @@ -36,7 +36,7 @@ class rtc65271_device : public device_t, protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_nvram_interface overrides virtual void nvram_default() override; diff --git a/src/devices/machine/rtc9701.h b/src/devices/machine/rtc9701.h index 8d25983fefb..471b4be0c3d 100644 --- a/src/devices/machine/rtc9701.h +++ b/src/devices/machine/rtc9701.h @@ -58,8 +58,8 @@ class rtc9701_device : public device_t, // device-level overrides virtual void device_validity_check(validity_checker &valid) const override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; // device_nvram_interface overrides virtual void nvram_default() override; diff --git a/src/devices/machine/s2350.h b/src/devices/machine/s2350.h index 15f87d1e5c6..35fbb71756f 100644 --- a/src/devices/machine/s2350.h +++ b/src/devices/machine/s2350.h @@ -55,8 +55,8 @@ class s2350_device : public device_t protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; void update_receiver_shift(); diff --git a/src/devices/machine/s2636.h b/src/devices/machine/s2636.h index ee62553bf0e..7923c30cd51 100644 --- a/src/devices/machine/s2636.h +++ b/src/devices/machine/s2636.h @@ -56,7 +56,7 @@ class s2636_device : public device_t, protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // sound stream update overrides virtual void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; diff --git a/src/devices/machine/s3520cf.h b/src/devices/machine/s3520cf.h index da4c1083fce..6613d00462a 100644 --- a/src/devices/machine/s3520cf.h +++ b/src/devices/machine/s3520cf.h @@ -46,8 +46,8 @@ class s3520cf_device : public device_t, // device-level overrides virtual void device_validity_check(validity_checker &valid) const override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; // device_nvram_interface overrides virtual void nvram_default() override; diff --git a/src/devices/machine/s3c2400.h b/src/devices/machine/s3c2400.h index b5390419a93..9dcf0cbe349 100644 --- a/src/devices/machine/s3c2400.h +++ b/src/devices/machine/s3c2400.h @@ -135,8 +135,8 @@ class s3c2400_device : public device_t, protected s3c24xx_peripheral_types 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; // FIXME: a bunch of this stuff needs to be public, or used from an internal memory map, but since nothing uses it yet, it's impossible to know what // However, the previous situation where all internal state was public is clearly undesirable diff --git a/src/devices/machine/s3c2410.h b/src/devices/machine/s3c2410.h index d86193c365f..7761fa6d3d4 100644 --- a/src/devices/machine/s3c2410.h +++ b/src/devices/machine/s3c2410.h @@ -167,8 +167,8 @@ class s3c2410_device : public device_t, protected s3c24xx_peripheral_types 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; void s3c24xx_reset(); inline int iface_core_pin_r(int pin); diff --git a/src/devices/machine/s3c2440.h b/src/devices/machine/s3c2440.h index 0c3f71391d7..b3f2849439f 100644 --- a/src/devices/machine/s3c2440.h +++ b/src/devices/machine/s3c2440.h @@ -186,8 +186,8 @@ class s3c2440_device : public device_t, protected s3c24xx_peripheral_types 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; void s3c24xx_reset(); inline int iface_core_pin_r(int pin); diff --git a/src/devices/machine/s3c44b0.h b/src/devices/machine/s3c44b0.h index e082937ea83..5cd8ea567b2 100644 --- a/src/devices/machine/s3c44b0.h +++ b/src/devices/machine/s3c44b0.h @@ -166,9 +166,9 @@ class s3c44b0_device : public device_t, public device_video_interface protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void device_post_load() override; - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; private: struct s3c44b0_memcon_regs_t diff --git a/src/devices/machine/s_smp.h b/src/devices/machine/s_smp.h index 45f83755507..9fd462ce5c1 100644 --- a/src/devices/machine/s_smp.h +++ b/src/devices/machine/s_smp.h @@ -28,8 +28,8 @@ class s_smp_device : public spc700_device protected: tiny_rom_entry const *device_rom_region() const override; - 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 device_clock_changed() override; TIMER_CALLBACK_MEMBER(update_timers); @@ -78,7 +78,7 @@ class s_smp_device : public spc700_device devcb_read8 m_dsp_io_r_cb; devcb_write8 m_dsp_io_w_cb; - void internal_map(address_map &map); + void internal_map(address_map &map) ATTR_COLD; }; DECLARE_DEVICE_TYPE(S_SMP, s_smp_device) diff --git a/src/devices/machine/sa1110.h b/src/devices/machine/sa1110.h index dcfd232f1f3..892107878f3 100644 --- a/src/devices/machine/sa1110.h +++ b/src/devices/machine/sa1110.h @@ -45,12 +45,12 @@ class sa1110_periphs_device : public device_t, public device_serial_interface auto uart3_tx_out() { return m_uart3_tx_out.bind(); } - void map(address_map &map); + void map(address_map &map) ATTR_COLD; protected: - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; static constexpr u32 INTERNAL_OSC = 3686400; diff --git a/src/devices/machine/sa1111.h b/src/devices/machine/sa1111.h index 20ed6a0ac8b..9c09d47ec4e 100644 --- a/src/devices/machine/sa1111.h +++ b/src/devices/machine/sa1111.h @@ -45,12 +45,12 @@ class sa1111_device : public device_t void l3wd_in(int state); - void map(address_map &map); + void map(address_map &map) ATTR_COLD; protected: - 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; void set_irq_line(uint32_t line, int state); void update_interrupts(); diff --git a/src/devices/machine/saa1043.h b/src/devices/machine/saa1043.h index 3a5851d0f42..3cd2b3779aa 100644 --- a/src/devices/machine/saa1043.h +++ b/src/devices/machine/saa1043.h @@ -99,8 +99,8 @@ class saa1043_device : public device_t 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; TIMER_CALLBACK_MEMBER(toggle_v2); diff --git a/src/devices/machine/saa5070.h b/src/devices/machine/saa5070.h index 5561e596517..1b17845543e 100644 --- a/src/devices/machine/saa5070.h +++ b/src/devices/machine/saa5070.h @@ -66,8 +66,8 @@ class saa5070_uart_device : public device_t, public device_serial_interface void write_dcd(int state); protected: - 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 rcv_callback() override; virtual void rcv_complete() override; virtual void tra_callback() override; @@ -116,9 +116,9 @@ class saa5070_device : public device_t protected: // device_t overrides - 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; private: required_device m_line_uart; diff --git a/src/devices/machine/saa7191.h b/src/devices/machine/saa7191.h index 42c1182e1f2..8d2beb2bc29 100644 --- a/src/devices/machine/saa7191.h +++ b/src/devices/machine/saa7191.h @@ -37,8 +37,8 @@ class saa7191_device : public device_t 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; private: void reg_w(uint8_t data); diff --git a/src/devices/machine/scc2698b.h b/src/devices/machine/scc2698b.h index d883b45d0b9..19ffd6d955c 100644 --- a/src/devices/machine/scc2698b.h +++ b/src/devices/machine/scc2698b.h @@ -47,8 +47,8 @@ class scc2698b_channel : public device_t, public device_serial_interface protected: static constexpr unsigned SCC2698B_RX_FIFO_SIZE = 3; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; // devcb_write_line write_tx, write_mpp1, write_mpp2, write_mpo; @@ -78,7 +78,7 @@ class scc2698b_device : public device_t public: scc2698b_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - virtual void map(address_map &map); + virtual void map(address_map &map) ATTR_COLD; void write(offs_t offset, u8 data); uint8_t read(offs_t offset); @@ -112,9 +112,9 @@ class scc2698b_device : public device_t template auto mpo_callback() { return write_mpo[Port - 'a'].bind(); } protected: - 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; devcb_write_line write_intr_A, write_intr_B, write_intr_C, write_intr_D; devcb_write_line::array<8> write_tx; diff --git a/src/devices/machine/scc66470.h b/src/devices/machine/scc66470.h index d5a5700b304..f5eeaf63215 100644 --- a/src/devices/machine/scc66470.h +++ b/src/devices/machine/scc66470.h @@ -39,12 +39,12 @@ class scc66470_device : public device_t, public device_memory_interface, public int dram_dtack_cycles(); void dram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); uint16_t dram_r(offs_t offset, uint16_t mem_mask = ~0); - void map(address_map &map); + void map(address_map &map) ATTR_COLD; void set_vectors(uint16_t *src); protected: - 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 space_config_vector memory_space_config() const override; devcb_write_line m_irqcallback; @@ -71,7 +71,7 @@ class scc66470_device : public device_t, public device_memory_interface, public uint8_t m_csr_r; private: - void scc66470_vram(address_map &map); + void scc66470_vram(address_map &map) ATTR_COLD; void set_vsr(uint32_t vsr); void set_dcp(uint32_t dcp); uint32_t get_vsr(); diff --git a/src/devices/machine/scc68070.h b/src/devices/machine/scc68070.h index c0240163e55..8b93454c6a9 100644 --- a/src/devices/machine/scc68070.h +++ b/src/devices/machine/scc68070.h @@ -191,8 +191,8 @@ class scc68070_device : public scc68070_base_device protected: // 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; virtual void device_config_complete() override; // device_execute_interface implementation @@ -200,8 +200,8 @@ class scc68070_device : public scc68070_base_device virtual u64 execute_cycles_to_clocks(u64 cycles) const noexcept override { return (cycles * 2); } private: - void internal_map(address_map &map); - void cpu_space_map(address_map &map); + void internal_map(address_map &map) ATTR_COLD; + void cpu_space_map(address_map &map) ATTR_COLD; void reset_peripherals(int state); diff --git a/src/devices/machine/sci4.h b/src/devices/machine/sci4.h index 8790f814cc8..21452de5aee 100644 --- a/src/devices/machine/sci4.h +++ b/src/devices/machine/sci4.h @@ -20,11 +20,11 @@ class sci4_device : public device_t // irq line numbers are 0..3 template auto write_irq() { return m_irq[irq].bind(); } - void map(address_map &map); + void map(address_map &map) ATTR_COLD; protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; protected: devcb_write_line::array<7> m_tx; diff --git a/src/devices/machine/scn_pci.h b/src/devices/machine/scn_pci.h index de3a5c712b6..a1d3e7cb5b8 100644 --- a/src/devices/machine/scn_pci.h +++ b/src/devices/machine/scn_pci.h @@ -103,8 +103,8 @@ class scn_pci_device : public device_t scn_pci_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, const u16 *br_div, bool is_enhanced, bool is_aci); // 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; // receiver helpers virtual void set_rxrdy(bool state); diff --git a/src/devices/machine/scnxx562.h b/src/devices/machine/scnxx562.h index c9ac458b44c..134cf88a390 100644 --- a/src/devices/machine/scnxx562.h +++ b/src/devices/machine/scnxx562.h @@ -150,8 +150,8 @@ class duscc_channel : public device_t, public device_serial_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; // device_serial_interface overrides virtual void tra_callback() override; @@ -590,9 +590,9 @@ class duscc_device : public device_t, public device_z80daisy_interface duscc_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, uint32_t variant); // device-level overrides - 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; // internal interrupt management void check_interrupts(); diff --git a/src/devices/machine/scoop.h b/src/devices/machine/scoop.h index 1fb0edaae66..818b31a702b 100644 --- a/src/devices/machine/scoop.h +++ b/src/devices/machine/scoop.h @@ -23,8 +23,8 @@ class scoop_device : public device_t void write(offs_t offset, uint32_t data); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; void gpio_in(const uint16_t line, const int state); void update_gpio_direction(const uint16_t old_dir); diff --git a/src/devices/machine/sda2006.h b/src/devices/machine/sda2006.h index 4d3ee1b98a0..15c9b06fb37 100644 --- a/src/devices/machine/sda2006.h +++ b/src/devices/machine/sda2006.h @@ -25,8 +25,8 @@ class sda2006_device : public device_t, protected: // device-level overrides virtual void device_validity_check(validity_checker &valid) const override; - 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 nvram_default() override; virtual bool nvram_read(util::read_stream &file) override; diff --git a/src/devices/machine/sdlc.h b/src/devices/machine/sdlc.h index 6f68c44cfc0..065f8df118f 100644 --- a/src/devices/machine/sdlc.h +++ b/src/devices/machine/sdlc.h @@ -67,8 +67,8 @@ class sdlc_logger_device : public device_t, public device_sdlc_consumer_interfac void clock_active(int state) { m_clock_active = state ? 1U : 0U; } protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; using device_t::logerror; diff --git a/src/devices/machine/sega_scu.h b/src/devices/machine/sega_scu.h index f66f65df0d4..77e4f8d941c 100644 --- a/src/devices/machine/sega_scu.h +++ b/src/devices/machine/sega_scu.h @@ -44,7 +44,7 @@ class sega_scu_device : public device_t sega_scu_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // I/O operations - void regs_map(address_map &map); + void regs_map(address_map &map) ATTR_COLD; void vblank_out_w(int state); void vblank_in_w(int state); @@ -59,9 +59,9 @@ class sega_scu_device : public device_t protected: // device-level overrides //virtual void device_validity_check(validity_checker &valid) const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; virtual void device_reset_after_children() override; template TIMER_CALLBACK_MEMBER(dma_tick); diff --git a/src/devices/machine/segacrp2_device.h b/src/devices/machine/segacrp2_device.h index a64f3fa5fe0..0ed1e803a24 100644 --- a/src/devices/machine/segacrp2_device.h +++ b/src/devices/machine/segacrp2_device.h @@ -17,7 +17,7 @@ class segacrp2_z80_device : public z80_device protected: segacrp2_z80_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_start() override ATTR_COLD; virtual void decrypt() = 0; required_shared_ptr m_decrypted; diff --git a/src/devices/machine/segacrpt_device.h b/src/devices/machine/segacrpt_device.h index f47f4d3d3ca..559bee34655 100644 --- a/src/devices/machine/segacrpt_device.h +++ b/src/devices/machine/segacrpt_device.h @@ -24,8 +24,8 @@ class segacrpt_z80_device : public z80_device protected: segacrpt_z80_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 void decrypt() = 0; const char* m_decrypted_tag = nullptr; diff --git a/src/devices/machine/sensorboard.h b/src/devices/machine/sensorboard.h index 90347f31843..c786ba63def 100644 --- a/src/devices/machine/sensorboard.h +++ b/src/devices/machine/sensorboard.h @@ -83,11 +83,11 @@ class sensorboard_device : public device_t, public device_nvram_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 device_post_load() override { refresh(); } - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; // device_nvram_interface overrides virtual void nvram_default() override; diff --git a/src/devices/machine/sis5513_ide.h b/src/devices/machine/sis5513_ide.h index 58a1ef0beb6..7ad5191a1bb 100644 --- a/src/devices/machine/sis5513_ide.h +++ b/src/devices/machine/sis5513_ide.h @@ -29,16 +29,16 @@ class sis5513_ide_device : public pci_device auto irq_sec() { return m_irq_sec_callback.bind(); } protected: - 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; // virtual void reset_all_mappings() override; // virtual void map_extra(uint64_t memory_window_start, uint64_t memory_window_end, uint64_t memory_offset, address_space *memory_space, // uint64_t io_window_start, uint64_t io_window_end, uint64_t io_offset, address_space *io_space) override; - virtual void config_map(address_map &map) override; + virtual void config_map(address_map &map) override ATTR_COLD; private: required_device m_ide1; @@ -47,11 +47,11 @@ class sis5513_ide_device : public pci_device devcb_write_line m_irq_sec_callback; required_address_space m_bus_master_space; - void ide1_command_map(address_map &map); - void ide1_control_map(address_map &map); - void ide2_command_map(address_map &map); - void ide2_control_map(address_map &map); - void bus_master_ide_control_map(address_map &map); + void ide1_command_map(address_map &map) ATTR_COLD; + void ide1_control_map(address_map &map) ATTR_COLD; + void ide2_command_map(address_map &map) ATTR_COLD; + void ide2_control_map(address_map &map) ATTR_COLD; + void bus_master_ide_control_map(address_map &map) ATTR_COLD; bool ide1_mode(); bool ide2_mode(); @@ -78,7 +78,7 @@ class sis5513_ide_device : public pci_device uint8_t ide2_read_cs1_r(); void ide2_write_cs1_w(uint8_t data); -// void compatible_io_map(address_map &map); +// void compatible_io_map(address_map &map) ATTR_COLD; void flush_ide_mode(); u8 unmap_log_r(offs_t offset); diff --git a/src/devices/machine/sis630_gui.h b/src/devices/machine/sis630_gui.h index c8c9d5dde5e..36cc02686cb 100644 --- a/src/devices/machine/sis630_gui.h +++ b/src/devices/machine/sis630_gui.h @@ -14,26 +14,26 @@ class sis630_gui_device : public pci_device public: sis630_gui_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - void legacy_memory_map(address_map &map); - void legacy_io_map(address_map &map); + void legacy_memory_map(address_map &map) ATTR_COLD; + void legacy_io_map(address_map &map) ATTR_COLD; protected: - 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; - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; // virtual void reset_all_mappings() override; virtual void map_extra(uint64_t memory_window_start, uint64_t memory_window_end, uint64_t memory_offset, address_space *memory_space, uint64_t io_window_start, uint64_t io_window_end, uint64_t io_offset, address_space *io_space) override; - virtual void config_map(address_map &map) override; + virtual void config_map(address_map &map) override ATTR_COLD; - void memory_map(address_map &map); - void io_map(address_map &map); - void space_io_map(address_map &map); + void memory_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; + void space_io_map(address_map &map) ATTR_COLD; private: required_device m_vga; @@ -80,8 +80,8 @@ class sis630_bridge_device : public pci_bridge_device sis630_bridge_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - 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 map_extra(uint64_t memory_window_start, uint64_t memory_window_end, uint64_t memory_offset, address_space *memory_space, uint64_t io_window_start, uint64_t io_window_end, uint64_t io_offset, address_space *io_space) override; diff --git a/src/devices/machine/sis630_host.h b/src/devices/machine/sis630_host.h index 46efc0ed803..c9ab299f4d6 100644 --- a/src/devices/machine/sis630_host.h +++ b/src/devices/machine/sis630_host.h @@ -29,9 +29,9 @@ class sis630_host_device : public pci_host_device protected: - 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; virtual bool map_first() const override { return true; } @@ -40,9 +40,9 @@ class sis630_host_device : public pci_host_device virtual void map_extra(uint64_t memory_window_start, uint64_t memory_window_end, uint64_t memory_offset, address_space *memory_space, uint64_t io_window_start, uint64_t io_window_end, uint64_t io_offset, address_space *io_space) override; - virtual void config_map(address_map &map) override; + virtual void config_map(address_map &map) override ATTR_COLD; - void memory_map(address_map &map); + void memory_map(address_map &map) ATTR_COLD; private: required_device m_host_cpu; diff --git a/src/devices/machine/sis7001_usb.h b/src/devices/machine/sis7001_usb.h index 7dc1b97e123..ba595cc41f7 100644 --- a/src/devices/machine/sis7001_usb.h +++ b/src/devices/machine/sis7001_usb.h @@ -27,18 +27,18 @@ class sis7001_usb_device : public pci_device static constexpr feature_type unemulated_features() { return feature::MEDIA; } protected: - 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; // virtual void reset_all_mappings() override; virtual void map_extra(uint64_t memory_window_start, uint64_t memory_window_end, uint64_t memory_offset, address_space *memory_space, uint64_t io_window_start, uint64_t io_window_end, uint64_t io_offset, address_space *io_space) override; - virtual void config_map(address_map &map) override; + virtual void config_map(address_map &map) override ATTR_COLD; - void map(address_map &map); + void map(address_map &map) ATTR_COLD; private: u8 m_downstream_ports; diff --git a/src/devices/machine/sis7018_audio.h b/src/devices/machine/sis7018_audio.h index 5f50316015f..b3d27c8f62e 100644 --- a/src/devices/machine/sis7018_audio.h +++ b/src/devices/machine/sis7018_audio.h @@ -18,26 +18,26 @@ class sis7018_audio_device : public pci_device static constexpr feature_type unemulated_features() { return feature::SOUND; } protected: - 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; // virtual void reset_all_mappings() override; virtual void map_extra(uint64_t memory_window_start, uint64_t memory_window_end, uint64_t memory_offset, address_space *memory_space, uint64_t io_window_start, uint64_t io_window_end, uint64_t io_offset, address_space *io_space) override; - virtual void config_map(address_map &map) override; + virtual void config_map(address_map &map) override ATTR_COLD; - void memory_map(address_map &map); - void io_map(address_map &map); + void memory_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; private: required_device m_joy; virtual u8 capptr_r() override; - void gameport_map(address_map &map); + void gameport_map(address_map &map) ATTR_COLD; u32 pmc_id_r(); // void pmc_status_r(); diff --git a/src/devices/machine/sis85c496.h b/src/devices/machine/sis85c496.h index 47cb0729655..c6e914ddb46 100644 --- a/src/devices/machine/sis85c496.h +++ b/src/devices/machine/sis85c496.h @@ -66,9 +66,9 @@ class sis85c496_host_device : public pci_host_device { void pc_irq15_w(int state); protected: - 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; virtual void device_config_complete() override; void map_bios(address_space *memory_space, uint32_t start, uint32_t end); @@ -79,7 +79,7 @@ class sis85c496_host_device : public pci_host_device { virtual void map_extra(uint64_t memory_window_start, uint64_t memory_window_end, uint64_t memory_offset, address_space *memory_space, uint64_t io_window_start, uint64_t io_window_end, uint64_t io_offset, address_space *io_space) override; - virtual void config_map(address_map &map) override; + virtual void config_map(address_map &map) override ATTR_COLD; private: required_device m_maincpu; @@ -120,7 +120,7 @@ class sis85c496_host_device : public pci_host_device { uint16_t m_ide_vesa_ctrl; u8 m_dram_boundary[8]{}; - void internal_io_map(address_map &map); + void internal_io_map(address_map &map) ATTR_COLD; uint8_t dram_config_r() { return m_dram_config; } void dram_config_w(uint8_t data) { m_dram_config = data; remap_cb(); } diff --git a/src/devices/machine/sis900_eth.h b/src/devices/machine/sis900_eth.h index 4d5fb46f2bd..0c7d048e9e2 100644 --- a/src/devices/machine/sis900_eth.h +++ b/src/devices/machine/sis900_eth.h @@ -17,21 +17,21 @@ class sis900_eth_device : public pci_device static constexpr feature_type unemulated_features() { return feature::LAN; } protected: - 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; - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; // virtual void reset_all_mappings() override; virtual void map_extra(uint64_t memory_window_start, uint64_t memory_window_end, uint64_t memory_offset, address_space *memory_space, uint64_t io_window_start, uint64_t io_window_end, uint64_t io_offset, address_space *io_space) override; - virtual void config_map(address_map &map) override; + virtual void config_map(address_map &map) override ATTR_COLD; - void memory_map(address_map &map); - void io_map(address_map &map); + void memory_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; private: required_device m_eeprom; diff --git a/src/devices/machine/sis950_lpc.h b/src/devices/machine/sis950_lpc.h index 286241a8c25..0fc870a0bf2 100644 --- a/src/devices/machine/sis950_lpc.h +++ b/src/devices/machine/sis950_lpc.h @@ -65,8 +65,8 @@ class sis950_lpc_device : public pci_device void pc_irq15_w(int state); protected: - virtual void device_reset() override; - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_reset() override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual void device_config_complete() override; // virtual void reset_all_mappings() override; @@ -74,10 +74,10 @@ class sis950_lpc_device : public pci_device virtual void map_extra(uint64_t memory_window_start, uint64_t memory_window_end, uint64_t memory_offset, address_space *memory_space, uint64_t io_window_start, uint64_t io_window_end, uint64_t io_offset, address_space *io_space) override; - virtual void config_map(address_map &map) override; + virtual void config_map(address_map &map) override ATTR_COLD; - template void memory_map(address_map &map); - void io_map(address_map &map); + template void memory_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; virtual bool map_first() const override { return true; } diff --git a/src/devices/machine/sis950_smbus.h b/src/devices/machine/sis950_smbus.h index a474fe10914..7a924b754a7 100644 --- a/src/devices/machine/sis950_smbus.h +++ b/src/devices/machine/sis950_smbus.h @@ -11,11 +11,11 @@ class sis950_smbus_device : public device_t { sis950_smbus_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - void map(address_map &map); + void map(address_map &map) ATTR_COLD; protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: u8 smb_sts_r(); diff --git a/src/devices/machine/smartboard.h b/src/devices/machine/smartboard.h index 5258b154cc2..9688b897616 100644 --- a/src/devices/machine/smartboard.h +++ b/src/devices/machine/smartboard.h @@ -29,9 +29,9 @@ class tasc_sb30_device : public device_t protected: // device-level overrides - virtual void device_start() override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual void device_start() override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; private: required_device m_board; diff --git a/src/devices/machine/smc91c9x.h b/src/devices/machine/smc91c9x.h index e1c91a3e566..b1c7659558d 100644 --- a/src/devices/machine/smc91c9x.h +++ b/src/devices/machine/smc91c9x.h @@ -38,8 +38,8 @@ class smc91c9x_device : public device_t,public device_network_interface smc91c9x_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, dev_type device_type); // 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; // device_network_interface overrides virtual void send_complete_cb(int result) override; diff --git a/src/devices/machine/smioc.h b/src/devices/machine/smioc.h index 73dd874d149..17547864ac1 100644 --- a/src/devices/machine/smioc.h +++ b/src/devices/machine/smioc.h @@ -103,11 +103,11 @@ class smioc_device : public device_t 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; /* 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; TIMER_CALLBACK_MEMBER(raise_drq); TIMER_CALLBACK_MEMBER(raise_int1); @@ -129,7 +129,7 @@ class smioc_device : public device_t u8 m_logic_ram[4096]; // 4kb of ram in the 0x4xxxx window, mainly used by the board's logic to proxy command parameters and data. - void smioc_mem(address_map &map); + void smioc_mem(address_map &map) ATTR_COLD; void update_and_log(u16& reg, u16 newValue, const char* register_name); diff --git a/src/devices/machine/smpc.h b/src/devices/machine/smpc.h index 26f43176a7d..873998b71aa 100644 --- a/src/devices/machine/smpc.h +++ b/src/devices/machine/smpc.h @@ -32,7 +32,7 @@ class smpc_hle_device : public device_t, smpc_hle_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // I/O operations -// void io_map(address_map &map); +// void io_map(address_map &map) ATTR_COLD; uint8_t read(offs_t offset); void write(offs_t offset, uint8_t data); @@ -85,9 +85,9 @@ class smpc_hle_device : public device_t, protected: // device-level overrides // virtual void device_validity_check(validity_checker &valid) const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; virtual space_config_vector memory_space_config() const override; // device_rtc_interface overrides @@ -177,7 +177,7 @@ class smpc_hle_device : public device_t, required_device m_screen; - void smpc_regs(address_map &map); + void smpc_regs(address_map &map) ATTR_COLD; void ireg_w(offs_t offset, uint8_t data); void command_register_w(uint8_t data); diff --git a/src/devices/machine/spchrom.h b/src/devices/machine/spchrom.h index f84350da358..c070fa31eac 100644 --- a/src/devices/machine/spchrom.h +++ b/src/devices/machine/spchrom.h @@ -25,7 +25,7 @@ class speechrom_device : public device_t protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: uint8_t *m_speechrom_data; /* pointer to speech ROM data */ diff --git a/src/devices/machine/spg110.h b/src/devices/machine/spg110.h index f555c4ac736..6e087e75117 100644 --- a/src/devices/machine/spg110.h +++ b/src/devices/machine/spg110.h @@ -45,11 +45,11 @@ class spg110_device : public unsp_device, public device_mixer_interface protected: spg110_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, address_map_constructor internal); - void internal_map(address_map &map); + void internal_map(address_map &map) ATTR_COLD; - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: required_device m_screen; diff --git a/src/devices/machine/spg110_video.h b/src/devices/machine/spg110_video.h index c1bcc60395c..9f45f4326b8 100644 --- a/src/devices/machine/spg110_video.h +++ b/src/devices/machine/spg110_video.h @@ -29,7 +29,7 @@ class spg110_video_device : public device_t, public device_memory_interface void set_video_irq_spidman(bool is_spiderman) { m_is_spiderman = is_spiderman; } - void map_video(address_map &map); + void map_video(address_map &map) ATTR_COLD; uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); void vblank(int state); @@ -88,10 +88,10 @@ class spg110_video_device : public device_t, public device_memory_interface auto write_video_irq_callback() { return m_video_irq_cb.bind(); } protected: - 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 device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual space_config_vector memory_space_config() const override; diff --git a/src/devices/machine/spg290_cdservo.h b/src/devices/machine/spg290_cdservo.h index 2f44e96b353..9891be71e03 100644 --- a/src/devices/machine/spg290_cdservo.h +++ b/src/devices/machine/spg290_cdservo.h @@ -29,8 +29,8 @@ class spg290_cdservo_device : public device_t auto space_write_cb() { return m_space_write_cb.bind(); } protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; TIMER_CALLBACK_MEMBER(cd_update); diff --git a/src/devices/machine/spg290_i2c.h b/src/devices/machine/spg290_i2c.h index 2dca1d145f4..bc5fbd81a28 100644 --- a/src/devices/machine/spg290_i2c.h +++ b/src/devices/machine/spg290_i2c.h @@ -20,8 +20,8 @@ class spg290_i2c_device : public device_t auto i2c_write_cb() { return m_i2c_write_cb.bind(); } protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; TIMER_CALLBACK_MEMBER(i2c_update); diff --git a/src/devices/machine/spg290_ppu.h b/src/devices/machine/spg290_ppu.h index 83960abe6d6..2b19eb2f120 100644 --- a/src/devices/machine/spg290_ppu.h +++ b/src/devices/machine/spg290_ppu.h @@ -24,13 +24,13 @@ class spg290_ppu_device : public device_t uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); void screen_vblank(int state); - void map(address_map &map); + void map(address_map &map) ATTR_COLD; auto vblank_irq_cb() { return m_vblank_irq_cb.bind(); } auto space_read_cb() { return m_space_read_cb.bind(); } protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; uint32_t regs_r(offs_t offset, uint32_t mem_mask); void regs_w(offs_t offset, uint32_t data, uint32_t mem_mask); diff --git a/src/devices/machine/spg290_timer.h b/src/devices/machine/spg290_timer.h index 486011cb90b..1fd2cdccc4c 100644 --- a/src/devices/machine/spg290_timer.h +++ b/src/devices/machine/spg290_timer.h @@ -18,8 +18,8 @@ class spg290_timer_device : public device_t auto irq_cb() { return m_irq_cb.bind(); } protected: - 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 device_clock_changed() override; TIMER_CALLBACK_MEMBER(timer_update); diff --git a/src/devices/machine/spg2xx.h b/src/devices/machine/spg2xx.h index fab0da8a874..cebe7c331ec 100644 --- a/src/devices/machine/spg2xx.h +++ b/src/devices/machine/spg2xx.h @@ -80,7 +80,7 @@ class spg2xx_device : public unsp_device, public device_mixer_interface protected: spg2xx_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, uint16_t sprite_limit, address_map_constructor internal); - void internal_map(address_map &map); + void internal_map(address_map &map) ATTR_COLD; void fiq_vector_w(uint8_t data); void videoirq_w(int state); @@ -94,8 +94,8 @@ class spg2xx_device : public unsp_device, public device_mixer_interface uint16_t space_r(offs_t offset); - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; // TODO: these are fixed values, put them in relevant devices? uint16_t m_sprite_limit; @@ -161,7 +161,7 @@ class spg24x_device : public spg2xx_device spg24x_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; diff --git a/src/devices/machine/spg2xx_audio.h b/src/devices/machine/spg2xx_audio.h index eba06f95788..4834d9b965d 100644 --- a/src/devices/machine/spg2xx_audio.h +++ b/src/devices/machine/spg2xx_audio.h @@ -339,9 +339,9 @@ class spg2xx_audio_device : public device_t, public device_sound_interface void check_irqs(const uint16_t changed); - virtual void device_start() override; - virtual void device_reset() override; - virtual void device_stop() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; + virtual void device_stop() override ATTR_COLD; uint16_t read_space(offs_t offset); @@ -407,7 +407,7 @@ class sunplus_gcm394_audio_device : public spg2xx_audio_device uint16_t control_r(offs_t offset); void control_w(offs_t offset, uint16_t data); - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: uint16_t control_group16_r(uint8_t group, uint8_t offset); diff --git a/src/devices/machine/spg2xx_io.h b/src/devices/machine/spg2xx_io.h index c674ae72e6b..208f224b1e6 100644 --- a/src/devices/machine/spg2xx_io.h +++ b/src/devices/machine/spg2xx_io.h @@ -156,8 +156,8 @@ class spg2xx_io_device : public device_t void check_tmb_lofreq_key_irq(); void check_all_irqs(const uint16_t changed); - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; TIMER_CALLBACK_MEMBER(timer_ab_tick); TIMER_CALLBACK_MEMBER(timer_c_tick); diff --git a/src/devices/machine/spg2xx_sysdma.h b/src/devices/machine/spg2xx_sysdma.h index 3264d97ce66..2f3f0918212 100644 --- a/src/devices/machine/spg2xx_sysdma.h +++ b/src/devices/machine/spg2xx_sysdma.h @@ -31,8 +31,8 @@ class spg2xx_sysdma_device : public device_t void dma_w(offs_t offset, uint16_t data); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: void do_cpu_dma(uint32_t len); diff --git a/src/devices/machine/spg2xx_video.h b/src/devices/machine/spg2xx_video.h index 69a96b449c3..a68d4982afa 100644 --- a/src/devices/machine/spg2xx_video.h +++ b/src/devices/machine/spg2xx_video.h @@ -35,9 +35,9 @@ class spg2xx_video_device : public device_t auto write_video_irq_callback() { return m_video_irq_cb.bind(); } protected: - 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; void check_video_irq(); TIMER_CALLBACK_MEMBER(screenpos_hit); diff --git a/src/devices/machine/spg_renderer.h b/src/devices/machine/spg_renderer.h index 23a6a515106..b774eacf032 100644 --- a/src/devices/machine/spg_renderer.h +++ b/src/devices/machine/spg_renderer.h @@ -57,8 +57,8 @@ class spg_renderer_device : public device_t protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; enum blend_enable_t : const bool { diff --git a/src/devices/machine/spi_sdcard.h b/src/devices/machine/spi_sdcard.h index 0d8a7cbdc7f..d8d4e698969 100644 --- a/src/devices/machine/spi_sdcard.h +++ b/src/devices/machine/spi_sdcard.h @@ -29,9 +29,9 @@ class spi_sdcard_device : public device_t spi_sdcard_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; required_device m_image; diff --git a/src/devices/machine/spifi3.h b/src/devices/machine/spifi3.h index 6afa51ded06..f0e39d654cc 100644 --- a/src/devices/machine/spifi3.h +++ b/src/devices/machine/spifi3.h @@ -36,7 +36,7 @@ class spifi3_device { public: spifi3_device(machine_config const &mconfig, char const *tag, device_t *owner, u32 clock); - void map(address_map &map); + void map(address_map &map) ATTR_COLD; auto irq_handler_cb() { return m_irq_handler.bind(); } auto drq_handler_cb() { return m_drq_handler.bind(); } @@ -45,7 +45,7 @@ class spifi3_device void dma_w(uint8_t val); protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void scsi_ctrl_changed() override; private: diff --git a/src/devices/machine/steppers.h b/src/devices/machine/steppers.h index fc9e5822870..06ca8ad2b6c 100644 --- a/src/devices/machine/steppers.h +++ b/src/devices/machine/steppers.h @@ -82,8 +82,8 @@ class stepper_device : public device_t stepper_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock = 0); // 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; uint8_t m_pattern; /* coil pattern */ uint8_t m_old_pattern; /* old coil pattern */ @@ -112,7 +112,7 @@ class reel_device : public stepper_device reel_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void advance_phase() override; void set_reel_type(uint8_t type) diff --git a/src/devices/machine/strata.h b/src/devices/machine/strata.h index 0c6f487c50e..befb07d3c9b 100644 --- a/src/devices/machine/strata.h +++ b/src/devices/machine/strata.h @@ -21,7 +21,7 @@ class strataflash_device : public device_t, public device_nvram_interface protected: // device-level overrides - void device_start() override; + void device_start() override ATTR_COLD; void nvram_default() override; bool nvram_read(util::read_stream &file) override; diff --git a/src/devices/machine/stvcd.h b/src/devices/machine/stvcd.h index 98859d9356f..9f510fa2449 100644 --- a/src/devices/machine/stvcd.h +++ b/src/devices/machine/stvcd.h @@ -29,16 +29,16 @@ class stvcd_device : public device_t, void set_tray_close(); protected: - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; - virtual void device_stop() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; + virtual void device_stop() override ATTR_COLD; virtual space_config_vector memory_space_config() const override; private: const address_space_config m_space_config; - void io_regs(address_map &map); + void io_regs(address_map &map) ATTR_COLD; TIMER_DEVICE_CALLBACK_MEMBER( stv_sector_cb ); TIMER_DEVICE_CALLBACK_MEMBER( stv_sh1_sim ); diff --git a/src/devices/machine/sun4c_mmu.h b/src/devices/machine/sun4c_mmu.h index 87db83ec4a7..2a3da5b6d6f 100644 --- a/src/devices/machine/sun4c_mmu.h +++ b/src/devices/machine/sun4c_mmu.h @@ -99,8 +99,8 @@ class sun4_mmu_base_device : public device_t, public sparc_mmu_interface protected: sun4_mmu_base_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; TIMER_CALLBACK_MEMBER(reset_off_tick); diff --git a/src/devices/machine/swim1.h b/src/devices/machine/swim1.h index f3a1074b3b7..ab4e4d913c4 100644 --- a/src/devices/machine/swim1.h +++ b/src/devices/machine/swim1.h @@ -33,8 +33,8 @@ class swim1_device : public applefdintf_device virtual void sync() override; protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; TIMER_CALLBACK_MEMBER(update); diff --git a/src/devices/machine/swim2.h b/src/devices/machine/swim2.h index ef600c0a0a9..3f7ad4ccad3 100644 --- a/src/devices/machine/swim2.h +++ b/src/devices/machine/swim2.h @@ -34,8 +34,8 @@ class swim2_device : public applefdintf_device virtual void sync() override; protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: enum { diff --git a/src/devices/machine/swim3.h b/src/devices/machine/swim3.h index 61e280850e0..128274f7dc4 100644 --- a/src/devices/machine/swim3.h +++ b/src/devices/machine/swim3.h @@ -40,8 +40,8 @@ class swim3_device : public applefdintf_device virtual void sync() override; protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; TIMER_CALLBACK_MEMBER(update); diff --git a/src/devices/machine/swtpc8212.h b/src/devices/machine/swtpc8212.h index 1a59160d342..490892c4ba8 100644 --- a/src/devices/machine/swtpc8212.h +++ b/src/devices/machine/swtpc8212.h @@ -36,17 +36,17 @@ class swtpc8212_device : public device_t protected: swtpc8212_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 void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; - virtual const tiny_rom_entry *device_rom_region() const override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; TIMER_CALLBACK_MEMBER(bell_off); private: - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_pia0; diff --git a/src/devices/machine/tc009xlvc.h b/src/devices/machine/tc009xlvc.h index c4be5989a78..fc18dd1904f 100644 --- a/src/devices/machine/tc009xlvc.h +++ b/src/devices/machine/tc009xlvc.h @@ -51,16 +51,16 @@ class tc0090lvc_device : public z80_device, public device_gfx_interface virtual u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); virtual void screen_eof(); - void cpu_map(address_map &map); + void cpu_map(address_map &map) ATTR_COLD; protected: tc0090lvc_device(const machine_config &mconfig, device_type &type, const char *tag, device_t *owner, u32 clock); // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual void device_post_load() override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; // device_config_memory_interface overrides virtual space_config_vector memory_space_config() const override; @@ -86,7 +86,7 @@ class tc0090lvc_device : public z80_device, public device_gfx_interface template TILE_GET_INFO_MEMBER(get_tile_info); TILE_GET_INFO_MEMBER(get_tx_tile_info); - void vram_map(address_map &map); + void vram_map(address_map &map) ATTR_COLD; u8 m_bg_scroll[2][4]; diff --git a/src/devices/machine/tc9223.h b/src/devices/machine/tc9223.h index bac0d07d691..ffdbaaab88c 100644 --- a/src/devices/machine/tc9223.h +++ b/src/devices/machine/tc9223.h @@ -17,8 +17,8 @@ class tc9223_device : public device_t void clk_w(int state); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: u16 m_shift; diff --git a/src/devices/machine/tdc1008.h b/src/devices/machine/tdc1008.h index a9a98c420be..d35ec428487 100644 --- a/src/devices/machine/tdc1008.h +++ b/src/devices/machine/tdc1008.h @@ -56,8 +56,8 @@ class tdc1008_device : public device_t 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; void latch_flags(); diff --git a/src/devices/machine/te7750.h b/src/devices/machine/te7750.h index 8417fbce51a..44e22e44fe8 100644 --- a/src/devices/machine/te7750.h +++ b/src/devices/machine/te7750.h @@ -53,8 +53,8 @@ class te7750_device : public device_t te7750_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); // 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; private: // internal helpers diff --git a/src/devices/machine/terminal.h b/src/devices/machine/terminal.h index 098d776e5e0..51783b2bc6c 100644 --- a/src/devices/machine/terminal.h +++ b/src/devices/machine/terminal.h @@ -37,10 +37,10 @@ class generic_terminal_device : public device_t generic_terminal_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, unsigned w, unsigned h); virtual void term_write(uint8_t data); - virtual void device_start() override; - virtual void device_reset() override; - virtual ioport_constructor device_input_ports() 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 ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual void send_key(uint8_t code) { m_keyboard_cb(code); } TIMER_CALLBACK_MEMBER(bell_off); diff --git a/src/devices/machine/ticket.h b/src/devices/machine/ticket.h index 350baf7c4be..b4d6d90d623 100644 --- a/src/devices/machine/ticket.h +++ b/src/devices/machine/ticket.h @@ -51,8 +51,8 @@ class ticket_dispenser_device : public device_t ticket_dispenser_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock = 0); // 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; TIMER_CALLBACK_MEMBER(update_output_state); diff --git a/src/devices/machine/timekpr.h b/src/devices/machine/timekpr.h index 365d1f07a86..3ad28851513 100644 --- a/src/devices/machine/timekpr.h +++ b/src/devices/machine/timekpr.h @@ -47,8 +47,8 @@ class timekeeper_device : public device_t, public device_nvram_interface, public timekeeper_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, u32 size); // 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; // device_nvram_interface overrides virtual void nvram_default() override; diff --git a/src/devices/machine/timer.h b/src/devices/machine/timer.h index 965235c7b6f..9babad3619e 100644 --- a/src/devices/machine/timer.h +++ b/src/devices/machine/timer.h @@ -106,8 +106,8 @@ class timer_device : public device_t private: // device-level overrides virtual void device_validity_check(validity_checker &valid) const override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; TIMER_CALLBACK_MEMBER(generic_tick); TIMER_CALLBACK_MEMBER(scanline_tick); diff --git a/src/devices/machine/tmc0430.h b/src/devices/machine/tmc0430.h index 2e8e58d506b..0459a4794f9 100644 --- a/src/devices/machine/tmc0430.h +++ b/src/devices/machine/tmc0430.h @@ -59,8 +59,8 @@ class tmc0430_device : public device_t bool idle() { return (m_phase == 0 && m_current_clock_level==CLEAR_LINE); } protected: - void device_start() override; - void device_reset() override; + void device_start() override ATTR_COLD; + void device_reset() override ATTR_COLD; private: // Ready callback. This line is usually connected to the READY pin of the CPU. diff --git a/src/devices/machine/tmc0999.h b/src/devices/machine/tmc0999.h index 24305b8d8ee..fff86dc4306 100644 --- a/src/devices/machine/tmc0999.h +++ b/src/devices/machine/tmc0999.h @@ -37,7 +37,7 @@ class tmc0999_device : public device_t protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: // input pins state diff --git a/src/devices/machine/tmc208k.h b/src/devices/machine/tmc208k.h index eb077934eb2..bbb770d13ee 100644 --- a/src/devices/machine/tmc208k.h +++ b/src/devices/machine/tmc208k.h @@ -46,8 +46,8 @@ class tmc208_base_device : public device_t 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; void clock_a(); virtual void clock_b(); diff --git a/src/devices/machine/tms1024.h b/src/devices/machine/tms1024.h index 49193191bfa..1ee09241efb 100644 --- a/src/devices/machine/tms1024.h +++ b/src/devices/machine/tms1024.h @@ -80,7 +80,7 @@ class tms1024_device : public device_t tms1024_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; u8 m_h; // 4-bit data latch u8 m_s; // 3-bit port select diff --git a/src/devices/machine/tms5501.h b/src/devices/machine/tms5501.h index e916141d12c..168d0a9b097 100644 --- a/src/devices/machine/tms5501.h +++ b/src/devices/machine/tms5501.h @@ -63,7 +63,7 @@ class tms5501_device : public device_t, uint8_t get_vector(); - virtual void io_map(address_map &map); + virtual void io_map(address_map &map) ATTR_COLD; uint8_t rb_r(); uint8_t xi_r(); @@ -78,8 +78,8 @@ class tms5501_device : public device_t, 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; // device_serial_interface overrides virtual void tra_callback() override; diff --git a/src/devices/machine/tms6100.h b/src/devices/machine/tms6100.h index b7bfd7b3b45..4d3d747c377 100644 --- a/src/devices/machine/tms6100.h +++ b/src/devices/machine/tms6100.h @@ -102,7 +102,7 @@ class tms6100_device : public device_t tms6100_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; void handle_command(u8 cmd); @@ -135,7 +135,7 @@ class m58819_device : public tms6100_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; }; diff --git a/src/devices/machine/tms9901.h b/src/devices/machine/tms9901.h index 3d4808654a3..2d106c3e328 100644 --- a/src/devices/machine/tms9901.h +++ b/src/devices/machine/tms9901.h @@ -89,9 +89,9 @@ class tms9901_device : public device_t void update_clock(); private: - virtual void device_start() override; - virtual void device_stop() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_stop() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; TIMER_CALLBACK_MEMBER(decrement_tick); diff --git a/src/devices/machine/tms9914.h b/src/devices/machine/tms9914.h index e5d1cb7a5ba..c21cfab5db5 100644 --- a/src/devices/machine/tms9914.h +++ b/src/devices/machine/tms9914.h @@ -92,8 +92,8 @@ class tms9914_device : public device_t private: // 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; TIMER_CALLBACK_MEMBER(fsm_tick); diff --git a/src/devices/machine/tsb12lv01a.h b/src/devices/machine/tsb12lv01a.h index cec65a2c40c..6c51d4f67ba 100644 --- a/src/devices/machine/tsb12lv01a.h +++ b/src/devices/machine/tsb12lv01a.h @@ -30,8 +30,8 @@ class tsb12lv01a_device : public device_t private: // 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; void set_interrupt(uint32_t bit); void check_interrupts(); diff --git a/src/devices/machine/tube.h b/src/devices/machine/tube.h index 079c89cf86d..cc385f7f5bf 100644 --- a/src/devices/machine/tube.h +++ b/src/devices/machine/tube.h @@ -40,8 +40,8 @@ class tube_device : public device_t 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; private: uint8_t m_ph1[24]; diff --git a/src/devices/machine/ucb1200.h b/src/devices/machine/ucb1200.h index 19cf474917b..e07519274bc 100644 --- a/src/devices/machine/ucb1200.h +++ b/src/devices/machine/ucb1200.h @@ -30,8 +30,8 @@ class ucb1200_device : public device_t void write(offs_t offset, uint16_t data); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; void gpio_in(const uint16_t line, const int state); void update_gpio_direction(const uint16_t old_dir); diff --git a/src/devices/machine/upc82c710.h b/src/devices/machine/upc82c710.h index 1c609678dab..114ba758b47 100644 --- a/src/devices/machine/upc82c710.h +++ b/src/devices/machine/upc82c710.h @@ -52,9 +52,9 @@ class upc82c710_device : public device_t protected: // device-level overrides - 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; private: required_device m_ide; diff --git a/src/devices/machine/upc82c711.h b/src/devices/machine/upc82c711.h index 9138b3b7cc5..c42d40a9514 100644 --- a/src/devices/machine/upc82c711.h +++ b/src/devices/machine/upc82c711.h @@ -64,9 +64,9 @@ class upc82c711_device : public device_t protected: // device-level overrides - 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; private: required_device m_ide; diff --git a/src/devices/machine/upd1990a.h b/src/devices/machine/upd1990a.h index ea12da708bb..783f9acce31 100644 --- a/src/devices/machine/upd1990a.h +++ b/src/devices/machine/upd1990a.h @@ -54,7 +54,7 @@ class upd1990a_device : public device_t, public device_rtc_interface // device-level overrides upd1990a_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, uint32_t variant); - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_rtc_interface overrides virtual void rtc_clock_updated(int year, int month, int day, int day_of_week, int hour, int minute, int second) override; diff --git a/src/devices/machine/upd4701.h b/src/devices/machine/upd4701.h index cecc34c3984..a1ecc151331 100644 --- a/src/devices/machine/upd4701.h +++ b/src/devices/machine/upd4701.h @@ -68,7 +68,7 @@ class upd4701_device : public device_t protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: // internal helpers diff --git a/src/devices/machine/upd4991a.h b/src/devices/machine/upd4991a.h index 9a9da912279..c343124e6cb 100644 --- a/src/devices/machine/upd4991a.h +++ b/src/devices/machine/upd4991a.h @@ -34,7 +34,7 @@ class upd4991a_device : public device_t, public device_rtc_interface protected: // device-level overrides virtual void device_validity_check(validity_checker &valid) const override; - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void rtc_clock_updated(int year, int month, int day, int day_of_week, int hour, int minute, int second) override; TIMER_CALLBACK_MEMBER(clock_tick); diff --git a/src/devices/machine/upd4992.h b/src/devices/machine/upd4992.h index 3151aa12eaa..94a844a40f1 100644 --- a/src/devices/machine/upd4992.h +++ b/src/devices/machine/upd4992.h @@ -33,7 +33,7 @@ class upd4992_device : public device_t, public device_rtc_interface protected: // device-level overrides virtual void device_validity_check(validity_checker &valid) const override; - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void rtc_clock_updated(int year, int month, int day, int day_of_week, int hour, int minute, int second) override; TIMER_CALLBACK_MEMBER(clock_tick); diff --git a/src/devices/machine/upd7001.h b/src/devices/machine/upd7001.h index 5494c3d8962..99b524b8ed6 100644 --- a/src/devices/machine/upd7001.h +++ b/src/devices/machine/upd7001.h @@ -63,7 +63,7 @@ class upd7001_device : public device_t protected: // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: // timing helpers diff --git a/src/devices/machine/upd7002.h b/src/devices/machine/upd7002.h index aed7e0bd3f2..7fe1f2ea20b 100644 --- a/src/devices/machine/upd7002.h +++ b/src/devices/machine/upd7002.h @@ -36,8 +36,8 @@ class upd7002_device : public device_t 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; TIMER_CALLBACK_MEMBER(conversion_complete); diff --git a/src/devices/machine/upd7004.h b/src/devices/machine/upd7004.h index 78d7eae559c..12e607720c2 100644 --- a/src/devices/machine/upd7004.h +++ b/src/devices/machine/upd7004.h @@ -48,7 +48,7 @@ class upd7004_device : public device_t void write(offs_t offset, uint8_t data); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; TIMER_CALLBACK_MEMBER(update_state); diff --git a/src/devices/machine/upd71071.h b/src/devices/machine/upd71071.h index 0ccf146f931..033aeae2727 100644 --- a/src/devices/machine/upd71071.h +++ b/src/devices/machine/upd71071.h @@ -30,7 +30,7 @@ class upd71071_device : public device_t protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: struct upd71071_reg diff --git a/src/devices/machine/upd7261.h b/src/devices/machine/upd7261.h index d2c10691950..278bc3fa06b 100644 --- a/src/devices/machine/upd7261.h +++ b/src/devices/machine/upd7261.h @@ -22,11 +22,11 @@ class upd7261_device void tc_w(int state); void head_w(u8 data) { m_head = data; } - void map(address_map &map); + void map(address_map &map) ATTR_COLD; protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; void set_dreq(int state); void set_int(bool state); diff --git a/src/devices/machine/upd765.h b/src/devices/machine/upd765.h index ad18db27cf6..ad5324019ee 100644 --- a/src/devices/machine/upd765.h +++ b/src/devices/machine/upd765.h @@ -61,8 +61,8 @@ class upd765_family_device : public device_t { protected: upd765_family_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; TIMER_CALLBACK_MEMBER(update_floppy); @@ -364,7 +364,7 @@ class upd765a_device : public upd765_family_device { } upd765a_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - virtual void map(address_map &map) override; + virtual void map(address_map &map) override ATTR_COLD; }; class upd765b_device : public upd765_family_device { @@ -377,7 +377,7 @@ class upd765b_device : public upd765_family_device { } upd765b_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - virtual void map(address_map &map) override; + virtual void map(address_map &map) override ATTR_COLD; }; class i8272a_device : public upd765_family_device { @@ -389,7 +389,7 @@ class i8272a_device : public upd765_family_device { } i8272a_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - virtual void map(address_map &map) override; + virtual void map(address_map &map) override ATTR_COLD; }; class i82072_device : public upd765_family_device { @@ -401,10 +401,10 @@ class i82072_device : public upd765_family_device { } i82072_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - virtual void map(address_map &map) override; + virtual void map(address_map &map) override ATTR_COLD; protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; enum motorcfg_mask { @@ -439,8 +439,8 @@ class ps2_fdc_device : public upd765_family_device { protected: ps2_fdc_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 void soft_reset() override; virtual int check_command() override; virtual void execute_command(int cmd) override; @@ -452,7 +452,7 @@ class smc37c78_device : public ps2_fdc_device { public: smc37c78_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - virtual void map(address_map &map) override; + virtual void map(address_map &map) override ATTR_COLD; }; class upd72065_device : public upd765_family_device { @@ -466,7 +466,7 @@ class upd72065_device : public upd765_family_device { upd72065_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - virtual void map(address_map &map) override; + virtual void map(address_map &map) override ATTR_COLD; virtual void auxcmd_w(uint8_t data); protected: @@ -496,21 +496,21 @@ class n82077aa_device : public ps2_fdc_device { } n82077aa_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - virtual void map(address_map &map) override; + virtual void map(address_map &map) override ATTR_COLD; }; class pc_fdc_superio_device : public upd765_family_device { public: pc_fdc_superio_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - virtual void map(address_map &map) override; + virtual void map(address_map &map) override ATTR_COLD; }; class dp8473_device : public upd765_family_device { public: dp8473_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - virtual void map(address_map &map) override; + virtual void map(address_map &map) override ATTR_COLD; protected: virtual void soft_reset() override; @@ -525,7 +525,7 @@ class pc8477a_device : public ps2_fdc_device { } pc8477a_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - virtual void map(address_map &map) override; + virtual void map(address_map &map) override ATTR_COLD; }; class pc8477b_device : public ps2_fdc_device { @@ -537,7 +537,7 @@ class pc8477b_device : public ps2_fdc_device { } pc8477b_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - virtual void map(address_map &map) override; + virtual void map(address_map &map) override ATTR_COLD; }; class wd37c65c_device : public upd765_family_device { @@ -554,7 +554,7 @@ class wd37c65c_device : public upd765_family_device { void set_clock2(uint32_t clock) { m_clock2 = clock; } void set_clock2(const XTAL &xtal) { set_clock2(xtal.value()); } - virtual void map(address_map &map) override; + virtual void map(address_map &map) override ATTR_COLD; virtual uint8_t get_st3(floppy_info &fi) override; private: @@ -568,7 +568,7 @@ class mcs3201_device : public upd765_family_device { // configuration helpers auto input_handler() { return m_input_handler.bind(); } - virtual void map(address_map &map) override; + virtual void map(address_map &map) override ATTR_COLD; uint8_t input_r(); private: @@ -579,12 +579,12 @@ class tc8566af_device : public upd765_family_device { public: tc8566af_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - virtual void map(address_map &map) override; + virtual void map(address_map &map) override ATTR_COLD; void cr1_w(uint8_t data); protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: uint8_t m_cr1; @@ -594,7 +594,7 @@ class hd63266f_device : public upd765_family_device { public: hd63266f_device(const machine_config &mconfig, const char *tag, device_t* owner, uint32_t clock); - virtual void map(address_map &map) override; + virtual void map(address_map &map) override ATTR_COLD; auto inp_rd_callback() { return inp_cb.bind(); } // this is really the ts signal void rate_w(u8 state) { state ? set_rate(500000) : set_rate(250000); } diff --git a/src/devices/machine/v3021.h b/src/devices/machine/v3021.h index d66e6f29792..41a792b9d2d 100644 --- a/src/devices/machine/v3021.h +++ b/src/devices/machine/v3021.h @@ -43,8 +43,8 @@ class v3021_device : public device_t, public device_rtc_interface protected: // device-level overrides virtual void device_validity_check(validity_checker &valid) const override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; // device_rtc_interface overrides virtual bool rtc_feature_y2k() const override { return false; } diff --git a/src/devices/machine/vic_pl192.h b/src/devices/machine/vic_pl192.h index 600ad27ba56..833411acb54 100644 --- a/src/devices/machine/vic_pl192.h +++ b/src/devices/machine/vic_pl192.h @@ -17,7 +17,7 @@ class vic_pl190_device : public device_t, public device_memory_interface template void irq_w(int state) { set_irq_line(IRQ, state); } - void map(address_map &map); + void map(address_map &map) ATTR_COLD; u32 irq_status_r(); u32 fiq_status_r(); @@ -53,8 +53,8 @@ class vic_pl190_device : public device_t, public device_memory_interface vic_pl190_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; virtual space_config_vector memory_space_config() const override; @@ -88,7 +88,7 @@ class vic_upd800468_device : public vic_pl190_device public: vic_upd800468_device(const machine_config &mconfig, const char* tag, device_t *owner, uint32_t clock = 0); - void map(address_map &map); + void map(address_map &map) ATTR_COLD; void int_clear_w(u32 data); }; @@ -98,7 +98,7 @@ class vic_pl192_device : public vic_pl190_device public: vic_pl192_device(const machine_config &mconfig, const char* tag, device_t *owner, uint32_t clock = 0); - void map(address_map &map); + void map(address_map &map) ATTR_COLD; u16 sw_priority_r(); void sw_priority_w(u16 data); @@ -111,8 +111,8 @@ class vic_pl192_device : public vic_pl190_device virtual void update_vector() override; // 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; private: u16 sw_priority_mask; diff --git a/src/devices/machine/vrc4373.h b/src/devices/machine/vrc4373.h index 7717a979e23..ab543ea956e 100644 --- a/src/devices/machine/vrc4373.h +++ b/src/devices/machine/vrc4373.h @@ -31,7 +31,7 @@ class vrc4373_device : public pci_host_device { void set_ram_size(int size) { m_ram_size = size; } void set_simm0_size(int size) { m_simm0_size = size; } - virtual void config_map(address_map &map) override; + virtual void config_map(address_map &map) override ATTR_COLD; uint32_t pcictrl_r(offs_t offset, uint32_t mem_mask = ~0); void pcictrl_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0); @@ -48,17 +48,17 @@ class vrc4373_device : public pci_host_device { uint32_t master_io_r(offs_t offset, uint32_t mem_mask = ~0); void master_io_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0); - virtual void target1_map(address_map &map); + virtual void target1_map(address_map &map) ATTR_COLD; uint32_t target1_r(offs_t offset, uint32_t mem_mask = ~0); void target1_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0); - virtual void target2_map(address_map &map); + virtual void target2_map(address_map &map) ATTR_COLD; uint32_t target2_r(offs_t offset, uint32_t mem_mask = ~0); void target2_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0); protected: - 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 space_config_vector memory_space_config() const override; @@ -73,7 +73,7 @@ class vrc4373_device : public pci_host_device { AS_PCI_IO = 2 }; - void cpu_map(address_map &map); + void cpu_map(address_map &map) ATTR_COLD; void map_cpu_space(); diff --git a/src/devices/machine/vrc5074.h b/src/devices/machine/vrc5074.h index 1bcbf68ab2f..0cbb6eb616c 100644 --- a/src/devices/machine/vrc5074.h +++ b/src/devices/machine/vrc5074.h @@ -24,7 +24,7 @@ class vrc5074_device : public pci_host_device { vrc5074_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); required_device m_uart; - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual void reset_all_mappings() override; virtual void map_extra(uint64_t memory_window_start, uint64_t memory_window_end, uint64_t memory_offset, address_space *memory_space, uint64_t io_window_start, uint64_t io_window_end, uint64_t io_offset, address_space *io_space) override; @@ -35,7 +35,7 @@ class vrc5074_device : public pci_host_device { void set_map(int id, const address_map_constructor &map, device_t *device); - virtual void config_map(address_map &map) override; + virtual void config_map(address_map &map) override ATTR_COLD; uint32_t sdram_addr_r(); void sdram_addr_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0); @@ -60,7 +60,7 @@ class vrc5074_device : public pci_host_device { uint32_t pci1_r(offs_t offset, uint32_t mem_mask = ~0); void pci1_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0); - virtual void target1_map(address_map &map); + virtual void target1_map(address_map &map) ATTR_COLD; uint32_t target1_r(offs_t offset, uint32_t mem_mask = ~0); void target1_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0); @@ -70,8 +70,8 @@ class vrc5074_device : public pci_host_device { protected: address_space *m_cpu_space; virtual space_config_vector memory_space_config() const override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: enum @@ -85,8 +85,8 @@ class vrc5074_device : public pci_host_device { address_space_config m_mem_config, m_io_config; - void cpu_map(address_map &map); - void serial_map(address_map &map); + void cpu_map(address_map &map) ATTR_COLD; + void serial_map(address_map &map) ATTR_COLD; void map_cpu_space(); diff --git a/src/devices/machine/vrender0.h b/src/devices/machine/vrender0.h index 10bb28e8aac..604966f2547 100644 --- a/src/devices/machine/vrender0.h +++ b/src/devices/machine/vrender0.h @@ -34,14 +34,14 @@ class vr0uart_device : public device_t, // construction/destruction vr0uart_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - void regs_map(address_map &map); + void regs_map(address_map &map) ATTR_COLD; void set_channel_num(int ch) { m_channel_num = ch; } void set_parent(vrender0soc_device *parent) { m_parent = parent; } 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; private: uint32_t control_r(); @@ -81,10 +81,10 @@ class vrender0soc_device : public device_t // construction/destruction vrender0soc_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - void regs_map(address_map &map); - void audiovideo_map(address_map &map); - void texture_map(address_map &map); - void frame_map(address_map &map); + void regs_map(address_map &map) ATTR_COLD; + void audiovideo_map(address_map &map) ATTR_COLD; + void texture_map(address_map &map) ATTR_COLD; + void frame_map(address_map &map) ATTR_COLD; template void set_host_cpu_tag(T &&tag) { m_host_cpu.set_tag(std::forward(tag)); } void set_external_vclk(const uint32_t vclk) { m_ext_vclk = vclk; } void set_external_vclk(const XTAL vclk) { m_ext_vclk = vclk.value(); } @@ -100,9 +100,9 @@ class vrender0soc_device : public device_t protected: // device-level overrides //virtual void device_validity_check(validity_checker &valid) const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: required_device m_host_cpu; diff --git a/src/devices/machine/vt8231_isa.h b/src/devices/machine/vt8231_isa.h index d9564420fe6..19783f07d41 100644 --- a/src/devices/machine/vt8231_isa.h +++ b/src/devices/machine/vt8231_isa.h @@ -37,27 +37,27 @@ class vt8231_isa_device : public pci_device void com1_cts_w(int state) { m_com1->cts_w(state); }; protected: - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; virtual void map_extra(uint64_t memory_window_start, uint64_t memory_window_end, uint64_t memory_offset, address_space *memory_space, uint64_t io_window_start, uint64_t io_window_end, uint64_t io_offset, address_space *io_space) override; - virtual void config_map(address_map &map) override; + virtual void config_map(address_map &map) override ATTR_COLD; private: uint8_t function_control_1_r(); void function_control_1_w(uint8_t data); - void io_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; uint8_t superio_cfg_idx_r(); void superio_cfg_idx_w(uint8_t data); uint8_t superio_cfg_data_r(); void superio_cfg_data_w(uint8_t data); - void com1_map(address_map &map); + void com1_map(address_map &map) ATTR_COLD; uint16_t com1_baud_r(); void com1_baud_w(uint16_t data); diff --git a/src/devices/machine/vt82c496.h b/src/devices/machine/vt82c496.h index c73a0ace79a..de1d533162b 100644 --- a/src/devices/machine/vt82c496.h +++ b/src/devices/machine/vt82c496.h @@ -29,8 +29,8 @@ class vt82c496_device : public device_t 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; private: required_device m_cpu; diff --git a/src/devices/machine/vt83c461.h b/src/devices/machine/vt83c461.h index 97e4941dd56..af06feb2a36 100644 --- a/src/devices/machine/vt83c461.h +++ b/src/devices/machine/vt83c461.h @@ -45,7 +45,7 @@ class vt83c461_device : public ide_controller_32_device void config_w(offs_t offset, uint32_t data); protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: static constexpr unsigned IDE_CONFIG_REGISTERS= 0x10; diff --git a/src/devices/machine/w83787f.h b/src/devices/machine/w83787f.h index ed0123153a2..f7fdbba0842 100644 --- a/src/devices/machine/w83787f.h +++ b/src/devices/machine/w83787f.h @@ -44,11 +44,11 @@ class w83787f_device : public device_t, void ncts2_w(int state); protected: - 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 space_config_vector memory_space_config() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: const address_space_config m_space_config; @@ -71,7 +71,7 @@ class w83787f_device : public device_t, u8 read(offs_t offset); void write(offs_t offset, u8 data); - void config_map(address_map &map); + void config_map(address_map &map) ATTR_COLD; void irq_parallel_w(int state); diff --git a/src/devices/machine/w83977tf.h b/src/devices/machine/w83977tf.h index 5b4b8034ff6..ea60ba08b9b 100644 --- a/src/devices/machine/w83977tf.h +++ b/src/devices/machine/w83977tf.h @@ -33,11 +33,11 @@ class w83977tf_device : public device_t, // auto nrts2() { return m_nrts2_callback.bind(); } protected: - 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 space_config_vector memory_space_config() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: const address_space_config m_space_config; @@ -80,7 +80,7 @@ class w83977tf_device : public device_t, u8 cr26_r(); void cr26_w(offs_t offset, u8 data); - void config_map(address_map &map); + void config_map(address_map &map) ATTR_COLD; void logical_device_select_w(offs_t offset, u8 data); template u8 activate_r(offs_t offset); diff --git a/src/devices/machine/watchdog.h b/src/devices/machine/watchdog.h index 56714bc4b9e..670260a6c1d 100644 --- a/src/devices/machine/watchdog.h +++ b/src/devices/machine/watchdog.h @@ -43,8 +43,8 @@ class watchdog_timer_device : public device_t protected: // device-level overrides virtual void device_validity_check(validity_checker &valid) const override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; TIMER_CALLBACK_MEMBER(watchdog_expired); diff --git a/src/devices/machine/wd1000.h b/src/devices/machine/wd1000.h index 4e2882ee81c..ed620e4afe6 100644 --- a/src/devices/machine/wd1000.h +++ b/src/devices/machine/wd1000.h @@ -43,8 +43,8 @@ class wd1000_device : public device_t 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; TIMER_CALLBACK_MEMBER(update_seek); TIMER_CALLBACK_MEMBER(delayed_drq); diff --git a/src/devices/machine/wd1010.h b/src/devices/machine/wd1010.h index 70d8a687163..17b36d32c15 100644 --- a/src/devices/machine/wd1010.h +++ b/src/devices/machine/wd1010.h @@ -52,8 +52,8 @@ class wd1010_device : public device_t 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; TIMER_CALLBACK_MEMBER(update_seek); TIMER_CALLBACK_MEMBER(delayed_read); diff --git a/src/devices/machine/wd11c00_17.h b/src/devices/machine/wd11c00_17.h index 91175d2472d..26273a497e0 100644 --- a/src/devices/machine/wd11c00_17.h +++ b/src/devices/machine/wd11c00_17.h @@ -57,8 +57,8 @@ class wd11c00_17_device : public device_t 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; private: inline void check_interrupt(); diff --git a/src/devices/machine/wd2010.h b/src/devices/machine/wd2010.h index de43f23e002..c92a7f2c98c 100644 --- a/src/devices/machine/wd2010.h +++ b/src/devices/machine/wd2010.h @@ -47,8 +47,8 @@ class wd2010_device : public device_t 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; TIMER_CALLBACK_MEMBER(command_complete); TIMER_CALLBACK_MEMBER(complete_write); diff --git a/src/devices/machine/wd33c9x.h b/src/devices/machine/wd33c9x.h index 012c4f5921f..cb09cdd71ab 100644 --- a/src/devices/machine/wd33c9x.h +++ b/src/devices/machine/wd33c9x.h @@ -41,8 +41,8 @@ class wd33c9x_base_device : public nscsi_device, public nscsi_slot_card_interfac protected: wd33c9x_base_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; TIMER_CALLBACK_MEMBER(update_step); diff --git a/src/devices/machine/wd7600.h b/src/devices/machine/wd7600.h index 6e81862ed48..f38bde1f005 100644 --- a/src/devices/machine/wd7600.h +++ b/src/devices/machine/wd7600.h @@ -94,10 +94,10 @@ class wd7600_device : public device_t 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; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: void pic1_int_w(int state) { m_write_intr(state); } diff --git a/src/devices/machine/wd_fdc.h b/src/devices/machine/wd_fdc.h index 22239b0dea3..3936bcad579 100644 --- a/src/devices/machine/wd_fdc.h +++ b/src/devices/machine/wd_fdc.h @@ -116,8 +116,8 @@ class wd_fdc_device_base : public device_t { static constexpr int fd179x_step_times[4] = { 6000, 12000, 20000, 30000 }; static constexpr int fd176x_step_times[4] = { 12000, 24000, 40000, 60000 }; - 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 int calc_sector_size(uint8_t size, uint8_t command) const; virtual int settle_time() const; diff --git a/src/devices/machine/wozfdc.h b/src/devices/machine/wozfdc.h index acc03f487ec..d61e9aab8a8 100644 --- a/src/devices/machine/wozfdc.h +++ b/src/devices/machine/wozfdc.h @@ -26,8 +26,8 @@ class wozfdc_device: { public: // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; uint8_t read(offs_t offset); void write(offs_t offset, uint8_t data); @@ -36,8 +36,8 @@ class wozfdc_device: // construction/destruction wozfdc_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; TIMER_CALLBACK_MEMBER(generic_tick); TIMER_CALLBACK_MEMBER(delayed_tick); @@ -87,7 +87,7 @@ class diskii_fdc_device : public wozfdc_device void set_floppies(floppy_connector *f0, floppy_connector *f1); protected: - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; }; class appleiii_fdc_device : public wozfdc_device @@ -101,7 +101,7 @@ class appleiii_fdc_device : public wozfdc_device void write_c0dx(uint8_t offset, uint8_t data); protected: - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; private: void control_dx(int offset); diff --git a/src/devices/machine/wtl3132.h b/src/devices/machine/wtl3132.h index deca6dd7f26..9451677cc74 100644 --- a/src/devices/machine/wtl3132.h +++ b/src/devices/machine/wtl3132.h @@ -119,8 +119,8 @@ class wtl3132_device : public device_t }; protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; void stage1(unsigned const index); void stage2(unsigned const index); diff --git a/src/devices/machine/x2201.h b/src/devices/machine/x2201.h index 3d5e8dd981d..f1b8b4dd3b3 100644 --- a/src/devices/machine/x2201.h +++ b/src/devices/machine/x2201.h @@ -47,7 +47,7 @@ class x2201_device : public device_t, public device_nvram_interface protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_nvram_interface overrides virtual void nvram_default() override; diff --git a/src/devices/machine/x2212.h b/src/devices/machine/x2212.h index feeb91a0d23..e8b52d2fb88 100644 --- a/src/devices/machine/x2212.h +++ b/src/devices/machine/x2212.h @@ -55,7 +55,7 @@ class x2212_device : public device_t, public device_nvram_interface x2212_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, int size_data); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_nvram_interface overrides virtual void nvram_default() override; diff --git a/src/devices/machine/x76f041.h b/src/devices/machine/x76f041.h index cb28bccc54b..82e4603556c 100644 --- a/src/devices/machine/x76f041.h +++ b/src/devices/machine/x76f041.h @@ -28,8 +28,8 @@ class x76f041_device : public device_t, 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; // device_nvram_interface overrides virtual void nvram_default() override; diff --git a/src/devices/machine/x76f100.h b/src/devices/machine/x76f100.h index a323ff40fa6..be25574cfda 100644 --- a/src/devices/machine/x76f100.h +++ b/src/devices/machine/x76f100.h @@ -27,8 +27,8 @@ class x76f100_device : public device_t, public device_nvram_interface protected: // 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; // device_nvram_interface implementation virtual void nvram_default() override; diff --git a/src/devices/machine/xc1700e.h b/src/devices/machine/xc1700e.h index 42a191c73ce..095f4d90a21 100644 --- a/src/devices/machine/xc1700e.h +++ b/src/devices/machine/xc1700e.h @@ -20,7 +20,7 @@ class base_xc1700e_device : public device_t base_xc1700e_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, u32 capacity); // device_t overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: // device configuration diff --git a/src/devices/machine/ym2148.h b/src/devices/machine/ym2148.h index e0e75188123..8d858a1b692 100644 --- a/src/devices/machine/ym2148.h +++ b/src/devices/machine/ym2148.h @@ -38,8 +38,8 @@ class ym2148_device : public device_t, public device_serial_interface uint8_t get_irq_vector(); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; TIMER_CALLBACK_MEMBER(serial_clock_tick); diff --git a/src/devices/machine/ym3802.h b/src/devices/machine/ym3802.h index 00e6683ed25..3d6334f2d4c 100644 --- a/src/devices/machine/ym3802.h +++ b/src/devices/machine/ym3802.h @@ -42,8 +42,8 @@ class ym3802_device : public device_t, public device_serial_interface uint8_t vector() { return m_vector; } protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: enum diff --git a/src/devices/machine/z8038.h b/src/devices/machine/z8038.h index d21408150e2..05534155bef 100644 --- a/src/devices/machine/z8038.h +++ b/src/devices/machine/z8038.h @@ -30,7 +30,7 @@ class z8038_device : public device_t template void reg_w(u8 data) { reg_w(Port - 1, data); } // direct register access - template void zbus_map(address_map &map); + template void zbus_map(address_map &map) ATTR_COLD; template u8 zbus_reg_r(offs_t offset) { m_port[Port - 1].reg_state = 1; m_port[Port - 1].reg_pointer = offset & 0xf; return reg_r(Port - 1); } template void zbus_reg_w(offs_t offset, u8 data) { m_port[Port - 1].reg_state = 1; m_port[Port - 1].reg_pointer = offset & 0xf; reg_w(Port - 1, data); } @@ -40,8 +40,8 @@ class z8038_device : public device_t protected: // standard device_interface 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; // primary device read/write handlers u8 reg_r(u8 const port); diff --git a/src/devices/machine/z80ctc.h b/src/devices/machine/z80ctc.h index 098915aceab..0af27a0211c 100644 --- a/src/devices/machine/z80ctc.h +++ b/src/devices/machine/z80ctc.h @@ -51,8 +51,8 @@ class z80ctc_channel_device : public device_t protected: // 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; u8 read(); void write(u8 data); @@ -103,8 +103,8 @@ class z80ctc_device : public device_t, z80ctc_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); // device_t implementation - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; virtual void device_reset_after_children() override; // z80daisy_interface implementation diff --git a/src/devices/machine/z80daisy_generic.h b/src/devices/machine/z80daisy_generic.h index c8bfa92fce4..2fed1c4d484 100644 --- a/src/devices/machine/z80daisy_generic.h +++ b/src/devices/machine/z80daisy_generic.h @@ -35,7 +35,7 @@ class z80daisy_generic_device : public device_t, public device_z80daisy_interfac protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // z80daisy_interface overrides virtual int z80daisy_irq_state() override; diff --git a/src/devices/machine/z80dma.h b/src/devices/machine/z80dma.h index 21cbb01daa6..b461330eab0 100644 --- a/src/devices/machine/z80dma.h +++ b/src/devices/machine/z80dma.h @@ -93,8 +93,8 @@ class z80dma_device : public device_t, z80dma_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 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 helpers void enable(); diff --git a/src/devices/machine/z80pio.h b/src/devices/machine/z80pio.h index 5e9c562187e..6b0b6b13def 100644 --- a/src/devices/machine/z80pio.h +++ b/src/devices/machine/z80pio.h @@ -151,8 +151,8 @@ class z80pio_device : public device_t, }; // 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; // device_z80daisy_interface overrides virtual int z80daisy_irq_state() override; diff --git a/src/devices/machine/z80scc.h b/src/devices/machine/z80scc.h index 7b28c4f036d..b193037b720 100644 --- a/src/devices/machine/z80scc.h +++ b/src/devices/machine/z80scc.h @@ -229,8 +229,8 @@ class z80scc_channel : public device_t, }; // 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; unsigned int get_brg_rate(); unsigned int get_rtxc_rate(); @@ -386,9 +386,9 @@ class z80scc_device : public device_t, public device_z80daisy_interface z80scc_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, uint32_t variant); // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void device_reset_after_children() override; - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; // device_z80daisy_interface implementation virtual int z80daisy_irq_state() override; diff --git a/src/devices/machine/z80sio.h b/src/devices/machine/z80sio.h index 3cfc04bab45..2e15ccf2ba9 100644 --- a/src/devices/machine/z80sio.h +++ b/src/devices/machine/z80sio.h @@ -287,9 +287,9 @@ class z80sio_channel : public device_t uint8_t rr1_auto_reset); // device_t implementation - virtual void device_resolve_objects() override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_resolve_objects() override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; void update_dtr_rts_break(); void set_dtr(int state); @@ -428,8 +428,8 @@ class mk68564_channel : public z80sio_channel mk68564_channel(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - 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 bool transmit_allowed() const override; @@ -530,9 +530,9 @@ class z80sio_device : public device_t, // device_t implementation virtual void device_validity_check(validity_checker &valid) const override; - 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; // device_z80daisy_interface implementation virtual int z80daisy_irq_state() override; @@ -585,7 +585,7 @@ class z80dart_device : public z80sio_device protected: // device_t overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; class i8274_device : public z80sio_device @@ -599,7 +599,7 @@ class i8274_device : public z80sio_device i8274_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // device_t implementation - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; // device_z80daisy_interface implementation virtual int z80daisy_irq_ack() override; @@ -628,7 +628,7 @@ class mk68564_device : public i8274_device protected: // device_t implementation - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: void vectrg_w(uint8_t data); diff --git a/src/devices/machine/z80sti.h b/src/devices/machine/z80sti.h index 864b3adecbe..4f893955f7e 100644 --- a/src/devices/machine/z80sti.h +++ b/src/devices/machine/z80sti.h @@ -146,8 +146,8 @@ class z80sti_device : public device_t, static const int PRESCALER[]; // 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; // device_serial_interface overrides virtual void tra_callback() override; diff --git a/src/devices/machine/z8536.h b/src/devices/machine/z8536.h index 7f046ad3f49..5a75a6c7456 100644 --- a/src/devices/machine/z8536.h +++ b/src/devices/machine/z8536.h @@ -107,8 +107,8 @@ class cio_base_device : public device_t cio_base_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); // 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; TIMER_CALLBACK_MEMBER(advance_counters); @@ -435,8 +435,8 @@ class z8536_device : public cio_base_device, public device_z80daisy_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; // device_z80daisy_interface overrides virtual int z80daisy_irq_state() override; diff --git a/src/devices/machine/zfmicro_usb.h b/src/devices/machine/zfmicro_usb.h index 34d18892c32..26a11caa884 100644 --- a/src/devices/machine/zfmicro_usb.h +++ b/src/devices/machine/zfmicro_usb.h @@ -16,18 +16,18 @@ class zfmicro_usb_device : public pci_device static constexpr feature_type unemulated_features() { return feature::MEDIA; } protected: - 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; // virtual void reset_all_mappings() override; virtual void map_extra(uint64_t memory_window_start, uint64_t memory_window_end, uint64_t memory_offset, address_space *memory_space, uint64_t io_window_start, uint64_t io_window_end, uint64_t io_offset, address_space *io_space) override; - virtual void config_map(address_map &map) override; + virtual void config_map(address_map &map) override ATTR_COLD; - void map(address_map &map); + void map(address_map &map) ATTR_COLD; private: u8 m_downstream_ports; diff --git a/src/devices/sound/315-5641.h b/src/devices/sound/315-5641.h index 2f986a912f0..629a1f81ad6 100644 --- a/src/devices/sound/315-5641.h +++ b/src/devices/sound/315-5641.h @@ -28,8 +28,8 @@ class sega_315_5641_pcm_device : public upd7759_device // device-level overrides virtual void internal_start_w(int state) override; - 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 advance_state() override; diff --git a/src/devices/sound/ad1848.h b/src/devices/sound/ad1848.h index 1fd354c3427..d3ea876f0c6 100644 --- a/src/devices/sound/ad1848.h +++ b/src/devices/sound/ad1848.h @@ -22,9 +22,9 @@ class ad1848_device : public device_t void dack_w(uint8_t data); protected: - 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; TIMER_CALLBACK_MEMBER(update_tick); diff --git a/src/devices/sound/aica.h b/src/devices/sound/aica.h index 09a042b1aad..6e99346cd4f 100644 --- a/src/devices/sound/aica.h +++ b/src/devices/sound/aica.h @@ -34,7 +34,7 @@ class aica_device : public device_t, public device_sound_interface, public devic protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void device_post_load() override; virtual void device_clock_changed() override; diff --git a/src/devices/sound/ap2010pcm.h b/src/devices/sound/ap2010pcm.h index 5d142fe580e..bea50bc4424 100644 --- a/src/devices/sound/ap2010pcm.h +++ b/src/devices/sound/ap2010pcm.h @@ -27,7 +27,7 @@ class ap2010pcm_device : public device_t, public device_sound_interface protected: // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_sound_interface implementation virtual void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; diff --git a/src/devices/sound/asc.h b/src/devices/sound/asc.h index 591c95d71af..2f32b841c03 100644 --- a/src/devices/sound/asc.h +++ b/src/devices/sound/asc.h @@ -74,8 +74,8 @@ class asc_device : public device_t, public device_sound_interface }; // 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 const &inputs, std::vector &outputs) override; diff --git a/src/devices/sound/astrocde.h b/src/devices/sound/astrocde.h index bd62cf96e37..7c623e0f1f2 100644 --- a/src/devices/sound/astrocde.h +++ b/src/devices/sound/astrocde.h @@ -53,8 +53,8 @@ class astrocade_io_device : public device_t, public device_sound_interface protected: // 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; // device_sound_interface implementation virtual void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; diff --git a/src/devices/sound/awacs.h b/src/devices/sound/awacs.h index a1c17f1aa10..d46f3fcec29 100644 --- a/src/devices/sound/awacs.h +++ b/src/devices/sound/awacs.h @@ -46,8 +46,8 @@ class awacs_device : public device_t, public device_sound_interface static const u8 divider[4]; // 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 const &inputs, std::vector &outputs) override; diff --git a/src/devices/sound/ay8910.h b/src/devices/sound/ay8910.h index e17c5e1f367..269ab268f59 100644 --- a/src/devices/sound/ay8910.h +++ b/src/devices/sound/ay8910.h @@ -135,8 +135,8 @@ class ay8910_device : public device_t, public device_sound_interface u32 clock, psg_type_t psg_type, int streams, int ioports, int feature = PSG_DEFAULT); // 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 device_clock_changed() override; // sound stream update overrides diff --git a/src/devices/sound/bbd.h b/src/devices/sound/bbd.h index f9c84b8d6a6..a76c3ec2958 100644 --- a/src/devices/sound/bbd.h +++ b/src/devices/sound/bbd.h @@ -28,7 +28,7 @@ class bbd_device_base : public device_t, public device_sound_interface bbd_device_base(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock, device_type type); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void device_clock_changed() override; // sound stream update overrides diff --git a/src/devices/sound/beep.h b/src/devices/sound/beep.h index 76b974bc7bf..a33ab803020 100644 --- a/src/devices/sound/beep.h +++ b/src/devices/sound/beep.h @@ -25,7 +25,7 @@ class beep_device : public device_t, public device_sound_interface protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // sound stream update overrides virtual void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; diff --git a/src/devices/sound/bsmt2000.h b/src/devices/sound/bsmt2000.h index 333e6d90e7c..dc9fc5751c2 100644 --- a/src/devices/sound/bsmt2000.h +++ b/src/devices/sound/bsmt2000.h @@ -42,14 +42,14 @@ class bsmt2000_device : public device_t, void write_reg(uint16_t data); void write_data(uint16_t data); - void tms_io_map(address_map &map); - void tms_program_map(address_map &map); + void tms_io_map(address_map &map) ATTR_COLD; + void tms_program_map(address_map &map) ATTR_COLD; protected: // device-level overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; // device_sound_interface overrides virtual void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; diff --git a/src/devices/sound/c140.h b/src/devices/sound/c140.h index 51dd226acea..2fda0526a82 100644 --- a/src/devices/sound/c140.h +++ b/src/devices/sound/c140.h @@ -38,7 +38,7 @@ class c140_device : public device_t, c140_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void device_clock_changed() override; virtual void rom_bank_pre_change() override; @@ -115,7 +115,7 @@ class c219_device : public c140_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // sound stream update overrides virtual void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; diff --git a/src/devices/sound/c352.h b/src/devices/sound/c352.h index cf333ba356e..321d5144879 100644 --- a/src/devices/sound/c352.h +++ b/src/devices/sound/c352.h @@ -34,8 +34,8 @@ class c352_device : public device_t, 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 device_clock_changed() override; // device_sound_interface overrides diff --git a/src/devices/sound/c6280.h b/src/devices/sound/c6280.h index 60ea993f71b..407f5abaad0 100644 --- a/src/devices/sound/c6280.h +++ b/src/devices/sound/c6280.h @@ -17,8 +17,8 @@ class c6280_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 device_clock_changed() override; // sound stream update overrides diff --git a/src/devices/sound/cdda.h b/src/devices/sound/cdda.h index 1d8921f688e..23c30a487b2 100644 --- a/src/devices/sound/cdda.h +++ b/src/devices/sound/cdda.h @@ -29,7 +29,7 @@ class cdda_device : public device_t, public device_sound_interface protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // sound stream update overrides virtual void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; diff --git a/src/devices/sound/cdp1863.h b/src/devices/sound/cdp1863.h index ec0706e9a7c..4d6f4f295b3 100644 --- a/src/devices/sound/cdp1863.h +++ b/src/devices/sound/cdp1863.h @@ -51,7 +51,7 @@ class cdp1863_device : public device_t, protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // internal callbacks virtual void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; diff --git a/src/devices/sound/cdp1864.h b/src/devices/sound/cdp1864.h index 8dc1eb04e8e..c1bb7b36797 100644 --- a/src/devices/sound/cdp1864.h +++ b/src/devices/sound/cdp1864.h @@ -110,8 +110,8 @@ class cdp1864_device : public device_t, protected: // device-level overrides virtual void device_config_complete() override; - 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 callbacks virtual void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; diff --git a/src/devices/sound/cdp1869.h b/src/devices/sound/cdp1869.h index 6ce373a6931..eb458ee3bd9 100644 --- a/src/devices/sound/cdp1869.h +++ b/src/devices/sound/cdp1869.h @@ -183,9 +183,9 @@ class cdp1869_device : public device_t, return screen; } - virtual void io_map(address_map &map); - virtual void char_map(address_map &map); - virtual void page_map(address_map &map); + virtual void io_map(address_map &map) ATTR_COLD; + virtual void char_map(address_map &map) ATTR_COLD; + virtual void page_map(address_map &map) ATTR_COLD; void out3_w(uint8_t data); void out4_w(offs_t offset); @@ -204,11 +204,11 @@ class cdp1869_device : public device_t, uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void cdp1869(address_map &map); + void cdp1869(address_map &map) ATTR_COLD; protected: // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; virtual void device_post_load() override; // device_memory_interface overrides diff --git a/src/devices/sound/cem3394.h b/src/devices/sound/cem3394.h index a3e5e3a85ea..e086ad7bf4b 100644 --- a/src/devices/sound/cem3394.h +++ b/src/devices/sound/cem3394.h @@ -29,7 +29,7 @@ class cem3394_device : public device_t, public device_sound_interface protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // sound stream update overrides virtual void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; diff --git a/src/devices/sound/cf61909.h b/src/devices/sound/cf61909.h index dbb165ac27e..0ccc6264c0b 100644 --- a/src/devices/sound/cf61909.h +++ b/src/devices/sound/cf61909.h @@ -23,10 +23,10 @@ class cf61909_device : public device_t, public device_sound_interface, public de int sync_r() { return m_sample_clock->signal_r(); } protected: - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; - 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 device_clock_changed() override; virtual void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; diff --git a/src/devices/sound/dac.h b/src/devices/sound/dac.h index 158cbaa6967..58fa5cd7864 100644 --- a/src/devices/sound/dac.h +++ b/src/devices/sound/dac.h @@ -85,7 +85,7 @@ class dac_device_base : public device_t, public device_sound_interface dac_device_base(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, u8 bits, dac_mapper_callback mapper, stream_buffer::sample_t gain); // device startup - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // stream generation virtual void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; diff --git a/src/devices/sound/dac3350a.h b/src/devices/sound/dac3350a.h index 59e5bc90ea7..f1a284e1cec 100644 --- a/src/devices/sound/dac3350a.h +++ b/src/devices/sound/dac3350a.h @@ -14,8 +14,8 @@ class dac3350a_device : public device_t, public device_sound_interface void i2c_sda_w(int line); protected: - 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 const &inputs, std::vector &outputs) override; diff --git a/src/devices/sound/dac76.h b/src/devices/sound/dac76.h index 4c42d72961c..9444b726446 100644 --- a/src/devices/sound/dac76.h +++ b/src/devices/sound/dac76.h @@ -54,8 +54,8 @@ class dac76_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 const &inputs, std::vector &outputs) override; diff --git a/src/devices/sound/dave.h b/src/devices/sound/dave.h index 1bbba67d8b1..cb3a6cc4b64 100644 --- a/src/devices/sound/dave.h +++ b/src/devices/sound/dave.h @@ -29,18 +29,18 @@ class dave_device : public device_t, auto lh_wr() { return m_write_lh.bind(); } auto rh_wr() { return m_write_rh.bind(); } - virtual void z80_program_map(address_map &map); - virtual void z80_io_map(address_map &map); + virtual void z80_program_map(address_map &map) ATTR_COLD; + virtual void z80_io_map(address_map &map) ATTR_COLD; void int1_w(int state); void int2_w(int state); - void io_map(address_map &map); - void program_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void program_map(address_map &map) ATTR_COLD; 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; // device_memory_interface overrides virtual space_config_vector memory_space_config() const override; diff --git a/src/devices/sound/digitalk.h b/src/devices/sound/digitalk.h index 18cc32fd3bd..053c9a60018 100644 --- a/src/devices/sound/digitalk.h +++ b/src/devices/sound/digitalk.h @@ -26,7 +26,7 @@ class digitalker_device : public device_t, public device_sound_interface protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // sound stream update overrides virtual void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; diff --git a/src/devices/sound/discrete.h b/src/devices/sound/discrete.h index e70b70e3d1d..5a850ffc340 100644 --- a/src/devices/sound/discrete.h +++ b/src/devices/sound/discrete.h @@ -4228,9 +4228,9 @@ class discrete_device : public device_t protected: // device-level overrides - virtual void device_start() override; - virtual void device_reset() override; - virtual void device_stop() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; + virtual void device_stop() override ATTR_COLD; // configuration state const discrete_block *m_intf; @@ -4301,8 +4301,8 @@ class discrete_sound_device : public discrete_device, 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; // device_sound_interface overrides virtual void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; diff --git a/src/devices/sound/dmadac.h b/src/devices/sound/dmadac.h index 6cbe8312231..d221a7575e4 100644 --- a/src/devices/sound/dmadac.h +++ b/src/devices/sound/dmadac.h @@ -53,7 +53,7 @@ class dmadac_sound_device : public device_t, public device_sound_interface protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // sound stream update overrides virtual void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; diff --git a/src/devices/sound/dspv.h b/src/devices/sound/dspv.h index 33604fc454d..defc5343b32 100644 --- a/src/devices/sound/dspv.h +++ b/src/devices/sound/dspv.h @@ -15,11 +15,11 @@ class dspv_device : public cpu_device, public device_sound_interface public: dspv_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 22579200); - void map(address_map &map); + void map(address_map &map) ATTR_COLD; protected: - 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 uint32_t execute_min_cycles() const noexcept override; virtual uint32_t execute_max_cycles() const noexcept override; virtual void execute_run() override; @@ -62,9 +62,9 @@ class dspv_device : public cpu_device, public device_sound_interface u16 snd_r(offs_t offset); void snd_w(offs_t offset, u16 data); - void prg1_map(address_map &map); - void prg2_map(address_map &map); - void data_map(address_map &map); + void prg1_map(address_map &map) ATTR_COLD; + void prg2_map(address_map &map) ATTR_COLD; + void data_map(address_map &map) ATTR_COLD; }; DECLARE_DEVICE_TYPE(DSPV, dspv_device) diff --git a/src/devices/sound/es1373.h b/src/devices/sound/es1373.h index 4f6bee13706..054a62901a3 100644 --- a/src/devices/sound/es1373.h +++ b/src/devices/sound/es1373.h @@ -22,9 +22,9 @@ class es1373_device : public pci_device, public device_sound_interface void reg_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0); protected: - 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; virtual void device_post_load() override; virtual void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; @@ -58,7 +58,7 @@ class es1373_device : public pci_device, public device_sound_interface address_space *m_memory_space; devcb_write_line m_irq_handler; int m_irq_num; - void map(address_map &map); + void map(address_map &map) ATTR_COLD; uint16_t m_ac97_regs[0x80]; uint32_t m_es_regs[0x10]; uint32_t m_sound_cache[0x40]; diff --git a/src/devices/sound/es5503.h b/src/devices/sound/es5503.h index 4499d58d1f3..ef22d476b42 100644 --- a/src/devices/sound/es5503.h +++ b/src/devices/sound/es5503.h @@ -30,9 +30,9 @@ class es5503_device : public device_t, protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void device_clock_changed() override; - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; // device_sound_interface overrides virtual void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; diff --git a/src/devices/sound/es5506.h b/src/devices/sound/es5506.h index 73f5c0a3c8f..cb4279165af 100644 --- a/src/devices/sound/es5506.h +++ b/src/devices/sound/es5506.h @@ -78,10 +78,10 @@ class es550x_device : public device_t, public device_sound_interface, public dev es550x_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void device_clock_changed() override; - virtual void device_stop() override; - virtual void device_reset() override; + virtual void device_stop() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; // sound stream update overrides virtual void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; @@ -167,8 +167,8 @@ class es5506_device : public es550x_device 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; // device_memory_interface configuration virtual space_config_vector memory_space_config() const override; @@ -224,7 +224,7 @@ class es5505_device : public es550x_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_memory_interface configuration virtual space_config_vector memory_space_config() const override; diff --git a/src/devices/sound/es8712.h b/src/devices/sound/es8712.h index 27fc5bab853..7521f045ca7 100644 --- a/src/devices/sound/es8712.h +++ b/src/devices/sound/es8712.h @@ -37,9 +37,9 @@ class es8712_device : public device_t, public device_rom_interface<20> // TODO : protected: // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: void es8712_state_save_register(); diff --git a/src/devices/sound/esqpump.h b/src/devices/sound/esqpump.h index 897475cd8b4..dfbfe477770 100644 --- a/src/devices/sound/esqpump.h +++ b/src/devices/sound/esqpump.h @@ -69,7 +69,7 @@ class esq_5505_5510_pump_device : public device_t, public device_sound_interface protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void device_clock_changed() override; // sound stream update overrides diff --git a/src/devices/sound/flt_biquad.h b/src/devices/sound/flt_biquad.h index e565aa6da8a..19d5f352354 100644 --- a/src/devices/sound/flt_biquad.h +++ b/src/devices/sound/flt_biquad.h @@ -82,7 +82,7 @@ class filter_biquad_device : public device_t, public device_sound_interface protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // sound stream update overrides virtual void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; diff --git a/src/devices/sound/flt_rc.h b/src/devices/sound/flt_rc.h index def09f1eb11..9230da69a49 100644 --- a/src/devices/sound/flt_rc.h +++ b/src/devices/sound/flt_rc.h @@ -107,7 +107,7 @@ class filter_rc_device : public device_t, public device_sound_interface protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // sound stream update overrides virtual void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; diff --git a/src/devices/sound/flt_vol.h b/src/devices/sound/flt_vol.h index 8104833e9ac..2e2d665f257 100644 --- a/src/devices/sound/flt_vol.h +++ b/src/devices/sound/flt_vol.h @@ -22,7 +22,7 @@ class filter_volume_device : public device_t, public device_sound_interface protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // sound stream update overrides virtual void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; diff --git a/src/devices/sound/gaelco.h b/src/devices/sound/gaelco.h index 3bfac39f988..2fff2ca4bee 100644 --- a/src/devices/sound/gaelco.h +++ b/src/devices/sound/gaelco.h @@ -36,9 +36,9 @@ class gaelco_gae1_device : public device_t, gaelco_gae1_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // device-level overrides - virtual void device_start() override; - virtual void device_reset() override; - virtual void device_stop() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; + virtual void device_stop() override ATTR_COLD; virtual void device_post_load() override; virtual void device_clock_changed() override; diff --git a/src/devices/sound/gb.h b/src/devices/sound/gb.h index e3436a05e28..be5f12fb324 100644 --- a/src/devices/sound/gb.h +++ b/src/devices/sound/gb.h @@ -22,9 +22,9 @@ class gameboy_sound_device : public device_t, gameboy_sound_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void device_clock_changed() override; - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; // sound stream update overrides virtual void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; @@ -194,7 +194,7 @@ class cgb04_apu_device : public gameboy_sound_device protected: cgb04_apu_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; virtual void apu_power_off() override; virtual void update_wave_channel(SOUND &snd, uint64_t cycles) override; }; @@ -212,7 +212,7 @@ class agb_apu_device : public cgb04_apu_device protected: agb_apu_device(const machine_config &mconfig, device_type &type, const char *tag, device_t *owner, uint32_t clock); - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; virtual void update_wave_channel(SOUND &snd, uint64_t cycles) override; }; diff --git a/src/devices/sound/gew.h b/src/devices/sound/gew.h index 75a3f57f51f..ddee760d461 100644 --- a/src/devices/sound/gew.h +++ b/src/devices/sound/gew.h @@ -24,8 +24,8 @@ class gew_pcm_device : public device_t, gew_pcm_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, uint32_t voices, uint32_t clock_divider); - 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 device_clock_changed() override; // sound stream update overrides diff --git a/src/devices/sound/gew7.h b/src/devices/sound/gew7.h index 5d50b2872f4..805422c9fe0 100644 --- a/src/devices/sound/gew7.h +++ b/src/devices/sound/gew7.h @@ -19,7 +19,7 @@ class gew7_pcm_device : public gew_pcm_device uint8_t read_hi(offs_t offset); protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: void init_sample(sample_t& sample, uint32_t index); diff --git a/src/devices/sound/hc55516.h b/src/devices/sound/hc55516.h index e90e7b350ec..a15c3eb642d 100644 --- a/src/devices/sound/hc55516.h +++ b/src/devices/sound/hc55516.h @@ -69,8 +69,8 @@ class cvsd_device_base : public device_t, public device_sound_interface cvsd_device_base(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, bool active_clock_edge, uint8_t shiftreg_mask); // 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 device_clock_changed() override; // sound stream update overrides @@ -127,8 +127,8 @@ class hc55516_device : public cvsd_device_base hc55516_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, uint32_t sylmask, int32_t sylshift, int32_t syladd, int32_t intshift); // 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; // sound stream update overrides virtual void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; @@ -160,7 +160,7 @@ class hc55532_device : public hc55516_device hc55532_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: // device-level overrides - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; }; @@ -177,7 +177,7 @@ class mc3417_device : public cvsd_device_base mc3417_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, uint8_t shiftreg_mask); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // sound stream update overrides virtual void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; diff --git a/src/devices/sound/huc6230.h b/src/devices/sound/huc6230.h index a2ca7824617..f71e746190c 100644 --- a/src/devices/sound/huc6230.h +++ b/src/devices/sound/huc6230.h @@ -23,8 +23,8 @@ class huc6230_device : public device_t, public device_sound_interface protected: // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; virtual void device_clock_changed() override; // sound stream update overrides diff --git a/src/devices/sound/i5000.h b/src/devices/sound/i5000.h index cb3e45382e9..2769b58520c 100644 --- a/src/devices/sound/i5000.h +++ b/src/devices/sound/i5000.h @@ -30,8 +30,8 @@ class i5000snd_device : public device_t, 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 const &inputs, std::vector &outputs) override; diff --git a/src/devices/sound/ics2115.h b/src/devices/sound/ics2115.h index 269069ff387..a02a28075e3 100644 --- a/src/devices/sound/ics2115.h +++ b/src/devices/sound/ics2115.h @@ -34,8 +34,8 @@ class ics2115_device : public device_t, public device_sound_interface, public de 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 device_clock_changed() override; // device_sound_interface overrides diff --git a/src/devices/sound/iopspu.h b/src/devices/sound/iopspu.h index bea55615c04..e771746c0ca 100644 --- a/src/devices/sound/iopspu.h +++ b/src/devices/sound/iopspu.h @@ -44,8 +44,8 @@ class iop_spu_device : public device_t, public device_sound_interface void dma_done(int bank); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; // sound stream update overrides virtual void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; diff --git a/src/devices/sound/iremga20.h b/src/devices/sound/iremga20.h index 99440bc5782..2f854d8c55a 100644 --- a/src/devices/sound/iremga20.h +++ b/src/devices/sound/iremga20.h @@ -31,8 +31,8 @@ class iremga20_device : public device_t, 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 device_clock_changed() override; // sound stream update overrides diff --git a/src/devices/sound/k005289.h b/src/devices/sound/k005289.h index 618c8dd7ac7..1518202f13c 100644 --- a/src/devices/sound/k005289.h +++ b/src/devices/sound/k005289.h @@ -23,7 +23,7 @@ class k005289_device : public device_t, protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // sound stream update overrides virtual void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; diff --git a/src/devices/sound/k007232.h b/src/devices/sound/k007232.h index f467670fc9b..7082d412d56 100644 --- a/src/devices/sound/k007232.h +++ b/src/devices/sound/k007232.h @@ -33,7 +33,7 @@ class k007232_device : public device_t, public device_sound_interface, public de protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void device_clock_changed() override; // sound stream update overrides diff --git a/src/devices/sound/k051649.h b/src/devices/sound/k051649.h index 10be0f28bb5..3e0b60dfc86 100644 --- a/src/devices/sound/k051649.h +++ b/src/devices/sound/k051649.h @@ -29,12 +29,12 @@ class k051649_device : public device_t, void k052539_waveform_w(offs_t offset, u8 data); u8 k052539_waveform_r(offs_t offset); - void scc_map(address_map &map); + void scc_map(address_map &map) ATTR_COLD; 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 device_post_load() override; virtual void device_clock_changed() override; diff --git a/src/devices/sound/k053260.h b/src/devices/sound/k053260.h index 9cf86b25653..dc2477d33eb 100644 --- a/src/devices/sound/k053260.h +++ b/src/devices/sound/k053260.h @@ -36,9 +36,9 @@ class k053260_device : public device_t, protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void device_clock_changed() override; - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; // sound stream update overrides virtual void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; diff --git a/src/devices/sound/k054539.h b/src/devices/sound/k054539.h index 3ee73cbf579..4f7615a3769 100644 --- a/src/devices/sound/k054539.h +++ b/src/devices/sound/k054539.h @@ -60,9 +60,9 @@ class k054539_device : public device_t, protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void device_clock_changed() override; - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; virtual void device_post_load() override; // device_sound_interface overrides diff --git a/src/devices/sound/k056800.h b/src/devices/sound/k056800.h index a6d0aa6e567..27a53e88a17 100644 --- a/src/devices/sound/k056800.h +++ b/src/devices/sound/k056800.h @@ -30,8 +30,8 @@ class k056800_device : public device_t 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; private: // internal state diff --git a/src/devices/sound/ks0164.h b/src/devices/sound/ks0164.h index ae7680c91c9..cb7c0f5dff5 100644 --- a/src/devices/sound/ks0164.h +++ b/src/devices/sound/ks0164.h @@ -25,10 +25,10 @@ class ks0164_device : public device_t, public device_sound_interface, public dev auto midi_tx() { return m_midi_tx.bind(); } protected: - 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 const &inputs, std::vector &outputs) override; - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual space_config_vector memory_space_config() const override; virtual void tra_callback() override; @@ -76,7 +76,7 @@ class ks0164_device : public device_t, public device_sound_interface, public dev util::notifier_subscription m_notif_rom_space; - void cpu_map(address_map &map); + void cpu_map(address_map &map) ATTR_COLD; u16 vec_r(offs_t offset, u16 mem_mask); u16 rom_r(offs_t offset, u16 mem_mask); diff --git a/src/devices/sound/l7a1045_l6028_dsp_a.h b/src/devices/sound/l7a1045_l6028_dsp_a.h index 58877c0836c..3115e1826bb 100644 --- a/src/devices/sound/l7a1045_l6028_dsp_a.h +++ b/src/devices/sound/l7a1045_l6028_dsp_a.h @@ -30,8 +30,8 @@ class l7a1045_sound_device : public device_t, 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; // sound stream update overrides virtual void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; diff --git a/src/devices/sound/lc7535.h b/src/devices/sound/lc7535.h index cf496188651..2b357f920f4 100644 --- a/src/devices/sound/lc7535.h +++ b/src/devices/sound/lc7535.h @@ -53,8 +53,8 @@ class lc7535_device : public device_t 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; private: // maximum attenuation is -98 dB for infinity diff --git a/src/devices/sound/lc78836m.h b/src/devices/sound/lc78836m.h index 3a95e79b656..e2622fa3500 100644 --- a/src/devices/sound/lc78836m.h +++ b/src/devices/sound/lc78836m.h @@ -34,8 +34,8 @@ class lc78836m_device : public device_t, public device_sound_interface void initb_w(int state); protected: - 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 device_clock_changed() override; virtual void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; diff --git a/src/devices/sound/lc82310.h b/src/devices/sound/lc82310.h index 559972b564e..802c7bbe2e9 100644 --- a/src/devices/sound/lc82310.h +++ b/src/devices/sound/lc82310.h @@ -30,8 +30,8 @@ class lc82310_device : public device_t, void reset_playback(); protected: - 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 const &inputs, std::vector &outputs) override; diff --git a/src/devices/sound/lmc1992.h b/src/devices/sound/lmc1992.h index d728757299c..dc9ea4d9806 100644 --- a/src/devices/sound/lmc1992.h +++ b/src/devices/sound/lmc1992.h @@ -68,7 +68,7 @@ class lmc1992_device : public device_t, protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // internal callbacks virtual void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; diff --git a/src/devices/sound/lynx.h b/src/devices/sound/lynx.h index 6f9eb575013..b729afe4ebe 100644 --- a/src/devices/sound/lynx.h +++ b/src/devices/sound/lynx.h @@ -51,8 +51,8 @@ class lynx_sound_device : public device_t, public device_sound_interface lynx_sound_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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 device_clock_changed() override; // sound stream update overrides @@ -82,7 +82,7 @@ class lynx2_sound_device : public lynx_sound_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // sound stream update overrides virtual void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; diff --git a/src/devices/sound/mas3507d.h b/src/devices/sound/mas3507d.h index 4402e8941d3..5078c050863 100644 --- a/src/devices/sound/mas3507d.h +++ b/src/devices/sound/mas3507d.h @@ -26,8 +26,8 @@ class mas3507d_device : public device_t, public device_sound_interface void reset_playback(); protected: - 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 const &inputs, std::vector &outputs) override; private: diff --git a/src/devices/sound/mea8000.h b/src/devices/sound/mea8000.h index 7538bffa62c..121b1866912 100644 --- a/src/devices/sound/mea8000.h +++ b/src/devices/sound/mea8000.h @@ -28,7 +28,7 @@ class mea8000_device : public device_t, public device_sound_interface protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; private: diff --git a/src/devices/sound/meg.h b/src/devices/sound/meg.h index f10cb08b228..53dad3a2616 100644 --- a/src/devices/sound/meg.h +++ b/src/devices/sound/meg.h @@ -14,11 +14,11 @@ class meg_device : public device_t { public: meg_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 44100*256); - void map(address_map &map); + void map(address_map &map) ATTR_COLD; protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: u8 m_r4[256]; diff --git a/src/devices/sound/mixer.h b/src/devices/sound/mixer.h index 5be1d45d5d3..f3a26030ea1 100644 --- a/src/devices/sound/mixer.h +++ b/src/devices/sound/mixer.h @@ -21,7 +21,7 @@ class mixer_device : public device_t, public device_mixer_interface protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: u8 m_dummy = 0; // needed for save-state support diff --git a/src/devices/sound/mm5837.h b/src/devices/sound/mm5837.h index df76f6171fd..2e8e5406506 100644 --- a/src/devices/sound/mm5837.h +++ b/src/devices/sound/mm5837.h @@ -166,8 +166,8 @@ class mm5837_device : public device_t 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; TIMER_CALLBACK_MEMBER(update_clock_output); @@ -193,7 +193,7 @@ class mm5837_stream_device : public device_t, public device_sound_interface protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // sound stream update overrides virtual void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; diff --git a/src/devices/sound/mos6560.h b/src/devices/sound/mos6560.h index bf1b8604695..13b29ba363f 100644 --- a/src/devices/sound/mos6560.h +++ b/src/devices/sound/mos6560.h @@ -101,8 +101,8 @@ class mos6560_device : public device_t, uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void mos6560_colorram_map(address_map &map); - void mos6560_videoram_map(address_map &map); + void mos6560_colorram_map(address_map &map) ATTR_COLD; + void mos6560_videoram_map(address_map &map) ATTR_COLD; protected: enum { @@ -114,8 +114,8 @@ class mos6560_device : public device_t, mos6560_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, uint32_t variant); // 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; // sound stream update overrides virtual void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; diff --git a/src/devices/sound/mos6581.h b/src/devices/sound/mos6581.h index de05db489d3..6f9c87a5abb 100644 --- a/src/devices/sound/mos6581.h +++ b/src/devices/sound/mos6581.h @@ -60,8 +60,8 @@ class mos6581_device : public device_t, public device_sound_interface mos6581_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, uint32_t variant); // 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 device_post_load() override; // device_sound_interface overrides diff --git a/src/devices/sound/mos7360.h b/src/devices/sound/mos7360.h index fd0a51f597b..1b6c1a8f5b0 100644 --- a/src/devices/sound/mos7360.h +++ b/src/devices/sound/mos7360.h @@ -88,7 +88,7 @@ class mos7360_device : public device_t, uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void mos7360_videoram_map(address_map &map); + void mos7360_videoram_map(address_map &map) ATTR_COLD; protected: enum { @@ -103,8 +103,8 @@ class mos7360_device : public device_t, }; // 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; // device_sound_interface callbacks virtual void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; diff --git a/src/devices/sound/msm5205.h b/src/devices/sound/msm5205.h index 46052aaffcb..d310c8d56fb 100644 --- a/src/devices/sound/msm5205.h +++ b/src/devices/sound/msm5205.h @@ -51,8 +51,8 @@ class msm5205_device : public device_t, public device_sound_interface msm5205_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, u8 dac_bits); // 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 device_clock_changed() override; TIMER_CALLBACK_MEMBER(toggle_vck); diff --git a/src/devices/sound/msm5232.h b/src/devices/sound/msm5232.h index 56b562b2c76..a79314b89fd 100644 --- a/src/devices/sound/msm5232.h +++ b/src/devices/sound/msm5232.h @@ -19,9 +19,9 @@ class msm5232_device : public device_t, public device_sound_interface protected: // device-level overrides - virtual void device_start() override; - virtual void device_stop() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_stop() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; virtual void device_post_load() override; // sound stream update overrides diff --git a/src/devices/sound/n63701x.h b/src/devices/sound/n63701x.h index 3ca5411df6d..f4d24173e1c 100644 --- a/src/devices/sound/n63701x.h +++ b/src/devices/sound/n63701x.h @@ -22,7 +22,7 @@ class namco_63701x_device : public device_t, protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // sound stream update overrides virtual void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; diff --git a/src/devices/sound/namco.h b/src/devices/sound/namco.h index f032a71a536..01ca882b3b4 100644 --- a/src/devices/sound/namco.h +++ b/src/devices/sound/namco.h @@ -37,7 +37,7 @@ class namco_audio_device : public device_t, namco_audio_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void device_clock_changed() override; // internal state @@ -85,7 +85,7 @@ class namco_device : public namco_audio_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; @@ -105,7 +105,7 @@ class namco_15xx_device : public namco_audio_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; diff --git a/src/devices/sound/namco_163.h b/src/devices/sound/namco_163.h index 541f0e053b7..953110194c9 100644 --- a/src/devices/sound/namco_163.h +++ b/src/devices/sound/namco_163.h @@ -20,7 +20,7 @@ class namco_163_sound_device : public device_t, protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void device_clock_changed() override; // global sound parameters diff --git a/src/devices/sound/nes_apu.h b/src/devices/sound/nes_apu.h index 2ebfcf3f84b..d5004d99bfb 100644 --- a/src/devices/sound/nes_apu.h +++ b/src/devices/sound/nes_apu.h @@ -45,7 +45,7 @@ class nesapu_device : public device_t, auto irq() { return m_irq_handler.bind(); } auto mem_read() { return m_mem_read_cb.bind(); } - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; virtual void device_clock_changed() override; u8 status_r(); @@ -55,7 +55,7 @@ class nesapu_device : public device_t, nesapu_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // sound stream update overrides virtual void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; diff --git a/src/devices/sound/nes_apu_vt.h b/src/devices/sound/nes_apu_vt.h index f93616673fa..20336c13a78 100644 --- a/src/devices/sound/nes_apu_vt.h +++ b/src/devices/sound/nes_apu_vt.h @@ -17,8 +17,8 @@ class nes_apu_vt_device : public nesapu_device nes_apu_vt_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: }; diff --git a/src/devices/sound/nn71003f.h b/src/devices/sound/nn71003f.h index 870125e723e..8471bbb6d13 100644 --- a/src/devices/sound/nn71003f.h +++ b/src/devices/sound/nn71003f.h @@ -27,8 +27,8 @@ class nn71003f_device : public device_t, public device_sound_interface auto miso_cb() { return m_miso.bind(); } protected: - 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 const &inputs, std::vector &outputs) override; private: diff --git a/src/devices/sound/okim6258.h b/src/devices/sound/okim6258.h index e7e4a25c414..0efb74d6fb9 100644 --- a/src/devices/sound/okim6258.h +++ b/src/devices/sound/okim6258.h @@ -42,8 +42,8 @@ class okim6258_device : public device_t, 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 device_clock_changed() override; // sound stream update overrides diff --git a/src/devices/sound/okim6295.h b/src/devices/sound/okim6295.h index 4d372a8a47c..ccf8f39f8a4 100644 --- a/src/devices/sound/okim6295.h +++ b/src/devices/sound/okim6295.h @@ -54,8 +54,8 @@ class okim6295_device : public device_t, protected: // device-level overrides virtual void device_validity_check(validity_checker &valid) const override; - 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 device_post_load() override; virtual void device_clock_changed() override; diff --git a/src/devices/sound/okim6376.h b/src/devices/sound/okim6376.h index ea90a7e51ea..d7c334a4321 100644 --- a/src/devices/sound/okim6376.h +++ b/src/devices/sound/okim6376.h @@ -26,8 +26,8 @@ class okim6376_device : public device_t, public device_sound_interface, public d okim6376_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, int addrbits); // 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 device_clock_changed() override; virtual void device_post_load() override; diff --git a/src/devices/sound/okim6588.h b/src/devices/sound/okim6588.h index 28bcec029aa..12f66f08c1e 100644 --- a/src/devices/sound/okim6588.h +++ b/src/devices/sound/okim6588.h @@ -29,8 +29,8 @@ class okim6588_device : public device_t, public device_sound_interface protected: // 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; virtual void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; diff --git a/src/devices/sound/okim9810.h b/src/devices/sound/okim9810.h index 8c16a0005c8..f5407702271 100644 --- a/src/devices/sound/okim9810.h +++ b/src/devices/sound/okim9810.h @@ -89,8 +89,8 @@ class okim9810_device : public device_t, }; // 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 device_post_load() override; virtual void device_clock_changed() override; diff --git a/src/devices/sound/pcd3311.h b/src/devices/sound/pcd3311.h index 5d5b8870008..29f6c49650a 100644 --- a/src/devices/sound/pcd3311.h +++ b/src/devices/sound/pcd3311.h @@ -45,7 +45,7 @@ class pcd3311_device : public device_t, protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // internal callbacks virtual void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; diff --git a/src/devices/sound/pci-ac97.h b/src/devices/sound/pci-ac97.h index 4633337e6dc..a9e43323ff2 100644 --- a/src/devices/sound/pci-ac97.h +++ b/src/devices/sound/pci-ac97.h @@ -17,14 +17,14 @@ class ac97_device : public pci_device { ac97_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: - void native_audio_mixer_map(address_map &map); - void native_audio_bus_mastering_map(address_map &map); - void mixer_map(address_map &map); - void bus_mastering_map(address_map &map); + void native_audio_mixer_map(address_map &map) ATTR_COLD; + void native_audio_bus_mastering_map(address_map &map) ATTR_COLD; + void mixer_map(address_map &map) ATTR_COLD; + void bus_mastering_map(address_map &map) ATTR_COLD; }; DECLARE_DEVICE_TYPE(AC97, ac97_device) diff --git a/src/devices/sound/pokey.h b/src/devices/sound/pokey.h index 3d60bcfcf8f..065a98082be 100644 --- a/src/devices/sound/pokey.h +++ b/src/devices/sound/pokey.h @@ -176,8 +176,8 @@ class pokey_device : public device_t, 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 device_post_load() override; virtual void device_clock_changed() override; diff --git a/src/devices/sound/qs1000.h b/src/devices/sound/qs1000.h index f921c2fd947..8f8e83355bf 100644 --- a/src/devices/sound/qs1000.h +++ b/src/devices/sound/qs1000.h @@ -59,15 +59,15 @@ class qs1000_device : public device_t, uint8_t p3_r(); void p3_w(uint8_t data); - void qs1000_io_map(address_map &map); - void qs1000_prg_map(address_map &map); + void qs1000_io_map(address_map &map) ATTR_COLD; + void qs1000_prg_map(address_map &map) ATTR_COLD; protected: // device-level overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; // device_sound_interface overrides virtual void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; diff --git a/src/devices/sound/qsound.h b/src/devices/sound/qsound.h index f3a442c9235..bb69f26bbdd 100644 --- a/src/devices/sound/qsound.h +++ b/src/devices/sound/qsound.h @@ -27,10 +27,10 @@ class qsound_device : public device_t, public device_sound_interface, public dev protected: // device_t implementation tiny_rom_entry const *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; virtual void device_clock_changed() override; - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; // device_sound_interface implementation virtual void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; @@ -38,7 +38,7 @@ class qsound_device : public device_t, public device_sound_interface, public dev // device_rom_interface implementation virtual void rom_bank_post_change() override; - void dsp_io_map(address_map &map); + void dsp_io_map(address_map &map) ATTR_COLD; private: // DSP ROM access diff --git a/src/devices/sound/qsoundhle.h b/src/devices/sound/qsoundhle.h index d5256854842..c978ddf1719 100644 --- a/src/devices/sound/qsoundhle.h +++ b/src/devices/sound/qsoundhle.h @@ -26,8 +26,8 @@ class qsound_hle_device : public device_t, public device_sound_interface, public protected: // device_t implementation tiny_rom_entry const *device_rom_region() const override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; // device_sound_interface implementation virtual void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; diff --git a/src/devices/sound/rf5c400.h b/src/devices/sound/rf5c400.h index a91ba9ee097..e7789817903 100644 --- a/src/devices/sound/rf5c400.h +++ b/src/devices/sound/rf5c400.h @@ -30,7 +30,7 @@ class rf5c400_device : public device_t, protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void device_clock_changed() override; // sound stream update overrides diff --git a/src/devices/sound/rf5c68.h b/src/devices/sound/rf5c68.h index d78f378faaf..5b67e2e65b5 100644 --- a/src/devices/sound/rf5c68.h +++ b/src/devices/sound/rf5c68.h @@ -36,12 +36,12 @@ class rf5c68_device : public device_t, u8 rf5c68_mem_r(offs_t offset); void rf5c68_mem_w(offs_t offset, u8 data); - void map(address_map &map); + void map(address_map &map) ATTR_COLD; protected: rf5c68_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, int output_bits); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void device_clock_changed() override; // sound stream update overrides @@ -86,7 +86,7 @@ class rf5c164_device : public rf5c68_device public: rf5c164_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); - void rf5c164_map(address_map &map); + void rf5c164_map(address_map &map) ATTR_COLD; }; DECLARE_DEVICE_TYPE(RF5C68, rf5c68_device) diff --git a/src/devices/sound/roland_gp.h b/src/devices/sound/roland_gp.h index 06023f85791..555d814bb07 100644 --- a/src/devices/sound/roland_gp.h +++ b/src/devices/sound/roland_gp.h @@ -21,8 +21,8 @@ class tc6116_device : public device_t, public device_sound_interface, public dev protected: // 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; // device_sound_interface implementation virtual void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; diff --git a/src/devices/sound/roland_lp.h b/src/devices/sound/roland_lp.h index 200c8f29206..3d9ced433d2 100644 --- a/src/devices/sound/roland_lp.h +++ b/src/devices/sound/roland_lp.h @@ -19,8 +19,8 @@ class mb87419_mb87420_device : public device_t, public device_sound_interface, p protected: // 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; // device_sound_interface implementation virtual void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; diff --git a/src/devices/sound/rp2c33_snd.h b/src/devices/sound/rp2c33_snd.h index bdb32e58f60..e60c036da8e 100644 --- a/src/devices/sound/rp2c33_snd.h +++ b/src/devices/sound/rp2c33_snd.h @@ -38,8 +38,8 @@ class rp2c33_sound_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 device_clock_changed() override; // sound stream update overrides diff --git a/src/devices/sound/s14001a.h b/src/devices/sound/s14001a.h index 44fe973cfeb..814f0a7795c 100644 --- a/src/devices/sound/s14001a.h +++ b/src/devices/sound/s14001a.h @@ -27,7 +27,7 @@ class s14001a_device : public device_t, public device_sound_interface, public de protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void device_clock_changed() override { m_stream->update(); m_stream->set_sample_rate(clock()); } virtual void rom_bank_pre_change() override { m_stream->update(); } diff --git a/src/devices/sound/s_dsp.h b/src/devices/sound/s_dsp.h index 00097b17303..9093c16ac60 100644 --- a/src/devices/sound/s_dsp.h +++ b/src/devices/sound/s_dsp.h @@ -25,8 +25,8 @@ class s_dsp_device : public device_t, public device_sound_interface, public devi 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 device_clock_changed() override; // sound stream update overrides diff --git a/src/devices/sound/saa1099.h b/src/devices/sound/saa1099.h index 87f5b58f48a..fec5ccdc692 100644 --- a/src/devices/sound/saa1099.h +++ b/src/devices/sound/saa1099.h @@ -28,7 +28,7 @@ class saa1099_device : public device_t, protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void device_clock_changed() override; // sound stream update overrides diff --git a/src/devices/sound/samples.h b/src/devices/sound/samples.h index c2123fe1dbb..dae042016c6 100644 --- a/src/devices/sound/samples.h +++ b/src/devices/sound/samples.h @@ -73,8 +73,8 @@ class samples_device : public device_t, samples_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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 device_post_load() override; // device_sound_interface overrides diff --git a/src/devices/sound/sb0400.h b/src/devices/sound/sb0400.h index 440e82a0544..772e3ac43ca 100644 --- a/src/devices/sound/sb0400.h +++ b/src/devices/sound/sb0400.h @@ -17,11 +17,11 @@ class sb0400_device : public pci_device { sb0400_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: - void map(address_map &map); + void map(address_map &map) ATTR_COLD; }; DECLARE_DEVICE_TYPE(SB0400, sb0400_device) diff --git a/src/devices/sound/scsp.h b/src/devices/sound/scsp.h index dfd62c24dd0..6d126ba2a34 100644 --- a/src/devices/sound/scsp.h +++ b/src/devices/sound/scsp.h @@ -40,7 +40,7 @@ class scsp_device : public device_t, protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void device_post_load() override; virtual void device_clock_changed() override; diff --git a/src/devices/sound/segapcm.h b/src/devices/sound/segapcm.h index ff098088037..a51c03f78b0 100644 --- a/src/devices/sound/segapcm.h +++ b/src/devices/sound/segapcm.h @@ -37,7 +37,7 @@ class segapcm_device : public device_t, protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void device_clock_changed() override; // sound stream update overrides diff --git a/src/devices/sound/setapcm.h b/src/devices/sound/setapcm.h index 2da5c147563..bf55b14d460 100644 --- a/src/devices/sound/setapcm.h +++ b/src/devices/sound/setapcm.h @@ -34,7 +34,7 @@ class setapcm_device : public device_t, setapcm_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void device_clock_changed() override; // sound stream update overrides diff --git a/src/devices/sound/sn76477.h b/src/devices/sound/sn76477.h index f415d113248..c37a7326b4c 100644 --- a/src/devices/sound/sn76477.h +++ b/src/devices/sound/sn76477.h @@ -145,8 +145,8 @@ class sn76477_device : public device_t, protected: // device-level overrides - virtual void device_start() override; - virtual void device_stop() override; + virtual void device_start() override ATTR_COLD; + virtual void device_stop() override ATTR_COLD; // sound stream update overrides virtual void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; diff --git a/src/devices/sound/sn76496.h b/src/devices/sound/sn76496.h index 052524d5874..cbe73e7e6e7 100644 --- a/src/devices/sound/sn76496.h +++ b/src/devices/sound/sn76496.h @@ -31,7 +31,7 @@ class sn76496_base_device : public device_t, public device_sound_interface int feedbackmask, int noisetap1, int noisetap2, bool negate, bool stereo, int clockdivider, bool ncr, bool sega, device_t *owner, uint32_t clock); - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void device_clock_changed() override; virtual void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; diff --git a/src/devices/sound/snkwave.h b/src/devices/sound/snkwave.h index bf40a33e500..091bd4e12e8 100644 --- a/src/devices/sound/snkwave.h +++ b/src/devices/sound/snkwave.h @@ -23,7 +23,7 @@ class snkwave_device : public device_t, protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // sound stream update overrides virtual void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; diff --git a/src/devices/sound/sp0250.h b/src/devices/sound/sp0250.h index 5dfd3742e52..fdba7710007 100644 --- a/src/devices/sound/sp0250.h +++ b/src/devices/sound/sp0250.h @@ -18,8 +18,8 @@ class sp0250_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; // sound stream update overrides virtual void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; diff --git a/src/devices/sound/sp0256.h b/src/devices/sound/sp0256.h index d1c6d7ab687..bc7beda7433 100644 --- a/src/devices/sound/sp0256.h +++ b/src/devices/sound/sp0256.h @@ -56,8 +56,8 @@ class sp0256_device : public device_t, 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; // sound stream update overrides virtual void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; diff --git a/src/devices/sound/spkrdev.h b/src/devices/sound/spkrdev.h index 98289857f07..24a76d78c4c 100644 --- a/src/devices/sound/spkrdev.h +++ b/src/devices/sound/spkrdev.h @@ -27,8 +27,8 @@ class speaker_sound_device : public device_t, 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 device_post_load() override; // sound stream update overrides diff --git a/src/devices/sound/spu.h b/src/devices/sound/spu.h index 0768006c0fb..e2641cd5a49 100644 --- a/src/devices/sound/spu.h +++ b/src/devices/sound/spu.h @@ -31,10 +31,10 @@ class spu_device : public device_t, public device_sound_interface class reverb; // 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 device_post_load() override; - virtual void device_stop() override; + virtual void device_stop() override ATTR_COLD; virtual void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; diff --git a/src/devices/sound/ssi263hle.h b/src/devices/sound/ssi263hle.h index 48b4a8ccb18..3b57c2dedcb 100644 --- a/src/devices/sound/ssi263hle.h +++ b/src/devices/sound/ssi263hle.h @@ -27,14 +27,14 @@ class ssi263hle_device : public device_t, public device_mixer_interface ssi263hle_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock = 0); - void map(address_map &map); + void map(address_map &map) ATTR_COLD; auto ar_callback() { return m_ar_cb.bind(); } protected: - 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; private: required_device m_votrax; diff --git a/src/devices/sound/st0016.h b/src/devices/sound/st0016.h index c965687732e..8153e14a288 100644 --- a/src/devices/sound/st0016.h +++ b/src/devices/sound/st0016.h @@ -22,7 +22,7 @@ class st0016_device : public device_t, public device_sound_interface, public dev protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // sound stream update overrides virtual void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; diff --git a/src/devices/sound/stt_sa1.h b/src/devices/sound/stt_sa1.h index 8436c2f7f6c..15b41f79a3a 100644 --- a/src/devices/sound/stt_sa1.h +++ b/src/devices/sound/stt_sa1.h @@ -25,8 +25,8 @@ class stt_sa1_device : public device_t, void key_w(uint16_t data); protected: - 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 const &inputs, std::vector &outputs) override; diff --git a/src/devices/sound/swp00.h b/src/devices/sound/swp00.h index afdfc71a580..cdb56fb158f 100644 --- a/src/devices/sound/swp00.h +++ b/src/devices/sound/swp00.h @@ -16,14 +16,14 @@ class swp00_device : public device_t, public device_sound_interface, public devi public: swp00_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 33868800); - void map(address_map &map); + void map(address_map &map) ATTR_COLD; protected: - 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 const &inputs, std::vector &outputs) override; virtual void rom_bank_pre_change() override; - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: template struct delay_block { diff --git a/src/devices/sound/swp20.h b/src/devices/sound/swp20.h index 9c2eeafefd6..df644bdad26 100644 --- a/src/devices/sound/swp20.h +++ b/src/devices/sound/swp20.h @@ -15,11 +15,11 @@ class swp20_device : public device_t, public device_sound_interface, public devi public: swp20_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 11289600); - void map(address_map &map); + void map(address_map &map) ATTR_COLD; protected: - 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 const &inputs, std::vector &outputs) override; private: diff --git a/src/devices/sound/swp30.h b/src/devices/sound/swp30.h index 4c07776c06e..0ee30f4d264 100644 --- a/src/devices/sound/swp30.h +++ b/src/devices/sound/swp30.h @@ -17,11 +17,11 @@ class swp30_device : public cpu_device, public device_sound_interface, public sw swp30_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 33868800); - void map(address_map &map); + void map(address_map &map) ATTR_COLD; protected: - 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 const &inputs, std::vector &outputs) override; virtual uint32_t execute_min_cycles() const noexcept override; virtual uint32_t execute_max_cycles() const noexcept override; @@ -215,10 +215,10 @@ class swp30_device : public cpu_device, public device_sound_interface, public sw template u16 meg_lfo_r(offs_t offset); template void meg_lfo_w(offs_t offset, u16 data); - void meg_prg_map(address_map &map); + void meg_prg_map(address_map &map) ATTR_COLD; u64 meg_prg_map_r(offs_t address); - void meg_reverb_map(address_map &map); + void meg_reverb_map(address_map &map) ATTR_COLD; virtual u16 swp30d_const_r(u16 address) const override; virtual u16 swp30d_offset_r(u16 address) const override; diff --git a/src/devices/sound/swx00.h b/src/devices/sound/swx00.h index 5ee8f700f1f..0dc99c1b809 100644 --- a/src/devices/sound/swx00.h +++ b/src/devices/sound/swx00.h @@ -16,13 +16,13 @@ class swx00_sound_device : public device_t, public device_sound_interface, publi public: swx00_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 0); - void map(address_map &map); + void map(address_map &map) ATTR_COLD; protected: - 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 const &inputs, std::vector &outputs) override; - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: sound_stream *m_stream; diff --git a/src/devices/sound/t6721a.h b/src/devices/sound/t6721a.h index 52f845f81fb..861c03967da 100644 --- a/src/devices/sound/t6721a.h +++ b/src/devices/sound/t6721a.h @@ -62,7 +62,7 @@ class t6721a_device : public device_t, protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_sound_interface overrides virtual void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; diff --git a/src/devices/sound/t6w28.h b/src/devices/sound/t6w28.h index 6b953449f87..8d90c05bbe6 100644 --- a/src/devices/sound/t6w28.h +++ b/src/devices/sound/t6w28.h @@ -15,7 +15,7 @@ class t6w28_device : public device_t, public device_sound_interface protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // sound stream update overrides virtual void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; diff --git a/src/devices/sound/ta7630.h b/src/devices/sound/ta7630.h index 4851ba696b5..5bed813f863 100644 --- a/src/devices/sound/ta7630.h +++ b/src/devices/sound/ta7630.h @@ -29,7 +29,7 @@ class ta7630_device : public device_t protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: double m_vol_ctrl[16]; // table for volume gains diff --git a/src/devices/sound/tc8830f.h b/src/devices/sound/tc8830f.h index 0a447b02dba..fa1a3c8f938 100644 --- a/src/devices/sound/tc8830f.h +++ b/src/devices/sound/tc8830f.h @@ -28,7 +28,7 @@ class tc8830f_device : public device_t, protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void device_post_load() override; virtual void device_clock_changed() override; diff --git a/src/devices/sound/tiaintf.h b/src/devices/sound/tiaintf.h index 8ef5d0341f7..94e8c8510e9 100644 --- a/src/devices/sound/tiaintf.h +++ b/src/devices/sound/tiaintf.h @@ -20,8 +20,8 @@ class tia_device : public device_t, public device_sound_interface protected: // device-level overrides - virtual void device_start() override; - virtual void device_stop() override; + virtual void device_start() override ATTR_COLD; + virtual void device_stop() override ATTR_COLD; // sound stream update overrides virtual void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; diff --git a/src/devices/sound/tms3615.h b/src/devices/sound/tms3615.h index a1eeaab5318..bf29b32b9dd 100644 --- a/src/devices/sound/tms3615.h +++ b/src/devices/sound/tms3615.h @@ -25,7 +25,7 @@ class tms3615_device : public device_t, public device_sound_interface protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // sound stream update overrides virtual void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; diff --git a/src/devices/sound/tms36xx.h b/src/devices/sound/tms36xx.h index 5693e3b8e7c..307e6787afa 100644 --- a/src/devices/sound/tms36xx.h +++ b/src/devices/sound/tms36xx.h @@ -60,7 +60,7 @@ class tms36xx_device : public device_t, static constexpr unsigned TMS36XX_VMAX = 0x7fff; // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // sound stream update overrides virtual void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; diff --git a/src/devices/sound/tms5110.h b/src/devices/sound/tms5110.h index c6e2a38900e..2c9628c3338 100644 --- a/src/devices/sound/tms5110.h +++ b/src/devices/sound/tms5110.h @@ -53,8 +53,8 @@ class tms5110_device : public device_t, public device_sound_interface tms5110_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, int variant); // 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 device_clock_changed() override; TIMER_CALLBACK_MEMBER(romclk_hack_toggle); @@ -283,7 +283,7 @@ class tmsprom_device : public device_t protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; TIMER_CALLBACK_MEMBER(update_romclk); diff --git a/src/devices/sound/tms5220.h b/src/devices/sound/tms5220.h index f7ff1dcc091..33747f5d561 100644 --- a/src/devices/sound/tms5220.h +++ b/src/devices/sound/tms5220.h @@ -68,8 +68,8 @@ class tms5220_device : public device_t, public device_sound_interface tms5220_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, int variant); // 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 device_clock_changed() override; // sound stream update overrides diff --git a/src/devices/sound/tt5665.h b/src/devices/sound/tt5665.h index 5d3f0a155bc..2bbd1c73822 100644 --- a/src/devices/sound/tt5665.h +++ b/src/devices/sound/tt5665.h @@ -63,8 +63,8 @@ class tt5665_device : public device_t, protected: // device-level overrides virtual void device_validity_check(validity_checker &valid) const override; - 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 device_post_load() override; virtual void device_clock_changed() override; diff --git a/src/devices/sound/uda1344.h b/src/devices/sound/uda1344.h index 7bb07856df7..5ba1df90cdf 100644 --- a/src/devices/sound/uda1344.h +++ b/src/devices/sound/uda1344.h @@ -25,8 +25,8 @@ class uda1344_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 device_clock_changed() override; // sound stream update overrides diff --git a/src/devices/sound/upd1771.h b/src/devices/sound/upd1771.h index 7c5cc5f7f95..91c39ba6a41 100644 --- a/src/devices/sound/upd1771.h +++ b/src/devices/sound/upd1771.h @@ -28,8 +28,8 @@ class upd1771c_device : public device_t, 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; // sound stream update overrides virtual void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; diff --git a/src/devices/sound/upd65043gfu01.h b/src/devices/sound/upd65043gfu01.h index 4bcaf6ebf69..29c1a74e3a8 100644 --- a/src/devices/sound/upd65043gfu01.h +++ b/src/devices/sound/upd65043gfu01.h @@ -19,8 +19,8 @@ class upd65043gfu01_device : public device_t, public device_sound_interface void write(offs_t offset, u8 data); protected: - 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 device_clock_changed() override; virtual void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; diff --git a/src/devices/sound/upd7752.h b/src/devices/sound/upd7752.h index 9693ee99f4d..c9890e19588 100644 --- a/src/devices/sound/upd7752.h +++ b/src/devices/sound/upd7752.h @@ -22,13 +22,13 @@ class upd7752_device : public device_t, public device_sound_interface, public de void write(offs_t offset, uint8_t data); uint8_t read(offs_t offset); - void upd7752_ram(address_map &map); + void upd7752_ram(address_map &map) ATTR_COLD; protected: // device-level overrides - virtual void device_start() override; - virtual void device_stop() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_stop() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; virtual void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; virtual space_config_vector memory_space_config() const override; diff --git a/src/devices/sound/upd7759.h b/src/devices/sound/upd7759.h index a1e42a49283..b45fff6d95e 100644 --- a/src/devices/sound/upd7759.h +++ b/src/devices/sound/upd7759.h @@ -67,9 +67,9 @@ class upd775x_device : public device_t, upd775x_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void device_clock_changed() override; - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; virtual void rom_bank_pre_change() override; @@ -134,8 +134,8 @@ class upd7759_device : public upd775x_device protected: upd7759_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; TIMER_CALLBACK_MEMBER(drq_update); @@ -153,7 +153,7 @@ class upd7756_device : public upd775x_device protected: upd7756_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; }; DECLARE_DEVICE_TYPE(UPD7759, upd7759_device) diff --git a/src/devices/sound/upd933.h b/src/devices/sound/upd933.h index b4023fb8311..b29c2f2c879 100644 --- a/src/devices/sound/upd933.h +++ b/src/devices/sound/upd933.h @@ -27,8 +27,8 @@ class upd933_device : public device_t, public device_sound_interface u8 read(); protected: - 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 device_clock_changed() override; virtual void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; diff --git a/src/devices/sound/upd934g.h b/src/devices/sound/upd934g.h index 2799c4d0984..6652fb62c8e 100644 --- a/src/devices/sound/upd934g.h +++ b/src/devices/sound/upd934g.h @@ -31,8 +31,8 @@ class upd934g_device : public device_t, public device_sound_interface, public de 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 const &inputs, std::vector &outputs) override; diff --git a/src/devices/sound/vgm_visualizer.h b/src/devices/sound/vgm_visualizer.h index 516e4e4bfad..9f88bd90b0d 100644 --- a/src/devices/sound/vgm_visualizer.h +++ b/src/devices/sound/vgm_visualizer.h @@ -86,9 +86,9 @@ class vgmviz_device : public device_t, public device_mixer_interface static constexpr size_t NORMALIZE_BUF_SIZE = 131072; // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; // device_sound_interface-level overrides void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; diff --git a/src/devices/sound/vlm5030.h b/src/devices/sound/vlm5030.h index 8f8eeb8bb1b..ca34110b285 100644 --- a/src/devices/sound/vlm5030.h +++ b/src/devices/sound/vlm5030.h @@ -29,8 +29,8 @@ class vlm5030_device : public device_t, public device_sound_interface, public de 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 device_post_load() override; // sound stream update overrides diff --git a/src/devices/sound/votrax.h b/src/devices/sound/votrax.h index 900d1f218b9..a3b2ab12114 100644 --- a/src/devices/sound/votrax.h +++ b/src/devices/sound/votrax.h @@ -30,9 +30,9 @@ class votrax_sc01_device : public device_t, // overridable type for subclass votrax_sc01_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // device-level overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_start() override; - virtual void device_reset() override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; virtual void device_clock_changed() override; // device_sound_interface overrides @@ -187,7 +187,7 @@ class votrax_sc01a_device : public votrax_sc01_device votrax_sc01a_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: // device-level overrides - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; }; //************************************************************************** diff --git a/src/devices/sound/vrc6.h b/src/devices/sound/vrc6.h index eb17dabff82..9dcc2fa1cee 100644 --- a/src/devices/sound/vrc6.h +++ b/src/devices/sound/vrc6.h @@ -28,8 +28,8 @@ class vrc6snd_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 const &inputs, std::vector &outputs) override; diff --git a/src/devices/sound/vrender0.h b/src/devices/sound/vrender0.h index 1e234232c69..87f16302cf3 100644 --- a/src/devices/sound/vrender0.h +++ b/src/devices/sound/vrender0.h @@ -70,10 +70,10 @@ class vr0sound_device : public device_t, u16 ctrl_r(offs_t offset); void ctrl_w(offs_t offset, u16 data, u16 mem_mask); - void sound_map(address_map &map); + void sound_map(address_map &map) ATTR_COLD; protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void device_post_load() override; virtual void device_clock_changed() override; diff --git a/src/devices/sound/wave.h b/src/devices/sound/wave.h index 73c9b94873a..0d2db370f66 100644 --- a/src/devices/sound/wave.h +++ b/src/devices/sound/wave.h @@ -33,7 +33,7 @@ class wave_device : public device_t, public device_sound_interface protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // sound stream update overrides virtual void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; diff --git a/src/devices/sound/x1_010.h b/src/devices/sound/x1_010.h index a107534d4ae..2b206210dd6 100644 --- a/src/devices/sound/x1_010.h +++ b/src/devices/sound/x1_010.h @@ -22,7 +22,7 @@ class x1_010_device : public device_t, public device_sound_interface, public dev protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void device_clock_changed() override; // sound stream update overrides diff --git a/src/devices/sound/xt446.h b/src/devices/sound/xt446.h index e29c230402a..049e69a90e5 100644 --- a/src/devices/sound/xt446.h +++ b/src/devices/sound/xt446.h @@ -23,17 +23,17 @@ class xt446_device : public device_t, public device_mixer_interface void midi_w(int state) { m_maincpu->sci_rx_w<0>(state); } protected: - 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; private: required_device m_maincpu; required_device m_swp30; - void xt446_map(address_map &map); - void swp30_map(address_map &map); + void xt446_map(address_map &map) ATTR_COLD; + void swp30_map(address_map &map) ATTR_COLD; }; DECLARE_DEVICE_TYPE(XT446, xt446_device) diff --git a/src/devices/sound/ym2154.h b/src/devices/sound/ym2154.h index e7f287409fa..65eeb8d3a0c 100644 --- a/src/devices/sound/ym2154.h +++ b/src/devices/sound/ym2154.h @@ -34,8 +34,8 @@ class ym2154_device : public device_t, public device_sound_interface, public dev 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 device_clock_changed() override; // sound overrides diff --git a/src/devices/sound/ymf271.h b/src/devices/sound/ymf271.h index 04d49c57f09..535631d664b 100644 --- a/src/devices/sound/ymf271.h +++ b/src/devices/sound/ymf271.h @@ -22,8 +22,8 @@ class ymf271_device : public device_t, public device_sound_interface, public dev 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 device_clock_changed() override; // sound stream update overrides diff --git a/src/devices/sound/ymopl.h b/src/devices/sound/ymopl.h index 6d5f279be03..f0f44e9b5ac 100644 --- a/src/devices/sound/ymopl.h +++ b/src/devices/sound/ymopl.h @@ -132,8 +132,8 @@ class ym2413_device : public ymfm_device_base protected: // device-level overrides - 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; // internal state required_region_ptr m_internal; // internal memory region @@ -154,8 +154,8 @@ class ym2423_device : public ymfm_device_base protected: // device-level overrides - 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; // internal state required_region_ptr m_internal; // internal memory region @@ -176,8 +176,8 @@ class ymf281_device : public ymfm_device_base protected: // device-level overrides - 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; // internal state required_region_ptr m_internal; // internal memory region @@ -198,8 +198,8 @@ class ds1001_device : public ymfm_device_base protected: // device-level overrides - 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; // internal state required_region_ptr m_internal; // internal memory region diff --git a/src/devices/sound/ymopn.h b/src/devices/sound/ymopn.h index 93b0999be8c..c8f8d6e2597 100644 --- a/src/devices/sound/ymopn.h +++ b/src/devices/sound/ymopn.h @@ -34,7 +34,7 @@ class ym2203_device : public ymfm_ssg_device_base protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; }; @@ -67,8 +67,8 @@ class ym2608_device : public ymfm_ssg_device_base, public device_r protected: // device-level overrides - 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; // ROM device overrides virtual void rom_bank_pre_change() override; @@ -107,7 +107,7 @@ class ym2610_device_base : public ymfm_ssg_device_base, public device using parent::update_streams; // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // memory space configuration virtual space_config_vector memory_space_config() const override; diff --git a/src/devices/sound/ymz280b.h b/src/devices/sound/ymz280b.h index 319f85b83f4..1d6f95b1b17 100644 --- a/src/devices/sound/ymz280b.h +++ b/src/devices/sound/ymz280b.h @@ -29,9 +29,9 @@ class ymz280b_device : public device_t, public device_sound_interface, public de protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void device_post_load() override; - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; virtual void device_clock_changed() override; // sound stream update overrides diff --git a/src/devices/sound/ymz770.h b/src/devices/sound/ymz770.h index c8850b2e2bc..f9bf1eab823 100644 --- a/src/devices/sound/ymz770.h +++ b/src/devices/sound/ymz770.h @@ -30,8 +30,8 @@ class ymz770_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 const &inputs, std::vector &outputs) override; diff --git a/src/devices/sound/zsg2.h b/src/devices/sound/zsg2.h index 0239f6ff03d..6d4d1b7c081 100644 --- a/src/devices/sound/zsg2.h +++ b/src/devices/sound/zsg2.h @@ -25,8 +25,8 @@ class zsg2_device : public device_t, 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; // sound stream update overrides virtual void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; diff --git a/src/devices/video/315_5124.h b/src/devices/video/315_5124.h index 913fdb71e18..f18ec2a3f2c 100644 --- a/src/devices/video/315_5124.h +++ b/src/devices/video/315_5124.h @@ -92,15 +92,15 @@ class sega315_5124_device : public device_t, // device-level overrides virtual void device_post_load() override; - 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; virtual space_config_vector memory_space_config() const override; void sega315_5124_palette(palette_device &palette) const; - void sega315_5124(address_map &map); + void sega315_5124(address_map &map) ATTR_COLD; virtual int screen_hpos() { return screen().hpos() / ((m_hcounter_divide == 0) ? 1 : m_hcounter_divide); } void set_display_settings(); @@ -216,7 +216,7 @@ class sega315_5246_device : public sega315_5124_device protected: sega315_5246_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, u8 cram_size, u8 palette_offset, u8 reg_num_mask, int max_sprite_zoom_hcount, int max_sprite_zoom_vcount, const u8 *line_timing); - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual u16 name_row_mode4(u16 row) override; virtual u16 tile1_select_mode4(u16 tile_number) override; @@ -240,8 +240,8 @@ class sega315_5377_device : public sega315_5246_device protected: sega315_5377_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, u8 cram_size, u8 palette_offset, u8 reg_num_mask, int max_sprite_zoom_hcount, int max_sprite_zoom_vcount, const u8 *line_timing); - virtual void device_reset() override; - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_reset() override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual void vblank_end(int vpos) override; virtual void update_palette() override; @@ -262,7 +262,7 @@ class sega315_5313_mode4_device : public sega315_5246_device protected: sega315_5313_mode4_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, u8 cram_size, u8 palette_offset, u8 reg_num_mask, int max_sprite_zoom_hcount, int max_sprite_zoom_vcount, const u8 *line_timing); - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual void update_palette() override; virtual void write_memory(u8 data) override; diff --git a/src/devices/video/315_5313.h b/src/devices/video/315_5313.h index 23bd51f3f33..188eac08406 100644 --- a/src/devices/video/315_5313.h +++ b/src/devices/video/315_5313.h @@ -104,9 +104,9 @@ class sega315_5313_device : public sega315_5313_mode4_device, public device_gfx_ protected: virtual void device_post_load() override; - 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; // called when we hit 240 and 241 (used to control the z80 irq line on genesis, or the main irq on c2) devcb_write_line m_sndirqline_callback; diff --git a/src/devices/video/am8052.h b/src/devices/video/am8052.h index 74fee1ea69f..06e33ec069d 100644 --- a/src/devices/video/am8052.h +++ b/src/devices/video/am8052.h @@ -29,7 +29,7 @@ class am8052_device : public device_t protected: // device-specific overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: // internal state diff --git a/src/devices/video/ati_mach32.h b/src/devices/video/ati_mach32.h index fe80d92b9b5..90cff137afe 100644 --- a/src/devices/video/ati_mach32.h +++ b/src/devices/video/ati_mach32.h @@ -37,8 +37,8 @@ class mach32_8514a_device : public mach8_device protected: mach32_8514a_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; uint16_t m_chip_ID; uint16_t m_membounds; @@ -164,9 +164,9 @@ class mach32_device : public ati_vga_device mach32_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // device-level overrides - 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; virtual void ati_define_video_mode() override; virtual uint16_t offset() override; @@ -200,8 +200,8 @@ class mach64_8514a_device : public mach32_8514a_device protected: mach64_8514a_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; }; // main SVGA device @@ -225,9 +225,9 @@ class mach64_device : public mach32_device mach64_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // device-level overrides - 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; required_device m_8514a; // provides accelerated 2D drawing, derived from the Mach8 device diff --git a/src/devices/video/ati_mach8.h b/src/devices/video/ati_mach8.h index cd21764cc36..b36037897fe 100644 --- a/src/devices/video/ati_mach8.h +++ b/src/devices/video/ati_mach8.h @@ -58,7 +58,7 @@ class mach8_device : public ibm8514a_device protected: mach8_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_start() override ATTR_COLD; struct { uint16_t scratch0; diff --git a/src/devices/video/atirage.h b/src/devices/video/atirage.h index fca1f4b4973..6aaf794a5cf 100644 --- a/src/devices/video/atirage.h +++ b/src/devices/video/atirage.h @@ -14,9 +14,9 @@ class atirage_device : public pci_device public: atirage_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); - void mem_map(address_map &map); - void io_map(address_map &map); - void reg_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; + void reg_map(address_map &map) ATTR_COLD; auto gpio_get_cb() { return read_gpio.bind(); } auto gpio_set_cb() { return write_gpio.bind(); } @@ -24,12 +24,12 @@ class atirage_device : public pci_device void set_gpio_pullups(u16 pullups) { m_gpio_pullups = pullups; } protected: - 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; virtual void map_extra(uint64_t memory_window_start, uint64_t memory_window_end, uint64_t memory_offset, address_space *memory_space, uint64_t io_window_start, uint64_t io_window_end, uint64_t io_offset, address_space *io_space) override; - virtual void config_map(address_map &map) override; + virtual void config_map(address_map &map) override ATTR_COLD; required_device m_mach64; required_device m_screen; @@ -67,7 +67,7 @@ class atirageii_device : public atirage_device atirageii_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; }; class atirageiic_device : public atirage_device @@ -76,7 +76,7 @@ class atirageiic_device : public atirage_device atirageiic_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; }; class atirageiidvd_device : public atirage_device @@ -85,16 +85,16 @@ class atirageiidvd_device : public atirage_device atirageiidvd_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - 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 const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; virtual void map_extra(uint64_t memory_window_start, uint64_t memory_window_end, uint64_t memory_offset, address_space *memory_space, uint64_t io_window_start, uint64_t io_window_end, uint64_t io_offset, address_space *io_space) override; u8 vram_r(offs_t offset); void vram_w(offs_t offset, uint8_t data); - void legacy_io_map(address_map &map); + void legacy_io_map(address_map &map) ATTR_COLD; private: required_memory_region m_vga_rom; @@ -106,7 +106,7 @@ class atiragepro_device : public atirage_device atiragepro_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; }; DECLARE_DEVICE_TYPE(ATI_RAGEII, atirageii_device) diff --git a/src/devices/video/avgdvg.h b/src/devices/video/avgdvg.h index b0c11ae68ce..ec209fae87b 100644 --- a/src/devices/video/avgdvg.h +++ b/src/devices/video/avgdvg.h @@ -47,7 +47,7 @@ class avgdvg_device_base : public device_t avgdvg_device_base(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual int handler_0() = 0; virtual int handler_1() = 0; @@ -121,7 +121,7 @@ class dvg_device : public avgdvg_device_base dvg_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual int handler_0() override; virtual int handler_1() override; @@ -149,7 +149,7 @@ class avg_device : public avgdvg_device_base protected: avg_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual int handler_0() override; virtual int handler_1() override; @@ -203,7 +203,7 @@ class avg_mhavoc_device : public avg_device avg_mhavoc_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual int handler_1() override; virtual int handler_6() override; @@ -263,7 +263,7 @@ class avg_bzone_device : public avg_device avg_bzone_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual int handler_1() override; virtual int handler_6() override; diff --git a/src/devices/video/bt431.h b/src/devices/video/bt431.h index 1ea71b56794..793ac4cb24f 100644 --- a/src/devices/video/bt431.h +++ b/src/devices/video/bt431.h @@ -53,15 +53,15 @@ class bt431_device : public device_t CR_D3D2_51 = 0x08, // 5:1 multiplexing }; - void map(address_map &map); + void map(address_map &map) ATTR_COLD; bool cur_r(unsigned x, unsigned y) const; protected: static constexpr u16 ADDRESS_MASK = 0x01ff; // device_t 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; template u8 addr_r() { return m_address >> S; } template void addr_w(u8 data) { m_address = ((m_address & (0xff00 >> S)) | (u16(data) << S)) & ADDRESS_MASK; } diff --git a/src/devices/video/bt459.h b/src/devices/video/bt459.h index 2d525383378..bf50c260d7d 100644 --- a/src/devices/video/bt459.h +++ b/src/devices/video/bt459.h @@ -179,7 +179,7 @@ class bt459_device : public device_t, public device_palette_interface CR4241_7PIX = 0x06 // cross hair thickness 7 pixels }; - void map(address_map &map); + void map(address_map &map) ATTR_COLD; u8 address_lo_r(); void address_lo_w(u8 data); @@ -194,8 +194,8 @@ class bt459_device : public device_t, public device_palette_interface void set_contrast(const u8 data) { m_contrast = data; } protected: - 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 u32 palette_entries() const noexcept override { return BT459_PIXEL_COLORS + BT459_OVERLAY_COLORS + BT459_CURSOR_COLORS; } diff --git a/src/devices/video/bt45x.h b/src/devices/video/bt45x.h index 33cd63abd56..845eb3991b3 100644 --- a/src/devices/video/bt45x.h +++ b/src/devices/video/bt45x.h @@ -42,13 +42,13 @@ class bt45x_device_base : public device_t CR54_1648 = 0x00 // 16 on 48 off, 25/75 }; - virtual void map(address_map &map); + virtual void map(address_map &map) ATTR_COLD; protected: bt45x_device_base(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, const u32 palette_colors, const u32 overlay_colors); - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; u8 address_r(); void address_w(u8 data); @@ -82,7 +82,7 @@ class bt45x_rgb_device_base : public bt45x_device_base, public device_palette_in protected: bt45x_rgb_device_base(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, const u32 palette_colors, const u32 overlay_colors); - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual u32 palette_entries() const noexcept override { return m_palette_colors + m_overlay_colors; } @@ -109,7 +109,7 @@ class bt45x_mono_device_base : public bt45x_device_base protected: bt45x_mono_device_base(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, const u32 palette_colors, const u32 overlay_colors); - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual u8 palette_r(address_space &space) override; virtual void palette_w(u8 data) override; @@ -137,7 +137,7 @@ class bt453_device : public bt45x_rgb_device_base public: bt453_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - virtual void map(address_map &map) override; + virtual void map(address_map &map) override ATTR_COLD; }; class bt454_device : public bt45x_rgb_device_base @@ -145,7 +145,7 @@ class bt454_device : public bt45x_rgb_device_base public: bt454_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - virtual void map(address_map &map) override; + virtual void map(address_map &map) override ATTR_COLD; }; class bt455_device : public bt45x_mono_device_base @@ -153,7 +153,7 @@ class bt455_device : public bt45x_mono_device_base public: bt455_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - virtual void map(address_map &map) override; + virtual void map(address_map &map) override ATTR_COLD; }; class bt457_device : public bt45x_mono_device_base diff --git a/src/devices/video/bt47x.h b/src/devices/video/bt47x.h index 4248ff20ebe..a186083e3b8 100644 --- a/src/devices/video/bt47x.h +++ b/src/devices/video/bt47x.h @@ -14,7 +14,7 @@ class bt47x_device_base rgb_t palette_lookup(u8 index) const { return pen_color(index & m_read_mask); } rgb_t overlay_lookup(u8 index) const { return pen_color(m_palette_colors + index); } - virtual void map(address_map &map); + virtual void map(address_map &map) ATTR_COLD; virtual u8 read(offs_t offset); virtual void write(offs_t offset, u8 data); @@ -22,7 +22,7 @@ class bt47x_device_base bt47x_device_base(machine_config const &mconfig, device_type type, char const *tag, device_t *owner, u32 clock, unsigned const palette_colors, unsigned const overlay_colors, unsigned const color_bits); // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_palette_interface implementation virtual u32 palette_entries() const noexcept override { return m_palette_colors + m_overlay_colors; } @@ -59,7 +59,7 @@ class bt47x_device_base class bt475_device_base : public bt47x_device_base { public: - virtual void map(address_map &map) override; + virtual void map(address_map &map) override ATTR_COLD; virtual u8 read(offs_t offset) override; virtual void write(offs_t offset, u8 data) override; @@ -67,7 +67,7 @@ class bt475_device_base : public bt47x_device_base bt475_device_base(machine_config const &mconfig, device_type type, char const *tag, device_t *owner, u32 clock, unsigned const palette_colors, unsigned const overlay_colors, unsigned const color_bits); // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; u8 command_r(); void command_w(u8 data); @@ -124,12 +124,12 @@ class bt479_device : public bt47x_device_base public: bt479_device(machine_config const &mconfig, char const *tag, device_t *owner, u32 clock); - virtual void map(address_map &map) override; + virtual void map(address_map &map) override ATTR_COLD; virtual u8 read(offs_t offset) override; virtual void write(offs_t offset, u8 data) override; protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual unsigned address() const override { return BIT(m_command[0], 4, 2) * 0x100 + bt47x_device_base::address(); }; virtual unsigned color_bits() const override { return BIT(m_command[1], 1) ? 8 : 6; } diff --git a/src/devices/video/bufsprite.h b/src/devices/video/bufsprite.h index 626ca505b44..57b6ee0315f 100644 --- a/src/devices/video/bufsprite.h +++ b/src/devices/video/bufsprite.h @@ -70,7 +70,7 @@ class buffered_spriteram_device : public device_t uint32_t clock); // first-time setup - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: // internal state diff --git a/src/devices/video/catseye.h b/src/devices/video/catseye.h index 75dfb0af58a..7973a9fcecc 100644 --- a/src/devices/video/catseye.h +++ b/src/devices/video/catseye.h @@ -48,8 +48,8 @@ class catseye_device: public device_t devcb_write8 m_int_write_func; TIMER_CALLBACK_MEMBER(blink_callback); - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; void execute_rule(const bool src, const int rule, bool &dst) const; void update_int(); diff --git a/src/devices/video/cdp1861.h b/src/devices/video/cdp1861.h index c038223a50e..ca9e6c8351e 100644 --- a/src/devices/video/cdp1861.h +++ b/src/devices/video/cdp1861.h @@ -79,8 +79,8 @@ class cdp1861_device : public device_t, protected: // device-level overrides virtual void device_config_complete() override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; TIMER_CALLBACK_MEMBER(int_tick); TIMER_CALLBACK_MEMBER(efx_tick); diff --git a/src/devices/video/cdp1862.h b/src/devices/video/cdp1862.h index 57aab81b21a..9200460349c 100644 --- a/src/devices/video/cdp1862.h +++ b/src/devices/video/cdp1862.h @@ -57,8 +57,8 @@ class cdp1862_device : public device_t, 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; private: inline void initialize_palette(); diff --git a/src/devices/video/cesblit.h b/src/devices/video/cesblit.h index 2a00d601067..0f691b9dcd0 100644 --- a/src/devices/video/cesblit.h +++ b/src/devices/video/cesblit.h @@ -48,8 +48,8 @@ class cesblit_device : public device_t, protected: // device-level overrides - virtual void device_start() override; - virtual void device_stop() override; + virtual void device_start() override ATTR_COLD; + virtual void device_stop() override ATTR_COLD; virtual space_config_vector memory_space_config() const override; void do_blit(); diff --git a/src/devices/video/crt9007.h b/src/devices/video/crt9007.h index 369cb0b9fb6..1bc0ebdfd30 100644 --- a/src/devices/video/crt9007.h +++ b/src/devices/video/crt9007.h @@ -76,8 +76,8 @@ class crt9007_device : public device_t, protected: // 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; virtual void device_post_load() override; virtual void device_clock_changed() override; @@ -93,7 +93,7 @@ class crt9007_device : public device_t, TIMER_CALLBACK_MEMBER(frame_update); private: - void crt9007(address_map &map); + void crt9007(address_map &map) ATTR_COLD; inline uint8_t readbyte(offs_t address); diff --git a/src/devices/video/crt9021.h b/src/devices/video/crt9021.h index 1d071da00df..7f0f79dad56 100644 --- a/src/devices/video/crt9021.h +++ b/src/devices/video/crt9021.h @@ -80,7 +80,7 @@ class crt9021_device : public device_t, public device_video_interface protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: enum diff --git a/src/devices/video/crt9028.h b/src/devices/video/crt9028.h index e42598c96de..86ddb8a6d17 100644 --- a/src/devices/video/crt9028.h +++ b/src/devices/video/crt9028.h @@ -68,7 +68,7 @@ class crt9028_device : public device_t, public device_memory_interface, public d // device_t implementation virtual void device_config_complete() override; - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_memory_interface implementation virtual space_config_vector memory_space_config() const override; @@ -132,7 +132,7 @@ class crt9028_000_device : public crt9028_device protected: // device-specific overrides - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; }; // device type declarations diff --git a/src/devices/video/crt9212.h b/src/devices/video/crt9212.h index bf32b311c2d..79e18a52fa8 100644 --- a/src/devices/video/crt9212.h +++ b/src/devices/video/crt9212.h @@ -57,7 +57,7 @@ class crt9212_device : public device_t protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: static constexpr int RAM_SIZE = 135; diff --git a/src/devices/video/crtc_ega.h b/src/devices/video/crtc_ega.h index 6418f248ef3..9ef82961abb 100644 --- a/src/devices/video/crtc_ega.h +++ b/src/devices/video/crtc_ega.h @@ -71,8 +71,8 @@ class crtc_ega_device : public device_t, 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 device_post_load() override; private: diff --git a/src/devices/video/dl1416.h b/src/devices/video/dl1416.h index eae4e090085..c6483c20b79 100644 --- a/src/devices/video/dl1416.h +++ b/src/devices/video/dl1416.h @@ -54,8 +54,8 @@ class dl1414_device : public device_t u32 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; void set_cursor_state(offs_t offset, bool state); virtual u16 translate(u8 digit, bool cursor) const = 0; @@ -93,7 +93,7 @@ class dl1416_device : public dl1414_device u32 clock); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; bool cu_in() const { return m_cu_in; } diff --git a/src/devices/video/dm9368.h b/src/devices/video/dm9368.h index 556b5b6313f..7eb2bae9ea0 100644 --- a/src/devices/video/dm9368.h +++ b/src/devices/video/dm9368.h @@ -45,7 +45,7 @@ class dm9368_device : public device_t protected: // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; void update(); diff --git a/src/devices/video/dp8350.h b/src/devices/video/dp8350.h index ee4700cffdf..85b0b55b50e 100644 --- a/src/devices/video/dp8350.h +++ b/src/devices/video/dp8350.h @@ -83,9 +83,9 @@ class dp835x_device : public device_t, public device_video_interface // device_t implementation virtual void device_config_complete() override; - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void device_clock_changed() override; - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; private: // internal helpers diff --git a/src/devices/video/dp8510.h b/src/devices/video/dp8510.h index 0f1247599a1..0e094c1b60b 100644 --- a/src/devices/video/dp8510.h +++ b/src/devices/video/dp8510.h @@ -46,8 +46,8 @@ class dp8510_device : public device_t u8 pixel_r(const offs_t pixel_address) const; protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; u16 logic_unit(const u16 src, const u16 dst) const; diff --git a/src/devices/video/ds8874.h b/src/devices/video/ds8874.h index e7408d0a465..26bfef73b57 100644 --- a/src/devices/video/ds8874.h +++ b/src/devices/video/ds8874.h @@ -41,7 +41,7 @@ class ds8874_device : public device_t protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void device_reset() override { refresh_output(); } private: diff --git a/src/devices/video/ef9340_1.h b/src/devices/video/ef9340_1.h index ec7e41d16de..1433a992a31 100644 --- a/src/devices/video/ef9340_1.h +++ b/src/devices/video/ef9340_1.h @@ -67,8 +67,8 @@ class ef9340_1_device : public device_t, protected: // device-level overrides - 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; inline u16 ef9340_get_c_addr(u8 x, u8 y); inline void ef9340_inc_c(); diff --git a/src/devices/video/ef9345.h b/src/devices/video/ef9345.h index 05db63cc150..fbd083501d8 100644 --- a/src/devices/video/ef9345.h +++ b/src/devices/video/ef9345.h @@ -50,8 +50,8 @@ class ef9345_device : public device_t, ef9345_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, EF9345_MODE variant); // 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; // device_config_memory_interface overrides virtual space_config_vector memory_space_config() const override; @@ -88,7 +88,7 @@ class ef9345_device : public device_t, void makechar_12x80(uint16_t x, uint16_t y); void ef9345_exec(uint8_t cmd); - void ef9345(address_map &map); + void ef9345(address_map &map) ATTR_COLD; // internal state required_region_ptr m_charset; diff --git a/src/devices/video/ef9364.h b/src/devices/video/ef9364.h index 3fce51cf29c..2e86b2ec7f9 100644 --- a/src/devices/video/ef9364.h +++ b/src/devices/video/ef9364.h @@ -59,8 +59,8 @@ class ef9364_device : public device_t, 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; // device_config_memory_interface overrides virtual space_config_vector memory_space_config() const override; @@ -74,7 +74,7 @@ class ef9364_device : public device_t, void set_video_mode(void); void draw_border(uint16_t line); - void ef9364(address_map &map); + void ef9364(address_map &map) ATTR_COLD; // internal state diff --git a/src/devices/video/ef9365.h b/src/devices/video/ef9365.h index 2a16ef5508a..52461e4ac2f 100644 --- a/src/devices/video/ef9365.h +++ b/src/devices/video/ef9365.h @@ -60,9 +60,9 @@ class ef9365_device : public device_t, protected: // device-level overrides - virtual void device_start() override; - virtual void device_reset() 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 const tiny_rom_entry *device_rom_region() const override ATTR_COLD; // device_config_memory_interface overrides virtual space_config_vector memory_space_config() const override; @@ -90,7 +90,7 @@ class ef9365_device : public device_t, void dump_bitplanes_word(); void update_interrupts(); - void ef9365_map(address_map &map); + void ef9365_map(address_map &map) ATTR_COLD; // internal state required_region_ptr m_charset; diff --git a/src/devices/video/ef9369.h b/src/devices/video/ef9369.h index 457e47f3264..869d4066789 100644 --- a/src/devices/video/ef9369.h +++ b/src/devices/video/ef9369.h @@ -56,8 +56,8 @@ class ef9369_device : public device_t 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; private: color_update_delegate m_color_update_cb; diff --git a/src/devices/video/fixfreq.h b/src/devices/video/fixfreq.h index 482016ba97e..19cad8c04a4 100644 --- a/src/devices/video/fixfreq.h +++ b/src/devices/video/fixfreq.h @@ -344,11 +344,11 @@ class fixedfreq_device // device-level overrides virtual void device_config_complete() override; - 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 device_post_load() override; - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; void vsync_end_cb(double refresh_time, uint32_t field) override; diff --git a/src/devices/video/gb_lcd.h b/src/devices/video/gb_lcd.h index 418868e5ce0..f6afcccb9dd 100644 --- a/src/devices/video/gb_lcd.h +++ b/src/devices/video/gb_lcd.h @@ -78,8 +78,8 @@ class dmg_ppu_device : public device_t, public device_video_interface dmg_ppu_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, uint32_t vram_size); // 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; TIMER_CALLBACK_MEMBER(update_tick); @@ -248,7 +248,7 @@ class mgb_ppu_device : public dmg_ppu_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; }; @@ -268,8 +268,8 @@ class sgb_ppu_device : public dmg_ppu_device 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 update_sprites() override; virtual void update_scanline(uint32_t cycles_to_go) override; @@ -296,8 +296,8 @@ class cgb_ppu_device : public dmg_ppu_device 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 update_sprites() override; virtual void update_scanline(uint32_t cycles_to_go) override; diff --git a/src/devices/video/gba_lcd.h b/src/devices/video/gba_lcd.h index 421ed02f2c3..cfdb5c8a74e 100644 --- a/src/devices/video/gba_lcd.h +++ b/src/devices/video/gba_lcd.h @@ -84,9 +84,9 @@ class gba_lcd_device protected: // device-level overrides - 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; private: struct internal_reg diff --git a/src/devices/video/gf4500.h b/src/devices/video/gf4500.h index a402881c49b..b065cb816fe 100644 --- a/src/devices/video/gf4500.h +++ b/src/devices/video/gf4500.h @@ -27,8 +27,8 @@ class gf4500_device : public device_t 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; private: // internal state diff --git a/src/devices/video/gf7600gs.h b/src/devices/video/gf7600gs.h index 5a82f1ec437..3041a72164d 100644 --- a/src/devices/video/gf7600gs.h +++ b/src/devices/video/gf7600gs.h @@ -18,21 +18,21 @@ class geforce_7600gs_device : public pci_device { } geforce_7600gs_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - void legacy_memory_map(address_map &map); - void legacy_io_map(address_map &map); + void legacy_memory_map(address_map &map) ATTR_COLD; + void legacy_io_map(address_map &map) ATTR_COLD; protected: - 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; virtual void map_extra(uint64_t memory_window_start, uint64_t memory_window_end, uint64_t memory_offset, address_space *memory_space, uint64_t io_window_start, uint64_t io_window_end, uint64_t io_offset, address_space *io_space) override; private: - void map1(address_map &map); - void map2(address_map &map); - void map3(address_map &map); + void map1(address_map &map) ATTR_COLD; + void map2(address_map &map) ATTR_COLD; + void map3(address_map &map) ATTR_COLD; required_device m_vga; diff --git a/src/devices/video/hd44102.h b/src/devices/video/hd44102.h index 1ac813b3dff..d117574a0de 100644 --- a/src/devices/video/hd44102.h +++ b/src/devices/video/hd44102.h @@ -35,8 +35,8 @@ class hd44102_device : public device_t 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; private: u8 status_r(); diff --git a/src/devices/video/hd44352.h b/src/devices/video/hd44352.h index a5b311c0e9f..23dcc3d44a1 100644 --- a/src/devices/video/hd44352.h +++ b/src/devices/video/hd44352.h @@ -34,8 +34,8 @@ class hd44352_device : public device_t 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 device_validity_check(validity_checker &valid) const override; TIMER_CALLBACK_MEMBER(on_tick); diff --git a/src/devices/video/hd44780.h b/src/devices/video/hd44780.h index 71bb5b30058..7281acafd01 100644 --- a/src/devices/video/hd44780.h +++ b/src/devices/video/hd44780.h @@ -61,11 +61,11 @@ class hd44780_device : public device_t hd44780_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; virtual void device_clock_changed() override; virtual void device_validity_check(validity_checker &valid) const override; - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; TIMER_CALLBACK_MEMBER(clear_busy_flag); TIMER_CALLBACK_MEMBER(blink_tick); @@ -137,7 +137,7 @@ class hd44780u_device : public hd44780_device protected: // device_t implementation - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; }; @@ -151,7 +151,7 @@ class sed1278_device : public hd44780_device protected: // device_t implementation - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; }; @@ -165,7 +165,7 @@ class ks0066_device : public hd44780_device protected: // device_t implementation - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; }; #endif // MAME_VIDEO_HD44780_H diff --git a/src/devices/video/hd61202.h b/src/devices/video/hd61202.h index 1ae9e741242..4d81b123990 100644 --- a/src/devices/video/hd61202.h +++ b/src/devices/video/hd61202.h @@ -40,9 +40,9 @@ class hd61202_device : public device_t protected: // device-level overrides - virtual void device_resolve_objects() override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_resolve_objects() override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: screen_update_delegate m_screen_update_cb; diff --git a/src/devices/video/hd61603.h b/src/devices/video/hd61603.h index bffb2b73848..d49393faff0 100644 --- a/src/devices/video/hd61603.h +++ b/src/devices/video/hd61603.h @@ -46,8 +46,8 @@ class hd61603_device : public device_t protected: // 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; private: u8 m_count; diff --git a/src/devices/video/hd61830.h b/src/devices/video/hd61830.h index 83f5639ca14..54b6c04a3b9 100644 --- a/src/devices/video/hd61830.h +++ b/src/devices/video/hd61830.h @@ -38,9 +38,9 @@ class hd61830_device : public device_t, protected: // device-level overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_start() override; - virtual void device_reset() override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; // device_memory_interface overrides virtual space_config_vector memory_space_config() const override; @@ -75,7 +75,7 @@ class hd61830_device : public device_t, void draw_char(bitmap_ind16 &bitmap, const rectangle &cliprect, uint16_t ma, int x, int y, uint8_t md); void update_text(bitmap_ind16 &bitmap, const rectangle &cliprect); - void hd61830(address_map &map); + void hd61830(address_map &map) ATTR_COLD; devcb_read8 m_read_rd; diff --git a/src/devices/video/hd63484.h b/src/devices/video/hd63484.h index 67383810bf6..e88f019b54d 100644 --- a/src/devices/video/hd63484.h +++ b/src/devices/video/hd63484.h @@ -40,13 +40,13 @@ class hd63484_device : public device_t, uint8_t read8(offs_t offset); uint32_t update_screen(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; virtual space_config_vector memory_space_config() const override; 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; inline uint16_t readword(offs_t address); inline void writeword(offs_t address, uint16_t data); diff --git a/src/devices/video/hd66421.h b/src/devices/video/hd66421.h index 8a38311d8e5..092a76df854 100644 --- a/src/devices/video/hd66421.h +++ b/src/devices/video/hd66421.h @@ -41,8 +41,8 @@ class hd66421_device : public device_t, protected: // device-level overrides - 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; // device_config_memory_interface overrides virtual space_config_vector memory_space_config() const override; @@ -60,7 +60,7 @@ class hd66421_device : public device_t, int m_x, m_y; required_device m_palette; - void hd66421(address_map &map); + void hd66421(address_map &map) ATTR_COLD; void hd66421_palette(palette_device &palette) const; }; diff --git a/src/devices/video/hlcd0438.h b/src/devices/video/hlcd0438.h index 19973dd8451..de12a1cb2c6 100644 --- a/src/devices/video/hlcd0438.h +++ b/src/devices/video/hlcd0438.h @@ -57,7 +57,7 @@ class hlcd0438_device : public device_t protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; TIMER_CALLBACK_MEMBER(toggle_lcd); diff --git a/src/devices/video/hlcd0488.h b/src/devices/video/hlcd0488.h index b1a3c402d6b..273ba0e0a4a 100644 --- a/src/devices/video/hlcd0488.h +++ b/src/devices/video/hlcd0488.h @@ -53,7 +53,7 @@ class hlcd0488_device : public device_t protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; TIMER_CALLBACK_MEMBER(sync_update); diff --git a/src/devices/video/hlcd0515.h b/src/devices/video/hlcd0515.h index 1f3ae7b69fd..fcb5b203d46 100644 --- a/src/devices/video/hlcd0515.h +++ b/src/devices/video/hlcd0515.h @@ -59,7 +59,7 @@ class hlcd0515_device : public device_t, public device_nvram_interface hlcd0515_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, u8 colmax); // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_nvram_interface implementation virtual void nvram_default() override { internal_clear(); } diff --git a/src/devices/video/hlcd0538.h b/src/devices/video/hlcd0538.h index 010991dcf58..e92fc37457b 100644 --- a/src/devices/video/hlcd0538.h +++ b/src/devices/video/hlcd0538.h @@ -57,7 +57,7 @@ class hlcd0538_device : public device_t hlcd0538_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; TIMER_CALLBACK_MEMBER(toggle_lcd); diff --git a/src/devices/video/hp1ll3.h b/src/devices/video/hp1ll3.h index 1dd238fba8f..5af369e4d63 100644 --- a/src/devices/video/hp1ll3.h +++ b/src/devices/video/hp1ll3.h @@ -36,8 +36,8 @@ class hp1ll3_device : public device_t, public device_video_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; private: struct Point diff --git a/src/devices/video/huc6202.h b/src/devices/video/huc6202.h index 40e4d089c2d..8e0df3103ce 100644 --- a/src/devices/video/huc6202.h +++ b/src/devices/video/huc6202.h @@ -42,8 +42,8 @@ class huc6202_device : public device_t 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; private: /* callbacks */ diff --git a/src/devices/video/huc6260.h b/src/devices/video/huc6260.h index 01b1a299f45..915924539b3 100644 --- a/src/devices/video/huc6260.h +++ b/src/devices/video/huc6260.h @@ -41,8 +41,8 @@ class huc6260_device : public device_t, 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 uint32_t palette_entries() const noexcept override { return PALETTE_SIZE; } diff --git a/src/devices/video/huc6261.h b/src/devices/video/huc6261.h index 9995a20673b..324e63ccf24 100644 --- a/src/devices/video/huc6261.h +++ b/src/devices/video/huc6261.h @@ -36,8 +36,8 @@ class huc6261_device : public device_t, 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; TIMER_CALLBACK_MEMBER(update_events); diff --git a/src/devices/video/huc6270.h b/src/devices/video/huc6270.h index bdac5b87259..d23495f9d2e 100644 --- a/src/devices/video/huc6270.h +++ b/src/devices/video/huc6270.h @@ -37,8 +37,8 @@ class huc6270_device : public device_t 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; inline void fetch_bat_tile_row(); void add_sprite( int index, int x, int pattern, int line, int flip_x, int palette, int priority, int sat_lsb ); diff --git a/src/devices/video/huc6271.h b/src/devices/video/huc6271.h index a8b3eb00287..b16358f3bcc 100644 --- a/src/devices/video/huc6271.h +++ b/src/devices/video/huc6271.h @@ -28,18 +28,18 @@ class huc6271_device : public device_t, // I/O operations //void data_transfer(uint32_t offset, uint32_t data); - void regs(address_map &map); + void regs(address_map &map) ATTR_COLD; 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 space_config_vector memory_space_config() const override; private: const address_space_config m_data_space_config; - void data_map(address_map &map); + void data_map(address_map &map) ATTR_COLD; }; diff --git a/src/devices/video/huc6272.h b/src/devices/video/huc6272.h index 169eda8cee9..f4fd4d17c53 100644 --- a/src/devices/video/huc6272.h +++ b/src/devices/video/huc6272.h @@ -35,7 +35,7 @@ class huc6272_device : public device_t, auto irq_changed_callback() { return m_irq_changed_cb.bind(); } template void set_rainbow_tag(T &&tag) { m_huc6271.set_tag(std::forward(tag)); } - void amap(address_map &map); + void amap(address_map &map) ATTR_COLD; // ADPCM operations uint8_t adpcm_update_0(); @@ -49,9 +49,9 @@ class huc6272_device : public device_t, protected: // device-level overrides virtual void device_validity_check(validity_checker &valid) const override; - 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; virtual space_config_vector memory_space_config() const override; private: @@ -126,9 +126,9 @@ class huc6272_device : public device_t, uint8_t adpcm_update(int chan); void interrupt_update(); - void io_map(address_map &map); - void kram_map(address_map &map); - void microprg_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void kram_map(address_map &map) ATTR_COLD; + void microprg_map(address_map &map) ATTR_COLD; // void write(offs_t offset, uint32_t data); // host interface diff --git a/src/devices/video/i8244.h b/src/devices/video/i8244.h index 680eb97033c..ad6e25e7e94 100644 --- a/src/devices/video/i8244.h +++ b/src/devices/video/i8244.h @@ -110,8 +110,8 @@ class i8244_device : public device_t // device-level overrides virtual void device_config_complete() override; - 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; // device_sound_interface overrides virtual void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; diff --git a/src/devices/video/i82730.h b/src/devices/video/i82730.h index 3761c94abf4..c2a3e7dc826 100644 --- a/src/devices/video/i82730.h +++ b/src/devices/video/i82730.h @@ -48,8 +48,8 @@ class i82730_device : public device_t, public device_video_interface void irst_w(int state); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: // status diff --git a/src/devices/video/i8275.h b/src/devices/video/i8275.h index 8948ac4d44a..17ae5aa462b 100644 --- a/src/devices/video/i8275.h +++ b/src/devices/video/i8275.h @@ -106,9 +106,9 @@ class i8275_device : public device_t, i8275_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // device-level overrides - virtual void device_resolve_objects() override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_resolve_objects() override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; TIMER_CALLBACK_MEMBER(hrtc_on); TIMER_CALLBACK_MEMBER(drq_on); diff --git a/src/devices/video/ibm8514a.h b/src/devices/video/ibm8514a.h index 9366ef8d3a8..9899a7d8356 100644 --- a/src/devices/video/ibm8514a.h +++ b/src/devices/video/ibm8514a.h @@ -132,7 +132,7 @@ class ibm8514a_device : public device_t protected: ibm8514a_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_start() override ATTR_COLD; void ibm8514_write(uint32_t offset, uint32_t src); void ibm8514_write_fg(uint32_t offset); void ibm8514_write_bg(uint32_t offset); diff --git a/src/devices/video/imagetek_i4100.h b/src/devices/video/imagetek_i4100.h index c18122221de..47a906a3f74 100644 --- a/src/devices/video/imagetek_i4100.h +++ b/src/devices/video/imagetek_i4100.h @@ -30,7 +30,7 @@ class imagetek_i4100_device : public device_t, // construction/destruction imagetek_i4100_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); - void map(address_map &map); + void map(address_map &map) ATTR_COLD; void set_tmap_flip_xoffsets(int x1, int x2, int x3) { m_tilemap_flip_scrolldx[0] = x1; m_tilemap_flip_scrolldx[1] = x2; m_tilemap_flip_scrolldx[2] = x3; } void set_tmap_flip_yoffsets(int y1, int y2, int y3) { m_tilemap_flip_scrolldy[0] = y1; m_tilemap_flip_scrolldy[1] = y2; m_tilemap_flip_scrolldy[2] = y3; } @@ -75,9 +75,9 @@ class imagetek_i4100_device : public device_t, // device-level overrides //virtual void device_validity_check(validity_checker &valid) const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; virtual void update_irq_state(); @@ -236,7 +236,7 @@ class imagetek_i4220_device : public imagetek_i4100_device // (it's unknown how the chip enables external sync) u32 get_background_pen() { return m_palette->pen(m_background_color); } - void v2_map(address_map &map); + void v2_map(address_map &map) ATTR_COLD; }; class imagetek_i4300_device : public imagetek_i4100_device @@ -245,11 +245,11 @@ class imagetek_i4300_device : public imagetek_i4100_device // construction/destruction imagetek_i4300_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); - void v3_map(address_map &map); + void v3_map(address_map &map) ATTR_COLD; u8 irq_vector_r(offs_t offset); protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void update_irq_state() override; diff --git a/src/devices/video/ims_cvc.h b/src/devices/video/ims_cvc.h index 094391e23cf..13316069de0 100644 --- a/src/devices/video/ims_cvc.h +++ b/src/devices/video/ims_cvc.h @@ -27,8 +27,8 @@ class ims_cvc_device ims_cvc_device(machine_config const &mconfig, device_type type, char const *tag, device_t *owner, u32 clock); // device_t 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; // device_palette_interface overrides virtual u32 palette_entries() const noexcept override { return 256; } @@ -98,12 +98,12 @@ class g300_device : public ims_cvc_device public: g300_device(machine_config const &mconfig, char const *tag, device_t *owner, u32 clock); - virtual void map(address_map &map) override; + virtual void map(address_map &map) override ATTR_COLD; virtual u32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, rectangle const &cliprect) override; protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; u32 control_r() { return m_control; } void control_w(u32 data) { m_control = data & MASK24; } @@ -117,7 +117,7 @@ class g332_device : public ims_cvc_device public: g332_device(machine_config const &mconfig, char const *tag, device_t *owner, u32 clock); - virtual void map(address_map &map) override; + virtual void map(address_map &map) override ATTR_COLD; virtual u32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, rectangle const &cliprect) override; @@ -171,14 +171,14 @@ class g332_device : public ims_cvc_device g332_device(machine_config const &mconfig, device_type type, char const *tag, device_t *owner, u32 clock); // device_t overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; // device_palette_interface overrides virtual u32 palette_entries() const noexcept override { return 256 + 3; } - virtual void microport_map(address_map &map); + virtual void microport_map(address_map &map) ATTR_COLD; virtual void boot_w(u32 data) override; diff --git a/src/devices/video/jangou_blitter.h b/src/devices/video/jangou_blitter.h index e8d43c3a9f6..d9def528986 100644 --- a/src/devices/video/jangou_blitter.h +++ b/src/devices/video/jangou_blitter.h @@ -20,8 +20,8 @@ class jangou_blitter_device : public device_t jangou_blitter_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // I/O operations - void blit_v1_regs(address_map &map); - void blit_v2_regs(address_map &map); + void blit_v1_regs(address_map &map) ATTR_COLD; + void blit_v2_regs(address_map &map) ATTR_COLD; void vregs_w(offs_t offset, uint8_t data); void bltflip_w(uint8_t data); @@ -31,8 +31,8 @@ class jangou_blitter_device : public device_t 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; private: uint8_t m_blit_buffer[256 * 256]; diff --git a/src/devices/video/k051316.h b/src/devices/video/k051316.h index 7f8b4b9e068..30ad4cafdfc 100644 --- a/src/devices/video/k051316.h +++ b/src/devices/video/k051316.h @@ -60,7 +60,7 @@ class k051316_device : public device_t, public device_gfx_interface protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: // internal state diff --git a/src/devices/video/k053936.h b/src/devices/video/k053936.h index 75894c2bf95..ef136b3f5a3 100644 --- a/src/devices/video/k053936.h +++ b/src/devices/video/k053936.h @@ -45,8 +45,8 @@ class k053936_device : public device_t 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; private: // internal state diff --git a/src/devices/video/lc7580.h b/src/devices/video/lc7580.h index 8bb6bdf7bcb..c8729c8ec6e 100644 --- a/src/devices/video/lc7580.h +++ b/src/devices/video/lc7580.h @@ -48,7 +48,7 @@ class lc7580_device : public device_t, public device_nvram_interface lc7580_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void device_reset() override { refresh_output(); } // device_nvram_interface implementation diff --git a/src/devices/video/lc7985.h b/src/devices/video/lc7985.h index 1695f1eefba..43e320fb3f6 100644 --- a/src/devices/video/lc7985.h +++ b/src/devices/video/lc7985.h @@ -25,9 +25,9 @@ class lc7985_device : public device_t const u8 *render(); protected: - virtual void device_start() override; - virtual void device_reset() 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 const tiny_rom_entry *device_rom_region() const override ATTR_COLD; TIMER_CALLBACK_MEMBER(clear_busy_flag); diff --git a/src/devices/video/m50458.h b/src/devices/video/m50458.h index e75520fb4b2..6624900e412 100644 --- a/src/devices/video/m50458.h +++ b/src/devices/video/m50458.h @@ -49,10 +49,10 @@ class m50458_device : public device_t, // device-level overrides virtual void device_validity_check(validity_checker &valid) const override; - 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 space_config_vector memory_space_config() const override; - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; private: inline uint16_t read_word(offs_t address); @@ -67,7 +67,7 @@ class m50458_device : public device_t, void vreg_126_w(uint16_t data); void vreg_127_w(uint16_t data); - void m50458_vram(address_map &map); + void m50458_vram(address_map &map) ATTR_COLD; const address_space_config m_space_config; diff --git a/src/devices/video/mb86292.h b/src/devices/video/mb86292.h index 0caf5576003..58bef7f057b 100644 --- a/src/devices/video/mb86292.h +++ b/src/devices/video/mb86292.h @@ -22,16 +22,16 @@ class mb86292_device : public device_t, virtual u32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, rectangle const &cliprect); - virtual void vregs_map(address_map &map); + virtual void vregs_map(address_map &map) ATTR_COLD; protected: mb86292_device(machine_config const &mconfig, device_type type, char const *tag, device_t *owner, u32 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 space_config_vector memory_space_config() const override; - virtual void draw_io_map(address_map &map); + virtual void draw_io_map(address_map &map) ATTR_COLD; address_space_config m_draw_io_space_config; required_device m_screen; diff --git a/src/devices/video/mb88303.h b/src/devices/video/mb88303.h index 742c6b62beb..0fa47731dca 100644 --- a/src/devices/video/mb88303.h +++ b/src/devices/video/mb88303.h @@ -56,8 +56,8 @@ class mb88303_device : public device_t 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; private: enum diff --git a/src/devices/video/mb90082.h b/src/devices/video/mb90082.h index 782138ea466..391036b987d 100644 --- a/src/devices/video/mb90082.h +++ b/src/devices/video/mb90082.h @@ -35,10 +35,10 @@ class mb90082_device : public device_t, protected: // device-level overrides virtual void device_validity_check(validity_checker &valid) const override; - 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 space_config_vector memory_space_config() const override; - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; private: enum @@ -59,7 +59,7 @@ class mb90082_device : public device_t, inline uint16_t read_word(offs_t address); inline void write_word(offs_t address, uint16_t data); - void mb90082_vram(address_map &map); + void mb90082_vram(address_map &map) ATTR_COLD; const address_space_config m_space_config; }; diff --git a/src/devices/video/mb_vcu.h b/src/devices/video/mb_vcu.h index 8e9973f7433..e7be843de5f 100644 --- a/src/devices/video/mb_vcu.h +++ b/src/devices/video/mb_vcu.h @@ -44,8 +44,8 @@ class mb_vcu_device : public device_t, protected: // device-level overrides virtual void device_validity_check(validity_checker &valid) const override; - 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 space_config_vector memory_space_config() const override; private: @@ -57,8 +57,8 @@ class mb_vcu_device : public device_t, uint8_t mb_vcu_paletteram_r(offs_t offset); void mb_vcu_paletteram_w(offs_t offset, uint8_t data); - void mb_vcu_pal_ram(address_map &map); - void mb_vcu_vram(address_map &map); + void mb_vcu_pal_ram(address_map &map) ATTR_COLD; + void mb_vcu_vram(address_map &map) ATTR_COLD; const address_space_config m_videoram_space_config; const address_space_config m_paletteram_space_config; diff --git a/src/devices/video/mc68328lcd.h b/src/devices/video/mc68328lcd.h index 4c45779074b..ee4f8dffefa 100644 --- a/src/devices/video/mc68328lcd.h +++ b/src/devices/video/mc68328lcd.h @@ -28,8 +28,8 @@ class mc68328_lcd_device : public device_t, 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; // device_palette_interface overrides virtual uint32_t palette_entries() const noexcept override { return 16; } diff --git a/src/devices/video/mc6845.h b/src/devices/video/mc6845.h index 096102847a4..f7722323454 100644 --- a/src/devices/video/mc6845.h +++ b/src/devices/video/mc6845.h @@ -131,8 +131,8 @@ class mc6845_device : public device_t, mc6845_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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 device_post_load() override; virtual void device_clock_changed() override; @@ -300,8 +300,8 @@ class mc6845_1_device : public mc6845_device mc6845_1_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; }; class r6545_1_device : public mc6845_device @@ -310,8 +310,8 @@ class r6545_1_device : public mc6845_device r6545_1_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; }; class c6545_1_device : public mc6845_device @@ -320,8 +320,8 @@ class c6545_1_device : public mc6845_device c6545_1_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; }; class hd6845s_device : public mc6845_device @@ -332,8 +332,8 @@ class hd6845s_device : public mc6845_device protected: hd6845s_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 bool check_cursor_visible(uint16_t ra, uint16_t line_addr) override; }; @@ -343,8 +343,8 @@ class sy6545_1_device : public mc6845_device sy6545_1_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; }; class sy6845e_device : public mc6845_device @@ -353,8 +353,8 @@ class sy6845e_device : public mc6845_device sy6845e_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; }; class hd6345_device : public hd6845s_device @@ -367,8 +367,8 @@ class hd6345_device : public hd6845s_device void register_w(uint8_t data); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; /* register file */ uint8_t m_disp2_pos; /* 0x12 */ @@ -398,8 +398,8 @@ class ams40489_device : public mc6845_device ams40489_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; }; diff --git a/src/devices/video/mc6847.h b/src/devices/video/mc6847.h index b82c014e5b0..d2d6d546a03 100644 --- a/src/devices/video/mc6847.h +++ b/src/devices/video/mc6847.h @@ -259,8 +259,8 @@ class mc6847_friend_device : public device_t, public device_video_interface artifacter m_artifacter; // 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 device_post_load() override; // other overridables @@ -509,9 +509,9 @@ class mc6847_base_device : public mc6847_friend_device // device-level overrides virtual void device_config_complete() override; - virtual void device_start() override; - virtual void device_reset() override; - virtual ioport_constructor device_input_ports() const override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; // other overrides virtual void field_sync_changed(bool line) override; diff --git a/src/devices/video/md4330b.h b/src/devices/video/md4330b.h index 32d965635a9..930361bbc6c 100644 --- a/src/devices/video/md4330b.h +++ b/src/devices/video/md4330b.h @@ -58,7 +58,7 @@ class md4330b_device : public device_t md4330b_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, u8 qmax); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; void update_output(); diff --git a/src/devices/video/mm5445.h b/src/devices/video/mm5445.h index fa4a37c1848..4c3e1028de2 100644 --- a/src/devices/video/mm5445.h +++ b/src/devices/video/mm5445.h @@ -58,7 +58,7 @@ class mm5445_device : public device_t mm5445_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, u8 outpins); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; const u64 m_outmask; diff --git a/src/devices/video/mn1252.h b/src/devices/video/mn1252.h index f79371adfc0..3349144c84f 100644 --- a/src/devices/video/mn1252.h +++ b/src/devices/video/mn1252.h @@ -23,8 +23,8 @@ class mn1252_device : public device_t void std_w(int state); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: static const u8 OUTPUT_DIGITS[0x40]; diff --git a/src/devices/video/mos6566.h b/src/devices/video/mos6566.h index e76cbe68dcc..d938a895344 100644 --- a/src/devices/video/mos6566.h +++ b/src/devices/video/mos6566.h @@ -231,8 +231,8 @@ class mos6566_device : public device_t, mos6566_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, uint32_t variant); // 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 execute_run() override; inline void set_interrupt( int mask ); @@ -260,8 +260,8 @@ class mos6566_device : public device_t, void draw_graphics(); void draw_sprites(); - void mos6566_colorram_map(address_map &map); - void mos6566_videoram_map(address_map &map); + void mos6566_colorram_map(address_map &map) ATTR_COLD; + void mos6566_videoram_map(address_map &map) ATTR_COLD; int m_icount; const int m_variant; diff --git a/src/devices/video/mos8563.h b/src/devices/video/mos8563.h index da4b4057e33..89bc6d7c50b 100644 --- a/src/devices/video/mos8563.h +++ b/src/devices/video/mos8563.h @@ -41,8 +41,8 @@ class mos8563_device : public mc6845_device, mos8563_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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; // device_memory_interface overrides virtual space_config_vector memory_space_config() const override; @@ -84,7 +84,7 @@ class mos8563_device : public mc6845_device, emu_timer *m_block_copy_timer; - void mos8563_videoram_map(address_map &map); + void mos8563_videoram_map(address_map &map) ATTR_COLD; }; @@ -97,8 +97,8 @@ class mos8568_device : public mos8563_device 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; }; diff --git a/src/devices/video/msm6222b.h b/src/devices/video/msm6222b.h index 7a2cb00fd89..be0019775e9 100644 --- a/src/devices/video/msm6222b.h +++ b/src/devices/video/msm6222b.h @@ -31,7 +31,7 @@ class msm6222b_device : public device_t { protected: msm6222b_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_start() override ATTR_COLD; optional_region_ptr m_cgrom; @@ -52,7 +52,7 @@ class msm6222b_01_device : public msm6222b_device { msm6222b_01_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; }; DECLARE_DEVICE_TYPE(MSM6222B, msm6222b_device) diff --git a/src/devices/video/msm6255.h b/src/devices/video/msm6255.h index 8e821c7668e..f7959f9221e 100644 --- a/src/devices/video/msm6255.h +++ b/src/devices/video/msm6255.h @@ -27,14 +27,14 @@ class msm6255_device : public device_t, // construction/destruction msm6255_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - virtual void map(address_map &map); + virtual void map(address_map &map) ATTR_COLD; uint32_t screen_update(screen_device &device, bitmap_ind16 &bitmap, const rectangle &cliprect); 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; // device_memory_interface overrides virtual space_config_vector memory_space_config() const override; @@ -67,7 +67,7 @@ class msm6255_device : public device_t, uint8_t dr_r(); void dr_w(uint8_t data); - void msm6255(address_map &map); + void msm6255(address_map &map) ATTR_COLD; const address_space_config m_space_config; diff --git a/src/devices/video/nereid.h b/src/devices/video/nereid.h index 18717de2b22..29d0e8ca44f 100644 --- a/src/devices/video/nereid.h +++ b/src/devices/video/nereid.h @@ -17,8 +17,8 @@ class nereid_device : public device_t, public device_palette_interface protected: nereid_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 u32 palette_entries() const noexcept override { return 0x200; } private: diff --git a/src/devices/video/nt7534.h b/src/devices/video/nt7534.h index 126d5dfff92..c55eb01bb7b 100644 --- a/src/devices/video/nt7534.h +++ b/src/devices/video/nt7534.h @@ -46,8 +46,8 @@ class nt7534_device : public device_t nt7534_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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; TIMER_CALLBACK_MEMBER(clear_busy_flag); diff --git a/src/devices/video/pc_vga.h b/src/devices/video/pc_vga.h index 679f7e2c22e..92f60327743 100644 --- a/src/devices/video/pc_vga.h +++ b/src/devices/video/pc_vga.h @@ -34,7 +34,7 @@ class vga_device : public device_t virtual void zero(); virtual uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void io_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; virtual uint8_t mem_r(offs_t offset); virtual void mem_w(offs_t offset, uint8_t data); @@ -67,9 +67,9 @@ class vga_device : public device_t TIMER_CALLBACK_MEMBER(vblank_timer_cb); // device-level overrides - virtual void device_start() override; - virtual void device_reset() override; - virtual ioport_constructor device_input_ports() const override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; // device_palette_interface overrides virtual uint32_t palette_entries() const noexcept override { return 0x100; } @@ -86,7 +86,7 @@ class vga_device : public device_t virtual space_config_vector memory_space_config() const override; - virtual void io_3bx_3dx_map(address_map &map); + virtual void io_3bx_3dx_map(address_map &map) ATTR_COLD; u8 crtc_address_r(offs_t offset); void crtc_address_w(offs_t offset, u8 data); @@ -95,7 +95,7 @@ class vga_device : public device_t u8 input_status_1_r(offs_t offset); void feature_control_w(offs_t offset, u8 data); - virtual void io_3cx_map(address_map &map); + virtual void io_3cx_map(address_map &map) ATTR_COLD; u8 atc_address_r(offs_t offset); void atc_address_data_w(offs_t offset, u8 data); @@ -121,10 +121,10 @@ class vga_device : public device_t virtual u8 gc_data_r(offs_t offset); virtual void gc_data_w(offs_t offset, u8 data); - virtual void crtc_map(address_map &map); - virtual void sequencer_map(address_map &map); - virtual void gc_map(address_map &map); - virtual void attribute_map(address_map &map); + virtual void crtc_map(address_map &map) ATTR_COLD; + virtual void sequencer_map(address_map &map) ATTR_COLD; + virtual void gc_map(address_map &map) ATTR_COLD; + virtual void attribute_map(address_map &map) ATTR_COLD; // NOTE: do not use the subclassed result when determining pitch in SVGA modes. // dw & word mode should apply to normal VGA modes only. @@ -326,7 +326,7 @@ class svga_device : public vga_device void svga_vh_rgb24(bitmap_rgb32 &bitmap, const rectangle &cliprect); void svga_vh_rgb32(bitmap_rgb32 &bitmap, const rectangle &cliprect); virtual uint8_t pc_vga_choosevideomode() override; - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual u16 line_compare_mask(); struct { diff --git a/src/devices/video/pc_vga_alliance.h b/src/devices/video/pc_vga_alliance.h index ebd0f5b0ea7..7220e4e8a49 100644 --- a/src/devices/video/pc_vga_alliance.h +++ b/src/devices/video/pc_vga_alliance.h @@ -22,13 +22,13 @@ class promotion_vga_device : public svga_device virtual void mem_w(offs_t offset, uint8_t data) override; protected: - 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 crtc_map(address_map &map) override; - virtual void sequencer_map(address_map &map) override; + virtual void crtc_map(address_map &map) override ATTR_COLD; + virtual void sequencer_map(address_map &map) override ATTR_COLD; - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; private: u8 m_remap_blt = 0; diff --git a/src/devices/video/pc_vga_ati.h b/src/devices/video/pc_vga_ati.h index beeae3c3053..58dea1c0a61 100644 --- a/src/devices/video/pc_vga_ati.h +++ b/src/devices/video/pc_vga_ati.h @@ -32,8 +32,8 @@ class ati_vga_device : public svga_device protected: ati_vga_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; virtual void ati_define_video_mode(); void set_dot_clock(); struct diff --git a/src/devices/video/pc_vga_cirrus.h b/src/devices/video/pc_vga_cirrus.h index af7e2a9d490..13c2053dbfa 100644 --- a/src/devices/video/pc_vga_cirrus.h +++ b/src/devices/video/pc_vga_cirrus.h @@ -27,12 +27,12 @@ class cirrus_gd5428_vga_device : public svga_device cirrus_gd5428_vga_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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 uint16_t offset() override; virtual uint32_t latch_start_addr() override; - virtual void io_3cx_map(address_map &map) override; + virtual void io_3cx_map(address_map &map) override ATTR_COLD; u8 ramdac_hidden_mask_r(offs_t offset); void ramdac_hidden_mask_w(offs_t offset, u8 data); @@ -90,9 +90,9 @@ class cirrus_gd5428_vga_device : public svga_device virtual uint8_t vga_latch_write(int offs, uint8_t data) override; - virtual void crtc_map(address_map &map) override; - virtual void gc_map(address_map &map) override; - virtual void sequencer_map(address_map &map) override; + virtual void crtc_map(address_map &map) override ATTR_COLD; + virtual void gc_map(address_map &map) override ATTR_COLD; + virtual void sequencer_map(address_map &map) override ATTR_COLD; virtual bool get_interlace_mode() override { return BIT(m_cr1a, 0); } @@ -117,11 +117,11 @@ class cirrus_gd5430_vga_device : public cirrus_gd5428_vga_device protected: cirrus_gd5430_vga_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_start() override ATTR_COLD; - virtual void crtc_map(address_map &map) override; - virtual void gc_map(address_map &map) override; - virtual void sequencer_map(address_map &map) override; + virtual void crtc_map(address_map &map) override ATTR_COLD; + virtual void gc_map(address_map &map) override ATTR_COLD; + virtual void sequencer_map(address_map &map) override ATTR_COLD; private: uint8_t m_cr1d = 0; }; @@ -132,11 +132,11 @@ class cirrus_gd5446_vga_device : public cirrus_gd5430_vga_device cirrus_gd5446_vga_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; - virtual void crtc_map(address_map &map) override; - virtual void gc_map(address_map &map) override; - virtual void sequencer_map(address_map &map) override; + virtual void crtc_map(address_map &map) override ATTR_COLD; + virtual void gc_map(address_map &map) override ATTR_COLD; + virtual void sequencer_map(address_map &map) override ATTR_COLD; }; diff --git a/src/devices/video/pc_vga_matrox.h b/src/devices/video/pc_vga_matrox.h index f57b5c5db14..d4a996a8608 100644 --- a/src/devices/video/pc_vga_matrox.h +++ b/src/devices/video/pc_vga_matrox.h @@ -15,7 +15,7 @@ class matrox_vga_device : public svga_device public: matrox_vga_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - void ramdac_ext_map(address_map &map); + void ramdac_ext_map(address_map &map) ATTR_COLD; virtual uint8_t mem_r(offs_t offset) override; virtual void mem_w(offs_t offset, uint8_t data) override; @@ -37,18 +37,18 @@ class matrox_vga_device : public svga_device virtual uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect) override; protected: - virtual void io_3bx_3dx_map(address_map &map) override; + virtual void io_3bx_3dx_map(address_map &map) override ATTR_COLD; - 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 uint16_t offset() override; virtual uint32_t latch_start_addr() override; virtual void recompute_params() override; virtual void palette_update() override; - void crtcext_map(address_map &map); - void ramdac_indexed_map(address_map &map); + void crtcext_map(address_map &map) ATTR_COLD; + void ramdac_indexed_map(address_map &map) ATTR_COLD; void flush_true_color_mode(); private: virtual space_config_vector memory_space_config() const override; diff --git a/src/devices/video/pc_vga_mediagx.h b/src/devices/video/pc_vga_mediagx.h index f4943f0375c..720caeadbeb 100644 --- a/src/devices/video/pc_vga_mediagx.h +++ b/src/devices/video/pc_vga_mediagx.h @@ -22,12 +22,12 @@ class mediagx_vga_device : public svga_device virtual void mem_w(offs_t offset, uint8_t data) override; protected: - 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 crtc_map(address_map &map) override; + virtual void crtc_map(address_map &map) override ATTR_COLD; -// virtual ioport_constructor device_input_ports() const override; +// virtual ioport_constructor device_input_ports() const override ATTR_COLD; private: }; diff --git a/src/devices/video/pc_vga_nvidia.h b/src/devices/video/pc_vga_nvidia.h index 9981b55f530..15c10e5a267 100644 --- a/src/devices/video/pc_vga_nvidia.h +++ b/src/devices/video/pc_vga_nvidia.h @@ -22,15 +22,15 @@ class nvidia_nv3_vga_device : public svga_device virtual uint8_t mem_r(offs_t offset) override; virtual void mem_w(offs_t offset, uint8_t data) override; - virtual void io_3bx_3dx_map(address_map &map) override; + virtual void io_3bx_3dx_map(address_map &map) override ATTR_COLD; protected: - virtual void device_start() override; - virtual void crtc_map(address_map &map) override; + virtual void device_start() override ATTR_COLD; + virtual void crtc_map(address_map &map) override ATTR_COLD; - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual uint16_t offset() override; private: diff --git a/src/devices/video/pc_vga_oak.h b/src/devices/video/pc_vga_oak.h index f7207636dea..502559583e4 100644 --- a/src/devices/video/pc_vga_oak.h +++ b/src/devices/video/pc_vga_oak.h @@ -18,10 +18,10 @@ class oak_oti111_vga_device : public svga_device void xga_write(offs_t offset, u8 data); // $xxe0-$xxef in EXTIO - void ramdac_mmio_map(address_map &map); + void ramdac_mmio_map(address_map &map) ATTR_COLD; // $80 in MMIO space - void multimedia_map(address_map &map); + void multimedia_map(address_map &map) ATTR_COLD; virtual uint8_t mem_r(offs_t offset) override; virtual void mem_w(offs_t offset, uint8_t data) override; @@ -29,13 +29,13 @@ class oak_oti111_vga_device : public svga_device virtual uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect) override; protected: - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; virtual uint16_t offset() override; virtual void recompute_params() override; - virtual void io_3bx_3dx_map(address_map &map) override; + virtual void io_3bx_3dx_map(address_map &map) override ATTR_COLD; private: virtual space_config_vector memory_space_config() const override; @@ -43,7 +43,7 @@ class oak_oti111_vga_device : public svga_device required_device m_xga; - void oak_map(address_map &map); + void oak_map(address_map &map) ATTR_COLD; u8 oak_index_r(offs_t offset); void oak_index_w(offs_t offset, u8 data); diff --git a/src/devices/video/pc_vga_paradise.h b/src/devices/video/pc_vga_paradise.h index af5cac19003..b4670124b81 100644 --- a/src/devices/video/pc_vga_paradise.h +++ b/src/devices/video/pc_vga_paradise.h @@ -20,9 +20,9 @@ class pvga1a_vga_device : public svga_device protected: pvga1a_vga_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 gc_map(address_map &map) override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; + virtual void gc_map(address_map &map) override ATTR_COLD; u8 m_video_select = 0; u8 m_crtc_lock = 0; @@ -69,14 +69,14 @@ class wd90c00_vga_device : public pvga1a_vga_device protected: wd90c00_vga_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; - virtual void crtc_map(address_map &map) override; + virtual void crtc_map(address_map &map) override ATTR_COLD; virtual void recompute_params() override; virtual bool get_interlace_mode() override { return m_interlace_mode; } - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; private: virtual u8 crtc_data_r(offs_t offset) override; @@ -114,8 +114,8 @@ class wd90c11a_vga_device : public wd90c00_vga_device protected: wd90c11a_vga_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); - virtual void sequencer_map(address_map &map) override; - virtual void device_reset() override; + virtual void sequencer_map(address_map &map) override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; memory_view m_ext_seq_view; private: @@ -139,10 +139,10 @@ class wd90c30_vga_device : public wd90c11a_vga_device protected: wd90c30_vga_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); - virtual void crtc_map(address_map &map) override; - virtual void sequencer_map(address_map &map) override; + virtual void crtc_map(address_map &map) override ATTR_COLD; + virtual void sequencer_map(address_map &map) override ATTR_COLD; - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; virtual u16 line_compare_mask() override; private: u8 vert_timing_overflow_r(offs_t offset); @@ -156,7 +156,7 @@ class wd90c31_vga_device : public wd90c30_vga_device public: wd90c31_vga_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - virtual void ext_io_map(address_map &map); + virtual void ext_io_map(address_map &map) ATTR_COLD; protected: wd90c31_vga_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); @@ -167,8 +167,8 @@ class wd90c33_vga_device : public wd90c31_vga_device public: wd90c33_vga_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - virtual void ext_io_map(address_map &map) override; - void localbus_if_map(address_map &map); + virtual void ext_io_map(address_map &map) override ATTR_COLD; + void localbus_if_map(address_map &map) ATTR_COLD; protected: wd90c33_vga_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); diff --git a/src/devices/video/pc_vga_s3.h b/src/devices/video/pc_vga_s3.h index f913c9175f3..bea159cc132 100644 --- a/src/devices/video/pc_vga_s3.h +++ b/src/devices/video/pc_vga_s3.h @@ -27,12 +27,12 @@ class s3vision864_vga_device : public svga_device s3vision864_vga_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // device-level overrides - 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; - virtual void crtc_map(address_map &map) override; - virtual void sequencer_map(address_map &map) override; + virtual void crtc_map(address_map &map) override ATTR_COLD; + virtual void sequencer_map(address_map &map) override ATTR_COLD; virtual uint32_t latch_start_addr() override; virtual u16 line_compare_mask() override; @@ -102,7 +102,7 @@ class s3vision964_vga_device : public s3vision864_vga_device protected: s3vision964_vga_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_start() override ATTR_COLD; }; class s3vision968_vga_device : public s3vision964_vga_device @@ -112,7 +112,7 @@ class s3vision968_vga_device : public s3vision964_vga_device protected: s3vision968_vga_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_start() override ATTR_COLD; }; class s3trio64_vga_device : public s3vision968_vga_device @@ -122,7 +122,7 @@ class s3trio64_vga_device : public s3vision968_vga_device protected: s3trio64_vga_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_start() override ATTR_COLD; }; // device type definition diff --git a/src/devices/video/pc_vga_sis.h b/src/devices/video/pc_vga_sis.h index a7d8a590f56..0afc41a783f 100644 --- a/src/devices/video/pc_vga_sis.h +++ b/src/devices/video/pc_vga_sis.h @@ -19,12 +19,12 @@ class sis6236_vga_device : public svga_device protected: sis6236_vga_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 void io_3cx_map(address_map &map) override; + virtual void io_3cx_map(address_map &map) override ATTR_COLD; - virtual void sequencer_map(address_map &map) override; + virtual void sequencer_map(address_map &map) override ATTR_COLD; virtual uint16_t offset() override; virtual void recompute_params() override; @@ -52,11 +52,11 @@ class sis630_vga_device : public sis6236_vga_device sis630_vga_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: -// 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 crtc_map(address_map &map) override; - virtual void sequencer_map(address_map &map) override; + virtual void crtc_map(address_map &map) override ATTR_COLD; + virtual void sequencer_map(address_map &map) override ATTR_COLD; }; DECLARE_DEVICE_TYPE(SIS6236_VGA, sis6236_vga_device) diff --git a/src/devices/video/pc_vga_trident.h b/src/devices/video/pc_vga_trident.h index 6a1f6b97984..57a3a82224c 100644 --- a/src/devices/video/pc_vga_trident.h +++ b/src/devices/video/pc_vga_trident.h @@ -36,11 +36,11 @@ class trident_vga_device : public svga_device // construction/destruction trident_vga_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 void io_3bx_3dx_map(address_map &map) override; - virtual void io_3cx_map(address_map &map) override; + virtual void io_3bx_3dx_map(address_map &map) override ATTR_COLD; + virtual void io_3cx_map(address_map &map) override ATTR_COLD; u8 ramdac_hidden_mask_r(offs_t offset); void ramdac_hidden_mask_w(offs_t offset, u8 data); @@ -53,9 +53,9 @@ class trident_vga_device : public svga_device void svga_bank_read_w(offs_t offset, u8 data); - virtual void crtc_map(address_map &map) override; - virtual void sequencer_map(address_map &map) override; - virtual void gc_map(address_map &map) override; + virtual void crtc_map(address_map &map) override ATTR_COLD; + virtual void sequencer_map(address_map &map) override ATTR_COLD; + virtual void gc_map(address_map &map) override ATTR_COLD; virtual void recompute_params() override; diff --git a/src/devices/video/pc_vga_tseng.h b/src/devices/video/pc_vga_tseng.h index cda09fa0acc..129717c827d 100644 --- a/src/devices/video/pc_vga_tseng.h +++ b/src/devices/video/pc_vga_tseng.h @@ -23,18 +23,18 @@ class tseng_vga_device : public svga_device virtual void mem_w(offs_t offset, uint8_t data) override; protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; - virtual void io_3bx_3dx_map(address_map &map) override; - virtual void io_3cx_map(address_map &map) override; + virtual void io_3bx_3dx_map(address_map &map) override ATTR_COLD; + virtual void io_3cx_map(address_map &map) override ATTR_COLD; u8 ramdac_hidden_mask_r(offs_t offset); void ramdac_hidden_mask_w(offs_t offset, u8 data); u8 ramdac_hidden_windex_r(offs_t offset); - virtual void crtc_map(address_map &map) override; - virtual void sequencer_map(address_map &map) override; - virtual void attribute_map(address_map &map) override; + virtual void crtc_map(address_map &map) override ATTR_COLD; + virtual void sequencer_map(address_map &map) override ATTR_COLD; + virtual void attribute_map(address_map &map) override ATTR_COLD; virtual void recompute_params() override; private: diff --git a/src/devices/video/pc_xga.h b/src/devices/video/pc_xga.h index 528efa8c065..49a36e86d2f 100644 --- a/src/devices/video/pc_xga.h +++ b/src/devices/video/pc_xga.h @@ -26,8 +26,8 @@ class xga_copro_device : public device_t auto mem_write_callback() { return m_mem_write_cb.bind(); } auto set_type(TYPE var) { m_var = var; } protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: void start_command(); void do_pxblt(); diff --git a/src/devices/video/pcd8544.h b/src/devices/video/pcd8544.h index d91b5be98fe..f09fc7d644d 100644 --- a/src/devices/video/pcd8544.h +++ b/src/devices/video/pcd8544.h @@ -38,8 +38,8 @@ class pcd8544_device : public device_t 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; void exec_command(uint8_t cmd); void write_data(uint8_t data); diff --git a/src/devices/video/pcf2100.h b/src/devices/video/pcf2100.h index f5f8f7de607..6f3dbe9e566 100644 --- a/src/devices/video/pcf2100.h +++ b/src/devices/video/pcf2100.h @@ -46,7 +46,7 @@ class pcf2100_device : public device_t pcf2100_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, u8 bpmax, u8 smax); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; TIMER_CALLBACK_MEMBER(update_output_latches); diff --git a/src/devices/video/ppu2c0x.h b/src/devices/video/ppu2c0x.h index 0ade2597466..980a81ce231 100644 --- a/src/devices/video/ppu2c0x.h +++ b/src/devices/video/ppu2c0x.h @@ -130,7 +130,7 @@ class ppu2c0x_device : public device_t, uint16_t get_vram_dest(); void set_vram_dest(uint16_t dest); - void ppu2c0x(address_map &map); + void ppu2c0x(address_map &map) ATTR_COLD; bool in_vblanking() { return (m_scanline >= m_vblank_first_scanline - 1); } protected: @@ -174,7 +174,7 @@ class ppu2c0x_device : public device_t, // construction/destruction ppu2c0x_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock = 0); - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void device_config_complete() override; // device_config_memory_interface overrides @@ -313,7 +313,7 @@ class ppu2c04_clone_device : public ppu2c0x_device { virtual void init_palette_tables() override; protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: required_region_ptr m_palette_data; diff --git a/src/devices/video/ppu2c0x_sh6578.h b/src/devices/video/ppu2c0x_sh6578.h index 34448ac9dfa..25648b2accf 100644 --- a/src/devices/video/ppu2c0x_sh6578.h +++ b/src/devices/video/ppu2c0x_sh6578.h @@ -24,11 +24,11 @@ class ppu_sh6578_device : public ppu2c0x_device protected: ppu_sh6578_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); - void ppu_internal_map(address_map& map); + void ppu_internal_map(address_map &map) ATTR_COLD; private: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; void scanline_increment_fine_ycounter() override; diff --git a/src/devices/video/ppu2c0x_vt.h b/src/devices/video/ppu2c0x_vt.h index f63da1ebdf1..16fca3da45d 100644 --- a/src/devices/video/ppu2c0x_vt.h +++ b/src/devices/video/ppu2c0x_vt.h @@ -54,8 +54,8 @@ class ppu_vt03_device : public ppu2c0x_device { virtual void draw_sprite_pixel(int sprite_xpos, int color, int pixel, uint8_t pixel_data, bitmap_rgb32 &bitmap) override; virtual void read_extra_sprite_bits(int sprite_index) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; void set_201x_reg(int reg, uint8_t data); uint8_t get_201x_reg(int reg); diff --git a/src/devices/video/ps2gif.h b/src/devices/video/ps2gif.h index 39f4f911e01..7fd33a5c54b 100644 --- a/src/devices/video/ps2gif.h +++ b/src/devices/video/ps2gif.h @@ -44,8 +44,8 @@ class ps2_gif_device : public device_t, public device_execute_interface bool path3_available() const { return m_path3_available; } protected: - 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 execute_run() override; void fetch_path1(uint64_t &hi, uint64_t &lo); diff --git a/src/devices/video/ps2gs.h b/src/devices/video/ps2gs.h index f4ca034f688..ae011f25a9e 100644 --- a/src/devices/video/ps2gs.h +++ b/src/devices/video/ps2gs.h @@ -54,9 +54,9 @@ class ps2_gs_device : public device_t void vblank_end(); protected: - 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; void copy_dword_from_host(uint64_t data); diff --git a/src/devices/video/psx.h b/src/devices/video/psx.h index 0482369692e..60e37e854b6 100644 --- a/src/devices/video/psx.h +++ b/src/devices/video/psx.h @@ -48,9 +48,9 @@ class psxgpu_device : public device_t, public device_video_interface, public dev psxgpu_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, uint32_t vram_size, psxcpu_device *cpu_tag); psxgpu_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_start() override ATTR_COLD; virtual void device_post_load() override; - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; virtual void device_config_complete() override; // device_palette_interface overrides diff --git a/src/devices/video/pwm.h b/src/devices/video/pwm.h index 4baec97f9cd..13729b6336c 100644 --- a/src/devices/video/pwm.h +++ b/src/devices/video/pwm.h @@ -71,8 +71,8 @@ class pwm_display_device : public device_t 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; private: output_finder<0x40, 0x40> m_out_x; diff --git a/src/devices/video/ramdac.h b/src/devices/video/ramdac.h index d21ea4a51ee..4b3d1e3f633 100644 --- a/src/devices/video/ramdac.h +++ b/src/devices/video/ramdac.h @@ -50,13 +50,13 @@ class ramdac_device : public device_t, void ramdac_rgb666_w(offs_t offset, uint8_t data); void ramdac_rgb888_w(offs_t offset, uint8_t data); - void ramdac_palram(address_map &map); + void ramdac_palram(address_map &map) ATTR_COLD; protected: // device-level overrides virtual void device_validity_check(validity_checker &valid) const override; - 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 space_config_vector memory_space_config() const override; private: diff --git a/src/devices/video/s3virge.h b/src/devices/video/s3virge.h index 8592fd80db3..c0183879e80 100644 --- a/src/devices/video/s3virge.h +++ b/src/devices/video/s3virge.h @@ -34,9 +34,9 @@ class s3virge_vga_device : public s3trio64_vga_device uint32_t s3d_func_ctrl_r(); // void s3d_func_ctrl_w(offs_t offset, uint32_t data, u32 mem_mask = ~0); - void s3d_register_map(address_map &map); + void s3d_register_map(address_map &map) ATTR_COLD; - void streams_control_map(address_map &map); + void streams_control_map(address_map &map) ATTR_COLD; void image_xfer(offs_t offset, uint32_t data, uint32_t mem_mask) { @@ -62,11 +62,11 @@ class s3virge_vga_device : public s3trio64_vga_device s3virge_vga_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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 uint16_t offset() override; - virtual void crtc_map(address_map &map) override; + virtual void crtc_map(address_map &map) override ATTR_COLD; enum { @@ -207,8 +207,8 @@ class s3virgedx_vga_device : public s3virge_vga_device s3virgedx_vga_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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; }; // ======================> s3virgedx_vga_device @@ -221,8 +221,8 @@ class s3virgedx_rev1_vga_device : public s3virgedx_vga_device 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; }; // device type definition diff --git a/src/devices/video/saa5050.h b/src/devices/video/saa5050.h index 544c3110743..880840adcee 100644 --- a/src/devices/video/saa5050.h +++ b/src/devices/video/saa5050.h @@ -46,7 +46,7 @@ class saa5050_device : public device_t auto d_cb() { return m_read_d.bind(); } // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; void crs_w(int state); void dew_w(int state); @@ -66,8 +66,8 @@ class saa5050_device : public device_t saa5050_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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; private: enum @@ -158,7 +158,7 @@ class saa5051_device : public saa5050_device saa5051_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; }; @@ -171,7 +171,7 @@ class saa5052_device : public saa5050_device saa5052_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; }; @@ -184,7 +184,7 @@ class saa5053_device : public saa5050_device saa5053_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; }; @@ -197,7 +197,7 @@ class saa5054_device : public saa5050_device saa5054_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; }; @@ -210,7 +210,7 @@ class saa5055_device : public saa5050_device saa5055_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; }; @@ -223,7 +223,7 @@ class saa5056_device : public saa5050_device saa5056_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; }; @@ -236,7 +236,7 @@ class saa5057_device : public saa5050_device saa5057_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; }; diff --git a/src/devices/video/saa5240.h b/src/devices/video/saa5240.h index 14792c04d21..575d3a38238 100644 --- a/src/devices/video/saa5240.h +++ b/src/devices/video/saa5240.h @@ -74,8 +74,8 @@ class saa5240_device : saa5240_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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; // optional information overrides virtual space_config_vector memory_space_config() const override; @@ -103,7 +103,7 @@ class saa5240_device : enum { STATE_IDLE, STATE_DEVSEL, STATE_ADDRESS, STATE_DATAIN, STATE_DATAOUT }; - void saa5240_vram(address_map &map); + void saa5240_vram(address_map &map) ATTR_COLD; enum { @@ -186,7 +186,7 @@ class saa5240a_device : public saa5240_device saa5240a_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; }; @@ -199,7 +199,7 @@ class saa5240b_device : public saa5240_device saa5240b_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; }; @@ -212,7 +212,7 @@ class saa5243e_device : public saa5240_device saa5243e_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; }; diff --git a/src/devices/video/scn2674.h b/src/devices/video/scn2674.h index 8654cd839c4..20f7d791080 100644 --- a/src/devices/video/scn2674.h +++ b/src/devices/video/scn2674.h @@ -42,8 +42,8 @@ class scn2674_device : public device_t, protected: scn2674_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, bool extend_addressing); - 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 space_config_vector memory_space_config() const override; @@ -124,7 +124,7 @@ class scn2674_device : public device_t, void recompute_parameters(); - void scn2674_vram(address_map &map); + void scn2674_vram(address_map &map) ATTR_COLD; draw_character_delegate m_display_cb; emu_timer *m_scanline_timer; diff --git a/src/devices/video/sda5708.h b/src/devices/video/sda5708.h index 94e64f14523..b7a7eadaf5a 100644 --- a/src/devices/video/sda5708.h +++ b/src/devices/video/sda5708.h @@ -61,8 +61,8 @@ class sda5708_device : public device_t 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; void update_display(); diff --git a/src/devices/video/sed1200.h b/src/devices/video/sed1200.h index 480ff9b454e..08072f0d127 100644 --- a/src/devices/video/sed1200.h +++ b/src/devices/video/sed1200.h @@ -30,7 +30,7 @@ class sed1200_device : public device_t { protected: sed1200_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_start() override ATTR_COLD; private: uint8_t cgram[4*8]; @@ -55,7 +55,7 @@ class sed1200d0a_device : public sed1200_device { sed1200d0a_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 sed1200f0a_device : public sed1200_device { @@ -63,7 +63,7 @@ class sed1200f0a_device : public sed1200_device { sed1200f0a_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 sed1200d0b_device : public sed1200_device { @@ -71,7 +71,7 @@ class sed1200d0b_device : public sed1200_device { sed1200d0b_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 sed1200f0b_device : public sed1200_device { @@ -79,7 +79,7 @@ class sed1200f0b_device : public sed1200_device { sed1200f0b_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; }; DECLARE_DEVICE_TYPE(SED1200D0A, sed1200d0a_device) diff --git a/src/devices/video/sed1330.h b/src/devices/video/sed1330.h index c9bff82f578..6caa2865678 100644 --- a/src/devices/video/sed1330.h +++ b/src/devices/video/sed1330.h @@ -38,14 +38,14 @@ class sed1330_device : public device_t, 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; // device_memory_interface overrides virtual space_config_vector memory_space_config() const override; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; private: int m_bf; // busy flag @@ -105,7 +105,7 @@ class sed1330_device : public device_t, void update_graphics(bitmap_ind16 &bitmap, const rectangle &cliprect); void update_text(bitmap_ind16 &bitmap, const rectangle &cliprect); - void sed1330(address_map &map); + void sed1330(address_map &map) ATTR_COLD; }; diff --git a/src/devices/video/sed1356.h b/src/devices/video/sed1356.h index 98d80684253..a1e77ef1a52 100644 --- a/src/devices/video/sed1356.h +++ b/src/devices/video/sed1356.h @@ -23,15 +23,15 @@ class sed1356_device : public device_t, // construction/destruction sed1356_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 0); - void map(address_map &map); - void vram_map(address_map &map); + void map(address_map &map) ATTR_COLD; + void vram_map(address_map &map) ATTR_COLD; uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); 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; uint8_t revision_r(offs_t offset); diff --git a/src/devices/video/sed1375.h b/src/devices/video/sed1375.h index eeba865e8a3..49c723ae223 100644 --- a/src/devices/video/sed1375.h +++ b/src/devices/video/sed1375.h @@ -21,14 +21,14 @@ class sed1375_device : public device_t, // construction/destruction sed1375_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock = 0); - void map(address_map &map); + void map(address_map &map) ATTR_COLD; u32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); 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; u32 get_pixel(int screen_idx, int x, int y); diff --git a/src/devices/video/sed1500.h b/src/devices/video/sed1500.h index a72e124f772..fa3183ce08a 100644 --- a/src/devices/video/sed1500.h +++ b/src/devices/video/sed1500.h @@ -43,7 +43,7 @@ class sed1500_device : public device_t sed1500_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, u8 cmax, u8 smax); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; TIMER_CALLBACK_MEMBER(update_segs); diff --git a/src/devices/video/sed1520.h b/src/devices/video/sed1520.h index 58fc364f69a..5b7bdc1b4a1 100644 --- a/src/devices/video/sed1520.h +++ b/src/devices/video/sed1520.h @@ -41,8 +41,8 @@ class sed15xx_device_base : public device_t sed15xx_device_base(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, uint32_t ddr_size, uint32_t page_size); // 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; protected: const uint32_t m_ddr_size; @@ -83,9 +83,9 @@ class sed1520_device : public sed15xx_device_base protected: // device-level overrides - virtual void device_resolve_objects() override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_resolve_objects() override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: sed1520_update_delegate m_screen_update_cb; @@ -116,9 +116,9 @@ class sed1560_device : public sed15xx_device_base sed1560_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, uint32_t ddr_size, uint32_t page_size); // device-level overrides - virtual void device_resolve_objects() override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_resolve_objects() override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: sed1560_update_delegate m_screen_update_cb; @@ -145,8 +145,8 @@ class epl43102_device : public sed1560_device 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; // internal state uint8_t m_last_command; diff --git a/src/devices/video/sn74s262.h b/src/devices/video/sn74s262.h index d91f0a42536..7f37a4d42a3 100644 --- a/src/devices/video/sn74s262.h +++ b/src/devices/video/sn74s262.h @@ -44,10 +44,10 @@ class sn74s262_device : public device_t, sn74s262_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; private: static const gfx_layout charlayout; @@ -67,7 +67,7 @@ class sn74s263_device : public sn74s262_device protected: // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; }; diff --git a/src/devices/video/snes_ppu.h b/src/devices/video/snes_ppu.h index c07f878f402..bef7b322728 100644 --- a/src/devices/video/snes_ppu.h +++ b/src/devices/video/snes_ppu.h @@ -310,8 +310,8 @@ class snes_ppu_device : public device_t, std::unique_ptr[]> m_light_table; /* Luma ramp */ // 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; // device_palette_interface overrides // 256 word CG RAM data (0x000-0x0ff), 8 group of direct colours (0x100-0x8ff), Fixed color (0x900) diff --git a/src/devices/video/t6963c.h b/src/devices/video/t6963c.h index 192e6cf931e..40f48457cf0 100644 --- a/src/devices/video/t6963c.h +++ b/src/devices/video/t6963c.h @@ -49,8 +49,8 @@ class t6963c_device : public device_t, public device_memory_interface protected: // device-specific 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; // device_memory_interface overrides virtual space_config_vector memory_space_config() const override; @@ -96,15 +96,15 @@ class lm24014h_device : public device_t protected: // device-specific overrides - virtual void device_start() 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_add_mconfig(machine_config &config) override ATTR_COLD; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; void lcd_palette(palette_device &palette) const; private: // internal configuration - void ram_map(address_map &map); + void ram_map(address_map &map) ATTR_COLD; // internal LCD controller required_device m_lcdc; diff --git a/src/devices/video/t6a04.h b/src/devices/video/t6a04.h index 72900b171bb..b80d1827266 100644 --- a/src/devices/video/t6a04.h +++ b/src/devices/video/t6a04.h @@ -39,8 +39,8 @@ class t6a04_device : public device_t 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 device_validity_check(validity_checker &valid) const override; private: diff --git a/src/devices/video/tea1002.h b/src/devices/video/tea1002.h index e208d20fb0a..db60b9c943a 100644 --- a/src/devices/video/tea1002.h +++ b/src/devices/video/tea1002.h @@ -41,7 +41,7 @@ class tea1002_device : public device_t protected: // device_t overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: static const int m_tint = -6; // what is this based on? diff --git a/src/devices/video/tlc34076.h b/src/devices/video/tlc34076.h index c495cf82088..2ea4c4adf8a 100644 --- a/src/devices/video/tlc34076.h +++ b/src/devices/video/tlc34076.h @@ -46,8 +46,8 @@ class tlc34076_device : public device_t, public device_palette_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; // device_palette_interface overrides virtual uint32_t palette_entries() const noexcept override { return 0x100; } diff --git a/src/devices/video/tmap038.h b/src/devices/video/tmap038.h index cc5ba89813d..48aa6b50d2f 100644 --- a/src/devices/video/tmap038.h +++ b/src/devices/video/tmap038.h @@ -35,12 +35,12 @@ class tilemap038_device : public device_t void draw(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect, u32 flags, u8 pri = 0, u8 pri_mask = ~0); // access - void vram_map(address_map &map); - void vram_8x8_map(address_map &map); - void vram_16x16_map(address_map &map); + void vram_map(address_map &map) ATTR_COLD; + void vram_8x8_map(address_map &map) ATTR_COLD; + void vram_16x16_map(address_map &map) ATTR_COLD; - void vram_writeonly_map(address_map &map); - void vram_16x16_writeonly_map(address_map &map); + void vram_writeonly_map(address_map &map) ATTR_COLD; + void vram_16x16_writeonly_map(address_map &map) ATTR_COLD; u16 vram_8x8_r(offs_t offset); void vram_8x8_w(offs_t offset, u16 data, u16 mem_mask); @@ -86,8 +86,8 @@ class tilemap038_device : public device_t bool tile_is_8x8() const { return (!m_tiledim) || (m_vram_16x16 == nullptr); } bool tile_is_16x16() const { return m_tiledim || (m_vram_8x8 == nullptr); } protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: TILE_GET_INFO_MEMBER(get_tile_info); diff --git a/src/devices/video/tms34061.h b/src/devices/video/tms34061.h index 945f6318391..741a38b173d 100644 --- a/src/devices/video/tms34061.h +++ b/src/devices/video/tms34061.h @@ -62,8 +62,8 @@ class tms34061_device : public device_t, public device_video_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; private: /* register constants */ diff --git a/src/devices/video/tms3556.h b/src/devices/video/tms3556.h index a6ced908b02..22739e1d2dc 100644 --- a/src/devices/video/tms3556.h +++ b/src/devices/video/tms3556.h @@ -52,7 +52,7 @@ class tms3556_device : public device_t, public device_memory_interface, public d protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_config_memory_interface overrides virtual space_config_vector memory_space_config() const override; @@ -73,7 +73,7 @@ class tms3556_device : public device_t, public device_memory_interface, public d void draw_line(bitmap_ind16 &bmp, int line); void interrupt_start_vblank(void); - void tms3556(address_map &map); + void tms3556(address_map &map) ATTR_COLD; enum dma_mode_tt : u8 { dma_read, dma_write }; diff --git a/src/devices/video/tms9927.h b/src/devices/video/tms9927.h index 5b517f7f78a..730dcb5647b 100644 --- a/src/devices/video/tms9927.h +++ b/src/devices/video/tms9927.h @@ -41,9 +41,9 @@ class tms9927_device : public device_t, public device_video_interface tms9927_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // device-level overrides - virtual void device_start() override; - virtual void device_stop() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_stop() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; virtual void device_clock_changed() override; virtual void device_post_load() override; diff --git a/src/devices/video/tms9928a.h b/src/devices/video/tms9928a.h index d50bec1cf4d..3aee882952b 100644 --- a/src/devices/video/tms9928a.h +++ b/src/devices/video/tms9928a.h @@ -93,8 +93,8 @@ class tms9928a_device : public device_t, // device-level overrides virtual void device_config_complete() override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; // device_memory_interface overrides virtual space_config_vector memory_space_config() const override; @@ -112,7 +112,7 @@ class tms9928a_device : public device_t, void update_table_masks(); void set_palette(); - void memmap(address_map &map); + void memmap(address_map &map) ATTR_COLD; int m_vram_size; /* 4K, 8K, or 16K. This should be replaced by fetching data from an address space? */ devcb_write_line m_out_int_line_cb; /* Callback is called whenever the state of the INT output changes */ diff --git a/src/devices/video/topcat.h b/src/devices/video/topcat.h index ffa67ef5132..5ca5ef2f5a1 100644 --- a/src/devices/video/topcat.h +++ b/src/devices/video/topcat.h @@ -21,7 +21,7 @@ class topcat_device : public device_t void ctrl_w(address_space &space, offs_t offset, uint16_t data, uint16_t mem_mask = ~0); void vblank_w(int state); - void topcat_mem(address_map &map); + void topcat_mem(address_map &map) ATTR_COLD; bool plane_enabled(); @@ -29,8 +29,8 @@ class topcat_device : public device_t protected: topcat_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; TIMER_CALLBACK_MEMBER(cursor_callback); diff --git a/src/devices/video/upd3301.h b/src/devices/video/upd3301.h index 6521bc1d4b8..561e0fb67eb 100644 --- a/src/devices/video/upd3301.h +++ b/src/devices/video/upd3301.h @@ -89,8 +89,8 @@ class upd3301_device : public device_t, 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 device_clock_changed() override; TIMER_CALLBACK_MEMBER(hrtc_update); diff --git a/src/devices/video/upd7220.h b/src/devices/video/upd7220.h index c0c09871c9f..9cda6a6b0d8 100644 --- a/src/devices/video/upd7220.h +++ b/src/devices/video/upd7220.h @@ -85,10 +85,10 @@ class upd7220_device : public device_t, upd7220_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // device_t 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 const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; virtual space_config_vector memory_space_config() const override; virtual int translate_command(uint8_t data); @@ -134,7 +134,7 @@ class upd7220_device : public device_t, void draw_graphics_line(bitmap_rgb32 &bitmap, uint32_t addr, int y, int wd, int mixed); void update_graphics(bitmap_rgb32 &bitmap, const rectangle &cliprect, int force_bitmap); - void upd7220_vram(address_map &map); + void upd7220_vram(address_map &map) ATTR_COLD; display_pixels_delegate m_display_cb; draw_text_delegate m_draw_text_cb; @@ -223,7 +223,7 @@ class upd7220a_device : public upd7220_device upd7220a_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 int translate_command(uint8_t data) override; }; diff --git a/src/devices/video/upd7227.h b/src/devices/video/upd7227.h index d82e33b0720..84bbd185f9e 100644 --- a/src/devices/video/upd7227.h +++ b/src/devices/video/upd7227.h @@ -40,8 +40,8 @@ class upd7227_device : public device_t, public device_memory_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; // device_memory_interface overrides virtual space_config_vector memory_space_config() const override; @@ -74,7 +74,7 @@ class upd7227_device : public device_t, public device_memory_interface int m_si; int m_so; - void upd7227_map(address_map &map); + void upd7227_map(address_map &map) ATTR_COLD; }; diff --git a/src/devices/video/v9938.h b/src/devices/video/v9938.h index 265cad5eac1..bc7c31aa5dd 100644 --- a/src/devices/video/v9938.h +++ b/src/devices/video/v9938.h @@ -97,8 +97,8 @@ class v99x8_device : public device_t, // device overrides virtual void device_config_complete() override; - 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 device_post_load() override; // device_memory_interface overrides @@ -192,7 +192,7 @@ class v99x8_device : public device_t, uint8_t command_unit_w(uint8_t Op); void update_command(); - void memmap(address_map &map); + void memmap(address_map &map) ATTR_COLD; // general int m_offset_x, m_offset_y, m_visible_y, m_mode; diff --git a/src/devices/video/vector.h b/src/devices/video/vector.h index 0465a7c9a43..46731de11a1 100644 --- a/src/devices/video/vector.h +++ b/src/devices/video/vector.h @@ -39,7 +39,7 @@ class vector_device : public device_t, public device_video_interface void add_point(int x, int y, rgb_t color, int intensity); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: /* The vertices are buffered here */ diff --git a/src/devices/video/voodoo.h b/src/devices/video/voodoo.h index 94a20c0f7af..1de361cf20d 100644 --- a/src/devices/video/voodoo.h +++ b/src/devices/video/voodoo.h @@ -421,7 +421,7 @@ class generic_voodoo_device : public device_t, public device_video_interface generic_voodoo_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, voodoo::voodoo_model model); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // configuration const voodoo::voodoo_model m_model; // which voodoo model @@ -490,7 +490,7 @@ class voodoo_1_device : public generic_voodoo_device virtual ~voodoo_1_device(); // address map and read/write helpers - virtual void core_map(address_map &map) override; + virtual void core_map(address_map &map) override ATTR_COLD; virtual u32 read(offs_t offset, u32 mem_mask = ~0) override; virtual void write(offs_t offset, u32 data, u32 mem_mask = ~0) override; @@ -502,9 +502,9 @@ class voodoo_1_device : public generic_voodoo_device protected: // device-level overrides - virtual void device_start() override; - virtual void device_stop() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_stop() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; virtual void device_post_load() override; // system management diff --git a/src/devices/video/voodoo_2.h b/src/devices/video/voodoo_2.h index a68886b846e..a5f893397a2 100644 --- a/src/devices/video/voodoo_2.h +++ b/src/devices/video/voodoo_2.h @@ -184,13 +184,13 @@ class voodoo_2_device : public voodoo_1_device voodoo_2_device(mconfig, VOODOO_2, tag, owner, clock, voodoo::voodoo_model::VOODOO_2) { } // address map and read/write helpers - virtual void core_map(address_map &map) override; + virtual void core_map(address_map &map) override ATTR_COLD; virtual u32 read(offs_t offset, u32 mem_mask = ~0) override; virtual void write(offs_t offset, u32 data, u32 mem_mask = ~0) override; protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // system management virtual void soft_reset() override; diff --git a/src/devices/video/voodoo_banshee.h b/src/devices/video/voodoo_banshee.h index 31afb8289ae..789e1daf13f 100644 --- a/src/devices/video/voodoo_banshee.h +++ b/src/devices/video/voodoo_banshee.h @@ -52,17 +52,17 @@ class voodoo_banshee_device : public voodoo_2_device voodoo_banshee_device(mconfig, VOODOO_BANSHEE, tag, owner, clock, voodoo::voodoo_model::VOODOO_BANSHEE) { } // core address map and read/write helpers - virtual void core_map(address_map &map) override; + virtual void core_map(address_map &map) override ATTR_COLD; virtual u32 read(offs_t offset, u32 mem_mask = ~0) override; virtual void write(offs_t offset, u32 data, u32 mem_mask = ~0) override; // LFB address map and read/write helpers - virtual void lfb_map(address_map &map); + virtual void lfb_map(address_map &map) ATTR_COLD; virtual u32 read_lfb(offs_t offset, u32 mem_mask = ~0); virtual void write_lfb(offs_t offset, u32 data, u32 mem_mask = ~0); // I/O address map and read/write helpers - virtual void io_map(address_map &map); + virtual void io_map(address_map &map) ATTR_COLD; virtual u32 read_io(offs_t offset, u32 mem_mask = ~0) { return map_io_r(offset, mem_mask); } virtual void write_io(offs_t offset, u32 data, u32 mem_mask = ~0) { map_io_w(offset, data, mem_mask); } @@ -71,7 +71,7 @@ class voodoo_banshee_device : public voodoo_2_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // system management virtual void soft_reset() override; @@ -179,7 +179,7 @@ class voodoo_3_device : public voodoo_banshee_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; }; #endif // MAME_VIDEO_VOODOO_BANSHEE_H diff --git a/src/devices/video/voodoo_pci.h b/src/devices/video/voodoo_pci.h index c43f41e2f3a..bf59f54a99b 100644 --- a/src/devices/video/voodoo_pci.h +++ b/src/devices/video/voodoo_pci.h @@ -30,12 +30,12 @@ class voodoo_pci_device : public pci_device virtual void map_extra(u64 memory_window_start, u64 memory_window_end, u64 memory_offset, address_space *memory_space, u64 io_window_start, u64 io_window_end, u64 io_offset, address_space *io_space) override; - virtual void config_map(address_map &map) override; + virtual void config_map(address_map &map) override ATTR_COLD; void postload(void); - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; required_device m_generic_voodoo; optional_device m_cpu; @@ -63,8 +63,8 @@ class voodoo_1_pci_device : public voodoo_pci_device voodoo_1_pci_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); protected: - 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; required_device m_voodoo; }; @@ -82,8 +82,8 @@ class voodoo_2_pci_device : public voodoo_pci_device voodoo_2_pci_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); protected: - 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; required_device m_voodoo; }; @@ -103,8 +103,8 @@ class voodoo_banshee_pci_device : public voodoo_pci_device protected: voodoo_banshee_pci_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 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; virtual void map_extra(u64 memory_window_start, u64 memory_window_end, u64 memory_offset, address_space *memory_space, u64 io_window_start, u64 io_window_end, u64 io_offset, address_space *io_space) override; @@ -125,9 +125,9 @@ class voodoo_banshee_x86_pci_device : public voodoo_banshee_pci_device voodoo_banshee_x86_pci_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; private: required_memory_region m_vga_rom; @@ -147,8 +147,8 @@ class voodoo_3_pci_device : public voodoo_pci_device voodoo_3_pci_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); protected: - 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; virtual void map_extra(u64 memory_window_start, u64 memory_window_end, u64 memory_offset, address_space *memory_space, u64 io_window_start, u64 io_window_end, u64 io_offset, address_space *io_space) override; diff --git a/src/devices/video/vrender0.h b/src/devices/video/vrender0.h index 80d9eb223a0..bdccd275515 100644 --- a/src/devices/video/vrender0.h +++ b/src/devices/video/vrender0.h @@ -17,7 +17,7 @@ class vr0video_device : public device_t, vr0video_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); void set_areas(uint16_t *textureram, uint16_t *frameram); - void regs_map(address_map &map); + void regs_map(address_map &map) ATTR_COLD; void execute_flipping(); uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); auto idleskip_cb() { return m_idleskip_cb.bind(); } @@ -27,8 +27,8 @@ class vr0video_device : public device_t, 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; private: int vrender0_ProcessPacket(uint32_t PacketPtr); diff --git a/src/devices/video/wd90c26.h b/src/devices/video/wd90c26.h index 098445c518a..5a866a2c227 100644 --- a/src/devices/video/wd90c26.h +++ b/src/devices/video/wd90c26.h @@ -14,9 +14,9 @@ class wd90c26_vga_device : public wd90c11a_vga_device wd90c26_vga_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - virtual void crtc_map(address_map &map) override; - virtual void gc_map(address_map &map) override; - virtual void sequencer_map(address_map &map) override; + virtual void crtc_map(address_map &map) override ATTR_COLD; + virtual void gc_map(address_map &map) override ATTR_COLD; + virtual void sequencer_map(address_map &map) override ATTR_COLD; }; DECLARE_DEVICE_TYPE(WD90C26, wd90c26_vga_device) diff --git a/src/devices/video/x1_001.h b/src/devices/video/x1_001.h index 74cdb239be0..7a94b9abd08 100644 --- a/src/devices/video/x1_001.h +++ b/src/devices/video/x1_001.h @@ -60,8 +60,8 @@ class x1_001_device : public device_t, public device_gfx_interface int is_flipped() { return ((m_spritectrl[ 0 ] & 0x40) >> 6); } protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: void draw_background(bitmap_ind16 &bitmap, const rectangle &cliprect, int bank_size); diff --git a/src/devices/video/zeus2.h b/src/devices/video/zeus2.h index 459fff99799..b033b6383e3 100644 --- a/src/devices/video/zeus2.h +++ b/src/devices/video/zeus2.h @@ -161,9 +161,9 @@ class zeus2_device : public device_t, public device_video_interface protected: // device-level overrides - virtual void device_start() override; - virtual void device_reset() override; - virtual void device_stop() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; + virtual void device_stop() override ATTR_COLD; private: TIMER_CALLBACK_MEMBER(int_timer_callback); diff --git a/src/devices/video/zr36110.h b/src/devices/video/zr36110.h index 0f96e5dd3d1..8cc376ba7a3 100644 --- a/src/devices/video/zr36110.h +++ b/src/devices/video/zr36110.h @@ -57,8 +57,8 @@ class zr36110_device : public device_t u16 userx_r(); // a = 3 protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: enum { diff --git a/src/emu/diserial.cpp b/src/emu/diserial.cpp index e88aaafc3ca..4f31c91ca02 100644 --- a/src/emu/diserial.cpp +++ b/src/emu/diserial.cpp @@ -25,6 +25,7 @@ device_serial_interface::device_serial_interface(const machine_config &mconfig, m_df_word_length(0), m_df_parity(PARITY_NONE), m_df_stop_bit_count(STOP_BITS_0), + m_df_min_rx_stop_bit_count(0), m_rcv_register_data(0x8000), m_rcv_flags(0), m_rcv_bit_count_received(0), @@ -81,6 +82,7 @@ void device_serial_interface::interface_post_start() device().save_item(NAME(m_df_word_length)); device().save_item(NAME(m_df_parity)); device().save_item(NAME(m_df_stop_bit_count)); + device().save_item(NAME(m_df_min_rx_stop_bit_count)); device().save_item(NAME(m_rcv_register_data)); device().save_item(NAME(m_rcv_flags)); device().save_item(NAME(m_rcv_bit_count_received)); @@ -174,25 +176,30 @@ void device_serial_interface::set_data_frame(int start_bit_count, int data_bit_c case STOP_BITS_0: default: m_df_stop_bit_count = 0; + m_df_min_rx_stop_bit_count = 0; break; case STOP_BITS_1: m_df_stop_bit_count = 1; + m_df_min_rx_stop_bit_count = 1; break; case STOP_BITS_1_5: m_df_stop_bit_count = 2; // TODO: support 1.5 stop bits + m_df_min_rx_stop_bit_count = 1; break; case STOP_BITS_2: m_df_stop_bit_count = 2; + m_df_min_rx_stop_bit_count = 1; break; } m_df_parity = parity; m_df_start_bit_count = start_bit_count; - m_rcv_bit_count = m_df_word_length + m_df_stop_bit_count; + /* Require at least one stop bit in async RX mode, none in sync RX mode. */ + m_rcv_bit_count = m_df_word_length + m_df_min_rx_stop_bit_count; if (m_df_parity != PARITY_NONE) { @@ -274,6 +281,10 @@ void device_serial_interface::receive_register_update_bit(int bit) m_rcv_framing_error = false; m_rcv_parity_error = false; } + else + { + LOGMASKED(LOG_RX, "Receiver saw stop bit (%s)\n", device().machine().time().to_string()); + } } } else if (m_rcv_flags & RECEIVE_REGISTER_SYNCHRONISED) @@ -281,7 +292,7 @@ void device_serial_interface::receive_register_update_bit(int bit) LOGMASKED(LOG_RX, "Received bit %d as %d (%s)\n", m_rcv_bit_count_received, bit, device().machine().time().to_string()); m_rcv_bit_count_received++; - if (!bit && (m_rcv_bit_count_received > (m_rcv_bit_count - m_df_stop_bit_count))) + if (!bit && (m_rcv_bit_count_received > (m_rcv_bit_count - m_df_min_rx_stop_bit_count))) { LOGMASKED(LOG_RX, "Framing error\n"); m_rcv_framing_error = true; @@ -424,10 +435,9 @@ void device_serial_interface::transmit_register_setup(u8 data_byte) transmit_register_add_bit(parity); } - /* stop bit(s) + 1 extra bit as delay between bytes, needed to get 1 stop bit to work. */ - if (m_df_stop_bit_count) // no stop bits for synchronous - for (i=0; i<=m_df_stop_bit_count; i++) // ToDo - see if the hack on this line is still needed (was added 2016-04-10) - transmit_register_add_bit(1); + /* TX stop bit(s) */ + for (i=0; i m_cpu; diff --git a/src/emu/emumem.h b/src/emu/emumem.h index 4c483559757..0c18ed95834 100644 --- a/src/emu/emumem.h +++ b/src/emu/emumem.h @@ -2458,7 +2458,7 @@ class address_space : public address_space_installer // setup void prepare_map(); - void prepare_device_map(address_map &map); + void prepare_device_map(address_map &map) ATTR_COLD; void populate_from_map(address_map *map = nullptr); template handler_entry_read_unmapped *get_unmap_r() const { return static_cast *>(m_unmap_r); } @@ -2474,7 +2474,7 @@ class address_space : public address_space_installer virtual std::pair get_cache_info() = 0; virtual std::pair get_specific_info() = 0; - void prepare_map_generic(address_map &map, bool allow_alloc); + void prepare_map_generic(address_map &map, bool allow_alloc) ATTR_COLD; // private state device_t & m_device; // reference to the owning device @@ -2646,8 +2646,8 @@ class memory_view int m_id; memory_view_entry(const address_space_config &config, memory_manager &manager, memory_view &view, int id); - void prepare_map_generic(address_map &map, bool allow_alloc); - void prepare_device_map(address_map &map); + void prepare_map_generic(address_map &map, bool allow_alloc) ATTR_COLD; + void prepare_device_map(address_map &map) ATTR_COLD; void check_range_optimize_all(const char *function, int width, offs_t addrstart, offs_t addrend, offs_t addrmask, offs_t addrmirror, offs_t addrselect, u64 unitmask, int cswidth, offs_t &nstart, offs_t &nend, offs_t &nmask, offs_t &nmirror, u64 &nunitmask, int &ncswidth); void check_range_optimize_mirror(const char *function, offs_t addrstart, offs_t addrend, offs_t addrmirror, offs_t &nstart, offs_t &nend, offs_t &nmask, offs_t &nmirror); diff --git a/src/emu/emupal.h b/src/emu/emupal.h index 1ed3d08fe7a..05d5d68ed23 100644 --- a/src/emu/emupal.h +++ b/src/emu/emupal.h @@ -374,7 +374,7 @@ class palette_device : public device_t, public device_palette_interface protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_palette_interface overrides virtual u32 palette_entries() const noexcept override { return m_entries; } diff --git a/src/emu/render.cpp b/src/emu/render.cpp index 571f4e79084..545827262bb 100644 --- a/src/emu/render.cpp +++ b/src/emu/render.cpp @@ -1756,13 +1756,9 @@ bool render_target::map_point_container(s32 target_x, s32 target_y, render_conta if (&container == m_ui_container) { // this hit test went against the UI container - if ((target_f.first >= 0.0f) && (target_f.first < 1.0f) && (target_f.second >= 0.0f) && (target_f.second < 1.0f)) - { - // this point was successfully mapped - container_x = float(target_x) / m_width; - container_y = float(target_y) / m_height; - return true; - } + container_x = float(target_x) / m_width; + container_y = float(target_y) / m_height; + return (target_f.first >= 0.0f) && (target_f.first < 1.0f) && (target_f.second >= 0.0f) && (target_f.second < 1.0f); } else { @@ -1781,15 +1777,12 @@ bool render_target::map_point_container(s32 target_x, s32 target_y, render_conta [&container] (layout_view_item &item) { return &item.screen()->container() == &container; })); if (items.end() != found) { + // point successfully mapped layout_view_item &item(*found); render_bounds const bounds(item.bounds()); - if (bounds.includes(target_f.first, target_f.second)) - { - // point successfully mapped - container_x = (target_f.first - bounds.x0) / bounds.width(); - container_y = (target_f.second - bounds.y0) / bounds.height(); - return true; - } + container_x = (target_f.first - bounds.x0) / bounds.width(); + container_y = (target_f.second - bounds.y0) / bounds.height(); + return bounds.includes(target_f.first, target_f.second); } } diff --git a/src/emu/screen.h b/src/emu/screen.h index a2d9e7f7f2e..5eb88f08f27 100644 --- a/src/emu/screen.h +++ b/src/emu/screen.h @@ -427,10 +427,10 @@ class screen_device : public device_t // device-level overrides virtual void device_validity_check(validity_checker &valid) const override; virtual void device_config_complete() override; - virtual void device_resolve_objects() override; - virtual void device_start() override; - virtual void device_reset() override; - virtual void device_stop() override; + virtual void device_resolve_objects() override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; + virtual void device_stop() override ATTR_COLD; virtual void device_post_load() override; // internal helpers diff --git a/src/emu/softlist_dev.h b/src/emu/softlist_dev.h index b89f6decd27..b25284e03ed 100644 --- a/src/emu/softlist_dev.h +++ b/src/emu/softlist_dev.h @@ -134,7 +134,7 @@ class software_list_device : public device_t protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void device_validity_check(validity_checker &valid) const override ATTR_COLD; private: diff --git a/src/emu/tilemap.h b/src/emu/tilemap.h index b6b2c566bfa..3fc1a353315 100644 --- a/src/emu/tilemap.h +++ b/src/emu/tilemap.h @@ -754,7 +754,7 @@ class tilemap_device : public device_t, protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: // devices diff --git a/src/frontend/mame/ui/ui.cpp b/src/frontend/mame/ui/ui.cpp index c7a5b118206..cf86e756074 100644 --- a/src/frontend/mame/ui/ui.cpp +++ b/src/frontend/mame/ui/ui.cpp @@ -188,25 +188,66 @@ struct mame_ui_manager::active_pointer }; -struct mame_ui_manager::pointer_options +class mame_ui_manager::pointer_options { +public: pointer_options() - : timeout(std::chrono::seconds(3)) - , hide_inactive(true) - , timeout_set(false) - , hide_inactive_set(false) + : m_initial_timeout(std::chrono::seconds(3)) + , m_timeout(std::chrono::seconds(3)) + , m_initial_hide_inactive(true) + , m_hide_inactive(true) + , m_timeout_set(false) + , m_hide_inactive_set(false) { } - bool options_set() const + std::chrono::steady_clock::duration timeout() const noexcept { return m_timeout; } + bool hide_inactive() const noexcept { return m_hide_inactive; } + bool timeout_set() const noexcept { return m_timeout_set; } + bool hide_inactive_set() const noexcept { return m_hide_inactive_set; } + bool options_set() const noexcept { return m_timeout_set || m_hide_inactive_set; } + + void set_initial_timeout(std::chrono::steady_clock::duration value) noexcept + { + m_initial_timeout = value; + if (!m_timeout_set) + m_timeout = value; + } + + void set_initial_hide_inactive(bool value) noexcept + { + m_initial_hide_inactive = value; + if (!m_hide_inactive_set) + m_hide_inactive = value; + } + + void set_timeout(std::chrono::steady_clock::duration value) noexcept { - return timeout_set || hide_inactive_set; + m_timeout = value; + m_timeout_set = true; } - std::chrono::steady_clock::duration timeout; - bool hide_inactive; - bool timeout_set; - bool hide_inactive_set; + void set_hide_inactive(bool value) noexcept + { + m_hide_inactive = value; + m_hide_inactive_set = true; + } + + void restore_initial() noexcept + { + m_timeout = m_initial_timeout; + m_hide_inactive = m_initial_hide_inactive; + m_timeout_set = false; + m_hide_inactive_set = false; + } + +private: + std::chrono::steady_clock::duration m_initial_timeout; + std::chrono::steady_clock::duration m_timeout; + bool m_initial_hide_inactive; + bool m_hide_inactive; + bool m_timeout_set; + bool m_hide_inactive_set; }; @@ -452,17 +493,19 @@ void mame_ui_manager::config_load_pointers( auto const ms(std::lround(timeout * 1000.0F)); if ((0 <= ms) && (10'000 >= ms)) { - m_pointer_options[index].timeout = std::chrono::milliseconds(ms); if (config_type::SYSTEM == cfg_type) - m_pointer_options[index].timeout_set = true; + m_pointer_options[index].set_timeout(std::chrono::milliseconds(ms)); + else + m_pointer_options[index].set_initial_timeout(std::chrono::milliseconds(ms)); } auto const hide(targetnode->get_attribute_int("hide_inactive", -1)); if (0 <= hide) { - m_pointer_options[index].hide_inactive = hide != 0; if (config_type::SYSTEM == cfg_type) - m_pointer_options[index].hide_inactive_set = true; + m_pointer_options[index].set_hide_inactive(hide != 0); + else + m_pointer_options[index].set_initial_hide_inactive(hide != 0); } } } @@ -495,13 +538,13 @@ void mame_ui_manager::config_save_pointers( if (targetnode) { targetnode->set_attribute_int("index", i); - if (options.timeout_set) + if (options.timeout_set()) { - auto const ms(std::chrono::duration_cast(options.timeout)); + auto const ms(std::chrono::duration_cast(options.timeout())); targetnode->set_attribute_float("activity_timeout", float(ms.count()) * 0.001F); } - if (options.hide_inactive_set) - targetnode->set_attribute_int("hide_inactive", options.hide_inactive); + if (options.hide_inactive_set()) + targetnode->set_attribute_int("hide_inactive", options.hide_inactive()); } } } @@ -1518,8 +1561,8 @@ uint32_t mame_ui_manager::handler_ingame(render_container &container) { target = pointer.target; view = &target->current_view(); - hide_inactive = m_pointer_options[target->index()].hide_inactive && view->hide_inactive_pointers(); - expiry = now - m_pointer_options[target->index()].timeout; + hide_inactive = m_pointer_options[target->index()].hide_inactive() && view->hide_inactive_pointers(); + expiry = now - m_pointer_options[target->index()].timeout(); } if (view->show_pointers()) { @@ -1735,10 +1778,7 @@ void mame_ui_manager::set_pointer_activity_timeout(int target, std::chrono::stea { assert((0 <= target) && (m_pointer_options.size() > target)); if ((0 <= target) && (m_pointer_options.size() > target)) - { - m_pointer_options[target].timeout = timeout; - m_pointer_options[target].timeout_set = true; - } + m_pointer_options[target].set_timeout(timeout); } @@ -1751,10 +1791,20 @@ void mame_ui_manager::set_hide_inactive_pointers(int target, bool hide) noexcept { assert((0 <= target) && (m_pointer_options.size() > target)); if ((0 <= target) && (m_pointer_options.size() > target)) - { - m_pointer_options[target].hide_inactive = hide; - m_pointer_options[target].hide_inactive_set = true; - } + m_pointer_options[target].set_hide_inactive(hide); +} + + +//------------------------------------------------- +// restore_initial_pointer_options - restore +// initial per-target pointer settings +//------------------------------------------------- + +void mame_ui_manager::restore_initial_pointer_options(int target) noexcept +{ + assert((0 <= target) && (m_pointer_options.size() > target)); + if ((0 <= target) && (m_pointer_options.size() > target)) + m_pointer_options[target].restore_initial(); } @@ -1767,9 +1817,9 @@ std::chrono::steady_clock::duration mame_ui_manager::pointer_activity_timeout(in { assert((0 <= target) && (m_pointer_options.size() > target)); if ((0 <= target) && (m_pointer_options.size() > target)) - return m_pointer_options[target].timeout; + return m_pointer_options[target].timeout(); else - return pointer_options().timeout; + return pointer_options().timeout(); } @@ -1782,9 +1832,9 @@ bool mame_ui_manager::hide_inactive_pointers(int target) const noexcept { assert((0 <= target) && (m_pointer_options.size() > target)); if ((0 <= target) && (m_pointer_options.size() > target)) - return m_pointer_options[target].hide_inactive; + return m_pointer_options[target].hide_inactive(); else - return pointer_options().hide_inactive; + return pointer_options().hide_inactive(); } diff --git a/src/frontend/mame/ui/ui.h b/src/frontend/mame/ui/ui.h index 128300576e5..05017154d48 100644 --- a/src/frontend/mame/ui/ui.h +++ b/src/frontend/mame/ui/ui.h @@ -209,6 +209,7 @@ class mame_ui_manager : public ui_manager void request_quit(); void set_pointer_activity_timeout(int target, std::chrono::steady_clock::duration timeout) noexcept; void set_hide_inactive_pointers(int target, bool hide) noexcept; + void restore_initial_pointer_options(int target) noexcept; std::chrono::steady_clock::duration pointer_activity_timeout(int target) const noexcept; bool hide_inactive_pointers(int target) const noexcept; @@ -282,7 +283,7 @@ class mame_ui_manager : public ui_manager enum class ui_callback_type : int; struct active_pointer; - struct pointer_options; + class pointer_options; using handler_callback_func = delegate; using device_feature_set = std::set >; diff --git a/src/frontend/mame/ui/videoopt.cpp b/src/frontend/mame/ui/videoopt.cpp index fb4fd14c358..5b8afb77fbf 100644 --- a/src/frontend/mame/ui/videoopt.cpp +++ b/src/frontend/mame/ui/videoopt.cpp @@ -403,6 +403,12 @@ bool menu_video_options::handle(event const *ev) ui().set_hide_inactive_pointers(m_target.index(), !ui().hide_inactive_pointers(m_target.index())); changed = true; break; + + // restore initial setting + case IPT_UI_CLEAR: + ui().restore_initial_pointer_options(m_target.index()); + changed = true; + break; } break; diff --git a/src/mame/access/acvirus.cpp b/src/mame/access/acvirus.cpp index a253f59a859..2d2bf966bb8 100644 --- a/src/mame/access/acvirus.cpp +++ b/src/mame/access/acvirus.cpp @@ -84,10 +84,10 @@ class acvirus_state : public driver_device void init_virus(); private: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; - void virus_map(address_map &map); + void virus_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_memory_bank m_rombank; diff --git a/src/mame/acorn/aa310.cpp b/src/mame/acorn/aa310.cpp index 5f5f262a732..229ab883dd8 100644 --- a/src/mame/acorn/aa310.cpp +++ b/src/mame/acorn/aa310.cpp @@ -185,12 +185,12 @@ class aabase_state : public driver_device u32 dram_r(offs_t offset, u32 mem_mask = ~0); void dram_w(offs_t offset, u32 data, u32 mem_mask = ~0); - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; static void floppy_formats(format_registration &fr); - void arm_map(address_map &map); - virtual void memc_map(address_map &map); + void arm_map(address_map &map) ATTR_COLD; + virtual void memc_map(address_map &map) ATTR_COLD; void post_debug(int post_state); @@ -227,7 +227,7 @@ class aa500_state : public aabase_state void aa500d(machine_config &config); protected: - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; u32 peripheral5_r(offs_t offset); void peripheral5_w(offs_t offset, u32 data); @@ -271,7 +271,7 @@ class aa310_state : public aabase_state void aa3000(machine_config &config); protected: - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; u32 peripheral5_r(offs_t offset); void peripheral5_w(offs_t offset, u32 data); @@ -305,9 +305,9 @@ class aa680_state : public aabase_state void aa680(machine_config &config); protected: - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; - virtual void memc_map(address_map &map) override; + virtual void memc_map(address_map &map) override ATTR_COLD; u32 peripheral5_r(offs_t offset); void peripheral5_w(offs_t offset, u32 data); @@ -343,9 +343,9 @@ class aa4000_state : public aabase_state required_device m_i2cmem; protected: - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; - virtual void memc_map(address_map &map) override; + virtual void memc_map(address_map &map) override ATTR_COLD; u8 ioeb_r(offs_t offset); void ioeb_w(offs_t offset, u8 data); @@ -371,7 +371,7 @@ class aa5000_state : public aa4000_state void aa5000a(machine_config &config); protected: - virtual void memc_map(address_map &map) override; + virtual void memc_map(address_map &map) override ATTR_COLD; u8 extension_r(offs_t offset); @@ -391,7 +391,7 @@ class aa4_state : public aa5000_state void aa4(machine_config &config); protected: - virtual void memc_map(address_map &map) override; + virtual void memc_map(address_map &map) override ATTR_COLD; private: required_device m_lc; diff --git a/src/mame/acorn/accomm.cpp b/src/mame/acorn/accomm.cpp index e0e0ee79feb..ae4ed511d67 100644 --- a/src/mame/acorn/accomm.cpp +++ b/src/mame/acorn/accomm.cpp @@ -94,9 +94,9 @@ class accomm_state : public driver_device protected: // driver_device overrides - virtual void machine_reset() override; - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; TIMER_CALLBACK_MEMBER(scanline_interrupt_check); @@ -113,8 +113,8 @@ class accomm_state : public driver_device void accomm_palette(palette_device &palette) const; - void main_map(address_map &map); - void saa5240_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void saa5240_map(address_map &map) ATTR_COLD; // devices required_device m_maincpu; diff --git a/src/mame/acorn/acrnsys.cpp b/src/mame/acorn/acrnsys.cpp index 07779589a20..f9e319b5e6b 100644 --- a/src/mame/acorn/acrnsys.cpp +++ b/src/mame/acorn/acrnsys.cpp @@ -96,8 +96,8 @@ class acrnsys_state : public driver_device void acrnsys5(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: void kbd_put(u8 data); @@ -106,9 +106,9 @@ class acrnsys_state : public driver_device uint8_t kbd_r(); void bus_nmi_w(int state); - void a6502_mem(address_map &map); - void a6809_mem(address_map &map); - void a6502a_mem(address_map &map); + void a6502_mem(address_map &map) ATTR_COLD; + void a6809_mem(address_map &map) ATTR_COLD; + void a6502a_mem(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_irqs; diff --git a/src/mame/acorn/acrnsys1.cpp b/src/mame/acorn/acrnsys1.cpp index 7d7e11854f4..b71c845a7b3 100644 --- a/src/mame/acorn/acrnsys1.cpp +++ b/src/mame/acorn/acrnsys1.cpp @@ -67,7 +67,7 @@ class acrnsys1_state : public driver_device void acrnsys1(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_maincpu; @@ -81,7 +81,7 @@ class acrnsys1_state : public driver_device void acrnsys1_led_segment_w(uint8_t data); TIMER_DEVICE_CALLBACK_MEMBER(kansas_w); TIMER_DEVICE_CALLBACK_MEMBER(kansas_r); - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; uint8_t m_digit = 0; uint8_t m_cass_data[4]{}; diff --git a/src/mame/acorn/aristmk5.cpp b/src/mame/acorn/aristmk5.cpp index bb0da8237bf..39f70d5043a 100644 --- a/src/mame/acorn/aristmk5.cpp +++ b/src/mame/acorn/aristmk5.cpp @@ -810,15 +810,15 @@ class aristmk5_state : public driver_device void spi_int_ack_w(uint8_t data); uint8_t spi_data_r(); - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; TIMER_CALLBACK_MEMBER(mk5_2KHz_callback); TIMER_CALLBACK_MEMBER(spi_timer); - void aristmk5_arm_map(address_map &map); - void aristmk5_drame_map(address_map &map); - void aristmk5_map(address_map &map); - void aristmk5_usa_map(address_map &map); + void aristmk5_arm_map(address_map &map) ATTR_COLD; + void aristmk5_drame_map(address_map &map) ATTR_COLD; + void aristmk5_map(address_map &map) ATTR_COLD; + void aristmk5_usa_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_ioc; diff --git a/src/mame/acorn/atom.h b/src/mame/acorn/atom.h index 7683b4c5899..ac377bc36fb 100644 --- a/src/mame/acorn/atom.h +++ b/src/mame/acorn/atom.h @@ -75,8 +75,8 @@ class atom_state : public driver_device required_device m_ppi; required_device m_via; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; void ppi_pa_w(uint8_t data); uint8_t ppi_pb_r(); @@ -102,9 +102,9 @@ class atom_state : public driver_device std::pair load_cart(device_image_interface &image, generic_slot_device &slot); DECLARE_DEVICE_IMAGE_LOAD_MEMBER(cart_load) { return load_cart(image, *m_cart); } DECLARE_QUICKLOAD_LOAD_MEMBER(quickload_cb); - void atom_mem(address_map &map); - void atombb_mem(address_map &map); - void prophet_mem(address_map &map); + void atom_mem(address_map &map) ATTR_COLD; + void atombb_mem(address_map &map) ATTR_COLD; + void prophet_mem(address_map &map) ATTR_COLD; }; class atomeb_state : public atom_state @@ -121,8 +121,8 @@ class atomeb_state : public atom_state void atomeb(machine_config &config); private: - void machine_start() override; - void machine_reset() override; + void machine_start() override ATTR_COLD; + void machine_reset() override ATTR_COLD; uint8_t eprom_r(); void eprom_w(uint8_t data); @@ -139,7 +139,7 @@ class atomeb_state : public atom_state template DECLARE_DEVICE_IMAGE_LOAD_MEMBER(ext_load) { return load_cart(image, *m_ext[I]); } DECLARE_DEVICE_IMAGE_LOAD_MEMBER(e0_load) { return load_cart(image, *m_e0); } DECLARE_DEVICE_IMAGE_LOAD_MEMBER(e1_load) { return load_cart(image, *m_e1); } - void atomeb_mem(address_map &map); + void atomeb_mem(address_map &map) ATTR_COLD; }; #endif // MAME_ACORN_ATOM_H diff --git a/src/mame/acorn/bbc.h b/src/mame/acorn/bbc.h index d5a372922a2..1cbd2424ea7 100644 --- a/src/mame/acorn/bbc.h +++ b/src/mame/acorn/bbc.h @@ -198,20 +198,20 @@ class bbc_state : public driver_device void bbcb_us(machine_config &config); void sist1(machine_config &config); - void bbca_mem(address_map &map); - void bbc_base(address_map &map); - void bbcb_mem(address_map &map); + void bbca_mem(address_map &map) ATTR_COLD; + void bbc_base(address_map &map) ATTR_COLD; + void bbcb_mem(address_map &map) ATTR_COLD; void init_bbc(); void init_ltmp(); void init_cfa(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; - virtual void video_start() override; - virtual void video_reset() override; + virtual void video_start() override ATTR_COLD; + virtual void video_reset() override ATTR_COLD; required_device m_maincpu; required_device m_ram; @@ -411,12 +411,12 @@ class bbcbp_state : public bbc_state void reutapm(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; - void bbcbp_mem(address_map &map); - void reutapm_mem(address_map &map); - void bbcbp_fetch(address_map &map); + void bbcbp_mem(address_map &map) ATTR_COLD; + void reutapm_mem(address_map &map) ATTR_COLD; + void bbcbp_fetch(address_map &map) ATTR_COLD; }; @@ -448,16 +448,16 @@ class bbcm_state : public bbc_state static void mpc_prisma_default(device_t *device); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - - void bbcm_mem(address_map &map); - void bbcm_bankdev(address_map &map); - void bbcmet_bankdev(address_map &map); - void bbcmc_mem(address_map &map); - void bbcmc_bankdev(address_map &map); - void autoc15_bankdev(address_map &map); - void bbcm_fetch(address_map &map); + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + + void bbcm_mem(address_map &map) ATTR_COLD; + void bbcm_bankdev(address_map &map) ATTR_COLD; + void bbcmet_bankdev(address_map &map) ATTR_COLD; + void bbcmc_mem(address_map &map) ATTR_COLD; + void bbcmc_bankdev(address_map &map) ATTR_COLD; + void autoc15_bankdev(address_map &map) ATTR_COLD; + void bbcm_fetch(address_map &map) ATTR_COLD; output_finder<> m_power_led; }; diff --git a/src/mame/acorn/cms.cpp b/src/mame/acorn/cms.cpp index eb0f2a2370e..34da31b2347 100644 --- a/src/mame/acorn/cms.cpp +++ b/src/mame/acorn/cms.cpp @@ -71,8 +71,8 @@ class cms_state : public driver_device void cms6502(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: void map_select_w(uint8_t data); @@ -86,7 +86,7 @@ class cms_state : public driver_device required_device m_irqs; required_device m_bus; - void cms6502_mem(address_map &map); + void cms6502_mem(address_map &map) ATTR_COLD; uint8_t m_map_select; uint8_t m_page_select[4]; diff --git a/src/mame/acorn/electron.h b/src/mame/acorn/electron.h index 68b28a38f24..e6eb87db635 100644 --- a/src/mame/acorn/electron.h +++ b/src/mame/acorn/electron.h @@ -92,13 +92,13 @@ class electron_state : public driver_device inline void electron_plot_pixel(bitmap_ind16 &bitmap, int x, int y, uint32_t color); void electron_interrupt_handler(int mode, int interrupt); - void electron_mem(address_map &map); + void electron_mem(address_map &map) ATTR_COLD; - void electron64_opcodes(address_map &map); + void electron64_opcodes(address_map &map) ATTR_COLD; - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; required_device m_maincpu; required_device m_irqs; @@ -169,7 +169,7 @@ class electronsp_state : public electron_state virtual uint8_t electron_fred_r(offs_t offset) override; virtual void electron_fred_w(offs_t offset, uint8_t data) override; - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_memory_region m_region_sp64; diff --git a/src/mame/acorn/ertictac.cpp b/src/mame/acorn/ertictac.cpp index d7f8d611a1f..661a89016da 100644 --- a/src/mame/acorn/ertictac.cpp +++ b/src/mame/acorn/ertictac.cpp @@ -50,11 +50,11 @@ class ertictac_state : public driver_device private: uint32_t ertictac_podule_r(offs_t offset); - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; INTERRUPT_GEN_MEMBER(ertictac_podule_irq); - void ertictac_arm_map(address_map &map); - void ertictac_map(address_map &map); + void ertictac_arm_map(address_map &map) ATTR_COLD; + void ertictac_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_ioc; diff --git a/src/mame/acorn/riscpc.cpp b/src/mame/acorn/riscpc.cpp index b64d93a06dc..cbf926c9bce 100644 --- a/src/mame/acorn/riscpc.cpp +++ b/src/mame/acorn/riscpc.cpp @@ -60,11 +60,11 @@ class riscpc_state : public driver_device required_device m_i2cmem; required_device m_kbdc; - virtual void machine_reset() override; - virtual void machine_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; - void a7000_map(address_map &map); - void riscpc_map(address_map &map); + void a7000_map(address_map &map) ATTR_COLD; + void riscpc_map(address_map &map) ATTR_COLD; bool m_i2cmem_clock = false; int iocr_od0_r(); diff --git a/src/mame/acorn/ssfindo.cpp b/src/mame/acorn/ssfindo.cpp index d97a511a575..8a02b5c480d 100644 --- a/src/mame/acorn/ssfindo.cpp +++ b/src/mame/acorn/ssfindo.cpp @@ -169,8 +169,8 @@ class ssfindo_state : public driver_device, public device_serial_interface required_device m_qs1000; void init_common(); - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; typedef void (ssfindo_state::*speedup_func)(); speedup_func m_speedup{}; @@ -205,8 +205,8 @@ class ssfindo_state : public driver_device, public device_serial_interface void ssfindo_speedups(); void ppcar_speedups(); - void ppcar_map(address_map &map); - void ssfindo_map(address_map &map); + void ppcar_map(address_map &map) ATTR_COLD; + void ssfindo_map(address_map &map) ATTR_COLD; uint8_t iolines_r(); void iolines_w(uint8_t data); @@ -230,7 +230,7 @@ class tetfight_state : public ssfindo_state private: bool m_i2cdata_hack = false; - void tetfight_map(address_map &map); + void tetfight_map(address_map &map) ATTR_COLD; int iocr_od0_r(); int iocr_od1_r(); diff --git a/src/mame/acorn/upd65031.h b/src/mame/acorn/upd65031.h index cc16b3d5db3..720e938cc3f 100644 --- a/src/mame/acorn/upd65031.h +++ b/src/mame/acorn/upd65031.h @@ -56,8 +56,8 @@ class upd65031_device : public device_t, 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; TIMER_CALLBACK_MEMBER(rtc_tick); TIMER_CALLBACK_MEMBER(flash_tick); diff --git a/src/mame/acorn/z88.h b/src/mame/acorn/z88.h index da130b5b546..4bd43c38878 100644 --- a/src/mame/acorn/z88.h +++ b/src/mame/acorn/z88.h @@ -62,8 +62,8 @@ class z88_state : public driver_device void z88(machine_config &config); private: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; uint8_t kb_r(offs_t offset); UPD65031_MEMORY_UPDATE(bankswitch_update); UPD65031_SCREEN_UPDATE(lcd_update); @@ -76,9 +76,9 @@ class z88_state : public driver_device void z88_palette(palette_device &palette) const; - void z88_io(address_map &map); - void z88_mem(address_map &map); - void z88_map(address_map &map); + void z88_io(address_map &map) ATTR_COLD; + void z88_mem(address_map &map) ATTR_COLD; + void z88_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_nvram; diff --git a/src/mame/acorn/z88_impexp.h b/src/mame/acorn/z88_impexp.h index d67fa5cc1fc..389c3d4d82a 100644 --- a/src/mame/acorn/z88_impexp.h +++ b/src/mame/acorn/z88_impexp.h @@ -25,8 +25,8 @@ class z88_impexp_device : public device_t, virtual void input_dtr(int state) override { m_dtr = state; } protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; // device_serial_interface implementation virtual void tra_callback() override; diff --git a/src/mame/act/apricot.cpp b/src/mame/act/apricot.cpp index 975e1c78c77..09d5c957c7d 100644 --- a/src/mame/act/apricot.cpp +++ b/src/mame/act/apricot.cpp @@ -97,10 +97,10 @@ class apricot_state : public driver_device MC6845_UPDATE_ROW(crtc_update_row); uint32_t screen_update_apricot(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void apricot_io(address_map &map); - void apricot_mem(address_map &map); + void apricot_io(address_map &map) ATTR_COLD; + void apricot_mem(address_map &map) ATTR_COLD; - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; required_device m_cpu; required_device m_iop; diff --git a/src/mame/act/apricotf.cpp b/src/mame/act/apricotf.cpp index 2c73d9f1925..64f7d12f611 100644 --- a/src/mame/act/apricotf.cpp +++ b/src/mame/act/apricotf.cpp @@ -43,7 +43,7 @@ class f1_daisy_device : public device_t, public z80_daisy_chain_interface IRQ_CALLBACK_MEMBER(inta_cb); protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; }; DEFINE_DEVICE_TYPE(F1_DAISY, f1_daisy_device, "f1_daisy", "F1 daisy chain abstraction") @@ -92,7 +92,7 @@ class f1_state : public driver_device private: static void floppy_formats(format_registration &fr); - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; required_device m_maincpu; required_device m_ctc; @@ -124,8 +124,8 @@ class f1_state : public driver_device int m_width80 = 0; int m_lines200 = 0; - void main_io(address_map &map); - void main_map(address_map &map); + void main_io(address_map &map) ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/act/apricotkb.h b/src/mame/act/apricotkb.h index c471f6f825a..88bef6a6226 100644 --- a/src/mame/act/apricotkb.h +++ b/src/mame/act/apricotkb.h @@ -46,16 +46,16 @@ class apricot_keyboard_device : public device_t void kb_y8_w(uint8_t data); void kb_yc_w(uint8_t data); - void apricot_keyboard_io(address_map &map); + void apricot_keyboard_io(address_map &map) ATTR_COLD; 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; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; private: devcb_write_line m_write_txd; diff --git a/src/mame/act/apricotp.cpp b/src/mame/act/apricotp.cpp index cdf1750ecb2..86f704f7236 100644 --- a/src/mame/act/apricotp.cpp +++ b/src/mame/act/apricotp.cpp @@ -119,10 +119,10 @@ class fp_state : public driver_device floppy_image_device *m_floppy; required_device m_centronics; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); MC6845_UPDATE_ROW(update_row); @@ -154,8 +154,8 @@ class fp_state : public driver_device void write_centronics_fault(int state); void write_centronics_perror(int state); - void fp_io(address_map &map); - void fp_mem(address_map &map); + void fp_io(address_map &map) ATTR_COLD; + void fp_mem(address_map &map) ATTR_COLD; }; diff --git a/src/mame/act/apxen.cpp b/src/mame/act/apxen.cpp index f107ed85495..02c3e40bbc2 100644 --- a/src/mame/act/apxen.cpp +++ b/src/mame/act/apxen.cpp @@ -66,7 +66,7 @@ class xen_daisy_device : public device_t, public z80_daisy_chain_interface IRQ_CALLBACK_MEMBER(inta_cb); protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; }; DEFINE_DEVICE_TYPE(XEN_DAISY, xen_daisy_device, "xen_daisy", "Apricot XEN daisy chain abstraction") @@ -127,8 +127,8 @@ class apxen_state : public driver_device void apxen(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; @@ -145,10 +145,10 @@ class apxen_state : public driver_device required_device_array m_floppy; required_device m_video; - void mem_map_base(address_map &map); - void mem_map(address_map &map); - void io_map_base(address_map &map); - void io_map(address_map &map); + void mem_map_base(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; + void io_map_base(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; static void floppy_formats(format_registration &fr); diff --git a/src/mame/act/victor9k.cpp b/src/mame/act/victor9k.cpp index e2d412e1dba..235e70c46db 100644 --- a/src/mame/act/victor9k.cpp +++ b/src/mame/act/victor9k.cpp @@ -148,8 +148,8 @@ class victor9k_state : public driver_device required_memory_region m_rom; required_shared_ptr m_video_ram; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; void via1_pa_w(uint8_t data); void write_nfrd(int state); @@ -201,7 +201,7 @@ class victor9k_state : public driver_device void update_kback(); - void victor9k_mem(address_map &map); + void victor9k_mem(address_map &map) ATTR_COLD; }; diff --git a/src/mame/act/victor9k_fdc.h b/src/mame/act/victor9k_fdc.h index 7cba5749ca0..8e7581a9435 100644 --- a/src/mame/act/victor9k_fdc.h +++ b/src/mame/act/victor9k_fdc.h @@ -44,12 +44,12 @@ class victor_9000_fdc_device : public device_t 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; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; TIMER_CALLBACK_MEMBER(gen_tick); TIMER_CALLBACK_MEMBER(tach0_tick); diff --git a/src/mame/act/victor9k_kb.h b/src/mame/act/victor9k_kb.h index deeb365cd06..319c8bff8f2 100644 --- a/src/mame/act/victor9k_kb.h +++ b/src/mame/act/victor9k_kb.h @@ -35,11 +35,11 @@ class victor_9000_keyboard_device : public device_t protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; private: required_device m_maincpu; diff --git a/src/mame/adc/super6.h b/src/mame/adc/super6.h index 78dc74d2b6a..0281f773b60 100644 --- a/src/mame/adc/super6.h +++ b/src/mame/adc/super6.h @@ -48,8 +48,8 @@ class super6_state : public driver_device void super6(machine_config &config); private: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; uint8_t fdc_r(); void fdc_w(uint8_t data); @@ -63,8 +63,8 @@ class super6_state : public driver_device uint8_t io_read_byte(offs_t offset); void io_write_byte(offs_t offset, uint8_t data); - void super6_io(address_map &map); - void super6_mem(address_map &map); + void super6_io(address_map &map) ATTR_COLD; + void super6_mem(address_map &map) ATTR_COLD; void bankswitch(); diff --git a/src/mame/adc/superslave.cpp b/src/mame/adc/superslave.cpp index 4496e49f5a5..b3454586227 100644 --- a/src/mame/adc/superslave.cpp +++ b/src/mame/adc/superslave.cpp @@ -65,10 +65,10 @@ class superslave_state : public driver_device void superslave(machine_config &config); private: - virtual void machine_start() override; - virtual void machine_reset() override; - void superslave_io(address_map &map); - void superslave_mem(address_map &map); + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + void superslave_io(address_map &map) ATTR_COLD; + void superslave_mem(address_map &map) ATTR_COLD; uint8_t read(offs_t offset); void write(offs_t offset, uint8_t data); diff --git a/src/mame/adds/4000_260.cpp b/src/mame/adds/4000_260.cpp index c12a753457d..4d829f85b3d 100644 --- a/src/mame/adds/4000_260.cpp +++ b/src/mame/adds/4000_260.cpp @@ -47,13 +47,13 @@ class _4000_260_state : public driver_device void _4000_260(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/adds/adds2020.cpp b/src/mame/adds/adds2020.cpp index c21d7a231b6..16dea1d0e1b 100644 --- a/src/mame/adds/adds2020.cpp +++ b/src/mame/adds/adds2020.cpp @@ -48,9 +48,9 @@ class adds2020_state : public driver_device void unknown_0000_w(u8 data); void unknown_9800_w(offs_t offset, u8 data); - void prog_map(address_map &map); - void ext_map(address_map &map); - void char_map(address_map &map); + void prog_map(address_map &map) ATTR_COLD; + void ext_map(address_map &map) ATTR_COLD; + void char_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_epci; diff --git a/src/mame/adds/vp60.cpp b/src/mame/adds/vp60.cpp index a921ca12578..4b0ecdeb225 100644 --- a/src/mame/adds/vp60.cpp +++ b/src/mame/adds/vp60.cpp @@ -34,9 +34,9 @@ class vp60_state : public driver_device u8 crtc_r(offs_t offset); void crtc_w(offs_t offset, u8 data); - void io_map(address_map &map); - void kbd_map(address_map &map); - void mem_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void kbd_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_crtc; diff --git a/src/mame/adp/adp.cpp b/src/mame/adp/adp.cpp index 2a5f62725ae..20d49a8507f 100644 --- a/src/mame/adp/adp.cpp +++ b/src/mame/adp/adp.cpp @@ -193,8 +193,8 @@ class adp_state : public driver_device void skattva(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_microtouch; @@ -216,16 +216,16 @@ class adp_state : public driver_device //INTERRUPT_GEN_MEMBER(adp_int); void skattva_nvram_init(nvram_device &nvram, void *base, size_t size); - void adp_hd63484_map(address_map &map); - void fc7_map(address_map &map); - void fashiong_hd63484_map(address_map &map); - void fstation_hd63484_map(address_map &map); - void fstation_mem(address_map &map); - void funland_mem(address_map &map); - void quickjac_mem(address_map &map); - void ramdac_map(address_map &map); - void skattv_mem(address_map &map); - void skattva_mem(address_map &map); + void adp_hd63484_map(address_map &map) ATTR_COLD; + void fc7_map(address_map &map) ATTR_COLD; + void fashiong_hd63484_map(address_map &map) ATTR_COLD; + void fstation_hd63484_map(address_map &map) ATTR_COLD; + void fstation_mem(address_map &map) ATTR_COLD; + void funland_mem(address_map &map) ATTR_COLD; + void quickjac_mem(address_map &map) ATTR_COLD; + void ramdac_map(address_map &map) ATTR_COLD; + void skattv_mem(address_map &map) ATTR_COLD; + void skattva_mem(address_map &map) ATTR_COLD; }; void adp_state::skattva_nvram_init(nvram_device &nvram, void *base, size_t size) diff --git a/src/mame/adp/manohman.cpp b/src/mame/adp/manohman.cpp index df89fc6a667..06bd88717a4 100644 --- a/src/mame/adp/manohman.cpp +++ b/src/mame/adp/manohman.cpp @@ -156,9 +156,9 @@ class manohman_state : public driver_device void manohman(machine_config &config); private: - virtual void machine_start() override; - void mem_map(address_map &map); - void cpu_space_map(address_map &map); + virtual void machine_start() override ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; + void cpu_space_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_duart; diff --git a/src/mame/adp/stella8085.cpp b/src/mame/adp/stella8085.cpp index 8581f0a094d..cfd78bfb4eb 100644 --- a/src/mame/adp/stella8085.cpp +++ b/src/mame/adp/stella8085.cpp @@ -46,8 +46,8 @@ class stella8085_state : public driver_device private: required_device m_maincpu; - void program_map(address_map &map); - void io_map(address_map &map); + void program_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/adp/stellafr.cpp b/src/mame/adp/stellafr.cpp index be493f95331..77237a4e357 100644 --- a/src/mame/adp/stellafr.cpp +++ b/src/mame/adp/stellafr.cpp @@ -37,8 +37,8 @@ class stellafr_state : public driver_device void duart_output_w(uint8_t data); void ay8910_portb_w(uint8_t data); - void mem_map(address_map &map); - void fc7_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void fc7_map(address_map &map) ATTR_COLD; // devices required_device m_maincpu; diff --git a/src/mame/agat/agat.cpp b/src/mame/agat/agat.cpp index c0c80737656..6f841862723 100644 --- a/src/mame/agat/agat.cpp +++ b/src/mame/agat/agat.cpp @@ -164,8 +164,8 @@ class agat_base_state : public driver_device required_device m_cassette; required_device m_upperbank; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; protected: int m_speaker_state; @@ -213,11 +213,11 @@ class agat7_state : public agat_base_state TIMER_DEVICE_CALLBACK_MEMBER(timer_irq); uint8_t keyb_data_r(); - void agat7_map(address_map &map); - void inhbank_map(address_map &map); + void agat7_map(address_map &map) ATTR_COLD; + void inhbank_map(address_map &map) ATTR_COLD; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: }; @@ -237,11 +237,11 @@ class agat9_state : public agat_base_state TIMER_DEVICE_CALLBACK_MEMBER(timer_irq); uint8_t keyb_data_r(); - void agat9_map(address_map &map); - void inhbank_map(address_map &map); + void agat9_map(address_map &map) ATTR_COLD; + void inhbank_map(address_map &map) ATTR_COLD; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; uint8_t c090_r(offs_t offset); void c090_w(offs_t offset, uint8_t data); diff --git a/src/mame/agat/agat7.h b/src/mame/agat/agat7.h index 77aa67f954a..19367aa8473 100644 --- a/src/mame/agat/agat7.h +++ b/src/mame/agat/agat7.h @@ -37,9 +37,9 @@ class agat7video_device : public device_t, public device_palette_interface void write(offs_t offset, uint8_t data); protected: - 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; virtual u32 palette_entries() const noexcept override { return 16; } diff --git a/src/mame/agat/agat9.h b/src/mame/agat/agat9.h index 2bc11b716f5..7a6ca68f5fc 100644 --- a/src/mame/agat/agat9.h +++ b/src/mame/agat/agat9.h @@ -45,9 +45,9 @@ class agat9video_device : public device_t, public device_palette_interface std::unique_ptr m_hires_artifact_map; protected: - 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; virtual u32 palette_entries() const noexcept override { return 16; } diff --git a/src/mame/agat/agatkeyb.h b/src/mame/agat/agatkeyb.h index e9d2b0a7866..b5df7fd2a10 100644 --- a/src/mame/agat/agatkeyb.h +++ b/src/mame/agat/agatkeyb.h @@ -29,7 +29,7 @@ class agat_keyboard_device : public device_t, protected device_matrix_keyboard_i device_t *owner, u32 clock); - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; auto out_callback() { return m_keyboard_cb.bind(); } auto out_meta_callback() { return m_out_meta_cb.bind(); } @@ -45,8 +45,8 @@ class agat_keyboard_device : public device_t, protected device_matrix_keyboard_i char const *tag, device_t *owner, u32 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 void key_make(u8 row, u8 column) override; virtual void key_repeat(u8 row, u8 column) override; diff --git a/src/mame/akai/akaiax80.cpp b/src/mame/akai/akaiax80.cpp index c52665415cf..d90e13f1927 100644 --- a/src/mame/akai/akaiax80.cpp +++ b/src/mame/akai/akaiax80.cpp @@ -65,9 +65,9 @@ class ax80_state : public driver_device void ax80(machine_config &config); private: - void ax80_map(address_map &map); + void ax80_map(address_map &map) ATTR_COLD; - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; required_device m_maincpu; }; diff --git a/src/mame/akai/akaivx600.cpp b/src/mame/akai/akaivx600.cpp index 3caf84e42b5..b7db4fddf5c 100644 --- a/src/mame/akai/akaivx600.cpp +++ b/src/mame/akai/akaivx600.cpp @@ -30,8 +30,8 @@ class akaivx600_state : public driver_device void vx600(machine_config &config); private: - void main_map(address_map &map); - void sub_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sub_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_subcpu; diff --git a/src/mame/akai/mpc3000.cpp b/src/mame/akai/mpc3000.cpp index b4b22b75974..b2945bb890d 100644 --- a/src/mame/akai/mpc3000.cpp +++ b/src/mame/akai/mpc3000.cpp @@ -107,12 +107,12 @@ class mpc3000_state : public driver_device static void floppies(device_slot_interface &device); - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; - void mpc3000_map(address_map &map); - void mpc3000_io_map(address_map &map); - void mpc3000_sub_map(address_map &map); + void mpc3000_map(address_map &map) ATTR_COLD; + void mpc3000_io_map(address_map &map) ATTR_COLD; + void mpc3000_sub_map(address_map &map) ATTR_COLD; uint16_t dsp_0008_hack_r(); void dsp_0008_hack_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); diff --git a/src/mame/akai/mpc60.cpp b/src/mame/akai/mpc60.cpp index 6a2d7fc4569..0b10f968d39 100644 --- a/src/mame/akai/mpc60.cpp +++ b/src/mame/akai/mpc60.cpp @@ -34,17 +34,17 @@ class mpc60_state : public driver_device void mpc60(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: u8 nvram_r(offs_t offset); void nvram_w(offs_t offset, u8 data); void fdc_tc_w(u8 data); - void mem_map(address_map &map); - void io_map(address_map &map); - void panel_map(address_map &map); - void lcd_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; + void panel_map(address_map &map) ATTR_COLD; + void lcd_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_panelcpu; diff --git a/src/mame/alba/albazg.cpp b/src/mame/alba/albazg.cpp index 5635b77a5a5..c3c4508d7a7 100644 --- a/src/mame/alba/albazg.cpp +++ b/src/mame/alba/albazg.cpp @@ -76,9 +76,9 @@ class albazg_state : public driver_device virtual void yumefuda(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: void vram_w(offs_t offset, uint8_t data); @@ -92,8 +92,8 @@ class albazg_state : public driver_device TILE_GET_INFO_MEMBER(get_tile_info); uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void main_map(address_map &map); - void main_io(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void main_io(address_map &map) ATTR_COLD; tilemap_t *m_tilemap = nullptr; uint8_t m_port_select = 0; diff --git a/src/mame/alba/rmhaihai.cpp b/src/mame/alba/rmhaihai.cpp index ab9192081b3..3f53179d08b 100644 --- a/src/mame/alba/rmhaihai.cpp +++ b/src/mame/alba/rmhaihai.cpp @@ -66,14 +66,14 @@ class rmhaihai_state : public driver_device void ctrl_w(uint8_t data); void adpcm_w(uint8_t data); - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); TILE_GET_INFO_MEMBER(get_bg_tile_info); - void rmhaihai_io_map(address_map &map); - void rmhaihai_map(address_map &map); + void rmhaihai_io_map(address_map &map) ATTR_COLD; + void rmhaihai_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_msm; @@ -109,14 +109,14 @@ class themj_state : public rmhaihai_state void themj(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_memory_bank_array<2> m_cpubank; - void themj_io_map(address_map &map); - void themj_map(address_map &map); + void themj_io_map(address_map &map) ATTR_COLD; + void themj_map(address_map &map) ATTR_COLD; void themj_rombank_w(uint8_t data); }; diff --git a/src/mame/alba/vsmjtria.cpp b/src/mame/alba/vsmjtria.cpp index 464b3d23853..d409745d858 100644 --- a/src/mame/alba/vsmjtria.cpp +++ b/src/mame/alba/vsmjtria.cpp @@ -68,9 +68,9 @@ class vsmjtria_state : public driver_device void init_vsmjtria(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device_array m_cpu; @@ -96,10 +96,10 @@ class vsmjtria_state : public driver_device template void colorram_w(offs_t offset, uint8_t data); template uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void main_prg_map(address_map &map); - void main_io_map(address_map &map); - void sub_prg_map(address_map &map); - void sub_io_map(address_map &map); + void main_prg_map(address_map &map) ATTR_COLD; + void main_io_map(address_map &map) ATTR_COLD; + void sub_prg_map(address_map &map) ATTR_COLD; + void sub_io_map(address_map &map) ATTR_COLD; }; /* diff --git a/src/mame/alesis/alesis.h b/src/mame/alesis/alesis.h index 8c83ce13fc3..ae182f1f861 100644 --- a/src/mame/alesis/alesis.h +++ b/src/mame/alesis/alesis.h @@ -32,9 +32,9 @@ class alesis_dm3ag_device : public device_t protected: // device-level overrides - 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; TIMER_CALLBACK_MEMBER(dac_update); @@ -132,8 +132,8 @@ class alesis_state : public driver_device protected: void alesis_palette(palette_device &palette) const; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; void update_lcd_symbols(bitmap_ind16 &bitmap, uint8_t pos, uint8_t y, uint8_t x, int state); void led_w(uint8_t data); @@ -149,11 +149,11 @@ class alesis_state : public driver_device void sr16_lcd_w(uint8_t data); HD44780_PIXEL_UPDATE(sr16_pixel_update); - void hr16_io(address_map &map); - void hr16_mem(address_map &map); - void mmt8_io(address_map &map); - void sr16_io(address_map &map); - void sr16_mem(address_map &map); + void hr16_io(address_map &map) ATTR_COLD; + void hr16_mem(address_map &map) ATTR_COLD; + void mmt8_io(address_map &map) ATTR_COLD; + void sr16_io(address_map &map) ATTR_COLD; + void sr16_mem(address_map &map) ATTR_COLD; private: uint8_t m_kb_matrix = 0; diff --git a/src/mame/alliedleisure/ace.cpp b/src/mame/alliedleisure/ace.cpp index 519ca6fcd54..9440d357738 100644 --- a/src/mame/alliedleisure/ace.cpp +++ b/src/mame/alliedleisure/ace.cpp @@ -72,12 +72,12 @@ class aceal_state : public driver_device void ace_characterram_w(offs_t offset, uint8_t data); void ace_scoreram_w(offs_t offset, uint8_t data); uint8_t unk_r(); - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; uint32_t screen_update_ace(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void ace_postload(); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; required_device m_maincpu; diff --git a/src/mame/alliedleisure/aleisttl.cpp b/src/mame/alliedleisure/aleisttl.cpp index 7f88bac4964..4acaab2a7da 100644 --- a/src/mame/alliedleisure/aleisttl.cpp +++ b/src/mame/alliedleisure/aleisttl.cpp @@ -64,10 +64,10 @@ class sburners_state : public driver_device protected: // driver_device overrides - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: // devices diff --git a/src/mame/alliedleisure/aztarac.cpp b/src/mame/alliedleisure/aztarac.cpp index 4308b52d742..3d3dc1312a6 100644 --- a/src/mame/alliedleisure/aztarac.cpp +++ b/src/mame/alliedleisure/aztarac.cpp @@ -50,9 +50,9 @@ class aztarac_state : public driver_device void aztarac(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -84,8 +84,8 @@ class aztarac_state : public driver_device INTERRUPT_GEN_MEMBER(snd_timed_irq); inline void read_vectorram(int addr, int *x, int *y, int *c); - void main_map(address_map &map); - void sound_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/alliedleisure/clayshoo.cpp b/src/mame/alliedleisure/clayshoo.cpp index 94e984523a9..9b10e0dec45 100644 --- a/src/mame/alliedleisure/clayshoo.cpp +++ b/src/mame/alliedleisure/clayshoo.cpp @@ -37,8 +37,8 @@ class clayshoo_state : public driver_device void clayshoo(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; @@ -53,8 +53,8 @@ class clayshoo_state : public driver_device uint8_t difficulty_input_port_r(int bit); void create_analog_timers(); - void main_io_map(address_map &map); - void main_map(address_map &map); + void main_io_map(address_map &map) ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; emu_timer *m_analog_timer_1 = nullptr, *m_analog_timer_2 = nullptr; uint8_t m_input_port_select = 0; diff --git a/src/mame/alliedleisure/killcom.h b/src/mame/alliedleisure/killcom.h index 5e1bd2ae8df..a2519e5d6d0 100644 --- a/src/mame/alliedleisure/killcom.h +++ b/src/mame/alliedleisure/killcom.h @@ -35,9 +35,9 @@ class killcom_state : public driver_device void piratetr(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; required_device m_maincpu; required_device_array m_via; @@ -85,8 +85,8 @@ class killcom_state : public driver_device TIMER_CALLBACK_MEMBER(hblank_callback); uint8_t leprechn_videoram_r(); - void killcom_main_map(address_map &map); - void killcom_audio_map(address_map &map); - void leprechn_audio_map(address_map &map); - void piratetr_main_map(address_map &map); + void killcom_main_map(address_map &map) ATTR_COLD; + void killcom_audio_map(address_map &map) ATTR_COLD; + void leprechn_audio_map(address_map &map) ATTR_COLD; + void piratetr_main_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/alliedleisure/trvquest.cpp b/src/mame/alliedleisure/trvquest.cpp index 9ed8363d442..18e8a9a81dd 100644 --- a/src/mame/alliedleisure/trvquest.cpp +++ b/src/mame/alliedleisure/trvquest.cpp @@ -64,14 +64,14 @@ class trvquest_state : public killcom_state void trvquest(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_memory_bank m_bank; void bankswitch_w(uint8_t data); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/alpha/ad_sound.h b/src/mame/alpha/ad_sound.h index 4234f72c3eb..0ac0d71aa57 100644 --- a/src/mame/alpha/ad_sound.h +++ b/src/mame/alpha/ad_sound.h @@ -41,9 +41,9 @@ class ad_59mc07_device : public device_t protected: // device level overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: required_device m_audiocpu; @@ -67,8 +67,8 @@ class ad_59mc07_device : public device_t float m_hihatvol; emu_timer *m_adjuster_timer; - void sound_map(address_map &map); - void sound_portmap(address_map &map); + void sound_map(address_map &map) ATTR_COLD; + void sound_portmap(address_map &map) ATTR_COLD; void c0f8_w(offs_t offset, uint8_t data); void cymbal_ctrl_w(uint8_t data); @@ -114,16 +114,16 @@ class ad_60mc01_device : public device_t protected: // device level overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: required_device m_audiocpu; required_device m_soundlatch; - void sound_map(address_map &map); - void sound_portmap(address_map &map); + void sound_map(address_map &map) ATTR_COLD; + void sound_portmap(address_map &map) ATTR_COLD; INTERRUPT_GEN_MEMBER(sound_irq) { m_audiocpu->set_input_line(0, HOLD_LINE); } }; diff --git a/src/mame/alpha/alpha68k.h b/src/mame/alpha/alpha68k.h index dfb485caa83..7e326367166 100644 --- a/src/mame/alpha/alpha68k.h +++ b/src/mame/alpha/alpha68k.h @@ -126,9 +126,9 @@ class alpha68k_II_state : public alpha68k_state DECLARE_MACHINE_START(alpha68k_II); DECLARE_MACHINE_RESET(alpha68k_II); void video_bank_w(u8 data); - void alpha68k_II_map(address_map &map); - void sound_map(address_map &map); - void sound_portmap(address_map &map); + void alpha68k_II_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; + void sound_portmap(address_map &map) ATTR_COLD; u16 alpha_II_trigger_r(offs_t offset); @@ -170,8 +170,8 @@ class alpha68k_III_state : public alpha68k_II_state protected: DECLARE_MACHINE_START(alpha68k_V); DECLARE_MACHINE_RESET(alpha68k_V); - void alpha68k_III_map(address_map &map); - void alpha68k_V_map(address_map &map); + void alpha68k_III_map(address_map &map) ATTR_COLD; + void alpha68k_V_map(address_map &map) ATTR_COLD; u16 alpha_V_trigger_r(offs_t offset); }; @@ -255,7 +255,7 @@ class alpha68k_N_state : public alpha68k_prom_state {} protected: - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; void base_config(machine_config &config); void video_config(machine_config &config, u8 tile_transchar, u8 tile_bankshift, bool is_super_stingray); @@ -264,8 +264,8 @@ class alpha68k_N_state : public alpha68k_prom_state u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); u16 kyros_alpha_trigger_r(offs_t offset); - void sound_map(address_map &map); - void sound_iomap(address_map &map); + void sound_map(address_map &map) ATTR_COLD; + void sound_iomap(address_map &map) ATTR_COLD; private: u16 m_tile_transchar = 0U; @@ -294,8 +294,8 @@ class sstingray_state : public alpha68k_N_state u8 alpha8511_rw_r(); void alpha8511_control_w(u8 data); - void main_map(address_map &map); - void sound_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; required_device m_alpha8511; u8 m_alpha8511_address = 0U; @@ -327,9 +327,9 @@ class jongbou_state : public alpha68k_N_state void init_jongbou2(); private: - void main_map(address_map &map); - void sound_map(address_map &map); - void sound_iomap(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; + void sound_iomap(address_map &map) ATTR_COLD; u16 dial_inputs_r(); }; @@ -366,8 +366,8 @@ class paddlemania_state : public alpha68k_I_state void init_paddlema(); private: - void main_map(address_map &map); - void sound_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; }; class thenextspace_state : public alpha68k_I_state @@ -381,9 +381,9 @@ class thenextspace_state : public alpha68k_I_state void init_tnextspc(); private: - void main_map(address_map &map); - void sound_map(address_map &map); - void sound_iomap(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; + void sound_iomap(address_map &map) ATTR_COLD; void tnextspc_coin_counters_w(offs_t offset, u16 data); void tnextspc_unknown_w(offs_t offset, u16 data); diff --git a/src/mame/alpha/alpha8201.h b/src/mame/alpha/alpha8201.h index b7705094ff1..7076e62d6b6 100644 --- a/src/mame/alpha/alpha8201.h +++ b/src/mame/alpha/alpha8201.h @@ -25,9 +25,9 @@ class alpha_8201_device : public device_t protected: // device-level overrides - 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; private: // devices/pointers diff --git a/src/mame/alpha/champbas.cpp b/src/mame/alpha/champbas.cpp index 488dfa847ba..ad6562b0b7f 100644 --- a/src/mame/alpha/champbas.cpp +++ b/src/mame/alpha/champbas.cpp @@ -145,17 +145,17 @@ class champbas_state : public driver_device uint32_t screen_update_champbas(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void champbas_draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); - virtual void machine_start() override; - virtual void video_start() override; - - void champbas_map(address_map &map); - void champbasj_map(address_map &map); - void champbasja_map(address_map &map); - void champbasjb_map(address_map &map); - void champbb2_map(address_map &map); - void champbb2j_map(address_map &map); - void tbasebal_map(address_map &map); - void champbas_sound_map(address_map &map); + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; + + void champbas_map(address_map &map) ATTR_COLD; + void champbasj_map(address_map &map) ATTR_COLD; + void champbasja_map(address_map &map) ATTR_COLD; + void champbasjb_map(address_map &map) ATTR_COLD; + void champbb2_map(address_map &map) ATTR_COLD; + void champbb2j_map(address_map &map) ATTR_COLD; + void tbasebal_map(address_map &map) ATTR_COLD; + void champbas_sound_map(address_map &map) ATTR_COLD; // devices, memory pointers required_device m_maincpu; @@ -201,13 +201,13 @@ class exctsccr_state : public champbas_state void exctsccr_draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; - void exctsccr_map(address_map &map); - void exctsccrb_map(address_map &map); - void exctsccr_sound_map(address_map &map); - void exctsccr_sound_io_map(address_map &map); - void exctscc2_sound_io_map(address_map &map); + void exctsccr_map(address_map &map) ATTR_COLD; + void exctsccrb_map(address_map &map) ATTR_COLD; + void exctsccr_sound_map(address_map &map) ATTR_COLD; + void exctsccr_sound_io_map(address_map &map) ATTR_COLD; + void exctscc2_sound_io_map(address_map &map) ATTR_COLD; private: required_device m_audiocpu; diff --git a/src/mame/alpha/equites.cpp b/src/mame/alpha/equites.cpp index 5a2835fdbc2..9df95f6249d 100644 --- a/src/mame/alpha/equites.cpp +++ b/src/mame/alpha/equites.cpp @@ -372,8 +372,8 @@ class equites_state : public driver_device memory_share_creator m_fg_videoram; required_shared_ptr m_spriteram; - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; uint16_t spriteram_kludge_r(); uint8_t fg_videoram_r(offs_t offset); @@ -391,9 +391,9 @@ class equites_state : public driver_device void unpack_block(const char *region, int offset, int size); void unpack_region(const char *region); - void bngotime_map(address_map &map); - void equites_map(address_map &map); - void common_map(address_map &map); + void bngotime_map(address_map &map) ATTR_COLD; + void equites_map(address_map &map) ATTR_COLD; + void common_map(address_map &map) ATTR_COLD; tilemap_t *m_fg_tilemap = nullptr; tilemap_t *m_bg_tilemap = nullptr; @@ -412,10 +412,10 @@ class gekisou_state : public equites_state void gekisou(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: - void gekisou_map(address_map &map); + void gekisou_map(address_map &map) ATTR_COLD; void unknown_bit_w(offs_t offset, uint16_t data); int m_unknown_bit = 0; diff --git a/src/mame/alpha/meijinsn.cpp b/src/mame/alpha/meijinsn.cpp index d653714e023..eb5063e8dc8 100644 --- a/src/mame/alpha/meijinsn.cpp +++ b/src/mame/alpha/meijinsn.cpp @@ -94,8 +94,8 @@ class meijinsn_state : public driver_device void meijinsn(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: uint16_t alpha_mcu_r(offs_t offset); @@ -103,9 +103,9 @@ class meijinsn_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); TIMER_DEVICE_CALLBACK_MEMBER(interrupt); - void main_map(address_map &map); - void sound_io_map(address_map &map); - void sound_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_io_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_shared_ptr m_videoram; diff --git a/src/mame/alpha/shougi.cpp b/src/mame/alpha/shougi.cpp index 4663d5d5687..608ecc5e82d 100644 --- a/src/mame/alpha/shougi.cpp +++ b/src/mame/alpha/shougi.cpp @@ -115,10 +115,10 @@ class shougi_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); INTERRUPT_GEN_MEMBER(vblank_nmi); - virtual void machine_start() override; - void main_map(address_map &map); - void readport_sub(address_map &map); - void sub_map(address_map &map); + virtual void machine_start() override ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; + void readport_sub(address_map &map) ATTR_COLD; + void sub_map(address_map &map) ATTR_COLD; // devices/pointers required_device m_maincpu; diff --git a/src/mame/alpha/splendor.cpp b/src/mame/alpha/splendor.cpp index a05f7f2162c..9aa411f0197 100644 --- a/src/mame/alpha/splendor.cpp +++ b/src/mame/alpha/splendor.cpp @@ -101,8 +101,8 @@ class splendor_state : public driver_device void splndrbt(machine_config &config); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: // devices @@ -134,7 +134,7 @@ class splendor_state : public driver_device void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); void copy_bg(bitmap_ind16 &dst_bitmap, const rectangle &cliprect); - void splndrbt_map(address_map &map); + void splndrbt_map(address_map &map) ATTR_COLD; void unpack_block(const char *region, int offset, int size); void unpack_region(const char *region); diff --git a/src/mame/altos/acs8600_ics.h b/src/mame/altos/acs8600_ics.h index 46b15923abf..4126075e439 100644 --- a/src/mame/altos/acs8600_ics.h +++ b/src/mame/altos/acs8600_ics.h @@ -18,19 +18,19 @@ class acs8600_ics_device : public device_t auto irq1_callback() { return m_out_irq1_func.bind(); } auto irq2_callback() { return m_out_irq2_func.bind(); } template void set_host_space(T &&tag, int index) { m_host_space.set_tag(std::forward(tag), index); } - const tiny_rom_entry *device_rom_region() const override; + const tiny_rom_entry *device_rom_region() const override ATTR_COLD; protected: - 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; void hiaddr_w(u8 data); void ctrl_w(u8 data); u8 hostram_r(offs_t offset); void hostram_w(offs_t offset, u8 data); - void ics_io(address_map &map); - void ics_mem(address_map &map); + void ics_io(address_map &map) ATTR_COLD; + void ics_mem(address_map &map) ATTR_COLD; private: required_device m_icscpu; diff --git a/src/mame/altos/altos2.cpp b/src/mame/altos/altos2.cpp index 22bed006c2e..8a5eeafbe6b 100644 --- a/src/mame/altos/altos2.cpp +++ b/src/mame/altos/altos2.cpp @@ -53,9 +53,9 @@ class altos2_state : public driver_device u32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - virtual void machine_reset() override; - void io_map(address_map &map); - void mem_map(address_map &map); + virtual void machine_reset() override ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_novram; diff --git a/src/mame/altos/altos2_kbd.h b/src/mame/altos/altos2_kbd.h index de2c4549107..1346d4ae5a6 100644 --- a/src/mame/altos/altos2_kbd.h +++ b/src/mame/altos/altos2_kbd.h @@ -34,11 +34,11 @@ class altos2_keyboard_device : public device_t protected: // device-level overrides - virtual void device_resolve_objects() override; - virtual void device_start() override; - virtual ioport_constructor device_input_ports() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual const tiny_rom_entry *device_rom_region() const override; + virtual void device_resolve_objects() override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual ioport_constructor device_input_ports() const 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; private: // MCU handlers @@ -48,7 +48,7 @@ class altos2_keyboard_device : public device_t void prog_w(int state); // address maps - void ext_map(address_map &map); + void ext_map(address_map &map) ATTR_COLD; // object finders required_device m_mcu; diff --git a/src/mame/altos/altos486.cpp b/src/mame/altos/altos486.cpp index 962ab4f16f1..597e9fcb180 100644 --- a/src/mame/altos/altos486.cpp +++ b/src/mame/altos/altos486.cpp @@ -38,10 +38,10 @@ class altos486_state : public driver_device void mmu_ram_w(offs_t offset, uint16_t data); void mmu_io_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); - void altos486_io(address_map &map); - void altos486_mem(address_map &map); - void altos486_z80_io(address_map &map); - void altos486_z80_mem(address_map &map); + void altos486_io(address_map &map) ATTR_COLD; + void altos486_mem(address_map &map) ATTR_COLD; + void altos486_z80_io(address_map &map) ATTR_COLD; + void altos486_z80_mem(address_map &map) ATTR_COLD; required_device m_maincpu; required_shared_ptr m_ram; diff --git a/src/mame/altos/altos5.cpp b/src/mame/altos/altos5.cpp index a927b99da0e..53faa360f91 100644 --- a/src/mame/altos/altos5.cpp +++ b/src/mame/altos/altos5.cpp @@ -47,8 +47,8 @@ class altos5_state : public driver_device void altos5(machine_config &config); protected: - virtual void machine_reset() override; - virtual void machine_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; private: DECLARE_QUICKLOAD_LOAD_MEMBER(quickload_cb); @@ -66,8 +66,8 @@ class altos5_state : public driver_device void busreq_w(int state); void fdc_intrq_w(int state); - void io_map(address_map &map); - void mem_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; uint8_t m_port08 = 0U; uint8_t m_port09 = 0U; diff --git a/src/mame/altos/altos586.cpp b/src/mame/altos/altos586.cpp index b495a342951..9eadb40b6ce 100644 --- a/src/mame/altos/altos586.cpp +++ b/src/mame/altos/altos586.cpp @@ -101,19 +101,19 @@ class altos586_mmu_device : public device_t, public device_memory_interface protected: // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_memory_interface implementation virtual space_config_vector memory_space_config() const override; private: // Managed memory access from the bus (IOP and HDC) - void bus_mem(address_map &map); + void bus_mem(address_map &map) ATTR_COLD; u16 bus_mem_r(offs_t offset, u16 mem_mask); void bus_mem_w(offs_t offset, u16 data, u16 mem_mask); // Managed I/O access from the bus (IOP and HDC) - void bus_io(address_map &map); + void bus_io(address_map &map) ATTR_COLD; u16 bus_io_r(offs_t offset, u16 mem_mask); void bus_io_w(offs_t offset, u16 data, u16 mem_mask); @@ -395,7 +395,7 @@ class altos586_state : public driver_device, public device_memory_interface { protected: // driver_device implementation - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; // device_memory_interface implementation virtual space_config_vector memory_space_config() const override; diff --git a/src/mame/altos/altos586_hdc.h b/src/mame/altos/altos586_hdc.h index a16a4fc8fff..c1354bd9809 100644 --- a/src/mame/altos/altos586_hdc.h +++ b/src/mame/altos/altos586_hdc.h @@ -34,12 +34,12 @@ class altos586_hdc_device : public device_t void attn_w(uint16_t data); protected: - 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; - void altos586_hdc_io(address_map &map); - void altos586_hdc_mem(address_map &map); + void altos586_hdc_io(address_map &map) ATTR_COLD; + void altos586_hdc_mem(address_map &map) ATTR_COLD; private: // Disk controller registers on IOP's I/O bus. diff --git a/src/mame/altos/altos8600.cpp b/src/mame/altos/altos8600.cpp index 80414d9bfcf..442cd43c31a 100644 --- a/src/mame/altos/altos8600.cpp +++ b/src/mame/altos/altos8600.cpp @@ -74,15 +74,15 @@ class altos8600_state : public driver_device void ics_attn_w(offs_t offset, u8 data); IRQ_CALLBACK_MEMBER(inta); - virtual void machine_start() override; - virtual void machine_reset() override; - void code_mem(address_map &map); - void cpu_io(address_map &map); - void cpu_mem(address_map &map); - void dmac_io(address_map &map); - void dmac_mem(address_map &map); - void extra_mem(address_map &map); - void stack_mem(address_map &map); + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + void code_mem(address_map &map) ATTR_COLD; + void cpu_io(address_map &map) ATTR_COLD; + void cpu_mem(address_map &map) ATTR_COLD; + void dmac_io(address_map &map) ATTR_COLD; + void dmac_mem(address_map &map) ATTR_COLD; + void extra_mem(address_map &map) ATTR_COLD; + void stack_mem(address_map &map) ATTR_COLD; u16 xlate_r(offs_t offset, u16 mem_mask, int permbit); void xlate_w(offs_t offset, u16 data, u16 mem_mask, int permbit); diff --git a/src/mame/amiga/alg.cpp b/src/mame/amiga/alg.cpp index 74eb266fd70..e57d41f8e41 100644 --- a/src/mame/amiga/alg.cpp +++ b/src/mame/amiga/alg.cpp @@ -103,11 +103,11 @@ class alg_state : public amiga_state DECLARE_VIDEO_START(alg); - void a500_mem(address_map &map); - void main_map_picmatic(address_map &map); - void main_map_r1(address_map &map); - void main_map_r2(address_map &map); - void overlay_512kb_map(address_map &map); + void a500_mem(address_map &map) ATTR_COLD; + void main_map_picmatic(address_map &map) ATTR_COLD; + void main_map_r1(address_map &map) ATTR_COLD; + void main_map_r2(address_map &map) ATTR_COLD; + void overlay_512kb_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/amiga/amiga.cpp b/src/mame/amiga/amiga.cpp index 7e966189393..796d47a0754 100644 --- a/src/mame/amiga/amiga.cpp +++ b/src/mame/amiga/amiga.cpp @@ -241,13 +241,13 @@ class a1000_state : public amiga_state void a1000(machine_config &config); void a1000n(machine_config &config); - void a1000_bootrom_map(address_map &map); - void a1000_mem(address_map &map); - void a1000_overlay_map(address_map &map); + void a1000_bootrom_map(address_map &map) ATTR_COLD; + void a1000_mem(address_map &map) ATTR_COLD; + void a1000_overlay_map(address_map &map) ATTR_COLD; protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_bootrom; @@ -277,10 +277,10 @@ class a2000_state : public amiga_state void a2000(machine_config &config); void a2000n(machine_config &config); - void a2000_mem(address_map &map); + void a2000_mem(address_map &map) ATTR_COLD; protected: - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; // amiga_state overrides virtual bool int2_pending() override; @@ -314,10 +314,10 @@ class a500_state : public amiga_state void a500n(machine_config &config); void a500(machine_config &config); - void a500_mem(address_map &map); + void a500_mem(address_map &map) ATTR_COLD; protected: - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; // amiga_state overrides virtual bool int2_pending() override; @@ -360,12 +360,12 @@ class cdtv_state : public amiga_state void cdtv(machine_config &config); void cdtvn(machine_config &config); - void cdtv_mem(address_map &map); - void cdtv_rc_mem(address_map &map); + void cdtv_mem(address_map &map) ATTR_COLD; + void cdtv_rc_mem(address_map &map) ATTR_COLD; protected: // driver_device overrides - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; // amiga_state overrides virtual bool int2_pending() override; @@ -400,7 +400,7 @@ class a3000_state : public amiga_state void a3000(machine_config &config); void a3000n(machine_config &config); - void a3000_mem(address_map &map); + void a3000_mem(address_map &map) ATTR_COLD; protected: @@ -426,10 +426,10 @@ class a500p_state : public amiga_state void a500pn(machine_config &config); void a500p(machine_config &config); - void a500p_mem(address_map &map); + void a500p_mem(address_map &map) ATTR_COLD; protected: - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; // amiga_state overrides virtual bool int2_pending() override; @@ -465,7 +465,7 @@ class a600_state : public amiga_state void a600n(machine_config &config); void a600(machine_config &config); - void a600_mem(address_map &map); + void a600_mem(address_map &map) ATTR_COLD; protected: // amiga_state overrides @@ -500,7 +500,7 @@ class a1200_state : public amiga_state void a1200(machine_config &config); void a1200n(machine_config &config); - void a1200_mem(address_map &map); + void a1200_mem(address_map &map) ATTR_COLD; protected: // amiga_state overrides @@ -545,9 +545,9 @@ class a4000_state : public amiga_state void a4000n(machine_config &config); void a4000(machine_config &config); void a400030(machine_config &config); - void a400030_mem(address_map &map); - void a4000_mem(address_map &map); - void a4000t_mem(address_map &map); + void a400030_mem(address_map &map) ATTR_COLD; + void a4000_mem(address_map &map) ATTR_COLD; + void a4000t_mem(address_map &map) ATTR_COLD; protected: @@ -590,7 +590,7 @@ class cd32_state : public amiga_state void cd32n(machine_config &config); void cd32(machine_config &config); - void cd32_mem(address_map &map); + void cd32_mem(address_map &map) ATTR_COLD; protected: // amiga_state overrides diff --git a/src/mame/amiga/amiga.h b/src/mame/amiga/amiga.h index 517bd85d3f2..649d91cda90 100644 --- a/src/mame/amiga/amiga.h +++ b/src/mame/amiga/amiga.h @@ -511,11 +511,11 @@ class amiga_state : public driver_device void amiga_base(machine_config &config); void pal_video(machine_config &config); void ntsc_video(machine_config &config); - void overlay_1mb_map(address_map &map); - void overlay_1mb_map32(address_map &map); - void overlay_2mb_map16(address_map &map); - void overlay_2mb_map32(address_map &map); - void overlay_512kb_map(address_map &map); + void overlay_1mb_map(address_map &map) ATTR_COLD; + void overlay_1mb_map32(address_map &map) ATTR_COLD; + void overlay_2mb_map16(address_map &map) ATTR_COLD; + void overlay_2mb_map32(address_map &map) ATTR_COLD; + void overlay_512kb_map(address_map &map) ATTR_COLD; protected: // A bit of a trick here: some registers are 32-bit. In order to efficiently // read them on both big-endian and little-endian systems, we store the custom @@ -554,8 +554,8 @@ class amiga_state : public driver_device bool IS_AGA() const { return m_denise_id == 0xf8; } // driver_device overrides - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; void custom_chip_reset(); @@ -615,9 +615,9 @@ class amiga_state : public driver_device uint16_t m_custom_regs[256]{}; static const char *const s_custom_reg_names[0x100]; - void ocs_map(address_map &map); - void ecs_map(address_map &map); - void aga_map(address_map &map); + void ocs_map(address_map &map) ATTR_COLD; + void ecs_map(address_map &map) ATTR_COLD; + void aga_map(address_map &map) ATTR_COLD; // TODO: move to Agnus/Alice u16 vposr_r(); diff --git a/src/mame/amiga/arsystems.cpp b/src/mame/amiga/arsystems.cpp index 4f8de48a7e1..50561191b31 100644 --- a/src/mame/amiga/arsystems.cpp +++ b/src/mame/amiga/arsystems.cpp @@ -94,7 +94,7 @@ class arcadia_amiga_state : public amiga_state DECLARE_INPUT_CHANGED_MEMBER(coin_changed_callback); protected: - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; void arcadia_multibios_change_game(uint16_t data); void arcadia_cia_0_portb_w(uint8_t data); @@ -102,10 +102,10 @@ class arcadia_amiga_state : public amiga_state private: inline void generic_decode(const char *tag, int bit7, int bit6, int bit5, int bit4, int bit3, int bit2, int bit1, int bit0); - void a500_mem(address_map &map); - void arcadia_map(address_map &map); - void argh_map(address_map &map); - void overlay_512kb_map(address_map &map); + void a500_mem(address_map &map) ATTR_COLD; + void arcadia_map(address_map &map) ATTR_COLD; + void argh_map(address_map &map) ATTR_COLD; + void overlay_512kb_map(address_map &map) ATTR_COLD; optional_memory_region m_bios_region, m_rom_board; diff --git a/src/mame/amiga/cubo.cpp b/src/mame/amiga/cubo.cpp index 981411dc6a4..ffb9da5dc7f 100644 --- a/src/mame/amiga/cubo.cpp +++ b/src/mame/amiga/cubo.cpp @@ -366,8 +366,8 @@ class cubo_state : public amiga_state uint16_t m_potgo_value = 0; void cubo(machine_config &config); - void cubo_mem(address_map &map); - void overlay_2mb_map32(address_map &map); + void cubo_mem(address_map &map) ATTR_COLD; + void overlay_2mb_map32(address_map &map) ATTR_COLD; protected: virtual void rs232_tx(int state) override; virtual void potgo_w(uint16_t data) override; diff --git a/src/mame/amiga/mquake.cpp b/src/mame/amiga/mquake.cpp index 0dcb485438b..89c31f715ba 100644 --- a/src/mame/amiga/mquake.cpp +++ b/src/mame/amiga/mquake.cpp @@ -65,10 +65,10 @@ class mquake_state : public amiga_state uint16_t coin_chip_r(offs_t offset, uint16_t mem_mask = ~0); void coin_chip_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); - void a500_mem(address_map &map); - void main_map(address_map &map); - void mquake_es5503_map(address_map &map); - void overlay_512kb_map(address_map &map); + void a500_mem(address_map &map) ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; + void mquake_es5503_map(address_map &map) ATTR_COLD; + void overlay_512kb_map(address_map &map) ATTR_COLD; required_device m_es5503; required_region_ptr m_es5503_rom; diff --git a/src/mame/amiga/upscope.cpp b/src/mame/amiga/upscope.cpp index 03c7a44b642..76159f14cbd 100644 --- a/src/mame/amiga/upscope.cpp +++ b/src/mame/amiga/upscope.cpp @@ -73,11 +73,11 @@ class upscope_state : public amiga_state void coin_counter_w(uint8_t data); - void a500_mem(address_map &map); - void main_map(address_map &map); - void overlay_512kb_map(address_map &map); + void a500_mem(address_map &map) ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; + void overlay_512kb_map(address_map &map) ATTR_COLD; - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; required_device m_ppi; }; diff --git a/src/mame/amirix/wxstar4000.cpp b/src/mame/amirix/wxstar4000.cpp index b62d08c51c6..43b18945510 100644 --- a/src/mame/amirix/wxstar4000.cpp +++ b/src/mame/amirix/wxstar4000.cpp @@ -91,18 +91,18 @@ class wxstar4k_state : public driver_device private: uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void cpubd_main(address_map &map); - void vidbd_main(address_map &map); - void vidbd_sub(address_map &map); - void vidbd_sub_io(address_map &map); - void databd_main(address_map &map); - void databd_main_io(address_map &map); - void iobd_main(address_map &map); - void iobd_main_io(address_map &map); - - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + void cpubd_main(address_map &map) ATTR_COLD; + void vidbd_main(address_map &map) ATTR_COLD; + void vidbd_sub(address_map &map) ATTR_COLD; + void vidbd_sub_io(address_map &map) ATTR_COLD; + void databd_main(address_map &map) ATTR_COLD; + void databd_main_io(address_map &map) ATTR_COLD; + void iobd_main(address_map &map) ATTR_COLD; + void iobd_main_io(address_map &map) ATTR_COLD; + + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; optional_device m_maincpu, m_gfxcpu; optional_device m_gfxsubcpu, m_datacpu, m_iocpu; diff --git a/src/mame/ampex/ampex.cpp b/src/mame/ampex/ampex.cpp index 96a860acb7c..697df57bd31 100644 --- a/src/mame/ampex/ampex.cpp +++ b/src/mame/ampex/ampex.cpp @@ -62,9 +62,9 @@ class ampex_state : public driver_device void so_w(int state); void dav_w(int state); - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; u8 m_page = 0; u8 m_attr = 0; diff --git a/src/mame/ampex/ampex210.cpp b/src/mame/ampex/ampex210.cpp index 38ec0254a45..df0efd51841 100644 --- a/src/mame/ampex/ampex210.cpp +++ b/src/mame/ampex/ampex210.cpp @@ -45,12 +45,12 @@ class ampex210_state : public driver_device u8 modem_r(); void modem_w(u8 data); - void ampex210_mem(address_map &map); - void ampex230_mem(address_map &map); - void ampex210_io(address_map &map); - void ampex230_io(address_map &map); - void vram_map(address_map &map); - void vram2_map(address_map &map); + void ampex210_mem(address_map &map) ATTR_COLD; + void ampex230_mem(address_map &map) ATTR_COLD; + void ampex210_io(address_map &map) ATTR_COLD; + void ampex230_io(address_map &map) ATTR_COLD; + void vram_map(address_map &map) ATTR_COLD; + void vram2_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_region_ptr m_chargen; diff --git a/src/mame/ampex/ampex210_kbd.h b/src/mame/ampex/ampex210_kbd.h index 88ec18bc671..3224d66a50a 100644 --- a/src/mame/ampex/ampex210_kbd.h +++ b/src/mame/ampex/ampex210_kbd.h @@ -23,10 +23,10 @@ class ampex230_keyboard_device : public device_t protected: // device_t implementation - virtual void device_add_mconfig(machine_config &config) override; - virtual const tiny_rom_entry *device_rom_region() const override; - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; private: // MCU port handlers diff --git a/src/mame/ampro/ampro.cpp b/src/mame/ampro/ampro.cpp index d720153c3b1..59f0f362b95 100644 --- a/src/mame/ampro/ampro.cpp +++ b/src/mame/ampro/ampro.cpp @@ -63,11 +63,11 @@ class ampro_state : public driver_device uint8_t dart_r(offs_t offset); void ctc_w(offs_t offset, uint8_t data); void dart_w(offs_t offset, uint8_t data); - void machine_reset() override; - void machine_start() override; + void machine_reset() override ATTR_COLD; + void machine_start() override ATTR_COLD; - void io_map(address_map &map); - void mem_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_region_ptr m_rom; diff --git a/src/mame/ampro/lb186.cpp b/src/mame/ampro/lb186.cpp index 75baedd843d..1ed8c42b644 100644 --- a/src/mame/ampro/lb186.cpp +++ b/src/mame/ampro/lb186.cpp @@ -33,8 +33,8 @@ class lb186_state : public driver_device void drive_sel_w(uint8_t data); static void floppy_formats(format_registration &fr); static void ncr5380(device_t *device); - void lb186_io(address_map &map); - void lb186_map(address_map &map); + void lb186_io(address_map &map) ATTR_COLD; + void lb186_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_fdc; diff --git a/src/mame/ampro/lbpc.cpp b/src/mame/ampro/lbpc.cpp index d52925d8132..a7dcdae13a4 100644 --- a/src/mame/ampro/lbpc.cpp +++ b/src/mame/ampro/lbpc.cpp @@ -62,8 +62,8 @@ class lbpc_state : public driver_device int hsi_r(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: u8 exp_dack1_r(); @@ -81,8 +81,8 @@ class lbpc_state : public driver_device u8 port62_r(); void tout2_w(int state); - void mem_map(address_map &map); - void io_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_expbus; diff --git a/src/mame/amstrad/ams40041.h b/src/mame/amstrad/ams40041.h index c6bf52cb04a..97a081c7708 100644 --- a/src/mame/amstrad/ams40041.h +++ b/src/mame/amstrad/ams40041.h @@ -34,8 +34,8 @@ class ams40041_device : public mc6845_device 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; private: // VDU helpers diff --git a/src/mame/amstrad/amstr_pc.cpp b/src/mame/amstrad/amstr_pc.cpp index 5088fc1cba3..e61e353d002 100644 --- a/src/mame/amstrad/amstr_pc.cpp +++ b/src/mame/amstrad/amstr_pc.cpp @@ -234,7 +234,7 @@ class amstrad_pc_state : public driver_device void ppc512(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_maincpu; @@ -273,10 +273,10 @@ class amstrad_pc_state : public driver_device static void cfg_com(device_t *device); static void cfg_fdc(device_t *device); - void pc200_io(address_map &map); - void pc2086_map(address_map &map); - void ppc512_io(address_map &map); - void ppc640_map(address_map &map); + void pc200_io(address_map &map) ATTR_COLD; + void pc2086_map(address_map &map) ATTR_COLD; + void ppc512_io(address_map &map) ATTR_COLD; + void ppc640_map(address_map &map) ATTR_COLD; }; void amstrad_pc_state::ppc640_map(address_map &map) diff --git a/src/mame/amstrad/amstrad.h b/src/mame/amstrad/amstrad.h index bf1a986b774..0fc96e6ba67 100644 --- a/src/mame/amstrad/amstrad.h +++ b/src/mame/amstrad/amstrad.h @@ -90,7 +90,7 @@ class amstrad_state : public driver_device optional_device m_exp; // not on a GX4000; accessed by a static function in machine/amstrad.cpp protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -263,8 +263,8 @@ class amstrad_state : public driver_device void write_centronics_busy(int state); - void amstrad_io(address_map &map); - void amstrad_mem(address_map &map); + void amstrad_io(address_map &map) ATTR_COLD; + void amstrad_mem(address_map &map) ATTR_COLD; required_memory_region m_region_maincpu; optional_memory_region m_region_user1; diff --git a/src/mame/amstrad/nc.cpp b/src/mame/amstrad/nc.cpp index 87a4af82840..14e33b2ab35 100644 --- a/src/mame/amstrad/nc.cpp +++ b/src/mame/amstrad/nc.cpp @@ -112,8 +112,8 @@ class nc_state : public driver_device void nc_base(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; void update_interrupts(); @@ -129,7 +129,7 @@ class nc_state : public driver_device template uint8_t pcmcia_r(offs_t offset); template void pcmcia_w(offs_t offset, uint8_t data); - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_ram; @@ -204,10 +204,10 @@ class nc100_state : public nc_state void nc150(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: - void io_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; void display_memory_start_w(uint8_t data); void card_wait_control_w(uint8_t data); @@ -238,15 +238,15 @@ class nc200_state : public nc_state void nc200(machine_config &config); protected: - void machine_start() override; - void machine_reset() override; + void machine_start() override ATTR_COLD; + void machine_reset() override ATTR_COLD; private: required_device m_rtc; required_device m_fdc; required_device m_floppy; - void io_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; void display_memory_start_w(uint8_t data); void card_wait_control_w(uint8_t data); diff --git a/src/mame/amstrad/pc1512.h b/src/mame/amstrad/pc1512.h index 6de439f03f1..1fd015b64dd 100644 --- a/src/mame/amstrad/pc1512.h +++ b/src/mame/amstrad/pc1512.h @@ -96,8 +96,8 @@ class pc1512_base_state : public driver_device required_device m_bus; required_ioport m_lk; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; void update_speaker(); void update_fdc_int(); @@ -199,14 +199,14 @@ class pc1512_state : public pc1512_base_state , m_vdu(*this, AMS40041_TAG) { } - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; void pc1512hd(machine_config &config); void pc1512(machine_config &config); void pc1512dd(machine_config &config); - void pc1512_io(address_map &map); - void pc1512_mem(address_map &map); + void pc1512_io(address_map &map) ATTR_COLD; + void pc1512_mem(address_map &map) ATTR_COLD; required_device m_vdu; }; @@ -220,7 +220,7 @@ class pc1640_state : public pc1512_base_state , m_opt(0) { } - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; uint8_t io_r(offs_t offset); uint8_t printer_r(offs_t offset); @@ -231,8 +231,8 @@ class pc1640_state : public pc1512_base_state void pc1640hd(machine_config &config); void pc1640(machine_config &config); void pc1640dd(machine_config &config); - void pc1640_io(address_map &map); - void pc1640_mem(address_map &map); + void pc1640_io(address_map &map) ATTR_COLD; + void pc1640_mem(address_map &map) ATTR_COLD; }; #endif // MAME_AMSTRAD_PC1512_H diff --git a/src/mame/amstrad/pc1512kb.h b/src/mame/amstrad/pc1512kb.h index 69ef24c28f7..9e088e236f9 100644 --- a/src/mame/amstrad/pc1512kb.h +++ b/src/mame/amstrad/pc1512kb.h @@ -46,13 +46,13 @@ class pc1512_keyboard_device : public device_t 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; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; TIMER_CALLBACK_MEMBER(reset_timer_tick); diff --git a/src/mame/amstrad/pcw.h b/src/mame/amstrad/pcw.h index c27feda1e73..7f3eeca82a0 100644 --- a/src/mame/amstrad/pcw.h +++ b/src/mame/amstrad/pcw.h @@ -62,9 +62,9 @@ class pcw_state : public driver_device void init_pcw(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: int m_boot = 0; @@ -164,9 +164,9 @@ class pcw_state : public driver_device void pcw_update_mem(int block, int data); int pcw_get_sys_status(); void pcw_printer_fire_pins(uint16_t pins); - void pcw9512_io(address_map &map); - void pcw_io(address_map &map); - void pcw_map(address_map &map); + void pcw9512_io(address_map &map) ATTR_COLD; + void pcw_io(address_map &map) ATTR_COLD; + void pcw_map(address_map &map) ATTR_COLD; }; #endif // MAME_AMSTRAD_PCW_H diff --git a/src/mame/amstrad/pcw16.h b/src/mame/amstrad/pcw16.h index 01b547efa50..b23b1e19f08 100644 --- a/src/mame/amstrad/pcw16.h +++ b/src/mame/amstrad/pcw16.h @@ -93,9 +93,9 @@ class pcw16_state : public driver_device void pcw16_write_mem(uint8_t bank, uint16_t offset, uint8_t data); uint8_t read_bank_data(uint8_t type, uint16_t offset); void write_bank_data(uint8_t type, uint16_t offset, uint8_t data); - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; void pcw16_colours(palette_device &palette) const; uint32_t screen_update_pcw16(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); TIMER_DEVICE_CALLBACK_MEMBER(pcw16_timer_callback); @@ -111,8 +111,8 @@ class pcw16_state : public driver_device void pcw16_vh_decode_mode1(bitmap_ind16 &bitmap, int x, int y, uint8_t byte); void pcw16_vh_decode_mode2(bitmap_ind16 &bitmap, int x, int y, uint8_t byte); - void pcw16_io(address_map &map); - void pcw16_map(address_map &map); + void pcw16_io(address_map &map) ATTR_COLD; + void pcw16_map(address_map &map) ATTR_COLD; private: required_device m_maincpu; diff --git a/src/mame/amstrad/pda600.cpp b/src/mame/amstrad/pda600.cpp index 6c90f850796..65bfb3e7dfe 100644 --- a/src/mame/amstrad/pda600.cpp +++ b/src/mame/amstrad/pda600.cpp @@ -135,8 +135,8 @@ class pda600_state : public driver_device required_ioport m_battery; required_shared_ptr m_video_ram; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void io_w(offs_t offset, u8 data); u8 io_r(offs_t offset); @@ -149,8 +149,8 @@ class pda600_state : public driver_device DECLARE_DEVICE_IMAGE_LOAD_MEMBER(card_load); DECLARE_DEVICE_IMAGE_UNLOAD_MEMBER(card_unload); - void pda600_io(address_map &map); - void pda600_mem(address_map &map); + void pda600_io(address_map &map) ATTR_COLD; + void pda600_mem(address_map &map) ATTR_COLD; emu_timer * m_csio_clk_timer; emu_timer * m_serl_clk_timer; diff --git a/src/mame/amstrad/pda600_copro.h b/src/mame/amstrad/pda600_copro.h index d63d13c5851..348c22d2f35 100644 --- a/src/mame/amstrad/pda600_copro.h +++ b/src/mame/amstrad/pda600_copro.h @@ -34,9 +34,9 @@ class pda600_copro_device : public device_t, private: // device-level overrides - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; - virtual void device_reset() override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; // device_serial_interface overrides void tra_callback() override { m_tx_cb(transmit_register_get_data_bit()); } diff --git a/src/mame/apf/apf.cpp b/src/mame/apf/apf.cpp index cb01befcf75..26b948e6ed8 100644 --- a/src/mame/apf/apf.cpp +++ b/src/mame/apf/apf.cpp @@ -126,8 +126,8 @@ class apf_state : public driver_device void apfimag(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: uint8_t videoram_r(offs_t offset); @@ -141,8 +141,8 @@ class apf_state : public driver_device uint8_t serial_r(offs_t offset); void serial_w(offs_t offset, uint8_t data); - void apfimag_map(address_map &map); - void apfm1000_map(address_map &map); + void apfimag_map(address_map &map) ATTR_COLD; + void apfm1000_map(address_map &map) ATTR_COLD; uint8_t m_latch = 0U; uint8_t m_keyboard_data = 0U; diff --git a/src/mame/apollo/apollo.h b/src/mame/apollo/apollo.h index 3a3ba03f59d..caedeffeb46 100644 --- a/src/mame/apollo/apollo.h +++ b/src/mame/apollo/apollo.h @@ -164,8 +164,8 @@ class apollo_state : public driver_device void init_apollo(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; @@ -238,7 +238,7 @@ class apollo_state : public driver_device DECLARE_MACHINE_RESET(apollo); DECLARE_MACHINE_START(apollo); - void cpu_space_map(address_map &map); + void cpu_space_map(address_map &map) ATTR_COLD; u16 apollo_irq_acknowledge(offs_t offset); u16 apollo_pic_get_vector(); void apollo_bus_error(); @@ -288,12 +288,12 @@ class apollo_state : public driver_device void apollo(machine_config &config); void apollo_terminal(machine_config &config); - void dn3000_map(address_map &map); - void dn3500_map(address_map &map); - void dn5500_map(address_map &map); - void dsp3000_map(address_map &map); - void dsp3500_map(address_map &map); - void dsp5500_map(address_map &map); + void dn3000_map(address_map &map) ATTR_COLD; + void dn3500_map(address_map &map) ATTR_COLD; + void dn5500_map(address_map &map) ATTR_COLD; + void dsp3000_map(address_map &map) ATTR_COLD; + void dsp3500_map(address_map &map) ATTR_COLD; + void dsp5500_map(address_map &map) ATTR_COLD; uint32_t ptm_counter = 0U; uint8_t sio_output_data = 0U; @@ -359,7 +359,7 @@ class apollo_sio: public duart_base_device virtual void write(offs_t offset, uint8_t data) override; protected: - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; private: uint8_t m_csrb = 0U; @@ -400,8 +400,8 @@ class apollo_ni: public device_t, public device_image_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; private: optional_device m_wdc; @@ -450,9 +450,9 @@ class apollo_graphics_15i : public device_t apollo_graphics_15i(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // device-level overrides - 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; protected: class lut_fifo; @@ -658,9 +658,9 @@ class apollo_graphics_19i : public apollo_graphics_15i apollo_graphics_19i(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: // device-level overrides - 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; private: // internal state @@ -690,8 +690,8 @@ class apollo_stdio_device: public device_t, public device_serial_interface private: // 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; // serial overrides virtual void rcv_complete() override; // Rx completed receiving byte diff --git a/src/mame/apollo/apollo_kbd.h b/src/mame/apollo/apollo_kbd.h index f4c92eac8cc..5332bbe9c18 100644 --- a/src/mame/apollo/apollo_kbd.h +++ b/src/mame/apollo/apollo_kbd.h @@ -45,10 +45,10 @@ class apollo_kbd_device : public device_t, public device_serial_interface private: // device_t implementation - virtual ioport_constructor device_input_ports() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; // device_serial_interface implementation virtual void rcv_complete() override; // Rx completed receiving byte diff --git a/src/mame/apollo/apollo_m.cpp b/src/mame/apollo/apollo_m.cpp index bada7934cb8..3a9475d2b31 100644 --- a/src/mame/apollo/apollo_m.cpp +++ b/src/mame/apollo/apollo_m.cpp @@ -131,8 +131,8 @@ class apollo_config_device : public device_t apollo_config_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); 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; private: // internal state }; diff --git a/src/mame/apple/adbmodem.h b/src/mame/apple/adbmodem.h index f605a09c716..5dff36f9f83 100644 --- a/src/mame/apple/adbmodem.h +++ b/src/mame/apple/adbmodem.h @@ -53,14 +53,14 @@ class adbmodem_device : public device_t devcb_write_line write_reset, write_linechange; devcb_write_line write_via_clock, write_via_data, write_irq; - void adbmodem_map(address_map &map); + void adbmodem_map(address_map &map) ATTR_COLD; protected: // device-level overrides - 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; required_device m_maincpu; diff --git a/src/mame/apple/apple1.cpp b/src/mame/apple/apple1.cpp index e1a9a4f9dbe..743f2bc03b3 100644 --- a/src/mame/apple/apple1.cpp +++ b/src/mame/apple/apple1.cpp @@ -112,8 +112,8 @@ class apple1_state : public driver_device void apple1(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; @@ -149,7 +149,7 @@ class apple1_state : public driver_device TIMER_CALLBACK_MEMBER(ready_end_cb); TIMER_CALLBACK_MEMBER(keyboard_strobe_cb); - void apple1_map(address_map &map); + void apple1_map(address_map &map) ATTR_COLD; void plot_text_character(bitmap_ind16 &bitmap, int xpos, int ypos, int xscale, uint32_t code, const uint8_t *textgfx_data, uint32_t textgfx_datalen); void poll_keyboard(); diff --git a/src/mame/apple/apple2.cpp b/src/mame/apple/apple2.cpp index 37d068bbaa8..4e7118735c7 100644 --- a/src/mame/apple/apple2.cpp +++ b/src/mame/apple/apple2.cpp @@ -116,8 +116,8 @@ class apple2_state : public driver_device TIMER_DEVICE_CALLBACK_MEMBER(apple2_interrupt); TIMER_DEVICE_CALLBACK_MEMBER(ay3600_repeat); - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; u8 ram_r(offs_t offset); void ram_w(offs_t offset, u8 data); @@ -158,7 +158,7 @@ class apple2_state : public driver_device void albert(machine_config &config); void ivelultr(machine_config &config); void apple2p(machine_config &config); - void apple2_map(address_map &map); + void apple2_map(address_map &map) ATTR_COLD; private: int m_speaker_state, m_cassette_state; diff --git a/src/mame/apple/apple2common.h b/src/mame/apple/apple2common.h index 6d4b6365288..b046c940c4f 100644 --- a/src/mame/apple/apple2common.h +++ b/src/mame/apple/apple2common.h @@ -29,7 +29,7 @@ class apple2_common_device : public device_t protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void device_validity_check(validity_checker &valid) const override; private: diff --git a/src/mame/apple/apple2e.cpp b/src/mame/apple/apple2e.cpp index 81c2905b0ed..fbef9e2920c 100644 --- a/src/mame/apple/apple2e.cpp +++ b/src/mame/apple/apple2e.cpp @@ -287,8 +287,8 @@ class apple2e_state : public driver_device TIMER_DEVICE_CALLBACK_MEMBER(accel_timer); TIMER_DEVICE_CALLBACK_MEMBER(ay3600_repeat); - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; u8 ram0000_r(offs_t offset); void ram0000_w(offs_t offset, u8 data); @@ -394,13 +394,13 @@ class apple2e_state : public driver_device void tk3000(machine_config &config); void apple2ee(machine_config &config); void apple2eepal(machine_config &config); - void apple2c_map(address_map &map); - void apple2c_memexp_map(address_map &map); - void base_map(address_map &map); - void laser128_map(address_map &map); - void ace500_map(address_map &map); - void ace2200_map(address_map &map); - void spectred_keyb_map(address_map &map); + void apple2c_map(address_map &map) ATTR_COLD; + void apple2c_memexp_map(address_map &map) ATTR_COLD; + void base_map(address_map &map) ATTR_COLD; + void laser128_map(address_map &map) ATTR_COLD; + void ace500_map(address_map &map) ATTR_COLD; + void ace2200_map(address_map &map) ATTR_COLD; + void spectred_keyb_map(address_map &map) ATTR_COLD; void init_laser128(); void init_128ex(); void init_pal(); diff --git a/src/mame/apple/apple2gs.cpp b/src/mame/apple/apple2gs.cpp index 62982b55f71..50a72bc001e 100644 --- a/src/mame/apple/apple2gs.cpp +++ b/src/mame/apple/apple2gs.cpp @@ -180,8 +180,8 @@ class apple2gs_state : public driver_device void rom3_init() { m_is_rom3 = true; } protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; @@ -311,10 +311,10 @@ class apple2gs_state : public driver_device void palette_init(palette_device &palette); u32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void apple2gs_map(address_map &map); - void vectors_map(address_map &map); - void a2gs_es5503_map(address_map &map); - void c300bank_map(address_map &map); + void apple2gs_map(address_map &map) ATTR_COLD; + void vectors_map(address_map &map) ATTR_COLD; + void a2gs_es5503_map(address_map &map) ATTR_COLD; + void c300bank_map(address_map &map) ATTR_COLD; void phases_w(uint8_t phases); void sel35_w(int sel35); diff --git a/src/mame/apple/apple2video.h b/src/mame/apple/apple2video.h index 030b6049c9d..887ac12ef86 100644 --- a/src/mame/apple/apple2video.h +++ b/src/mame/apple/apple2video.h @@ -74,8 +74,8 @@ class a2_video_device : public device_t, public device_palette_interface, public protected: a2_video_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); - virtual void device_reset() override; - virtual void device_start() override; + virtual void device_reset() override ATTR_COLD; + virtual void device_start() override ATTR_COLD; virtual uint32_t palette_entries() const noexcept override; void init_palette(); @@ -130,7 +130,7 @@ class a2_video_device_composite : public a2_video_device public: a2_video_device_composite(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; }; // a2_video_device with composite settings plus Video-7 RGB card option @@ -139,7 +139,7 @@ class a2_video_device_composite_rgb : public a2_video_device public: a2_video_device_composite_rgb(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; }; // device type definition diff --git a/src/mame/apple/apple3.h b/src/mame/apple/apple3.h index 8670e243b75..f8ad9948871 100644 --- a/src/mame/apple/apple3.h +++ b/src/mame/apple/apple3.h @@ -97,8 +97,8 @@ class apple3_state : public driver_device uint8_t apple3_c0xx_r(offs_t offset); void apple3_c0xx_w(offs_t offset, uint8_t data); void init_apple3(); - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); TIMER_CALLBACK_MEMBER(scanstart_cb); TIMER_CALLBACK_MEMBER(scanend_cb); @@ -139,7 +139,7 @@ class apple3_state : public driver_device int m_enable_mask = 0; void apple3(machine_config &config); - void apple3_map(address_map &map); + void apple3_map(address_map &map) ATTR_COLD; private: bool m_reset_latch; bool m_nmi_latch; diff --git a/src/mame/apple/awacs_macrisc.h b/src/mame/apple/awacs_macrisc.h index 3941fb29062..02e3109f848 100644 --- a/src/mame/apple/awacs_macrisc.h +++ b/src/mame/apple/awacs_macrisc.h @@ -42,8 +42,8 @@ class awacs_macrisc_device : public device_t, public device_sound_interface static const u8 divider[4]; // 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 const &inputs, std::vector &outputs) override; @@ -66,7 +66,7 @@ class screamer_device : public awacs_macrisc_device virtual void write_macrisc(offs_t offset, u32 data) override; protected: - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; }; // device type definition diff --git a/src/mame/apple/bandit.h b/src/mame/apple/bandit.h index 0df9e1bfd80..19f504354d3 100644 --- a/src/mame/apple/bandit.h +++ b/src/mame/apple/bandit.h @@ -30,22 +30,22 @@ class bandit_host_device : public pci_host_device protected: bandit_host_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 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 void reset_all_mappings() override; virtual void map_extra(u64 memory_window_start, u64 memory_window_end, u64 memory_offset, address_space *memory_space, u64 io_window_start, u64 io_window_end, u64 io_offset, address_space *io_space) override; - virtual void config_map(address_map &map) override; + virtual void config_map(address_map &map) override ATTR_COLD; virtual space_config_vector memory_space_config() const override; u32 m_last_config_address; private: - void cpu_map(address_map &map); + void cpu_map(address_map &map) ATTR_COLD; virtual u32 be_config_address_r(); virtual void be_config_address_w(offs_t offset, u32 data, u32 mem_mask = ~0); u32 be_config_data_r(offs_t offset, u32 mem_mask = ~0); diff --git a/src/mame/apple/burgundy.h b/src/mame/apple/burgundy.h index ca40ab29443..69950fc952a 100644 --- a/src/mame/apple/burgundy.h +++ b/src/mame/apple/burgundy.h @@ -38,8 +38,8 @@ class burgundy_device : public device_t, public device_sound_interface }; // 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 const &inputs, std::vector &outputs) override; diff --git a/src/mame/apple/cuda.h b/src/mame/apple/cuda.h index f87bdcd40aa..43f9368f87c 100644 --- a/src/mame/apple/cuda.h +++ b/src/mame/apple/cuda.h @@ -49,10 +49,10 @@ class cuda_device : public device_t, public device_nvram_interface protected: // device-level overrides - 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; required_device m_maincpu; required_region_ptr m_default_nvram; @@ -82,7 +82,7 @@ class cuda_2xx_device : public cuda_device cuda_2xx_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 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 cuda_302_device : public cuda_device @@ -91,8 +91,8 @@ class cuda_302_device : public cuda_device cuda_302_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); protected: - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: }; @@ -101,10 +101,10 @@ class cuda_lite_device : public cuda_device { public: cuda_lite_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; protected: - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; private: }; diff --git a/src/mame/apple/dafb.h b/src/mame/apple/dafb.h index 46979588194..8caa339bb5e 100644 --- a/src/mame/apple/dafb.h +++ b/src/mame/apple/dafb.h @@ -18,7 +18,7 @@ class dafb_base : public device_t dafb_base(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); virtual ~dafb_base() = default; - void map(address_map &map); + void map(address_map &map) ATTR_COLD; u32 vram_r(offs_t offset); void vram_w(offs_t offset, u32 data, u32 mem_mask); @@ -35,10 +35,10 @@ class dafb_base : public device_t virtual void clockgen_w(offs_t offset, u8 data); protected: - virtual void device_start() override; - virtual void device_reset() override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() 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 ioport_constructor device_input_ports() const override ATTR_COLD; void recalc_ints(); void recalc_mode(); @@ -122,7 +122,7 @@ class dafb_device: public dafb_base protected: dafb_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: required_device m_maincpu; @@ -135,8 +135,8 @@ class dafb_q950_device : public dafb_device dafb_q950_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock = 0); protected: - 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 u32 ramdac_r(offs_t offset) override; virtual void ramdac_w(offs_t offset, u32 data) override; @@ -151,8 +151,8 @@ class dafb_memc_device: public dafb_base dafb_memc_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock = 0); protected: - 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 u8 clockgen_r(offs_t offset) override; virtual void clockgen_w(offs_t offset, u8 data) override; @@ -171,8 +171,8 @@ class dafb_memcjr_device: public dafb_base dafb_memcjr_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock = 0); protected: - 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 u8 clockgen_r(offs_t offset) override; virtual void clockgen_w(offs_t offset, u8 data) override; diff --git a/src/mame/apple/dbdma.h b/src/mame/apple/dbdma.h index 00c88242797..05c74e05bac 100644 --- a/src/mame/apple/dbdma.h +++ b/src/mame/apple/dbdma.h @@ -28,12 +28,12 @@ class dbdma_device : public device_t void set_address_space(address_space *space) { m_pci_memory = space; } - void map(address_map &map); + void map(address_map &map) ATTR_COLD; 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; private: devcb_write_line write_irq; diff --git a/src/mame/apple/dfac.h b/src/mame/apple/dfac.h index 65ce743b581..7936f04e57b 100644 --- a/src/mame/apple/dfac.h +++ b/src/mame/apple/dfac.h @@ -19,7 +19,7 @@ class dfac_device : public device_t, public device_sound_interface protected: // device_r overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_sound_interface overrides virtual void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; diff --git a/src/mame/apple/djmemc.h b/src/mame/apple/djmemc.h index a1292cf15ff..5f0b1e7e68b 100644 --- a/src/mame/apple/djmemc.h +++ b/src/mame/apple/djmemc.h @@ -17,7 +17,7 @@ class djmemc_device : public device_t djmemc_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // interface routines - virtual void map(address_map &map); + virtual void map(address_map &map) ATTR_COLD; template void set_maincpu_tag(T &&... args) { m_maincpu.set_tag(std::forward(args)...); } template void set_rom_tag(T &&... args) { m_rom.set_tag(std::forward(args)...); } @@ -29,9 +29,9 @@ class djmemc_device : public device_t djmemc_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // device-level overrides - 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; u32 rom_switch_r(offs_t offset); void vbl_w(int state); @@ -55,11 +55,11 @@ class memcjr_device : public djmemc_device // construction/destruction memcjr_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - virtual void map(address_map &map) override; + virtual void map(address_map &map) override ATTR_COLD; protected: - 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; private: u32 dafb_holding_r(offs_t offset); diff --git a/src/mame/apple/egret.h b/src/mame/apple/egret.h index b4919afe76e..cee5b2b0c0d 100644 --- a/src/mame/apple/egret.h +++ b/src/mame/apple/egret.h @@ -65,10 +65,10 @@ class egret_device : public device_t, public device_nvram_interface protected: // device-level overrides - 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; private: u8 m_xcvr_session; diff --git a/src/mame/apple/f108.h b/src/mame/apple/f108.h index 0ca62a8d44d..557519325cf 100644 --- a/src/mame/apple/f108.h +++ b/src/mame/apple/f108.h @@ -26,7 +26,7 @@ class f108_device : public device_t f108_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // interface routines - virtual void map(address_map &map); + virtual void map(address_map &map) ATTR_COLD; template void set_maincpu_tag(T &&... args) { m_maincpu.set_tag(std::forward(args)...); } template void set_primetimeii_tag(T &&... args) { m_primetimeii.set_tag(std::forward(args)...); } @@ -37,9 +37,9 @@ class f108_device : public device_t protected: // device-level overrides - 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; u32 rom_switch_r(offs_t offset); diff --git a/src/mame/apple/heathrow.h b/src/mame/apple/heathrow.h index 9ef9d97ef0c..d000325f37d 100644 --- a/src/mame/apple/heathrow.h +++ b/src/mame/apple/heathrow.h @@ -47,11 +47,11 @@ class macio_device : public pci_device protected: // device-level overrides - virtual void device_reset() override; - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_reset() override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; - virtual void base_map(address_map &map); - virtual void config_map(address_map &map) override; + virtual void base_map(address_map &map) ATTR_COLD; + virtual void config_map(address_map &map) override ATTR_COLD; void common_init(); @@ -115,12 +115,12 @@ class grandcentral_device : public macio_device // construction/destruction grandcentral_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); - virtual void map(address_map &map); + virtual void map(address_map &map) ATTR_COLD; protected: // device-level overrides - 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; required_device m_dma_scsi1; }; @@ -132,12 +132,12 @@ class ohare_device : public macio_device, public device_nvram_interface ohare_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); ohare_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); - virtual void map(address_map &map); + virtual void map(address_map &map) ATTR_COLD; protected: // device-level overrides - 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; // device_nvram_interface overrides virtual void nvram_default() override; @@ -163,7 +163,7 @@ class heathrow_device : public ohare_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; }; class paddington_device : public heathrow_device @@ -174,7 +174,7 @@ class paddington_device : public heathrow_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; }; // device type definition diff --git a/src/mame/apple/imacg3.cpp b/src/mame/apple/imacg3.cpp index 79f4260b967..bd941ee170b 100644 --- a/src/mame/apple/imacg3.cpp +++ b/src/mame/apple/imacg3.cpp @@ -53,10 +53,10 @@ class imac_state : public driver_device private: u16 m_sense; - void imac_map(address_map &map); + void imac_map(address_map &map) ATTR_COLD; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; void cuda_reset_w(int state) { diff --git a/src/mame/apple/iosb.h b/src/mame/apple/iosb.h index 3d279ae61e2..261ef0f1e17 100644 --- a/src/mame/apple/iosb.h +++ b/src/mame/apple/iosb.h @@ -37,7 +37,7 @@ class iosb_base : public device_t auto read_pa4() { return m_pa4.bind(); } auto read_pa6() { return m_pa6.bind(); } - virtual void map(address_map &map); + virtual void map(address_map &map) ATTR_COLD; template void set_maincpu_tag(T &&... args) { m_maincpu.set_tag(std::forward(args)...); } template void set_scsi_tag(T &&... args) { m_ncr.set_tag(std::forward(args)...); } @@ -61,9 +61,9 @@ class iosb_base : public device_t protected: // device-level overrides - 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; virtual uint8_t via_in_b(); virtual void via_out_b(uint8_t data); @@ -133,7 +133,7 @@ class iosb_device : public iosb_base iosb_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); protected: - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual uint8_t via_in_b() override; virtual void via_out_b(uint8_t data) override; @@ -170,12 +170,12 @@ class primetimeii_device : public primetime_device // construction/destruction primetimeii_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); - virtual void map(address_map &map) override; + virtual void map(address_map &map) override ATTR_COLD; void ata_irq_w(int state); protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: u16 ata_regs_r(offs_t offset); diff --git a/src/mame/apple/iphone2g.cpp b/src/mame/apple/iphone2g.cpp index 4b44c59f31a..3fab4b6f874 100644 --- a/src/mame/apple/iphone2g.cpp +++ b/src/mame/apple/iphone2g.cpp @@ -20,14 +20,14 @@ class iphone2g_spi_device : public device_t, public device_memory_interface auto out_irq_cb() { return m_out_irq_func.bind(); } - void map(address_map &map); + void map(address_map &map) ATTR_COLD; protected: iphone2g_spi_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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 space_config_vector memory_space_config() const override; @@ -122,15 +122,15 @@ class iphone2g_timer_device : public device_t, public device_memory_interface auto out_irq_cb() { return m_out_irq_func.bind(); } - void map(address_map &map); - void timer_map(address_map &map); + void map(address_map &map) ATTR_COLD; + void timer_map(address_map &map) ATTR_COLD; protected: iphone2g_timer_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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 space_config_vector memory_space_config() const override; @@ -216,8 +216,8 @@ class iphone2g_state : public driver_device void iphone2g(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; uint32_t clock1_r(offs_t offset); @@ -233,7 +233,7 @@ class iphone2g_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; }; uint32_t iphone2g_state::screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect) diff --git a/src/mame/apple/lisa.h b/src/mame/apple/lisa.h index 193bfb32b7b..5fd8e4872b6 100644 --- a/src/mame/apple/lisa.h +++ b/src/mame/apple/lisa.h @@ -224,9 +224,9 @@ class lisa_state : public driver_device void sfmsk_w(int state); void hdmsk_w(int state); - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; void nvram_init(nvram_device &nvram, void *data, size_t size); uint32_t screen_update_lisa(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); INTERRUPT_GEN_MEMBER(lisa_interrupt); @@ -251,9 +251,9 @@ class lisa_state : public driver_device void scan_keyboard(); void unplug_keyboard(); void plug_keyboard(); - void lisa210_fdc_map(address_map &map); - void lisa_fdc_map(address_map &map); - void lisa_map(address_map &map); + void lisa210_fdc_map(address_map &map) ATTR_COLD; + void lisa_fdc_map(address_map &map) ATTR_COLD; + void lisa_map(address_map &map) ATTR_COLD; }; #endif // MAME_APPLE_LISA_H diff --git a/src/mame/apple/lwriter.cpp b/src/mame/apple/lwriter.cpp index f4cee8d5941..8019eec25c9 100644 --- a/src/mame/apple/lwriter.cpp +++ b/src/mame/apple/lwriter.cpp @@ -144,8 +144,8 @@ class lwriter_state : public driver_device void lwriter2nt(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: // A guess based on not very much @@ -174,7 +174,7 @@ class lwriter_state : public driver_device TIMER_CALLBACK_MEMBER(pb6_tick); uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); //void scc_int(int state); - void maincpu_map(address_map &map); + void maincpu_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_scc; diff --git a/src/mame/apple/mac128.cpp b/src/mame/apple/mac128.cpp index e5dd351a11d..376ca15d8d3 100644 --- a/src/mame/apple/mac128.cpp +++ b/src/mame/apple/mac128.cpp @@ -195,8 +195,8 @@ class mac128_state : public driver_device optional_ioport m_mouse0, m_mouse1, m_mouse2; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; void scc_mouse_irq( int x, int y ); void set_via_interrupt(int value); @@ -241,9 +241,9 @@ class mac128_state : public driver_device void mac_via_irq(int state); void update_volume(); - void mac512ke_map(address_map &map); - void macplus_map(address_map &map); - void macse_map(address_map &map); + void mac512ke_map(address_map &map) ATTR_COLD; + void macplus_map(address_map &map) ATTR_COLD; + void macse_map(address_map &map) ATTR_COLD; floppy_image_device *m_cur_floppy; int m_hdsel, m_devsel; diff --git a/src/mame/apple/macadb.h b/src/mame/apple/macadb.h index bca8c785e77..02b6910d4ef 100644 --- a/src/mame/apple/macadb.h +++ b/src/mame/apple/macadb.h @@ -32,9 +32,9 @@ class macadb_device : public device_t protected: // device-level overrides - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; - virtual void device_reset() override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: u64 m_last_adb_time; diff --git a/src/mame/apple/macii.cpp b/src/mame/apple/macii.cpp index d5e9c8a9ca1..987306e743c 100644 --- a/src/mame/apple/macii.cpp +++ b/src/mame/apple/macii.cpp @@ -114,8 +114,8 @@ class macii_state:public driver_device void macii_init(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: void set_memory_overlay(int overlay); @@ -149,8 +149,8 @@ class macii_state:public driver_device void mac_asc_irq(int state); void adb_irq_w(int state) { m_adb_irq_pending = state; } - void macii_map(address_map &map); - void macse30_map(address_map &map); + void macii_map(address_map &map) ATTR_COLD; + void macse30_map(address_map &map) ATTR_COLD; void phases_w(u8 phases); void devsel_w(u8 devsel); diff --git a/src/mame/apple/maciici.cpp b/src/mame/apple/maciici.cpp index 97ed6946bff..a42efbdd47f 100644 --- a/src/mame/apple/maciici.cpp +++ b/src/mame/apple/maciici.cpp @@ -77,8 +77,8 @@ class maciici_state : public driver_device void maciisi(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; @@ -124,7 +124,7 @@ class maciici_state : public driver_device uint32_t rom_switch_r(offs_t offset); - void maciici_map(address_map &map); + void maciici_map(address_map &map) ATTR_COLD; u16 scc_r(offs_t offset) { diff --git a/src/mame/apple/maciifx.cpp b/src/mame/apple/maciifx.cpp index 2971f97f134..04c9eef62a4 100644 --- a/src/mame/apple/maciifx.cpp +++ b/src/mame/apple/maciifx.cpp @@ -75,11 +75,11 @@ class maciifx_state : public driver_device } void maciifx(machine_config &config); - void maciifx_map(address_map &map); + void maciifx_map(address_map &map) ATTR_COLD; protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; diff --git a/src/mame/apple/maciivx.cpp b/src/mame/apple/maciivx.cpp index f2325a8b4f3..8ecffcc9fd6 100644 --- a/src/mame/apple/maciivx.cpp +++ b/src/mame/apple/maciivx.cpp @@ -76,9 +76,9 @@ class maciivx_state : public driver_device void maciiv_base(machine_config &config); void maciivx(machine_config &config); void maciivi(machine_config &config); - void base_map(address_map &map); - void maciivx_map(address_map &map); - void maciivi_map(address_map &map); + void base_map(address_map &map) ATTR_COLD; + void maciivx_map(address_map &map) ATTR_COLD; + void maciivi_map(address_map &map) ATTR_COLD; private: required_device m_maincpu; @@ -94,7 +94,7 @@ class maciivx_state : public driver_device required_device m_scc; required_device m_egret; - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; u16 scc_r(offs_t offset) { diff --git a/src/mame/apple/maclc.cpp b/src/mame/apple/maclc.cpp index 2e3ef95a6f4..275f643118f 100644 --- a/src/mame/apple/maclc.cpp +++ b/src/mame/apple/maclc.cpp @@ -85,8 +85,8 @@ class maclc_state : public driver_device void macclas2(machine_config &config); void maccclas(machine_config &config); void mactv(machine_config &config); - void maclc_map(address_map &map); - void maccclassic_map(address_map &map); + void maclc_map(address_map &map) ATTR_COLD; + void maccclassic_map(address_map &map) ATTR_COLD; private: required_device m_maincpu; @@ -103,7 +103,7 @@ class maclc_state : public driver_device optional_device m_egret; optional_device m_cuda; - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; u16 scc_r(offs_t offset) { diff --git a/src/mame/apple/maclc3.cpp b/src/mame/apple/maclc3.cpp index de6585f08ff..586cf75c2b1 100644 --- a/src/mame/apple/maclc3.cpp +++ b/src/mame/apple/maclc3.cpp @@ -73,11 +73,11 @@ class macvail_state : public driver_device void maclc3p(machine_config &config); void maclc520(machine_config &config); void maclc550(machine_config &config); - void base_map(address_map &map); - void maclc3_map(address_map &map); - void maclc3p_map(address_map &map); - void maclc520_map(address_map &map); - void maclc550_map(address_map &map); + void base_map(address_map &map) ATTR_COLD; + void maclc3_map(address_map &map) ATTR_COLD; + void maclc3p_map(address_map &map) ATTR_COLD; + void maclc520_map(address_map &map) ATTR_COLD; + void maclc550_map(address_map &map) ATTR_COLD; private: required_device m_maincpu; @@ -93,7 +93,7 @@ class macvail_state : public driver_device optional_device m_egret; optional_device m_cuda; - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; u16 scc_r(offs_t offset) { diff --git a/src/mame/apple/macpdm.cpp b/src/mame/apple/macpdm.cpp index b8b32f3b0b5..fdae8a86ed6 100644 --- a/src/mame/apple/macpdm.cpp +++ b/src/mame/apple/macpdm.cpp @@ -82,7 +82,7 @@ class macpdm_state : public driver_device bool m_dma_scsi_a_in_step = false, m_dma_floppy_in_step = false, m_floppy_drq = false; - void pdm_map(address_map &map); + void pdm_map(address_map &map) ATTR_COLD; void nmi_irq(int state); void dma_irq(int state); diff --git a/src/mame/apple/macprtb.cpp b/src/mame/apple/macprtb.cpp index 76785e79f79..54e5cb12a72 100644 --- a/src/mame/apple/macprtb.cpp +++ b/src/mame/apple/macprtb.cpp @@ -157,13 +157,13 @@ class macportable_state : public driver_device, public device_nvram_interface } void macprtb(machine_config &config); - void macprtb_map(address_map &map); + void macprtb_map(address_map &map) ATTR_COLD; void init_macprtb(); private: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; virtual void nvram_default() override; virtual bool nvram_read(util::read_stream &file) override; diff --git a/src/mame/apple/macpwrbk030.cpp b/src/mame/apple/macpwrbk030.cpp index 8b8d57165ce..2be5ec80782 100644 --- a/src/mame/apple/macpwrbk030.cpp +++ b/src/mame/apple/macpwrbk030.cpp @@ -169,10 +169,10 @@ class macpb030_state : public driver_device void macpb180(machine_config &config); void macpb180c(machine_config &config); void macpd210(machine_config &config); - void macpb140_map(address_map &map); - void macpb160_map(address_map &map); - void macpb165c_map(address_map &map); - void macpd210_map(address_map &map); + void macpb140_map(address_map &map) ATTR_COLD; + void macpb160_map(address_map &map) ATTR_COLD; + void macpb165c_map(address_map &map) ATTR_COLD; + void macpd210_map(address_map &map) ATTR_COLD; void init_macpb140(); void init_macpb160(); @@ -196,8 +196,8 @@ class macpb030_state : public driver_device optional_shared_ptr m_vram; optional_device m_vga; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; u32 screen_update_macpb140(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); u32 screen_update_macpb160(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); diff --git a/src/mame/apple/macquadra605.cpp b/src/mame/apple/macquadra605.cpp index 9ddfab41e8c..a59db98ea16 100644 --- a/src/mame/apple/macquadra605.cpp +++ b/src/mame/apple/macquadra605.cpp @@ -64,9 +64,9 @@ class quadra605_state : public driver_device void maclc475(machine_config &config); void maclc575(machine_config &config); - void quadra605_map(address_map &map); - void lc475_map(address_map &map); - void lc575_map(address_map &map); + void quadra605_map(address_map &map) ATTR_COLD; + void lc475_map(address_map &map) ATTR_COLD; + void lc575_map(address_map &map) ATTR_COLD; void init_macqd605(); @@ -81,8 +81,8 @@ class quadra605_state : public driver_device required_device m_scsibus; required_device m_ncr1; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; u16 mac_scc_r(offs_t offset) { diff --git a/src/mame/apple/macquadra630.cpp b/src/mame/apple/macquadra630.cpp index 825c9923d92..a04a559c05a 100644 --- a/src/mame/apple/macquadra630.cpp +++ b/src/mame/apple/macquadra630.cpp @@ -77,8 +77,8 @@ class quadra630_state : public driver_device void macqd630(machine_config &config); void maclc580(machine_config &config); - void quadra630_map(address_map &map); - void lc580_map(address_map &map); + void quadra630_map(address_map &map) ATTR_COLD; + void lc580_map(address_map &map) ATTR_COLD; void init_macqd630(); @@ -91,8 +91,8 @@ class quadra630_state : public driver_device required_device m_cuda; required_device m_ram; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; void cuda_reset_w(int state) { diff --git a/src/mame/apple/macquadra700.cpp b/src/mame/apple/macquadra700.cpp index d001cacf13c..b412a15f20a 100644 --- a/src/mame/apple/macquadra700.cpp +++ b/src/mame/apple/macquadra700.cpp @@ -92,8 +92,8 @@ class quadrax00_state : public driver_device void quadra_base(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; u32 rom_switch_r(offs_t offset); u16 via_r(offs_t offset); @@ -169,7 +169,7 @@ class spike_state : public quadrax00_state { } - void quadra700_map(address_map &map); + void quadra700_map(address_map &map) ATTR_COLD; void macqd700(machine_config &config); private: @@ -196,13 +196,13 @@ class eclipse_state : public quadrax00_state { } - void quadra900_map(address_map &map); + void quadra900_map(address_map &map) ATTR_COLD; void macqd900(machine_config &config); void macqd950(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; void egret_reset_w(int state); void fdc_hdsel(int state); diff --git a/src/mame/apple/macquadra800.cpp b/src/mame/apple/macquadra800.cpp index e94fa1e985a..12d8e2ef482 100644 --- a/src/mame/apple/macquadra800.cpp +++ b/src/mame/apple/macquadra800.cpp @@ -72,7 +72,7 @@ class quadra800_state : public driver_device void macqd610(machine_config &config); void macqd650(machine_config &config); - void quadra800_map(address_map &map); + void quadra800_map(address_map &map) ATTR_COLD; void init_macqd800(); @@ -91,8 +91,8 @@ class quadra800_state : public driver_device u8 m_mac[6]; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; u16 mac_scc_r(offs_t offset) { diff --git a/src/mame/apple/macrtc.h b/src/mame/apple/macrtc.h index 499a9f6f23a..adadc4b83ac 100644 --- a/src/mame/apple/macrtc.h +++ b/src/mame/apple/macrtc.h @@ -42,8 +42,8 @@ class rtc3430042_device : public device_t, 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; // device_rtc_interface overrides virtual void rtc_clock_updated(int year, int month, int day, int day_of_week, int hour, int minute, int second) override; diff --git a/src/mame/apple/macscsi.h b/src/mame/apple/macscsi.h index d2c3c595fd8..8fbecca9ff6 100644 --- a/src/mame/apple/macscsi.h +++ b/src/mame/apple/macscsi.h @@ -31,8 +31,8 @@ class mac_scsi_helper_device : public device_t protected: // 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; private: enum class mode : u8 { NON_DMA, READ_WAIT_DRQ, READ_DMA, WRITE_DMA, BAD_DMA }; diff --git a/src/mame/apple/newton.cpp b/src/mame/apple/newton.cpp index 5bd529f0486..59844040309 100644 --- a/src/mame/apple/newton.cpp +++ b/src/mame/apple/newton.cpp @@ -47,7 +47,7 @@ class newton_state : public driver_device void mp2100(machine_config &config); protected: - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; uint32_t tick_count_r(); diff --git a/src/mame/apple/omega.h b/src/mame/apple/omega.h index 19628981c53..9c793047976 100644 --- a/src/mame/apple/omega.h +++ b/src/mame/apple/omega.h @@ -20,7 +20,7 @@ class omega_device : public device_t protected: // device_r overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: devcb_write32 m_write_pclock; diff --git a/src/mame/apple/pippin.cpp b/src/mame/apple/pippin.cpp index 25508016758..50aa7607358 100644 --- a/src/mame/apple/pippin.cpp +++ b/src/mame/apple/pippin.cpp @@ -74,12 +74,12 @@ class pippin_state : public driver_device required_device m_ram; private: - void pippin_map(address_map &map); - void cdmcu_mem(address_map &map); - void cdmcu_data(address_map &map); + void pippin_map(address_map &map) ATTR_COLD; + void cdmcu_mem(address_map &map) ATTR_COLD; + void cdmcu_data(address_map &map) ATTR_COLD; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; void cuda_reset_w(int state) { diff --git a/src/mame/apple/powermacg3.cpp b/src/mame/apple/powermacg3.cpp index efe2e7c99d4..df7a4596e05 100644 --- a/src/mame/apple/powermacg3.cpp +++ b/src/mame/apple/powermacg3.cpp @@ -48,10 +48,10 @@ class pwrmacg3_state : public driver_device private: u16 m_sense; - void pwrmacg3_map(address_map &map); + void pwrmacg3_map(address_map &map) ATTR_COLD; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; u16 read_sense(); void write_sense(u16 data); diff --git a/src/mame/apple/rbv.h b/src/mame/apple/rbv.h index a843b89ad91..91c311aaf46 100644 --- a/src/mame/apple/rbv.h +++ b/src/mame/apple/rbv.h @@ -22,7 +22,7 @@ class rbv_device : public device_t rbv_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - void map(address_map &map); + void map(address_map &map) ATTR_COLD; void set_ram_info(u32 *ram, u32 size); @@ -34,10 +34,10 @@ class rbv_device : public device_t protected: // device-level overrides - virtual void device_start() override; - virtual void device_reset() override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() 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 ioport_constructor device_input_ports() const override ATTR_COLD; private: devcb_write_line write_6015, write_irq; diff --git a/src/mame/apple/scsidma.h b/src/mame/apple/scsidma.h index d6daa6c9ef4..edcd16ba2f1 100644 --- a/src/mame/apple/scsidma.h +++ b/src/mame/apple/scsidma.h @@ -19,13 +19,13 @@ class scsidma_device : public device_t auto write_irq() { return m_irq.bind(); } - void map(address_map &map); + void map(address_map &map) ATTR_COLD; protected: // device-level overrides - 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; required_device m_maincpu; required_device m_scsibus; diff --git a/src/mame/apple/sonora.h b/src/mame/apple/sonora.h index 9e3541595aa..b55d05a049e 100644 --- a/src/mame/apple/sonora.h +++ b/src/mame/apple/sonora.h @@ -32,7 +32,7 @@ class sonora_device : public device_t, public device_sound_interface auto cb2_callback() { return write_cb2.bind(); } auto pb3_callback() { return read_pb3.bind(); } - void map(address_map &map); + void map(address_map &map) ATTR_COLD; template void set_maincpu_tag(T &&... args) { m_maincpu.set_tag(std::forward(args)...); } template void set_rom_tag(T &&... args) { m_rom.set_tag(std::forward(args)...); } @@ -47,9 +47,9 @@ class sonora_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_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; virtual void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; diff --git a/src/mame/apple/superga2.cpp b/src/mame/apple/superga2.cpp index 60b839e3efb..7dc55e7cc0c 100644 --- a/src/mame/apple/superga2.cpp +++ b/src/mame/apple/superga2.cpp @@ -63,8 +63,8 @@ class superga2_state : public driver_device required_device m_speaker; required_device m_softlatch; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; uint8_t ram_r(offs_t offset); void ram_w(offs_t offset, uint8_t data); @@ -74,7 +74,7 @@ class superga2_state : public driver_device uint8_t reset_r(offs_t offset); void superga2(machine_config &config); - void superga2_map(address_map &map); + void superga2_map(address_map &map) ATTR_COLD; private: int m_speaker_state = 0; diff --git a/src/mame/apple/tk2000.cpp b/src/mame/apple/tk2000.cpp index fa8522eb19f..788d1ba03eb 100644 --- a/src/mame/apple/tk2000.cpp +++ b/src/mame/apple/tk2000.cpp @@ -68,8 +68,8 @@ class tk2000_state : public driver_device void tk2000(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; @@ -118,8 +118,8 @@ class tk2000_state : public driver_device uint8_t c100_r(offs_t offset); void c100_w(offs_t offset, uint8_t data); - void apple2_map(address_map &map); - void inhbank_map(address_map &map); + void apple2_map(address_map &map) ATTR_COLD; + void inhbank_map(address_map &map) ATTR_COLD; uint8_t read_floatingbus(); }; diff --git a/src/mame/apple/v8.h b/src/mame/apple/v8.h index f97042dfb38..2ad5d617cc7 100644 --- a/src/mame/apple/v8.h +++ b/src/mame/apple/v8.h @@ -29,7 +29,7 @@ class v8_device : public device_t, public device_sound_interface auto hmmu_enable_callback() { return write_hmmu_enable.bind(); } auto pb3_callback() { return read_pb3.bind(); } - virtual void map(address_map &map); + virtual void map(address_map &map) ATTR_COLD; template void set_maincpu_tag(T &&... args) { m_maincpu.set_tag(std::forward(args)...); } template void set_rom_tag(T &&... args) { m_rom.set_tag(std::forward(args)...); } @@ -57,10 +57,10 @@ class v8_device : public device_t, public device_sound_interface v8_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); // device-level overrides - virtual void device_start() override; - virtual void device_reset() override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() 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 ioport_constructor device_input_ports() const override ATTR_COLD; virtual void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; @@ -121,8 +121,8 @@ class eagle_device : public v8_device eagle_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); protected: - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; private: u8 via_in_a() override; @@ -137,7 +137,7 @@ class spice_device : public v8_device public: spice_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); - virtual void map(address_map &map) override; + virtual void map(address_map &map) override ATTR_COLD; required_device m_fdc; required_device_array m_floppy; @@ -145,9 +145,9 @@ class spice_device : public v8_device protected: spice_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); - virtual void device_start() override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual void device_start() override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; void phases_w(u8 phases); void devsel_w(u8 devsel); @@ -175,7 +175,7 @@ class tinkerbell_device : public spice_device tinkerbell_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); protected: - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual void ram_size(u8 config) override; diff --git a/src/mame/apple/valkyrie.h b/src/mame/apple/valkyrie.h index 77cf17b3b7e..0aa9c2de52a 100644 --- a/src/mame/apple/valkyrie.h +++ b/src/mame/apple/valkyrie.h @@ -18,17 +18,17 @@ class valkyrie_device : public device_t, public i2c_hle_interface valkyrie_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); virtual ~valkyrie_device() = default; - void map(address_map &map); + void map(address_map &map) ATTR_COLD; auto write_irq() { return m_irq.bind(); } protected: // device_t overrides - 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; // i2c_hle_interface overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; virtual void write_data(u16 offset, u8 data) override; virtual const char *get_tag() override { return tag(); } diff --git a/src/mame/apple/vasp.h b/src/mame/apple/vasp.h index 09184f608e7..a079be8a47a 100644 --- a/src/mame/apple/vasp.h +++ b/src/mame/apple/vasp.h @@ -32,7 +32,7 @@ class vasp_device : public device_t, public device_sound_interface auto hdsel_callback() { return write_hdsel.bind(); } auto pb3_callback() { return read_pb3.bind(); } - void map(address_map &map); + void map(address_map &map) ATTR_COLD; template void set_maincpu_tag(T &&... args) { m_maincpu.set_tag(std::forward(args)...); } template void set_rom_tag(T &&... args) { m_rom.set_tag(std::forward(args)...); } @@ -48,10 +48,10 @@ class vasp_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_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() 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 ioport_constructor device_input_ports() const override ATTR_COLD; virtual void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; diff --git a/src/mame/appliedconcepts/boris.cpp b/src/mame/appliedconcepts/boris.cpp index dd254e920d0..1a82bb0f39e 100644 --- a/src/mame/appliedconcepts/boris.cpp +++ b/src/mame/appliedconcepts/boris.cpp @@ -48,8 +48,8 @@ class boris_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(reset_switch) { update_reset(newval); } protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: // devices/pointers @@ -60,8 +60,8 @@ class boris_state : public driver_device u8 m_io[2] = { }; u8 m_4042 = 0; - void main_map(address_map &map); - void main_io(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void main_io(address_map &map) ATTR_COLD; void update_reset(ioport_value state); diff --git a/src/mame/appliedconcepts/borisdpl.cpp b/src/mame/appliedconcepts/borisdpl.cpp index fb2849511ee..0de34e4f51d 100644 --- a/src/mame/appliedconcepts/borisdpl.cpp +++ b/src/mame/appliedconcepts/borisdpl.cpp @@ -45,7 +45,7 @@ class borisdpl_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(reset_button) { m_maincpu->set_input_line(INPUT_LINE_RESET, newval ? ASSERT_LINE : CLEAR_LINE); } protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: // devices/pointers @@ -58,8 +58,8 @@ class borisdpl_state : public driver_device u8 m_matrix = 0; u8 m_digit_data = 0; - void main_map(address_map &map); - void main_io(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void main_io(address_map &map) ATTR_COLD; void update_display(); void digit_w(u8 data); diff --git a/src/mame/appliedconcepts/ggm.cpp b/src/mame/appliedconcepts/ggm.cpp index 3eeeafb40cb..93f54d523d5 100644 --- a/src/mame/appliedconcepts/ggm.cpp +++ b/src/mame/appliedconcepts/ggm.cpp @@ -98,8 +98,8 @@ class ggm_state : public driver_device ioport_value overlay_r(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: // devices/pointers @@ -121,7 +121,7 @@ class ggm_state : public driver_device bool m_extram_enabled = false; u8 m_overlay = 0; - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; void update_reset(ioport_value state); void update_overlay(); diff --git a/src/mame/appliedconcepts/prodigy.cpp b/src/mame/appliedconcepts/prodigy.cpp index da6b2152cb2..d3bb2acbd80 100644 --- a/src/mame/appliedconcepts/prodigy.cpp +++ b/src/mame/appliedconcepts/prodigy.cpp @@ -98,7 +98,7 @@ class prodigy_state : public driver_device void prodigy(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: // devices/pointers @@ -114,7 +114,7 @@ class prodigy_state : public driver_device u8 m_shift_data = 0; u8 m_shift_clock = 0; - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; // I/O handlers void update_display(); diff --git a/src/mame/arcadia/arcadia.h b/src/mame/arcadia/arcadia.h index f2cba3b59e3..e18cb676375 100644 --- a/src/mame/arcadia/arcadia.h +++ b/src/mame/arcadia/arcadia.h @@ -56,8 +56,8 @@ class arcadia_state : public driver_device void arcadia(machine_config &config); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: int m_line = 0; @@ -129,7 +129,7 @@ class arcadia_state : public driver_device void palette_init(palette_device &palette) const; uint32_t screen_update_arcadia(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); INTERRUPT_GEN_MEMBER(video_line); - void arcadia_mem(address_map &map); + void arcadia_mem(address_map &map) ATTR_COLD; void draw_char(uint8_t *ch, int charcode, int y, int x); void vh_draw_line(int y, uint8_t chars1[16]); diff --git a/src/mame/arcadia/arcadia_a.h b/src/mame/arcadia/arcadia_a.h index be2da18c2e5..29f1e42309f 100644 --- a/src/mame/arcadia/arcadia_a.h +++ b/src/mame/arcadia/arcadia_a.h @@ -19,8 +19,8 @@ class arcadia_sound_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 const &inputs, std::vector &outputs) override; sound_stream *m_channel = nullptr; diff --git a/src/mame/aristocrat/aristmk4.cpp b/src/mame/aristocrat/aristmk4.cpp index d065078f004..47fc6a7ed38 100644 --- a/src/mame/aristocrat/aristmk4.cpp +++ b/src/mame/aristocrat/aristmk4.cpp @@ -451,9 +451,9 @@ class aristmk4_state : public driver_device uint8_t pb1_r(); uint8_t pc1_r(); - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; void aristmk4_palette(palette_device &palette) const; void lions_palette(palette_device &palette) const; uint32_t screen_update_aristmk4(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); @@ -463,8 +463,8 @@ class aristmk4_state : public driver_device TIMER_CALLBACK_MEMBER(power_fail); inline void uBackgroundColour(); - void slots_mem(address_map &map); - void poker_mem(address_map &map); + void slots_mem(address_map &map) ATTR_COLD; + void poker_mem(address_map &map) ATTR_COLD; }; /* Partial Cashcade protocol */ diff --git a/src/mame/aristocrat/aristmk6.cpp b/src/mame/aristocrat/aristmk6.cpp index 58636a2a903..ab1f7c90001 100644 --- a/src/mame/aristocrat/aristmk6.cpp +++ b/src/mame/aristocrat/aristmk6.cpp @@ -156,10 +156,10 @@ class aristmk6_state : public driver_device uint64_t hwver_r(); uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - virtual void video_start() override; - virtual void machine_reset() override; - void aristmk6_map(address_map &map); - void aristmk6_port(address_map &map); + virtual void video_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + void aristmk6_map(address_map &map) ATTR_COLD; + void aristmk6_port(address_map &map) ATTR_COLD; u8 irl0pend = 0, irl0en = 0; u8 irl1pend = 0, irl1en = 0; diff --git a/src/mame/aristocrat/aristmk7.cpp b/src/mame/aristocrat/aristmk7.cpp index f6c8b6aaba2..ed2676402e6 100644 --- a/src/mame/aristocrat/aristmk7.cpp +++ b/src/mame/aristocrat/aristmk7.cpp @@ -177,8 +177,8 @@ class aristmk7_state : public driver_device private: required_device m_maincpu; - void aristmk7_io(address_map &map); - void aristmk7_map(address_map &map); + void aristmk7_io(address_map &map) ATTR_COLD; + void aristmk7_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/aristocrat/caswin.cpp b/src/mame/aristocrat/caswin.cpp index a2db6684e80..d6b3d1cb505 100644 --- a/src/mame/aristocrat/caswin.cpp +++ b/src/mame/aristocrat/caswin.cpp @@ -94,7 +94,7 @@ class caswin_state : public driver_device void vvillage(machine_config &config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: void vram_w(offs_t offset, uint8_t data); @@ -108,8 +108,8 @@ class caswin_state : public driver_device void palette_init(palette_device &palette) const; uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void main_io(address_map &map); - void main_map(address_map &map); + void main_io(address_map &map) ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; tilemap_t *m_tilemap = nullptr; bool m_window_enable = false; diff --git a/src/mame/astrocorp/astrcorp.cpp b/src/mame/astrocorp/astrcorp.cpp index 9098ec71780..e605122eea6 100644 --- a/src/mame/astrocorp/astrcorp.cpp +++ b/src/mame/astrocorp/astrcorp.cpp @@ -120,8 +120,8 @@ class astro_cpucode_device : public device_t void clk_write(int state); // CLK signal (active high) protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: required_region_ptr m_region_key; @@ -212,8 +212,8 @@ class astrocorp_state : public driver_device void init_showhand(); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; // devices required_device m_maincpu; @@ -257,11 +257,11 @@ class astrocorp_state : public driver_device void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); - void luckycoin_map(address_map &map); - void showhanc_map(address_map &map); - void showhand_map(address_map &map); - void skilldrp_map(address_map &map); - void speeddrp_map(address_map &map); + void luckycoin_map(address_map &map) ATTR_COLD; + void showhanc_map(address_map &map) ATTR_COLD; + void showhand_map(address_map &map) ATTR_COLD; + void skilldrp_map(address_map &map) ATTR_COLD; + void speeddrp_map(address_map &map) ATTR_COLD; }; // Simpler encryption. No IRQs. @@ -281,10 +281,10 @@ class magibomb_state : public astrocorp_state private: u16 video_flags_r(); - void magibomb_base_map(address_map &map, u32 base_offs); - void magibomb_map(address_map &map); - void magibombb_map(address_map &map); - void magibombf_map(address_map &map); + void magibomb_base_map(address_map &map, u32 base_offs) ATTR_COLD; + void magibomb_map(address_map &map) ATTR_COLD; + void magibombb_map(address_map &map) ATTR_COLD; + void magibombf_map(address_map &map) ATTR_COLD; }; // Heavier encryption. CPU Code protection. @@ -329,7 +329,7 @@ class zoo_state : public astrocorp_state virtual void eeprom_w(u8 data) override; protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; struct decryption_info { struct { @@ -354,17 +354,17 @@ class zoo_state : public astrocorp_state TIMER_DEVICE_CALLBACK_MEMBER(irq_1_2_scanline_cb); - void dinodino_map(address_map &map); - void gostop_map(address_map &map); - void hacher_map(address_map &map); - void hapfarm_map(address_map &map); - void magibombd_map(address_map &map); - void magibombg_map(address_map &map); - void monkeyl_map(address_map &map); - void speedmst_map(address_map &map); - void winbingo_map(address_map &map); - void wwitch_map(address_map &map); - void zoo_map(address_map &map); + void dinodino_map(address_map &map) ATTR_COLD; + void gostop_map(address_map &map) ATTR_COLD; + void hacher_map(address_map &map) ATTR_COLD; + void hapfarm_map(address_map &map) ATTR_COLD; + void magibombd_map(address_map &map) ATTR_COLD; + void magibombg_map(address_map &map) ATTR_COLD; + void monkeyl_map(address_map &map) ATTR_COLD; + void speedmst_map(address_map &map) ATTR_COLD; + void winbingo_map(address_map &map) ATTR_COLD; + void wwitch_map(address_map &map) ATTR_COLD; + void zoo_map(address_map &map) ATTR_COLD; static const decryption_info gostop_table; static const decryption_info v102_px005_table; @@ -391,8 +391,8 @@ class astoneag_state : public zoo_state private: required_device m_ramdac; - void astoneag_map(address_map &map); - void ramdac_map(address_map &map); + void astoneag_map(address_map &map) ATTR_COLD; + void ramdac_map(address_map &map) ATTR_COLD; static const decryption_info v102_px012_table; void interleave_sprites_16x32(); diff --git a/src/mame/astrocorp/astropc.cpp b/src/mame/astrocorp/astropc.cpp index d87d61a9778..a5b83f4d10e 100644 --- a/src/mame/astrocorp/astropc.cpp +++ b/src/mame/astrocorp/astropc.cpp @@ -76,8 +76,8 @@ class astropc_state : public driver_device void init_astropc(); private: - void main_map(address_map &map); - void main_io(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void main_io(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_rtc; diff --git a/src/mame/astrocorp/hummer.cpp b/src/mame/astrocorp/hummer.cpp index 37a3c83f210..5502a813928 100644 --- a/src/mame/astrocorp/hummer.cpp +++ b/src/mame/astrocorp/hummer.cpp @@ -41,7 +41,7 @@ class hummer_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void program_map(address_map &map); + void program_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/atari/a2600.cpp b/src/mame/atari/a2600.cpp index b6e52f84c23..21b408f5d71 100644 --- a/src/mame/atari/a2600.cpp +++ b/src/mame/atari/a2600.cpp @@ -137,9 +137,9 @@ class a2600_base_state : public driver_device m_xtal(xtal) { } - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; - void a2600_mem(address_map &map); + void a2600_mem(address_map &map) ATTR_COLD; void a2600_base_ntsc(machine_config &config); void a2600_base_pal(machine_config &config); @@ -217,11 +217,11 @@ class a2600_pop_state : public a2600_base_state void a2600_pop(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: - void memory_map(address_map &map); + void memory_map(address_map &map) ATTR_COLD; uint8_t rom_switch_r(offs_t offset); void rom_switch_w(offs_t offset, uint8_t data); @@ -248,13 +248,13 @@ class tvboy_state : public a2600_base_state void tvboyn(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: void bank_write(offs_t offset, uint8_t data); - void tvboy_mem(address_map &map); + void tvboy_mem(address_map &map) ATTR_COLD; required_memory_bank m_crom; required_region_ptr m_rom; diff --git a/src/mame/atari/a7800.cpp b/src/mame/atari/a7800.cpp index 9b26811489c..39b4d3ed658 100644 --- a/src/mame/atari/a7800.cpp +++ b/src/mame/atari/a7800.cpp @@ -145,9 +145,9 @@ class a7800_state : public driver_device uint8_t riot_console_button_r(); void riot_button_pullup_w(uint8_t data); - virtual void machine_start() override; - virtual void machine_reset() override; - void a7800_mem(address_map &map); + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + void a7800_mem(address_map &map) ATTR_COLD; int m_lines; int m_ispal; diff --git a/src/mame/atari/akkaarrh.cpp b/src/mame/atari/akkaarrh.cpp index 66d9706a5e3..b8bf9e3652a 100644 --- a/src/mame/atari/akkaarrh.cpp +++ b/src/mame/atari/akkaarrh.cpp @@ -47,10 +47,10 @@ class akkaarrh_state : public driver_device void akkaarrh(machine_config &config); private: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; TILE_GET_INFO_MEMBER(get_tile_info); diff --git a/src/mame/atari/antic.h b/src/mame/atari/antic.h index 098229e7879..cfed2bb0540 100644 --- a/src/mame/atari/antic.h +++ b/src/mame/atari/antic.h @@ -46,8 +46,8 @@ class antic_device : public device_t, public device_video_interface antic_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // 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; template void set_gtia_tag(T &&tag) { m_gtia.set_tag(std::forward(tag)); } diff --git a/src/mame/atari/arcadecl.cpp b/src/mame/atari/arcadecl.cpp index 577848984f0..8fa4e61b50a 100644 --- a/src/mame/atari/arcadecl.cpp +++ b/src/mame/atari/arcadecl.cpp @@ -113,7 +113,7 @@ class sparkz_state : public driver_device TIMER_DEVICE_CALLBACK_MEMBER(scanline_interrupt); void scanline_int_ack_w(uint16_t data); void latch_w(uint8_t data); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; }; @@ -128,7 +128,7 @@ class arcadecl_state : public sparkz_state void arcadecl(machine_config &config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; virtual uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect) override; private: diff --git a/src/mame/atari/asic65.h b/src/mame/atari/asic65.h index f662fe0a266..6892559a4cc 100644 --- a/src/mame/atari/asic65.h +++ b/src/mame/atari/asic65.h @@ -43,13 +43,13 @@ class asic65_device : public device_t void stat_w(u16 data); u16 stat_r(); - void asic65_io_map(address_map &map); - void asic65_program_map(address_map &map); + void asic65_io_map(address_map &map) ATTR_COLD; + void asic65_program_map(address_map &map) ATTR_COLD; protected: // device-level overrides - 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; TIMER_CALLBACK_MEMBER(synced_write); diff --git a/src/mame/atari/asteroid.h b/src/mame/atari/asteroid.h index eec6619f143..15d49d9fe0d 100644 --- a/src/mame/atari/asteroid.h +++ b/src/mame/atari/asteroid.h @@ -76,8 +76,8 @@ class asteroid_state : public driver_device void init_asterock(); void init_asteroidb(); - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; void asteroid_base(machine_config &config); void asterock(machine_config &config); void asteroid(machine_config &config); @@ -86,9 +86,9 @@ class asteroid_state : public driver_device void asteroid_sound(machine_config &config); void astdelux_sound(machine_config &config); void llander_sound(machine_config &config); - void astdelux_map(address_map &map); - void asteroid_map(address_map &map); - void llander_map(address_map &map); + void astdelux_map(address_map &map) ATTR_COLD; + void asteroid_map(address_map &map) ATTR_COLD; + void llander_map(address_map &map) ATTR_COLD; }; #endif // MAME_ATARI_ASTEROID_H diff --git a/src/mame/atari/atari400.cpp b/src/mame/atari/atari400.cpp index d39fcb8d84a..e725f0705de 100644 --- a/src/mame/atari/atari400.cpp +++ b/src/mame/atari/atari400.cpp @@ -290,11 +290,11 @@ class a400_state : public atari_common_state void atari_common_nodac(machine_config &config); void atari_common(machine_config &config); - void a400_mem(address_map &map); + void a400_mem(address_map &map) ATTR_COLD; TIMER_DEVICE_CALLBACK_MEMBER(a400_interrupt); - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; // TODO: these two should really be inside ram_device instead template uint8_t ram_r(address_space &space, offs_t offset) @@ -337,14 +337,14 @@ class a400_state : public atari_common_state memory_view m_cart_rd4_view, m_cart_rd5_view; optional_device_array m_ctrl; - void hw_iomap(address_map &map); + void hw_iomap(address_map &map) ATTR_COLD; int m_cart_rd4_enabled = 0, m_cart_rd5_enabled = 0; void cart_rd4_w( int state ); void cart_rd5_w( int state ); - virtual void area_8000_map(address_map &map); - virtual void area_a000_map(address_map &map); + virtual void area_8000_map(address_map &map) ATTR_COLD; + virtual void area_a000_map(address_map &map) ATTR_COLD; }; class a800_state : public a400_state @@ -359,13 +359,13 @@ class a800_state : public a400_state void a800pal(machine_config &config); protected: -// virtual void machine_start() override; - virtual void machine_reset() override; +// virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_cartright; - void a800_mem(address_map &map); + void a800_mem(address_map &map) ATTR_COLD; }; class a1200xl_state : public a400_state @@ -382,10 +382,10 @@ class a1200xl_state : public a400_state protected: void atari_xl_common(machine_config &config); - void a1200xl_mem(address_map &map); + void a1200xl_mem(address_map &map) ATTR_COLD; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; TIMER_DEVICE_CALLBACK_MEMBER(xl_interrupt); @@ -414,13 +414,13 @@ class a800xl_state : public a1200xl_state void a800xlpal(machine_config &config); protected: - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; virtual void portb_cb(uint8_t data) override; - void a800xl_mem(address_map &map); + void a800xl_mem(address_map &map) ATTR_COLD; - virtual void area_a000_map(address_map &map) override; + virtual void area_a000_map(address_map &map) override ATTR_COLD; memory_view m_basic_view; }; @@ -447,16 +447,16 @@ class a130xe_state : public a800xl_state void a130xe(machine_config &config); private: - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; - void a130xe_mem(address_map &map); + void a130xe_mem(address_map &map) ATTR_COLD; virtual void portb_cb(uint8_t data) override; memory_view m_ext_view; required_device m_ext_bank; - void extram_map(address_map &map); + void extram_map(address_map &map) ATTR_COLD; }; @@ -471,14 +471,14 @@ class xegs_state : public a800xl_state void xegs(machine_config &config); private: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; virtual void portb_cb(uint8_t data) override; required_memory_bank m_bank; - void xegs_mem(address_map &map); + void xegs_mem(address_map &map) ATTR_COLD; }; class a5200_state : public a400_state @@ -493,14 +493,14 @@ class a5200_state : public a400_state void a5200a(machine_config &config); private: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; required_device m_cart; TIMER_DEVICE_CALLBACK_MEMBER(a5200_interrupt); - void a5200_mem(address_map &map); + void a5200_mem(address_map &map) ATTR_COLD; }; /************************************************************** diff --git a/src/mame/atari/atari400.h b/src/mame/atari/atari400.h index e9509eb9b61..9f82f18b558 100644 --- a/src/mame/atari/atari400.h +++ b/src/mame/atari/atari400.h @@ -45,7 +45,7 @@ class atari_common_state : public driver_device { } protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; void atari_palette(palette_device &palette) const; diff --git a/src/mame/atari/atarifb.h b/src/mame/atari/atarifb.h index 7d0d0626197..befabfe85d3 100644 --- a/src/mame/atari/atarifb.h +++ b/src/mame/atari/atarifb.h @@ -79,15 +79,15 @@ class atarifb_state : public driver_device void draw_playfield_and_alpha( bitmap_ind16 &bitmap, const rectangle &cliprect, int playfield_x_offset, int playfield_y_offset ); void draw_sprites_atarifb( bitmap_ind16 &bitmap, const rectangle &cliprect ); void draw_sprites_soccer( bitmap_ind16 &bitmap, const rectangle &cliprect ); - void abaseb_map(address_map &map); - void atarifb4_map(address_map &map); - void atarifb_map(address_map &map); - void soccer_map(address_map &map); + void abaseb_map(address_map &map) ATTR_COLD; + void atarifb4_map(address_map &map) ATTR_COLD; + void atarifb_map(address_map &map) ATTR_COLD; + void soccer_map(address_map &map) ATTR_COLD; protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: /* devices */ diff --git a/src/mame/atari/atarifdc.h b/src/mame/atari/atarifdc.h index 92d82485f51..d404eccfe0e 100644 --- a/src/mame/atari/atarifdc.h +++ b/src/mame/atari/atarifdc.h @@ -24,8 +24,8 @@ class atari_fdc_device : public device_t protected: // device-level overrides - 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; private: void clr_serout(int expect_data); diff --git a/src/mame/atari/atarig1.h b/src/mame/atari/atarig1.h index 59bc8400ff4..c9e5df83bae 100644 --- a/src/mame/atari/atarig1.h +++ b/src/mame/atari/atarig1.h @@ -45,7 +45,7 @@ class atarig1_state : public atarigen_state void init_pitfightb(); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: optional_device m_slapstic; @@ -80,7 +80,7 @@ class atarig1_state : public atarigen_state TILE_GET_INFO_MEMBER(get_alpha_tile_info); TILE_GET_INFO_MEMBER(get_playfield_tile_info); uint32_t screen_update_atarig1(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void main_map(address_map &map); - void pitfight_map(address_map &map); - void hydra_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void pitfight_map(address_map &map) ATTR_COLD; + void hydra_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/atari/atarig42.h b/src/mame/atari/atarig42.h index 203b224f1b1..a62f0c727c9 100644 --- a/src/mame/atari/atarig42.h +++ b/src/mame/atari/atarig42.h @@ -34,8 +34,8 @@ class atarig42_state : public atarigen_state { } protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; void video_int_ack_w(uint16_t data = 0); TIMER_DEVICE_CALLBACK_MEMBER(scanline_update); void a2d_select_w(offs_t offset, uint8_t data); @@ -47,7 +47,7 @@ class atarig42_state : public atarigen_state TILEMAP_MAPPER_MEMBER(atarig42_playfield_scan); uint32_t screen_update_atarig42(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void atarig42(machine_config &config); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; required_device m_jsa; diff --git a/src/mame/atari/atarigen.h b/src/mame/atari/atarigen.h index ffa8a6b6539..618e64bd203 100644 --- a/src/mame/atari/atarigen.h +++ b/src/mame/atari/atarigen.h @@ -26,8 +26,8 @@ class atarigen_state : public driver_device protected: // users must call through to these - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; // video helpers void halt_until_hblank_0(device_t &device, screen_device &screen); diff --git a/src/mame/atari/atarigt.h b/src/mame/atari/atarigt.h index f5bfb0f391d..1b730010acc 100644 --- a/src/mame/atari/atarigt.h +++ b/src/mame/atari/atarigt.h @@ -48,8 +48,8 @@ class atarigt_state : public atarigen_state void init_tmek(); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: @@ -118,7 +118,7 @@ class atarigt_state : public atarigen_state TILE_GET_INFO_MEMBER(get_playfield_tile_info); TILEMAP_MAPPER_MEMBER(playfield_scan); uint32_t screen_update_atarigt(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; void tmek_update_mode(offs_t offset); void tmek_protection_w(address_space &space, offs_t offset, uint16_t data); diff --git a/src/mame/atari/atarigx2.h b/src/mame/atari/atarigx2.h index 2b161156c2b..a62b85e681b 100644 --- a/src/mame/atari/atarigx2.h +++ b/src/mame/atari/atarigx2.h @@ -40,7 +40,7 @@ class atarigx2_state : public atarigen_state void atarigx2_0x400(machine_config &config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; void video_int_ack_w(uint32_t data = 0); TIMER_DEVICE_CALLBACK_MEMBER(scanline_update); uint32_t special_port2_r(); @@ -58,7 +58,7 @@ class atarigx2_state : public atarigen_state void atarigx2_mo_control_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); void atarigx2(machine_config &config); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; private: uint16_t m_playfield_base = 0U; diff --git a/src/mame/atari/atarijsa.h b/src/mame/atari/atarijsa.h index 1379082590c..12e2d595f1c 100644 --- a/src/mame/atari/atarijsa.h +++ b/src/mame/atari/atarijsa.h @@ -87,8 +87,8 @@ class atari_jsa_base_device : public device_t, 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; // internal helpers virtual void update_all_volumes() = 0; @@ -137,8 +137,8 @@ class atari_jsa_oki_base_device : public atari_jsa_base_device 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; // internal helpers virtual void update_all_volumes() override; @@ -179,13 +179,13 @@ class atari_jsa_i_device : public atari_jsa_base_device uint8_t pokey_r(offs_t offset); void pokey_w(offs_t offset, uint8_t data); - void atarijsa1_map(address_map &map); + void atarijsa1_map(address_map &map) ATTR_COLD; protected: // device level overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; // internal helpers virtual void update_all_volumes() override; @@ -212,11 +212,11 @@ class atari_jsa_ii_device : public atari_jsa_oki_base_device // read/write handlers uint8_t rdio_r(); - void atarijsa2_map(address_map &map); + void atarijsa2_map(address_map &map) ATTR_COLD; protected: // device level overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; required_ioport m_jsaii; }; @@ -230,8 +230,8 @@ class atari_jsa_iii_device : public atari_jsa_oki_base_device // construction/destruction atari_jsa_iii_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - void atarijsa3_map(address_map &map); - void jsa3_oki1_map(address_map &map); + void atarijsa3_map(address_map &map) ATTR_COLD; + void jsa3_oki1_map(address_map &map) ATTR_COLD; protected: // derived construction/destruction atari_jsa_iii_device(const machine_config &mconfig, device_type devtype, const char *tag, device_t *owner, uint32_t clock, int channels); @@ -242,8 +242,8 @@ class atari_jsa_iii_device : public atari_jsa_oki_base_device protected: // device level overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; required_ioport m_jsaiii; }; @@ -257,10 +257,10 @@ class atari_jsa_iiis_device : public atari_jsa_iii_device // construction/destruction atari_jsa_iiis_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - void jsa3_oki2_map(address_map &map); + void jsa3_oki2_map(address_map &map) ATTR_COLD; protected: // device level overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; diff --git a/src/mame/atari/atarimo.h b/src/mame/atari/atarimo.h index e6a267655e2..35b506d1115 100644 --- a/src/mame/atari/atarimo.h +++ b/src/mame/atari/atarimo.h @@ -114,8 +114,8 @@ class atari_motion_objects_device : public sprite16_device_ind16, 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; TIMER_CALLBACK_MEMBER(force_update); diff --git a/src/mame/atari/atarirle.h b/src/mame/atari/atarirle.h index fe69da2b571..2204ad61a40 100644 --- a/src/mame/atari/atarirle.h +++ b/src/mame/atari/atarirle.h @@ -93,8 +93,8 @@ class atari_rle_objects_device : public device_t, 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; private: // a sprite parameter, which is a word index + shift + mask diff --git a/src/mame/atari/atarisac.h b/src/mame/atari/atarisac.h index 6393855a7b6..ec02e84d5eb 100644 --- a/src/mame/atari/atarisac.h +++ b/src/mame/atari/atarisac.h @@ -39,10 +39,10 @@ class atari_sac_device : public atari_jsa_base_device protected: // device level overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; // internal helpers virtual void update_all_volumes() override; @@ -59,8 +59,8 @@ class atari_sac_device : public atari_jsa_base_device INTERRUPT_GEN_MEMBER(int_10k_gen); // address maps - void sac_6502_map(address_map &map); - void sac_68k_map(address_map &map); + void sac_6502_map(address_map &map) ATTR_COLD; + void sac_68k_map(address_map &map) ATTR_COLD; // devices required_device m_daccpu; diff --git a/src/mame/atari/atariscom.h b/src/mame/atari/atariscom.h index 0f3af40f8e2..dd270c5c411 100644 --- a/src/mame/atari/atariscom.h +++ b/src/mame/atari/atariscom.h @@ -67,8 +67,8 @@ class atari_sound_comm_device : public device_t TIMER_CALLBACK_MEMBER(delayed_6502_write); // 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; private: // configuration state diff --git a/src/mame/atari/atarist.cpp b/src/mame/atari/atarist.cpp index f1d1b0454f4..411a5ad4552 100644 --- a/src/mame/atari/atarist.cpp +++ b/src/mame/atari/atarist.cpp @@ -158,15 +158,15 @@ class st_state : public driver_device required_device m_screen; void common(machine_config &config); - void cpu_space_map(address_map &map); - void st_super_map(address_map &map); - void st_user_map(address_map &map); - void megast_super_map(address_map &map); + void cpu_space_map(address_map &map) ATTR_COLD; + void st_super_map(address_map &map) ATTR_COLD; + void st_user_map(address_map &map) ATTR_COLD; + void megast_super_map(address_map &map) ATTR_COLD; uint16_t fpu_r(); void fpu_w(uint16_t data); - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; }; class megast_state : public st_state @@ -236,9 +236,9 @@ class ste_state : public st_state void tt030(machine_config &config); void falcon(machine_config &config); void ste(machine_config &config); - void ste_super_map(address_map &map); + void ste_super_map(address_map &map) ATTR_COLD; protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; }; class megaste_state : public ste_state @@ -253,10 +253,10 @@ class megaste_state : public ste_state uint16_t m_cache = 0; void megaste(machine_config &config); - void megaste_super_map(address_map &map); + void megaste_super_map(address_map &map) ATTR_COLD; protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; }; class stbook_state : public ste_state @@ -274,9 +274,9 @@ class stbook_state : public ste_state [[maybe_unused]] void psg_pa_w(uint8_t data); uint8_t mfp_gpio_r(); - void stbook_map(address_map &map); + void stbook_map(address_map &map) ATTR_COLD; protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; }; diff --git a/src/mame/atari/atarist_v.h b/src/mame/atari/atarist_v.h index 6b0d4daac9a..7a44ebe892a 100644 --- a/src/mame/atari/atarist_v.h +++ b/src/mame/atari/atarist_v.h @@ -53,8 +53,8 @@ class stx_video_device : public device_t, public device_palette_interface, publi protected: stx_video_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 uint32_t palette_entries() const noexcept override { return 16; } private: @@ -116,7 +116,7 @@ class ste_video_device : public stx_video_device void shifter_pixelofs_w(uint8_t data); protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual uint32_t palette_entries() const noexcept override { return 512; } private: diff --git a/src/mame/atari/ataristb.h b/src/mame/atari/ataristb.h index dfda8e918f0..49383ad4faa 100644 --- a/src/mame/atari/ataristb.h +++ b/src/mame/atari/ataristb.h @@ -47,8 +47,8 @@ class st_blitter_device : public device_t void ctrl_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: void blitter_source(); diff --git a/src/mame/atari/atarisy1.h b/src/mame/atari/atarisy1.h index 842a08f0817..d769f2f04b9 100644 --- a/src/mame/atari/atarisy1.h +++ b/src/mame/atari/atarisy1.h @@ -67,9 +67,9 @@ class atarisy1_state : public driver_device void init_indytemp(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; required_device m_maincpu; required_device m_audiocpu; @@ -149,9 +149,9 @@ class atarisy1_state : public driver_device void add_speech(machine_config &config); void atarisy1(machine_config &config); - void main_map(address_map &map); - void sound_map(address_map &map); - void sound_ext_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; + void sound_ext_map(address_map &map) ATTR_COLD; void init_slapstic(); }; diff --git a/src/mame/atari/atarisy2.h b/src/mame/atari/atarisy2.h index cc58e5f9f97..7906b8099ca 100644 --- a/src/mame/atari/atarisy2.h +++ b/src/mame/atari/atarisy2.h @@ -62,9 +62,9 @@ class atarisy2_state : public driver_device void csprint(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: void update_interrupts(); @@ -153,6 +153,6 @@ class atarisy2_state : public driver_device static rgb_t RRRRGGGGBBBBIIII(uint32_t raw); static const atari_motion_objects_config s_mob_config; - void main_map(address_map &map); - void sound_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/atari/atarisy4.cpp b/src/mame/atari/atarisy4.cpp index 96f96e10506..5edf9cef255 100644 --- a/src/mame/atari/atarisy4.cpp +++ b/src/mame/atari/atarisy4.cpp @@ -130,9 +130,9 @@ class atarisy4_state : public driver_device void dsp0_bank_w(uint16_t data); uint16_t analog_r(); - virtual void machine_reset() override; - virtual void video_start() override; - virtual void video_reset() override; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; + virtual void video_reset() override ATTR_COLD; uint32_t screen_update_atarisy4(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); @@ -144,9 +144,9 @@ class atarisy4_state : public driver_device void load_ldafile(address_space &space, const uint8_t *file); void load_hexfile(address_space &space, const uint8_t *file); - void main_map(address_map &map); - void dsp0_map(address_map &map); - void dsp0_io_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void dsp0_map(address_map &map) ATTR_COLD; + void dsp0_io_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_dsp0; @@ -196,11 +196,11 @@ class airrace_state : public atarisy4_state int dsp1_bio_r(); void dsp1_bank_w(uint16_t data); - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; - void airrace_map(address_map &map); - void dsp1_map(address_map &map); - void dsp1_io_map(address_map &map); + void airrace_map(address_map &map) ATTR_COLD; + void dsp1_map(address_map &map) ATTR_COLD; + void dsp1_io_map(address_map &map) ATTR_COLD; private: required_device m_dsp1; diff --git a/src/mame/atari/atarivad.h b/src/mame/atari/atarivad.h index c71841a2069..bd2ab6c53f6 100644 --- a/src/mame/atari/atarivad.h +++ b/src/mame/atari/atarivad.h @@ -59,8 +59,8 @@ class atari_vad_device : public device_t, public device_video_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; private: // internal helpers diff --git a/src/mame/atari/atarixga.h b/src/mame/atari/atarixga.h index 34972771d15..3f0d0747504 100644 --- a/src/mame/atari/atarixga.h +++ b/src/mame/atari/atarixga.h @@ -42,8 +42,8 @@ class atari_136094_0072_device : public atari_xga_device virtual uint32_t read(offs_t offset, uint32_t mem_mask = ~0) override; protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: static const size_t RAM_WORDS = 2048; @@ -77,8 +77,8 @@ class atari_136095_0072_device : public atari_xga_device virtual uint32_t read(offs_t offset, uint32_t mem_mask = ~0) override; protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: static const size_t RAM_WORDS = 4096; diff --git a/src/mame/atari/atetris.cpp b/src/mame/atari/atetris.cpp index 1350f69f235..4258a1c3a86 100644 --- a/src/mame/atari/atetris.cpp +++ b/src/mame/atari/atetris.cpp @@ -144,9 +144,9 @@ class atetris_state : public driver_device void init_atetris(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; required_device m_maincpu; required_device m_gfxdecode; @@ -168,9 +168,9 @@ class atetris_state : public driver_device TIMER_CALLBACK_MEMBER(interrupt_gen); void reset_bank(); - void atetrisb2_map(address_map &map); - void atetrisb5_map(address_map &map); - void main_map(address_map &map); + void atetrisb2_map(address_map &map) ATTR_COLD; + void atetrisb5_map(address_map &map) ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; }; class atetris_bartop_state : public atetris_state @@ -186,7 +186,7 @@ class atetris_bartop_state : public atetris_state private: void output_w(uint8_t data); - void atetrisbp_map(address_map &map); + void atetrisbp_map(address_map &map) ATTR_COLD; }; class atetris_mcu_state : public atetris_state @@ -209,7 +209,7 @@ class atetris_mcu_state : public atetris_state void mcu_p2_w(uint8_t data); void mcu_reg_w(offs_t offset, uint8_t data); - void atetrisb3_map(address_map &map); + void atetrisb3_map(address_map &map) ATTR_COLD; required_device m_mcu; required_device_array m_soundlatch; diff --git a/src/mame/atari/avalnche.h b/src/mame/atari/avalnche.h index a52245f0f73..e9596ad9d20 100644 --- a/src/mame/atari/avalnche.h +++ b/src/mame/atari/avalnche.h @@ -39,13 +39,13 @@ class avalnche_state : public driver_device void credit_1_lamp_w(int state); void credit_2_lamp_w(int state); void start_lamp_w(int state); - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; TIMER_DEVICE_CALLBACK_MEMBER(nmi_16v); uint32_t screen_update_avalnche(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); void avalnche_noise_amplitude_w(uint8_t data); void catch_aud0_w(int state); void catch_aud1_w(int state); void catch_aud2_w(int state); - void catch_map(address_map &map); - void main_map(address_map &map); + void catch_map(address_map &map) ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/atari/badlands.h b/src/mame/atari/badlands.h index e7ab66f297a..130b3bfcee2 100644 --- a/src/mame/atari/badlands.h +++ b/src/mame/atari/badlands.h @@ -50,9 +50,9 @@ class badlands_state : public driver_device void init_badlands(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; required_device m_maincpu; required_device m_audiocpu; @@ -85,8 +85,8 @@ class badlands_state : public driver_device TIMER_DEVICE_CALLBACK_MEMBER(sound_scanline); static const atari_motion_objects_config s_mob_config; - void audio_map(address_map &map); - void main_map(address_map &map); + void audio_map(address_map &map) ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; private: uint8_t m_pedal_value[2]{}; @@ -110,12 +110,12 @@ class badlandsbl_state : public badlands_state TIMER_DEVICE_CALLBACK_MEMBER(bootleg_sound_scanline); void badlandsb(machine_config &config); - void bootleg_map(address_map &map); - void bootleg_audio_map(address_map &map); + void bootleg_map(address_map &map) ATTR_COLD; + void bootleg_audio_map(address_map &map) ATTR_COLD; uint32_t screen_update_badlandsbl(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); protected: - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; private: required_shared_ptr m_b_sharedram; diff --git a/src/mame/atari/badlands_ms.cpp b/src/mame/atari/badlands_ms.cpp index 40ad8efd5b9..12fe2db28b7 100644 --- a/src/mame/atari/badlands_ms.cpp +++ b/src/mame/atari/badlands_ms.cpp @@ -51,7 +51,7 @@ class badlands_ms_state : public driver_device void badlandsm(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_maincpu; @@ -59,7 +59,7 @@ class badlands_ms_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/atari/bartop52.cpp b/src/mame/atari/bartop52.cpp index 7c4353c3e57..d5da92a460b 100644 --- a/src/mame/atari/bartop52.cpp +++ b/src/mame/atari/bartop52.cpp @@ -44,8 +44,8 @@ class bartop52_state : public atari_common_state protected: TIMER_DEVICE_CALLBACK_MEMBER( bartop_interrupt ); - virtual void machine_reset() override; - void a5200_mem(address_map &map); + virtual void machine_reset() override ATTR_COLD; + void a5200_mem(address_map &map) ATTR_COLD; }; diff --git a/src/mame/atari/batman.cpp b/src/mame/atari/batman.cpp index 7cb2d69e4c4..1e49ec5289d 100644 --- a/src/mame/atari/batman.cpp +++ b/src/mame/atari/batman.cpp @@ -53,7 +53,7 @@ class batman_state : public driver_device void batman(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_maincpu; @@ -73,7 +73,7 @@ class batman_state : public driver_device TILE_GET_INFO_MEMBER(get_playfield2_tile_info); uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/atari/beathead.cpp b/src/mame/atari/beathead.cpp index f6f99c9da7b..99fa1a137b2 100644 --- a/src/mame/atari/beathead.cpp +++ b/src/mame/atari/beathead.cpp @@ -136,8 +136,8 @@ class beathead_state : public driver_device void beathead(machine_config &config); protected: - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -182,7 +182,7 @@ class beathead_state : public driver_device TIMER_DEVICE_CALLBACK_MEMBER(scanline_callback); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); }; diff --git a/src/mame/atari/blstroid.cpp b/src/mame/atari/blstroid.cpp index 010dc3c2363..a54a056ff1d 100644 --- a/src/mame/atari/blstroid.cpp +++ b/src/mame/atari/blstroid.cpp @@ -52,8 +52,8 @@ class blstroid_state : public atarigen_state void blstroid(machine_config &config); protected: - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: TIMER_CALLBACK_MEMBER(irq_off); @@ -65,7 +65,7 @@ class blstroid_state : public atarigen_state TILE_GET_INFO_MEMBER(get_playfield_tile_info); uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; required_device m_playfield_tilemap; required_device m_jsa; diff --git a/src/mame/atari/boxer.cpp b/src/mame/atari/boxer.cpp index 5d74dc8884f..e1652db0724 100644 --- a/src/mame/atari/boxer.cpp +++ b/src/mame/atari/boxer.cpp @@ -44,10 +44,10 @@ class boxer_state : public driver_device void boxer(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; - void boxer_map(address_map &map); + void boxer_map(address_map &map) ATTR_COLD; uint8_t input_r(offs_t offset); uint8_t misc_r(offs_t offset); diff --git a/src/mame/atari/bsktball.h b/src/mame/atari/bsktball.h index d2a73cbbcfa..47853d93d0b 100644 --- a/src/mame/atari/bsktball.h +++ b/src/mame/atari/bsktball.h @@ -55,10 +55,10 @@ class bsktball_state : public driver_device void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; - void main_map(address_map &map); + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; private: required_device m_maincpu; diff --git a/src/mame/atari/bwidow.h b/src/mame/atari/bwidow.h index 8a829b86480..618a262824b 100644 --- a/src/mame/atari/bwidow.h +++ b/src/mame/atari/bwidow.h @@ -46,12 +46,12 @@ class bwidow_state : public driver_device void earom_write(offs_t offset, uint8_t data); void earom_control_w(uint8_t data); - void bwidow_map(address_map &map); - void bwidowp_map(address_map &map); - void spacduel_map(address_map &map); + void bwidow_map(address_map &map) ATTR_COLD; + void bwidowp_map(address_map &map) ATTR_COLD; + void spacduel_map(address_map &map) ATTR_COLD; virtual void machine_start() override { m_leds.resolve(); } - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; int m_lastdata = 0; required_device m_maincpu; diff --git a/src/mame/atari/bzone.h b/src/mame/atari/bzone.h index 7f7106489fd..6754c95765f 100644 --- a/src/mame/atari/bzone.h +++ b/src/mame/atari/bzone.h @@ -40,15 +40,15 @@ class bzone_state : public driver_device void bzone_coin_counter_w(offs_t offset, uint8_t data); uint8_t analog_data_r(); void analog_select_w(offs_t offset, uint8_t data); - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; INTERRUPT_GEN_MEMBER(bzone_interrupt); void bzone_sounds_w(uint8_t data); void bzone_base(machine_config &config); void bzone_audio(machine_config &config); - void bzone_map(address_map &map); - void bradley_map(address_map &map); - void dsrtwars_map(address_map &map); + void bzone_map(address_map &map) ATTR_COLD; + void bradley_map(address_map &map) ATTR_COLD; + void dsrtwars_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_mathbox; @@ -80,10 +80,10 @@ class redbaron_state : public bzone_state void earom_write(offs_t offset, uint8_t data); void earom_control_w(uint8_t data); - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; - void redbaron_map(address_map &map); + void redbaron_map(address_map &map) ATTR_COLD; private: required_device m_earom; diff --git a/src/mame/atari/canyon.cpp b/src/mame/atari/canyon.cpp index adda2994f15..cd68166f29f 100644 --- a/src/mame/atari/canyon.cpp +++ b/src/mame/atari/canyon.cpp @@ -74,7 +74,7 @@ class canyon_state : public driver_device void canyon(machine_config &config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: // memory pointers @@ -105,7 +105,7 @@ class canyon_state : public driver_device void explode_w(uint8_t data); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); void draw_bombs(bitmap_ind16 &bitmap, const rectangle &cliprect); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/atari/cball.cpp b/src/mame/atari/cball.cpp index 743816083f3..51b50281bb6 100644 --- a/src/mame/atari/cball.cpp +++ b/src/mame/atari/cball.cpp @@ -48,15 +48,15 @@ class cball_state : public driver_device TILE_GET_INFO_MEMBER(get_tile_info); - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; void cball_palette(palette_device &palette) const; uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void cball(machine_config &config); - void cpu_map(address_map &map); + void cpu_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/atari/ccastles.cpp b/src/mame/atari/ccastles.cpp index fa1a33e4ef0..47de3815df2 100644 --- a/src/mame/atari/ccastles.cpp +++ b/src/mame/atari/ccastles.cpp @@ -161,9 +161,9 @@ class ccastles_state : public driver_device void ccastles(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: // devices @@ -223,7 +223,7 @@ class ccastles_state : public driver_device inline void write_vram(uint16_t addr, uint8_t data, uint8_t bitmd, uint8_t pixba); inline void bitmode_autoinc(); inline void schedule_next_irq(int curscanline); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/atari/centiped.h b/src/mame/atari/centiped.h index 238e0685c5a..3c65d62f0ca 100644 --- a/src/mame/atari/centiped.h +++ b/src/mame/atari/centiped.h @@ -58,7 +58,7 @@ class centiped_state : public driver_device tilemap_t *m_bg_tilemap = nullptr; // drivers/centiped.cpp - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; void irq_ack_w(uint8_t data); uint8_t centiped_IN0_r(); @@ -135,18 +135,18 @@ class centiped_state : public driver_device void init_common(); void milliped_set_color(offs_t offset, uint8_t data); inline int read_trackball(int idx, int switch_port); - void bullsdrt_data_map(address_map &map); - void bullsdrt_map(address_map &map); - void bullsdrt_port_map(address_map &map); - void caterplr_map(address_map &map); - void centipdb_map(address_map &map); - void centiped_base_map(address_map &map); - void centiped_map(address_map &map); - void centipedj_map(address_map &map); - void magworm_map(address_map &map); - void mazeinv_map(address_map &map); - void milliped_map(address_map &map); - void warlords_map(address_map &map); + void bullsdrt_data_map(address_map &map) ATTR_COLD; + void bullsdrt_map(address_map &map) ATTR_COLD; + void bullsdrt_port_map(address_map &map) ATTR_COLD; + void caterplr_map(address_map &map) ATTR_COLD; + void centipdb_map(address_map &map) ATTR_COLD; + void centiped_base_map(address_map &map) ATTR_COLD; + void centiped_map(address_map &map) ATTR_COLD; + void centipedj_map(address_map &map) ATTR_COLD; + void magworm_map(address_map &map) ATTR_COLD; + void mazeinv_map(address_map &map) ATTR_COLD; + void milliped_map(address_map &map) ATTR_COLD; + void warlords_map(address_map &map) ATTR_COLD; }; @@ -164,7 +164,7 @@ class multiped_state : public centiped_state void init_multiped(); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_eeprom; @@ -182,7 +182,7 @@ class multiped_state : public centiped_state void multiped_gfxbank_w(uint8_t data); - void multiped_map(address_map &map); + void multiped_map(address_map &map) ATTR_COLD; }; #endif // MAME_ATARI_CENTIPED_H diff --git a/src/mame/atari/cloak.cpp b/src/mame/atari/cloak.cpp index 46b7fba2c90..cd64b00190e 100644 --- a/src/mame/atari/cloak.cpp +++ b/src/mame/atari/cloak.cpp @@ -153,7 +153,7 @@ class cloak_state : public driver_device void cloak(machine_config &config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -188,8 +188,8 @@ class cloak_state : public driver_device void set_pen(int i); void draw_bitmap(bitmap_ind16 &bitmap, const rectangle &cliprect); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); - void master_map(address_map &map); - void slave_map(address_map &map); + void master_map(address_map &map) ATTR_COLD; + void slave_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/atari/cloud9.cpp b/src/mame/atari/cloud9.cpp index 75664061eb3..699992a9654 100644 --- a/src/mame/atari/cloud9.cpp +++ b/src/mame/atari/cloud9.cpp @@ -132,9 +132,9 @@ class cloud9_state : public driver_device void cloud9(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: // devices @@ -181,7 +181,7 @@ class cloud9_state : public driver_device inline void write_vram(uint16_t addr, uint8_t data, uint8_t bitmd, uint8_t pixba); inline void bitmode_autoinc(); inline void schedule_next_irq(int curscanline); - void program_map(address_map &map); + void program_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/atari/cmmb.cpp b/src/mame/atari/cmmb.cpp index 6b7c55e5231..bcef8640b75 100644 --- a/src/mame/atari/cmmb.cpp +++ b/src/mame/atari/cmmb.cpp @@ -75,8 +75,8 @@ class cmmb_state : public driver_device void cmmb(machine_config &config); protected: - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -92,8 +92,8 @@ class cmmb_state : public driver_device uint8_t flash_r(offs_t offset); void flash_w(offs_t offset, uint8_t data); - void cmmb_map(address_map &map); - void bnk2000_map(address_map &map); + void cmmb_map(address_map &map) ATTR_COLD; + void bnk2000_map(address_map &map) ATTR_COLD; void vram_w(offs_t offset, uint8_t data); void charram_w(offs_t offset, uint8_t data); diff --git a/src/mame/atari/cops.cpp b/src/mame/atari/cops.cpp index e27b3d1c544..20639bbb08f 100644 --- a/src/mame/atari/cops.cpp +++ b/src/mame/atari/cops.cpp @@ -89,15 +89,15 @@ class cops_state : public driver_device void revlatns(machine_config &config); void base(machine_config &config); void cops(machine_config &config); - void cops_map(address_map &map); - void revlatns_map(address_map &map); + void cops_map(address_map &map) ATTR_COLD; + void revlatns_map(address_map &map) ATTR_COLD; void init_cops(); protected: // driver_device overrides - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: // screen updates diff --git a/src/mame/atari/copsnrob.cpp b/src/mame/atari/copsnrob.cpp index 06803d07071..dcc0b8fbc12 100644 --- a/src/mame/atari/copsnrob.cpp +++ b/src/mame/atari/copsnrob.cpp @@ -96,8 +96,8 @@ class copsnrob_state : public driver_device void copsnrob(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_shared_ptr m_trucky; @@ -117,7 +117,7 @@ class copsnrob_state : public driver_device uint8_t m_misc = 0U; - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; uint8_t misc_r(); void misc2_w(uint8_t data); diff --git a/src/mame/atari/cyberbal.cpp b/src/mame/atari/cyberbal.cpp index 9e4450c4e99..03fb435d085 100644 --- a/src/mame/atari/cyberbal.cpp +++ b/src/mame/atari/cyberbal.cpp @@ -57,7 +57,7 @@ class cyberbal_base_state : public driver_device { } protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; required_device m_maincpu; required_device m_gfxdecode; @@ -94,7 +94,7 @@ class cyberbal2p_state : public cyberbal_base_state void cyberbal2p(machine_config &config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: required_device m_screen; @@ -110,7 +110,7 @@ class cyberbal2p_state : public cyberbal_base_state uint32_t screen_update_cyberbal2p(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); // memory maps - void cyberbal2p_map(address_map &map); + void cyberbal2p_map(address_map &map) ATTR_COLD; }; @@ -136,8 +136,8 @@ class cyberbal_state : public cyberbal_base_state void cyberbalt(machine_config &config); protected: - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: optional_device m_slapstic; @@ -164,9 +164,9 @@ class cyberbal_state : public cyberbal_base_state uint32_t screen_update_cyberbal_right(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); // memory maps - void main_map(address_map &map); - void tournament_map(address_map &map); - void extra_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void tournament_map(address_map &map) ATTR_COLD; + void extra_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/atari/cybstorm.cpp b/src/mame/atari/cybstorm.cpp index 5f9d8108fe8..c9ef2383abc 100644 --- a/src/mame/atari/cybstorm.cpp +++ b/src/mame/atari/cybstorm.cpp @@ -53,8 +53,8 @@ class cybstorm_state : public driver_device void cybstorm(machine_config &config); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -78,8 +78,8 @@ class cybstorm_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void round2(machine_config &config); - void main_map(address_map &map); - void vadbank_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void vadbank_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/atari/destroyr.cpp b/src/mame/atari/destroyr.cpp index d6b77b65102..88261ac59d4 100644 --- a/src/mame/atari/destroyr.cpp +++ b/src/mame/atari/destroyr.cpp @@ -56,10 +56,10 @@ class destroyr_state : public driver_device void destroyr(machine_config &config); private: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; void misc_w(uint8_t data); void cursor_load_w(uint8_t data); diff --git a/src/mame/atari/dragrace.cpp b/src/mame/atari/dragrace.cpp index 6e12e53bf97..33db8bb9577 100644 --- a/src/mame/atari/dragrace.cpp +++ b/src/mame/atari/dragrace.cpp @@ -50,9 +50,9 @@ class dragrace_state : public driver_device void dragrace(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: // devices @@ -93,7 +93,7 @@ class dragrace_state : public driver_device TIMER_CALLBACK_MEMBER(scanline_irq); TIMER_CALLBACK_MEMBER(irq_off); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/atari/eprom.cpp b/src/mame/atari/eprom.cpp index a05ba642f60..4fdf3d69d38 100644 --- a/src/mame/atari/eprom.cpp +++ b/src/mame/atari/eprom.cpp @@ -69,8 +69,8 @@ class eprom_state : public driver_device void klaxp(machine_config &config); protected: - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -101,9 +101,9 @@ class eprom_state : public driver_device uint32_t screen_update_eprom(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); uint32_t screen_update_guts(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void update_palette(); - void extra_map(address_map &map); - void guts_map(address_map &map); - void main_map(address_map &map); + void extra_map(address_map &map) ATTR_COLD; + void guts_map(address_map &map) ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/atari/firefox.cpp b/src/mame/atari/firefox.cpp index c74200d882a..afb74cf0511 100644 --- a/src/mame/atari/firefox.cpp +++ b/src/mame/atari/firefox.cpp @@ -107,10 +107,10 @@ class firefox_state : public driver_device void set_rgba( int start, int index, unsigned char *palette_ram ); void firq_gen(philips_22vp931_device &laserdisc, int state); - virtual void machine_start() override; - virtual void video_start() override; - void audio_map(address_map &map); - void main_map(address_map &map); + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; + void audio_map(address_map &map) ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; required_device m_laserdisc; required_shared_ptr m_tileram; diff --git a/src/mame/atari/firetrk.cpp b/src/mame/atari/firetrk.cpp index 15d5910b807..9b93baa1708 100644 --- a/src/mame/atari/firetrk.cpp +++ b/src/mame/atari/firetrk.cpp @@ -67,9 +67,9 @@ class firetrk_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(gear_changed); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; required_device m_maincpu; required_device m_watchdog; @@ -136,7 +136,7 @@ class firetrk_state : public driver_device TILE_GET_INFO_MEMBER(get_tile_info1); TILE_GET_INFO_MEMBER(get_tile_info2); - void program_map(address_map &map); + void program_map(address_map &map) ATTR_COLD; }; class montecar_state : public firetrk_state @@ -147,7 +147,7 @@ class montecar_state : public firetrk_state void montecar(machine_config &config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: void output_1_w(uint8_t data); @@ -165,7 +165,7 @@ class montecar_state : public firetrk_state TILE_GET_INFO_MEMBER(get_tile_info1); TILE_GET_INFO_MEMBER(get_tile_info2); - void program_map(address_map &map); + void program_map(address_map &map) ATTR_COLD; }; class superbug_state : public firetrk_state @@ -176,7 +176,7 @@ class superbug_state : public firetrk_state void superbug(machine_config &config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: void output_w(offs_t offset, uint8_t data); @@ -187,7 +187,7 @@ class superbug_state : public firetrk_state TILE_GET_INFO_MEMBER(get_tile_info1); TILE_GET_INFO_MEMBER(get_tile_info2); - void program_map(address_map &map); + void program_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/atari/flyball.cpp b/src/mame/atari/flyball.cpp index a9de0028c13..70aa8ea5993 100644 --- a/src/mame/atari/flyball.cpp +++ b/src/mame/atari/flyball.cpp @@ -69,9 +69,9 @@ class flyball_state : public driver_device TILEMAP_MAPPER_MEMBER(get_memory_offset); TILE_GET_INFO_MEMBER(get_tile_info); - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; void flyball_palette(palette_device &palette) const; uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); @@ -80,7 +80,7 @@ class flyball_state : public driver_device TIMER_CALLBACK_MEMBER(pot_clear_callback); TIMER_CALLBACK_MEMBER(quarter_callback); - void flyball_map(address_map &map); + void flyball_map(address_map &map) ATTR_COLD; /* devices */ required_device m_maincpu; diff --git a/src/mame/atari/foodf.cpp b/src/mame/atari/foodf.cpp index 218bea50ae3..672c52ddf25 100644 --- a/src/mame/atari/foodf.cpp +++ b/src/mame/atari/foodf.cpp @@ -114,9 +114,9 @@ class foodf_state : public driver_device void foodf(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -150,7 +150,7 @@ class foodf_state : public driver_device TIMER_DEVICE_CALLBACK_MEMBER(scanline_update_timer); void video_int_write_line(int state); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/atari/gauntlet.cpp b/src/mame/atari/gauntlet.cpp index 77f365aefcb..5f3d239c633 100644 --- a/src/mame/atari/gauntlet.cpp +++ b/src/mame/atari/gauntlet.cpp @@ -178,7 +178,7 @@ class gauntlet_state : public driver_device void gauntlet2(machine_config &config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -225,8 +225,8 @@ class gauntlet_state : public driver_device void yscroll_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); void base(machine_config &config); - void main_map(address_map &map); - void sound_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; void slapstic_tweak(offs_t offset, uint16_t &, uint16_t); }; diff --git a/src/mame/atari/gtia.h b/src/mame/atari/gtia.h index eb8ffa67557..86192d6bb87 100644 --- a/src/mame/atari/gtia.h +++ b/src/mame/atari/gtia.h @@ -52,8 +52,8 @@ class gtia_device : public device_t 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; void gtia_postload(); diff --git a/src/mame/atari/gumrally.cpp b/src/mame/atari/gumrally.cpp index 45633820979..fb64aa75e71 100644 --- a/src/mame/atari/gumrally.cpp +++ b/src/mame/atari/gumrally.cpp @@ -88,7 +88,7 @@ class gumrally_state : public driver_device private: required_device m_maincpu; - void prg_map(address_map &map); + void prg_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/atari/harddriv.h b/src/mame/atari/harddriv.h index cbc8455d663..747c39e070b 100644 --- a/src/mame/atari/harddriv.h +++ b/src/mame/atari/harddriv.h @@ -267,23 +267,23 @@ class harddriv_state : public device_t void hdds3xdsp_serial_tx_callback(uint32_t data); uint32_t hdds3xdsp_serial_rx_callback(); - void adsp_data_map(address_map &map); - void adsp_program_map(address_map &map); - void driver_68k_map(address_map &map); - void driver_gsp_map(address_map &map); - void driver_msp_map(address_map &map); - void ds3_data_map(address_map &map); - void ds3_program_map(address_map &map); - void ds3sdsp_data_map(address_map &map); - void ds3sdsp_program_map(address_map &map); - void ds3xdsp_data_map(address_map &map); - void ds3xdsp_program_map(address_map &map); - void dsk2_dsp32_map(address_map &map); - void dsk_dsp32_map(address_map &map); - void multisync2_68k_map(address_map &map); - void multisync2_gsp_map(address_map &map); - void multisync_68k_map(address_map &map); - void multisync_gsp_map(address_map &map); + void adsp_data_map(address_map &map) ATTR_COLD; + void adsp_program_map(address_map &map) ATTR_COLD; + void driver_68k_map(address_map &map) ATTR_COLD; + void driver_gsp_map(address_map &map) ATTR_COLD; + void driver_msp_map(address_map &map) ATTR_COLD; + void ds3_data_map(address_map &map) ATTR_COLD; + void ds3_program_map(address_map &map) ATTR_COLD; + void ds3sdsp_data_map(address_map &map) ATTR_COLD; + void ds3sdsp_program_map(address_map &map) ATTR_COLD; + void ds3xdsp_data_map(address_map &map) ATTR_COLD; + void ds3xdsp_program_map(address_map &map) ATTR_COLD; + void dsk2_dsp32_map(address_map &map) ATTR_COLD; + void dsk_dsp32_map(address_map &map) ATTR_COLD; + void multisync2_68k_map(address_map &map) ATTR_COLD; + void multisync2_gsp_map(address_map &map) ATTR_COLD; + void multisync_68k_map(address_map &map) ATTR_COLD; + void multisync_gsp_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_gsp; @@ -497,8 +497,8 @@ class harddriv_state : public device_t optional_device m_rs232; protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; }; class harddriv_sound_board_device : public device_t @@ -543,13 +543,13 @@ class harddriv_sound_board_device : public device_t uint16_t hdsnddsp_comram_r(); uint16_t hdsnddsp_compare_r(offs_t offset); - void driversnd_68k_map(address_map &map); - void driversnd_dsp_io_map(address_map &map); - void driversnd_dsp_program_map(address_map &map); + void driversnd_68k_map(address_map &map) ATTR_COLD; + void driversnd_dsp_io_map(address_map &map) ATTR_COLD; + void driversnd_dsp_program_map(address_map &map) ATTR_COLD; - 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; required_device m_soundcpu; required_device m_latch; @@ -586,8 +586,8 @@ class harddriv_board_device_state : public harddriv_state harddriv_board_device_state(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; // virtual void device_reset(); }; @@ -600,8 +600,8 @@ class harddrivc_board_device_state : public harddriv_state harddrivc_board_device_state(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; // virtual void device_reset(); }; @@ -616,8 +616,8 @@ class racedriv_board_device_state : public harddriv_state protected: racedriv_board_device_state(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; // virtual void device_reset(); }; @@ -627,7 +627,7 @@ class racedrivb1_board_device_state : public racedriv_board_device_state racedrivb1_board_device_state(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; }; @@ -641,8 +641,8 @@ class racedrivc_board_device_state : public harddriv_state protected: racedrivc_board_device_state(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; // virtual void device_reset(); }; @@ -652,7 +652,7 @@ class racedrivc1_board_device_state : public racedrivc_board_device_state racedrivc1_board_device_state(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; }; class racedrivc_panorama_side_board_device_state : public racedrivc_board_device_state @@ -661,8 +661,8 @@ class racedrivc_panorama_side_board_device_state : public racedrivc_board_devic racedrivc_panorama_side_board_device_state(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; }; @@ -674,8 +674,8 @@ class stunrun_board_device_state : public harddriv_state stunrun_board_device_state(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; // virtual void device_reset(); }; @@ -690,8 +690,8 @@ class steeltal_board_device_state : public harddriv_state protected: steeltal_board_device_state(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; // virtual void device_reset(); }; @@ -701,7 +701,7 @@ class steeltal1_board_device_state : public steeltal_board_device_state steeltal1_board_device_state(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; }; class steeltalp_board_device_state : public steeltal_board_device_state @@ -710,7 +710,7 @@ class steeltalp_board_device_state : public steeltal_board_device_state steeltalp_board_device_state(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; }; @@ -722,8 +722,8 @@ class strtdriv_board_device_state : public harddriv_state strtdriv_board_device_state(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; // virtual void device_reset(); }; @@ -738,8 +738,8 @@ class hdrivair_board_device_state : public harddriv_state protected: hdrivair_board_device_state(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; // virtual void device_reset(); }; @@ -748,7 +748,7 @@ class hdrivairp_board_device_state : public hdrivair_board_device_state public: hdrivairp_board_device_state(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; }; #endif // MAME_ATARI_HARDDRIV_H diff --git a/src/mame/atari/hitparade.cpp b/src/mame/atari/hitparade.cpp index 52b70a31561..5aca3be7c75 100644 --- a/src/mame/atari/hitparade.cpp +++ b/src/mame/atari/hitparade.cpp @@ -52,7 +52,7 @@ class hitpar_state : public driver_device void hitpar(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_maincpu; diff --git a/src/mame/atari/irobot.h b/src/mame/atari/irobot.h index 9bcbaf6bcf9..7267fb798cb 100644 --- a/src/mame/atari/irobot.h +++ b/src/mame/atari/irobot.h @@ -56,10 +56,10 @@ class irobot_state : public driver_device uint8_t ramsel; }; - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; - void irobot_map(address_map &map); + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; + void irobot_map(address_map &map) ATTR_COLD; void irobot_clearirq_w(uint8_t data); void irobot_clearfirq_w(uint8_t data); diff --git a/src/mame/atari/jag_blitter.h b/src/mame/atari/jag_blitter.h index 8fb7ed33f6f..4fe10bc921c 100644 --- a/src/mame/atari/jag_blitter.h +++ b/src/mame/atari/jag_blitter.h @@ -39,8 +39,8 @@ class jag_blitter_device : public device_t, protected: // device-level overrides //virtual void device_validity_check(validity_checker &valid) const override; - 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 space_config_vector memory_space_config() const override; const address_space_config m_space_config; @@ -48,7 +48,7 @@ class jag_blitter_device : public device_t, // address_space *m_host_space; private: - void regs_map(address_map &map); + void regs_map(address_map &map) ATTR_COLD; void a1_base_w(offs_t offset, u32 data, u32 mem_mask = ~0); void a1_xstep_w(offs_t offset, u16 data, u16 mem_mask = ~0); diff --git a/src/mame/atari/jaguar.h b/src/mame/atari/jaguar.h index 0829d406786..d738ef7f832 100644 --- a/src/mame/atari/jaguar.h +++ b/src/mame/atari/jaguar.h @@ -103,14 +103,14 @@ class jaguar_state : public driver_device void init_area51a(); protected: - void console_base_map(address_map &map); - void console_base_gpu_map(address_map &map); + void console_base_map(address_map &map) ATTR_COLD; + void console_base_gpu_map(address_map &map) ATTR_COLD; // device overrides - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; virtual void sound_start() override; - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; virtual void device_postload(); void video_config(machine_config &config, const XTAL clock); @@ -274,16 +274,16 @@ class jaguar_state : public driver_device std::pair quickload_cb(snapshot_image_device &image); DECLARE_DEVICE_IMAGE_LOAD_MEMBER( cart_load ); - void cpu_space_map(address_map &map); - void dsp_map(address_map &map); - void dsp_rom_map(address_map &map); - void gpu_map(address_map &map); - void gpu_rom_map(address_map &map); - void jag_gpu_dsp_map(address_map &map); - void jaguar_map(address_map &map); - void m68020_map(address_map &map); - void r3000_map(address_map &map); - void r3000_rom_map(address_map &map); + void cpu_space_map(address_map &map) ATTR_COLD; + void dsp_map(address_map &map) ATTR_COLD; + void dsp_rom_map(address_map &map) ATTR_COLD; + void gpu_map(address_map &map) ATTR_COLD; + void gpu_rom_map(address_map &map) ATTR_COLD; + void jag_gpu_dsp_map(address_map &map) ATTR_COLD; + void jaguar_map(address_map &map) ATTR_COLD; + void m68020_map(address_map &map) ATTR_COLD; + void r3000_map(address_map &map) ATTR_COLD; + void r3000_rom_map(address_map &map) ATTR_COLD; void gpu_suspend() { m_gpu->suspend(SUSPEND_REASON_SPIN, 1); } void gpu_resume() { m_gpu->resume(SUSPEND_REASON_SPIN); } @@ -384,7 +384,7 @@ class jaguarcd_state : public jaguar_state void init_jaguarcd(); protected: - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; private: uint16_t butch_regs_r16(offs_t offset); @@ -394,8 +394,8 @@ class jaguarcd_state : public jaguar_state uint32_t cd_bios_r(offs_t offset); - void jaguarcd_map(address_map &map); - void jagcd_gpu_dsp_map(address_map &map); + void jaguarcd_map(address_map &map) ATTR_COLD; + void jagcd_gpu_dsp_map(address_map &map) ATTR_COLD; // devices required_device m_cdrom; diff --git a/src/mame/atari/jedi.cpp b/src/mame/atari/jedi.cpp index bee56f30b3c..f2952c578e6 100644 --- a/src/mame/atari/jedi.cpp +++ b/src/mame/atari/jedi.cpp @@ -168,9 +168,9 @@ class jedi_state : public driver_device void jedi(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_shared_ptr m_backgroundram; @@ -226,8 +226,8 @@ class jedi_state : public driver_device void draw_background_and_text(bitmap_rgb32 &bitmap, const rectangle &cliprect); void draw_sprites(bitmap_rgb32 &bitmap, const rectangle &cliprect); - void audio_map(address_map &map); - void main_map(address_map &map); + void audio_map(address_map &map) ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/atari/klax.cpp b/src/mame/atari/klax.cpp index 8b73aea39a0..34be191554b 100644 --- a/src/mame/atari/klax.cpp +++ b/src/mame/atari/klax.cpp @@ -77,7 +77,7 @@ class klax_state : public driver_device TILE_GET_INFO_MEMBER(get_playfield_tile_info); u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void klax_map(address_map &map); + void klax_map(address_map &map) ATTR_COLD; }; class klax_bootleg_state : public klax_state @@ -94,13 +94,13 @@ class klax_bootleg_state : public klax_state void klax5bl(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: void m5205_int1(int state); - void bootleg_sound_map(address_map &map); - void klax5bl_map(address_map &map); + void bootleg_sound_map(address_map &map) ATTR_COLD; + void klax5bl_map(address_map &map) ATTR_COLD; u16 audio_ram_r(offs_t offset); void audio_ram_w(offs_t offset, u16 data); diff --git a/src/mame/atari/liberatr.cpp b/src/mame/atari/liberatr.cpp index 8352bcf9554..e6db26f9d2a 100644 --- a/src/mame/atari/liberatr.cpp +++ b/src/mame/atari/liberatr.cpp @@ -177,9 +177,9 @@ class liberatr_state : public driver_device void liberatr(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: // vector and early raster EAROM interface @@ -262,8 +262,8 @@ class liberatr_state : public driver_device void earom_w(offs_t offset, uint8_t data); void earom_control_w(uint8_t data); - void liberatp_map(address_map &map); - void liberatr_map(address_map &map); + void liberatp_map(address_map &map) ATTR_COLD; + void liberatr_map(address_map &map) ATTR_COLD; void init_planet(planet &liberatr_planet, uint8_t *planet_rom); void get_pens(pen_t *pens); diff --git a/src/mame/atari/lynx.h b/src/mame/atari/lynx.h index f18addbcf75..b349f09d395 100644 --- a/src/mame/atari/lynx.h +++ b/src/mame/atari/lynx.h @@ -45,9 +45,9 @@ class lynx_state : public driver_device void lynx(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; virtual void device_post_load() override; @@ -260,7 +260,7 @@ class lynx_state : public driver_device bitmap_rgb32 m_bitmap; bitmap_rgb32 m_bitmap_temp; - void cpu_map(address_map &map); + void cpu_map(address_map &map) ATTR_COLD; u32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); diff --git a/src/mame/atari/marblmd2.cpp b/src/mame/atari/marblmd2.cpp index 9f0adebd7d8..5ddb075d208 100644 --- a/src/mame/atari/marblmd2.cpp +++ b/src/mame/atari/marblmd2.cpp @@ -54,8 +54,8 @@ class marblmd2_state : public driver_device void marblmd2(machine_config &config); protected: - virtual void video_start() override; - virtual void machine_start() override; + virtual void video_start() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; private: required_device m_maincpu; @@ -65,7 +65,7 @@ class marblmd2_state : public driver_device required_device m_vad; required_device m_mob; - void marblmd2_map(address_map &map); + void marblmd2_map(address_map &map) ATTR_COLD; void latch_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); diff --git a/src/mame/atari/maria.h b/src/mame/atari/maria.h index d65777d2efc..253305d9d9c 100644 --- a/src/mame/atari/maria.h +++ b/src/mame/atari/maria.h @@ -27,8 +27,8 @@ class atari_maria_device : public device_t 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; private: diff --git a/src/mame/atari/mathbox.h b/src/mame/atari/mathbox.h index efc1e1b8828..e7f4186d256 100644 --- a/src/mame/atari/mathbox.h +++ b/src/mame/atari/mathbox.h @@ -25,8 +25,8 @@ class mathbox_device : public device_t 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; private: // internal state diff --git a/src/mame/atari/maxaflex.cpp b/src/mame/atari/maxaflex.cpp index 873cb1ca1a4..ec031ec6ff8 100644 --- a/src/mame/atari/maxaflex.cpp +++ b/src/mame/atari/maxaflex.cpp @@ -57,8 +57,8 @@ class maxaflex_state : public atari_common_state DECLARE_INPUT_CHANGED_MEMBER(coin_inserted); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: uint8_t mcu_porta_r(); @@ -74,7 +74,7 @@ class maxaflex_state : public atari_common_state bool atari_input_disabled() const { return !BIT(m_portb_out, 7); } void mmu(uint8_t new_mmu); - void a600xl_mem(address_map &map); + void a600xl_mem(address_map &map) ATTR_COLD; uint8_t m_portb_out; uint8_t m_portc_out; diff --git a/src/mame/atari/mediagx.cpp b/src/mame/atari/mediagx.cpp index 9d5eb6ffb68..ef413948a6c 100644 --- a/src/mame/atari/mediagx.cpp +++ b/src/mame/atari/mediagx.cpp @@ -110,9 +110,9 @@ class mediagx_state : public pcat_base_state void mediagx(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: struct speedup_entry @@ -145,9 +145,9 @@ class mediagx_state : public pcat_base_state void report_speedups(); void install_speedups(const speedup_entry *entries, int count); void init_mediagx(); - void mediagx_io(address_map &map); - void mediagx_map(address_map &map); - void ramdac_map(address_map &map); + void mediagx_io(address_map &map) ATTR_COLD; + void mediagx_map(address_map &map) ATTR_COLD; + void ramdac_map(address_map &map) ATTR_COLD; uint32_t cx5510_pci_r(int function, int reg, uint32_t mem_mask) { diff --git a/src/mame/atari/metalmx.cpp b/src/mame/atari/metalmx.cpp index 021d8cb365e..66e8c8f11c0 100644 --- a/src/mame/atari/metalmx.cpp +++ b/src/mame/atari/metalmx.cpp @@ -291,8 +291,8 @@ class metalmx_state : public driver_device void metalmx(machine_config &config); protected: - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -323,12 +323,12 @@ class metalmx_state : public driver_device void timer_w(offs_t offset, uint32_t data); void cage_irq_callback(uint8_t data); uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void adsp_data_map(address_map &map); - void adsp_program_map(address_map &map); - void dsp32c_1_map(address_map &map); - void dsp32c_2_map(address_map &map); - void gsp_map(address_map &map); - void main_map(address_map &map); + void adsp_data_map(address_map &map) ATTR_COLD; + void adsp_program_map(address_map &map) ATTR_COLD; + void dsp32c_1_map(address_map &map) ATTR_COLD; + void dsp32c_2_map(address_map &map) ATTR_COLD; + void gsp_map(address_map &map) ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/atari/mgolf.cpp b/src/mame/atari/mgolf.cpp index a2bf23e5f24..34859955d98 100644 --- a/src/mame/atari/mgolf.cpp +++ b/src/mame/atari/mgolf.cpp @@ -30,11 +30,11 @@ class mgolf_state : public driver_device void mgolf(machine_config &config); private: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; - void cpu_map(address_map &map); + void cpu_map(address_map &map) ATTR_COLD; void vram_w(offs_t offset, uint8_t data); uint8_t wram_r(offs_t offset); diff --git a/src/mame/atari/mhavoc.cpp b/src/mame/atari/mhavoc.cpp index fa6edde0787..c452320625d 100644 --- a/src/mame/atari/mhavoc.cpp +++ b/src/mame/atari/mhavoc.cpp @@ -238,8 +238,8 @@ class alphaone_state : public driver_device int clock_r(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; required_shared_ptr_array m_zram; required_memory_bank m_rambank; @@ -262,7 +262,7 @@ class alphaone_state : public driver_device void dual_pokey_w(offs_t offset, uint8_t data); void out_0_w(uint8_t data); - void alpha_map(address_map &map); + void alpha_map(address_map &map) ATTR_COLD; }; class mhavoc_state : public alphaone_state @@ -284,12 +284,12 @@ class mhavoc_state : public alphaone_state int alpha_xmtd_r(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; required_device m_gamma; - void gamma_map(address_map &map); + void gamma_map(address_map &map) ATTR_COLD; private: required_ioport m_coin; @@ -317,7 +317,7 @@ class mhavoc_state : public alphaone_state TIMER_CALLBACK_MEMBER(delayed_gamma_w); TIMER_DEVICE_CALLBACK_MEMBER(cpu_irq_clock); - void alpha_map(address_map &map); + void alpha_map(address_map &map) ATTR_COLD; }; class mhavocrv_state : public mhavoc_state @@ -331,7 +331,7 @@ class mhavocrv_state : public mhavoc_state void mhavocrv(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_tms; @@ -341,7 +341,7 @@ class mhavocrv_state : public mhavoc_state void speech_data_w(uint8_t data); void speech_strobe_w(uint8_t data); - void gamma_map(address_map &map); + void gamma_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/atari/missile.cpp b/src/mame/atari/missile.cpp index c258dc17b81..e0e3207ffa1 100644 --- a/src/mame/atari/missile.cpp +++ b/src/mame/atari/missile.cpp @@ -393,8 +393,8 @@ class missile_state : public driver_device int vblank_r(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: inline int scanline_to_v(int scanline); @@ -420,14 +420,14 @@ class missile_state : public driver_device void output_w(uint8_t data); void palette_w(offs_t offset, uint8_t data); - void trampoline_map(address_map &map); + void trampoline_map(address_map &map) ATTR_COLD; u8 trampoline_r(offs_t offset); void trampoline_w(offs_t offset, uint8_t data); - void base_map(address_map &map); - void missile_map(address_map &map); - void missilea_map(address_map &map); - void mcombat_map(address_map &map); + void base_map(address_map &map) ATTR_COLD; + void missile_map(address_map &map) ATTR_COLD; + void missilea_map(address_map &map) ATTR_COLD; + void mcombat_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_mainmap; diff --git a/src/mame/atari/nitedrvr.cpp b/src/mame/atari/nitedrvr.cpp index 211c25abdff..b6dfb370cb8 100644 --- a/src/mame/atari/nitedrvr.cpp +++ b/src/mame/atari/nitedrvr.cpp @@ -77,8 +77,8 @@ class nitedrvr_state : public driver_device void nitedrvr(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: // devices @@ -121,7 +121,7 @@ class nitedrvr_state : public driver_device void draw_roadway(bitmap_ind16 &bitmap, const rectangle &cliprect); void draw_tiles(bitmap_ind16 &bitmap, const rectangle &cliprect); int steering(); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/atari/offtwall.cpp b/src/mame/atari/offtwall.cpp index 547b1418398..fcbe94de268 100644 --- a/src/mame/atari/offtwall.cpp +++ b/src/mame/atari/offtwall.cpp @@ -68,7 +68,7 @@ class offtwall_state : public driver_device void init_offtwalc(); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_maincpu; @@ -92,7 +92,7 @@ class offtwall_state : public driver_device uint16_t unknown_verify_r(offs_t offset); TILE_GET_INFO_MEMBER(get_playfield_tile_info); uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/atari/orbit.cpp b/src/mame/atari/orbit.cpp index 5a0c32e7d7d..41f61be0165 100644 --- a/src/mame/atari/orbit.cpp +++ b/src/mame/atari/orbit.cpp @@ -59,9 +59,9 @@ class orbit_state : public driver_device void orbit(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: // memory pointers @@ -95,7 +95,7 @@ class orbit_state : public driver_device void noise_amp_w(uint8_t data); void noise_rst_w(uint8_t data); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); void update_misc_flags(address_space &space, uint8_t val); diff --git a/src/mame/atari/pofo.cpp b/src/mame/atari/pofo.cpp index d070017580c..71b1d1f0e15 100644 --- a/src/mame/atari/pofo.cpp +++ b/src/mame/atari/pofo.cpp @@ -93,12 +93,12 @@ class portfolio_state : public driver_device void portfolio(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: - void portfolio_io(address_map &map); - void portfolio_lcdc(address_map &map); - void portfolio_mem(address_map &map); + void portfolio_io(address_map &map) ATTR_COLD; + void portfolio_lcdc(address_map &map) ATTR_COLD; + void portfolio_mem(address_map &map) ATTR_COLD; void check_interrupt(); void trigger_interrupt(int level); diff --git a/src/mame/atari/pofo_kbd.h b/src/mame/atari/pofo_kbd.h index d8a95626191..d9eb3fa68d2 100644 --- a/src/mame/atari/pofo_kbd.h +++ b/src/mame/atari/pofo_kbd.h @@ -22,8 +22,8 @@ class pofo_keyboard_device : public device_t, protected device_matrix_keyboard_i void key_make(u8 row, u8 column) override; void key_break(u8 row, u8 column) override; - void device_start() override; - void device_reset() override; + void device_start() override ATTR_COLD; + void device_reset() override ATTR_COLD; ioport_constructor device_input_ports() const override; diff --git a/src/mame/atari/poolshrk.cpp b/src/mame/atari/poolshrk.cpp index 0f0188c7492..fc0089280b2 100644 --- a/src/mame/atari/poolshrk.cpp +++ b/src/mame/atari/poolshrk.cpp @@ -47,7 +47,7 @@ class poolshrk_state : public driver_device protected: virtual void machine_start() override { m_leds.resolve(); } - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -82,7 +82,7 @@ class poolshrk_state : public driver_device void palette(palette_device &palette) const; uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void cpu_map(address_map &map); + void cpu_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/atari/quantum.cpp b/src/mame/atari/quantum.cpp index 8c9b59be39f..930d3941936 100644 --- a/src/mame/atari/quantum.cpp +++ b/src/mame/atari/quantum.cpp @@ -86,7 +86,7 @@ class quantum_state : public driver_device void nvram_recall_w(uint16_t data); uint8_t input_1_r(offs_t offset); uint8_t input_2_r(offs_t offset); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_avg; diff --git a/src/mame/atari/quizshow.cpp b/src/mame/atari/quizshow.cpp index 8b2f2200b34..1bcef7040ea 100644 --- a/src/mame/atari/quizshow.cpp +++ b/src/mame/atari/quizshow.cpp @@ -65,8 +65,8 @@ class quizshow_state : public driver_device protected: virtual void machine_start() override { m_lamps.resolve(); } - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -78,7 +78,7 @@ class quizshow_state : public driver_device required_device m_cass; output_finder<11> m_lamps; - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; void lamps1_w(uint8_t data); void lamps2_w(uint8_t data); diff --git a/src/mame/atari/rampart.cpp b/src/mame/atari/rampart.cpp index f274f0962ab..78412473b24 100644 --- a/src/mame/atari/rampart.cpp +++ b/src/mame/atari/rampart.cpp @@ -73,8 +73,8 @@ class rampart_state : public driver_device void rampart(machine_config &config); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -96,7 +96,7 @@ class rampart_state : public driver_device u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void bitmap_render(bitmap_ind16 &bitmap, const rectangle &cliprect); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/atari/redbaron.h b/src/mame/atari/redbaron.h index 50db411f473..199f8a1eb15 100644 --- a/src/mame/atari/redbaron.h +++ b/src/mame/atari/redbaron.h @@ -16,7 +16,7 @@ class redbaron_sound_device : public device_t, public device_sound_interface protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // sound stream update overrides virtual void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; diff --git a/src/mame/atari/relief.cpp b/src/mame/atari/relief.cpp index d80ff71d086..27a9d40120b 100644 --- a/src/mame/atari/relief.cpp +++ b/src/mame/atari/relief.cpp @@ -125,9 +125,9 @@ class relief_state : public driver_device protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -153,8 +153,8 @@ class relief_state : public driver_device TILE_GET_INFO_MEMBER(get_playfield2_tile_info); uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void main_map(address_map &map); - void oki_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void oki_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/atari/runaway.cpp b/src/mame/atari/runaway.cpp index 6a16207b285..fc2c7ca1bb7 100644 --- a/src/mame/atari/runaway.cpp +++ b/src/mame/atari/runaway.cpp @@ -45,10 +45,10 @@ class qwak_state : public driver_device void qwak(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; - void qwak_map(address_map &map); + void qwak_map(address_map &map) ATTR_COLD; tilemap_t *m_bg_tilemap; required_shared_ptr m_video_ram; @@ -86,10 +86,10 @@ class runaway_state : public qwak_state void runaway(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; - void runaway_map(address_map &map); + void runaway_map(address_map &map) ATTR_COLD; private: uint8_t earom_read(); diff --git a/src/mame/atari/sbrkout.cpp b/src/mame/atari/sbrkout.cpp index 9dd79937b2a..a0b8523bc22 100644 --- a/src/mame/atari/sbrkout.cpp +++ b/src/mame/atari/sbrkout.cpp @@ -66,9 +66,9 @@ class sbrkout_state : public driver_device protected: virtual uint8_t switches_r(offs_t offset); - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: void irq_ack_w(uint8_t data); @@ -89,7 +89,7 @@ class sbrkout_state : public driver_device TIMER_CALLBACK_MEMBER(scanline_callback); TIMER_CALLBACK_MEMBER(pot_trigger_callback); void update_nmi_state(); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; required_shared_ptr m_videoram; emu_timer *m_scanline_timer = nullptr; diff --git a/src/mame/atari/shuuz.cpp b/src/mame/atari/shuuz.cpp index 03c3f8af1bf..f28b7114474 100644 --- a/src/mame/atari/shuuz.cpp +++ b/src/mame/atari/shuuz.cpp @@ -54,7 +54,7 @@ class shuuz_state : public driver_device void shuuz(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_maincpu; @@ -79,7 +79,7 @@ class shuuz_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/atari/skullxbo.cpp b/src/mame/atari/skullxbo.cpp index 0e592676aa4..3338381e4dc 100644 --- a/src/mame/atari/skullxbo.cpp +++ b/src/mame/atari/skullxbo.cpp @@ -67,7 +67,7 @@ class skullxbo_state : public atarigen_state void init_skullxbo(); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_jsa; @@ -98,7 +98,7 @@ class skullxbo_state : public atarigen_state void yscroll_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); void mobmsb_w(offs_t offset, uint16_t data); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/atari/skydiver.cpp b/src/mame/atari/skydiver.cpp index 6a5020cff13..050a1c5a4cc 100644 --- a/src/mame/atari/skydiver.cpp +++ b/src/mame/atari/skydiver.cpp @@ -125,7 +125,7 @@ class skydiver_state : public driver_device void skydiver(machine_config &config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -157,7 +157,7 @@ class skydiver_state : public driver_device void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); INTERRUPT_GEN_MEMBER(interrupt); - void program_map(address_map &map); + void program_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/atari/skyraid.cpp b/src/mame/atari/skyraid.cpp index 727c40fc584..1641688eaad 100644 --- a/src/mame/atari/skyraid.cpp +++ b/src/mame/atari/skyraid.cpp @@ -45,8 +45,8 @@ class skyraid_state : public driver_device void skyraid(machine_config &config); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_shared_ptr m_pos_ram; @@ -86,7 +86,7 @@ class skyraid_state : public driver_device void draw_missiles(bitmap_ind16 &bitmap, const rectangle &cliprect); void draw_trapezoid(bitmap_ind16& dst, bitmap_ind16& src); - void program_map(address_map &map); + void program_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/atari/slapstic.h b/src/mame/atari/slapstic.h index 0bd82e2094d..7fb17dc45a0 100644 --- a/src/mame/atari/slapstic.h +++ b/src/mame/atari/slapstic.h @@ -50,8 +50,8 @@ class atari_slapstic_device : public device_t void set_chipnum(int chipnum) { m_chipnum = chipnum; } protected: - 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 device_validity_check(validity_checker &valid) const override; virtual void device_pre_save() override; virtual void device_post_load() override; diff --git a/src/mame/atari/sprint2.cpp b/src/mame/atari/sprint2.cpp index 567e386b1ab..7df4d8b4e3d 100644 --- a/src/mame/atari/sprint2.cpp +++ b/src/mame/atari/sprint2.cpp @@ -73,8 +73,8 @@ class sprint2_state : public driver_device void init_dominos4(); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_shared_ptr m_video_ram; @@ -120,7 +120,7 @@ class sprint2_state : public driver_device inline int get_sprite_y(int n); uint8_t service_mode(); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/atari/sprint4.cpp b/src/mame/atari/sprint4.cpp index 2c2ad97438a..cbcc0b2effa 100644 --- a/src/mame/atari/sprint4.cpp +++ b/src/mame/atari/sprint4.cpp @@ -57,11 +57,11 @@ class sprint4_state : public driver_device template int collision_flipflop_r(); private: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; - void cpu_map(address_map &map); + void cpu_map(address_map &map) ATTR_COLD; uint8_t wram_r(offs_t offset); uint8_t analog_r(offs_t offset); diff --git a/src/mame/atari/sprint8.cpp b/src/mame/atari/sprint8.cpp index 74f686993ad..d7a5e4cab77 100644 --- a/src/mame/atari/sprint8.cpp +++ b/src/mame/atari/sprint8.cpp @@ -44,9 +44,9 @@ class sprint8_state : public driver_device void sprint8(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -91,7 +91,7 @@ class sprint8_state : public driver_device void set_pens(); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); - void program_map(address_map &map); + void program_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/atari/starshp1.cpp b/src/mame/atari/starshp1.cpp index 1ec2c49b17a..e9a599a7477 100644 --- a/src/mame/atari/starshp1.cpp +++ b/src/mame/atari/starshp1.cpp @@ -75,8 +75,8 @@ class starshp1_state : public driver_device ioport_value collision_latch_r(); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -150,7 +150,7 @@ class starshp1_state : public driver_device int spaceship_collision(bitmap_ind16 &bitmap, const rectangle &rect); int point_in_circle(int x, int y, int center_x, int center_y, int r); int circle_collision(const rectangle &rect); - void program_map(address_map &map); + void program_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/atari/starwars.h b/src/mame/atari/starwars.h index a6a1f2e1955..4800150c766 100644 --- a/src/mame/atari/starwars.h +++ b/src/mame/atari/starwars.h @@ -86,16 +86,16 @@ class starwars_state : public driver_device uint8_t starwars_main_ready_flag_r(); void starwars_soundrst_w(uint8_t data); void quad_pokeyn_w(offs_t offset, uint8_t data); - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; TIMER_CALLBACK_MEMBER(math_run_clear); void starwars_mproc_init(); void starwars_mproc_reset(); void run_mproc(); - void esb_main_map(address_map &map); - void main_map(address_map &map); - void sound_map(address_map &map); + void esb_main_map(address_map &map) ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; }; #endif // MAME_ATARI_STARWARS_H diff --git a/src/mame/atari/stkbd.h b/src/mame/atari/stkbd.h index 3329ccc43d3..00320663a0d 100644 --- a/src/mame/atari/stkbd.h +++ b/src/mame/atari/stkbd.h @@ -20,10 +20,10 @@ class st_kbd_device : public device_t { auto rx_cb() { return m_rx_cb.bind(); } protected: - virtual void device_start() override; - virtual void device_add_mconfig(machine_config &config) override; - virtual const tiny_rom_entry *device_rom_region() const override; - virtual ioport_constructor device_input_ports() const override; + virtual void device_start() 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; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; private: enum { diff --git a/src/mame/atari/stmmu.h b/src/mame/atari/stmmu.h index 61246a6d31e..75d128184d4 100644 --- a/src/mame/atari/stmmu.h +++ b/src/mame/atari/stmmu.h @@ -20,15 +20,15 @@ class st_mmu_device : public device_t { template void set_cpu(T &&tag) { m_cpu.set_tag(std::forward(tag)); } template void set_fdc(T &&tag) { m_fdc.set_tag(std::forward(tag)); } - void map(address_map &map); + void map(address_map &map) ATTR_COLD; void set_ram_size(u32 size); void fdc_drq_w(int state); void hdc_drq_w(int state); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: enum { diff --git a/src/mame/atari/stvideo.h b/src/mame/atari/stvideo.h index 9e66a5f9276..42c75d775e0 100644 --- a/src/mame/atari/stvideo.h +++ b/src/mame/atari/stvideo.h @@ -15,7 +15,7 @@ class st_video_device : public device_t, public device_video_interface, public d template void set_ram(T &&tag) { m_ram.set_tag(std::forward(tag)); } template void set_mmu(T &&tag) { m_mmu.set_tag(std::forward(tag)); } - void map(address_map &map); + void map(address_map &map) ATTR_COLD; auto de_cb() { return m_de_cb.bind(); } auto hsync_cb() { return m_hsync_cb.bind(); } @@ -24,8 +24,8 @@ class st_video_device : public device_t, public device_video_interface, public d u32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); protected: - void device_start() override; - void device_reset() override; + void device_start() override ATTR_COLD; + void device_reset() override ATTR_COLD; void device_config_complete() override; ioport_constructor device_input_ports() const override; u32 palette_entries() const noexcept override { return 16; } diff --git a/src/mame/atari/subs.cpp b/src/mame/atari/subs.cpp index 59449667dca..69a261655fd 100644 --- a/src/mame/atari/subs.cpp +++ b/src/mame/atari/subs.cpp @@ -55,8 +55,8 @@ class subs_state : public driver_device void subs(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; @@ -90,7 +90,7 @@ class subs_state : public driver_device template int steering(); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/atari/tank8.cpp b/src/mame/atari/tank8.cpp index 005ea685474..2da88ad8e64 100644 --- a/src/mame/atari/tank8.cpp +++ b/src/mame/atari/tank8.cpp @@ -44,8 +44,8 @@ class tank8_state : public driver_device void init_decode(); protected: - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -89,7 +89,7 @@ class tank8_state : public driver_device void draw_bullets(bitmap_ind16 &bitmap, const rectangle &cliprect); TIMER_CALLBACK_MEMBER(set_collision); - void cpu_map(address_map &map); + void cpu_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/atari/tempest.cpp b/src/mame/atari/tempest.cpp index 94b7ea49cec..524814751aa 100644 --- a/src/mame/atari/tempest.cpp +++ b/src/mame/atari/tempest.cpp @@ -339,8 +339,8 @@ class tempest_state : public driver_device uint8_t rom_ae1f_r(); - virtual void machine_start() override; - void main_map(address_map &map); + virtual void machine_start() override ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_mathbox; diff --git a/src/mame/atari/thunderj.cpp b/src/mame/atari/thunderj.cpp index c64dab20a21..bf7b3fe92cc 100644 --- a/src/mame/atari/thunderj.cpp +++ b/src/mame/atari/thunderj.cpp @@ -71,7 +71,7 @@ class thunderj_state : public driver_device void thunderj(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_screen; @@ -94,8 +94,8 @@ class thunderj_state : public driver_device TILE_GET_INFO_MEMBER(get_playfield2_tile_info); uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void extra_map(address_map &map); - void main_map(address_map &map); + void extra_map(address_map &map) ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/atari/tia.h b/src/mame/atari/tia.h index 285ff3614eb..c54650d3221 100644 --- a/src/mame/atari/tia.h +++ b/src/mame/atari/tia.h @@ -57,8 +57,8 @@ class tia_video_device : public device_t, public device_video_interface, public template void set_tia_tag(T &&tag) { m_tia.set_tag(std::forward(tag)); } // 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; // device_palette_interface overrides virtual uint32_t palette_entries() const noexcept override { return TIA_PALETTE_LENGTH; } diff --git a/src/mame/atari/tomcat.cpp b/src/mame/atari/tomcat.cpp index 192d1611e61..02fe69ca888 100644 --- a/src/mame/atari/tomcat.cpp +++ b/src/mame/atari/tomcat.cpp @@ -79,10 +79,10 @@ class tomcat_state : public driver_device void tomcat_nvram_w(offs_t offset, uint8_t data); int dsp_bio_r(); void soundlatches_w(offs_t offset, uint8_t data); - virtual void machine_start() override; - void dsp_map(address_map &map); - void sound_map(address_map &map); - void tomcat_map(address_map &map); + virtual void machine_start() override ATTR_COLD; + void dsp_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; + void tomcat_map(address_map &map) ATTR_COLD; required_device m_tms; required_shared_ptr m_shared_ram; diff --git a/src/mame/atari/toobin.cpp b/src/mame/atari/toobin.cpp index b5cf87c3f8e..eefe8445225 100644 --- a/src/mame/atari/toobin.cpp +++ b/src/mame/atari/toobin.cpp @@ -62,8 +62,8 @@ class toobin_state : public driver_device void toobin(machine_config &config); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -100,7 +100,7 @@ class toobin_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; static const atari_motion_objects_config s_mob_config; }; diff --git a/src/mame/atari/tourtabl.cpp b/src/mame/atari/tourtabl.cpp index 308d52810f5..eba4b1f912a 100644 --- a/src/mame/atari/tourtabl.cpp +++ b/src/mame/atari/tourtabl.cpp @@ -52,7 +52,7 @@ class tourtabl_state : public driver_device uint16_t tourtabl_read_input_port(offs_t offset) { return m_tia_inputs[offset]->read(); } uint8_t tourtabl_get_databus_contents(offs_t offset) { return offset; } - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/atari/triplhnt.cpp b/src/mame/atari/triplhnt.cpp index 85849e579ca..5a8908636ae 100644 --- a/src/mame/atari/triplhnt.cpp +++ b/src/mame/atari/triplhnt.cpp @@ -57,8 +57,8 @@ class triplhnt_state : public driver_device void init_triplhnt(); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -105,7 +105,7 @@ class triplhnt_state : public driver_device void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); TIMER_CALLBACK_MEMBER(set_collision); - void program_map(address_map &map); + void program_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/atari/tunhunt.cpp b/src/mame/atari/tunhunt.cpp index 6b06b3d2f70..cd5c46d8a7c 100644 --- a/src/mame/atari/tunhunt.cpp +++ b/src/mame/atari/tunhunt.cpp @@ -82,8 +82,8 @@ class tunhunt_state : public driver_device protected: virtual void machine_start() override { m_led.resolve(); } - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -140,7 +140,7 @@ class tunhunt_state : public driver_device void draw_motion_object(bitmap_ind16 &bitmap, const rectangle &cliprect); void draw_box(bitmap_ind16 &bitmap, const rectangle &cliprect); void draw_shell(bitmap_ind16 &bitmap, const rectangle &cliprect, int picture_code, int hposition, int vstart, int vstop, int vstretch, int hstretch); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/atari/ultratnk.cpp b/src/mame/atari/ultratnk.cpp index f8ac1d0e8d7..1ec4b49c626 100644 --- a/src/mame/atari/ultratnk.cpp +++ b/src/mame/atari/ultratnk.cpp @@ -48,9 +48,9 @@ class ultratnk_state : public driver_device void ultratnk(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -98,7 +98,7 @@ class ultratnk_state : public driver_device void screen_vblank(int state); TIMER_CALLBACK_MEMBER(nmi_callback); - void cpu_map(address_map &map); + void cpu_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/atari/videopin.cpp b/src/mame/atari/videopin.cpp index 3c0ff58a94b..35a80d7cbc4 100644 --- a/src/mame/atari/videopin.cpp +++ b/src/mame/atari/videopin.cpp @@ -54,9 +54,9 @@ class videopin_state : public driver_device void videopin(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -78,7 +78,7 @@ class videopin_state : public driver_device tilemap_t *m_bg_tilemap = nullptr; emu_timer *m_interrupt_timer = nullptr; - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; uint8_t misc_r(); void led_w(uint8_t data); diff --git a/src/mame/atari/vindictr.cpp b/src/mame/atari/vindictr.cpp index 51af0669896..c1b67ff8b19 100644 --- a/src/mame/atari/vindictr.cpp +++ b/src/mame/atari/vindictr.cpp @@ -57,7 +57,7 @@ class vindictr_state : public driver_device void vindictr(machine_config &config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -85,7 +85,7 @@ class vindictr_state : public driver_device void paletteram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); static const atari_motion_objects_config s_mob_config; - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/atari/wolfpack.cpp b/src/mame/atari/wolfpack.cpp index 1c5a33a3f29..5208dfddd2b 100644 --- a/src/mame/atari/wolfpack.cpp +++ b/src/mame/atari/wolfpack.cpp @@ -40,9 +40,9 @@ class wolfpack_state : public driver_device template int dial_r(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: // devices, pointers @@ -73,7 +73,7 @@ class wolfpack_state : public driver_device bitmap_ind16 m_helper; emu_timer *m_periodic_timer = nullptr; - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; void wolfpack_palette(palette_device &palette) const; diff --git a/src/mame/atari/xybots.cpp b/src/mame/atari/xybots.cpp index d3192192749..e8a26d63a85 100644 --- a/src/mame/atari/xybots.cpp +++ b/src/mame/atari/xybots.cpp @@ -58,7 +58,7 @@ class xybots_state : public driver_device void xybots(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_maincpu; @@ -79,7 +79,7 @@ class xybots_state : public driver_device TILE_GET_INFO_MEMBER(get_alpha_tile_info); TILE_GET_INFO_MEMBER(get_playfield_tile_info); uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; static const atari_motion_objects_config s_mob_config; }; diff --git a/src/mame/atlus/bowltry.cpp b/src/mame/atlus/bowltry.cpp index a204e67ea3b..78ef6ff5e8d 100644 --- a/src/mame/atlus/bowltry.cpp +++ b/src/mame/atlus/bowltry.cpp @@ -63,7 +63,7 @@ class bowltry_state : public driver_device void bowltry(machine_config &config); protected: - void bowltry_map(address_map &map); + void bowltry_map(address_map &map) ATTR_COLD; uint32_t screen_update_bowltry(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); diff --git a/src/mame/atlus/cave.h b/src/mame/atlus/cave.h index bc0639834a4..fe775e0a869 100644 --- a/src/mame/atlus/cave.h +++ b/src/mame/atlus/cave.h @@ -78,8 +78,8 @@ class cave_state : public driver_device void uopoko(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; virtual void device_post_load() override; // devices @@ -238,22 +238,22 @@ class cave_state : public driver_device void init_cave(); void show_leds(); - void crusherm_map(address_map &map); - void ddonpach_map(address_map &map); - void dfeveron_map(address_map &map); - void donpachi_map(address_map &map); - void esprade_map(address_map &map); - void gaia_map(address_map &map); - void guwange_map(address_map &map); - void jumbogod_map(address_map &map); - void korokoro_map(address_map &map); - void paccarn_map(address_map &map); - void paceight_map(address_map &map); - void pacslot_map(address_map &map); - void tekkenbs_map(address_map &map); - void tekkencw_map(address_map &map); - void tjumpman_map(address_map &map); - void uopoko_map(address_map &map); + void crusherm_map(address_map &map) ATTR_COLD; + void ddonpach_map(address_map &map) ATTR_COLD; + void dfeveron_map(address_map &map) ATTR_COLD; + void donpachi_map(address_map &map) ATTR_COLD; + void esprade_map(address_map &map) ATTR_COLD; + void gaia_map(address_map &map) ATTR_COLD; + void guwange_map(address_map &map) ATTR_COLD; + void jumbogod_map(address_map &map) ATTR_COLD; + void korokoro_map(address_map &map) ATTR_COLD; + void paccarn_map(address_map &map) ATTR_COLD; + void paceight_map(address_map &map) ATTR_COLD; + void pacslot_map(address_map &map) ATTR_COLD; + void tekkenbs_map(address_map &map) ATTR_COLD; + void tekkencw_map(address_map &map) ATTR_COLD; + void tjumpman_map(address_map &map) ATTR_COLD; + void uopoko_map(address_map &map) ATTR_COLD; }; // with sound Z80 @@ -286,8 +286,8 @@ class cave_z80_state : public cave_state void sailormn(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_audiocpu; @@ -333,22 +333,22 @@ class cave_z80_state : public cave_state void init_z80_bank(); void init_oki_bank(int chip); - void hotdogst_map(address_map &map); - void hotdogst_sound_map(address_map &map); - void hotdogst_sound_portmap(address_map &map); - void mazinger_map(address_map &map); - void mazinger_sound_map(address_map &map); - void mazinger_sound_portmap(address_map &map); - void metmqstr_map(address_map &map); - void metmqstr_sound_portmap(address_map &map); - void oki2_map(address_map &map); - void oki_map(address_map &map); - void pwrinst2_map(address_map &map); - void pwrinst2_sound_map(address_map &map); - void pwrinst2_sound_portmap(address_map &map); - void sailormn_map(address_map &map); - void sailormn_sound_map(address_map &map); - void sailormn_sound_portmap(address_map &map); + void hotdogst_map(address_map &map) ATTR_COLD; + void hotdogst_sound_map(address_map &map) ATTR_COLD; + void hotdogst_sound_portmap(address_map &map) ATTR_COLD; + void mazinger_map(address_map &map) ATTR_COLD; + void mazinger_sound_map(address_map &map) ATTR_COLD; + void mazinger_sound_portmap(address_map &map) ATTR_COLD; + void metmqstr_map(address_map &map) ATTR_COLD; + void metmqstr_sound_portmap(address_map &map) ATTR_COLD; + void oki2_map(address_map &map) ATTR_COLD; + void oki_map(address_map &map) ATTR_COLD; + void pwrinst2_map(address_map &map) ATTR_COLD; + void pwrinst2_sound_map(address_map &map) ATTR_COLD; + void pwrinst2_sound_portmap(address_map &map) ATTR_COLD; + void sailormn_map(address_map &map) ATTR_COLD; + void sailormn_sound_map(address_map &map) ATTR_COLD; + void sailormn_sound_portmap(address_map &map) ATTR_COLD; }; // with 3 screens @@ -368,8 +368,8 @@ class ppsatan_state : public cave_state void ppsatan(machine_config &config); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_int_timer_left; @@ -391,7 +391,7 @@ class ppsatan_state : public cave_state u32 screen_update_ppsatan_left (screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); u32 screen_update_ppsatan_right(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void ppsatan_map(address_map &map); + void ppsatan_map(address_map &map) ATTR_COLD; }; #endif // MAME_ATLUS_CAVE_H diff --git a/src/mame/atlus/ohmygod.cpp b/src/mame/atlus/ohmygod.cpp index 96f19318451..e13cbced88e 100644 --- a/src/mame/atlus/ohmygod.cpp +++ b/src/mame/atlus/ohmygod.cpp @@ -46,9 +46,9 @@ class ohmygod_state : public driver_device void init_naname(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: void ctrl_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); @@ -59,8 +59,8 @@ class ohmygod_state : public driver_device TILE_GET_INFO_MEMBER(get_tile_info); uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect ); - void main_map(address_map &map); - void oki_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void oki_map(address_map &map) ATTR_COLD; // memory pointers required_shared_ptr m_videoram; diff --git a/src/mame/atlus/patapata.cpp b/src/mame/atlus/patapata.cpp index cdc075bc440..2ceb63f27d1 100644 --- a/src/mame/atlus/patapata.cpp +++ b/src/mame/atlus/patapata.cpp @@ -54,8 +54,8 @@ class patapata_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void main_map(address_map &map); - virtual void video_start() override; + void main_map(address_map &map) ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: /* memory pointers */ diff --git a/src/mame/atlus/rallypnt.cpp b/src/mame/atlus/rallypnt.cpp index 3849e7a0899..1d30f82f95a 100644 --- a/src/mame/atlus/rallypnt.cpp +++ b/src/mame/atlus/rallypnt.cpp @@ -38,7 +38,7 @@ class rallypnt_state : public driver_device private: required_device m_maincpu; - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/att/att3b2.cpp b/src/mame/att/att3b2.cpp index 78978252c91..d8661837918 100644 --- a/src/mame/att/att3b2.cpp +++ b/src/mame/att/att3b2.cpp @@ -30,8 +30,8 @@ class att3b2_state : public driver_device void att3b2v3(machine_config &config); private: - void mem_map_300(address_map &map); - void mem_map_600(address_map &map); + void mem_map_300(address_map &map) ATTR_COLD; + void mem_map_600(address_map &map) ATTR_COLD; required_device m_maincpu; }; diff --git a/src/mame/att/att4425.cpp b/src/mame/att/att4425.cpp index baedf40ec4c..d27ad250841 100644 --- a/src/mame/att/att4425.cpp +++ b/src/mame/att/att4425.cpp @@ -66,9 +66,9 @@ class att4425_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - virtual void machine_start() override; - void att4425_io(address_map &map); - void att4425_mem(address_map &map); + virtual void machine_start() override ATTR_COLD; + void att4425_io(address_map &map) ATTR_COLD; + void att4425_mem(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_i8251; diff --git a/src/mame/att/att610.cpp b/src/mame/att/att610.cpp index 8fa0e315f4a..9ef3ce3d2cf 100644 --- a/src/mame/att/att610.cpp +++ b/src/mame/att/att610.cpp @@ -47,16 +47,16 @@ class att610_state : public driver_device void att610(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: u32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); void cart_select_w(u8 data); - void mem_map(address_map &map); - void io_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_sio; diff --git a/src/mame/att/att630.cpp b/src/mame/att/att630.cpp index b16ed08c0c1..90b7b2d43f8 100644 --- a/src/mame/att/att630.cpp +++ b/src/mame/att/att630.cpp @@ -29,7 +29,7 @@ class att630_state : public driver_device void att730x(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: u32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); @@ -37,8 +37,8 @@ class att630_state : public driver_device u8 bram_r(offs_t offset); void bram_w(offs_t offset, u8 data); - void att630_map(address_map &map); - void att730_map(address_map &map); + void att630_map(address_map &map) ATTR_COLD; + void att730_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_shared_ptr m_vram; diff --git a/src/mame/att/blit.cpp b/src/mame/att/blit.cpp index 5389ebfdc36..b5cb82096bf 100644 --- a/src/mame/att/blit.cpp +++ b/src/mame/att/blit.cpp @@ -80,11 +80,11 @@ class blit_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void blit(machine_config &config); - void blit_mem(address_map &map); + void blit_mem(address_map &map) ATTR_COLD; protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; diff --git a/src/mame/att/unixpc.cpp b/src/mame/att/unixpc.cpp index c406c8b24ce..8a7b1892c04 100644 --- a/src/mame/att/unixpc.cpp +++ b/src/mame/att/unixpc.cpp @@ -66,8 +66,8 @@ class unixpc_state : public driver_device private: uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; uint16_t line_printer_r(); void disk_control_w(uint8_t data); @@ -92,7 +92,7 @@ class unixpc_state : public driver_device void wd1010_intrq_w(int state); - void unixpc_mem(address_map &map); + void unixpc_mem(address_map &map) ATTR_COLD; private: required_device m_maincpu; diff --git a/src/mame/ausnz/amust.cpp b/src/mame/ausnz/amust.cpp index c99cc3f2ffc..a4ef0d7ca41 100644 --- a/src/mame/ausnz/amust.cpp +++ b/src/mame/ausnz/amust.cpp @@ -136,10 +136,10 @@ class amust_state : public driver_device MC6845_UPDATE_ROW(crtc_update_row); TIMER_DEVICE_CALLBACK_MEMBER(beep_timer); - void io_map(address_map &map); - void mem_map(address_map &map); - void machine_reset() override; - void machine_start() override; + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; + void machine_reset() override ATTR_COLD; + void machine_start() override ATTR_COLD; void do_int(); u8 m_port04 = 0U; diff --git a/src/mame/ausnz/applix.cpp b/src/mame/ausnz/applix.cpp index 7a7cffc8589..fb498efc53d 100644 --- a/src/mame/ausnz/applix.cpp +++ b/src/mame/ausnz/applix.cpp @@ -89,8 +89,8 @@ class applix_state : public driver_device void init_applix(); private: - virtual void machine_reset() override; - virtual void machine_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; u16 applix_inputs_r(); void palette_w(offs_t offset, u16 data, u16 mem_mask = ~0); void analog_latch_w(u16 data); @@ -135,11 +135,11 @@ class applix_state : public driver_device u8 m_palette_latch[4]{}; required_shared_ptr m_base; - void main_mem(address_map &map); - void keytronic_pc3270_io(address_map &map); - void keytronic_pc3270_program(address_map &map); - void sub_io(address_map &map); - void sub_mem(address_map &map); + void main_mem(address_map &map) ATTR_COLD; + void keytronic_pc3270_io(address_map &map) ATTR_COLD; + void keytronic_pc3270_program(address_map &map) ATTR_COLD; + void sub_io(address_map &map) ATTR_COLD; + void sub_mem(address_map &map) ATTR_COLD; u8 m_pb = 0U; u8 m_analog_latch = 0U; diff --git a/src/mame/ausnz/aussiebyte.h b/src/mame/ausnz/aussiebyte.h index 256045ba670..aa4c22949b7 100644 --- a/src/mame/ausnz/aussiebyte.h +++ b/src/mame/ausnz/aussiebyte.h @@ -75,8 +75,8 @@ class aussiebyte_state : public driver_device DECLARE_QUICKLOAD_LOAD_MEMBER(quickload_cb); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: u8 memory_read_byte(offs_t offset); @@ -111,8 +111,8 @@ class aussiebyte_state : public driver_device MC6845_UPDATE_ROW(crtc_update_row); MC6845_ON_UPDATE_ADDR_CHANGED(crtc_update_addr); - void io_map(address_map &map); - void mem_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; u8 crt8002(u8 ac_ra, u8 ac_chr, u8 ac_attr, u16 ac_cnt, bool ac_curs); bool m_port15 = false; // rom switched in (0), out (1) diff --git a/src/mame/ausnz/binbug.cpp b/src/mame/ausnz/binbug.cpp index 0526d9e3dad..59ebb04b95f 100644 --- a/src/mame/ausnz/binbug.cpp +++ b/src/mame/ausnz/binbug.cpp @@ -80,8 +80,8 @@ class binbug_state : public driver_device u8 m_cass_data[4]{}; bool m_cassold = 0, m_cassinbit = 0, m_cassoutbit = 0; - void mem_map(address_map &map); - void machine_start() override; + void mem_map(address_map &map) ATTR_COLD; + void machine_start() override ATTR_COLD; required_device m_maincpu; required_device m_cass; diff --git a/src/mame/ausnz/d6800.cpp b/src/mame/ausnz/d6800.cpp index eeb32a3bef7..b4e05815c6a 100644 --- a/src/mame/ausnz/d6800.cpp +++ b/src/mame/ausnz/d6800.cpp @@ -92,14 +92,14 @@ class d6800_state : public driver_device TIMER_DEVICE_CALLBACK_MEMBER(kansas_r); DECLARE_QUICKLOAD_LOAD_MEMBER(quickload_cb); - void d6800_map(address_map &map); + void d6800_map(address_map &map) ATTR_COLD; bool m_cb2 = 0; bool m_cassold = 0; uint8_t m_cass_data[4]{}; uint8_t m_portb = 0U; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; required_device m_maincpu; required_device m_cass; required_device m_pia; diff --git a/src/mame/ausnz/datum.cpp b/src/mame/ausnz/datum.cpp index 2230117d651..0819e416d12 100644 --- a/src/mame/ausnz/datum.cpp +++ b/src/mame/ausnz/datum.cpp @@ -82,11 +82,11 @@ class datum_state : public driver_device uint8_t pa_r(); void pa_w(uint8_t data); void pb_w(uint8_t data); - void datum_mem(address_map &map); + void datum_mem(address_map &map) ATTR_COLD; uint8_t m_digit = 0U; uint8_t m_seg = 0U; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; required_device m_pia1; required_device m_pia2; required_device m_acia; diff --git a/src/mame/ausnz/dg680.cpp b/src/mame/ausnz/dg680.cpp index 615f2752358..35df36bc5e8 100644 --- a/src/mame/ausnz/dg680.cpp +++ b/src/mame/ausnz/dg680.cpp @@ -101,10 +101,10 @@ class dg680_state : public driver_device TIMER_DEVICE_CALLBACK_MEMBER(kansas_r); void kbd_put(u8 data); - void io_map(address_map &map); - void mem_map(address_map &map); - void machine_reset() override; - void machine_start() override; + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; + void machine_reset() override ATTR_COLD; + void machine_start() override ATTR_COLD; u8 m_pio_b = 0U; u8 m_term_data = 0U; diff --git a/src/mame/ausnz/dmax8000.cpp b/src/mame/ausnz/dmax8000.cpp index 24ad1c84f62..0870bf9535a 100644 --- a/src/mame/ausnz/dmax8000.cpp +++ b/src/mame/ausnz/dmax8000.cpp @@ -52,16 +52,16 @@ class dmax8000_state : public driver_device void dmax8000(machine_config &config); private: - void machine_reset() override; - void machine_start() override; + void machine_reset() override ATTR_COLD; + void machine_start() override ATTR_COLD; void port0c_w(u8 data); void port0d_w(u8 data); void port14_w(u8 data); void port40_w(u8 data); void fdc_drq_w(int state); - void io_map(address_map &map); - void mem_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_region_ptr m_rom; diff --git a/src/mame/ausnz/eacc.cpp b/src/mame/ausnz/eacc.cpp index 08e62deb615..5705d6dd8d2 100644 --- a/src/mame/ausnz/eacc.cpp +++ b/src/mame/ausnz/eacc.cpp @@ -75,8 +75,8 @@ class eacc_state : public driver_device void eacc(machine_config &config); protected: - virtual void machine_reset() override; - virtual void machine_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; private: void scan_w(int state); @@ -85,7 +85,7 @@ class eacc_state : public driver_device uint8_t keyboard_r(); void digit_w(uint8_t data); void segment_w(uint8_t data); - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; void do_nmi(bool, bool); uint8_t m_digit = 0U; bool m_cb2 = false; diff --git a/src/mame/ausnz/eti660.cpp b/src/mame/ausnz/eti660.cpp index 1b592a3d7f1..bd203aa3015 100644 --- a/src/mame/ausnz/eti660.cpp +++ b/src/mame/ausnz/eti660.cpp @@ -92,8 +92,8 @@ class eti660_state : public driver_device DECLARE_QUICKLOAD_LOAD_MEMBER(quickload_cb); required_shared_ptr m_p_videoram; - void io_map(address_map &map); - void mem_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_cti; @@ -103,8 +103,8 @@ class eti660_state : public driver_device required_ioport m_special; output_finder<2> m_leds; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; uint16_t m_resetcnt; /* keyboard state */ diff --git a/src/mame/ausnz/excali64.cpp b/src/mame/ausnz/excali64.cpp index 25078e776a3..bfb4debae96 100644 --- a/src/mame/ausnz/excali64.cpp +++ b/src/mame/ausnz/excali64.cpp @@ -81,8 +81,8 @@ class excali64_state : public driver_device void excali64(machine_config &config); protected: - virtual void machine_reset() override; - virtual void machine_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; private: void excali64_palette(palette_device &palette); @@ -106,8 +106,8 @@ class excali64_state : public driver_device void crtc_vs(int state); void motor_w(int state); - void io_map(address_map &map); - void mem_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; u8 m_sys_status = 0U; u8 m_kbdrow = 0U; diff --git a/src/mame/ausnz/labtam.cpp b/src/mame/ausnz/labtam.cpp index ac89c8bf11c..b1101559c60 100644 --- a/src/mame/ausnz/labtam.cpp +++ b/src/mame/ausnz/labtam.cpp @@ -67,8 +67,8 @@ class labtam_state : public driver_device protected: // driver_device overrides - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; public: // machine config diff --git a/src/mame/ausnz/magnum.cpp b/src/mame/ausnz/magnum.cpp index bfa3734180f..a8f83ab0325 100644 --- a/src/mame/ausnz/magnum.cpp +++ b/src/mame/ausnz/magnum.cpp @@ -33,8 +33,8 @@ class magnum_state : public driver_device void magnum(machine_config &config); DECLARE_INPUT_CHANGED_MEMBER(keypress); protected: - virtual void machine_reset() override; - virtual void machine_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; private: void beep_w(u8 data); @@ -45,9 +45,9 @@ class magnum_state : public driver_device void rtcirq_w(int state); void check_irq(); - void magnum_io(address_map &map); - void magnum_map(address_map &map); - void magnum_lcdc(address_map &map); + void magnum_io(address_map &map) ATTR_COLD; + void magnum_map(address_map &map) ATTR_COLD; + void magnum_lcdc(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_beep; diff --git a/src/mame/ausnz/mbee.h b/src/mame/ausnz/mbee.h index 7d13ec1836f..148ccf6b8ff 100644 --- a/src/mame/ausnz/mbee.h +++ b/src/mame/ausnz/mbee.h @@ -132,24 +132,24 @@ class mbee_state : public driver_device void fdc_drq_w(int state); MC6845_UPDATE_ROW(crtc_update_row); MC6845_ON_UPDATE_ADDR_CHANGED(crtc_update_addr); - void machine_start() override; - void machine_reset() override; + void machine_start() override ATTR_COLD; + void machine_reset() override ATTR_COLD; required_device m_palette; - void mbee128_io(address_map &map); - void mbee128p_io(address_map &map); - void mbee256_io(address_map &map); - void mbee256_mem(address_map &map); - void mbee56_io(address_map &map); - void mbee56_mem(address_map &map); - void mbee_io(address_map &map); - void mbee_mem(address_map &map); - void mbeeic_io(address_map &map); - void mbeeic_mem(address_map &map); - void mbeeppc_io(address_map &map); - void mbeeppc_mem(address_map &map); - void mbeett_io(address_map &map); - void mbeett_mem(address_map &map); + void mbee128_io(address_map &map) ATTR_COLD; + void mbee128p_io(address_map &map) ATTR_COLD; + void mbee256_io(address_map &map) ATTR_COLD; + void mbee256_mem(address_map &map) ATTR_COLD; + void mbee56_io(address_map &map) ATTR_COLD; + void mbee56_mem(address_map &map) ATTR_COLD; + void mbee_io(address_map &map) ATTR_COLD; + void mbee_mem(address_map &map) ATTR_COLD; + void mbeeic_io(address_map &map) ATTR_COLD; + void mbeeic_mem(address_map &map) ATTR_COLD; + void mbeeppc_io(address_map &map) ATTR_COLD; + void mbeeppc_mem(address_map &map) ATTR_COLD; + void mbeett_io(address_map &map) ATTR_COLD; + void mbeett_mem(address_map &map) ATTR_COLD; u8 m_features = 0; u16 m_size = 0; diff --git a/src/mame/ausnz/pegasus.cpp b/src/mame/ausnz/pegasus.cpp index bed5fa7fe0d..0a7f4729a2b 100644 --- a/src/mame/ausnz/pegasus.cpp +++ b/src/mame/ausnz/pegasus.cpp @@ -79,8 +79,8 @@ class pegasus_state : public driver_device void init_pegasus(); protected: - virtual void machine_reset() override; - virtual void machine_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; private: u8 pegasus_keyboard_r(); @@ -101,8 +101,8 @@ class pegasus_state : public driver_device DECLARE_DEVICE_IMAGE_LOAD_MEMBER(exp0c_load) { return load_cart(image, m_exp_0c, "c000"); } DECLARE_DEVICE_IMAGE_LOAD_MEMBER(exp0d_load) { return load_cart(image, m_exp_0d, "d000"); } - void pegasus_mem(address_map &map); - void pegasusm_mem(address_map &map); + void pegasus_mem(address_map &map) ATTR_COLD; + void pegasusm_mem(address_map &map) ATTR_COLD; u8 m_kbd_row = 0U; u8 m_control_bits = 0U; diff --git a/src/mame/ausnz/pipbug.cpp b/src/mame/ausnz/pipbug.cpp index dcee614b401..9aceacfc7ae 100644 --- a/src/mame/ausnz/pipbug.cpp +++ b/src/mame/ausnz/pipbug.cpp @@ -68,7 +68,7 @@ class pipbug_state : public driver_device void pipbug(machine_config &config); private: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; void pipbug_ctrl_w(u8 data); int serial_r(); TIMER_DEVICE_CALLBACK_MEMBER(kansas_r); @@ -76,8 +76,8 @@ class pipbug_state : public driver_device required_device m_maincpu; required_device m_cass; DECLARE_QUICKLOAD_LOAD_MEMBER(quickload_cb); - void data_map(address_map &map); - void mem_map(address_map &map); + void data_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; u8 m_cass_data[4]{}; bool m_cassold = false, m_cassinbit = false; }; diff --git a/src/mame/ausnz/poly.h b/src/mame/ausnz/poly.h index 1fe85326b4f..a02f199faa1 100644 --- a/src/mame/ausnz/poly.h +++ b/src/mame/ausnz/poly.h @@ -90,13 +90,13 @@ class poly_state : public driver_device void init_poly(); - virtual void poly_bank(address_map &map); + virtual void poly_bank(address_map &map) ATTR_COLD; private: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; - void poly_mem(address_map &map); + void poly_mem(address_map &map) ATTR_COLD; uint8_t logical_mem_r(offs_t offset); void logical_mem_w(offs_t offset, uint8_t data); @@ -175,7 +175,7 @@ class polydev_state : public poly_state void fdc_inv_w(offs_t offset, uint8_t data); - virtual void poly_bank(address_map &map) override; + virtual void poly_bank(address_map &map) override ATTR_COLD; static void floppy_formats(format_registration &fr); diff --git a/src/mame/ausnz/proteus.cpp b/src/mame/ausnz/proteus.cpp index 0b0f8eeee1e..79a79e6761d 100644 --- a/src/mame/ausnz/proteus.cpp +++ b/src/mame/ausnz/proteus.cpp @@ -81,8 +81,8 @@ class proteus_state : public driver_device void proteus(machine_config &config); private: - virtual void machine_reset() override; - virtual void machine_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; void ptm_o2_callback(int state); void ptm_o3_callback(int state); @@ -99,9 +99,9 @@ class proteus_state : public driver_device void enable_z80_w(uint8_t data); void enable_6809_w(uint8_t data); - void proteus_6809_mem(address_map &map); - void proteus_z80_mem(address_map &map); - void proteus_z80_io(address_map &map); + void proteus_6809_mem(address_map &map) ATTR_COLD; + void proteus_z80_mem(address_map &map) ATTR_COLD; + void proteus_z80_io(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_z80; diff --git a/src/mame/ausnz/pulsar.cpp b/src/mame/ausnz/pulsar.cpp index f5cbab47b88..0fdd51cc9bd 100644 --- a/src/mame/ausnz/pulsar.cpp +++ b/src/mame/ausnz/pulsar.cpp @@ -71,16 +71,16 @@ class pulsar_state : public driver_device void pulsar(machine_config &config); private: - virtual void machine_reset() override; - virtual void machine_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; void ppi_pa_w(u8 data); void ppi_pb_w(u8 data); void ppi_pc_w(u8 data); u8 ppi_pc_r(); - void io_map(address_map &map); - void mem_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; floppy_image_device *m_floppy; memory_passthrough_handler m_rom_shadow_tap; diff --git a/src/mame/ausnz/super80.h b/src/mame/ausnz/super80.h index 6fae39d1f1e..dd54be20da9 100644 --- a/src/mame/ausnz/super80.h +++ b/src/mame/ausnz/super80.h @@ -101,8 +101,8 @@ class super80_state : public driver_device output_finder<> m_cass_led; private: - void machine_reset() override; - void machine_start() override; + void machine_reset() override ATTR_COLD; + void machine_start() override ATTR_COLD; void portf1_w(u8 data); TIMER_DEVICE_CALLBACK_MEMBER(timer_h); @@ -112,10 +112,10 @@ class super80_state : public driver_device uint32_t screen_update_super80e(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); uint32_t screen_update_super80m(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void super80_io(address_map &map); - void super80_map(address_map &map); - void super80e_io(address_map &map); - void super80m_map(address_map &map); + void super80_io(address_map &map) ATTR_COLD; + void super80_map(address_map &map) ATTR_COLD; + void super80e_io(address_map &map) ATTR_COLD; + void super80m_map(address_map &map) ATTR_COLD; u8 m_int_sw = 0; u16 m_vidpg = 0; @@ -140,10 +140,10 @@ class super80v_state : public super80_state void super80v(machine_config &config); protected: - void super80v_map(address_map &map); - void super80v_io(address_map &map); - void machine_reset() override; - void machine_start() override; + void super80v_map(address_map &map) ATTR_COLD; + void super80v_io(address_map &map) ATTR_COLD; + void machine_reset() override ATTR_COLD; + void machine_start() override ATTR_COLD; void port3f_w(u8 data); u8 port3e_r(); std::unique_ptr m_vram; @@ -176,7 +176,7 @@ class super80r_state : public super80v_state void super80r(machine_config &config); private: - void super80r_map(address_map &map); + void super80r_map(address_map &map) ATTR_COLD; void low_w(offs_t offset, u8 data); void high_w(offs_t offset, u8 data); u8 low_r(offs_t offset); diff --git a/src/mame/ausnz/tec1.cpp b/src/mame/ausnz/tec1.cpp index a061f291d96..87ccbe1caa9 100644 --- a/src/mame/ausnz/tec1.cpp +++ b/src/mame/ausnz/tec1.cpp @@ -102,7 +102,7 @@ class tec1_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(reset_button); private: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; u8 kbd_r(); u8 latch_r(); void tec1_digit_w(u8 data); @@ -112,10 +112,10 @@ class tec1_state : public driver_device bool m_key_pressed = 0; u8 m_seg = 0U; u8 m_digit = 0U; - void tec1_io(address_map &map); - void tec1_map(address_map &map); - void tecjmon_io(address_map &map); - void tecjmon_map(address_map &map); + void tec1_io(address_map &map) ATTR_COLD; + void tec1_map(address_map &map) ATTR_COLD; + void tecjmon_io(address_map &map) ATTR_COLD; + void tecjmon_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_speaker; optional_device m_cass; diff --git a/src/mame/banctec/banctec.cpp b/src/mame/banctec/banctec.cpp index db1faffa5b2..84889b32ee4 100644 --- a/src/mame/banctec/banctec.cpp +++ b/src/mame/banctec/banctec.cpp @@ -44,9 +44,9 @@ class banctec_state : public driver_device MC6845_ON_UPDATE_ADDR_CHANGED(crtc_addr); void videoram_w(u8 data); - virtual void machine_reset() override; - void banctec_mcu_mem(address_map &map); - void banctec_mem(address_map &map); + virtual void machine_reset() override ATTR_COLD; + void banctec_mcu_mem(address_map &map) ATTR_COLD; + void banctec_mem(address_map &map) ATTR_COLD; private: required_device m_palette; diff --git a/src/mame/bandai/design_master.cpp b/src/mame/bandai/design_master.cpp index fc8b841b1f7..91cff0fed2d 100644 --- a/src/mame/bandai/design_master.cpp +++ b/src/mame/bandai/design_master.cpp @@ -64,10 +64,10 @@ class bdsm_state : public driver_device void bdesignm(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; uint16_t io_p7_r(); diff --git a/src/mame/bandai/rx78.cpp b/src/mame/bandai/rx78.cpp index 820421aa8c5..b71d312cb06 100644 --- a/src/mame/bandai/rx78.cpp +++ b/src/mame/bandai/rx78.cpp @@ -111,10 +111,10 @@ class rx78_state : public driver_device DECLARE_DEVICE_IMAGE_LOAD_MEMBER( cart_load ); uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - virtual void machine_reset() override; - virtual void machine_start() override; - void rx78_io(address_map &map); - void rx78_mem(address_map &map); + virtual void machine_reset() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; + void rx78_io(address_map &map) ATTR_COLD; + void rx78_mem(address_map &map) ATTR_COLD; u8 m_vram_read_bank = 0U; u8 m_vram_write_bank = 0U; diff --git a/src/mame/bandai/sv8000.cpp b/src/mame/bandai/sv8000.cpp index f67137f0529..486364da546 100644 --- a/src/mame/bandai/sv8000.cpp +++ b/src/mame/bandai/sv8000.cpp @@ -55,7 +55,7 @@ class sv8000_state : public driver_device void sv8000(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: void ay_port_a_w(u8 data); @@ -66,8 +66,8 @@ class sv8000_state : public driver_device u8 mc6847_videoram_r(offs_t offset); - void io_map(address_map &map); - void mem_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_s68047p; diff --git a/src/mame/bandai/tamag1.cpp b/src/mame/bandai/tamag1.cpp index 3a36928929a..a2ac607c632 100644 --- a/src/mame/bandai/tamag1.cpp +++ b/src/mame/bandai/tamag1.cpp @@ -45,7 +45,7 @@ class tamag1_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(input_changed); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: void tama_palette(palette_device &palette) const; diff --git a/src/mame/bandai/wswan.cpp b/src/mame/bandai/wswan.cpp index d892621267c..2481df8174f 100644 --- a/src/mame/bandai/wswan.cpp +++ b/src/mame/bandai/wswan.cpp @@ -148,13 +148,13 @@ class wswan_state : public driver_device void set_irq_line(int irq); void dma_sound_cb(); void common_start(); - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; void palette(palette_device &palette) const; - void io_map(address_map &map); - void mem_map(address_map &map); - void snd_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; + void snd_map(address_map &map) ATTR_COLD; void register_save(); void handle_irqs(); @@ -173,8 +173,8 @@ class wscolor_state : public wswan_state void wscolor(machine_config &config); protected: - virtual void machine_start() override; - void mem_map(address_map &map); + virtual void machine_start() override ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; void palette(palette_device &palette) const; virtual u16 get_internal_eeprom_address() override; }; diff --git a/src/mame/bandai/wswan_v.h b/src/mame/bandai/wswan_v.h index 237848e3b40..613d9007348 100644 --- a/src/mame/bandai/wswan_v.h +++ b/src/mame/bandai/wswan_v.h @@ -50,8 +50,8 @@ class wswan_video_device : public device_t, public device_video_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; void setup_palettes(); void draw_background(); diff --git a/src/mame/barcrest/mpu1.cpp b/src/mame/barcrest/mpu1.cpp index 28bdc00d6cb..39d12a1765c 100644 --- a/src/mame/barcrest/mpu1.cpp +++ b/src/mame/barcrest/mpu1.cpp @@ -99,8 +99,8 @@ class mpu12_base_state : public driver_device void mpu12_base(machine_config &config); - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; TIMER_DEVICE_CALLBACK_MEMBER(nmi); TIMER_CALLBACK_MEMBER(change_pia2a_bit7); @@ -115,7 +115,7 @@ class mpu12_base_state : public driver_device void meter_tick_w(int meter, bool state); void coin_lockout_w(bool state); - void mpu1_map(address_map &map); + void mpu1_map(address_map &map) ATTR_COLD; uint8_t m_lamp_relay; lamp_flags m_lamp_flags_pia2b[8]; @@ -189,7 +189,7 @@ class mpu2_em_state : public mpu1_state void mpu2_em_lg(machine_config &config); private: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; template TIMER_DEVICE_CALLBACK_MEMBER(clear_digit) { m_digits[Digit] = 0; }; @@ -203,7 +203,7 @@ class mpu2_em_state : public mpu1_state void nvram_w(offs_t offset, uint8_t data) { m_nvram[offset] = data & 0xf; } virtual void update_pia_lamps() override; - void mpu2_em_map(address_map &map); + void mpu2_em_map(address_map &map) ATTR_COLD; uint8_t m_disp_digit; @@ -233,7 +233,7 @@ class mpu2_stepper_state : public mpu12_base_state void mpu2_stepper_triple(machine_config &config); private: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; virtual void device_post_load() override; template void opto_cb(int state) { m_optos[N] = state; } @@ -251,7 +251,7 @@ class mpu2_stepper_state : public mpu12_base_state void reel_w(int reel, uint8_t data); virtual void update_pia_lamps() override; - void mpu2_stepper_map(address_map &map); + void mpu2_stepper_map(address_map &map) ATTR_COLD; uint8_t m_optos[3]; uint8_t m_reel1; diff --git a/src/mame/barcrest/mpu3.cpp b/src/mame/barcrest/mpu3.cpp index 578d4ec0444..1e0b4b03b87 100644 --- a/src/mame/barcrest/mpu3.cpp +++ b/src/mame/barcrest/mpu3.cpp @@ -197,7 +197,7 @@ class mpu3_state : public driver_device void init_mpu3(); protected: - void mpu3_basemap(address_map &map); + void mpu3_basemap(address_map &map) ATTR_COLD; required_device m_maincpu; @@ -234,8 +234,8 @@ class mpu3_state : public driver_device void ic21_output(int data); void ic21_setup(); - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; int m_triac_ic3 = 0; int m_triac_ic4 = 0; @@ -295,8 +295,8 @@ class mpu3_chr_state : public mpu3_state void mpu3_chr_c000(machine_config &config); private: - void mpu3_map_chr_3000(address_map &map); - void mpu3_map_chr_c000(address_map &map); + void mpu3_map_chr_3000(address_map &map) ATTR_COLD; + void mpu3_map_chr_c000(address_map &map) ATTR_COLD; required_device m_characteriser; }; diff --git a/src/mame/barcrest/mpu4.h b/src/mame/barcrest/mpu4.h index 1bb2ac858e0..798e4508f9d 100644 --- a/src/mame/barcrest/mpu4.h +++ b/src/mame/barcrest/mpu4.h @@ -344,10 +344,10 @@ class mpu4_state : public driver_device TIMER_CALLBACK_MEMBER(update_ic24); - void mpu4_memmap(address_map &map); - void mpu4_memmap_characteriser(address_map &map); - void mpu4_memmap_bootleg_characteriser(address_map &map); - void mpu4_memmap_bl_characteriser_blastbank(address_map &map); + void mpu4_memmap(address_map &map) ATTR_COLD; + void mpu4_memmap_characteriser(address_map &map) ATTR_COLD; + void mpu4_memmap_bootleg_characteriser(address_map &map) ATTR_COLD; + void mpu4_memmap_bl_characteriser_blastbank(address_map &map) ATTR_COLD; void lamp_extend_small(uint8_t data); void lamp_extend_large(uint8_t data, uint8_t column, bool active); diff --git a/src/mame/barcrest/mpu4_characteriser_bootleg.h b/src/mame/barcrest/mpu4_characteriser_bootleg.h index 9e1856098d2..ed511d73e30 100644 --- a/src/mame/barcrest/mpu4_characteriser_bootleg.h +++ b/src/mame/barcrest/mpu4_characteriser_bootleg.h @@ -40,8 +40,8 @@ class mpu4_characteriser_bl : public device_t protected: mpu4_characteriser_bl(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; private: uint8_t m_blfixedreturn = 0; @@ -59,8 +59,8 @@ class mpu4_characteriser_bl_blastbank : public device_t void set_retxor(uint8_t retxor) { m_retxor = retxor; } protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; uint8_t m_retxor = 0x00; diff --git a/src/mame/barcrest/mpu4_characteriser_pal.h b/src/mame/barcrest/mpu4_characteriser_pal.h index 98c0bea143f..9353564c5fb 100644 --- a/src/mame/barcrest/mpu4_characteriser_pal.h +++ b/src/mame/barcrest/mpu4_characteriser_pal.h @@ -1403,8 +1403,8 @@ class mpu4_characteriser_pal : public device_t protected: mpu4_characteriser_pal(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; uint8_t* m_current_chr_table; int m_prot_col; diff --git a/src/mame/barcrest/mpu4_characteriser_pal_bwb.h b/src/mame/barcrest/mpu4_characteriser_pal_bwb.h index 3064b6dee26..63dc73cc1eb 100644 --- a/src/mame/barcrest/mpu4_characteriser_pal_bwb.h +++ b/src/mame/barcrest/mpu4_characteriser_pal_bwb.h @@ -35,8 +35,8 @@ class mpu4_characteriser_pal_bwb : public device_t protected: mpu4_characteriser_pal_bwb(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; private: int m_chr_counter = 0; diff --git a/src/mame/barcrest/mpu4_oki_sampled_sound.h b/src/mame/barcrest/mpu4_oki_sampled_sound.h index e0fd466d898..87d8af37249 100644 --- a/src/mame/barcrest/mpu4_oki_sampled_sound.h +++ b/src/mame/barcrest/mpu4_oki_sampled_sound.h @@ -27,8 +27,8 @@ class mpu4_oki_sampled_sound : public device_t, public device_mixer_interface uint8_t ic4_read(offs_t offset); protected: - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; private: devcb_write_line m_cb2_handler; diff --git a/src/mame/barcrest/mpu4bwb.cpp b/src/mame/barcrest/mpu4bwb.cpp index 69475e08da5..09174093b40 100644 --- a/src/mame/barcrest/mpu4bwb.cpp +++ b/src/mame/barcrest/mpu4bwb.cpp @@ -100,7 +100,7 @@ class mpu4bwb_machines_state : public mpu4_state protected: - void mpu4_memmap_characteriser_bwb(address_map &map); + void mpu4_memmap_characteriser_bwb(address_map &map) ATTR_COLD; void mpu4_install_mod4bwb_space(address_space &space); diff --git a/src/mame/barcrest/mpu4dealem.cpp b/src/mame/barcrest/mpu4dealem.cpp index 8586fe9ccba..5a835d120d3 100644 --- a/src/mame/barcrest/mpu4dealem.cpp +++ b/src/mame/barcrest/mpu4dealem.cpp @@ -38,14 +38,14 @@ class mpu4dealem_state : public mpu4_state void dealem(machine_config &config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: DECLARE_MACHINE_RESET(dealem_vid); void dealem_palette(palette_device &palette) const; uint32_t screen_update_dealem(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void dealem_memmap(address_map &map); + void dealem_memmap(address_map &map) ATTR_COLD; TILE_GET_INFO_MEMBER(tile_info); optional_shared_ptr m_dealem_videoram; diff --git a/src/mame/barcrest/mpu4mod2sw.cpp b/src/mame/barcrest/mpu4mod2sw.cpp index ec8f7815aef..80d2ad0f66b 100644 --- a/src/mame/barcrest/mpu4mod2sw.cpp +++ b/src/mame/barcrest/mpu4mod2sw.cpp @@ -71,7 +71,7 @@ class mpu4mod2_machines_state : public mpu4_state void init_m4test(); private: - void mpu4_memmap_characteriser_rtc(address_map &map); + void mpu4_memmap_characteriser_rtc(address_map &map) ATTR_COLD; void ay8912_outport_w(uint8_t data); }; diff --git a/src/mame/barcrest/mpu4mod4yam.cpp b/src/mame/barcrest/mpu4mod4yam.cpp index cd2cea334ea..c13a99b2816 100644 --- a/src/mame/barcrest/mpu4mod4yam.cpp +++ b/src/mame/barcrest/mpu4mod4yam.cpp @@ -55,9 +55,9 @@ class mpu4mod4yam_machines_state : public mpu4_state private: void add_ym2413(machine_config& config); - void memmap_ym2413(address_map &map); - void memmap_characteriser_ym2413(address_map &map); - void memmap_bootleg_characteriser_ym2413(address_map &map); + void memmap_ym2413(address_map &map) ATTR_COLD; + void memmap_characteriser_ym2413(address_map &map) ATTR_COLD; + void memmap_bootleg_characteriser_ym2413(address_map &map) ATTR_COLD; DECLARE_MACHINE_START(mpu4yam); diff --git a/src/mame/barcrest/mpu4plasma.cpp b/src/mame/barcrest/mpu4plasma.cpp index 4faf82b4e4b..228846f983d 100644 --- a/src/mame/barcrest/mpu4plasma.cpp +++ b/src/mame/barcrest/mpu4plasma.cpp @@ -39,7 +39,7 @@ class mpu4plasma_state : public mpu4_state required_device m_palette; uint32_t screen_update_mpu4plasma(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void mpu4plasma_map(address_map &map); + void mpu4plasma_map(address_map &map) ATTR_COLD; }; #include "mpu4plasma.lh" diff --git a/src/mame/barcrest/mpu4redpoint.cpp b/src/mame/barcrest/mpu4redpoint.cpp index a1d8cc77571..7642a8005c6 100644 --- a/src/mame/barcrest/mpu4redpoint.cpp +++ b/src/mame/barcrest/mpu4redpoint.cpp @@ -28,7 +28,7 @@ class mpu4redpoint_state : public mpu4_state private: void add_ympcm(machine_config &config); - void memmap_ympcm(address_map &map); + void memmap_ympcm(address_map &map) ATTR_COLD; DECLARE_MACHINE_START(mpu4redpoint); diff --git a/src/mame/barcrest/mpu4vid.cpp b/src/mame/barcrest/mpu4vid.cpp index 020fd7243ae..e46f90e8724 100644 --- a/src/mame/barcrest/mpu4vid.cpp +++ b/src/mame/barcrest/mpu4vid.cpp @@ -275,9 +275,9 @@ class mpu4vid_state : public mpu4_state void init_bwbhack(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_videocpu; @@ -320,18 +320,18 @@ class mpu4vid_state : public mpu4_state uint8_t vram_r(offs_t offset); void ic3ss_vid_w(offs_t offset, uint8_t data); - void bwbvidoki_68k_base_map(address_map &map); - void bwbvidoki_68k_map(address_map &map); - void bwbvidoki_68k_bt471_map(address_map &map); - void bwbvid_68k_map(address_map &map); - void mpu4_68k_map_base(address_map &map); - void mpu4_68k_map(address_map &map); - void mpu4_68k_map_strike(address_map &map); - void mpu4_vram(address_map &map); - void mpu4oki_68k_map(address_map &map); - - void mpu4_6809_map(address_map &map); - void mpu4_6809_german_map(address_map &map); + void bwbvidoki_68k_base_map(address_map &map) ATTR_COLD; + void bwbvidoki_68k_map(address_map &map) ATTR_COLD; + void bwbvidoki_68k_bt471_map(address_map &map) ATTR_COLD; + void bwbvid_68k_map(address_map &map) ATTR_COLD; + void mpu4_68k_map_base(address_map &map) ATTR_COLD; + void mpu4_68k_map(address_map &map) ATTR_COLD; + void mpu4_68k_map_strike(address_map &map) ATTR_COLD; + void mpu4_vram(address_map &map) ATTR_COLD; + void mpu4oki_68k_map(address_map &map) ATTR_COLD; + + void mpu4_6809_map(address_map &map) ATTR_COLD; + void mpu4_6809_german_map(address_map &map) ATTR_COLD; uint8_t vidcharacteriser_4k_lookup_r(offs_t offset); diff --git a/src/mame/barcrest/mpu5.h b/src/mame/barcrest/mpu5.h index fb6460f0457..86f876a8f64 100644 --- a/src/mame/barcrest/mpu5.h +++ b/src/mame/barcrest/mpu5.h @@ -23,7 +23,7 @@ class mpu5_state : public driver_device void mpu5(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: uint16_t mpu5_mem_r(offs_t offset, uint16_t mem_mask = ~0); @@ -37,7 +37,7 @@ class mpu5_state : public driver_device uint16_t pic_r(offs_t offset); void pic_w(offs_t offset, uint16_t data); - void mpu5_map(address_map &map); + void mpu5_map(address_map &map) ATTR_COLD; uint16_t* m_cpuregion = nullptr; std::unique_ptr m_mainram; diff --git a/src/mame/be/bebox.h b/src/mame/be/bebox.h index 1f4da3bdbc5..cf681de91ab 100644 --- a/src/mame/be/bebox.h +++ b/src/mame/be/bebox.h @@ -56,8 +56,8 @@ class bebox_state : public driver_device int m_dma_channel = 0; // TODO: move to private once possible protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device_array m_ppc; @@ -128,8 +128,8 @@ class bebox_state : public driver_device pci_connector_device & add_pci_slot(machine_config &config, const char *tag, size_t index, const char *default_tag); - void main_mem(address_map &map); - void slave_mem(address_map &map); + void main_mem(address_map &map) ATTR_COLD; + void slave_mem(address_map &map) ATTR_COLD; [[maybe_unused]] uint32_t scsi53c810_pci_read(int function, int offset, uint32_t mem_mask); [[maybe_unused]] void scsi53c810_pci_write(int function, int offset, uint32_t data, uint32_t mem_mask); diff --git a/src/mame/beehive/microb.cpp b/src/mame/beehive/microb.cpp index 27cb221046e..df4f33009b8 100644 --- a/src/mame/beehive/microb.cpp +++ b/src/mame/beehive/microb.cpp @@ -50,7 +50,7 @@ class microb_state : public driver_device void microb(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: void dmac_hrq_w(int state); @@ -61,8 +61,8 @@ class microb_state : public driver_device u8 ppi2_pa_r(); void ppi2_pc_w(u8 data); - void microb_io(address_map &map); - void microb_mem(address_map &map); + void microb_io(address_map &map) ATTR_COLD; + void microb_mem(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_dmac; diff --git a/src/mame/benesse/challenge_gear.cpp b/src/mame/benesse/challenge_gear.cpp index 4dc8477b53d..18051c7fcc5 100644 --- a/src/mame/benesse/challenge_gear.cpp +++ b/src/mame/benesse/challenge_gear.cpp @@ -52,14 +52,14 @@ class challenge_gear_state : public driver_device void challenge_gear(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: uint32_t screen_update_challenge_gear(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); DECLARE_DEVICE_IMAGE_LOAD_MEMBER(cart_load); - void program_map(address_map &map); + void program_map(address_map &map) ATTR_COLD; //required_device m_maincpu; required_device m_cart; diff --git a/src/mame/benesse/pockchal.cpp b/src/mame/benesse/pockchal.cpp index 4ae5f46d7a1..46ffdc1fc8c 100644 --- a/src/mame/benesse/pockchal.cpp +++ b/src/mame/benesse/pockchal.cpp @@ -46,14 +46,14 @@ class pockchalv1_state : public driver_device void pockchalv1(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: uint32_t screen_update_pockchalv1(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); DECLARE_DEVICE_IMAGE_LOAD_MEMBER(cart_load); - void pockchalv1_map(address_map &map); + void pockchalv1_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_cart; diff --git a/src/mame/bfm/bfcobra.cpp b/src/mame/bfm/bfcobra.cpp index 56862d17205..abc0523d377 100644 --- a/src/mame/bfm/bfcobra.cpp +++ b/src/mame/bfm/bfcobra.cpp @@ -294,8 +294,8 @@ class bfcobra_state : public driver_device void m6809_data_irq(int state); void data_acia_tx_w(int state); void write_acia_clock(int state); - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; uint32_t screen_update_bfcobra(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); INTERRUPT_GEN_MEMBER(timer_irq); INTERRUPT_GEN_MEMBER(vblank_gen); @@ -308,10 +308,10 @@ class bfcobra_state : public driver_device inline uint8_t* blitter_get_addr(uint32_t addr); inline void z80_bank(int num, int data); - void m6809_prog_map(address_map &map); - void ramdac_map(address_map &map); - void z80_io_map(address_map &map); - void z80_prog_map(address_map &map); + void m6809_prog_map(address_map &map) ATTR_COLD; + void ramdac_map(address_map &map) ATTR_COLD; + void z80_io_map(address_map &map) ATTR_COLD; + void z80_prog_map(address_map &map) ATTR_COLD; private: uint8_t m_bank_data[4]{}; @@ -1751,9 +1751,9 @@ class bfcobjam_state : public driver_device void bfcobjam_with_dmd(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: uint8_t m_bank_data[4]{}; @@ -1820,9 +1820,9 @@ class bfcobjam_state : public driver_device inline uint8_t* blitter_get_addr(uint32_t addr); inline void z8s180_bank(int num, int data); - void ramdac_map(address_map &map); - void z8s180_io_map(address_map &map); - void z8s180_prog_map(address_map &map); + void ramdac_map(address_map &map) ATTR_COLD; + void z8s180_io_map(address_map &map) ATTR_COLD; + void z8s180_prog_map(address_map &map) ATTR_COLD; }; void bfcobjam_state::init_bfcobjam() diff --git a/src/mame/bfm/bfm_ad5.h b/src/mame/bfm/bfm_ad5.h index 44d66ff147c..7c2445b504e 100644 --- a/src/mame/bfm/bfm_ad5.h +++ b/src/mame/bfm/bfm_ad5.h @@ -21,7 +21,7 @@ class adder5_state : public driver_device protected: INTERRUPT_GEN_MEMBER(ad5_fake_timer_int); - void ad5_map(address_map &map); + void ad5_map(address_map &map) ATTR_COLD; private: // devices diff --git a/src/mame/bfm/bfm_adr2.h b/src/mame/bfm/bfm_adr2.h index 91fdfc478bb..8ace49cb0e3 100644 --- a/src/mame/bfm/bfm_adr2.h +++ b/src/mame/bfm/bfm_adr2.h @@ -21,9 +21,9 @@ class bfm_adder2_device : public device_t, public device_gfx_interface protected: // device-level overrides - 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; private: required_device m_cpu; @@ -61,7 +61,7 @@ class bfm_adder2_device : public device_t, public device_gfx_interface void decode_char_roms(); - void prg_map(address_map &map); + void prg_map(address_map &map) ATTR_COLD; uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void vbl_w(int state); diff --git a/src/mame/bfm/bfm_bd1.h b/src/mame/bfm/bfm_bd1.h index 63e02df7c7d..4dddf294f94 100644 --- a/src/mame/bfm/bfm_bd1.h +++ b/src/mame/bfm/bfm_bd1.h @@ -32,8 +32,8 @@ class bfm_bd1_device : public device_t void por(int state); protected: - 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 device_post_load() override; private: diff --git a/src/mame/bfm/bfm_bda.h b/src/mame/bfm/bfm_bda.h index fc008cbdb61..680f6632b25 100644 --- a/src/mame/bfm/bfm_bda.h +++ b/src/mame/bfm/bfm_bda.h @@ -29,8 +29,8 @@ class bfm_bda_device : public device_t uint16_t set_display(uint16_t segin); protected: - 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 device_post_load() override; private: diff --git a/src/mame/bfm/bfm_blackbox.cpp b/src/mame/bfm/bfm_blackbox.cpp index dd715f74fb6..cf496795e99 100644 --- a/src/mame/bfm/bfm_blackbox.cpp +++ b/src/mame/bfm/bfm_blackbox.cpp @@ -89,7 +89,7 @@ class blackbox_base_state : public driver_device void blackbox_base(machine_config &config); - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; TIMER_DEVICE_CALLBACK_MEMBER(nmi) { m_maincpu->pulse_input_line(INPUT_LINE_NMI, attotime::zero); } TIMER_DEVICE_CALLBACK_MEMBER(irq) { m_maincpu->pulse_input_line(M6800_IRQ_LINE, attotime::from_usec(2500)); } @@ -112,7 +112,7 @@ class blackbox_base_state : public driver_device template uint8_t out_disp_r(address_space &space); void payout_w(uint8_t payout, uint8_t enable, bool state); - void blackbox_base_map(address_map &map); + void blackbox_base_map(address_map &map) ATTR_COLD; uint8_t m_out_data; uint8_t m_input_en[6]; @@ -179,8 +179,8 @@ class blackbox_em_state : public blackbox_em_base_state uint8_t out_lamps2_buzzer_r(address_space &space); uint8_t out_bellt_in_select_r(address_space &space); - void blackbox_em_map(address_map &map); - void blackbox_em_bellt_map(address_map &map); + void blackbox_em_map(address_map &map) ATTR_COLD; + void blackbox_em_bellt_map(address_map &map) ATTR_COLD; bool m_buzzer_on; bool m_in_extra_select[8]; @@ -204,7 +204,7 @@ class blackbox_em_21up_state : public blackbox_em_state void out_lamps1_beeper_w(address_space &space, uint8_t data); uint8_t out_lamps1_beeper_r(address_space &space); - void blackbox_em_21up_map(address_map &map); + void blackbox_em_21up_map(address_map &map) ATTR_COLD; bool m_beeper_on; int16_t m_beep_sample_data[477]; @@ -235,7 +235,7 @@ class blackbox_em_admc_state : public blackbox_em_state uint8_t prot_r(); void prot_reset_w(uint8_t data) { m_prot_index = 0; } - void blackbox_em_admc_map(address_map &map); + void blackbox_em_admc_map(address_map &map) ATTR_COLD; uint8_t m_prot_index; uint8_t m_sound_value; @@ -255,7 +255,7 @@ class blackbox_em_opto_state : public blackbox_em_base_state void out_meters_w(address_space &space, uint8_t data); uint8_t out_meters_r(address_space &space); - void blackbox_em_opto_map(address_map &map); + void blackbox_em_opto_map(address_map &map) ATTR_COLD; }; class blackbox_em_opto_sndgen_state : public blackbox_em_opto_state @@ -274,7 +274,7 @@ class blackbox_em_opto_sndgen_state : public blackbox_em_opto_state uint8_t out_tone_r(address_space &space); uint8_t out_mute_r(address_space &space); - void blackbox_em_opto_sndgen_map(address_map &map); + void blackbox_em_opto_sndgen_map(address_map &map) ATTR_COLD; required_device m_beep; }; @@ -294,7 +294,7 @@ class blackbox_em_opto_aux_state : public blackbox_em_opto_state void out_tone_w(address_space &space, uint8_t data); uint8_t out_tone_r(address_space &space); - void blackbox_em_opto_aux_map(address_map &map); + void blackbox_em_opto_aux_map(address_map &map) ATTR_COLD; required_device m_beep; }; @@ -320,7 +320,7 @@ class blackbox_em_opto_music_state : public blackbox_em_opto_state void tms1000_r_w(uint32_t data); void tms1000_o_w(uint16_t data); - void blackbox_em_opto_music_map(address_map &map); + void blackbox_em_opto_music_map(address_map &map) ATTR_COLD; uint8_t m_k_cols; uint8_t m_r_bits; @@ -343,7 +343,7 @@ class blackbox_em_opto_club_state : public blackbox_em_opto_aux_state void blackbox_em_opto_club(machine_config &config); private: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; void out_triacs1_w(address_space &space, uint8_t data); void out_triacs2_w(address_space &space, uint8_t data); @@ -353,7 +353,7 @@ class blackbox_em_opto_club_state : public blackbox_em_opto_aux_state uint8_t out_meters_r(address_space &space); void update_payout(uint8_t payout); - void blackbox_em_opto_club_map(address_map &map); + void blackbox_em_opto_club_map(address_map &map) ATTR_COLD; bool m_payout_en[2]; }; diff --git a/src/mame/bfm/bfm_dm01.h b/src/mame/bfm/bfm_dm01.h index 03d6df0efff..ff9a2f05d52 100644 --- a/src/mame/bfm/bfm_dm01.h +++ b/src/mame/bfm/bfm_dm01.h @@ -32,12 +32,12 @@ class bfm_dm01_device : public device_t void writedata(uint8_t data); int busy(void); - void bfm_dm01_memmap(address_map &map); + void bfm_dm01_memmap(address_map &map) ATTR_COLD; protected: // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: static constexpr unsigned BYTES_PER_ROW = 9; diff --git a/src/mame/bfm/bfm_gu96x8m_k657c2.h b/src/mame/bfm/bfm_gu96x8m_k657c2.h index 99e04126ca6..82b3977838d 100644 --- a/src/mame/bfm/bfm_gu96x8m_k657c2.h +++ b/src/mame/bfm/bfm_gu96x8m_k657c2.h @@ -24,8 +24,8 @@ class bfm_gu96x8m_k657c2_device : public device_t void set_char(int data); protected: - 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 device_post_load() override; private: diff --git a/src/mame/bfm/bfm_sc1.cpp b/src/mame/bfm/bfm_sc1.cpp index ef69e0ae800..03fef790c35 100644 --- a/src/mame/bfm/bfm_sc1.cpp +++ b/src/mame/bfm/bfm_sc1.cpp @@ -184,15 +184,15 @@ class bfm_sc1_state : public driver_device void save_state(); virtual void machine_start() override { m_lamps.resolve(); } - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; INTERRUPT_GEN_MEMBER(timer_irq); void sc1_common_init(int reels, int decrypt, int defaultbank); void Scorpion1_SetSwitchState(int strobe, int data, int state); int sc1_find_project_string(); - void sc1_adder2(address_map &map); - void sc1_base(address_map &map); - void sc1_viper(address_map &map); + void sc1_adder2(address_map &map) ATTR_COLD; + void sc1_base(address_map &map) ATTR_COLD; + void sc1_viper(address_map &map) ATTR_COLD; private: int m_mmtr_latch = 0; diff --git a/src/mame/bfm/bfm_sc2.cpp b/src/mame/bfm/bfm_sc2.cpp index 321dec54c32..7ad9371d052 100644 --- a/src/mame/bfm/bfm_sc2.cpp +++ b/src/mame/bfm/bfm_sc2.cpp @@ -266,7 +266,7 @@ class bfm_sc2_state : public driver_device int recdata(int changed, int data); void nec_reset_w(uint8_t data); void nec_latch_w(uint8_t data); - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; INTERRUPT_GEN_MEMBER(timer_irq); void on_scorpion2_reset(); void Scorpion2_SetSwitchState(int strobe, int data, int state); @@ -282,7 +282,7 @@ class bfm_sc2_state : public driver_device void _3meters(machine_config &config); void _5meters(machine_config &config); void _8meters(machine_config &config); - void sc2_basemap(address_map &map); + void sc2_basemap(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_upd7759; @@ -355,12 +355,12 @@ class bfm_sc2_vid_state : public bfm_sc2_state void scorpion2_vidm(machine_config &config); protected: - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; void reel12_vid_w(uint8_t data); uint8_t vfd_status_hop_r(); - void memmap_vid(address_map &map); + void memmap_vid(address_map &map) ATTR_COLD; }; @@ -387,7 +387,7 @@ class bfm_sc2_novid_state : public bfm_sc2_state void sc2awp_common_init(int reels, int decrypt); void sc2awpdmd_common_init(int reels, int decrypt); - void memmap_no_vid(address_map &map); + void memmap_no_vid(address_map &map) ATTR_COLD; optional_device m_dm01; optional_device_array m_reel; @@ -411,7 +411,7 @@ class bfm_sc2_awp_state : public bfm_sc2_novid_state void scorpion2(machine_config &config); protected: - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; }; @@ -429,8 +429,8 @@ class bfm_sc2_dmd_state : public bfm_sc2_novid_state void scorpion2_dm01_3m(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; void vfd1_dmd_w(uint8_t data); void dmd_reset_w(uint8_t data); diff --git a/src/mame/bfm/bfm_sc4.h b/src/mame/bfm/bfm_sc4.h index 6220fd5e875..67b90defe30 100644 --- a/src/mame/bfm/bfm_sc4.h +++ b/src/mame/bfm/bfm_sc4.h @@ -121,7 +121,7 @@ class bfm_sc45_state : public driver_device bool m_segment_34_encoding = false; uint8_t m_segment_34_cache[32]{}; - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; void mux_output_w(offs_t offset, uint8_t data); void mux_output2_w(offs_t offset, uint8_t data); @@ -604,8 +604,8 @@ class sc4_state : public bfm_sc45_state void init_sc4corotb(); void init_sc4hyper(); - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; void bfm_sc4_68307_porta_w(address_space &space, bool dedicated, uint8_t data, uint8_t line_mask); void bfm_sc4_reel3_w(uint8_t data); @@ -641,7 +641,7 @@ class sc4_state : public bfm_sc45_state void sc4_adder4(machine_config &config); void sc4_no_reels(machine_config &config); void sc4dmd(machine_config &config); - void sc4_map(address_map &map); + void sc4_map(address_map &map) ATTR_COLD; protected: optional_ioport_array<16> m_io_ports; @@ -661,12 +661,12 @@ class sc4_adder4_state : public sc4_state uint16_t adder4_mem_r(offs_t offset, uint16_t mem_mask = ~0); void adder4_mem_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; // devices required_device m_adder4cpu; void sc4_adder4(machine_config &config); - void sc4_adder4_map(address_map &map); + void sc4_adder4_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/bfm/bfm_sc5.h b/src/mame/bfm/bfm_sc5.h index 15101b51d90..ea870aec761 100644 --- a/src/mame/bfm/bfm_sc5.h +++ b/src/mame/bfm/bfm_sc5.h @@ -21,7 +21,7 @@ class bfm_sc5_state : public bfm_sc45_state void bfm_sc5(machine_config &config); protected: - void sc5_map(address_map &map); + void sc5_map(address_map &map) ATTR_COLD; required_device m_maincpu; diff --git a/src/mame/bfm/bfm_swp.cpp b/src/mame/bfm/bfm_swp.cpp index 67cdbbbeeca..17cc02cef31 100644 --- a/src/mame/bfm/bfm_swp.cpp +++ b/src/mame/bfm/bfm_swp.cpp @@ -131,14 +131,14 @@ class bfm_swp_state : public driver_device } void bfm_swp(machine_config &config); - void bfm_swp_map(address_map &map); + void bfm_swp_map(address_map &map) ATTR_COLD; protected: // devices required_device m_maincpu; required_region_ptr m_cpuregion; - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; }; uint16_t bfm_swp_state::bfm_swp_mem_r(offs_t offset, uint16_t mem_mask) diff --git a/src/mame/bfm/bfmsys83.cpp b/src/mame/bfm/bfmsys83.cpp index 406289a0786..c98dc6f7c52 100644 --- a/src/mame/bfm/bfmsys83.cpp +++ b/src/mame/bfm/bfmsys83.cpp @@ -21,7 +21,7 @@ class bfmsys83_state : public driver_device uint8_t m_codec_data[256]; required_device m_maincpu; void bfmsys83(machine_config &config); - void memmap(address_map &map); + void memmap(address_map &map) ATTR_COLD; }; diff --git a/src/mame/bfm/bfmsys85.cpp b/src/mame/bfm/bfmsys85.cpp index cea21677018..ab1a0b9deda 100644 --- a/src/mame/bfm/bfmsys85.cpp +++ b/src/mame/bfm/bfmsys85.cpp @@ -91,7 +91,7 @@ class bfmsys85_state : public driver_device { } void bfmsys85(machine_config &config); - void memmap(address_map &map); + void memmap(address_map &map) ATTR_COLD; INTERRUPT_GEN_MEMBER(timer_irq); @@ -99,8 +99,8 @@ class bfmsys85_state : public driver_device void init_nodecode(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: int m_mmtr_latch = 0; diff --git a/src/mame/bfm/rastersp.cpp b/src/mame/bfm/rastersp.cpp index 76be73ba3ff..3a40d54762d 100644 --- a/src/mame/bfm/rastersp.cpp +++ b/src/mame/bfm/rastersp.cpp @@ -80,18 +80,18 @@ class rastersp_state : public driver_device void rs_config_base(machine_config &config); protected: - virtual void machine_reset() override; - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; uint8_t interrupt_ctrl_r(offs_t offset); void interrupt_ctrl_w(offs_t offset, uint8_t data); uint8_t nvram_r(offs_t offset); void nvram_w(offs_t offset, uint8_t data); - void cpu_map_base(address_map &map); - void io_map(address_map &map); - void dsp_map_base(address_map &map); + void cpu_map_base(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; + void dsp_map_base(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_dsp; @@ -172,8 +172,8 @@ class rastersp_state : public driver_device IRQ_CALLBACK_MEMBER(irq_callback); nscsi_connector &add_rastersp_scsi_slot(machine_config &config, const char *tag, const char *default_slot); static void ncr53c700_config(device_t *device); - void cpu_map(address_map &map); - void dsp_map(address_map &map); + void cpu_map(address_map &map) ATTR_COLD; + void dsp_map(address_map &map) ATTR_COLD; uint8_t interrupt_status_r(offs_t offset); std::unique_ptr m_nvram8; @@ -208,8 +208,8 @@ class fbcrazy_state : public rastersp_state int meter_pulse_r(); protected: - virtual void machine_reset() override; - virtual void machine_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; private: required_ioport m_io_track_x; @@ -222,8 +222,8 @@ class fbcrazy_state : public rastersp_state void aux_port3_w(offs_t offset, uint8_t data); void aux_port4_w(offs_t offset, uint8_t data); - void cpu_map(address_map &map); - void dsp_map(address_map &map); + void cpu_map(address_map &map) ATTR_COLD; + void dsp_map(address_map &map) ATTR_COLD; TIMER_CALLBACK_MEMBER(trackball_timer); void trackball_rts(int state); diff --git a/src/mame/bitcorp/gamate.cpp b/src/mame/bitcorp/gamate.cpp index df846ce0b8a..af5fff060b5 100644 --- a/src/mame/bitcorp/gamate.cpp +++ b/src/mame/bitcorp/gamate.cpp @@ -54,10 +54,10 @@ class gamate_state : public driver_device TIMER_CALLBACK_MEMBER(gamate_timer); TIMER_CALLBACK_MEMBER(gamate_timer2); - void gamate_mem(address_map &map); + void gamate_mem(address_map &map) ATTR_COLD; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; int m_card_available; diff --git a/src/mame/bitcorp/gamate_v.h b/src/mame/bitcorp/gamate_v.h index e7d858fa56c..6a3e3c98853 100644 --- a/src/mame/bitcorp/gamate_v.h +++ b/src/mame/bitcorp/gamate_v.h @@ -25,13 +25,13 @@ class gamate_video_device : public device_t, uint8_t vram_r(); void vram_w(uint8_t data); - void regs_map(address_map &map); - void vram_map(address_map &map); + void regs_map(address_map &map) ATTR_COLD; + void vram_map(address_map &map) ATTR_COLD; protected: - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; virtual space_config_vector memory_space_config() const override; diff --git a/src/mame/bmc/bmcbowl.cpp b/src/mame/bmc/bmcbowl.cpp index 9edbc3adc7f..1e7ad6f0dca 100644 --- a/src/mame/bmc/bmcbowl.cpp +++ b/src/mame/bmc/bmcbowl.cpp @@ -135,8 +135,8 @@ class bmcbowl_state : public driver_device void bmcbowl(machine_config &config); private: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; uint8_t random_read(); uint16_t protection_r(); @@ -149,8 +149,8 @@ class bmcbowl_state : public driver_device void int_ack_w(uint8_t data); uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); void init_stats(const uint8_t *table, int table_len, int address); - void main_mem(address_map &map); - void ramdac_map(address_map &map); + void main_mem(address_map &map) ATTR_COLD; + void ramdac_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_shared_ptr m_stats_ram; diff --git a/src/mame/bmc/bmcpokr.cpp b/src/mame/bmc/bmcpokr.cpp index 2be8ed1aeac..855379f3fb3 100644 --- a/src/mame/bmc/bmcpokr.cpp +++ b/src/mame/bmc/bmcpokr.cpp @@ -67,8 +67,8 @@ class bmcpokr_state : public driver_device protected: virtual void device_post_load() override; - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: // Devices @@ -121,11 +121,11 @@ class bmcpokr_state : public driver_device void draw_layer(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, int layer); uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void bmcpokr_mem(address_map &map); - void fengyunh_map(address_map &map); - void mjmaglmp_map(address_map &map); - void ramdac_map(address_map &map); - void shendeng_map(address_map &map); + void bmcpokr_mem(address_map &map) ATTR_COLD; + void fengyunh_map(address_map &map) ATTR_COLD; + void mjmaglmp_map(address_map &map) ATTR_COLD; + void ramdac_map(address_map &map) ATTR_COLD; + void shendeng_map(address_map &map) ATTR_COLD; }; /*************************************************************************** diff --git a/src/mame/bmc/koftball.cpp b/src/mame/bmc/koftball.cpp index 44a5e681cd5..6967d2bf578 100644 --- a/src/mame/bmc/koftball.cpp +++ b/src/mame/bmc/koftball.cpp @@ -86,8 +86,8 @@ class koftball_state : public driver_device void init_koftball(); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -118,9 +118,9 @@ class koftball_state : public driver_device u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); TIMER_DEVICE_CALLBACK_MEMBER(interrupt); - void jxzh_mem(address_map &map); - void koftball_mem(address_map &map); - void ramdac_map(address_map &map); + void jxzh_mem(address_map &map) ATTR_COLD; + void koftball_mem(address_map &map) ATTR_COLD; + void ramdac_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/bmc/popobear.cpp b/src/mame/bmc/popobear.cpp index f17996ace19..f79a2d7e0da 100644 --- a/src/mame/bmc/popobear.cpp +++ b/src/mame/bmc/popobear.cpp @@ -111,7 +111,7 @@ class popobear_state : public driver_device void popobear(machine_config &config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -138,7 +138,7 @@ class popobear_state : public driver_device TIMER_DEVICE_CALLBACK_MEMBER(scanline_cb); void postload(); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/bondwell/bw12.h b/src/mame/bondwell/bw12.h index 496d749fada..36a6943016d 100644 --- a/src/mame/bondwell/bw12.h +++ b/src/mame/bondwell/bw12.h @@ -93,12 +93,12 @@ class bw12_state : public driver_device void write_centronics_perror(int state); void common(machine_config &config); - void bw12_io(address_map &map); - void bw12_mem(address_map &map); + void bw12_io(address_map &map) ATTR_COLD; + void bw12_mem(address_map &map) ATTR_COLD; protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; required_device m_maincpu; required_device m_latch; diff --git a/src/mame/bondwell/bw2.h b/src/mame/bondwell/bw2.h index 4d8b47a9719..098e361feb3 100644 --- a/src/mame/bondwell/bw2.h +++ b/src/mame/bondwell/bw2.h @@ -61,7 +61,7 @@ class bw2_state : public driver_device required_memory_region m_rom; required_ioport_array<10> m_y; - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; uint8_t read(offs_t offset); void write(offs_t offset, uint8_t data); @@ -93,9 +93,9 @@ class bw2_state : public driver_device void write_centronics_busy(int state); int m_centronics_busy; void bw2(machine_config &config); - void bw2_io(address_map &map); - void bw2_mem(address_map &map); - void lcdc_map(address_map &map); + void bw2_io(address_map &map) ATTR_COLD; + void bw2_mem(address_map &map) ATTR_COLD; + void lcdc_map(address_map &map) ATTR_COLD; }; #endif // MAME_BONDWELL_BW2_H diff --git a/src/mame/booth/apexc.h b/src/mame/booth/apexc.h index 170987e12cb..0d53b13c445 100644 --- a/src/mame/booth/apexc.h +++ b/src/mame/booth/apexc.h @@ -34,8 +34,8 @@ class apexc_state : public driver_device void apexc(machine_config &config); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; TIMER_CALLBACK_MEMBER(check_inputs); @@ -51,7 +51,7 @@ class apexc_state : public driver_device void teletyper_linefeed(); void teletyper_putchar(int character); - void mem(address_map &map); + void mem(address_map &map) ATTR_COLD; uint32_t m_panel_data_reg = 0; /* value of a data register on the control panel which can be edited - the existence of this register is a personnal diff --git a/src/mame/brother/pn8800fxb.cpp b/src/mame/brother/pn8800fxb.cpp index 464daf683ad..a2320f42728 100644 --- a/src/mame/brother/pn8800fxb.cpp +++ b/src/mame/brother/pn8800fxb.cpp @@ -80,8 +80,8 @@ class pn8800fxb_state : public driver_device void pn8800fxb(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; @@ -111,8 +111,8 @@ class pn8800fxb_state : public driver_device uint8_t m_mem_change; - void mem_map(address_map &map); - void io_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; uint8_t keyboard_r(); void keyboard_w(uint8_t data); diff --git a/src/mame/burroughs/anzterm.cpp b/src/mame/burroughs/anzterm.cpp index 5938606f34f..f1ddcf0012c 100644 --- a/src/mame/burroughs/anzterm.cpp +++ b/src/mame/burroughs/anzterm.cpp @@ -371,7 +371,7 @@ class anzterm_state : public driver_device { return 0; } - void anzterm_mem(address_map &map); + void anzterm_mem(address_map &map) ATTR_COLD; }; diff --git a/src/mame/burroughs/td831.cpp b/src/mame/burroughs/td831.cpp index 98ff666c434..3c359a7fb2c 100644 --- a/src/mame/burroughs/td831.cpp +++ b/src/mame/burroughs/td831.cpp @@ -49,13 +49,13 @@ class td831_state : public driver_device void td831(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/camputers/camplynx.cpp b/src/mame/camputers/camplynx.cpp index 53c7c1dd278..dcdba35caff 100644 --- a/src/mame/camputers/camplynx.cpp +++ b/src/mame/camputers/camplynx.cpp @@ -215,16 +215,16 @@ class camplynx_state : public driver_device u8 port82_r(); // cassin for 128k void port82_w(u8 data); // banking 128k void port84_w(u8 data); // dac port 48k - void machine_start() override; - void machine_reset() override; + void machine_start() override ATTR_COLD; + void machine_reset() override ATTR_COLD; static void camplynx_floppy_formats(format_registration &fr); MC6845_UPDATE_ROW(lynx48k_update_row); MC6845_UPDATE_ROW(lynx128k_update_row); - void lynx128k_io(address_map &map); - void lynx128k_mem(address_map &map); - void lynx48k_io(address_map &map); - void lynx48k_mem(address_map &map); - void lynx96k_io(address_map &map); + void lynx128k_io(address_map &map) ATTR_COLD; + void lynx128k_mem(address_map &map) ATTR_COLD; + void lynx48k_io(address_map &map) ATTR_COLD; + void lynx48k_mem(address_map &map) ATTR_COLD; + void lynx96k_io(address_map &map) ATTR_COLD; u8 m_port58 = 0U; u8 m_port80 = 0U; u8 m_bankdata = 0U; diff --git a/src/mame/canon/canon_s80.cpp b/src/mame/canon/canon_s80.cpp index 5492893d2de..cb0e69571c1 100644 --- a/src/mame/canon/canon_s80.cpp +++ b/src/mame/canon/canon_s80.cpp @@ -169,7 +169,7 @@ class canons80_state : public driver_device void canons80(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: u8 keyboard_r(); @@ -177,7 +177,7 @@ class canons80_state : public driver_device HD44780_PIXEL_UPDATE(pixel_update); - void canons80_map(address_map &map); + void canons80_map(address_map &map) ATTR_COLD; optional_ioport_array<16> m_keyboard; u8 m_keyscan; diff --git a/src/mame/canon/cat.cpp b/src/mame/canon/cat.cpp index 8a089c941e6..91d3d7f7740 100644 --- a/src/mame/canon/cat.cpp +++ b/src/mame/canon/cat.cpp @@ -268,9 +268,9 @@ class cat_state : public driver_device void init_cat(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -357,8 +357,8 @@ class cat_state : public driver_device //TIMER_CALLBACK_MEMBER(keyboard_callback); TIMER_CALLBACK_MEMBER(counter_6ms_callback); - void cat_mem(address_map &map); - void cpu_space_map(address_map &map); + void cat_mem(address_map &map) ATTR_COLD; + void cpu_space_map(address_map &map) ATTR_COLD; }; // TODO: this init doesn't actually work yet! please fix me! diff --git a/src/mame/canon/x07.h b/src/mame/canon/x07.h index cb773ec1bb0..5c10a4f85e4 100644 --- a/src/mame/canon/x07.h +++ b/src/mame/canon/x07.h @@ -195,8 +195,8 @@ class x07_state : public driver_device required_device m_cassette; required_device m_card; - void machine_start() override; - void machine_reset() override; + void machine_start() override ATTR_COLD; + void machine_reset() override ATTR_COLD; uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); uint8_t x07_io_r(offs_t offset); void x07_io_w(offs_t offset, uint8_t data); @@ -290,8 +290,8 @@ class x07_state : public driver_device TIMER_CALLBACK_MEMBER(beep_stop); TIMER_DEVICE_CALLBACK_MEMBER(blink_timer); - void x07_io(address_map &map); - void x07_mem(address_map &map); + void x07_io(address_map &map) ATTR_COLD; + void x07_mem(address_map &map) ATTR_COLD; }; #endif // MAME_CANON_X07_H diff --git a/src/mame/cantab/jupace.cpp b/src/mame/cantab/jupace.cpp index 6b5ada91b2c..863b3175d3a 100644 --- a/src/mame/cantab/jupace.cpp +++ b/src/mame/cantab/jupace.cpp @@ -102,7 +102,7 @@ class ace_state : public driver_device void ace(machine_config &config); private: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); @@ -133,8 +133,8 @@ class ace_state : public driver_device void ald_w(uint8_t data); SNAPSHOT_LOAD_MEMBER(snapshot_cb); - void ace_io(address_map &map); - void ace_mem(address_map &map); + void ace_io(address_map &map) ATTR_COLD; + void ace_mem(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_ppi; diff --git a/src/mame/capcom/1942.h b/src/mame/capcom/1942.h index 70cd157542c..c5e9b227741 100644 --- a/src/mame/capcom/1942.h +++ b/src/mame/capcom/1942.h @@ -40,12 +40,12 @@ class _1942_state : public driver_device void _1942(machine_config &config); protected: - void machine_start() override; - void machine_reset() override; - void video_start() override; + void machine_start() override ATTR_COLD; + void machine_reset() override ATTR_COLD; + void video_start() override ATTR_COLD; - void _1942_map(address_map &map); - void sound_map(address_map &map); + void _1942_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; void _1942_bankswitch_w(uint8_t data); void _1942_fgvideoram_w(offs_t offset, uint8_t data); @@ -91,11 +91,11 @@ class _1942p_state : public _1942_state void _1942p(machine_config &config); protected: - void video_start() override; + void video_start() override ATTR_COLD; - void _1942p_map(address_map &map); - void _1942p_sound_io(address_map &map); - void _1942p_sound_map(address_map &map); + void _1942p_map(address_map &map) ATTR_COLD; + void _1942p_sound_io(address_map &map) ATTR_COLD; + void _1942p_sound_map(address_map &map) ATTR_COLD; void _1942p_f600_w(uint8_t data); void _1942p_palette_w(offs_t offset, uint8_t data); diff --git a/src/mame/capcom/1943.h b/src/mame/capcom/1943.h index a679f18b6dd..bdda40b428a 100644 --- a/src/mame/capcom/1943.h +++ b/src/mame/capcom/1943.h @@ -88,9 +88,9 @@ class _1943_state : public driver_device TILE_GET_INFO_MEMBER(get_bg2_tile_info); TILE_GET_INFO_MEMBER(get_bg_tile_info); TILE_GET_INFO_MEMBER(get_fg_tile_info); - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; void _1943_palette(palette_device &palette) const; u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void _1943_drawgfx(bitmap_ind16 &dest_bmp,const rectangle &clip,gfx_element *gfx, @@ -98,9 +98,9 @@ class _1943_state : public driver_device u8 transparent_color); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); - void c1943_map(address_map &map); - void c1943b_map(address_map &map); - void sound_map(address_map &map); + void c1943_map(address_map &map) ATTR_COLD; + void c1943b_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; }; #endif // MAME_CAPCOM_1943_H diff --git a/src/mame/capcom/alien.cpp b/src/mame/capcom/alien.cpp index 436dc45daab..1b9d14001c4 100644 --- a/src/mame/capcom/alien.cpp +++ b/src/mame/capcom/alien.cpp @@ -144,8 +144,8 @@ class alien_state : public driver_device u32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void alien_map(address_map &map); - void masmario2_map(address_map &map); + void alien_map(address_map &map) ATTR_COLD; + void masmario2_map(address_map &map) ATTR_COLD; // devices required_device m_maincpu; @@ -159,8 +159,8 @@ class alien_state : public driver_device required_ioport m_io_in0; required_ioport m_io_in1; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; template void gpu_irq_w(int state); INTERRUPT_GEN_MEMBER(sio_irq_w); diff --git a/src/mame/capcom/bionicc.cpp b/src/mame/capcom/bionicc.cpp index 664713046d1..69cf94a6164 100644 --- a/src/mame/capcom/bionicc.cpp +++ b/src/mame/capcom/bionicc.cpp @@ -120,9 +120,9 @@ class bionicc_state : public driver_device void bionicc(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -137,9 +137,9 @@ class bionicc_state : public driver_device required_shared_ptr m_fgvideoram; required_shared_ptr m_bgvideoram; - void main_map(address_map &map); - void sound_map(address_map &map); - void mcu_io(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; + void mcu_io(address_map &map) ATTR_COLD; void output_w(u8 data); diff --git a/src/mame/capcom/blktiger.cpp b/src/mame/capcom/blktiger.cpp index 74e2568717a..5ab41f91640 100644 --- a/src/mame/capcom/blktiger.cpp +++ b/src/mame/capcom/blktiger.cpp @@ -180,11 +180,11 @@ class blktiger_state : public driver_device void nomcu(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; - void nomcu_main_io_map(address_map &map); + void nomcu_main_io_map(address_map &map) ATTR_COLD; private: // memory pointers @@ -234,8 +234,8 @@ class blktiger_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); - void main_prg_map(address_map &map); - void sound_map(address_map &map); + void main_prg_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; }; class blktiger_mcu_state : public blktiger_state @@ -249,8 +249,8 @@ class blktiger_mcu_state : public blktiger_state void mcu(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: // MCU-related @@ -265,7 +265,7 @@ class blktiger_mcu_state : public blktiger_state uint8_t from_main_r(); void to_main_w(uint8_t data); - void mcu_main_io_map(address_map &map); + void mcu_main_io_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/capcom/blktiger_ms.cpp b/src/mame/capcom/blktiger_ms.cpp index cc7f6704bd4..57cd51eac0a 100644 --- a/src/mame/capcom/blktiger_ms.cpp +++ b/src/mame/capcom/blktiger_ms.cpp @@ -57,8 +57,8 @@ class blktiger_ms_state : public driver_device void init_blktigerm(); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -73,8 +73,8 @@ class blktiger_ms_state : public driver_device void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void main_map(address_map &map); - void sound_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; tilemap_t *m_tx_tilemap = nullptr; }; diff --git a/src/mame/capcom/cbasebal.cpp b/src/mame/capcom/cbasebal.cpp index 338ec88bf67..4596a8bc999 100644 --- a/src/mame/capcom/cbasebal.cpp +++ b/src/mame/capcom/cbasebal.cpp @@ -50,9 +50,9 @@ class cbasebal_state : public driver_device void cbasebal(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: // devices @@ -94,9 +94,9 @@ class cbasebal_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); - void prg_map(address_map &map); - void port_map(address_map &map); - void decrypted_opcodes_map(address_map &map); + void prg_map(address_map &map) ATTR_COLD; + void port_map(address_map &map) ATTR_COLD; + void decrypted_opcodes_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/capcom/commando.cpp b/src/mame/capcom/commando.cpp index 66c0d9732b8..73a8205c8ed 100644 --- a/src/mame/capcom/commando.cpp +++ b/src/mame/capcom/commando.cpp @@ -199,9 +199,9 @@ class commando_state : public driver_device void commando(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: // devices @@ -233,9 +233,9 @@ class commando_state : public driver_device void vblank_irq(int state); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); - void main_map(address_map &map); - void decrypted_opcodes_map(address_map &map); - void sound_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void decrypted_opcodes_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/capcom/cps1.h b/src/mame/capcom/cps1.h index fc5a3ff79ed..f0586ffed64 100644 --- a/src/mame/capcom/cps1.h +++ b/src/mame/capcom/cps1.h @@ -215,7 +215,7 @@ class cps_state : public driver_device TILE_GET_INFO_MEMBER(get_tile0_info); TILE_GET_INFO_MEMBER(get_tile1_info); TILE_GET_INFO_MEMBER(get_tile2_info); - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; INTERRUPT_GEN_MEMBER(cps1_interrupt); TIMER_DEVICE_CALLBACK_MEMBER(ganbare_interrupt); @@ -227,18 +227,18 @@ class cps_state : public driver_device void kabuki_setup(void (*decode)(uint8_t *src, uint8_t *dst)); /* maps */ - void cpu_space_map(address_map &map); - void main_map(address_map &map); - void forgottn_map(address_map &map); - void qsound_main_map(address_map &map); - void qsound_decrypted_opcodes_map(address_map &map); - void sub_map(address_map &map); - void qsound_sub_map(address_map &map); - void sf2m3_map(address_map &map); - void sf2cems6_map(address_map &map); - void sf2m10_map(address_map &map); - void varthb2_map(address_map &map); - void varthb3_map(address_map &map); + void cpu_space_map(address_map &map) ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; + void forgottn_map(address_map &map) ATTR_COLD; + void qsound_main_map(address_map &map) ATTR_COLD; + void qsound_decrypted_opcodes_map(address_map &map) ATTR_COLD; + void sub_map(address_map &map) ATTR_COLD; + void qsound_sub_map(address_map &map) ATTR_COLD; + void sf2m3_map(address_map &map) ATTR_COLD; + void sf2cems6_map(address_map &map) ATTR_COLD; + void sf2m10_map(address_map &map) ATTR_COLD; + void varthb2_map(address_map &map) ATTR_COLD; + void varthb3_map(address_map &map) ATTR_COLD; // game-specific uint16_t m_sf2ceblp_prot = 0; diff --git a/src/mame/capcom/cps1bl_5205.cpp b/src/mame/capcom/cps1bl_5205.cpp index 04080206adf..73f10d677d2 100644 --- a/src/mame/capcom/cps1bl_5205.cpp +++ b/src/mame/capcom/cps1bl_5205.cpp @@ -81,10 +81,10 @@ class cps1bl_5205_state : public fcrash_state void sf2mdt_soundlatch_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); void sf2mdta_layer_w(offs_t offset, uint16_t data); - void captcommb2_map(address_map &map); - void sf2b_map(address_map &map); - void sf2mdt_map(address_map &map); - void captcommb2_z80map(address_map &map); + void captcommb2_map(address_map &map) ATTR_COLD; + void sf2b_map(address_map &map) ATTR_COLD; + void sf2mdt_map(address_map &map) ATTR_COLD; + void captcommb2_z80map(address_map &map) ATTR_COLD; bool m_captcommb2_mux_toggle = false; diff --git a/src/mame/capcom/cps1bl_pic.cpp b/src/mame/capcom/cps1bl_pic.cpp index 8a6d17f9012..1c3e4fc675f 100644 --- a/src/mame/capcom/cps1bl_pic.cpp +++ b/src/mame/capcom/cps1bl_pic.cpp @@ -84,8 +84,8 @@ class cps1bl_pic_state : public cps1bl_no_brgt void slampic_layer_w(offs_t offset, uint16_t data); void slampic_layer2_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); - void punipic_map(address_map &map); - void slampic_map(address_map &map); + void punipic_map(address_map &map) ATTR_COLD; + void slampic_map(address_map &map) ATTR_COLD; }; class slampic2_state : public fcrash_state @@ -103,7 +103,7 @@ class slampic2_state : public fcrash_state uint16_t slampic2_cps_a_r(offs_t offset); void slampic2_sound_w(uint16_t data); void slampic2_sound2_w(uint16_t data); - void slampic2_map(address_map &map); + void slampic2_map(address_map &map) ATTR_COLD; void bootleg_render_sprites(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect) override; }; @@ -119,7 +119,7 @@ class dinopic_state : public cps1bl_pic_state private: void dinopic_layer2_w(uint16_t data); DECLARE_MACHINE_START(dinopic); - void dinopic_map(address_map &map); + void dinopic_map(address_map &map) ATTR_COLD; void bootleg_render_sprites(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect) override; }; @@ -138,7 +138,7 @@ class wofpic_state : public dinopic_state void wofpic_layer2_w(uint16_t data); void wofpic_spr_base_w(uint16_t data); DECLARE_MACHINE_START(wofpic); - void wofpic_map(address_map &map); + void wofpic_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/capcom/cps2.cpp b/src/mame/capcom/cps2.cpp index 97eb2fc39e9..2131a06a3ef 100644 --- a/src/mame/capcom/cps2.cpp +++ b/src/mame/capcom/cps2.cpp @@ -718,13 +718,13 @@ class cps2_state : public cps_state uint32_t screen_update_cps2(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); DECLARE_MACHINE_START(cps2); - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; - void cps2_map(address_map &map); - void cps2_comm_map(address_map &map); - void dead_cps2_map(address_map &map); - void dead_cps2_comm_map(address_map &map); - void decrypted_opcodes_map(address_map &map); + void cps2_map(address_map &map) ATTR_COLD; + void cps2_comm_map(address_map &map) ATTR_COLD; + void dead_cps2_map(address_map &map) ATTR_COLD; + void dead_cps2_comm_map(address_map &map) ATTR_COLD; + void decrypted_opcodes_map(address_map &map) ATTR_COLD; void init_cps2_video(); void init_cps2crypt(); diff --git a/src/mame/capcom/cps3.h b/src/mame/capcom/cps3.h index 444494d34c8..0b7a37de773 100644 --- a/src/mame/capcom/cps3.h +++ b/src/mame/capcom/cps3.h @@ -76,9 +76,9 @@ class cps3_state : public driver_device protected: virtual void device_post_load() override; - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; void copy_from_nvram(); u32 m_current_table_address; @@ -189,8 +189,8 @@ class cps3_state : public driver_device u32 code, u32 color, int flipx, int flipy, int sx, int sy, int transparency, int transparent_color, int scalex, int scaley); - void cps3_map(address_map &map); - void decrypted_opcodes_map(address_map &map); + void cps3_map(address_map &map) ATTR_COLD; + void decrypted_opcodes_map(address_map &map) ATTR_COLD; }; #endif // MAME_CAPCOM_CPS3_H diff --git a/src/mame/capcom/cps3_a.h b/src/mame/capcom/cps3_a.h index 6c5a49c1e72..4bbd5e3856a 100644 --- a/src/mame/capcom/cps3_a.h +++ b/src/mame/capcom/cps3_a.h @@ -43,7 +43,7 @@ class cps3_sound_device : public device_t, public device_sound_interface protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // sound stream update overrides virtual void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; diff --git a/src/mame/capcom/egghunt.cpp b/src/mame/capcom/egghunt.cpp index 3388d7da4c3..1e3f4f687fc 100644 --- a/src/mame/capcom/egghunt.cpp +++ b/src/mame/capcom/egghunt.cpp @@ -96,9 +96,9 @@ class egghunt_state : public driver_device uint8_t egghunt_okibanking_r(); void egghunt_okibanking_w(uint8_t data); TILE_GET_INFO_MEMBER(get_bg_tile_info); - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; uint32_t screen_update_egghunt(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void draw_sprites( bitmap_ind16 &bitmap,const rectangle &cliprect ); required_device m_maincpu; @@ -106,9 +106,9 @@ class egghunt_state : public driver_device required_device m_gfxdecode; required_device m_palette; required_device m_soundlatch; - void egghunt_map(address_map &map); - void io_map(address_map &map); - void sound_map(address_map &map); + void egghunt_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/capcom/exedexes.cpp b/src/mame/capcom/exedexes.cpp index ac778a35e43..48744da5c32 100644 --- a/src/mame/capcom/exedexes.cpp +++ b/src/mame/capcom/exedexes.cpp @@ -50,9 +50,9 @@ class exedexes_state : public driver_device void exedexes(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: // devices @@ -91,8 +91,8 @@ class exedexes_state : public driver_device u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); TIMER_DEVICE_CALLBACK_MEMBER(scanline); void draw_sprites(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void main_map(address_map &map); - void sound_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/capcom/fcrash.h b/src/mame/capcom/fcrash.h index ec1ad4b30c6..af56acabe47 100644 --- a/src/mame/capcom/fcrash.h +++ b/src/mame/capcom/fcrash.h @@ -77,19 +77,19 @@ class fcrash_state : public cps_state void fcrash_render_high_layer(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, int layer); virtual void fcrash_build_palette(); - void fcrash_map(address_map &map); - void mtwinsb_map(address_map &map); - void sf2m1_map(address_map &map); - void sgyxz_map(address_map &map); - void wofabl_map(address_map &map); - void wofr1bl_map(address_map &map); - void varthb_map(address_map &map); - - void fcrash_sound_map(address_map &map); - void ffightblb_sound_map(address_map &map); - void ffightblb_oki_map(address_map &map); - void kodb_sound_map(address_map &map); - void sgyxz_sound_map(address_map &map); + void fcrash_map(address_map &map) ATTR_COLD; + void mtwinsb_map(address_map &map) ATTR_COLD; + void sf2m1_map(address_map &map) ATTR_COLD; + void sgyxz_map(address_map &map) ATTR_COLD; + void wofabl_map(address_map &map) ATTR_COLD; + void wofr1bl_map(address_map &map) ATTR_COLD; + void varthb_map(address_map &map) ATTR_COLD; + + void fcrash_sound_map(address_map &map) ATTR_COLD; + void ffightblb_sound_map(address_map &map) ATTR_COLD; + void ffightblb_oki_map(address_map &map) ATTR_COLD; + void kodb_sound_map(address_map &map) ATTR_COLD; + void sgyxz_sound_map(address_map &map) ATTR_COLD; /* sound hw */ int m_sample_buffer1 = 0; diff --git a/src/mame/capcom/gng.cpp b/src/mame/capcom/gng.cpp index 26bfb240b34..139b6c6a44f 100644 --- a/src/mame/capcom/gng.cpp +++ b/src/mame/capcom/gng.cpp @@ -66,9 +66,9 @@ class gng_state : public driver_device void diamrun(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: // memory pointers @@ -100,9 +100,9 @@ class gng_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); - void diamrun_main_map(address_map &map); - void gng_main_map(address_map &map); - void sound_map(address_map &map); + void diamrun_main_map(address_map &map) ATTR_COLD; + void gng_main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/capcom/gunsmoke.cpp b/src/mame/capcom/gunsmoke.cpp index d24ccda277a..686e5c988d1 100644 --- a/src/mame/capcom/gunsmoke.cpp +++ b/src/mame/capcom/gunsmoke.cpp @@ -110,9 +110,9 @@ class gunsmoke_state : public driver_device void gunsmoke(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: // memory pointers @@ -147,8 +147,8 @@ class gunsmoke_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); - void main_map(address_map &map); - void sound_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/capcom/higemaru.cpp b/src/mame/capcom/higemaru.cpp index 82a9c05f12a..f3f3fb0ea28 100644 --- a/src/mame/capcom/higemaru.cpp +++ b/src/mame/capcom/higemaru.cpp @@ -54,7 +54,7 @@ class higemaru_state : public driver_device void higemaru(machine_config &config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: // memory pointers @@ -77,7 +77,7 @@ class higemaru_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); TIMER_DEVICE_CALLBACK_MEMBER(scanline); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); - void program_map(address_map &map); + void program_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/capcom/instantm.cpp b/src/mame/capcom/instantm.cpp index c789413033f..9506540b916 100644 --- a/src/mame/capcom/instantm.cpp +++ b/src/mame/capcom/instantm.cpp @@ -48,14 +48,14 @@ class instantm_state : public driver_device void port01_w(u8 data); void clock_w(int state); - void main_map(address_map &map); - void sub_io(address_map &map); - void sub_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sub_io(address_map &map) ATTR_COLD; + void sub_map(address_map &map) ATTR_COLD; u8 m_port01 = 0; bool m_clock_en = false; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; required_device m_maincpu; }; diff --git a/src/mame/capcom/kenseim.cpp b/src/mame/capcom/kenseim.cpp index e0f3ec336ff..06c3bc6bb9b 100644 --- a/src/mame/capcom/kenseim.cpp +++ b/src/mame/capcom/kenseim.cpp @@ -233,8 +233,8 @@ class kenseim_state : public cps_state void set_leds(uint32_t ledstates); - void kenseim_io_map(address_map &map); - void kenseim_map(address_map &map); + void kenseim_io_map(address_map &map) ATTR_COLD; + void kenseim_map(address_map &map) ATTR_COLD; uint8_t m_to_68k_cmd_low; uint8_t m_to_68k_cmd_d9; diff --git a/src/mame/capcom/lastduel.h b/src/mame/capcom/lastduel.h index 2cd47e654f9..cb12c323ef1 100644 --- a/src/mame/capcom/lastduel.h +++ b/src/mame/capcom/lastduel.h @@ -70,7 +70,7 @@ class lastduel_state : public driver_device TILE_GET_INFO_MEMBER(get_bg_tile_info); TILE_GET_INFO_MEMBER(get_fg_tile_info); TILE_GET_INFO_MEMBER(get_fix_info); - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; DECLARE_MACHINE_START(lastduel); DECLARE_VIDEO_START(lastduel); DECLARE_MACHINE_START(madgear); @@ -80,10 +80,10 @@ class lastduel_state : public driver_device TIMER_DEVICE_CALLBACK_MEMBER(lastduel_timer_cb); TIMER_DEVICE_CALLBACK_MEMBER(madgear_timer_cb); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect, int pri); - void lastduel_map(address_map &map); - void madgear_map(address_map &map); - void madgear_sound_map(address_map &map); - void sound_map(address_map &map); + void lastduel_map(address_map &map) ATTR_COLD; + void madgear_map(address_map &map) ATTR_COLD; + void madgear_sound_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; }; #endif // MAME_CAPCOM_LASTDUEL_H diff --git a/src/mame/capcom/lwings.cpp b/src/mame/capcom/lwings.cpp index 7932bfd42ef..e5e3a092fda 100644 --- a/src/mame/capcom/lwings.cpp +++ b/src/mame/capcom/lwings.cpp @@ -97,9 +97,9 @@ class lwings_state : public driver_device void buraikenb(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: // devices @@ -176,17 +176,17 @@ class lwings_state : public driver_device void lwings_draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect ); void trojan_draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect ); - void avengers_adpcm_io_map(address_map &map); - void avengers_map(address_map &map); - void buraikenb_map(address_map &map); - void fball_map(address_map &map); - void fball_oki_map(address_map &map); - void fball_sound_map(address_map &map); - void lwings_map(address_map &map); - void lwings_sound_map(address_map &map); - void trojan_adpcm_io_map(address_map &map); - void trojan_adpcm_map(address_map &map); - void trojan_map(address_map &map); + void avengers_adpcm_io_map(address_map &map) ATTR_COLD; + void avengers_map(address_map &map) ATTR_COLD; + void buraikenb_map(address_map &map) ATTR_COLD; + void fball_map(address_map &map) ATTR_COLD; + void fball_oki_map(address_map &map) ATTR_COLD; + void fball_sound_map(address_map &map) ATTR_COLD; + void lwings_map(address_map &map) ATTR_COLD; + void lwings_sound_map(address_map &map) ATTR_COLD; + void trojan_adpcm_io_map(address_map &map) ATTR_COLD; + void trojan_adpcm_map(address_map &map) ATTR_COLD; + void trojan_map(address_map &map) ATTR_COLD; }; /* Avengers runs on hardware almost identical to Trojan, but with a protection @@ -210,22 +210,24 @@ uint8_t lwings_state::avengers_adpcm_r() void lwings_state::lwings_bankswitch_w(uint8_t data) { -// if (data & 0xe0) printf("bankswitch_w %02x\n", data); -// Fireball writes 0x20 on startup, maybe reset soundcpu? - m_sprbank = (data & 0x10)>>4; // Fireball only + // bit 0 is flip screen + flip_screen_set(BIT(~data, 0)); - /* bit 0 is flip screen */ - flip_screen_set(~data & 0x01); + // bits 1 and 2 select ROM bank + m_bank1->set_entry(data >> 1 & 3); - /* bits 1 and 2 select ROM bank */ - m_bank1->set_entry((data & 0x06) >> 1); + // bit 3 enables NMI + m_nmi_mask = BIT(data, 3); - /* bit 3 enables NMI */ - m_nmi_mask = data & 8; + // bit 4: sprite bank (fireball only) + m_sprbank = BIT(data, 4); + + // bit 5 resets the sound CPU + m_soundcpu->set_input_line(INPUT_LINE_RESET, BIT(data, 5) ? ASSERT_LINE : CLEAR_LINE); - /* bits 6 and 7 are coin counters */ - machine().bookkeeping().coin_counter_w(1, data & 0x40); - machine().bookkeeping().coin_counter_w(0, data & 0x80); + // bits 6 and 7 are coin counters + machine().bookkeeping().coin_counter_w(1, BIT(data, 6)); + machine().bookkeeping().coin_counter_w(0, BIT(data, 7)); } void lwings_state::lwings_interrupt(int state) @@ -425,7 +427,6 @@ void lwings_state::fball_map(address_map &map) void lwings_state::fball_oki_bank_w(uint8_t data) { - //printf("fball_oki_bank_w %02x\n", data); m_samplebank->set_entry((data >> 1) & 0x7); } @@ -1337,7 +1338,7 @@ void lwings_state::avengers(machine_config &config) // basic machine hardware m_maincpu->set_clock(12_MHz_XTAL/2); - m_maincpu->z80_set_m1_cycles(6); // 2 WAIT states per M1? (needed to keep in sync with MCU) + m_maincpu->z80_set_m1_cycles(4+2); // 2 WAIT states per M1? (needed to keep in sync with MCU) m_maincpu->set_addrmap(AS_PROGRAM, &lwings_state::avengers_map); I8751(config, m_mcu, 12_MHz_XTAL/2); diff --git a/src/mame/capcom/mitchell.cpp b/src/mame/capcom/mitchell.cpp index 0a6ba3e9632..c045ef9ddf5 100644 --- a/src/mame/capcom/mitchell.cpp +++ b/src/mame/capcom/mitchell.cpp @@ -184,9 +184,9 @@ class mitchell_state : public driver_device void init_dokaben(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; // devices required_device m_maincpu; @@ -250,11 +250,11 @@ class mitchell_state : public driver_device void bootleg_decode(); void configure_banks(void (*decode)(uint8_t *src, uint8_t *dst, int size)); - void decrypted_opcodes_map(address_map &map); - void mgakuen_map(address_map &map); - void mitchell_io_map(address_map &map); - void mitchell_map(address_map &map); - void main_map(address_map &map); + void decrypted_opcodes_map(address_map &map) ATTR_COLD; + void mgakuen_map(address_map &map) ATTR_COLD; + void mitchell_io_map(address_map &map) ATTR_COLD; + void mitchell_map(address_map &map) ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; }; // adds a Z80 as audio CPU and has an Oki M5205 instead of M6295 @@ -275,8 +275,8 @@ class spangbl_state : public mitchell_state void init_spangbl(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: // devices @@ -293,11 +293,11 @@ class spangbl_state : public mitchell_state void sound_bankswitch_w(uint8_t data); void adpcm_int(int state); - void mstworld2_io_map(address_map &map); - void pangba_sound_map(address_map &map); - void spangbl_io_map(address_map &map); - void main_map(address_map &map); - void spangbl_sound_map(address_map &map); + void mstworld2_io_map(address_map &map) ATTR_COLD; + void pangba_sound_map(address_map &map) ATTR_COLD; + void spangbl_io_map(address_map &map) ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; + void spangbl_sound_map(address_map &map) ATTR_COLD; }; @@ -318,8 +318,8 @@ class mstworld_state : public mitchell_state void gfxctrl_w(uint8_t data); - void io_map(address_map &map); - void sound_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; }; // has an Oki M5205 instead of an Oki M6295 without additional audio CPU @@ -337,7 +337,7 @@ class pkladiesbl_state : public mitchell_state private: required_device m_msm; - void io_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/capcom/psrockman.cpp b/src/mame/capcom/psrockman.cpp index 3d5cdf25a4d..c8d7acb02bd 100644 --- a/src/mame/capcom/psrockman.cpp +++ b/src/mame/capcom/psrockman.cpp @@ -52,8 +52,8 @@ class psrockman_state : public driver_device void psrockman(machine_config &config); private: - void io_map(address_map &map); - void prg_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void prg_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/capcom/sf.cpp b/src/mame/capcom/sf.cpp index d89247815cc..91de15e5884 100644 --- a/src/mame/capcom/sf.cpp +++ b/src/mame/capcom/sf.cpp @@ -89,21 +89,21 @@ class sf_state : public driver_device TILE_GET_INFO_MEMBER(get_bg_tile_info); TILE_GET_INFO_MEMBER(get_fg_tile_info); TILE_GET_INFO_MEMBER(get_tx_tile_info); - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); inline int invert( int nb ); void draw_sprites( bitmap_ind16 &bitmap,const rectangle &cliprect ); void write_dword( address_space &space, offs_t offset, uint32_t data ); - void sfan_map(address_map &map); - void sfjp_map(address_map &map); - void sfus_map(address_map &map); - void sound2_io_map(address_map &map); - void sound2_map(address_map &map); - void sound_map(address_map &map); - void prot_map(address_map &map); + void sfan_map(address_map &map) ATTR_COLD; + void sfjp_map(address_map &map) ATTR_COLD; + void sfus_map(address_map &map) ATTR_COLD; + void sound2_io_map(address_map &map) ATTR_COLD; + void sound2_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; + void prot_map(address_map &map) ATTR_COLD; }; void sf_state::coin_w(u8 data) diff --git a/src/mame/capcom/sidearms.h b/src/mame/capcom/sidearms.h index 70f794c4c78..908534ae9ca 100644 --- a/src/mame/capcom/sidearms.h +++ b/src/mame/capcom/sidearms.h @@ -79,8 +79,8 @@ class sidearms_state : public driver_device void whizz_bankswitch_w(uint8_t data); - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; TILE_GET_INFO_MEMBER(get_sidearms_bg_tile_info); TILE_GET_INFO_MEMBER(get_philko_bg_tile_info); @@ -92,12 +92,12 @@ class sidearms_state : public driver_device void draw_starfield( bitmap_ind16 &bitmap ); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); - void sidearms_map(address_map &map); - void sidearms_sound_map(address_map &map); - void turtship_map(address_map &map); - void whizz_io_map(address_map &map); - void whizz_map(address_map &map); - void whizz_sound_map(address_map &map); + void sidearms_map(address_map &map) ATTR_COLD; + void sidearms_sound_map(address_map &map) ATTR_COLD; + void turtship_map(address_map &map) ATTR_COLD; + void whizz_io_map(address_map &map) ATTR_COLD; + void whizz_map(address_map &map) ATTR_COLD; + void whizz_sound_map(address_map &map) ATTR_COLD; }; #endif // MAME_CAPCOM_SIDEARMS_H diff --git a/src/mame/capcom/sonson.cpp b/src/mame/capcom/sonson.cpp index 5f6f34932dd..ecc7c1f2fbc 100644 --- a/src/mame/capcom/sonson.cpp +++ b/src/mame/capcom/sonson.cpp @@ -84,7 +84,7 @@ class sonson_state : public driver_device void sonson(machine_config &config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: // memory pointers @@ -111,8 +111,8 @@ class sonson_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); - void main_map(address_map &map); - void sound_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/capcom/srumbler.cpp b/src/mame/capcom/srumbler.cpp index 4d38fa04b42..4e4490750d9 100644 --- a/src/mame/capcom/srumbler.cpp +++ b/src/mame/capcom/srumbler.cpp @@ -48,8 +48,8 @@ class srumbler_state : public driver_device void srumbler(machine_config &config); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -79,8 +79,8 @@ class srumbler_state : public driver_device void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); TIMER_DEVICE_CALLBACK_MEMBER(interrupt); - void main_map(address_map &map); - void sound_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/capcom/supduck.cpp b/src/mame/capcom/supduck.cpp index c0e28d91fec..664606507f6 100644 --- a/src/mame/capcom/supduck.cpp +++ b/src/mame/capcom/supduck.cpp @@ -77,9 +77,9 @@ class supduck_state : public driver_device protected: // driver_device overrides - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: // devices @@ -113,9 +113,9 @@ class supduck_state : public driver_device void okibank_w(uint8_t data); - void main_map(address_map &map); - void oki_map(address_map &map); - void sound_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void oki_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; TILE_GET_INFO_MEMBER(get_text_tile_info); TILE_GET_INFO_MEMBER(get_fore_tile_info); diff --git a/src/mame/capcom/tigeroad.h b/src/mame/capcom/tigeroad.h index 7bad5353c76..af2c2e0fea0 100644 --- a/src/mame/capcom/tigeroad.h +++ b/src/mame/capcom/tigeroad.h @@ -50,7 +50,7 @@ class tigeroad_state : public driver_device void videoctrl_w(u8 data); void scroll_w(offs_t offset, u16 data, u16 mem_mask = ~0); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; bool m_has_coinlock; private: @@ -65,18 +65,18 @@ class tigeroad_state : public driver_device tilemap_t *m_bg_tilemap = nullptr; tilemap_t *m_fg_tilemap = nullptr; - void comad_sound_io_map(address_map &map); - void comad_sound_map(address_map &map); - void sample_map(address_map &map); - void sample_port_map(address_map &map); - void sound_map(address_map &map); - void sound_port_map(address_map &map); + void comad_sound_io_map(address_map &map) ATTR_COLD; + void comad_sound_map(address_map &map) ATTR_COLD; + void sample_map(address_map &map) ATTR_COLD; + void sample_port_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; + void sound_port_map(address_map &map) ATTR_COLD; void msm5205_w(u8 data); TILE_GET_INFO_MEMBER(get_bg_tile_info); TILE_GET_INFO_MEMBER(get_fg_tile_info); TILEMAP_MAPPER_MEMBER(tigeroad_tilemap_scan); - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); }; @@ -101,7 +101,7 @@ class pushman_state : public tigeroad_state void bballs(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: u16 mcu_comm_r(offs_t offset, u16 mem_mask = ~0); @@ -112,8 +112,8 @@ class pushman_state : public tigeroad_state void mcu_pb_w(u8 data); void mcu_pc_w(u8 data); - void bballs_map(address_map &map); - void pushman_map(address_map &map); + void bballs_map(address_map &map) ATTR_COLD; + void pushman_map(address_map &map) ATTR_COLD; required_device m_mcu; @@ -137,11 +137,11 @@ class f1dream_state : public tigeroad_state void f1dream(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: - void f1dream_map(address_map &map); - void f1dream_mcu_io(address_map &map); + void f1dream_map(address_map &map) ATTR_COLD; + void f1dream_mcu_io(address_map &map) ATTR_COLD; void out3_w(u8 data); diff --git a/src/mame/capcom/tigeroad_spr.h b/src/mame/capcom/tigeroad_spr.h index 32455692c98..32bef7be7e0 100644 --- a/src/mame/capcom/tigeroad_spr.h +++ b/src/mame/capcom/tigeroad_spr.h @@ -16,8 +16,8 @@ class tigeroad_spr_device : public device_t, public device_gfx_interface void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect, u16* ram, u32 size, bool flip_screen, bool rev_y); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: required_memory_region m_gfx_region; diff --git a/src/mame/capcom/tvcapcom.cpp b/src/mame/capcom/tvcapcom.cpp index 6cfe8326b0b..0798ff37dd5 100644 --- a/src/mame/capcom/tvcapcom.cpp +++ b/src/mame/capcom/tvcapcom.cpp @@ -28,12 +28,12 @@ class tvcapcom_state : public driver_device void tvcapcom(machine_config &config); private: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; uint32_t screen_update_tvcapcom(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); required_device m_maincpu; - void gc_map(address_map &map); + void gc_map(address_map &map) ATTR_COLD; }; void tvcapcom_state::gc_map(address_map &map) diff --git a/src/mame/casio/casloopy.cpp b/src/mame/casio/casloopy.cpp index ae5ecef2343..f050b1042de 100644 --- a/src/mame/casio/casloopy.cpp +++ b/src/mame/casio/casloopy.cpp @@ -159,9 +159,9 @@ class casloopy_state : public driver_device void casloopy(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: static constexpr XTAL SH1_CLOCK = XTAL(16'000'000); @@ -285,7 +285,7 @@ class casloopy_state : public driver_device void draw_sprite_line(int y); u32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void casloopy_map(address_map &map); + void casloopy_map(address_map &map) ATTR_COLD; u8 bitmap_r(offs_t offset); void bitmap_w(offs_t offset, u8 data); diff --git a/src/mame/casio/cfx9850.cpp b/src/mame/casio/cfx9850.cpp index b129a082793..abb93118500 100644 --- a/src/mame/casio/cfx9850.cpp +++ b/src/mame/casio/cfx9850.cpp @@ -70,7 +70,7 @@ class cfx9850_state : public driver_device void cfx9850_palette(palette_device &palette) const; u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void cfx9850_mem(address_map &map); + void cfx9850_mem(address_map &map) ATTR_COLD; }; @@ -320,7 +320,7 @@ class cfx9850gb_state : public cfx9850_state { } void cfx9850gb(machine_config &config); - void cfx9850gb_mem(address_map &map); + void cfx9850gb_mem(address_map &map) ATTR_COLD; }; void cfx9850gb_state::cfx9850gb_mem(address_map &map) diff --git a/src/mame/casio/ctk2000.cpp b/src/mame/casio/ctk2000.cpp index a5bf0673459..cd9f4ca71b0 100644 --- a/src/mame/casio/ctk2000.cpp +++ b/src/mame/casio/ctk2000.cpp @@ -54,7 +54,7 @@ class ctk2000_state : public driver_device void apo_w(int state); private: - void ctk2000_map(address_map &map); + void ctk2000_map(address_map &map) ATTR_COLD; virtual void driver_start() override; virtual void driver_reset() override; diff --git a/src/mame/casio/ctk551.cpp b/src/mame/casio/ctk551.cpp index fabde372a96..3ea48102a64 100644 --- a/src/mame/casio/ctk551.cpp +++ b/src/mame/casio/ctk551.cpp @@ -268,10 +268,10 @@ class ctk551_state : public driver_device void apo_w(int state); private: - void ap10_map(address_map& map); - void ctk530_map(address_map& map); - void gz70sp_map(address_map& map); - void ctk601_map(address_map& map); + void ap10_map(address_map &map) ATTR_COLD; + void ctk530_map(address_map &map) ATTR_COLD; + void gz70sp_map(address_map &map) ATTR_COLD; + void ctk601_map(address_map &map) ATTR_COLD; virtual void driver_start() override; diff --git a/src/mame/casio/cz1.cpp b/src/mame/casio/cz1.cpp index 204ded16903..6a8cad6e201 100644 --- a/src/mame/casio/cz1.cpp +++ b/src/mame/casio/cz1.cpp @@ -85,17 +85,17 @@ class cz1_state : public driver_device int sync49_r(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: void cz1_palette(palette_device &palette) const; HD44780_PIXEL_UPDATE(lcd_pixel_update); - void mz1_main_map(address_map &map); - void cz1_main_map(address_map &map); - void sub_map(address_map &map); - void mcu_map(address_map &map); + void mz1_main_map(address_map &map) ATTR_COLD; + void cz1_main_map(address_map &map) ATTR_COLD; + void sub_map(address_map &map) ATTR_COLD; + void mcu_map(address_map &map) ATTR_COLD; // main CPU r/w methods u8 keys_r(); diff --git a/src/mame/casio/cz101.cpp b/src/mame/casio/cz101.cpp index 15dbd8d3310..de4aa7aadc5 100644 --- a/src/mame/casio/cz101.cpp +++ b/src/mame/casio/cz101.cpp @@ -76,11 +76,11 @@ class cz101_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(power_w); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: - void maincpu_map(address_map &map); + void maincpu_map(address_map &map) ATTR_COLD; void port_b_w(uint8_t data); void port_c_w(uint8_t data); diff --git a/src/mame/casio/cz230s.cpp b/src/mame/casio/cz230s.cpp index 40859e4e5ef..d348d0b8b78 100644 --- a/src/mame/casio/cz230s.cpp +++ b/src/mame/casio/cz230s.cpp @@ -82,13 +82,13 @@ class cz230s_state : public driver_device ioport_value cassette_r(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: - void cz230s_map(address_map &map); - void cz230s_pcm_map(address_map &map); - void sz1_map(address_map &map); + void cz230s_map(address_map &map) ATTR_COLD; + void cz230s_pcm_map(address_map &map) ATTR_COLD; + void sz1_map(address_map &map) ATTR_COLD; void pcm_w(offs_t offset, u8 data); template void led_w(u8 data); diff --git a/src/mame/casio/fp1100.cpp b/src/mame/casio/fp1100.cpp index f4f1a161822..11069678b1c 100644 --- a/src/mame/casio/fp1100.cpp +++ b/src/mame/casio/fp1100.cpp @@ -95,8 +95,8 @@ class fp1100_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(fkey_hit_cb); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; @@ -113,9 +113,9 @@ class fp1100_state : public driver_device required_device_array m_slot; required_device_array m_irqs_int; - void main_map(address_map &map); - void io_map(address_map &map); - void sub_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; + void sub_map(address_map &map) ATTR_COLD; void main_bank_w(u8 data); void irq_mask_w(u8 data); diff --git a/src/mame/casio/fp200.cpp b/src/mame/casio/fp200.cpp index 3097676ceb4..228593a2036 100644 --- a/src/mame/casio/fp200.cpp +++ b/src/mame/casio/fp200.cpp @@ -71,7 +71,7 @@ class fp200_state : public driver_device template u8 lcd_data_r(offs_t offset); template void lcd_data_w(offs_t offset, u8 data); - void lcd_map(address_map &map); + void lcd_map(address_map &map) ATTR_COLD; uint8_t keyb_r(offs_t offset); void keyb_w(offs_t offset, uint8_t data); @@ -80,14 +80,14 @@ class fp200_state : public driver_device int sid_r(); void palette_init(palette_device &palette) const; - void main_io(address_map &map); - void main_map(address_map &map); + void main_io(address_map &map) ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; // driver_device overrides - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; }; void fp200_state::video_start() diff --git a/src/mame/casio/fp6000.cpp b/src/mame/casio/fp6000.cpp index 1bc858f578f..49249e65925 100644 --- a/src/mame/casio/fp6000.cpp +++ b/src/mame/casio/fp6000.cpp @@ -57,8 +57,8 @@ class fp6000_state : public driver_device void fp6000(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; @@ -75,8 +75,8 @@ class fp6000_state : public driver_device required_shared_ptr m_vram; required_shared_ptr m_pcg; - void fp6000_io(address_map &map); - void fp6000_map(address_map &map); + void fp6000_io(address_map &map) ATTR_COLD; + void fp6000_map(address_map &map) ATTR_COLD; emu_timer *m_pit_timer = nullptr; void pit_timer0_w(int state); diff --git a/src/mame/casio/fp6000_kbd.h b/src/mame/casio/fp6000_kbd.h index 1cdd4051052..00d927a5abf 100644 --- a/src/mame/casio/fp6000_kbd.h +++ b/src/mame/casio/fp6000_kbd.h @@ -34,9 +34,9 @@ class fp6000_kbd_device : public device_t, protected device_matrix_keyboard_int protected: // device-level overrides - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; - virtual void device_reset() override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; // device_matrix_keyboard_interface overrides virtual void key_make(uint8_t row, uint8_t column) override; diff --git a/src/mame/casio/ht6000.cpp b/src/mame/casio/ht6000.cpp index fdbfd286a1b..775304467ef 100644 --- a/src/mame/casio/ht6000.cpp +++ b/src/mame/casio/ht6000.cpp @@ -36,13 +36,13 @@ class ht6000_state : public driver_device void ht6000(machine_config &config); private: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; required_memory_region m_rom2; required_ioport_array<16> m_switches; - void maincpu_map(address_map &map); + void maincpu_map(address_map &map) ATTR_COLD; void port_a_w(uint8_t data); diff --git a/src/mame/casio/pb1000.cpp b/src/mame/casio/pb1000.cpp index 75771e5a48b..06dcb60cba7 100644 --- a/src/mame/casio/pb1000.cpp +++ b/src/mame/casio/pb1000.cpp @@ -73,7 +73,7 @@ class pb1000_state : public driver_device memory_region *m_card1_reg = nullptr; memory_region *m_card2_reg = nullptr; - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; void gatearray_w(offs_t offset, uint16_t data); uint16_t pb1000_kb_r(); uint16_t pb2000c_kb_r(); @@ -84,8 +84,8 @@ class pb1000_state : public driver_device uint16_t read_touchscreen(uint8_t line); void pb1000_palette(palette_device &palette) const; TIMER_CALLBACK_MEMBER(keyboard_timer); - void pb1000_mem(address_map &map); - void pb2000c_mem(address_map &map); + void pb1000_mem(address_map &map) ATTR_COLD; + void pb2000c_mem(address_map &map) ATTR_COLD; }; void pb1000_state::pb1000_mem(address_map &map) diff --git a/src/mame/casio/pickytlk.cpp b/src/mame/casio/pickytlk.cpp index 1078856ff9a..be5e24863d2 100644 --- a/src/mame/casio/pickytlk.cpp +++ b/src/mame/casio/pickytlk.cpp @@ -82,8 +82,8 @@ class pickytlk_state : public driver_device PEN_HOLD = 2, }; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; void kol_w(u8 data); void koh_w(u8 data); @@ -103,7 +103,7 @@ class pickytlk_state : public driver_device void pickytlk_palette(palette_device &palette) const; u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void pickytlk_mem(address_map &map); + void pickytlk_mem(address_map &map) ATTR_COLD; static constexpr float rescale(float x, float min_x, float max_x, float a, float b) { diff --git a/src/mame/casio/pv1000.cpp b/src/mame/casio/pv1000.cpp index 2b31e1ba6ef..9ce06f3af3d 100644 --- a/src/mame/casio/pv1000.cpp +++ b/src/mame/casio/pv1000.cpp @@ -29,7 +29,7 @@ class pv1000_sound_device : public device_t, public device_sound_interface protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // sound stream update overrides virtual void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; @@ -186,8 +186,8 @@ class pv1000_state : public driver_device void pv1000(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: void io_w(offs_t offset, uint8_t data); @@ -224,8 +224,8 @@ class pv1000_state : public driver_device TIMER_CALLBACK_MEMBER(d65010_busrq_off_cb); DECLARE_DEVICE_IMAGE_LOAD_MEMBER(cart_load); - void pv1000_mem(address_map &map); - void pv1000_io(address_map &map); + void pv1000_mem(address_map &map) ATTR_COLD; + void pv1000_io(address_map &map) ATTR_COLD; }; diff --git a/src/mame/casio/pv2000.cpp b/src/mame/casio/pv2000.cpp index 132b3b66a46..607eb8c19b4 100644 --- a/src/mame/casio/pv2000.cpp +++ b/src/mame/casio/pv2000.cpp @@ -57,8 +57,8 @@ class pv2000_state : public driver_device void pv2000(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; @@ -78,8 +78,8 @@ class pv2000_state : public driver_device uint8_t m_keyb_column = 0; uint8_t m_cass_conf = 0; DECLARE_DEVICE_IMAGE_LOAD_MEMBER(cart_load); - void pv2000_io_map(address_map &map); - void pv2000_map(address_map &map); + void pv2000_io_map(address_map &map) ATTR_COLD; + void pv2000_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/casio/ra3.h b/src/mame/casio/ra3.h index b9ba87e8363..023d141badf 100644 --- a/src/mame/casio/ra3.h +++ b/src/mame/casio/ra3.h @@ -32,7 +32,7 @@ class casio_ram_cart_device : public device_t, public device_memcard_image_inter protected: casio_ram_cart_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, unsigned max_size); - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual const software_list_loader &get_software_list_loader() const override { return rom_software_list_loader::instance(); } private: diff --git a/src/mame/casio/rz1.cpp b/src/mame/casio/rz1.cpp index cf2173e163a..83c6ef7a615 100644 --- a/src/mame/casio/rz1.cpp +++ b/src/mame/casio/rz1.cpp @@ -77,8 +77,8 @@ class rz1_state : public driver_device void rz1(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; @@ -96,9 +96,9 @@ class rz1_state : public driver_device output_finder<> m_led_pattern; output_finder<> m_led_startstop; - void map(address_map &map); - void pg0_map(address_map &map); - void pg1_map(address_map &map); + void map(address_map &map) ATTR_COLD; + void pg0_map(address_map &map) ATTR_COLD; + void pg1_map(address_map &map) ATTR_COLD; uint8_t key_r(); diff --git a/src/mame/casio/sk1.cpp b/src/mame/casio/sk1.cpp index bf21e496dc8..6ce58de5efe 100644 --- a/src/mame/casio/sk1.cpp +++ b/src/mame/casio/sk1.cpp @@ -49,7 +49,7 @@ class sk1_state : public driver_device ioport_value mode_in() { return m_sw_mode; } private: - void sk1_memory(address_map &map); + void sk1_memory(address_map &map) ATTR_COLD; virtual void driver_start() override; diff --git a/src/mame/casio/sx1000.cpp b/src/mame/casio/sx1000.cpp index 8b1456cc1ac..a71790f6d28 100644 --- a/src/mame/casio/sx1000.cpp +++ b/src/mame/casio/sx1000.cpp @@ -93,11 +93,11 @@ class sx1000_state : public driver_device void init_common(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; - void cpu_map(address_map &map); - void acrtc_map(address_map &map); + void cpu_map(address_map &map) ATTR_COLD; + void acrtc_map(address_map &map) ATTR_COLD; void common(machine_config &config); diff --git a/src/mame/casio/zoomer_rtc.h b/src/mame/casio/zoomer_rtc.h index 482f80ee4b3..770d06ddf59 100644 --- a/src/mame/casio/zoomer_rtc.h +++ b/src/mame/casio/zoomer_rtc.h @@ -22,8 +22,8 @@ class zoomer_rtc_device : public device_t, void write(offs_t offset, u8 data); protected: - 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 device_clock_changed() override; virtual bool rtc_feature_leap_year() const override { return true; } diff --git a/src/mame/cave/cavepc.cpp b/src/mame/cave/cavepc.cpp index 23bff811146..fa9f74a386d 100644 --- a/src/mame/cave/cavepc.cpp +++ b/src/mame/cave/cavepc.cpp @@ -73,8 +73,8 @@ class cavepc_state : public driver_device private: required_device m_maincpu; - void cavepc_io(address_map &map); - void cavepc_map(address_map &map); + void cavepc_io(address_map &map) ATTR_COLD; + void cavepc_map(address_map &map) ATTR_COLD; }; /*****************************************************************************/ diff --git a/src/mame/cave/cv1k.cpp b/src/mame/cave/cv1k.cpp index 503b199a060..6603d3617d9 100644 --- a/src/mame/cave/cv1k.cpp +++ b/src/mame/cave/cv1k.cpp @@ -231,7 +231,7 @@ class cv1k_state : public driver_device void init_ddpdfk(); protected: - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; @@ -258,9 +258,9 @@ class cv1k_state : public driver_device uint64_t speedup_r(); void install_speedups(uint32_t idleramoff, uint32_t idlepc, bool is_typed); - void cv1k_d_map(address_map &map); - void cv1k_map(address_map &map); - void cv1k_port(address_map &map); + void cv1k_d_map(address_map &map) ATTR_COLD; + void cv1k_map(address_map &map) ATTR_COLD; + void cv1k_port(address_map &map) ATTR_COLD; }; diff --git a/src/mame/cave/ep1c12.h b/src/mame/cave/ep1c12.h index 3c0153f70ed..3df1560afcf 100644 --- a/src/mame/cave/ep1c12.h +++ b/src/mame/cave/ep1c12.h @@ -817,8 +817,8 @@ class ep1c12_device : public device_t, public device_video_interface // 6: -dest // 7: * - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; // Called when a Blitter operation does not cause any draws/uploads to be performed. // If multiple draws in a row are performed outside of an active clipping area, diff --git a/src/mame/cave/fstgfish.cpp b/src/mame/cave/fstgfish.cpp index defa12ff79d..1e555bea3eb 100644 --- a/src/mame/cave/fstgfish.cpp +++ b/src/mame/cave/fstgfish.cpp @@ -95,8 +95,8 @@ class fstgfish_state : public driver_device private: required_device m_maincpu; - void main_io(address_map &map); - void main_map(address_map &map); + void main_io(address_map &map) ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; }; /*****************************************************************************/ diff --git a/src/mame/cce/mc1000.cpp b/src/mame/cce/mc1000.cpp index bf6734f0971..bbd8e74e0d0 100644 --- a/src/mame/cce/mc1000.cpp +++ b/src/mame/cce/mc1000.cpp @@ -92,8 +92,8 @@ class mc1000_state : public driver_device std::unique_ptr m_banked_ram; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; uint8_t printer_r(); void printer_w(uint8_t data); @@ -129,9 +129,9 @@ class mc1000_state : public driver_device void init_mc1000(); TIMER_DEVICE_CALLBACK_MEMBER(ne555_tick); - void mc1000_banking_mem(address_map &map); - void mc1000_io(address_map &map); - void mc1000_mem(address_map &map); + void mc1000_banking_mem(address_map &map) ATTR_COLD; + void mc1000_io(address_map &map) ATTR_COLD; + void mc1000_mem(address_map &map) ATTR_COLD; }; /* Memory Banking */ diff --git a/src/mame/ccs/ccs2810.cpp b/src/mame/ccs/ccs2810.cpp index 8c76169c685..73035dffbbb 100644 --- a/src/mame/ccs/ccs2810.cpp +++ b/src/mame/ccs/ccs2810.cpp @@ -123,8 +123,8 @@ class ccs_state : public driver_device void ccs2422(machine_config &config); protected: - void machine_start() override; - void machine_reset() override; + void machine_start() override ATTR_COLD; + void machine_reset() override ATTR_COLD; u8 port04_r(); u8 port34_r(); @@ -157,9 +157,9 @@ class ccs_state : public driver_device void port40_w(u8 data); - void ccs2422_io(address_map &map); - void ccs2810_io(address_map &map); - void ccs2810_mem(address_map &map); + void ccs2422_io(address_map &map) ATTR_COLD; + void ccs2810_io(address_map &map) ATTR_COLD; + void ccs2810_mem(address_map &map) ATTR_COLD; u8 m_power_on_status = 0U; }; @@ -176,12 +176,12 @@ class ccs300_state : public ccs_state void ccs300(machine_config &config); protected: - void machine_start() override; - void machine_reset() override; + void machine_start() override ATTR_COLD; + void machine_reset() override ATTR_COLD; private: - void ccs300_io(address_map &map); - void ccs300_mem(address_map &map); + void ccs300_io(address_map &map) ATTR_COLD; + void ccs300_mem(address_map &map) ATTR_COLD; void port40_w(u8 data); required_shared_ptr m_ram1; required_memory_bank m_bank1; diff --git a/src/mame/ceres/ceres.cpp b/src/mame/ceres/ceres.cpp index 0230c3323f8..3d1f48a2a5d 100644 --- a/src/mame/ceres/ceres.cpp +++ b/src/mame/ceres/ceres.cpp @@ -65,11 +65,11 @@ class ceres1_state : public driver_device protected: // driver_device overrides - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; // address maps - template void cpu_map(address_map &map); + template void cpu_map(address_map &map) ATTR_COLD; public: // machine config diff --git a/src/mame/ces/cesclass.cpp b/src/mame/ces/cesclass.cpp index 797874b6bd7..3872a3dd79e 100644 --- a/src/mame/ces/cesclass.cpp +++ b/src/mame/ces/cesclass.cpp @@ -52,10 +52,10 @@ class cesclassic_state : public driver_device void palette_init(palette_device &palette) const; void cesclassic(machine_config &config); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; protected: - virtual void video_start() override; - virtual void video_reset() override; + virtual void video_start() override ATTR_COLD; + virtual void video_reset() override ATTR_COLD; private: required_device m_maincpu; diff --git a/src/mame/ces/galgames.cpp b/src/mame/ces/galgames.cpp index 3e1dc6e64aa..5cf7bb8d102 100644 --- a/src/mame/ces/galgames.cpp +++ b/src/mame/ces/galgames.cpp @@ -113,8 +113,8 @@ class galgames_cart_device : public device_t, public device_rom_interface<21, 1, u32 clock); // 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; bool is_selected(); @@ -154,7 +154,7 @@ class galgames_bios_cart_device : public galgames_cart_device protected: // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; DEFINE_DEVICE_TYPE(GALGAMES_BIOS_CART, galgames_bios_cart_device, "galgames_bios_cart", "Galaxy Games BIOS Cartridge") @@ -180,7 +180,7 @@ class galgames_starpak2_cart_device : public galgames_cart_device protected: // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; DEFINE_DEVICE_TYPE(GALGAMES_STARPAK2_CART, galgames_starpak2_cart_device, "starpak2_cart", "Galaxy Games StarPak 2 Cartridge") @@ -210,7 +210,7 @@ class galgames_starpak3_cart_device : public galgames_cart_device protected: // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; DEFINE_DEVICE_TYPE(GALGAMES_STARPAK3_CART, galgames_starpak3_cart_device, "starpak3_cart", "Galaxy Games StarPak 3 Cartridge") @@ -240,7 +240,7 @@ class galgames_slot_device : public device_t, public device_memory_interface // construction/destruction galgames_slot_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); - void slot_map(address_map &map); + void slot_map(address_map &map) ATTR_COLD; u16 read(offs_t offset, u16 mem_mask = ~0) { return m_space->read_word(offset * 2, mem_mask); } void write(offs_t offset, u16 data, u16 mem_mask = ~0) { m_space->write_word(offset * 2, data, mem_mask); } @@ -272,8 +272,8 @@ class galgames_slot_device : public device_t, public device_memory_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 space_config_vector memory_space_config() const override; address_space_config m_space_config; @@ -760,12 +760,12 @@ class galgames_state : public driver_device void galgbios(machine_config &config); void galgame2(machine_config &config); void galgame3(machine_config &config); - void blitter_map(address_map &map); - void galgames_map(address_map &map); - void oki_map(address_map &map); + void blitter_map(address_map &map) ATTR_COLD; + void galgames_map(address_map &map) ATTR_COLD; + void oki_map(address_map &map) ATTR_COLD; protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; required_device m_maincpu; required_device m_screen; diff --git a/src/mame/chess/ave_arb.cpp b/src/mame/chess/ave_arb.cpp index 105f145ff72..7752b859e34 100644 --- a/src/mame/chess/ave_arb.cpp +++ b/src/mame/chess/ave_arb.cpp @@ -86,7 +86,7 @@ class arb_state : public driver_device void v2(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: // devices/pointers @@ -107,8 +107,8 @@ class arb_state : public driver_device bool m_altboard = false; - void main_map(address_map &map); - void v2_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void v2_map(address_map &map) ATTR_COLD; void init_board(u8 data); DECLARE_DEVICE_IMAGE_LOAD_MEMBER(cart_load); diff --git a/src/mame/chess/compuchess.cpp b/src/mame/chess/compuchess.cpp index b5044b50954..d56a38da2a6 100644 --- a/src/mame/chess/compuchess.cpp +++ b/src/mame/chess/compuchess.cpp @@ -140,8 +140,8 @@ class cmpchess_state : public driver_device void cncchess(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: // devices/pointers @@ -157,10 +157,10 @@ class cmpchess_state : public driver_device bool m_blink = false; // address maps - void main_map(address_map &map); - void main_io(address_map &map); - void cncchess_map(address_map &map); - void cncchess_io(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void main_io(address_map &map) ATTR_COLD; + void cncchess_map(address_map &map) ATTR_COLD; + void cncchess_io(address_map &map) ATTR_COLD; TIMER_DEVICE_CALLBACK_MEMBER(beeper_off) { m_beeper->set_state(0); } TIMER_DEVICE_CALLBACK_MEMBER(blink) { m_blink = !m_blink; update_display(); } diff --git a/src/mame/chess/conchess.cpp b/src/mame/chess/conchess.cpp index a9b77f9af60..8185c89e4e8 100644 --- a/src/mame/chess/conchess.cpp +++ b/src/mame/chess/conchess.cpp @@ -102,7 +102,7 @@ class conchess_state : public driver_device void concvicp(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: // devices/pointers @@ -115,7 +115,7 @@ class conchess_state : public driver_device u8 m_inp_mux = 0; // address maps - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; // I/O handlers void clear_irq(); diff --git a/src/mame/chess/conic_cchess2.cpp b/src/mame/chess/conic_cchess2.cpp index c1196a3cc8b..2dde30be1b4 100644 --- a/src/mame/chess/conic_cchess2.cpp +++ b/src/mame/chess/conic_cchess2.cpp @@ -62,7 +62,7 @@ class cchess2_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(reset_button) { m_maincpu->set_input_line(INPUT_LINE_RESET, newval ? ASSERT_LINE : CLEAR_LINE); } protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: // devices/pointers @@ -78,7 +78,7 @@ class cchess2_state : public driver_device u8 m_dac_on = 0; // address maps - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; // I/O handlers void update_display(); diff --git a/src/mame/chess/conic_cchess3.cpp b/src/mame/chess/conic_cchess3.cpp index 93896c39e0c..6e37655f00a 100644 --- a/src/mame/chess/conic_cchess3.cpp +++ b/src/mame/chess/conic_cchess3.cpp @@ -51,7 +51,7 @@ class cchess3_state : public driver_device void cncchess3(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: // devices/pointers @@ -60,7 +60,7 @@ class cchess3_state : public driver_device required_device m_display; required_device m_dac; - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; // I/O handlers void main_comm_w(u8 data); diff --git a/src/mame/chess/krypton_regency.cpp b/src/mame/chess/krypton_regency.cpp index cc8d5e7e424..4a15f35627f 100644 --- a/src/mame/chess/krypton_regency.cpp +++ b/src/mame/chess/krypton_regency.cpp @@ -65,7 +65,7 @@ class regency_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(in1_changed) { update_irq2(); } protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: // devices/pointers diff --git a/src/mame/chess/regence.cpp b/src/mame/chess/regence.cpp index 9570afc1bdf..0632475afc3 100644 --- a/src/mame/chess/regence.cpp +++ b/src/mame/chess/regence.cpp @@ -56,12 +56,11 @@ class regence_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(power_off); - // machine configs void regence(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override { m_power = true; } + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD { m_power = true; } private: // devices/pointers @@ -75,8 +74,7 @@ class regence_state : public driver_device u8 m_inp_mux = 0; u8 m_led_data = 0; - // address maps - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; // I/O handlers void update_display(); diff --git a/src/mame/chess/tasc.cpp b/src/mame/chess/tasc.cpp index 660f1b30907..e67130c750d 100644 --- a/src/mame/chess/tasc.cpp +++ b/src/mame/chess/tasc.cpp @@ -92,8 +92,8 @@ class tasc_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(change_cpu_freq); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: // devices/pointers @@ -114,7 +114,7 @@ class tasc_state : public driver_device u32 m_prev_pc = 0; u64 m_prev_cycle = 0; - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; // I/O handlers u32 input_r(); diff --git a/src/mame/chess/cking_master.cpp b/src/mame/chessking/master.cpp similarity index 93% rename from src/mame/chess/cking_master.cpp rename to src/mame/chessking/master.cpp index b45aeacdf11..380a5715b53 100644 --- a/src/mame/chess/cking_master.cpp +++ b/src/mame/chessking/master.cpp @@ -8,11 +8,12 @@ Chess King Master (yes, it's plainly named "Master") Chess King was a UK business formed by Intelligent Software Ltd (later known as Intelligent Chess Software Ltd, after the fiasco with the Enterprise home computer), so logically, all the programs were by them. According to the manual, the chess -engine is Cyrus (by Richard Lang). +engine of Master is Cyrus (by Richard Lang). To start a new game, press CHANGE POSITION, NEW GAME, and CHANGE POSITION again. Hardware notes: +- PCB label: COPYRIGHT CHESS KING - Z80 CPU(NEC D780C-1) @ 4MHz(8MHz XTAL), IRQ from 555 timer - 8KB ROM(NEC D2764C-3), 2KB RAM(NEC D4016C), ROM is scrambled for easy PCB placement - simple I/O via 2*74373 and a 74145 @@ -50,13 +51,12 @@ class master_state : public driver_device m_inputs(*this, "IN.%u", 0) { } - // machine configs void master(machine_config &config); void init_master(); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: // devices/pointers @@ -70,8 +70,8 @@ class master_state : public driver_device u8 m_inp_mux = 0; // address maps - void main_map(address_map &map); - void main_trampoline(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void main_trampoline(address_map &map) ATTR_COLD; u8 main_trampoline_r(offs_t offset); void main_trampoline_w(offs_t offset, u8 data); @@ -222,7 +222,7 @@ void master_state::master(machine_config &config) { // basic machine hardware Z80(config, m_maincpu, 8_MHz_XTAL/2); - m_maincpu->z80_set_m1_cycles(5); // 1 WAIT CLK per M1 + m_maincpu->z80_set_m1_cycles(4+1); // 1 WAIT CLK per M1 m_maincpu->set_addrmap(AS_PROGRAM, &master_state::main_trampoline); ADDRESS_MAP_BANK(config, "mainmap").set_map(&master_state::main_map).set_options(ENDIANNESS_LITTLE, 8, 16); @@ -249,7 +249,7 @@ void master_state::master(machine_config &config) ROM Definitions *******************************************************************************/ -ROM_START( ckmaster ) +ROM_START( master ) ROM_REGION( 0x10000, "maincpu", 0 ) ROM_LOAD("d2764c-3.ic2", 0x0000, 0x2000, CRC(59cbec9e) SHA1(2e0629e65778da62bed857406b91a334698d2fe8) ) // no custom label ROM_END @@ -262,5 +262,5 @@ ROM_END Drivers *******************************************************************************/ -// YEAR NAME PARENT COMPAT MACHINE INPUT CLASS INIT COMPANY, FULLNAME, FLAGS -SYST( 1983, ckmaster, 0, 0, master, master, master_state, init_master, "Chess King / Intelligent Software", "Master (Chess King)", MACHINE_SUPPORTS_SAVE ) +// YEAR NAME PARENT COMPAT MACHINE INPUT CLASS INIT COMPANY, FULLNAME, FLAGS +SYST( 1983, master, 0, 0, master, master, master_state, init_master, "Chess King / Intelligent Software", "Master (Chess King)", MACHINE_SUPPORTS_SAVE ) diff --git a/src/mame/chess/cking_triomphe.cpp b/src/mame/chessking/triomphe.cpp similarity index 98% rename from src/mame/chess/cking_triomphe.cpp rename to src/mame/chessking/triomphe.cpp index 3ce23b059b9..12691bf55a4 100644 --- a/src/mame/chess/cking_triomphe.cpp +++ b/src/mame/chessking/triomphe.cpp @@ -49,7 +49,7 @@ class triomphe_state : public driver_device void triomphe(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: // devices/pointers @@ -61,6 +61,7 @@ class triomphe_state : public driver_device u16 m_inp_mux = 0; + // I/O handlers u8 input_r(); void board_w(u8 data); void control_w(u8 data); diff --git a/src/mame/chromatics/cgc7900.h b/src/mame/chromatics/cgc7900.h index 14f641a6c09..01ff6b0fdca 100644 --- a/src/mame/chromatics/cgc7900.h +++ b/src/mame/chromatics/cgc7900.h @@ -78,8 +78,8 @@ class cgc7900_state : public driver_device required_device m_i8251_0; required_device m_i8251_1; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; void cgc7900_palette(palette_device &palette) const; u32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); @@ -116,9 +116,9 @@ class cgc7900_state : public driver_device void cgc7900(machine_config &config); void cgc7900_video(machine_config &config); - void cgc7900_mem(address_map &map); - void keyboard_mem(address_map &map); - void cpu_space_map(address_map &map); + void cgc7900_mem(address_map &map) ATTR_COLD; + void keyboard_mem(address_map &map) ATTR_COLD; + void cpu_space_map(address_map &map) ATTR_COLD; private: u16 kbd_mods = 0U; u8 kbd_data = 0U; diff --git a/src/mame/cinematronics/cchasm.cpp b/src/mame/cinematronics/cchasm.cpp index 84151200ad8..74a1b2a36e3 100644 --- a/src/mame/cinematronics/cchasm.cpp +++ b/src/mame/cinematronics/cchasm.cpp @@ -59,7 +59,7 @@ class cchasm_state : public driver_device INPUT_CHANGED_MEMBER(set_coin_flag); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; TIMER_CALLBACK_MEMBER(refresh_end); @@ -100,9 +100,9 @@ class cchasm_state : public driver_device void refresh(); - void memmap(address_map &map); - void sound_memmap(address_map &map); - void sound_portmap(address_map &map); + void memmap(address_map &map) ATTR_COLD; + void sound_memmap(address_map &map) ATTR_COLD; + void sound_portmap(address_map &map) ATTR_COLD; }; diff --git a/src/mame/cinematronics/cinemat.h b/src/mame/cinematronics/cinemat.h index e8d44cfcdbe..5269b180a1b 100644 --- a/src/mame/cinematronics/cinemat.h +++ b/src/mame/cinematronics/cinemat.h @@ -106,8 +106,8 @@ class cinemat_state : public driver_device } protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; void speedfrk_start_led_w(int state); @@ -118,12 +118,12 @@ class cinemat_state : public driver_device void cinemat_jmi_16k(machine_config &config); void cinemat_jmi_32k(machine_config &config); - void program_map_4k(address_map &map); - void program_map_8k(address_map &map); - void program_map_16k(address_map &map); - void program_map_32k(address_map &map); - void data_map(address_map &map); - void io_map(address_map &map); + void program_map_4k(address_map &map) ATTR_COLD; + void program_map_8k(address_map &map) ATTR_COLD; + void program_map_16k(address_map &map) ATTR_COLD; + void program_map_32k(address_map &map) ATTR_COLD; + void data_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; }; @@ -192,8 +192,8 @@ class demon_state : public cinemat_state void demon_sound(machine_config &config); - void demon_sound_map(address_map &map); - void demon_sound_ports(address_map &map); + void demon_sound_map(address_map &map) ATTR_COLD; + void demon_sound_ports(address_map &map) ATTR_COLD; private: u8 m_sound_fifo[16]{}; @@ -222,8 +222,8 @@ class qb3_state : public demon_state void qb3_sound(machine_config &config); - void data_map_qb3(address_map &map); - void io_map_qb3(address_map &map); + void data_map_qb3(address_map &map) ATTR_COLD; + void io_map_qb3(address_map &map) ATTR_COLD; private: int m_qb3_lastx = 0; diff --git a/src/mame/cinematronics/cinemat_a.h b/src/mame/cinematronics/cinemat_a.h index 62a7c6d50c8..e99a4b784a4 100644 --- a/src/mame/cinematronics/cinemat_a.h +++ b/src/mame/cinematronics/cinemat_a.h @@ -18,8 +18,8 @@ class cinemat_audio_device_base : public device_t, public device_mixer_interface protected: cinemat_audio_device_base(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, u8 inputs_mask, void (*netlist)(netlist::nlparse_t &), double output_scale); - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; template void sound_w(int state) { input_set(Index, state); } void input_set(int bit, int state); diff --git a/src/mame/cinematronics/dlair.cpp b/src/mame/cinematronics/dlair.cpp index fb9216914b9..0be6452edf9 100644 --- a/src/mame/cinematronics/dlair.cpp +++ b/src/mame/cinematronics/dlair.cpp @@ -130,15 +130,15 @@ class dlair_state : public driver_device void led_den2_w(offs_t offset, uint8_t data); uint8_t laserdisc_r(); void laserdisc_w(uint8_t data); - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; void dleuro_palette(palette_device &palette) const; uint32_t screen_update_dleuro(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); void write_speaker(int state); - void dleuro_io_map(address_map &map); - void dleuro_map(address_map &map); - void dlus_map(address_map &map); + void dleuro_io_map(address_map &map) ATTR_COLD; + void dleuro_map(address_map &map) ATTR_COLD; + void dlus_map(address_map &map) ATTR_COLD; required_device m_maincpu; optional_device m_speaker; diff --git a/src/mame/cinematronics/dlair2.cpp b/src/mame/cinematronics/dlair2.cpp index 4f33a94ea0a..42179402c5e 100644 --- a/src/mame/cinematronics/dlair2.cpp +++ b/src/mame/cinematronics/dlair2.cpp @@ -62,14 +62,14 @@ class dlair2_state : public driver_device INTERRUPT_GEN_MEMBER(dlair2_timer_irq); void dlair2_palette(palette_device &palette) const; - void dlair2_io(address_map &map); - void dlair2_map(address_map &map); + void dlair2_io(address_map &map) ATTR_COLD; + void dlair2_map(address_map &map) ATTR_COLD; // driver_device overrides - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; }; void dlair2_state::video_start() diff --git a/src/mame/cinematronics/embargo.cpp b/src/mame/cinematronics/embargo.cpp index a157629901a..901d38fc981 100644 --- a/src/mame/cinematronics/embargo.cpp +++ b/src/mame/cinematronics/embargo.cpp @@ -26,8 +26,8 @@ class embargo_state : public driver_device void embargo(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; @@ -42,9 +42,9 @@ class embargo_state : public driver_device void input_select_w(uint8_t data); uint32_t screen_update_embargo(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void main_data_map(address_map &map); - void main_io_map(address_map &map); - void main_map(address_map &map); + void main_data_map(address_map &map) ATTR_COLD; + void main_io_map(address_map &map) ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; uint8_t m_dial_enable_1 = 0; uint8_t m_dial_enable_2 = 0; diff --git a/src/mame/cinematronics/jack.h b/src/mame/cinematronics/jack.h index fdfe36bc0c5..883c387ed39 100644 --- a/src/mame/cinematronics/jack.h +++ b/src/mame/cinematronics/jack.h @@ -92,21 +92,21 @@ class jack_state : public driver_device uint32_t screen_update_striv(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); uint32_t screen_update_joinem(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; INTERRUPT_GEN_MEMBER(joinem_vblank_irq); void jack_draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect ); void joinem_draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect ); void treahunt_decode( ); - void decrypted_opcodes_map(address_map &map); - void jack_map(address_map &map); - void joinem_map(address_map &map); - void sound_io_map(address_map &map); - void sound_map(address_map &map); - void striv_map(address_map &map); - void unclepoo_map(address_map &map); + void decrypted_opcodes_map(address_map &map) ATTR_COLD; + void jack_map(address_map &map) ATTR_COLD; + void joinem_map(address_map &map) ATTR_COLD; + void sound_io_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; + void striv_map(address_map &map) ATTR_COLD; + void unclepoo_map(address_map &map) ATTR_COLD; }; #endif // MAME_CINEMATRONICS_JACK_H diff --git a/src/mame/cinematronics/leland.h b/src/mame/cinematronics/leland.h index 8b25b1d6f00..7ac22c79d1c 100644 --- a/src/mame/cinematronics/leland.h +++ b/src/mame/cinematronics/leland.h @@ -139,8 +139,8 @@ class leland_state : public driver_device struct vram_state_data m_vram_state[2]; - void slave_map_program(address_map &map); - void asylum_slave_map_program(address_map &map); + void slave_map_program(address_map &map) ATTR_COLD; + void asylum_slave_map_program(address_map &map) ATTR_COLD; TIMER_CALLBACK_MEMBER(leland_delayed_mvram_w); @@ -185,9 +185,9 @@ class leland_state : public driver_device void sound_port_w(u8 data); void gfx_port_w(u8 data); - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; TILEMAP_MAPPER_MEMBER(leland_scan); TILE_GET_INFO_MEMBER(leland_get_tile_info); @@ -204,10 +204,10 @@ class leland_state : public driver_device void ataxx_init_eeprom(const u16 *data); int keycard_r(); void keycard_w(int data); - void master_map_io(address_map &map); - void master_map_program(address_map &map); - void slave_map_io(address_map &map); - void slave_small_map_program(address_map &map); + void master_map_io(address_map &map) ATTR_COLD; + void master_map_program(address_map &map) ATTR_COLD; + void slave_map_io(address_map &map) ATTR_COLD; + void slave_small_map_program(address_map &map) ATTR_COLD; }; @@ -245,8 +245,8 @@ class redline_state : public leland_state u8 offroad_wheel_3_r(); void redline_master_alt_bankswitch_w(u8 data); - void master_redline_map_io(address_map &map); - void slave_large_map_program(address_map &map); + void master_redline_map_io(address_map &map) ATTR_COLD; + void slave_large_map_program(address_map &map) ATTR_COLD; required_device m_sound; }; @@ -295,15 +295,15 @@ class ataxx_state : public leland_state void ataxx_bankswitch(); - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; void ataxx_video(machine_config &config); - void master_map_program_2(address_map &map); - void master_map_io_2(address_map &map); - void slave_map_io_2(address_map &map); + void master_map_program_2(address_map &map) ATTR_COLD; + void master_map_io_2(address_map &map) ATTR_COLD; + void slave_map_io_2(address_map &map) ATTR_COLD; required_device m_sound; diff --git a/src/mame/cinematronics/leland_a.h b/src/mame/cinematronics/leland_a.h index c4d3bb21170..a1653536b0f 100644 --- a/src/mame/cinematronics/leland_a.h +++ b/src/mame/cinematronics/leland_a.h @@ -46,9 +46,9 @@ class leland_80186_sound_device : public device_t leland_80186_sound_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); // device-level overrides - 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; int m_type; enum @@ -67,9 +67,9 @@ class leland_80186_sound_device : public device_t optional_device m_audiocpu; optional_device m_ymsnd; - void ataxx_80186_map_io(address_map &map); - void leland_80186_map_io(address_map &map); - void leland_80186_map_program(address_map &map); + void ataxx_80186_map_io(address_map &map) ATTR_COLD; + void leland_80186_map_io(address_map &map) ATTR_COLD; + void leland_80186_map_program(address_map &map) ATTR_COLD; private: void set_clock_line(int which, int state) { m_clock_active = state ? (m_clock_active | (1< m_maincpu; - void io_map(address_map &map); - void prg_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void prg_map(address_map &map) ATTR_COLD; }; void cirsa820xxx_state::prg_map(address_map &map) diff --git a/src/mame/cirsa/cirsa910510.cpp b/src/mame/cirsa/cirsa910510.cpp index a299c2eed93..607bcfdee33 100644 --- a/src/mame/cirsa/cirsa910510.cpp +++ b/src/mame/cirsa/cirsa910510.cpp @@ -95,8 +95,8 @@ class cirsa910510_state : public driver_device void cirsa910510(machine_config &config); private: - void io_map(address_map &map); - void main_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; required_device m_maincpu; }; diff --git a/src/mame/cirsa/miniguay.cpp b/src/mame/cirsa/miniguay.cpp index 065d36d9f99..8a834dedd1d 100644 --- a/src/mame/cirsa/miniguay.cpp +++ b/src/mame/cirsa/miniguay.cpp @@ -90,7 +90,7 @@ class miniguay_state : public driver_device void miniguay(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: void psg_control_w(u8 data); @@ -100,7 +100,7 @@ class miniguay_state : public driver_device required_device m_maincpu; required_device m_psg; - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; u8 m_psg_control; u8 m_psg_data; diff --git a/src/mame/cirsa/missbamby.cpp b/src/mame/cirsa/missbamby.cpp index 306c5a800a0..52cd8e7631e 100644 --- a/src/mame/cirsa/missbamby.cpp +++ b/src/mame/cirsa/missbamby.cpp @@ -55,10 +55,10 @@ class missbamby_state : public driver_device private: required_device m_maincpu; - void io_map(address_map &map); - void prg_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void prg_map(address_map &map) ATTR_COLD; - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; }; void missbamby_state::prg_map(address_map &map) // preliminary, everything to be taken with a grain of salt diff --git a/src/mame/cirsa/neptunp2.cpp b/src/mame/cirsa/neptunp2.cpp index 2281f1e3cbc..ed46baaf71e 100644 --- a/src/mame/cirsa/neptunp2.cpp +++ b/src/mame/cirsa/neptunp2.cpp @@ -184,16 +184,16 @@ class neptunp2_state : public driver_device protected: // driver_device overrides - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: uint8_t test_r(); uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void neptunp2_io(address_map &map); - void neptunp2_video_map(address_map &map); - void neptunp2_no_video_map(address_map &map); + void neptunp2_io(address_map &map) ATTR_COLD; + void neptunp2_video_map(address_map &map) ATTR_COLD; + void neptunp2_no_video_map(address_map &map) ATTR_COLD; // devices required_device m_maincpu; diff --git a/src/mame/citoh/cit101.cpp b/src/mame/citoh/cit101.cpp index 62a3d6cbe6f..f1df85fee48 100644 --- a/src/mame/citoh/cit101.cpp +++ b/src/mame/citoh/cit101.cpp @@ -91,7 +91,7 @@ class cit101_state : public driver_device void cit101e(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: void draw_line(uint32_t *pixptr, int minx, int maxx, int line, bool last_line, u16 rowaddr, u16 rowattr, u8 scrattr); @@ -114,10 +114,10 @@ class cit101_state : public driver_device void nvr_address_w(u8 data); void nvr_control_w(u8 data); - void mem_map(address_map &map); - void mem_map_101e(address_map &map); - void io_map(address_map &map); - void io_map_101e(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void mem_map_101e(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; + void io_map_101e(address_map &map) ATTR_COLD; u8 m_e0_latch; diff --git a/src/mame/citoh/cit101_kbd.h b/src/mame/citoh/cit101_kbd.h index 442570c10aa..3e25ae34e6d 100644 --- a/src/mame/citoh/cit101_kbd.h +++ b/src/mame/citoh/cit101_kbd.h @@ -39,11 +39,11 @@ class cit101_keyboard_device : public device_t cit101_keyboard_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); // device-level overrides - virtual void device_resolve_objects() override; - virtual void device_start() override; - virtual ioport_constructor device_input_ports() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual const tiny_rom_entry *device_rom_region() const override; + virtual void device_resolve_objects() override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual ioport_constructor device_input_ports() const 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; private: // MCU handlers @@ -52,8 +52,8 @@ class cit101_keyboard_device : public device_t u8 keys_r(); // address maps - void prog_map(address_map &map); - void ext_map(address_map &map); + void prog_map(address_map &map) ATTR_COLD; + void ext_map(address_map &map) ATTR_COLD; // object finders required_device m_mcu; @@ -79,8 +79,8 @@ class cit101e_keyboard_device : public cit101_keyboard_device protected: // device-level overrides - virtual ioport_constructor device_input_ports() const override; - virtual const tiny_rom_entry *device_rom_region() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; }; // device type declarations diff --git a/src/mame/citoh/cit101xl.cpp b/src/mame/citoh/cit101xl.cpp index bd543aaf189..7b94c685c5a 100644 --- a/src/mame/citoh/cit101xl.cpp +++ b/src/mame/citoh/cit101xl.cpp @@ -31,10 +31,10 @@ class cit101xl_state : public driver_device private: SCN2674_DRAW_CHARACTER_MEMBER(draw_character); - void mem_map(address_map &map); - void io_map(address_map &map); - void char_map(address_map &map); - void attr_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; + void char_map(address_map &map) ATTR_COLD; + void attr_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_avdc; diff --git a/src/mame/citoh/cit220.cpp b/src/mame/citoh/cit220.cpp index df58b149b3b..105258fc4b3 100644 --- a/src/mame/citoh/cit220.cpp +++ b/src/mame/citoh/cit220.cpp @@ -43,19 +43,19 @@ class cit220_state : public driver_device void tabe22(machine_config &config); private: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; void sod_w(int state); void cols_w(int state); SCN2674_DRAW_CHARACTER_MEMBER(draw_character); - void cit220p_mem_map(address_map &map); - void cit220p_io_map(address_map &map); - void vp122_mem_map(address_map &map); - void vp122_io_map(address_map &map); + void cit220p_mem_map(address_map &map) ATTR_COLD; + void cit220p_io_map(address_map &map) ATTR_COLD; + void vp122_mem_map(address_map &map) ATTR_COLD; + void vp122_io_map(address_map &map) ATTR_COLD; - void char_map(address_map &map); - void attr_map(address_map &map); + void char_map(address_map &map) ATTR_COLD; + void attr_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_screen; diff --git a/src/mame/citoh/cit220_kbd.h b/src/mame/citoh/cit220_kbd.h index 37dd44ee9ae..2150ecb61e2 100644 --- a/src/mame/citoh/cit220_kbd.h +++ b/src/mame/citoh/cit220_kbd.h @@ -30,11 +30,11 @@ class cit220p_keyboard_device : public device_t protected: // device_t implementation - virtual void device_resolve_objects() override; - virtual void device_start() override; - virtual ioport_constructor device_input_ports() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual const tiny_rom_entry *device_rom_region() const override; + virtual void device_resolve_objects() override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual ioport_constructor device_input_ports() const 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; private: // MCU handlers @@ -44,8 +44,8 @@ class cit220p_keyboard_device : public device_t void mcu_movx_w(u8 data); // address maps - void prog_map(address_map &map); - void ext_map(address_map &map); + void prog_map(address_map &map) ATTR_COLD; + void ext_map(address_map &map) ATTR_COLD; // object finders required_device m_mcu; diff --git a/src/mame/coleco/adam.h b/src/mame/coleco/adam.h index ba52f977422..8b0c526add1 100644 --- a/src/mame/coleco/adam.h +++ b/src/mame/coleco/adam.h @@ -65,8 +65,8 @@ class adam_state : public driver_device required_memory_region m_boot_rom; required_memory_region m_os7_rom; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; uint8_t mreq_r(offs_t offset); void mreq_w(offs_t offset, uint8_t data); @@ -111,8 +111,8 @@ class adam_state : public driver_device // video state int m_vdp_nmi = 0; - void adam_io(address_map &map); - void adam_mem(address_map &map); + void adam_io(address_map &map) ATTR_COLD; + void adam_mem(address_map &map) ATTR_COLD; }; #endif // MAME_COLECO_ADAM_H diff --git a/src/mame/coleco/coleco.h b/src/mame/coleco/coleco.h index 05855804e6c..0ca0dc4e17c 100644 --- a/src/mame/coleco/coleco.h +++ b/src/mame/coleco/coleco.h @@ -40,8 +40,8 @@ class coleco_state : public driver_device m_roller_y(*this, "ROLLER_Y") { } - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; uint8_t cart_r(offs_t offset); void cart_w(offs_t offset, uint8_t data); @@ -64,9 +64,9 @@ class coleco_state : public driver_device void coleco(machine_config &config); void czz50(machine_config &config); void dina(machine_config &config); - void coleco_io_map(address_map &map); - void coleco_map(address_map &map); - void czz50_map(address_map &map); + void coleco_io_map(address_map &map) ATTR_COLD; + void coleco_map(address_map &map) ATTR_COLD; + void czz50_map(address_map &map) ATTR_COLD; protected: required_device m_maincpu; required_device m_cart; @@ -113,8 +113,8 @@ class bit90_state : public coleco_state m_io_keyboard(*this, {"ROW0", "ROW1", "ROW2", "ROW3", "ROW4", "ROW5", "ROW6", "ROW7"}) {} - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; void bit90(machine_config &config); @@ -131,8 +131,8 @@ class bit90_state : public coleco_state required_ioport_array<8> m_io_keyboard; private: - void bit90_map(address_map &map); - void bit90_io_map(address_map &map); + void bit90_map(address_map &map) ATTR_COLD; + void bit90_io_map(address_map &map) ATTR_COLD; uint8_t m_keyselect = 0U; uint8_t m_unknown = 0U; diff --git a/src/mame/coleco/wrinkles.cpp b/src/mame/coleco/wrinkles.cpp index 776853df994..49213cbb985 100644 --- a/src/mame/coleco/wrinkles.cpp +++ b/src/mame/coleco/wrinkles.cpp @@ -57,7 +57,7 @@ class wrinkles_state : public driver_device private: required_device m_maincpu; - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/comad/funybubl.cpp b/src/mame/comad/funybubl.cpp index fed4ad537d3..2ed2fe165d4 100644 --- a/src/mame/comad/funybubl.cpp +++ b/src/mame/comad/funybubl.cpp @@ -81,8 +81,8 @@ class funybubl_state : public driver_device void funybubl(machine_config &config); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: // memory pointers @@ -116,11 +116,11 @@ class funybubl_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); - void main_program_map(address_map &map); - void main_io_map(address_map &map); - void oki_map(address_map &map); - void sound_map(address_map &map); - void vrambank_map(address_map &map); + void main_program_map(address_map &map) ATTR_COLD; + void main_io_map(address_map &map) ATTR_COLD; + void oki_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; + void vrambank_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/comad/galspnbl.cpp b/src/mame/comad/galspnbl.cpp index 97feb08a227..0c0e18e53cc 100644 --- a/src/mame/comad/galspnbl.cpp +++ b/src/mame/comad/galspnbl.cpp @@ -90,7 +90,7 @@ class galspnbl_state : public driver_device void galspnbl(machine_config &config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: // memory pointers @@ -117,8 +117,8 @@ class galspnbl_state : public driver_device void mix_sprite_layer(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, int pri); - void audio_map(address_map &map); - void main_map(address_map &map); + void audio_map(address_map &map) ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/comad/zerozone.cpp b/src/mame/comad/zerozone.cpp index d9f9031df6c..9199b2a8317 100644 --- a/src/mame/comad/zerozone.cpp +++ b/src/mame/comad/zerozone.cpp @@ -86,9 +86,9 @@ class zerozone_state : public driver_device protected: // driver_device overrides - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: // devices @@ -112,8 +112,8 @@ class zerozone_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void main_map(address_map &map); - void sound_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; TILE_GET_INFO_MEMBER(get_tile_info); }; diff --git a/src/mame/commodore/c128.cpp b/src/mame/commodore/c128.cpp index 9330580ac9c..d138800ee02 100644 --- a/src/mame/commodore/c128.cpp +++ b/src/mame/commodore/c128.cpp @@ -123,8 +123,8 @@ class c128_state : public driver_device required_ioport m_caps; required_ioport m_40_80; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; inline void check_interrupts(); int read_pla(offs_t offset, offs_t ca, offs_t vma, int ba, int rw, int aec, int z80io, int ms3, int ms2, int ms1, int ms0); @@ -233,12 +233,12 @@ class c128_state : public driver_device void c128dcr(machine_config &config); void c128dcrp(machine_config &config); void c128d81(machine_config &config); - void m8502_mem(address_map &map); - void vdc_videoram_map(address_map &map); - void vic_colorram_map(address_map &map); - void vic_videoram_map(address_map &map); - void z80_io(address_map &map); - void z80_mem(address_map &map); + void m8502_mem(address_map &map) ATTR_COLD; + void vdc_videoram_map(address_map &map) ATTR_COLD; + void vic_colorram_map(address_map &map) ATTR_COLD; + void vic_videoram_map(address_map &map) ATTR_COLD; + void z80_io(address_map &map) ATTR_COLD; + void z80_mem(address_map &map) ATTR_COLD; }; diff --git a/src/mame/commodore/c64.cpp b/src/mame/commodore/c64.cpp index 8d40e5bade3..a8680bf0978 100644 --- a/src/mame/commodore/c64.cpp +++ b/src/mame/commodore/c64.cpp @@ -102,8 +102,8 @@ class c64_state : public driver_device optional_ioport_array<8> m_row; optional_ioport m_lock; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; [[maybe_unused]] void check_interrupts(); int read_pla(offs_t offset, offs_t va, int rw, int aec, int ba); @@ -173,9 +173,9 @@ class c64_state : public driver_device void pal(machine_config &config); void ntsc(machine_config &config); void pet64(machine_config &config); - void c64_mem(address_map &map); - void vic_colorram_map(address_map &map); - void vic_videoram_map(address_map &map); + void c64_mem(address_map &map) ATTR_COLD; + void vic_colorram_map(address_map &map) ATTR_COLD; + void vic_videoram_map(address_map &map) ATTR_COLD; offs_t dasm_zeropage(std::ostream &stream, offs_t pc, const util::disasm_interface::data_buffer &opcodes, const char *opname); offs_t dasm_vector(std::ostream &stream, offs_t pc, const util::disasm_interface::data_buffer &opcodes, const char *opname); diff --git a/src/mame/commodore/c65.cpp b/src/mame/commodore/c65.cpp index 0ae69cadd4d..7c603860435 100644 --- a/src/mame/commodore/c65.cpp +++ b/src/mame/commodore/c65.cpp @@ -66,11 +66,11 @@ class dmagic_f018_device : public device_t template void set_space(T &&tag, int spacenum) { m_space.set_tag(std::forward(tag), spacenum); } - void map(address_map &map); + void map(address_map &map) ATTR_COLD; protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: required_address_space m_space; @@ -329,11 +329,11 @@ class c65_state : public driver_device protected: // driver_device overrides - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; - virtual void video_start() override; - virtual void video_reset() override; + virtual void video_start() override ATTR_COLD; + virtual void video_reset() override ATTR_COLD; private: required_device m_maincpu; required_device_array m_cia; @@ -368,7 +368,7 @@ class c65_state : public driver_device uint8_t m_keyb_c0_c7 = 0U; uint8_t m_keyb_c8_c9 = 0U; - void vic4567_map(address_map &map); + void vic4567_map(address_map &map) ATTR_COLD; void palette_red_w(offs_t offset, uint8_t data); void palette_green_w(offs_t offset, uint8_t data); void palette_blue_w(offs_t offset, uint8_t data); @@ -385,7 +385,7 @@ class c65_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void palette_init(palette_device &palette); - void c65_map(address_map &map); + void c65_map(address_map &map) ATTR_COLD; void irq_check(uint8_t irq_cause); diff --git a/src/mame/commodore/c900.cpp b/src/mame/commodore/c900.cpp index be9d51f630a..aabff26984b 100644 --- a/src/mame/commodore/c900.cpp +++ b/src/mame/commodore/c900.cpp @@ -58,11 +58,11 @@ class c900_state : public driver_device private: void sound_pb_w(u8 data); - void data_map(address_map &map); - void io_map(address_map &map); - void special_io_map(address_map &map); - void mem_map(address_map &map); - void fdc_map(address_map &map); + void data_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; + void special_io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; + void fdc_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_fdcpu; diff --git a/src/mame/commodore/cbm2.cpp b/src/mame/commodore/cbm2.cpp index fed83fd7f27..2cb1b975e42 100644 --- a/src/mame/commodore/cbm2.cpp +++ b/src/mame/commodore/cbm2.cpp @@ -233,9 +233,9 @@ class cbm2_state : public driver_device void b128(machine_config &config); void b256(machine_config &config); void cbm610(machine_config &config); - void cbm2_mem(address_map &map); - void ext_io(address_map &map); - void ext_mem(address_map &map); + void cbm2_mem(address_map &map) ATTR_COLD; + void ext_io(address_map &map) ATTR_COLD; + void ext_mem(address_map &map) ATTR_COLD; }; @@ -317,9 +317,9 @@ class p500_state : public cbm2_state // interrupt state void p500_pal(machine_config &config); void p500_ntsc(machine_config &config); - void p500_mem(address_map &map); - void vic_colorram_map(address_map &map); - void vic_videoram_map(address_map &map); + void p500_mem(address_map &map) ATTR_COLD; + void vic_colorram_map(address_map &map) ATTR_COLD; + void vic_videoram_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/commodore/chessmate.cpp b/src/mame/commodore/chessmate.cpp index b92e3269799..a4b015f8966 100644 --- a/src/mame/commodore/chessmate.cpp +++ b/src/mame/commodore/chessmate.cpp @@ -81,7 +81,7 @@ class chmate_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(reset_button); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: // devices/pointers @@ -95,7 +95,7 @@ class chmate_state : public driver_device u8 m_7seg_data = 0; u8 m_led_data = 0; - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; // I/O handlers void update_display(); diff --git a/src/mame/commodore/clcd.cpp b/src/mame/commodore/clcd.cpp index c2895fb11ea..f1b3deb5b11 100644 --- a/src/mame/commodore/clcd.cpp +++ b/src/mame/commodore/clcd.cpp @@ -535,8 +535,8 @@ class clcd_state : public driver_device void nvram_init(nvram_device &nvram, void *data, size_t size); void clcd(machine_config &config); - void clcd_banked_mem(address_map &map); - void clcd_mem(address_map &map); + void clcd_banked_mem(address_map &map) ATTR_COLD; + void clcd_mem(address_map &map) ATTR_COLD; private: required_device m_maincpu; required_device m_acia; diff --git a/src/mame/commodore/kim1.cpp b/src/mame/commodore/kim1.cpp index 4d8072496b7..2a0e90b3e2e 100644 --- a/src/mame/commodore/kim1.cpp +++ b/src/mame/commodore/kim1.cpp @@ -120,8 +120,8 @@ class kim1_state : public driver_device void kim1(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; @@ -139,8 +139,8 @@ class kim1_state : public driver_device uint8_t m_311_output = 0; uint32_t m_cassette_high_count = 0; - void mem_map(address_map &map); - void sync_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void sync_map(address_map &map) ATTR_COLD; uint8_t sync_r(offs_t offset); void sync_w(int state); diff --git a/src/mame/commodore/mps1230.cpp b/src/mame/commodore/mps1230.cpp index 6b365d098ce..96d2f1e31cd 100644 --- a/src/mame/commodore/mps1230.cpp +++ b/src/mame/commodore/mps1230.cpp @@ -102,10 +102,10 @@ class mps1230_state : public driver_device private: required_device m_maincpu; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; - void mps1230_map(address_map &map); + void mps1230_map(address_map &map) ATTR_COLD; }; /*************************************************************************** diff --git a/src/mame/commodore/pet.cpp b/src/mame/commodore/pet.cpp index 8a6b985ecda..f10d8df3fc6 100644 --- a/src/mame/commodore/pet.cpp +++ b/src/mame/commodore/pet.cpp @@ -275,7 +275,7 @@ class pet_state : public driver_device DECLARE_MACHINE_START( pet40 ); DECLARE_MACHINE_RESET( pet40 ); - void pet2001_mem(address_map &map); + void pet2001_mem(address_map &map) ATTR_COLD; protected: required_device m_maincpu; @@ -456,7 +456,7 @@ class cbm8296_state : public pet80_state void write(offs_t offset, uint8_t data); uint8_t m_cr; - void cbm8296_mem(address_map &map); + void cbm8296_mem(address_map &map) ATTR_COLD; }; diff --git a/src/mame/commodore/plus4.cpp b/src/mame/commodore/plus4.cpp index 22f88593155..a58385be711 100644 --- a/src/mame/commodore/plus4.cpp +++ b/src/mame/commodore/plus4.cpp @@ -101,8 +101,8 @@ class plus4_state : public driver_device required_ioport_array<8> m_row; required_ioport m_lock; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; void bankswitch(offs_t offset, int phi0, int mux, int ras, int *scs, int *phi2, int *user, int *_6551, int *addr_clk, int *keyport, int *kernal); uint8_t read_memory(offs_t offset, int ba, int scs, int phi2, int user, int _6551, int addr_clk, int keyport, int kernal); @@ -148,8 +148,8 @@ class plus4_state : public driver_device // keyboard state uint8_t m_kb; - void plus4_mem(address_map &map); - void ted_videoram_map(address_map &map); + void plus4_mem(address_map &map) ATTR_COLD; + void ted_videoram_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/commodore/vic10.cpp b/src/mame/commodore/vic10.cpp index 97562266596..c7400502843 100644 --- a/src/mame/commodore/vic10.cpp +++ b/src/mame/commodore/vic10.cpp @@ -71,8 +71,8 @@ class vic10_state : public driver_device required_ioport m_restore; required_ioport m_lock; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; uint8_t read(offs_t offset); void write(offs_t offset, uint8_t data); @@ -92,9 +92,9 @@ class vic10_state : public driver_device void exp_reset_w(int state); - void vic10_mem(address_map &map); - void vic_colorram_map(address_map &map); - void vic_videoram_map(address_map &map); + void vic10_mem(address_map &map) ATTR_COLD; + void vic_colorram_map(address_map &map) ATTR_COLD; + void vic_videoram_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/commodore/vic20.cpp b/src/mame/commodore/vic20.cpp index 6510451ed9f..26c2a8bdbbd 100644 --- a/src/mame/commodore/vic20.cpp +++ b/src/mame/commodore/vic20.cpp @@ -92,8 +92,8 @@ class vic20_state : public driver_device required_ioport m_restore; required_ioport m_lock; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; uint8_t read(offs_t offset); void write(offs_t offset, uint8_t data); @@ -165,9 +165,9 @@ class vic20_state : public driver_device IO3 = 7 }; - void vic20_mem(address_map &map); - void vic_colorram_map(address_map &map); - void vic_videoram_map(address_map &map); + void vic20_mem(address_map &map) ATTR_COLD; + void vic_colorram_map(address_map &map) ATTR_COLD; + void vic_videoram_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/compugraphic/pwrview.cpp b/src/mame/compugraphic/pwrview.cpp index 351137b75ad..70c8215b2f3 100644 --- a/src/mame/compugraphic/pwrview.cpp +++ b/src/mame/compugraphic/pwrview.cpp @@ -40,8 +40,8 @@ class pwrview_state : public driver_device void pwrview(machine_config &config); private: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; TIMER_CALLBACK_MEMBER(update_tmr0); TIMER_CALLBACK_MEMBER(update_kbd); @@ -71,10 +71,10 @@ class pwrview_state : public driver_device u8 err_r(); MC6845_UPDATE_ROW(update_row); - void bios_bank(address_map &map); - void pwrview_fetch_map(address_map &map); - void pwrview_io(address_map &map); - void pwrview_map(address_map &map); + void bios_bank(address_map &map) ATTR_COLD; + void pwrview_fetch_map(address_map &map) ATTR_COLD; + void pwrview_io(address_map &map) ATTR_COLD; + void pwrview_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_pit; diff --git a/src/mame/comx/comx35.h b/src/mame/comx/comx35.h index c475e731f1d..f014b0c8d9b 100644 --- a/src/mame/comx/comx35.h +++ b/src/mame/comx/comx35.h @@ -63,10 +63,10 @@ class comx35_state : public driver_device required_ioport m_modifiers; emu_timer *m_reset_done_timer = nullptr; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; TIMER_CALLBACK_MEMBER(reset_done); @@ -90,9 +90,9 @@ class comx35_state : public driver_device CDP1869_CHAR_RAM_WRITE_MEMBER(comx35_charram_w); CDP1869_PCB_READ_MEMBER(comx35_pcb_r); - void cdp1869_page_ram(address_map &map); - void comx35_io(address_map &map); - void comx35_mem(address_map &map); + void cdp1869_page_ram(address_map &map) ATTR_COLD; + void comx35_io(address_map &map) ATTR_COLD; + void comx35_mem(address_map &map) ATTR_COLD; // processor state int m_clear = 0; // CPU mode int m_q = 0; // Q flag diff --git a/src/mame/concept/concept.h b/src/mame/concept/concept.h index 957d1cfd0fd..6ea4ba70aa9 100644 --- a/src/mame/concept/concept.h +++ b/src/mame/concept/concept.h @@ -58,9 +58,9 @@ class concept_state : public driver_device uint8_t m_clock_address = 0U; uint8_t io_r(offs_t offset); void io_w(offs_t offset, uint8_t data); - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); uint8_t via_in_a(); @@ -69,7 +69,7 @@ class concept_state : public driver_device void via_out_b(uint8_t data); void via_out_cb2(int state); - void concept_memmap(address_map &map); + void concept_memmap(address_map &map) ATTR_COLD; }; #endif // MAME_CONCEPT_CONCEPT_H diff --git a/src/mame/concept/concept_kbd.h b/src/mame/concept/concept_kbd.h index 86671f00f25..8b5c2657af4 100644 --- a/src/mame/concept/concept_kbd.h +++ b/src/mame/concept/concept_kbd.h @@ -29,11 +29,11 @@ class concept_keyboard_device : public device_t protected: // device-level overrides - virtual void device_resolve_objects() override; - virtual void device_start() override; - virtual ioport_constructor device_input_ports() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual const tiny_rom_entry *device_rom_region() const override; + virtual void device_resolve_objects() override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual ioport_constructor device_input_ports() const 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; private: // MCU handlers @@ -41,7 +41,7 @@ class concept_keyboard_device : public device_t void p2_w(u8 data); // address maps - void prog_map(address_map &map); + void prog_map(address_map &map) ATTR_COLD; // object finders required_device m_mcu; diff --git a/src/mame/conitec/prof180x.h b/src/mame/conitec/prof180x.h index 383fa894f37..0d270ff5aeb 100644 --- a/src/mame/conitec/prof180x.h +++ b/src/mame/conitec/prof180x.h @@ -28,8 +28,8 @@ class prof180x_state : public driver_device private: required_device m_centronics; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; uint8_t read(offs_t offset); void write(offs_t offset, uint8_t data); @@ -54,8 +54,8 @@ class prof180x_state : public driver_device int m_c2 = 0; int m_mm0 = 0; int m_mm1 = 0; - void prof180x_io(address_map &map); - void prof180x_mem(address_map &map); + void prof180x_io(address_map &map) ATTR_COLD; + void prof180x_mem(address_map &map) ATTR_COLD; }; #endif // MAME_CONITEC_PROF180X_H diff --git a/src/mame/conitec/prof80.h b/src/mame/conitec/prof80.h index 281394a4a2e..2ca68f7e9ce 100644 --- a/src/mame/conitec/prof80.h +++ b/src/mame/conitec/prof80.h @@ -53,7 +53,7 @@ class prof80_state : public driver_device void prof80(machine_config &config); private: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; TIMER_CALLBACK_MEMBER(motor_off); @@ -93,9 +93,9 @@ class prof80_state : public driver_device // timers emu_timer *m_floppy_motor_off_timer = nullptr; - void prof80_io(address_map &map); - void prof80_mem(address_map &map); - void prof80_mmu(address_map &map); + void prof80_io(address_map &map) ATTR_COLD; + void prof80_mem(address_map &map) ATTR_COLD; + void prof80_mmu(address_map &map) ATTR_COLD; }; #endif // MAME_CONITEC_PROF80_H diff --git a/src/mame/conitec/prof80mmu.h b/src/mame/conitec/prof80mmu.h index 2a4be570e92..9a0c9ded798 100644 --- a/src/mame/conitec/prof80mmu.h +++ b/src/mame/conitec/prof80mmu.h @@ -23,15 +23,15 @@ class prof80_mmu_device : public device_t, public device_memory_interface public: prof80_mmu_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - virtual void z80_program_map(address_map &map); + virtual void z80_program_map(address_map &map) ATTR_COLD; void par_w(offs_t offset, uint8_t data); void mme_w(int state); - void program_map(address_map &map); + void program_map(address_map &map) ATTR_COLD; protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_memory_interface overrides virtual space_config_vector memory_space_config() const override; diff --git a/src/mame/cromemco/c10.cpp b/src/mame/cromemco/c10.cpp index 117de280fa0..ae9bafffefd 100644 --- a/src/mame/cromemco/c10.cpp +++ b/src/mame/cromemco/c10.cpp @@ -41,11 +41,11 @@ class c10_state : public driver_device void c10(machine_config &config); private: - void machine_reset() override; - void machine_start() override; + void machine_reset() override ATTR_COLD; + void machine_start() override ATTR_COLD; - void io_map(address_map &map); - void mem_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); diff --git a/src/mame/cromemco/mcb216.cpp b/src/mame/cromemco/mcb216.cpp index 85a6510d2b2..2c2dfd8b9b7 100644 --- a/src/mame/cromemco/mcb216.cpp +++ b/src/mame/cromemco/mcb216.cpp @@ -51,12 +51,12 @@ class mcb216_state : public driver_device protected: u8 tms5501_status_r(); IRQ_CALLBACK_MEMBER(irq_callback); - void mcb216_io(address_map &map); + void mcb216_io(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_tms5501; private: - void mcb216_mem(address_map &map); + void mcb216_mem(address_map &map) ATTR_COLD; }; class cb308_state : public mcb216_state @@ -66,8 +66,8 @@ class cb308_state : public mcb216_state void cb308(machine_config &config); private: - void cb308_mem(address_map &map); - void machine_reset() override; + void cb308_mem(address_map &map) ATTR_COLD; + void machine_reset() override ATTR_COLD; }; u8 mcb216_state::tms5501_status_r() diff --git a/src/mame/cxg/chess2001.cpp b/src/mame/cxg/chess2001.cpp index 194b9a0e743..9adf093ac0a 100644 --- a/src/mame/cxg/chess2001.cpp +++ b/src/mame/cxg/chess2001.cpp @@ -48,11 +48,10 @@ class chess2001_state : public driver_device m_inputs(*this, "IN.%u", 0) { } - // machine configs void chess2001(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: // devices/pointers @@ -65,8 +64,7 @@ class chess2001_state : public driver_device u16 m_inp_mux = 0; int m_dac_data = 0; - // address maps - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; // I/O handlers void speaker_w(u8 data); diff --git a/src/mame/cxg/computachess.cpp b/src/mame/cxg/computachess.cpp index b55e37950c5..94938618020 100644 --- a/src/mame/cxg/computachess.cpp +++ b/src/mame/cxg/computachess.cpp @@ -91,7 +91,7 @@ class computachess_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(reset_button) { m_maincpu->set_input_line(INPUT_LINE_RESET, newval ? ASSERT_LINE : CLEAR_LINE); } protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: // devices/pointers diff --git a/src/mame/cxg/dominator.cpp b/src/mame/cxg/dominator.cpp index 9442438ea63..ee8b0a78960 100644 --- a/src/mame/cxg/dominator.cpp +++ b/src/mame/cxg/dominator.cpp @@ -61,7 +61,7 @@ class dominator_state : public driver_device void commander(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: // devices/pointers @@ -75,8 +75,8 @@ class dominator_state : public driver_device output_finder<2, 52> m_out_lcd; // address maps - void dominator_map(address_map &map); - void galaxy_map(address_map &map); + void dominator_map(address_map &map) ATTR_COLD; + void galaxy_map(address_map &map) ATTR_COLD; // I/O handlers void lcd_output_w(offs_t offset, u64 data); diff --git a/src/mame/cxg/professor.cpp b/src/mame/cxg/professor.cpp index 7bc8c79dc0e..5d21e80dc1c 100644 --- a/src/mame/cxg/professor.cpp +++ b/src/mame/cxg/professor.cpp @@ -55,7 +55,7 @@ class professor_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(on_button); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: // devices/pointers diff --git a/src/mame/cxg/royal.cpp b/src/mame/cxg/royal.cpp index 0c7ff7a6457..99270aff766 100644 --- a/src/mame/cxg/royal.cpp +++ b/src/mame/cxg/royal.cpp @@ -18,8 +18,8 @@ Hardware notes: - chessboard buttons, 16+4 LEDs, piezo Royal has 2 LCD panels, Supra has 1 (D12 pin is low), Granada and others have 0. -The LCD panel has 4 7segs and 2 unused segments: an x in the middle, and a white -square under the first digit. +The LCD panel has 4 7segs (no DP) and 2 unused segments: an x in the middle, and +a white square under the first digit. The 1992 versions by National Telecommunications System Ltd (Granada CXG-347, Sierra, Seville) have a lower-speed 3.58MHz XTAL, but since none of them have @@ -76,7 +76,7 @@ class royal_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(supra_on_button); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: // devices/pointers @@ -203,7 +203,8 @@ template void royal_state::input_w(u8 data) { // R3x,R4x: input mux, LED data - m_inp_mux = (m_inp_mux & ~(0xf << (N*4))) | (data << (N*4)); + const u8 shift = 4 * N; + m_inp_mux = (m_inp_mux & ~(0xf << shift)) | (data << shift); m_led_pwm->write_mx(~m_inp_mux); } @@ -292,15 +293,15 @@ void royal_state::royal(machine_config &config) m_maincpu->nvram_enable_backup(true); m_maincpu->stop_cb().set(m_maincpu, FUNC(hmcs400_cpu_device::nvram_set_battery)); m_maincpu->stop_cb().append(FUNC(royal_state::stop_mode)); - m_maincpu->write_r<0>().set(FUNC(royal_state::lcd_segs_w<0>)); - m_maincpu->read_r<1>().set(FUNC(royal_state::board_r<0>)); - m_maincpu->read_r<2>().set(FUNC(royal_state::board_r<1>)); - m_maincpu->write_r<3>().set(FUNC(royal_state::input_w<0>)); - m_maincpu->write_r<4>().set(FUNC(royal_state::input_w<1>)); - m_maincpu->write_r<5>().set(FUNC(royal_state::lcd_com_w)); - m_maincpu->write_r<6>().set(FUNC(royal_state::lcd_segs_w<3>)); - m_maincpu->write_r<7>().set(FUNC(royal_state::lcd_segs_w<2>)); - m_maincpu->write_r<8>().set(FUNC(royal_state::lcd_segs_w<1>)); + m_maincpu->write_r<0x0>().set(FUNC(royal_state::lcd_segs_w<0>)); + m_maincpu->read_r<0x1>().set(FUNC(royal_state::board_r<0>)); + m_maincpu->read_r<0x2>().set(FUNC(royal_state::board_r<1>)); + m_maincpu->write_r<0x3>().set(FUNC(royal_state::input_w<0>)); + m_maincpu->write_r<0x4>().set(FUNC(royal_state::input_w<1>)); + m_maincpu->write_r<0x5>().set(FUNC(royal_state::lcd_com_w)); + m_maincpu->write_r<0x6>().set(FUNC(royal_state::lcd_segs_w<3>)); + m_maincpu->write_r<0x7>().set(FUNC(royal_state::lcd_segs_w<2>)); + m_maincpu->write_r<0x8>().set(FUNC(royal_state::lcd_segs_w<1>)); m_maincpu->write_d().set(FUNC(royal_state::control_w)); m_maincpu->read_d().set(FUNC(royal_state::input_r)); diff --git a/src/mame/cxg/senterprise.cpp b/src/mame/cxg/senterprise.cpp index d79c482c17e..f60aa11210a 100644 --- a/src/mame/cxg/senterprise.cpp +++ b/src/mame/cxg/senterprise.cpp @@ -76,8 +76,8 @@ class senterp_state : public driver_device void senterp(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; // devices/pointers required_device m_maincpu; @@ -89,7 +89,7 @@ class senterp_state : public driver_device emu_timer *m_standbytimer; u8 m_inp_mux = 0; - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; // I/O handlers u8 input1_r(); @@ -124,7 +124,7 @@ class senterpc_state : public senterp_state void senterpc(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_lcd; diff --git a/src/mame/cxg/sphinx40.cpp b/src/mame/cxg/sphinx40.cpp index 41a73f7f119..8350bf4f04c 100644 --- a/src/mame/cxg/sphinx40.cpp +++ b/src/mame/cxg/sphinx40.cpp @@ -79,7 +79,7 @@ class sphinx40_state : public driver_device void sphinx40(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: // devices/pointers @@ -98,7 +98,7 @@ class sphinx40_state : public driver_device u8 m_inp_mux = 0; // address maps - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; // I/O handlers void lcd_seg_w(u64 data); diff --git a/src/mame/cybiko/cybiko.h b/src/mame/cybiko/cybiko.h index 25cdd551d84..2dc918782fe 100644 --- a/src/mame/cybiko/cybiko.h +++ b/src/mame/cybiko/cybiko.h @@ -88,14 +88,14 @@ class cybiko_state : public driver_device required_device m_nvram; optional_ioport_array<15> m_input; required_device m_debug_serial; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; DECLARE_QUICKLOAD_LOAD_MEMBER(quickload_cybiko); DECLARE_QUICKLOAD_LOAD_MEMBER(quickload_cybikoxt); - void cybikov1_mem(address_map &map); - void cybikov2_mem(address_map &map); - void cybikoxt_mem(address_map &map); + void cybikov1_mem(address_map &map) ATTR_COLD; + void cybikov2_mem(address_map &map) ATTR_COLD; + void cybikoxt_mem(address_map &map) ATTR_COLD; }; #endif // MAME_CYBIKO_CYBIKO_H diff --git a/src/mame/dai/dai.h b/src/mame/dai/dai.h index 32ee733f61a..1f78545daf6 100644 --- a/src/mame/dai/dai.h +++ b/src/mame/dai/dai.h @@ -60,12 +60,12 @@ class dai_state : public driver_device IRQ_CALLBACK_MEMBER(int_ack); TIMER_DEVICE_CALLBACK_MEMBER(tms_timer); - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; static const rgb_t s_palette[16]; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; memory_passthrough_handler m_rom_shadow_tap; required_device m_maincpu; diff --git a/src/mame/dai/dai_snd.h b/src/mame/dai/dai_snd.h index dbf827b125a..9b37744170c 100644 --- a/src/mame/dai/dai_snd.h +++ b/src/mame/dai/dai_snd.h @@ -25,8 +25,8 @@ class dai_sound_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 const &inputs, std::vector &outputs) override; private: diff --git a/src/mame/dataeast/actfancr.cpp b/src/mame/dataeast/actfancr.cpp index d18fb4afe02..d7134394ba9 100644 --- a/src/mame/dataeast/actfancr.cpp +++ b/src/mame/dataeast/actfancr.cpp @@ -69,8 +69,8 @@ class actfancr_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void prg_map(address_map &map); - void dec0_s_map(address_map &map); + void prg_map(address_map &map) ATTR_COLD; + void dec0_s_map(address_map &map) ATTR_COLD; }; @@ -87,8 +87,8 @@ class triothep_state : public actfancr_state void triothep(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: // misc @@ -100,7 +100,7 @@ class triothep_state : public actfancr_state void control_select_w(uint8_t data); uint8_t control_r(); - void prg_map(address_map &map); + void prg_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/dataeast/astrof.h b/src/mame/dataeast/astrof.h index 85d5021f092..f7b3e349f90 100644 --- a/src/mame/dataeast/astrof.h +++ b/src/mame/dataeast/astrof.h @@ -47,7 +47,7 @@ class astrof_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(service_coin_inserted); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: /* video-related */ @@ -107,7 +107,7 @@ class astrof_state : public driver_device void tomahawk_set_video_control_2( uint8_t data ); void video_update_common( bitmap_rgb32 &bitmap, const rectangle &cliprect, pen_t *pens, int num_pens ); void base(machine_config &config); - void astrof_map(address_map &map); - void spfghmk2_map(address_map &map); - void tomahawk_map(address_map &map); + void astrof_map(address_map &map) ATTR_COLD; + void spfghmk2_map(address_map &map) ATTR_COLD; + void tomahawk_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/dataeast/backfire.cpp b/src/mame/dataeast/backfire.cpp index e4b1b3bb592..3a1d3ffa4c8 100644 --- a/src/mame/dataeast/backfire.cpp +++ b/src/mame/dataeast/backfire.cpp @@ -71,7 +71,7 @@ class backfire_state : public driver_device DECO16IC_BANK_CB_MEMBER(bank_callback); DECOSPR_PRIORITY_CB_MEMBER(pri_callback); - void backfire_map(address_map &map); + void backfire_map(address_map &map) ATTR_COLD; /* memory pointers */ memory_share_array_creator m_spriteram; diff --git a/src/mame/dataeast/battlera.cpp b/src/mame/dataeast/battlera.cpp index 9bc076af9cb..8e2d25b0a84 100644 --- a/src/mame/dataeast/battlera.cpp +++ b/src/mame/dataeast/battlera.cpp @@ -125,8 +125,8 @@ class battlera_state : public driver_device void battlera(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; @@ -150,9 +150,9 @@ class battlera_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void main_prg_map(address_map &map); - void main_portmap(address_map &map); - void sound_map(address_map &map); + void main_prg_map(address_map &map) ATTR_COLD; + void main_portmap(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/dataeast/boogwing.h b/src/mame/dataeast/boogwing.h index 601e290354a..02129bd214c 100644 --- a/src/mame/dataeast/boogwing.h +++ b/src/mame/dataeast/boogwing.h @@ -57,8 +57,8 @@ class boogwing_state : public driver_device void sound_bankswitch_w(uint8_t data); void priority_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; uint32_t screen_update_boogwing(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); void mix_boogwing(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); uint16_t ioprot_r(offs_t offset); @@ -66,7 +66,7 @@ class boogwing_state : public driver_device DECO16IC_BANK_CB_MEMBER(bank_callback); DECO16IC_BANK_CB_MEMBER(bank_callback2); - void audio_map(address_map &map); - void boogwing_map(address_map &map); - void decrypted_opcodes_map(address_map &map); + void audio_map(address_map &map) ATTR_COLD; + void boogwing_map(address_map &map) ATTR_COLD; + void decrypted_opcodes_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/dataeast/brkthru.cpp b/src/mame/dataeast/brkthru.cpp index 8f8c28c862d..49169f821b0 100644 --- a/src/mame/dataeast/brkthru.cpp +++ b/src/mame/dataeast/brkthru.cpp @@ -177,9 +177,9 @@ class brkthru_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(coin_inserted); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: // memory pointers @@ -215,9 +215,9 @@ class brkthru_state : public driver_device void vblank_irq(int state); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect, int prio); - void brkthru_main_map(address_map &map); - void darwin_main_map(address_map &map); - void sound_map(address_map &map); + void brkthru_main_map(address_map &map) ATTR_COLD; + void darwin_main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/dataeast/btime.h b/src/mame/dataeast/btime.h index 56815763047..bc6950cfc6d 100644 --- a/src/mame/dataeast/btime.h +++ b/src/mame/dataeast/btime.h @@ -147,17 +147,17 @@ class btime_state : public driver_device void tisland(machine_config &config); void zoar(machine_config &config); void btime(machine_config &config); - void audio_map(address_map &map); - void bnj_map(address_map &map); - void btime_map(address_map &map); - void cookrace_map(address_map &map); - void disco_audio_map(address_map &map); - void disco_map(address_map &map); - void lnc_map(address_map &map); - void mmonkey_map(address_map &map); - void protenn_map(address_map &map); - void tisland_map(address_map &map); - void zoar_map(address_map &map); + void audio_map(address_map &map) ATTR_COLD; + void bnj_map(address_map &map) ATTR_COLD; + void btime_map(address_map &map) ATTR_COLD; + void cookrace_map(address_map &map) ATTR_COLD; + void disco_audio_map(address_map &map) ATTR_COLD; + void disco_map(address_map &map) ATTR_COLD; + void lnc_map(address_map &map) ATTR_COLD; + void mmonkey_map(address_map &map) ATTR_COLD; + void protenn_map(address_map &map) ATTR_COLD; + void tisland_map(address_map &map) ATTR_COLD; + void zoar_map(address_map &map) ATTR_COLD; }; #endif // MAME_DATAEAST_BTIME_H diff --git a/src/mame/dataeast/bwing.cpp b/src/mame/dataeast/bwing.cpp index d4276c33e9c..1dd68e2c931 100644 --- a/src/mame/dataeast/bwing.cpp +++ b/src/mame/dataeast/bwing.cpp @@ -66,9 +66,9 @@ class bwing_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(tilt_pressed); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; virtual void device_post_load() override; private: @@ -120,11 +120,11 @@ class bwing_state : public driver_device void draw_sprites(bitmap_ind16 &bmp, const rectangle &clip, uint8_t *ram, int pri); INTERRUPT_GEN_MEMBER(p3_interrupt); - void bank_map(address_map &map); - void p1_map(address_map &map); - void p2_map(address_map &map); - void p3_io_map(address_map &map); - void p3_map(address_map &map); + void bank_map(address_map &map) ATTR_COLD; + void p1_map(address_map &map) ATTR_COLD; + void p2_map(address_map &map) ATTR_COLD; + void p3_io_map(address_map &map) ATTR_COLD; + void p3_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/dataeast/cbuster.cpp b/src/mame/dataeast/cbuster.cpp index 990e3f931b8..c491be33dc0 100644 --- a/src/mame/dataeast/cbuster.cpp +++ b/src/mame/dataeast/cbuster.cpp @@ -89,9 +89,9 @@ class cbuster_state : public driver_device void twocrude(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: // devices @@ -115,8 +115,8 @@ class cbuster_state : public driver_device u32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); DECO16IC_BANK_CB_MEMBER(bank_callback); static rgb_t xbgr_888(u32 raw); - void main_map(address_map &map); - void sound_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/dataeast/chanbara.cpp b/src/mame/dataeast/chanbara.cpp index e15bfa418f5..02a06a28922 100644 --- a/src/mame/dataeast/chanbara.cpp +++ b/src/mame/dataeast/chanbara.cpp @@ -90,9 +90,9 @@ class chanbara_state : public driver_device void chanbara(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: template void videoram_w(offs_t offset, uint8_t data); @@ -104,7 +104,7 @@ class chanbara_state : public driver_device void palette(palette_device &palette) const; uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void draw_sprites(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void prg_map(address_map &map); + void prg_map(address_map &map) ATTR_COLD; // memory pointers required_shared_ptr_array m_videoram; diff --git a/src/mame/dataeast/cninja.h b/src/mame/dataeast/cninja.h index 6c94e752829..ce61fac2d42 100644 --- a/src/mame/dataeast/cninja.h +++ b/src/mame/dataeast/cninja.h @@ -105,16 +105,16 @@ class cninja_state : public driver_device uint16_t cninjabl2_sprite_dma_r(); void robocop2_priority_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); uint16_t mutantf_71_r(); - void cninja_map(address_map &map); - void cninjabl2_map(address_map &map); - void cninjabl2_oki_map(address_map &map); - void cninjabl2_s_map(address_map &map); - void cninjabl_map(address_map &map); - void cninjabl_sound_map(address_map &map); - void edrandy_map(address_map &map); - void mutantf_map(address_map &map); - void robocop2_map(address_map &map); - void sound_map(address_map &map); - void sound_map_mutantf(address_map &map); - void stoneage_s_map(address_map &map); + void cninja_map(address_map &map) ATTR_COLD; + void cninjabl2_map(address_map &map) ATTR_COLD; + void cninjabl2_oki_map(address_map &map) ATTR_COLD; + void cninjabl2_s_map(address_map &map) ATTR_COLD; + void cninjabl_map(address_map &map) ATTR_COLD; + void cninjabl_sound_map(address_map &map) ATTR_COLD; + void edrandy_map(address_map &map) ATTR_COLD; + void mutantf_map(address_map &map) ATTR_COLD; + void robocop2_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; + void sound_map_mutantf(address_map &map) ATTR_COLD; + void stoneage_s_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/dataeast/cntsteer.cpp b/src/mame/dataeast/cntsteer.cpp index 084e13de7cb..9065565cc7f 100644 --- a/src/mame/dataeast/cntsteer.cpp +++ b/src/mame/dataeast/cntsteer.cpp @@ -140,11 +140,11 @@ class cntsteer_state : public driver_device void zerotrgt_rearrange_gfx( int romsize, int romarea ); void cntsteer(machine_config &config); void zerotrgt(machine_config &config); - void cntsteer_cpu1_map(address_map &map); - void cntsteer_cpu2_map(address_map &map); - void gekitsui_cpu1_map(address_map &map); - void gekitsui_cpu2_map(address_map &map); - void sound_map(address_map &map); + void cntsteer_cpu1_map(address_map &map) ATTR_COLD; + void cntsteer_cpu2_map(address_map &map) ATTR_COLD; + void gekitsui_cpu1_map(address_map &map) ATTR_COLD; + void gekitsui_cpu2_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/dataeast/darkseal.cpp b/src/mame/dataeast/darkseal.cpp index e75f2600638..9f1f2067aeb 100644 --- a/src/mame/dataeast/darkseal.cpp +++ b/src/mame/dataeast/darkseal.cpp @@ -66,8 +66,8 @@ class darkseal_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void update_palette(int offset); - void main_map(address_map &map); - void sound_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_audiocpu; diff --git a/src/mame/dataeast/dblewing.cpp b/src/mame/dataeast/dblewing.cpp index 9be887f0d23..00e0c98101a 100644 --- a/src/mame/dataeast/dblewing.cpp +++ b/src/mame/dataeast/dblewing.cpp @@ -129,10 +129,10 @@ class dblewing_state : public driver_device uint16_t ioprot_r(offs_t offset); void ioprot_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); - void dblewing_map(address_map &map); - void decrypted_opcodes_map(address_map &map); - void sound_io(address_map &map); - void sound_map(address_map &map); + void dblewing_map(address_map &map) ATTR_COLD; + void decrypted_opcodes_map(address_map &map) ATTR_COLD; + void sound_io(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; bool m_soundlatch_pending; }; diff --git a/src/mame/dataeast/dec0.h b/src/mame/dataeast/dec0.h index 8a79e79f720..2bd8de67110 100644 --- a/src/mame/dataeast/dec0.h +++ b/src/mame/dataeast/dec0.h @@ -54,7 +54,7 @@ class dec0_state : public driver_device void init_ffantasybl(); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; required_device m_maincpu; required_device m_audiocpu; @@ -87,7 +87,7 @@ class dec0_state : public driver_device void set_screen_raw_params_data_east(machine_config &config); void h6280_decrypt(const char *cputag); - void dec0_map(address_map &map); + void dec0_map(address_map &map) ATTR_COLD; private: enum class mcu_type { @@ -125,12 +125,12 @@ class dec0_state : public driver_device void baddudes_i8751_write(int data); void dec0_i8751_write(int data); void dec0_i8751_reset(); - void ffantasybl_map(address_map &map); - void dec0_tb_map(address_map &map); - void dec0_s_map(address_map &map); - void midres_map(address_map &map); - void midres_s_map(address_map &map); - void midresb_map(address_map &map); + void ffantasybl_map(address_map &map) ATTR_COLD; + void dec0_tb_map(address_map &map) ATTR_COLD; + void dec0_s_map(address_map &map) ATTR_COLD; + void midres_map(address_map &map) ATTR_COLD; + void midres_s_map(address_map &map) ATTR_COLD; + void midresb_map(address_map &map) ATTR_COLD; }; @@ -149,8 +149,8 @@ class robocop_state : public dec0_state required_device m_subcpu; private: - void main_map(address_map &map); - void sub_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sub_map(address_map &map) ATTR_COLD; }; @@ -178,8 +178,8 @@ class hippodrm_state : public robocop_state uint16_t sharedram_r(offs_t offset); void sharedram_w(offs_t offset, uint16_t data); - void main_map(address_map &map); - void sub_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sub_map(address_map &map) ATTR_COLD; }; @@ -198,7 +198,7 @@ class slyspy_state : public dec0_state void init_slyspy(); protected: - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; private: memory_view m_pfview; @@ -215,8 +215,8 @@ class slyspy_state : public dec0_state uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void main_map(address_map &map); - void sound_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; }; @@ -254,14 +254,14 @@ class dec0_automat_state : public dec0_state void msm1_vclk_cb(int state); void msm2_vclk_cb(int state); - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; uint32_t screen_update_automat(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); uint32_t screen_update_secretab(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void automat_map(address_map &map); - void automat_s_map(address_map &map); - void secretab_map(address_map &map); - void secretab_s_map(address_map &map); + void automat_map(address_map &map) ATTR_COLD; + void automat_s_map(address_map &map) ATTR_COLD; + void secretab_map(address_map &map) ATTR_COLD; + void secretab_s_map(address_map &map) ATTR_COLD; }; #endif // MAME_DATAEAST_DEC0_H diff --git a/src/mame/dataeast/dec8.h b/src/mame/dataeast/dec8.h index f086482b481..3f2cf1e5872 100644 --- a/src/mame/dataeast/dec8.h +++ b/src/mame/dataeast/dec8.h @@ -39,8 +39,8 @@ class dec8_state_base : public driver_device m_bg_ram(*this, "bg_ram") { } - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; TIMER_CALLBACK_MEMBER(audiocpu_nmi_clear); @@ -60,8 +60,8 @@ class dec8_state_base : public driver_device void set_screen_raw_params_data_east(machine_config &config); void allocate_buffered_spriteram16(); - void dec8_s_map(address_map &map); - void oscar_s_map(address_map &map); + void dec8_s_map(address_map &map) ATTR_COLD; + void oscar_s_map(address_map &map) ATTR_COLD; /* devices */ required_device m_maincpu; @@ -106,8 +106,8 @@ class dec8_mcu_state_base : public dec8_state_base { } - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; TIMER_CALLBACK_MEMBER(mcu_irq_clear); @@ -149,7 +149,7 @@ class srdarwin_state : public dec8_mcu_state_base void srdarwin(machine_config &config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: void mcu_to_main_w(u8 data); @@ -162,7 +162,7 @@ class srdarwin_state : public dec8_mcu_state_base uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect, bitmap_ind8 &primap); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; }; // with 'karnov' sprite hardware @@ -185,8 +185,8 @@ class lastmisn_state : public dec8_mcu_state_base void init_meikyuhbl(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; void ghostb_bank_w(u8 data); void gondo_scroll_w(offs_t offset, u8 data); @@ -226,13 +226,13 @@ class lastmisn_state : public dec8_mcu_state_base void shackled_coin_irq(int state); - void lastmisn_map(address_map &map); - void lastmisn_sub_map(address_map &map); - void garyoret_map(address_map &map); - void meikyuh_map(address_map &map); - void shackled_map(address_map &map); - void shackled_sub_map(address_map &map); - void ym3526_s_map(address_map &map); + void lastmisn_map(address_map &map) ATTR_COLD; + void lastmisn_sub_map(address_map &map) ATTR_COLD; + void garyoret_map(address_map &map) ATTR_COLD; + void meikyuh_map(address_map &map) ATTR_COLD; + void shackled_map(address_map &map) ATTR_COLD; + void shackled_sub_map(address_map &map) ATTR_COLD; + void ym3526_s_map(address_map &map) ATTR_COLD; bool m_secclr = false; bool m_nmi_enable = false; @@ -252,7 +252,7 @@ class gondo_state : public lastmisn_state void gondo(machine_config &config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: template u8 player_io_r(offs_t offset); @@ -261,7 +261,7 @@ class gondo_state : public lastmisn_state void gondo_colpri_cb(u32 &colour, u32 &pri_mask); - void gondo_map(address_map &map); + void gondo_map(address_map &map) ATTR_COLD; required_ioport_array<2> m_analog_io; required_ioport_array<4> m_in_io; @@ -298,10 +298,10 @@ class oscar_state : public dec8_state_base void cobracom_colpri_cb(u32 &colour, u32 &pri_mask); void oscar_tile_cb(tile_data &tileinfo, u32 &tile, u32 &colour, u32 &flags); - void cobra_map(address_map &map); - void oscar_map(address_map &map); - void oscarbl_s_opcodes_map(address_map &map); - void oscar_sub_map(address_map &map); + void cobra_map(address_map &map) ATTR_COLD; + void oscar_map(address_map &map) ATTR_COLD; + void oscarbl_s_opcodes_map(address_map &map) ATTR_COLD; + void oscar_sub_map(address_map &map) ATTR_COLD; required_device m_spritegen_mxc; }; @@ -320,8 +320,8 @@ class csilver_state : public lastmisn_state void csilver(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: void scroll_w(offs_t offset, u8 data); @@ -332,9 +332,9 @@ class csilver_state : public lastmisn_state u8 adpcm_reset_r(); void adpcm_int(int state); - void main_map(address_map &map); - void sound_map(address_map &map); - void sub_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; + void sub_map(address_map &map) ATTR_COLD; required_device m_msm; required_memory_bank m_soundbank; diff --git a/src/mame/dataeast/decbac06.h b/src/mame/dataeast/decbac06.h index 91ff7bb8ff0..a56c726f513 100644 --- a/src/mame/dataeast/decbac06.h +++ b/src/mame/dataeast/decbac06.h @@ -113,8 +113,8 @@ class deco_bac06_device : public device_t bool m_flip_screen = false; protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; u8 m_gfxregion8x8; u8 m_gfxregion16x16; diff --git a/src/mame/dataeast/deckarn.h b/src/mame/dataeast/deckarn.h index f35974f76e6..8f8d70fc07e 100644 --- a/src/mame/dataeast/deckarn.h +++ b/src/mame/dataeast/deckarn.h @@ -26,8 +26,8 @@ class deco_karnovsprites_device : public device_t, public device_gfx_interface void set_flip_screen(bool flip) { m_flip_screen = flip; } protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: colpri_cb_delegate m_colpri_cb; diff --git a/src/mame/dataeast/decmxc06.h b/src/mame/dataeast/decmxc06.h index 6c7a34206f3..e83e0d51932 100644 --- a/src/mame/dataeast/decmxc06.h +++ b/src/mame/dataeast/decmxc06.h @@ -28,8 +28,8 @@ class deco_mxc06_device : public device_t, public device_video_interface, public void set_flip_screen(bool flip) { m_flip_screen = flip; } protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: struct sprite_t diff --git a/src/mame/dataeast/deco104.h b/src/mame/dataeast/deco104.h index c89191e4ecc..0a6f384a141 100644 --- a/src/mame/dataeast/deco104.h +++ b/src/mame/dataeast/deco104.h @@ -16,8 +16,8 @@ class deco104_device : public deco_146_base_device deco104_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; }; DECLARE_DEVICE_TYPE(DECO104PROT, deco104_device) diff --git a/src/mame/dataeast/deco146.h b/src/mame/dataeast/deco146.h index b696d100c75..745fa09dadd 100644 --- a/src/mame/dataeast/deco146.h +++ b/src/mame/dataeast/deco146.h @@ -96,8 +96,8 @@ class deco_146_base_device : public device_t protected: deco_146_base_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 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; u16 read_protport(u16 address); virtual void write_protport(u16 address, u16 data, u16 mem_mask); diff --git a/src/mame/dataeast/deco156.cpp b/src/mame/dataeast/deco156.cpp index 71eeb26cb28..19bebc89a84 100644 --- a/src/mame/dataeast/deco156.cpp +++ b/src/mame/dataeast/deco156.cpp @@ -68,8 +68,8 @@ class deco156_state : public driver_device DECO16IC_BANK_CB_MEMBER(bank_callback); DECOSPR_PRIORITY_CB_MEMBER(pri_callback); - void hvysmsh_map(address_map &map); - void wcvol95_map(address_map &map); + void hvysmsh_map(address_map &map) ATTR_COLD; + void wcvol95_map(address_map &map) ATTR_COLD; /* devices */ required_device m_maincpu; diff --git a/src/mame/dataeast/deco16ic.h b/src/mame/dataeast/deco16ic.h index 0702bfb6117..15c4be0a6e1 100644 --- a/src/mame/dataeast/deco16ic.h +++ b/src/mame/dataeast/deco16ic.h @@ -123,8 +123,8 @@ class deco16ic_device : public device_t, public device_video_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; private: // internal state diff --git a/src/mame/dataeast/deco222.h b/src/mame/dataeast/deco222.h index 0edf7a5891b..4a5655290f6 100644 --- a/src/mame/dataeast/deco222.h +++ b/src/mame/dataeast/deco222.h @@ -29,8 +29,8 @@ class deco_222_device : public m6502_device { virtual u8 decrypt8(u8 value, offs_t pc, bool opcode) const override; }; - 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 std::unique_ptr create_disassembler() override; }; @@ -58,8 +58,8 @@ class deco_c10707_device : public m6502_device { virtual u8 decrypt8(u8 value, offs_t pc, bool opcode) const override; }; - 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 std::unique_ptr create_disassembler() override; }; diff --git a/src/mame/dataeast/deco32.h b/src/mame/dataeast/deco32.h index 3fc9decf9e6..d8df30de53d 100644 --- a/src/mame/dataeast/deco32.h +++ b/src/mame/dataeast/deco32.h @@ -52,10 +52,10 @@ class deco32_state : public driver_device void sound_bankswitch_w(u8 data); protected: - void h6280_sound_custom_latch_map(address_map &map); - void h6280_sound_map(address_map &map); - void z80_sound_io(address_map &map); - void z80_sound_map(address_map &map); + void h6280_sound_custom_latch_map(address_map &map) ATTR_COLD; + void h6280_sound_map(address_map &map) ATTR_COLD; + void z80_sound_io(address_map &map) ATTR_COLD; + void z80_sound_map(address_map &map) ATTR_COLD; // common u16 ioprot_r(offs_t offset); @@ -95,7 +95,7 @@ class deco32_state : public driver_device void allocate_buffered_palette(); void allocate_rowscroll(int size1, int size2, int size3, int size4); - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; std::unique_ptr m_dirty_palette{}; // all but captaven int m_pri = 0; // all but dragngun @@ -122,7 +122,7 @@ class captaven_state : public deco32_state void init_captaven(); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: required_ioport_array<3> m_io_dsw; @@ -135,7 +135,7 @@ class captaven_state : public deco32_state DECO16IC_BANK_CB_MEMBER(bank_callback); DECOSPR_PRIORITY_CB_MEMBER(captaven_pri_callback); - void captaven_map(address_map &map); + void captaven_map(address_map &map) ATTR_COLD; }; class fghthist_state : public deco32_state @@ -153,7 +153,7 @@ class fghthist_state : public deco32_state void init_fghthist(); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: required_ioport_array<2> m_io_in; @@ -165,8 +165,8 @@ class fghthist_state : public deco32_state DECO16IC_BANK_CB_MEMBER(bank_callback); DECOSPR_PRIORITY_CB_MEMBER(fghthist_pri_callback); - void fghthist_map(address_map &map); - void fghthsta_memmap(address_map &map); + void fghthist_map(address_map &map) ATTR_COLD; + void fghthsta_memmap(address_map &map) ATTR_COLD; private: }; @@ -185,7 +185,7 @@ class nslasher_state : public deco32_state void init_nslasher(); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; required_device m_deco_ace; @@ -199,7 +199,7 @@ class nslasher_state : public deco32_state DECO16IC_BANK_CB_MEMBER(bank_callback); u16 mix_callback(u16 p, u16 p2); - void nslasher_map(address_map &map); + void nslasher_map(address_map &map) ATTR_COLD; void mix_nslasher(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect, gfx_element *gfx0, gfx_element *gfx1, int mixAlphaTilemap); @@ -229,7 +229,7 @@ class tattass_state : public nslasher_state u16 port_b_tattass(); - void tattass_map(address_map &map); + void tattass_map(address_map &map) ATTR_COLD; void mix_tattass(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect, gfx_element *gfx0, gfx_element *gfx1, int mixAlphaTilemap); @@ -272,7 +272,7 @@ class dragngun_state : public deco32_state DECLARE_INPUT_CHANGED_MEMBER(lockload_gun_trigger); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: required_device m_sprgenzoom; @@ -330,12 +330,12 @@ class dragngun_state : public deco32_state void namco_sprites(machine_config &config); - void namcosprite_map(address_map &map); - void dragngun_map(address_map &map); - void lockload_map(address_map &map); - void lockloadu_map(address_map &map); - void lockload_sound_map(address_map &map); - void lockloadu_sound_map(address_map &map); + void namcosprite_map(address_map &map) ATTR_COLD; + void dragngun_map(address_map &map) ATTR_COLD; + void lockload_map(address_map &map) ATTR_COLD; + void lockloadu_map(address_map &map) ATTR_COLD; + void lockload_sound_map(address_map &map) ATTR_COLD; + void lockloadu_sound_map(address_map &map) ATTR_COLD; bool m_gun_speaker_disabled; }; diff --git a/src/mame/dataeast/deco_ace.h b/src/mame/dataeast/deco_ace.h index 519ba4e8c77..4eec0fff2a0 100644 --- a/src/mame/dataeast/deco_ace.h +++ b/src/mame/dataeast/deco_ace.h @@ -38,8 +38,8 @@ class deco_ace_device : public device_t, public device_video_interface, public d 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 device_post_load() override; // device_palette_interface overrides diff --git a/src/mame/dataeast/deco_irq.h b/src/mame/dataeast/deco_irq.h index a7acf2dbafb..9d67dd5b90a 100644 --- a/src/mame/dataeast/deco_irq.h +++ b/src/mame/dataeast/deco_irq.h @@ -37,7 +37,7 @@ class deco_irq_device : public device_t TIMER_CALLBACK_MEMBER(scanline_callback); - void map(address_map &map); + void map(address_map &map) ATTR_COLD; void control_w(u8 data); u8 scanline_r(); @@ -54,8 +54,8 @@ class deco_irq_device : public device_t 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; private: required_device m_screen; diff --git a/src/mame/dataeast/deco_ld.cpp b/src/mame/dataeast/deco_ld.cpp index 9233473e266..4695595ac85 100644 --- a/src/mame/dataeast/deco_ld.cpp +++ b/src/mame/dataeast/deco_ld.cpp @@ -143,8 +143,8 @@ class deco_ld_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(coin_inserted); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -162,8 +162,8 @@ class deco_ld_state : public driver_device int m_nmimask = 0; tilemap_t *m_tilemap[2]; - void main_map(address_map &map); - void sound_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; uint8_t acia_status_hack_r(); uint8_t sound_status_r(); diff --git a/src/mame/dataeast/deco_mlc.h b/src/mame/dataeast/deco_mlc.h index 6fc191722f2..ced822412c7 100644 --- a/src/mame/dataeast/deco_mlc.h +++ b/src/mame/dataeast/deco_mlc.h @@ -41,8 +41,8 @@ class deco_mlc_state : public driver_device void stadhr96(machine_config &config); protected: - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -99,7 +99,7 @@ class deco_mlc_state : public driver_device int scalex, int srcline, int shadowMode); void descramble_sound(); - void avengrgs_map(address_map &map); - void decomlc_146_map(address_map &map); - void decomlc_no146_map(address_map &map); + void avengrgs_map(address_map &map) ATTR_COLD; + void decomlc_146_map(address_map &map) ATTR_COLD; + void decomlc_no146_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/dataeast/decocass.h b/src/mame/dataeast/decocass.h index 6240d3a37cf..0d357a3c57b 100644 --- a/src/mame/dataeast/decocass.h +++ b/src/mame/dataeast/decocass.h @@ -74,8 +74,8 @@ class decocass_state : public driver_device optional_region_ptr m_donglerom; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; int32_t m_firsttime = 0U; uint8_t m_latch1 = 0U; @@ -151,7 +151,7 @@ class decocass_state : public driver_device TILE_GET_INFO_MEMBER(get_bg_l_tile_info); TILE_GET_INFO_MEMBER(get_bg_r_tile_info); TILE_GET_INFO_MEMBER(get_fg_tile_info); - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; void decocass_palette(palette_device &palette) const; uint32_t screen_update_decocass(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); @@ -216,9 +216,9 @@ class decocass_state : public driver_device uint8_t cdsteljn_input_r(offs_t offset); void cdsteljn_mux_w(uint8_t data); TIMER_DEVICE_CALLBACK_MEMBER(decocass_audio_nmi_gen); - void decocass_map(address_map &map); - void decocrom_map(address_map &map); - void decocass_sound_map(address_map &map); + void decocass_map(address_map &map) ATTR_COLD; + void decocrom_map(address_map &map) ATTR_COLD; + void decocass_sound_map(address_map &map) ATTR_COLD; void draw_edge(bitmap_ind16 &bitmap, const rectangle &cliprect, int which, bool opaque); void draw_special_priority(bitmap_ind16 &bitmap, bitmap_ind8 &priority, const rectangle &cliprect); @@ -283,8 +283,8 @@ class decocass_type1_state : public decocass_state DECLARE_MACHINE_RESET(clocknchj); /* 11 */ DECLARE_MACHINE_RESET(cnebula); - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; uint8_t decocass_type1_r(offs_t offset); @@ -304,8 +304,8 @@ class decocass_type2_state : public decocass_state } private: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; uint8_t decocass_type2_r(offs_t offset); void decocass_type2_w(offs_t offset, uint8_t data); @@ -357,8 +357,8 @@ class decocass_type3_state : public decocass_state DECLARE_MACHINE_RESET(cppicf); DECLARE_MACHINE_RESET(cfghtice); - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; uint8_t decocass_type3_r(offs_t offset); void decocass_type3_w(offs_t offset, uint8_t data); @@ -382,8 +382,8 @@ class decocass_type4_state : public decocass_state private: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; uint8_t decocass_type4_r(offs_t offset); void decocass_type4_w(offs_t offset, uint8_t data); @@ -404,8 +404,8 @@ class decocass_type5_state : public decocass_state private: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; uint8_t decocass_type5_r(offs_t offset); void decocass_type5_w(offs_t offset, uint8_t data); @@ -425,8 +425,8 @@ class decocass_nodong_state : public decocass_state private: - //virtual void machine_start() override; - virtual void machine_reset() override; + //virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; uint8_t decocass_nodong_r(offs_t offset); }; @@ -442,8 +442,8 @@ class decocass_widel_state : public decocass_state private: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; uint8_t decocass_widel_r(offs_t offset); void decocass_widel_w(offs_t offset, uint8_t data); @@ -462,8 +462,8 @@ class decocass_darksoft_state : public decocass_state } protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: uint8_t decocass_darksoft_r(offs_t offset); diff --git a/src/mame/dataeast/decocass_tape.h b/src/mame/dataeast/decocass_tape.h index 1f2b20a2950..03f8396fee6 100644 --- a/src/mame/dataeast/decocass_tape.h +++ b/src/mame/dataeast/decocass_tape.h @@ -17,8 +17,8 @@ class decocass_tape_device : public device_t 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; private: /* regions within the virtual tape */ diff --git a/src/mame/dataeast/decocomn.h b/src/mame/dataeast/decocomn.h index 6976db2648b..f8f4cc9e8d0 100644 --- a/src/mame/dataeast/decocomn.h +++ b/src/mame/dataeast/decocomn.h @@ -35,8 +35,8 @@ class decocomn_device : public device_t, 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; private: // internal state diff --git a/src/mame/dataeast/decocpu6.h b/src/mame/dataeast/decocpu6.h index 14968198ddf..88266ec4a93 100644 --- a/src/mame/dataeast/decocpu6.h +++ b/src/mame/dataeast/decocpu6.h @@ -26,8 +26,8 @@ class deco_cpu6_device : public m6502_device { virtual u8 decrypt8(u8 value, offs_t pc, bool opcode) const override; }; - 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 std::unique_ptr create_disassembler() override; }; diff --git a/src/mame/dataeast/decocpu7.h b/src/mame/dataeast/decocpu7.h index 0a5e9f1c9f0..283679824fa 100644 --- a/src/mame/dataeast/decocpu7.h +++ b/src/mame/dataeast/decocpu7.h @@ -32,8 +32,8 @@ class deco_cpu7_device : public m6502_device { virtual u8 decrypt8(u8 value, offs_t pc, bool opcode) const override; }; - 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 std::unique_ptr create_disassembler() override; }; diff --git a/src/mame/dataeast/decrmc3.h b/src/mame/dataeast/decrmc3.h index a8d994f0302..bf73bb1d227 100644 --- a/src/mame/dataeast/decrmc3.h +++ b/src/mame/dataeast/decrmc3.h @@ -83,7 +83,7 @@ class deco_rmc3_device : public device_t, public device_palette_interface protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_palette_interface overrides virtual u32 palette_entries() const noexcept override { return m_entries; } diff --git a/src/mame/dataeast/deshoros.cpp b/src/mame/dataeast/deshoros.cpp index a0df6cad327..d0fd0ada30c 100644 --- a/src/mame/dataeast/deshoros.cpp +++ b/src/mame/dataeast/deshoros.cpp @@ -67,12 +67,12 @@ class destiny_state : public driver_device void bank_select_w(uint8_t data); void sound_w(offs_t offset, uint8_t data); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; protected: // driver_device overrides - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; public: uint32_t screen_update_destiny(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); }; diff --git a/src/mame/dataeast/dietgo.cpp b/src/mame/dataeast/dietgo.cpp index d16e46b9854..6142ac337f1 100644 --- a/src/mame/dataeast/dietgo.cpp +++ b/src/mame/dataeast/dietgo.cpp @@ -82,9 +82,9 @@ class dietgo_state : public driver_device uint16_t ioprot_r(offs_t offset); void ioprot_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); - void decrypted_opcodes_map(address_map &map); - void main_map(address_map &map); - void sound_map(address_map &map); + void decrypted_opcodes_map(address_map &map) ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/dataeast/dreambal.cpp b/src/mame/dataeast/dreambal.cpp index 8ee4cf870e8..0bcadb2cd46 100644 --- a/src/mame/dataeast/dreambal.cpp +++ b/src/mame/dataeast/dreambal.cpp @@ -57,8 +57,8 @@ class dreambal_state : public driver_device required_device m_deco_tilegen; required_device m_eeprom; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; uint32_t screen_update_dreambal(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); DECO16IC_BANK_CB_MEMBER(bank_callback); @@ -80,7 +80,7 @@ class dreambal_state : public driver_device m_eeprom->cs_write(data&0x4 ? ASSERT_LINE : CLEAR_LINE); } } - void dreambal_map(address_map &map); + void dreambal_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/dataeast/ffantasy_ms.cpp b/src/mame/dataeast/ffantasy_ms.cpp index 6c8dd5cbd4e..a300831bea8 100644 --- a/src/mame/dataeast/ffantasy_ms.cpp +++ b/src/mame/dataeast/ffantasy_ms.cpp @@ -93,7 +93,7 @@ class ffantasy_ms_state : public driver_device void secretagm(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_maincpu; @@ -101,7 +101,7 @@ class ffantasy_ms_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void ffantasym_map(address_map &map); + void ffantasym_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/dataeast/firetrap.cpp b/src/mame/dataeast/firetrap.cpp index 32218499196..8311af6219e 100644 --- a/src/mame/dataeast/firetrap.cpp +++ b/src/mame/dataeast/firetrap.cpp @@ -211,15 +211,15 @@ class base_state : public driver_device void base(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; required_device m_maincpu; uint8_t m_nmi_enable = 0; - void base_main_map(address_map &map); + void base_main_map(address_map &map) ATTR_COLD; private: // devices @@ -267,7 +267,7 @@ class base_state : public driver_device void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); void adpcm_int(int state); - void sound_map(address_map &map); + void sound_map(address_map &map) ATTR_COLD; }; class original_state : public base_state @@ -282,7 +282,7 @@ class original_state : public base_state void firetrap(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: // devices @@ -300,7 +300,7 @@ class original_state : public base_state void mcu_p3_w(uint8_t data); TIMER_DEVICE_CALLBACK_MEMBER(interrupt); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; }; class bootleg_state : public base_state @@ -314,8 +314,8 @@ class bootleg_state : public base_state void firetrapbl(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: // misc @@ -326,7 +326,7 @@ class bootleg_state : public base_state uint8_t coin_r(); TIMER_DEVICE_CALLBACK_MEMBER(interrupt); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/dataeast/funkyjet.cpp b/src/mame/dataeast/funkyjet.cpp index ff390ea1c3f..d8069af913f 100644 --- a/src/mame/dataeast/funkyjet.cpp +++ b/src/mame/dataeast/funkyjet.cpp @@ -146,8 +146,8 @@ class funkyjet_state : public driver_device uint16_t ioprot_r(offs_t offset); void ioprot_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); - void maincpu_map(address_map &map); - void sound_map(address_map &map); + void maincpu_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; }; /******************************************************************************/ diff --git a/src/mame/dataeast/karnov.cpp b/src/mame/dataeast/karnov.cpp index f5ddb0b8c33..e683c98037c 100644 --- a/src/mame/dataeast/karnov.cpp +++ b/src/mame/dataeast/karnov.cpp @@ -128,8 +128,8 @@ class karnov_state : public driver_device void karnovjbl(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; @@ -160,13 +160,13 @@ class karnov_state : public driver_device DECLARE_VIDEO_START(wndrplnt); uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void base_sound_map(address_map &map); - void chelnovjbl_mcu_map(address_map &map); - void chelnovjbl_mcu_io_map(address_map &map); - void karnov_map(address_map &map); - void karnovjbl_map(address_map &map); - void karnov_sound_map(address_map &map); - void karnovjbl_sound_map(address_map &map); + void base_sound_map(address_map &map) ATTR_COLD; + void chelnovjbl_mcu_map(address_map &map) ATTR_COLD; + void chelnovjbl_mcu_io_map(address_map &map) ATTR_COLD; + void karnov_map(address_map &map) ATTR_COLD; + void karnovjbl_map(address_map &map) ATTR_COLD; + void karnov_sound_map(address_map &map) ATTR_COLD; + void karnovjbl_sound_map(address_map &map) ATTR_COLD; void screen_vblank(int state); // protection mcu diff --git a/src/mame/dataeast/kchamp.h b/src/mame/dataeast/kchamp.h index 4d0d17b1d72..77d013e26d3 100644 --- a/src/mame/dataeast/kchamp.h +++ b/src/mame/dataeast/kchamp.h @@ -79,8 +79,8 @@ class kchamp_state : public driver_device void kchamp_colorram_w(offs_t offset, uint8_t data); void sound_control_w(u8 data); TILE_GET_INFO_MEMBER(get_bg_tile_info); - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; void kchamp_palette(palette_device &palette) const; DECLARE_MACHINE_START(kchampvs); DECLARE_MACHINE_START(kchamp); @@ -91,15 +91,15 @@ class kchamp_state : public driver_device void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect, int dx, int dy); void decrypt_code(); void msmint(int state); - void decrypted_opcodes_map(address_map &map); - void kchamp_io_map(address_map &map); - void kchamp_map(address_map &map); - void kchamp_sound_io_map(address_map &map); - void kchamp_sound_map(address_map &map); - void kchampvs_io_map(address_map &map); - void kchampvs_map(address_map &map); - void kchampvs_sound_io_map(address_map &map); - void kchampvs_sound_map(address_map &map); + void decrypted_opcodes_map(address_map &map) ATTR_COLD; + void kchamp_io_map(address_map &map) ATTR_COLD; + void kchamp_map(address_map &map) ATTR_COLD; + void kchamp_sound_io_map(address_map &map) ATTR_COLD; + void kchamp_sound_map(address_map &map) ATTR_COLD; + void kchampvs_io_map(address_map &map) ATTR_COLD; + void kchampvs_map(address_map &map) ATTR_COLD; + void kchampvs_sound_io_map(address_map &map) ATTR_COLD; + void kchampvs_sound_map(address_map &map) ATTR_COLD; }; #endif // MAME_DATAEAST_KCHAMP_H diff --git a/src/mame/dataeast/kingobox.h b/src/mame/dataeast/kingobox.h index be29ae6cb7c..77d44782b96 100644 --- a/src/mame/dataeast/kingobox.h +++ b/src/mame/dataeast/kingobox.h @@ -71,8 +71,8 @@ class kingofb_state : public driver_device TILE_GET_INFO_MEMBER(get_bg_tile_info); TILE_GET_INFO_MEMBER(get_fg_tile_info); TILE_GET_INFO_MEMBER(ringking_get_bg_tile_info); - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; DECLARE_VIDEO_START(kingofb); void kingofb_palette(palette_device &palette); DECLARE_VIDEO_START(ringking); @@ -91,15 +91,15 @@ class kingofb_state : public driver_device required_device m_gfxdecode; required_device m_palette; required_device m_soundlatch; - void kingobox_map(address_map &map); - void kingobox_sound_io_map(address_map &map); - void kingobox_sound_map(address_map &map); - void kingobox_sprite_map(address_map &map); - void kingobox_video_map(address_map &map); - void ringking_map(address_map &map); - void ringking_sound_io_map(address_map &map); - void ringking_sprite_map(address_map &map); - void ringking_video_map(address_map &map); + void kingobox_map(address_map &map) ATTR_COLD; + void kingobox_sound_io_map(address_map &map) ATTR_COLD; + void kingobox_sound_map(address_map &map) ATTR_COLD; + void kingobox_sprite_map(address_map &map) ATTR_COLD; + void kingobox_video_map(address_map &map) ATTR_COLD; + void ringking_map(address_map &map) ATTR_COLD; + void ringking_sound_io_map(address_map &map) ATTR_COLD; + void ringking_sprite_map(address_map &map) ATTR_COLD; + void ringking_video_map(address_map &map) ATTR_COLD; }; #endif // MAME_DATAEAST_KINGOBOX_H diff --git a/src/mame/dataeast/lemmings.cpp b/src/mame/dataeast/lemmings.cpp index 9665f273ffc..7b0c0044286 100644 --- a/src/mame/dataeast/lemmings.cpp +++ b/src/mame/dataeast/lemmings.cpp @@ -62,7 +62,7 @@ class lemmings_state : public driver_device void lemmings(machine_config &config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: // video-related @@ -100,8 +100,8 @@ class lemmings_state : public driver_device uint16_t protection_region_0_146_r(offs_t offset); void protection_region_0_146_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); - void main_map(address_map &map); - void sound_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/dataeast/liberate.h b/src/mame/dataeast/liberate.h index 6c1eb00ae31..f7769bbe6e1 100644 --- a/src/mame/dataeast/liberate.h +++ b/src/mame/dataeast/liberate.h @@ -102,15 +102,15 @@ class liberate_state : public driver_device void prosport_draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); void boomrang_draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect, int pri); void prosoccr_draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); - void deco16_io_map(address_map &map); - void decrypted_opcodes_map(address_map &map); - void liberatb_map(address_map &map); - void liberate_map(address_map &map); - void liberate_sound_map(address_map &map); - void prosoccr_io_map(address_map &map); - void prosoccr_map(address_map &map); - void prosoccr_sound_map(address_map &map); - void prosport_map(address_map &map); + void deco16_io_map(address_map &map) ATTR_COLD; + void decrypted_opcodes_map(address_map &map) ATTR_COLD; + void liberatb_map(address_map &map) ATTR_COLD; + void liberate_map(address_map &map) ATTR_COLD; + void liberate_sound_map(address_map &map) ATTR_COLD; + void prosoccr_io_map(address_map &map) ATTR_COLD; + void prosoccr_map(address_map &map) ATTR_COLD; + void prosoccr_sound_map(address_map &map) ATTR_COLD; + void prosport_map(address_map &map) ATTR_COLD; }; #endif // MAME_DATAEAST_LIBERATE_H diff --git a/src/mame/dataeast/madalien.h b/src/mame/dataeast/madalien.h index 54c4c898548..0e635f826fd 100644 --- a/src/mame/dataeast/madalien.h +++ b/src/mame/dataeast/madalien.h @@ -51,7 +51,7 @@ class madalien_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(coin_inserted); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: required_shared_ptr m_videoram; @@ -97,8 +97,8 @@ class madalien_state : public driver_device required_device m_palette; required_device m_soundlatch; required_device m_soundlatch2; - void audio_map(address_map &map); - void main_map(address_map &map); + void audio_map(address_map &map) ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; }; /*----------- defined in audio/madalien.c -----------*/ diff --git a/src/mame/dataeast/madmotor.cpp b/src/mame/dataeast/madmotor.cpp index 72c6d333143..ef511525e69 100644 --- a/src/mame/dataeast/madmotor.cpp +++ b/src/mame/dataeast/madmotor.cpp @@ -52,8 +52,8 @@ class madmotor_state : public driver_device private: uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void madmotor_map(address_map &map); - void sound_map(address_map &map); + void madmotor_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; /* memory pointers */ required_shared_ptr m_spriteram; diff --git a/src/mame/dataeast/metlclsh.cpp b/src/mame/dataeast/metlclsh.cpp index 47f30a8af61..a416ad9ff8d 100644 --- a/src/mame/dataeast/metlclsh.cpp +++ b/src/mame/dataeast/metlclsh.cpp @@ -79,9 +79,9 @@ class metlclsh_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(coin_inserted); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: // memory pointers @@ -119,8 +119,8 @@ class metlclsh_state : public driver_device TILE_GET_INFO_MEMBER(get_fg_tile_info); uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); - void master_map(address_map &map); - void slave_map(address_map &map); + void master_map(address_map &map) ATTR_COLD; + void slave_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/dataeast/mirage.cpp b/src/mame/dataeast/mirage.cpp index 1858db92d1d..260328e10b5 100644 --- a/src/mame/dataeast/mirage.cpp +++ b/src/mame/dataeast/mirage.cpp @@ -76,8 +76,8 @@ class miragemj_state : public driver_device void init_mirage(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: void key_matrix_w(uint16_t data); @@ -88,7 +88,7 @@ class miragemj_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); DECO16IC_BANK_CB_MEMBER(bank_callback); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; /* devices */ required_device m_maincpu; diff --git a/src/mame/dataeast/pcktgal.cpp b/src/mame/dataeast/pcktgal.cpp index 5a33179fa11..19237c02909 100644 --- a/src/mame/dataeast/pcktgal.cpp +++ b/src/mame/dataeast/pcktgal.cpp @@ -58,7 +58,7 @@ class pcktgal_state : public driver_device void pcktgal2(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_maincpu; @@ -88,8 +88,8 @@ class pcktgal_state : public driver_device uint32_t screen_update_bootleg(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect, bool flip_screen); - void main_map(address_map &map); - void sound_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/dataeast/pktgaldx.cpp b/src/mame/dataeast/pktgaldx.cpp index 655ea7602bf..581e5cf1f02 100644 --- a/src/mame/dataeast/pktgaldx.cpp +++ b/src/mame/dataeast/pktgaldx.cpp @@ -132,8 +132,8 @@ class pktgaldx_state : public base_state uint16_t ioprot_r(offs_t offset); void ioprot_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); - void decrypted_opcodes_map(address_map &map); - void prg_map(address_map &map); + void decrypted_opcodes_map(address_map &map) ATTR_COLD; + void prg_map(address_map &map) ATTR_COLD; }; class pktgaldxb_state : public base_state @@ -157,7 +157,7 @@ class pktgaldxb_state : public base_state uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void prg_map(address_map &map); + void prg_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/dataeast/progolf.cpp b/src/mame/dataeast/progolf.cpp index 8c9d0cabcbe..eabea024ff0 100644 --- a/src/mame/dataeast/progolf.cpp +++ b/src/mame/dataeast/progolf.cpp @@ -179,8 +179,8 @@ class progolf_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(coin_inserted); protected: - virtual void video_start() override; - virtual void machine_reset() override; + virtual void video_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; @@ -208,8 +208,8 @@ class progolf_state : public driver_device void palette_init(palette_device &palette) const; uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void main_map(address_map &map); - void audio_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void audio_map(address_map &map) ATTR_COLD; }; void progolf_state::palette_init(palette_device &palette) const diff --git a/src/mame/dataeast/rohga.h b/src/mame/dataeast/rohga.h index e06771a6a80..af38384a8af 100644 --- a/src/mame/dataeast/rohga.h +++ b/src/mame/dataeast/rohga.h @@ -90,14 +90,14 @@ class rohga_state : public driver_device void rohga_base(machine_config &config); - void rohga_map(address_map &map); - void wizdfire_map(address_map &map); - void nitrobal_map(address_map &map); - void hotb_base_map(address_map &map); - void schmeisr_map(address_map &map); - void hangzo_map(address_map &map); - - void sound_map(address_map &map); + void rohga_map(address_map &map) ATTR_COLD; + void wizdfire_map(address_map &map) ATTR_COLD; + void nitrobal_map(address_map &map) ATTR_COLD; + void hotb_base_map(address_map &map) ATTR_COLD; + void schmeisr_map(address_map &map) ATTR_COLD; + void hangzo_map(address_map &map) ATTR_COLD; + + void sound_map(address_map &map) ATTR_COLD; }; #endif // MAME_DATAEAST_ROHGA_H diff --git a/src/mame/dataeast/scregg.cpp b/src/mame/dataeast/scregg.cpp index 4ab6bfba7ab..41ac3f46631 100644 --- a/src/mame/dataeast/scregg.cpp +++ b/src/mame/dataeast/scregg.cpp @@ -81,9 +81,9 @@ class scregg_state : public btime_state DECLARE_MACHINE_START(scregg); DECLARE_MACHINE_RESET(scregg); TIMER_DEVICE_CALLBACK_MEMBER(scregg_interrupt); - void dommy_map(address_map &map); + void dommy_map(address_map &map) ATTR_COLD; - void eggs_map(address_map &map); + void eggs_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/dataeast/shootout.cpp b/src/mame/dataeast/shootout.cpp index a36bb279f75..1aaf6464dd9 100644 --- a/src/mame/dataeast/shootout.cpp +++ b/src/mame/dataeast/shootout.cpp @@ -78,9 +78,9 @@ class shootoutj_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(coin_inserted); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; required_device m_maincpu; required_device m_gfxdecode; @@ -114,7 +114,7 @@ class shootoutj_state : public driver_device void draw_sprites(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; }; class shootout_state : public shootoutj_state @@ -136,8 +136,8 @@ class shootout_state : public shootoutj_state uint8_t sound_cpu_command_r(); void sound_cpu_command_w(uint8_t data); - void main_map(address_map &map); - void audio_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void audio_map(address_map &map) ATTR_COLD; }; void shootoutj_state::palette(palette_device &palette) const diff --git a/src/mame/dataeast/sidepckt.cpp b/src/mame/dataeast/sidepckt.cpp index 95922d6079e..920b1762175 100644 --- a/src/mame/dataeast/sidepckt.cpp +++ b/src/mame/dataeast/sidepckt.cpp @@ -166,10 +166,10 @@ class sidepckt_state : public driver_device void sidepcktb(machine_config &config); protected: - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; - void bootleg_main_map(address_map &map); + void bootleg_main_map(address_map &map) ATTR_COLD; required_device m_maincpu; @@ -199,7 +199,7 @@ class sidepckt_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void draw_sprites(bitmap_ind16 &bitmap,const rectangle &cliprect); - void sound_map(address_map &map); + void sound_map(address_map &map) ATTR_COLD; }; class sidepckt_mcu_state : public sidepckt_state @@ -213,7 +213,7 @@ class sidepckt_mcu_state : public sidepckt_state void sidepckt(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_mcu; @@ -229,7 +229,7 @@ class sidepckt_mcu_state : public sidepckt_state uint8_t mcu_p2_r(); void mcu_p3_w(uint8_t data); - void original_main_map(address_map &map); + void original_main_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/dataeast/simpl156.h b/src/mame/dataeast/simpl156.h index a3f8dd09b54..8ac4e25dc46 100644 --- a/src/mame/dataeast/simpl156.h +++ b/src/mame/dataeast/simpl156.h @@ -43,7 +43,7 @@ class simpl156_state : public driver_device void init_chainrec(); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: DECO16IC_BANK_CB_MEMBER(bank_callback); @@ -65,12 +65,12 @@ class simpl156_state : public driver_device u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void vblank_interrupt(int state); - void base_map(address_map &map); - void chainrec_map(address_map &map); - void joemacr_map(address_map &map); - void magdrop_map(address_map &map); - void magdropp_map(address_map &map); - void mitchell156_map(address_map &map); + void base_map(address_map &map) ATTR_COLD; + void chainrec_map(address_map &map) ATTR_COLD; + void joemacr_map(address_map &map) ATTR_COLD; + void magdrop_map(address_map &map) ATTR_COLD; + void magdropp_map(address_map &map) ATTR_COLD; + void mitchell156_map(address_map &map) ATTR_COLD; /* devices */ required_device m_maincpu; diff --git a/src/mame/dataeast/sshangha.cpp b/src/mame/dataeast/sshangha.cpp index 627f4768ca1..0b458c9a4b8 100644 --- a/src/mame/dataeast/sshangha.cpp +++ b/src/mame/dataeast/sshangha.cpp @@ -134,7 +134,7 @@ class sshangha_state : public driver_device void init_sshangha(); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -172,9 +172,9 @@ class sshangha_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void sshangha_main_map(address_map &map); - void sound_map(address_map &map); - void sshanghab_main_map(address_map &map); + void sshangha_main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; + void sshanghab_main_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/dataeast/stadhero.cpp b/src/mame/dataeast/stadhero.cpp index 70682a442b5..6471baf795b 100644 --- a/src/mame/dataeast/stadhero.cpp +++ b/src/mame/dataeast/stadhero.cpp @@ -131,7 +131,7 @@ class stadhero_state : public driver_device void stadhero(machine_config &config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -155,8 +155,8 @@ class stadhero_state : public driver_device TILE_GET_INFO_MEMBER(get_pf1_tile_info); uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void audio_map(address_map &map); - void main_map(address_map &map); + void audio_map(address_map &map) ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/dataeast/supbtime.h b/src/mame/dataeast/supbtime.h index ef0b91d675d..b03c75e4e92 100644 --- a/src/mame/dataeast/supbtime.h +++ b/src/mame/dataeast/supbtime.h @@ -47,10 +47,10 @@ class supbtime_state : public driver_device uint32_t screen_update_supbtime(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); uint32_t screen_update_tumblep(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void chinatwn_map(address_map &map); - void sound_map(address_map &map); - void supbtime_map(address_map &map); - void tumblep_map(address_map &map); + void chinatwn_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; + void supbtime_map(address_map &map) ATTR_COLD; + void tumblep_map(address_map &map) ATTR_COLD; required_shared_ptr m_spriteram; required_shared_ptr_array m_pf_rowscroll; diff --git a/src/mame/dataeast/thedeep.cpp b/src/mame/dataeast/thedeep.cpp index e2ef3f19fce..0eee997bef9 100644 --- a/src/mame/dataeast/thedeep.cpp +++ b/src/mame/dataeast/thedeep.cpp @@ -96,8 +96,8 @@ class thedeep_state : public driver_device void thedeep(machine_config &config); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -144,8 +144,8 @@ class thedeep_state : public driver_device TIMER_DEVICE_CALLBACK_MEMBER(interrupt); - void audio_map(address_map &map); - void main_map(address_map &map); + void audio_map(address_map &map) ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; }; /*************************************************************************** diff --git a/src/mame/dataeast/tryout.cpp b/src/mame/dataeast/tryout.cpp index 1cbf2669c35..d554619659a 100644 --- a/src/mame/dataeast/tryout.cpp +++ b/src/mame/dataeast/tryout.cpp @@ -66,8 +66,8 @@ class tryout_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(coin_inserted); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -106,8 +106,8 @@ class tryout_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void draw_sprites(bitmap_ind16 &bitmap,const rectangle &cliprect); - void main_cpu(address_map &map); - void sound_cpu(address_map &map); + void main_cpu(address_map &map) ATTR_COLD; + void sound_cpu(address_map &map) ATTR_COLD; }; diff --git a/src/mame/dataeast/tumbleb.h b/src/mame/dataeast/tumbleb.h index daf6a91315e..a96bb774a70 100644 --- a/src/mame/dataeast/tumbleb.h +++ b/src/mame/dataeast/tumbleb.h @@ -173,18 +173,18 @@ class tumbleb_state : public driver_device void suprtrio_decrypt_code(); void suprtrio_decrypt_gfx(); - void unico_base_map(address_map &map); - void fncywld_main_map(address_map &map); - void magipur_main_map(address_map &map); - void htchctch_main_map(address_map &map); - void jumpkids_main_map(address_map &map); - void jumpkids_sound_map(address_map &map); - void pangpang_main_map(address_map &map); - void semicom_sound_map(address_map &map); - void suprtrio_main_map(address_map &map); - void suprtrio_sound_map(address_map &map); - void tumblepopb_main_map(address_map &map); - void tumblepopba_main_map(address_map &map); + void unico_base_map(address_map &map) ATTR_COLD; + void fncywld_main_map(address_map &map) ATTR_COLD; + void magipur_main_map(address_map &map) ATTR_COLD; + void htchctch_main_map(address_map &map) ATTR_COLD; + void jumpkids_main_map(address_map &map) ATTR_COLD; + void jumpkids_sound_map(address_map &map) ATTR_COLD; + void pangpang_main_map(address_map &map) ATTR_COLD; + void semicom_sound_map(address_map &map) ATTR_COLD; + void suprtrio_main_map(address_map &map) ATTR_COLD; + void suprtrio_sound_map(address_map &map) ATTR_COLD; + void tumblepopb_main_map(address_map &map) ATTR_COLD; + void tumblepopba_main_map(address_map &map) ATTR_COLD; u8 m_suprtrio_prot_latch = 0; }; @@ -208,8 +208,8 @@ class tumbleb_pic_state : public tumbleb_state void pic_data_w(uint8_t data); void pic_ctrl_w(uint8_t data); - void funkyjetb_map(address_map &map); - void funkyjetb_oki_map(address_map &map); + void funkyjetb_map(address_map &map) ATTR_COLD; + void funkyjetb_oki_map(address_map &map) ATTR_COLD; required_memory_bank m_okibank; diff --git a/src/mame/dataeast/vaportra.cpp b/src/mame/dataeast/vaportra.cpp index 8374d495411..bfa82e3c172 100644 --- a/src/mame/dataeast/vaportra.cpp +++ b/src/mame/dataeast/vaportra.cpp @@ -58,8 +58,8 @@ class vaportra_state : public driver_device void driver_init(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: // devices @@ -90,8 +90,8 @@ class vaportra_state : public driver_device DECO16IC_BANK_CB_MEMBER(bank_callback); - void main_map(address_map &map); - void sound_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/ddr/ac1.cpp b/src/mame/ddr/ac1.cpp index aefa3e4ee27..d49b367c6cf 100644 --- a/src/mame/ddr/ac1.cpp +++ b/src/mame/ddr/ac1.cpp @@ -57,14 +57,14 @@ class ac1_state : public driver_device u8 ac1_port_b_r(); u8 ac1_port_a_r(); bool has_lowercase = 0; - void machine_start() override; + void machine_start() override ATTR_COLD; void ac1_port_a_w(u8 data); void ac1_port_b_w(u8 data); - void ac1_32_mem(address_map &map); - void ac1_io(address_map &map); - void ac1scch_io(address_map &map); - void ac1_mem(address_map &map); + void ac1_32_mem(address_map &map) ATTR_COLD; + void ac1_io(address_map &map) ATTR_COLD; + void ac1scch_io(address_map &map) ATTR_COLD; + void ac1_mem(address_map &map) ATTR_COLD; required_device m_cassette; required_device m_maincpu; diff --git a/src/mame/ddr/bcs3.cpp b/src/mame/ddr/bcs3.cpp index f5ad5f5dad5..f541ffd92da 100644 --- a/src/mame/ddr/bcs3.cpp +++ b/src/mame/ddr/bcs3.cpp @@ -123,10 +123,10 @@ class bcs3_state : public driver_device u32 screen_update_bcs3(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); u32 screen_update_bcs3a(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void bcs3_io(address_map &map); - void bcs3_mem(address_map &map); - void bcs3a_mem(address_map &map); - void machine_start() override; + void bcs3_io(address_map &map) ATTR_COLD; + void bcs3_mem(address_map &map) ATTR_COLD; + void bcs3a_mem(address_map &map) ATTR_COLD; + void machine_start() override ATTR_COLD; bool m_cassbit = 0; u8 s_curs = 0U; u8 s_init = 0U; diff --git a/src/mame/ddr/c80.cpp b/src/mame/ddr/c80.cpp index 1a938167c55..c6fe2c708da 100644 --- a/src/mame/ddr/c80.cpp +++ b/src/mame/ddr/c80.cpp @@ -102,7 +102,7 @@ class c80_state : public driver_device required_ioport m_row2; output_finder<8> m_digits; - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; uint8_t pio1_pa_r(); void pio1_pa_w(uint8_t data); @@ -116,8 +116,8 @@ class c80_state : public driver_device u8 m_digit = 0; bool m_pio1_a5 = false; u8 m_pio1_brdy = 0; - void c80_io(address_map &map); - void c80_mem(address_map &map); + void c80_io(address_map &map) ATTR_COLD; + void c80_mem(address_map &map) ATTR_COLD; }; diff --git a/src/mame/ddr/chessmst.cpp b/src/mame/ddr/chessmst.cpp index a4e5a93a34c..283bd99655b 100644 --- a/src/mame/ddr/chessmst.cpp +++ b/src/mame/ddr/chessmst.cpp @@ -64,7 +64,7 @@ class chessmst_state : public driver_device void chessmsta(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_maincpu; @@ -77,8 +77,8 @@ class chessmst_state : public driver_device u16 m_matrix = 0; u8 m_led_data[2] = { 0, 0 }; - void chessmst_io(address_map &map); - void chessmst_mem(address_map &map); + void chessmst_io(address_map &map) ATTR_COLD; + void chessmst_mem(address_map &map) ATTR_COLD; void pio1_port_a_w(u8 data); void pio1_port_b_w(u8 data); diff --git a/src/mame/ddr/chessmstdm.cpp b/src/mame/ddr/chessmstdm.cpp index 92b6e2778f2..9e49b1bf146 100644 --- a/src/mame/ddr/chessmstdm.cpp +++ b/src/mame/ddr/chessmstdm.cpp @@ -65,8 +65,8 @@ class chessmstdm_state : public driver_device void chessmstdm(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; @@ -85,8 +85,8 @@ class chessmstdm_state : public driver_device int m_digit_dot = 0; u16 m_digit_data = 0; - void chessmstdm_mem(address_map &map); - void chessmstdm_io(address_map &map); + void chessmstdm_mem(address_map &map) ATTR_COLD; + void chessmstdm_io(address_map &map) ATTR_COLD; void reset_w(u8 data = 0); u8 reset_r(); diff --git a/src/mame/ddr/huebler.h b/src/mame/ddr/huebler.h index da84104179b..2b36fc6aff3 100644 --- a/src/mame/ddr/huebler.h +++ b/src/mame/ddr/huebler.h @@ -43,7 +43,7 @@ class amu880_state : public driver_device void amu880(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; virtual void machine_reset() override { m_maincpu->set_pc(0xf000); } private: @@ -75,8 +75,8 @@ class amu880_state : public driver_device void ctc_z0_w(int state); void ctc_z2_w(int state); void cassette_w(int state); - void amu880_io(address_map &map); - void amu880_mem(address_map &map); + void amu880_io(address_map &map) ATTR_COLD; + void amu880_mem(address_map &map) ATTR_COLD; // cassette variables u8 m_cnt = 0; diff --git a/src/mame/ddr/jtc.cpp b/src/mame/ddr/jtc.cpp index 151b0dcd06e..87f14ac639f 100644 --- a/src/mame/ddr/jtc.cpp +++ b/src/mame/ddr/jtc.cpp @@ -55,7 +55,7 @@ class jtc_state : public driver_device void jtc(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; void p2_w(u8 data); u8 p3_r(); void p3_w(u8 data); @@ -71,7 +71,7 @@ class jtc_state : public driver_device private: u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void jtc_mem(address_map &map); + void jtc_mem(address_map &map) ATTR_COLD; }; class jtces88_state : public jtc_state @@ -89,7 +89,7 @@ class jtces23_state : public jtc_state void jtces23(machine_config &config); private: u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void jtc_es23_mem(address_map &map); + void jtc_es23_mem(address_map &map) ATTR_COLD; }; @@ -105,7 +105,7 @@ class jtces40_state : public jtc_state { } void jtces40(machine_config &config); private: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); u8 videoram_r(offs_t offset); void videoram_w(offs_t offset, u8 data); @@ -116,7 +116,7 @@ class jtces40_state : public jtc_state memory_share_creator m_color_ram_r; memory_share_creator m_color_ram_g; memory_share_creator m_color_ram_b; - void jtc_es40_mem(address_map &map); + void jtc_es40_mem(address_map &map) ATTR_COLD; void es40_palette(palette_device &palette) const; }; diff --git a/src/mame/ddr/k7659kb.h b/src/mame/ddr/k7659kb.h index 0e71732d22a..83b5c27d99c 100644 --- a/src/mame/ddr/k7659kb.h +++ b/src/mame/ddr/k7659kb.h @@ -37,13 +37,13 @@ class k7659_keyboard_device : public device_t 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; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; TIMER_CALLBACK_MEMBER(scan_keyboard); diff --git a/src/mame/ddr/kc_keyb.h b/src/mame/ddr/kc_keyb.h index 7d7036daacf..229cd60bf22 100644 --- a/src/mame/ddr/kc_keyb.h +++ b/src/mame/ddr/kc_keyb.h @@ -28,15 +28,15 @@ class kc_keyboard_device : public device_t auto out_wr_callback() { return m_write_out.bind(); } // optional information overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; protected: /* number of pulses that can be stored */ static constexpr unsigned TRANSMIT_BUFFER_LENGTH = 256; // 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; TIMER_CALLBACK_MEMBER(transmit_pulse); diff --git a/src/mame/ddr/kramermc.cpp b/src/mame/ddr/kramermc.cpp index 195670c4136..1cb4e4b5e2e 100644 --- a/src/mame/ddr/kramermc.cpp +++ b/src/mame/ddr/kramermc.cpp @@ -84,8 +84,8 @@ class kramermc_state : public driver_device private: u8 m_porta = 0U; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; uint32_t screen_update_kramermc(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); uint8_t port_a_r(); uint8_t port_b_r(); @@ -96,8 +96,8 @@ class kramermc_state : public driver_device required_device m_speaker; required_device m_palette; required_ioport_array<8> m_io_keyboard; - void kramermc_io(address_map &map); - void kramermc_mem(address_map &map); + void kramermc_io(address_map &map) ATTR_COLD; + void kramermc_mem(address_map &map) ATTR_COLD; }; diff --git a/src/mame/ddr/lc80.cpp b/src/mame/ddr/lc80.cpp index 77277252d99..99306157579 100644 --- a/src/mame/ddr/lc80.cpp +++ b/src/mame/ddr/lc80.cpp @@ -92,7 +92,7 @@ class lc80_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(trigger_nmi); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_maincpu; @@ -107,11 +107,11 @@ class lc80_state : public driver_device u8 m_matrix = 0; - void lc80_mem(address_map &map); - void lc80a_mem(address_map &map); - void lc80e_mem(address_map &map); - void lc80_2_mem(address_map &map); - void lc80_io(address_map &map); + void lc80_mem(address_map &map) ATTR_COLD; + void lc80a_mem(address_map &map) ATTR_COLD; + void lc80e_mem(address_map &map) ATTR_COLD; + void lc80_2_mem(address_map &map) ATTR_COLD; + void lc80_io(address_map &map) ATTR_COLD; void halt_w(int state) { m_halt_led = state; } void ctc_z0_w(int state); diff --git a/src/mame/ddr/llc1.cpp b/src/mame/ddr/llc1.cpp index 88327b94f3f..4f177ad551b 100644 --- a/src/mame/ddr/llc1.cpp +++ b/src/mame/ddr/llc1.cpp @@ -67,8 +67,8 @@ class llc1_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(z3_button); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: void kbd_put(u8 data); @@ -79,8 +79,8 @@ class llc1_state : public driver_device void port1b_w(u8 data); u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void io_map(address_map &map); - void mem_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; u8 m_porta = 0U; u8 m_term_data = 0U; diff --git a/src/mame/ddr/llc2.cpp b/src/mame/ddr/llc2.cpp index 0aa4a5406a4..f4249155c00 100644 --- a/src/mame/ddr/llc2.cpp +++ b/src/mame/ddr/llc2.cpp @@ -60,8 +60,8 @@ class llc2_state : public driver_device void init_llc2(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: void rom_disable_w(u8 data); @@ -71,8 +71,8 @@ class llc2_state : public driver_device void port1b_w(u8 data); u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void io_map(address_map &map); - void mem_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; bool m_rv = 0; required_device m_speaker; diff --git a/src/mame/ddr/mc8020.cpp b/src/mame/ddr/mc8020.cpp index d3844320024..89bc7462fe8 100644 --- a/src/mame/ddr/mc8020.cpp +++ b/src/mame/ddr/mc8020.cpp @@ -44,11 +44,11 @@ class mc8020_state : public driver_device void port_b_w(u8 data); uint32_t screen_update_mc8020(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void io_map(address_map &map); - void mem_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; u8 m_row = 0U; - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; required_shared_ptr m_p_videoram; required_device m_maincpu; required_ioport_array<7> m_keyboard; diff --git a/src/mame/ddr/mc8030.cpp b/src/mame/ddr/mc8030.cpp index d61c67d02d9..05709cb070d 100644 --- a/src/mame/ddr/mc8030.cpp +++ b/src/mame/ddr/mc8030.cpp @@ -53,11 +53,11 @@ class mc8030_state : public driver_device uint8_t asp_port_b_r(); void asp_port_a_w(uint8_t data); void asp_port_b_w(uint8_t data); - void machine_start() override; + void machine_start() override ATTR_COLD; uint32_t screen_update_mc8030(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void io_map(address_map &map); - void mem_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; std::unique_ptr m_vram; required_device m_maincpu; diff --git a/src/mame/ddr/nanos.cpp b/src/mame/ddr/nanos.cpp index 2626461464b..1421701b55f 100644 --- a/src/mame/ddr/nanos.cpp +++ b/src/mame/ddr/nanos.cpp @@ -58,8 +58,8 @@ class nanos_state : public driver_device void nanos(machine_config &config); protected: - virtual void machine_reset() override; - virtual void machine_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; private: void tc_w(uint8_t data); @@ -74,8 +74,8 @@ class nanos_state : public driver_device static void floppy_formats(format_registration &fr); uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void io_map(address_map &map); - void mem_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; uint8_t m_key_command; uint8_t m_last_code; diff --git a/src/mame/ddr/pcm.cpp b/src/mame/ddr/pcm.cpp index 6f8822ad0ae..911a5e4d9fc 100644 --- a/src/mame/ddr/pcm.cpp +++ b/src/mame/ddr/pcm.cpp @@ -96,13 +96,13 @@ class pcm_state : public driver_device void port94_w(u8 data); u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void io_map(address_map &map); - void mem_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; bool m_cone = 0; u8 m_port85 = 0U; - void machine_start() override; - void machine_reset() override; + void machine_start() override ATTR_COLD; + void machine_reset() override ATTR_COLD; required_device m_maincpu; required_device m_ram; required_device m_pio_s; diff --git a/src/mame/ddr/poly880.cpp b/src/mame/ddr/poly880.cpp index 80331c0719f..4444245f068 100644 --- a/src/mame/ddr/poly880.cpp +++ b/src/mame/ddr/poly880.cpp @@ -80,7 +80,7 @@ class poly880_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(trigger_nmi); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_maincpu; @@ -93,9 +93,9 @@ class poly880_state : public driver_device u8 m_matrix = 0; bool m_nmi = false; - void poly880_io(address_map &map); - void poly880_mem(address_map &map); - void poly880s_mem(address_map &map); + void poly880_io(address_map &map) ATTR_COLD; + void poly880_mem(address_map &map) ATTR_COLD; + void poly880s_mem(address_map &map) ATTR_COLD; void cldig_w(u8 data); void ctc_z0_w(int state); diff --git a/src/mame/ddr/polyplay.h b/src/mame/ddr/polyplay.h index ce150d562db..8078bf8b853 100644 --- a/src/mame/ddr/polyplay.h +++ b/src/mame/ddr/polyplay.h @@ -44,7 +44,7 @@ class polyplay_state : public driver_device protected: virtual void machine_start() override { m_lamps.resolve(); } - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: INTERRUPT_GEN_MEMBER(nmi_handler); @@ -62,10 +62,10 @@ class polyplay_state : public driver_device void polyplay_characterram_w(offs_t offset, uint8_t data); void polyplay_palette(palette_device &palette) const; uint32_t screen_update_polyplay(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void polyplay_io_zre(address_map &map); - void polyplay_io_zrepp(address_map &map); - void polyplay_mem_zre(address_map &map); - void polyplay_mem_zrepp(address_map &map); + void polyplay_io_zre(address_map &map) ATTR_COLD; + void polyplay_io_zrepp(address_map &map) ATTR_COLD; + void polyplay_mem_zre(address_map &map) ATTR_COLD; + void polyplay_mem_zrepp(address_map &map) ATTR_COLD; required_shared_ptr m_videoram; required_shared_ptr m_characterram; diff --git a/src/mame/ddr/sc2.cpp b/src/mame/ddr/sc2.cpp index abbe55a8293..fe3e0dc108a 100644 --- a/src/mame/ddr/sc2.cpp +++ b/src/mame/ddr/sc2.cpp @@ -62,7 +62,7 @@ class sc2_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(reset_button) { m_maincpu->set_input_line(INPUT_LINE_RESET, newval ? ASSERT_LINE : CLEAR_LINE); } protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_maincpu; @@ -74,8 +74,8 @@ class sc2_state : public driver_device u8 m_inp_mux = 0; u8 m_digit_data = 0; - void main_io(address_map &map); - void main_map(address_map &map); + void main_io(address_map &map) ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; void update_display(); u8 pio_port_b_r(); diff --git a/src/mame/ddr/slc1.cpp b/src/mame/ddr/slc1.cpp index 2877c59dfa1..d8aeb1c4ec3 100644 --- a/src/mame/ddr/slc1.cpp +++ b/src/mame/ddr/slc1.cpp @@ -86,7 +86,7 @@ class slc1_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(trigger_reset); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_maincpu; @@ -98,8 +98,8 @@ class slc1_state : public driver_device u8 m_select = 0; u8 m_segment = 0; - void mem_map(address_map &map); - void io_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; u8 input_r(); void control_w(offs_t offset, u8 data); diff --git a/src/mame/ddr/sprachmg.cpp b/src/mame/ddr/sprachmg.cpp index 334bf4ae61d..43f58e676db 100644 --- a/src/mame/ddr/sprachmg.cpp +++ b/src/mame/ddr/sprachmg.cpp @@ -91,8 +91,8 @@ class sprachmg_state : public driver_device void sprachmg(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; @@ -109,8 +109,8 @@ class sprachmg_state : public driver_device output_finder<> m_led_morse; output_finder<> m_led_standard; - void mem_map(address_map &map); - void io_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; void display_data_w(uint8_t data); void display_column_w(uint8_t data); diff --git a/src/mame/ddr/vcs80.cpp b/src/mame/ddr/vcs80.cpp index eaf441f057d..2fc44693825 100644 --- a/src/mame/ddr/vcs80.cpp +++ b/src/mame/ddr/vcs80.cpp @@ -71,7 +71,7 @@ class vcs80_state : public driver_device required_device m_display; required_ioport_array<3> m_io_keyboard; - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; uint8_t pio_pa_r(); void pio_pb_w(uint8_t data); @@ -110,9 +110,9 @@ class vcs80_state : public driver_device void init_vcs80(); TIMER_DEVICE_CALLBACK_MEMBER(vcs80_keyboard_tick); - void bd_map(address_map &map); - void io_map(address_map &map); - void mem_map(address_map &map); + void bd_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/dec/dc305.h b/src/mame/dec/dc305.h index 8d0ac4bade4..7aff0f94ff3 100644 --- a/src/mame/dec/dc305.h +++ b/src/mame/dec/dc305.h @@ -58,8 +58,8 @@ class dc305_device : public device_t protected: // 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; private: // callback objects diff --git a/src/mame/dec/dc7061.h b/src/mame/dec/dc7061.h index cb771c610c8..f5c9be30677 100644 --- a/src/mame/dec/dc7061.h +++ b/src/mame/dec/dc7061.h @@ -21,12 +21,12 @@ class dc7061_device auto dma_w() { return m_dma_w.bind(); } // register access - void map(address_map &map); + void map(address_map &map) ATTR_COLD; protected: // 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; // ncsci_device implementation virtual void scsi_ctrl_changed() override; diff --git a/src/mame/dec/dc7085.h b/src/mame/dec/dc7085.h index b272743223d..38e2bf6693a 100644 --- a/src/mame/dec/dc7085.h +++ b/src/mame/dec/dc7085.h @@ -21,8 +21,8 @@ class dc7085_channel protected: // device_t 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; // device_serial overrides virtual void rcv_complete() override; @@ -51,7 +51,7 @@ class dc7085_device : public device_t public: dc7085_device(machine_config const &mconfig, char const *tag, device_t *owner, u32 clock); - void map(address_map &map); + void map(address_map &map) ATTR_COLD; auto int_cb() { return m_int_cb.bind(); } @@ -61,9 +61,9 @@ class dc7085_device : public device_t protected: // device_t overrides - 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; // register accessors u16 csr_r() { return m_csr; } diff --git a/src/mame/dec/dct11em.cpp b/src/mame/dec/dct11em.cpp index 5bff43fd5bd..a4a3c5232c2 100644 --- a/src/mame/dec/dct11em.cpp +++ b/src/mame/dec/dct11em.cpp @@ -49,8 +49,8 @@ class dct11em_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(int_button); private: - void machine_reset() override; - void machine_start() override; + void machine_reset() override ATTR_COLD; + void machine_start() override ATTR_COLD; void porta_w(u8); void portc_w(u8); @@ -67,7 +67,7 @@ class dct11em_state : public driver_device u16 m_irqs = 0U; bool m_dlart_maintmode = 0; - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_ppi; diff --git a/src/mame/dec/decioga.h b/src/mame/dec/decioga.h index e901e5de52b..983cb075940 100644 --- a/src/mame/dec/decioga.h +++ b/src/mame/dec/decioga.h @@ -17,7 +17,7 @@ class dec_ioga_device : public device_t public: dec_ioga_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock = 0); - void map(address_map &map); + void map(address_map &map) ATTR_COLD; // irq inputs void rtc_irq_w(int state); @@ -34,8 +34,8 @@ class dec_ioga_device : public device_t void lance_dma_w(offs_t offset, u16 data); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; u32 csr_r(); void csr_w(offs_t offset, u32 data, u32 mem_mask = ~0); diff --git a/src/mame/dec/decmate2.cpp b/src/mame/dec/decmate2.cpp index d44b6a79723..c245d10cfd9 100644 --- a/src/mame/dec/decmate2.cpp +++ b/src/mame/dec/decmate2.cpp @@ -106,8 +106,8 @@ class decmate2_state : public driver_device void init_pc238(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: u32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); @@ -179,12 +179,12 @@ class decmate2_state : public driver_device void rx_sel_w(u8 data); u8 rx_rdy_r(); - void inst_map(address_map &map); - void data_map(address_map &map); - void pc278_io_map(address_map &map); - void pc238_io_map(address_map &map); - void devctl_map(address_map &map); - void rx_map(address_map &map); + void inst_map(address_map &map) ATTR_COLD; + void data_map(address_map &map) ATTR_COLD; + void pc278_io_map(address_map &map) ATTR_COLD; + void pc238_io_map(address_map &map) ATTR_COLD; + void devctl_map(address_map &map) ATTR_COLD; + void rx_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_rxcpu; diff --git a/src/mame/dec/dectalk.cpp b/src/mame/dec/dectalk.cpp index 96a295b69dd..abaa928c6ff 100644 --- a/src/mame/dec/dectalk.cpp +++ b/src/mame/dec/dectalk.cpp @@ -309,7 +309,7 @@ class dectalk_state : public driver_device uint16_t spc_infifo_data_r(); void spc_outfifo_data_w(uint16_t data); int spc_semaphore_r(); - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; TIMER_CALLBACK_MEMBER(outfifo_read_cb); emu_timer *m_outfifo_read_timer = nullptr; void outfifo_check(); @@ -318,9 +318,9 @@ class dectalk_state : public driver_device uint16_t dsp_outfifo_r(); void dectalk_reset(int state); - void m68k_mem(address_map &map); - void tms32010_io(address_map &map); - void tms32010_mem(address_map &map); + void m68k_mem(address_map &map) ATTR_COLD; + void tms32010_io(address_map &map) ATTR_COLD; + void tms32010_mem(address_map &map) ATTR_COLD; }; diff --git a/src/mame/dec/decwritr.cpp b/src/mame/dec/decwritr.cpp index 532a85e0ff2..0f92a09ff6d 100644 --- a/src/mame/dec/decwritr.cpp +++ b/src/mame/dec/decwritr.cpp @@ -66,10 +66,10 @@ class decwriter_state : public driver_device uint8_t la120_DC305_r(offs_t offset); void la120_DC305_w(offs_t offset, uint8_t data); - void la120_io(address_map &map); - void la120_mem(address_map &map); + void la120_io(address_map &map) ATTR_COLD; + void la120_mem(address_map &map) ATTR_COLD; - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; //virtual void machine_reset(); required_device m_maincpu; diff --git a/src/mame/dec/dtc03.cpp b/src/mame/dec/dtc03.cpp index b882c717761..313590dfa22 100644 --- a/src/mame/dec/dtc03.cpp +++ b/src/mame/dec/dtc03.cpp @@ -70,18 +70,18 @@ class dtc03_state : public driver_device required_device m_epci; required_device m_epci_irq; required_device m_rs232; - void dtc03_io(address_map &map); - void dtc03_mem(address_map &map); - void dsp_io(address_map &map); - void dsp_mem(address_map &map); + void dtc03_io(address_map &map) ATTR_COLD; + void dtc03_mem(address_map &map) ATTR_COLD; + void dsp_io(address_map &map) ATTR_COLD; + void dsp_mem(address_map &map) ATTR_COLD; u16 m_dsp_dma; u8 m_bio; u16 m_ctl; attotime m_dbgclk; - virtual void machine_reset() override; - virtual void machine_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; void dac_w(uint16_t data); uint16_t dsp_dma_r(); diff --git a/src/mame/dec/jensen.cpp b/src/mame/dec/jensen.cpp index ed8d09b26af..8408b821b7e 100644 --- a/src/mame/dec/jensen.cpp +++ b/src/mame/dec/jensen.cpp @@ -71,14 +71,14 @@ class jensen_state : public driver_device protected: // driver_device overrides - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; // address maps - void local_memory(address_map &map); - void local_io(address_map &map); - void eisa_memory(address_map &map); - void eisa_io(address_map &map); + void local_memory(address_map &map) ATTR_COLD; + void local_io(address_map &map) ATTR_COLD; + void eisa_memory(address_map &map) ATTR_COLD; + void eisa_io(address_map &map) ATTR_COLD; private: // devices diff --git a/src/mame/dec/kn01.cpp b/src/mame/dec/kn01.cpp index aaa41fa4c03..d371f6bedad 100644 --- a/src/mame/dec/kn01.cpp +++ b/src/mame/dec/kn01.cpp @@ -93,12 +93,12 @@ class kn01_state : public driver_device void pmin(machine_config &config) { kn01(config, 25_MHz_XTAL / 2); } protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; void kn01(machine_config &config, XTAL clock); - void map(address_map &map); + void map(address_map &map) ATTR_COLD; u16 status_r(); void control_w(u16 data); diff --git a/src/mame/dec/kn02.cpp b/src/mame/dec/kn02.cpp index 2e8f5f9d7eb..0d5ae71ccf6 100644 --- a/src/mame/dec/kn02.cpp +++ b/src/mame/dec/kn02.cpp @@ -100,8 +100,8 @@ class kn02ba_state : public driver_device void cfb_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0); private: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); @@ -117,7 +117,7 @@ class kn02ba_state : public driver_device optional_device m_bt459; required_device m_lance; - void map(address_map &map); + void map(address_map &map) ATTR_COLD; u8 *m_vrom_ptr; }; diff --git a/src/mame/dec/lk201.h b/src/mame/dec/lk201.h index c22f4e70827..3c11ece26b2 100644 --- a/src/mame/dec/lk201.h +++ b/src/mame/dec/lk201.h @@ -59,14 +59,14 @@ class lk201_device : public device_t, public device_serial_interface auto tx_handler() { return m_tx_handler.bind(); } - void lk201_map(address_map &map); + void lk201_map(address_map &map) ATTR_COLD; protected: // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual const tiny_rom_entry *device_rom_region() const override; - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; // device_serial overrides virtual void rcv_complete() override; // Rx completed receiving byte diff --git a/src/mame/dec/pdp1.h b/src/mame/dec/pdp1.h index f5ef61ef59e..64d42bc9ea5 100644 --- a/src/mame/dec/pdp1.h +++ b/src/mame/dec/pdp1.h @@ -189,7 +189,7 @@ class pdp1_readtape_image_device : public paper_tape_reader_device protected: // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_image_interface implementation virtual const char *file_extensions() const noexcept override { return "tap,rim"; } @@ -234,7 +234,7 @@ class pdp1_punchtape_image_device : public paper_tape_punch_device protected: // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_image_interface implementation virtual bool is_readable() const noexcept override { return false; } @@ -276,7 +276,7 @@ class pdp1_typewriter_device : public device_t, protected: // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_image_interface implementation virtual bool is_readable() const noexcept override { return false; } @@ -333,7 +333,7 @@ class pdp1_cylinder_image_device : public device_t, protected: // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_image_interface implementation virtual bool is_readable() const noexcept override { return true; } @@ -414,9 +414,9 @@ class pdp1_state : public driver_device emu_timer *m_dpy_timer; lightpen_t m_lightpen; - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; void pdp1_palette(palette_device &palette) const; uint32_t screen_update_pdp1(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void screen_vblank_pdp1(int state); @@ -442,7 +442,7 @@ class pdp1_state : public driver_device template void io_status_w(int state); void pdp1(machine_config &config); - void pdp1_map(address_map &map); + void pdp1_map(address_map &map) ATTR_COLD; private: void iot_dpy(int op2, int nac, int mb, int &io, int ac); diff --git a/src/mame/dec/pdp11.cpp b/src/mame/dec/pdp11.cpp index 7247d17684f..cd82af37dbf 100644 --- a/src/mame/dec/pdp11.cpp +++ b/src/mame/dec/pdp11.cpp @@ -116,8 +116,8 @@ class pdp11_state : public driver_device void sms1000(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; @@ -127,9 +127,9 @@ class pdp11_state : public driver_device DECLARE_MACHINE_RESET(pdp11ub2); DECLARE_MACHINE_RESET(pdp11qb); void load9312prom(uint8_t *desc, uint8_t *src, int size); - void pdp11_mem(address_map &map); - void pdp11qb_mem(address_map &map); - void sms1000_mem_188(address_map &map); + void pdp11_mem(address_map &map) ATTR_COLD; + void pdp11qb_mem(address_map &map) ATTR_COLD; + void sms1000_mem_188(address_map &map) ATTR_COLD; }; void pdp11_state::pdp11_mem(address_map &map) diff --git a/src/mame/dec/rainbow.cpp b/src/mame/dec/rainbow.cpp index b6d19b04b67..00195d53bab 100644 --- a/src/mame/dec/rainbow.cpp +++ b/src/mame/dec/rainbow.cpp @@ -508,14 +508,14 @@ class rainbow_base_state : public driver_device void rainbow_base(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; TIMER_CALLBACK_MEMBER(command_tick); TIMER_CALLBACK_MEMBER(switch_off_tick); - void rainbow8088_base_map(address_map &map); - void rainbow8088_base_io(address_map &map); + void rainbow8088_base_map(address_map &map) ATTR_COLD; + void rainbow8088_base_io(address_map &map) ATTR_COLD; uint8_t ext_ram_r(offs_t offset); @@ -599,9 +599,9 @@ class rainbow_base_state : public driver_device void vram_w(offs_t offset, uint16_t data); void GDC_vblank_irq(int state); - void rainbowz80_io(address_map &map); - void rainbowz80_mem(address_map &map); - void upd7220_map(address_map &map); + void rainbowz80_io(address_map &map) ATTR_COLD; + void rainbowz80_mem(address_map &map) ATTR_COLD; + void upd7220_map(address_map &map) ATTR_COLD; enum { // LOWEST PRIORITY // Mnemonic - - - - - - TYPE ADDRESS - Source @@ -760,10 +760,10 @@ class rainbow_modela_state : public rainbow_base_state void rainbow_modela(machine_config &config); private: - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; - void rainbow8088_map(address_map &map); - void rainbow8088_io(address_map &map); + void rainbow8088_map(address_map &map) ATTR_COLD; + void rainbow8088_io(address_map &map) ATTR_COLD; void ext_ram_w(offs_t offset, uint8_t data); uint8_t rtc_r(offs_t offset); @@ -782,10 +782,10 @@ class rainbow_modelb_state : public rainbow_base_state void rainbow_modelb(machine_config &config); private: - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; - void rainbow8088_map(address_map &map); - void rainbow8088_io(address_map &map); + void rainbow8088_map(address_map &map) ATTR_COLD; + void rainbow8088_io(address_map &map) ATTR_COLD; void ext_ram_w(offs_t offset, uint8_t data); uint8_t rtc_r(offs_t offset); diff --git a/src/mame/dec/rx01.h b/src/mame/dec/rx01.h index c4a4ff3404e..7450ae4f054 100644 --- a/src/mame/dec/rx01.h +++ b/src/mame/dec/rx01.h @@ -31,11 +31,11 @@ class rx01_device : public device_t 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; // 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 command_write(uint16_t data); uint16_t status_read(); @@ -50,8 +50,8 @@ class rx01_device : public device_t void write_sector(int ddam); private: - void firmware_map(address_map &map); - void secbuf_map(address_map &map); + void firmware_map(address_map &map) ATTR_COLD; + void secbuf_map(address_map &map) ATTR_COLD; enum rx01_state { RX01_FILL, diff --git a/src/mame/dec/sfb.h b/src/mame/dec/sfb.h index 59d3dbe1396..73a5f167cb6 100644 --- a/src/mame/dec/sfb.h +++ b/src/mame/dec/sfb.h @@ -22,8 +22,8 @@ class decsfb_device : public device_t protected: // standard device_interface 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; devcb_write_line m_int_cb; diff --git a/src/mame/dec/vax11.cpp b/src/mame/dec/vax11.cpp index cdcdf0f24a0..6fa37fb3ec7 100644 --- a/src/mame/dec/vax11.cpp +++ b/src/mame/dec/vax11.cpp @@ -94,7 +94,7 @@ class vax11_state : public driver_device void kbd_put(u8 data); uint8_t m_term_data = 0; uint16_t m_term_status = 0; - void vax11_mem(address_map &map); + void vax11_mem(address_map &map) ATTR_COLD; }; void vax11_state::term_w(uint16_t data) diff --git a/src/mame/dec/vk100.cpp b/src/mame/dec/vk100.cpp index 19add4c626e..2ab8892c42b 100644 --- a/src/mame/dec/vk100.cpp +++ b/src/mame/dec/vk100.cpp @@ -197,11 +197,11 @@ class vk100_state : public driver_device void vk100(machine_config &config); private: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; - void vk100_mem(address_map &map); - void vk100_io(address_map &map); + void vk100_mem(address_map &map) ATTR_COLD; + void vk100_io(address_map &map) ATTR_COLD; void vgLD_X(offs_t offset, uint8_t data); void vgLD_Y(offs_t offset, uint8_t data); diff --git a/src/mame/dec/vt100.cpp b/src/mame/dec/vt100.cpp index 891a98aeafc..58dd1ea4200 100644 --- a/src/mame/dec/vt100.cpp +++ b/src/mame/dec/vt100.cpp @@ -104,17 +104,17 @@ class vt100_state : public driver_device u8 video_ram_r(offs_t offset); void uart_clock_w(u8 data); - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; u32 screen_update_vt100(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); IRQ_CALLBACK_MEMBER(vt102_irq_callback); - void vt100_mem(address_map &map); - void vt100_io(address_map &map); - void vt102_io(address_map &map); - void stp_mem(address_map &map); - void stp_io(address_map &map); - void vt180_mem(address_map &map); - void vt180_io(address_map &map); + void vt100_mem(address_map &map) ATTR_COLD; + void vt100_io(address_map &map) ATTR_COLD; + void vt102_io(address_map &map) ATTR_COLD; + void stp_mem(address_map &map) ATTR_COLD; + void stp_io(address_map &map) ATTR_COLD; + void vt180_mem(address_map &map) ATTR_COLD; + void vt180_io(address_map &map) ATTR_COLD; }; diff --git a/src/mame/dec/vt220.cpp b/src/mame/dec/vt220.cpp index 8ca17299ee7..d86383d7f7e 100644 --- a/src/mame/dec/vt220.cpp +++ b/src/mame/dec/vt220.cpp @@ -57,15 +57,15 @@ class vt220_state : public driver_device void vt220a(machine_config &config); private: - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; uint32_t screen_update_vt220(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); required_device m_maincpu; required_device m_ram; - void vt220_io(address_map &map); - void vt220_mem(address_map &map); - void vt220a_io(address_map &map); - void vt220a_mem(address_map &map); + void vt220_io(address_map &map) ATTR_COLD; + void vt220_mem(address_map &map) ATTR_COLD; + void vt220a_io(address_map &map) ATTR_COLD; + void vt220a_mem(address_map &map) ATTR_COLD; }; diff --git a/src/mame/dec/vt240.cpp b/src/mame/dec/vt240.cpp index 47e50500c78..8a28ecb699f 100644 --- a/src/mame/dec/vt240.cpp +++ b/src/mame/dec/vt240.cpp @@ -102,7 +102,7 @@ class vt240_state : public driver_device void mem_w(offs_t offset, uint16_t data, uint16_t mem_mask); void init_vt240(); - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; UPD7220_DISPLAY_PIXELS_MEMBER(hgdc_draw); void irq_encoder(int irq, int state); void irq7_w(int state); @@ -120,11 +120,11 @@ class vt240_state : public driver_device bool m_lb; uint16_t m_scrl; - void bank_map(address_map &map); - void upd7220_map(address_map &map); - void vt240_char_io(address_map &map); - void vt240_char_mem(address_map &map); - void vt240_mem(address_map &map); + void bank_map(address_map &map) ATTR_COLD; + void upd7220_map(address_map &map) ATTR_COLD; + void vt240_char_io(address_map &map) ATTR_COLD; + void vt240_char_mem(address_map &map) ATTR_COLD; + void vt240_mem(address_map &map) ATTR_COLD; }; void vt240_state::irq_encoder(int irq, int state) diff --git a/src/mame/dec/vt320.cpp b/src/mame/dec/vt320.cpp index 6af07ad6a0d..3c634037c02 100644 --- a/src/mame/dec/vt320.cpp +++ b/src/mame/dec/vt320.cpp @@ -30,13 +30,13 @@ class vt320_state : public driver_device void vt320(machine_config &config); private: - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; uint32_t screen_update_vt320(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); required_device m_maincpu; required_device m_ram; - void vt320_io(address_map &map); - void vt320_mem(address_map &map); + void vt320_io(address_map &map) ATTR_COLD; + void vt320_mem(address_map &map) ATTR_COLD; }; /* diff --git a/src/mame/dec/vt52.cpp b/src/mame/dec/vt52.cpp index e9aad759143..79dfcd932f0 100644 --- a/src/mame/dec/vt52.cpp +++ b/src/mame/dec/vt52.cpp @@ -55,8 +55,8 @@ class vt52_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(data_sw_changed); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: void update_serial_settings(); @@ -71,8 +71,8 @@ class vt52_state : public driver_device int xrdy_eoc_r(); u8 chargen_r(offs_t offset); - void rom_1k(address_map &map); - void ram_2k(address_map &map); + void rom_1k(address_map &map) ATTR_COLD; + void ram_2k(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_uart; diff --git a/src/mame/dec/vt520.cpp b/src/mame/dec/vt520.cpp index cfcb416ed38..41ca9be9954 100644 --- a/src/mame/dec/vt520.cpp +++ b/src/mame/dec/vt520.cpp @@ -32,13 +32,13 @@ class vt520_state : public driver_device private: uint8_t vt520_some_r(); - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; uint32_t screen_update_vt520(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); required_device m_maincpu; required_region_ptr m_rom; - void vt520_io(address_map &map); - void vt520_mem(address_map &map); + void vt520_io(address_map &map) ATTR_COLD; + void vt520_mem(address_map &map) ATTR_COLD; }; diff --git a/src/mame/dec/vt62.cpp b/src/mame/dec/vt62.cpp index 41fd85c1b4f..c30a4490566 100644 --- a/src/mame/dec/vt62.cpp +++ b/src/mame/dec/vt62.cpp @@ -29,14 +29,14 @@ class vt62_state : public driver_device void vt62(machine_config &mconfig); protected: - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; private: u32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void micro_map(address_map &map); - void memory_map(address_map &map); - void decode_map(address_map &map); + void micro_map(address_map &map) ATTR_COLD; + void memory_map(address_map &map) ATTR_COLD; + void decode_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_uart; diff --git a/src/mame/dec/vtvideo.h b/src/mame/dec/vtvideo.h index 4175384ba68..3bc48ef5ce0 100644 --- a/src/mame/dec/vtvideo.h +++ b/src/mame/dec/vtvideo.h @@ -41,9 +41,9 @@ class vt100_video_device : public device_t, vt100_video_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // device-level overrides - 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; // internal state void recompute_parameters(); @@ -102,7 +102,7 @@ class rainbow_video_device : public vt100_video_device protected: virtual void notify_vblank(bool choice) override; - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; }; DECLARE_DEVICE_TYPE(VT100_VIDEO, vt100_video_device) diff --git a/src/mame/dg/aviion88k.cpp b/src/mame/dg/aviion88k.cpp index 82920f3a203..d2c2342ba91 100644 --- a/src/mame/dg/aviion88k.cpp +++ b/src/mame/dg/aviion88k.cpp @@ -72,11 +72,11 @@ class aviion88k_state : public driver_device protected: // driver_device overrides - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; // address maps - void cpu_map(address_map &map); + void cpu_map(address_map &map) ATTR_COLD; void pit_timer(s32 param) { LOG("pit_timer<%d> expired\n", param); } diff --git a/src/mame/dgrm/blackt96.cpp b/src/mame/dgrm/blackt96.cpp index aa8b4c8ed66..75659d0936b 100644 --- a/src/mame/dgrm/blackt96.cpp +++ b/src/mame/dgrm/blackt96.cpp @@ -111,9 +111,9 @@ class blackt96_state : public driver_device protected: // overrides - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: // driver variables @@ -157,8 +157,8 @@ class blackt96_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void tile_callback(int &tile, int& fx, int& fy, int& region); - void blackt96_map(address_map &map); - void oki1_map(address_map &map); + void blackt96_map(address_map &map) ATTR_COLD; + void oki1_map(address_map &map) ATTR_COLD; }; TILE_GET_INFO_MEMBER(blackt96_state::get_tx_tile_info) diff --git a/src/mame/dgrm/pokechmp.cpp b/src/mame/dgrm/pokechmp.cpp index 3cda200f7fa..9ed6616cbe9 100644 --- a/src/mame/dgrm/pokechmp.cpp +++ b/src/mame/dgrm/pokechmp.cpp @@ -74,8 +74,8 @@ class pokechmp_state : public driver_device void pokechmp(machine_config &config); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -100,9 +100,9 @@ class pokechmp_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); - void main_map(address_map &map); - void oki_map(address_map &map); - void sound_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void oki_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/dms/dms5000.cpp b/src/mame/dms/dms5000.cpp index c29fe06f124..dbddff4a88c 100644 --- a/src/mame/dms/dms5000.cpp +++ b/src/mame/dms/dms5000.cpp @@ -33,8 +33,8 @@ class dms5000_state : public driver_device uint8_t status_r(offs_t offset); void brightness_w(uint8_t data); uint32_t screen_update_dms5000(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void io_map(address_map &map); - void mem_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_screen; diff --git a/src/mame/dms/dms86.cpp b/src/mame/dms/dms86.cpp index 5033d14cda6..f59cce135ce 100644 --- a/src/mame/dms/dms86.cpp +++ b/src/mame/dms/dms86.cpp @@ -55,7 +55,7 @@ class dms86_state : public driver_device void nmi_w(int state); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: void m1_ack_w(u8 data); @@ -64,8 +64,8 @@ class dms86_state : public driver_device u16 port9c_r(); void kbd_put(u8 data); - void io_map(address_map &map); - void mem_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; u8 m_term_data = 0U; required_device m_maincpu; diff --git a/src/mame/dms/zsbc3.cpp b/src/mame/dms/zsbc3.cpp index c0be77bc1cd..7ecebee955c 100644 --- a/src/mame/dms/zsbc3.cpp +++ b/src/mame/dms/zsbc3.cpp @@ -55,8 +55,8 @@ class zsbc3_state : public driver_device void zsbc3(machine_config &config); private: - void io_map(address_map &map); - void mem_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; }; diff --git a/src/mame/dooyong/dooyong.cpp b/src/mame/dooyong/dooyong.cpp index 2f3fd0bbbf6..2307cd6eb16 100644 --- a/src/mame/dooyong/dooyong.cpp +++ b/src/mame/dooyong/dooyong.cpp @@ -108,7 +108,7 @@ class dooyong_state : public driver_device } void sound_2151(machine_config &config, XTAL ymclk, XTAL okiclk); - void bluehawk_sound_map(address_map &map); + void bluehawk_sound_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_audiocpu; @@ -233,9 +233,9 @@ class dooyong_z80_state : public dooyong_state void draw_sprites(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, unsigned extensions = 0); - void bluehawk_map(address_map &map); - void flytiger_map(address_map &map); - void primella_map(address_map &map); + void bluehawk_map(address_map &map) ATTR_COLD; + void flytiger_map(address_map &map) ATTR_COLD; + void primella_map(address_map &map) ATTR_COLD; std::unique_ptr m_paletteram_flytiger; u8 m_sprites_disabled = 0; @@ -298,12 +298,12 @@ class dooyong_z80_ym2203_state : public dooyong_z80_state template void sound_2203(machine_config &config, T ymclk); - void lastday_map(address_map &map); - void gulfstrm_map(address_map &map); - void pollux_map(address_map &map); + void lastday_map(address_map &map) ATTR_COLD; + void gulfstrm_map(address_map &map) ATTR_COLD; + void pollux_map(address_map &map) ATTR_COLD; - void lastday_sound_map(address_map &map); - void pollux_sound_map(address_map &map); + void lastday_sound_map(address_map &map) ATTR_COLD; + void pollux_sound_map(address_map &map) ATTR_COLD; }; @@ -364,8 +364,8 @@ class rshark_state : public dooyong_68k_state void dooyong_68k(machine_config &config); - void rshark_map(address_map &map); - void superx_map(address_map &map); + void rshark_map(address_map &map) ATTR_COLD; + void superx_map(address_map &map) ATTR_COLD; }; @@ -398,7 +398,7 @@ class popbingo_state : public dooyong_68k_state color = 0; } - void popbingo_map(address_map &map); + void popbingo_map(address_map &map) ATTR_COLD; private: bitmap_ind16 m_bg_bitmap[2]; diff --git a/src/mame/dooyong/dooyong_tilemap.h b/src/mame/dooyong/dooyong_tilemap.h index 2ee165fba1f..3b636eed14d 100644 --- a/src/mame/dooyong/dooyong_tilemap.h +++ b/src/mame/dooyong/dooyong_tilemap.h @@ -74,7 +74,7 @@ class dooyong_rom_tilemap_device : public dooyong_tilemap_device_base device_t *owner, u32 clock); - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual TILE_GET_INFO_MEMBER(tile_info); @@ -117,7 +117,7 @@ class rshark_rom_tilemap_device : public dooyong_rom_tilemap_device void set_colorrom_length(int length) { m_colorrom_length = length; } protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual TILE_GET_INFO_MEMBER(tile_info) override; @@ -145,7 +145,7 @@ class dooyong_ram_tilemap_device : public dooyong_tilemap_device_base void set_scrolly(int value) { m_tilemap->set_scrolly(value); } protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: TILE_GET_INFO_MEMBER(tile_info); diff --git a/src/mame/dooyong/gundealr.cpp b/src/mame/dooyong/gundealr.cpp index be796bab58c..29f647a7bb4 100644 --- a/src/mame/dooyong/gundealr.cpp +++ b/src/mame/dooyong/gundealr.cpp @@ -110,9 +110,9 @@ class gundealr_state : public driver_device void gundealrbl(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: // memory pointers @@ -144,10 +144,10 @@ class gundealr_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); TIMER_DEVICE_CALLBACK_MEMBER(scanline); - void base_map(address_map &map); - void gundealr_main_map(address_map &map); - void main_portmap(address_map &map); - void yamyam_main_map(address_map &map); + void base_map(address_map &map) ATTR_COLD; + void gundealr_main_map(address_map &map) ATTR_COLD; + void main_portmap(address_map &map) ATTR_COLD; + void yamyam_main_map(address_map &map) ATTR_COLD; }; class yamyam_mcu_state : public gundealr_state diff --git a/src/mame/drc/zrt80.cpp b/src/mame/drc/zrt80.cpp index d0f01e85660..c62db64cfea 100644 --- a/src/mame/drc/zrt80.cpp +++ b/src/mame/drc/zrt80.cpp @@ -54,13 +54,13 @@ class zrt80_state : public driver_device void kbd_put(u8 data); MC6845_UPDATE_ROW(crtc_update_row); - void io_map(address_map &map); - void mem_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; TIMER_DEVICE_CALLBACK_MEMBER(beep_timer); uint8_t m_term_data = 0U; - void machine_reset() override; - void machine_start() override; + void machine_reset() override ATTR_COLD; + void machine_start() override ATTR_COLD; required_shared_ptr m_p_videoram; required_device m_maincpu; required_device m_crtc; diff --git a/src/mame/dynax/ddenlovr.cpp b/src/mame/dynax/ddenlovr.cpp index 38658c65fc3..69480e3ec9e 100644 --- a/src/mame/dynax/ddenlovr.cpp +++ b/src/mame/dynax/ddenlovr.cpp @@ -375,36 +375,36 @@ class ddenlovr_state : public dynax_state inline void log_draw_error( int src, int cmd ); void copylayer(bitmap_rgb32 &bitmap, const rectangle &cliprect, int layer); - void akamaru_map(address_map &map); - void ddenlovj_map(address_map &map); - void ddenlovr_map(address_map &map); - void ddenlovrk_map(address_map &map); - void hginga_map(address_map &map); - void hginga_portmap(address_map &map); - void hgokbang_portmap(address_map &map); - void hgokou_map(address_map &map); - void hgokou_portmap(address_map &map); - void hparadis_map(address_map &map); - void hparadis_portmap(address_map &map); - void janshinp_map(address_map &map); - void janshinp_portmap(address_map &map); - void mjflove_portmap(address_map &map); - void mjmyorntr_portmap(address_map &map); - void mjmyster_map(address_map &map); - void mjmyster_portmap(address_map &map); - void mjmywrld_portmap(address_map &map); - void mjschuka_portmap(address_map &map); - void nettoqc_map(address_map &map); - void quiz365_map(address_map &map); - void quizchq_map(address_map &map); - void quizchq_portmap(address_map &map); - void rongrong_map(address_map &map); - void rongrong_portmap(address_map &map); - void seljan2_map(address_map &map); - void seljan2_portmap(address_map &map); - void sryudens_map(address_map &map); - void sryudens_portmap(address_map &map); - void ultrchmp_map(address_map &map); + void akamaru_map(address_map &map) ATTR_COLD; + void ddenlovj_map(address_map &map) ATTR_COLD; + void ddenlovr_map(address_map &map) ATTR_COLD; + void ddenlovrk_map(address_map &map) ATTR_COLD; + void hginga_map(address_map &map) ATTR_COLD; + void hginga_portmap(address_map &map) ATTR_COLD; + void hgokbang_portmap(address_map &map) ATTR_COLD; + void hgokou_map(address_map &map) ATTR_COLD; + void hgokou_portmap(address_map &map) ATTR_COLD; + void hparadis_map(address_map &map) ATTR_COLD; + void hparadis_portmap(address_map &map) ATTR_COLD; + void janshinp_map(address_map &map) ATTR_COLD; + void janshinp_portmap(address_map &map) ATTR_COLD; + void mjflove_portmap(address_map &map) ATTR_COLD; + void mjmyorntr_portmap(address_map &map) ATTR_COLD; + void mjmyster_map(address_map &map) ATTR_COLD; + void mjmyster_portmap(address_map &map) ATTR_COLD; + void mjmywrld_portmap(address_map &map) ATTR_COLD; + void mjschuka_portmap(address_map &map) ATTR_COLD; + void nettoqc_map(address_map &map) ATTR_COLD; + void quiz365_map(address_map &map) ATTR_COLD; + void quizchq_map(address_map &map) ATTR_COLD; + void quizchq_portmap(address_map &map) ATTR_COLD; + void rongrong_map(address_map &map) ATTR_COLD; + void rongrong_portmap(address_map &map) ATTR_COLD; + void seljan2_map(address_map &map) ATTR_COLD; + void seljan2_portmap(address_map &map) ATTR_COLD; + void sryudens_map(address_map &map) ATTR_COLD; + void sryudens_portmap(address_map &map) ATTR_COLD; + void ultrchmp_map(address_map &map) ATTR_COLD; protected: devcb_write_line m_blitter_irq_handler; @@ -549,13 +549,13 @@ class mmpanic_state : public ddenlovr_state void mmpanic_update_leds(); - void funkyfig_map(address_map &map); - void funkyfig_portmap(address_map &map); - void funkyfig_sound_portmap(address_map &map); - void mmpanic_map(address_map &map); - void mmpanic_portmap(address_map &map); - void mmpanic_sound_map(address_map &map); - void mmpanic_sound_portmap(address_map &map); + void funkyfig_map(address_map &map) ATTR_COLD; + void funkyfig_portmap(address_map &map) ATTR_COLD; + void funkyfig_sound_portmap(address_map &map) ATTR_COLD; + void mmpanic_map(address_map &map) ATTR_COLD; + void mmpanic_portmap(address_map &map) ATTR_COLD; + void mmpanic_sound_map(address_map &map) ATTR_COLD; + void mmpanic_sound_portmap(address_map &map) ATTR_COLD; required_device m_soundcpu; required_device m_soundlatch; @@ -636,17 +636,17 @@ class hanakanz_state : public ddenlovr_state void mjchuuka_get_romdata(); - void hanakanz_map(address_map &map); - void daimyojn_portmap(address_map &map); - void hanakanz_portmap(address_map &map); - void hkagerou_portmap(address_map &map); - void jongtei_portmap(address_map &map); - void jongteia_portmap(address_map &map); - void kotbinsp_portmap(address_map &map); - void kotbinyo_portmap(address_map &map); - void mjchuuka_portmap(address_map &map); - void mjgnight_portmap(address_map &map); - void mjreach1_portmap(address_map &map); + void hanakanz_map(address_map &map) ATTR_COLD; + void daimyojn_portmap(address_map &map) ATTR_COLD; + void hanakanz_portmap(address_map &map) ATTR_COLD; + void hkagerou_portmap(address_map &map) ATTR_COLD; + void jongtei_portmap(address_map &map) ATTR_COLD; + void jongteia_portmap(address_map &map) ATTR_COLD; + void kotbinsp_portmap(address_map &map) ATTR_COLD; + void kotbinyo_portmap(address_map &map) ATTR_COLD; + void mjchuuka_portmap(address_map &map) ATTR_COLD; + void mjgnight_portmap(address_map &map) ATTR_COLD; + void mjreach1_portmap(address_map &map) ATTR_COLD; memory_share_creator m_banked_nvram; required_memory_bank m_bank1; diff --git a/src/mame/dynax/dynax_blitter_rev2.h b/src/mame/dynax/dynax_blitter_rev2.h index 125d180c9fe..99f41c8f2bc 100644 --- a/src/mame/dynax/dynax_blitter_rev2.h +++ b/src/mame/dynax/dynax_blitter_rev2.h @@ -42,7 +42,7 @@ class dynax_blitter_rev2_device : public device_t, public device_rom_interface<2 dynax_blitter_rev2_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // internal helpers void plot_pixel(int x, int y, int pen); diff --git a/src/mame/dynax/hnayayoi.cpp b/src/mame/dynax/hnayayoi.cpp index f1d0e87305b..d1ae40e96b2 100644 --- a/src/mame/dynax/hnayayoi.cpp +++ b/src/mame/dynax/hnayayoi.cpp @@ -90,9 +90,9 @@ class hnayayoi_state : public driver_device void init_hnfubuki(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: // video-related @@ -132,11 +132,11 @@ class hnayayoi_state : public driver_device void draw_layer_interleaved(bitmap_rgb32 &bitmap, const rectangle &cliprect, uint16_t row, uint16_t y, uint8_t x_count, int left_pixmap, int right_pixmap, int palbase, bool transp); void irqhandler(int state); - void hnayayoi_map(address_map &map); - void hnayayoi_io_map(address_map &map); - void hnfubuki_map(address_map &map); - void untoucha_map(address_map &map); - void untoucha_io_map(address_map &map); + void hnayayoi_map(address_map &map) ATTR_COLD; + void hnayayoi_io_map(address_map &map) ATTR_COLD; + void hnfubuki_map(address_map &map) ATTR_COLD; + void untoucha_map(address_map &map) ATTR_COLD; + void untoucha_io_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/dynax/realbrk.h b/src/mame/dynax/realbrk.h index ccddb9da950..1176245aed2 100644 --- a/src/mame/dynax/realbrk.h +++ b/src/mame/dynax/realbrk.h @@ -37,7 +37,7 @@ class realbrk_state : public driver_device void pkgnshdx(machine_config &config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -87,11 +87,11 @@ class realbrk_state : public driver_device template void draw_sprites(bitmap_ind16 &bitmap,const rectangle &cliprect, bitmap_ind8 &priority); void vblank_irq(int state); - void base_mem(address_map &map); - void dai2kaku_mem(address_map &map); - void pkgnsh_mem(address_map &map); - void pkgnshdx_mem(address_map &map); - void realbrk_mem(address_map &map); + void base_mem(address_map &map) ATTR_COLD; + void dai2kaku_mem(address_map &map) ATTR_COLD; + void pkgnsh_mem(address_map &map) ATTR_COLD; + void pkgnshdx_mem(address_map &map) ATTR_COLD; + void realbrk_mem(address_map &map) ATTR_COLD; }; #endif // MAME_DYNAX_REALBRK_H diff --git a/src/mame/eaca/cgenie.cpp b/src/mame/eaca/cgenie.cpp index 5c08d0389d8..d4e47b1d686 100644 --- a/src/mame/eaca/cgenie.cpp +++ b/src/mame/eaca/cgenie.cpp @@ -75,10 +75,10 @@ class cgenie_state : public driver_device void rs232_dcd_w(int state); void cgenie(machine_config &config); - void cgenie_io(address_map &map); - void cgenie_mem(address_map &map); + void cgenie_io(address_map &map) ATTR_COLD; + void cgenie_mem(address_map &map) ATTR_COLD; protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_maincpu; diff --git a/src/mame/edevices/diverboy.cpp b/src/mame/edevices/diverboy.cpp index 474517972dd..d8d30917c7e 100644 --- a/src/mame/edevices/diverboy.cpp +++ b/src/mame/edevices/diverboy.cpp @@ -92,12 +92,12 @@ class diverboy_state : public driver_device void soundcmd_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); void okibank_w(uint8_t data); - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; uint32_t screen_update_diverboy(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect ); - void diverboy_map(address_map &map); - void snd_map(address_map &map); + void diverboy_map(address_map &map) ATTR_COLD; + void snd_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/edevices/edevices.h b/src/mame/edevices/edevices.h index d7b781da549..a610821bdee 100644 --- a/src/mame/edevices/edevices.h +++ b/src/mame/edevices/edevices.h @@ -41,8 +41,8 @@ class edevices_device : public device_t uint32_t draw(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); protected: - 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 int get_priority(const uint16_t *source); private: diff --git a/src/mame/edevices/fantland.h b/src/mame/edevices/fantland.h index e5135e9435a..022776dcd58 100644 --- a/src/mame/edevices/fantland.h +++ b/src/mame/edevices/fantland.h @@ -52,8 +52,8 @@ class fantland_state : public driver_device void nmi_enable_w(uint8_t data); void soundlatch_w(uint8_t data); - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void vblank_irq(int state); void draw_sprites(bitmap_ind16 &bitmap,const rectangle &cliprect); @@ -65,13 +65,13 @@ class fantland_state : public driver_device void spriteram2_w(offs_t offset, uint8_t data, uint8_t mem_mask = ~0); void galaxygn_sound_irq(int state); INTERRUPT_GEN_MEMBER(fantland_sound_irq); - void fantland_map(address_map &map); - void fantland_sound_iomap(address_map &map); - void fantland_sound_map(address_map &map); - void galaxygn_map(address_map &map); - void galaxygn_sound_iomap(address_map &map); - void wheelrun_map(address_map &map); - void wheelrun_sound_map(address_map &map); + void fantland_map(address_map &map) ATTR_COLD; + void fantland_sound_iomap(address_map &map) ATTR_COLD; + void fantland_sound_map(address_map &map) ATTR_COLD; + void galaxygn_map(address_map &map) ATTR_COLD; + void galaxygn_sound_iomap(address_map &map) ATTR_COLD; + void wheelrun_map(address_map &map) ATTR_COLD; + void wheelrun_sound_map(address_map &map) ATTR_COLD; }; class borntofi_state : public fantland_state @@ -102,13 +102,13 @@ class borntofi_state : public fantland_state uint8_t inputs_r(offs_t offset); void msm5205_w(offs_t offset, uint8_t data); - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; template void adpcm_int(int state); void adpcm_start(int voice); void adpcm_stop(int voice); - void main_map(address_map &map); - void sound_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; }; #endif // MAME_EDEVICES_FANTLAND_H diff --git a/src/mame/edevices/mugsmash.cpp b/src/mame/edevices/mugsmash.cpp index f33575e9e40..39340ea95e9 100644 --- a/src/mame/edevices/mugsmash.cpp +++ b/src/mame/edevices/mugsmash.cpp @@ -84,7 +84,7 @@ class mugsmash_state : public driver_device void mugsmash(machine_config &config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: required_shared_ptr_array m_videoram; @@ -106,8 +106,8 @@ class mugsmash_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); - void main_map(address_map &map); - void sound_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/edevices/mwarr.cpp b/src/mame/edevices/mwarr.cpp index 3f2d114e2be..ebad7b9d618 100644 --- a/src/mame/edevices/mwarr.cpp +++ b/src/mame/edevices/mwarr.cpp @@ -80,15 +80,15 @@ class mwarr_state : public driver_device void oki1_bank_w(uint16_t data); - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; uint32_t screen_update_mwarr(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); required_device m_maincpu; required_device m_video; required_device m_gfxdecode; required_device m_palette; - void mwarr_map(address_map &map); - void oki2_map(address_map &map); + void mwarr_map(address_map &map) ATTR_COLD; + void oki2_map(address_map &map) ATTR_COLD; }; /************************************* diff --git a/src/mame/edevices/ppmast93.cpp b/src/mame/edevices/ppmast93.cpp index 6ab91cb042b..1cdeef103c0 100644 --- a/src/mame/edevices/ppmast93.cpp +++ b/src/mame/edevices/ppmast93.cpp @@ -159,8 +159,8 @@ class ppmast93_state : public driver_device void ppmast93(machine_config &config); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -181,10 +181,10 @@ class ppmast93_state : public driver_device TILE_GET_INFO_MEMBER(get_fg_tile_info); uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void cpu1_io(address_map &map); - void cpu1_map(address_map &map); - void cpu2_io(address_map &map); - void cpu2_map(address_map &map); + void cpu1_io(address_map &map) ATTR_COLD; + void cpu1_map(address_map &map) ATTR_COLD; + void cpu2_io(address_map &map) ATTR_COLD; + void cpu2_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/edevices/pzletime.cpp b/src/mame/edevices/pzletime.cpp index 741e580d215..0550cd99e99 100644 --- a/src/mame/edevices/pzletime.cpp +++ b/src/mame/edevices/pzletime.cpp @@ -73,10 +73,10 @@ class pzletime_state : public driver_device tilemap_t *m_mid_tilemap = nullptr; tilemap_t *m_txt_tilemap = nullptr; - void main_map(address_map &map); - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + void main_map(address_map &map) ATTR_COLD; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; void mid_videoram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); void txt_videoram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); diff --git a/src/mame/edevices/stlforce.cpp b/src/mame/edevices/stlforce.cpp index 4dddec8ffb4..56cb2a9d1b7 100644 --- a/src/mame/edevices/stlforce.cpp +++ b/src/mame/edevices/stlforce.cpp @@ -99,8 +99,8 @@ class stlforce_state : public driver_device void stlforce(machine_config &config); void mortalr(machine_config &config); - void program_map(address_map &map); - void mortalr_map(address_map &map); + void program_map(address_map &map) ATTR_COLD; + void mortalr_map(address_map &map) ATTR_COLD; required_device m_maincpu; @@ -123,7 +123,7 @@ class twinbrat_state : public stlforce_state void twinbrat(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_memory_bank m_okibank; @@ -132,8 +132,8 @@ class twinbrat_state : public stlforce_state uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void program_map(address_map &map); - void oki_map(address_map &map); + void program_map(address_map &map) ATTR_COLD; + void oki_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/edevices/twins.cpp b/src/mame/edevices/twins.cpp index 3fbedd96d98..e9efac65de3 100644 --- a/src/mame/edevices/twins.cpp +++ b/src/mame/edevices/twins.cpp @@ -145,15 +145,15 @@ class twins_state : public driver_device void base_config(machine_config &config); void video_config(machine_config &config); void sound_config(machine_config &config); - void base_map(address_map &map); - void twins_map(address_map &map); + void base_map(address_map &map) ATTR_COLD; + void twins_map(address_map &map) ATTR_COLD; uint32_t screen_update_twins(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); uint16_t eeprom_r(offs_t offset, uint16_t mem_mask = ~0); void eeprom_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); void draw_background(bitmap_ind16 &bitmap, const rectangle &cliprect); - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; static constexpr u32 ram_size = 0x10000/2; @@ -166,10 +166,10 @@ class twins_state : public driver_device void access_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); uint16_t access_r(offs_t offset, uint16_t mem_mask = ~0); - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; - void ramdac_map(address_map &map); - void twins_io(address_map &map); + void ramdac_map(address_map &map) ATTR_COLD; + void twins_io(address_map &map) ATTR_COLD; }; class twinsed1_state : public twins_state @@ -182,7 +182,7 @@ class twinsed1_state : public twins_state void twinsed1(machine_config &config); private: - void twinsed1_io(address_map &map); + void twinsed1_io(address_map &map) ATTR_COLD; void porte_paloff0_w(uint8_t data); void twins_pal_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); }; @@ -201,7 +201,7 @@ class spider_state : public twins_state void draw_foreground(bitmap_ind16 &bitmap, const rectangle &cliprect); - void spider_io(address_map &map); + void spider_io(address_map &map) ATTR_COLD; void spider_paloff0_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); uint16_t spider_port_18_r(); uint16_t spider_port_1e_r(); diff --git a/src/mame/efo/cedar_magnet.cpp b/src/mame/efo/cedar_magnet.cpp index 33bc7efa6a6..bea9d41e858 100644 --- a/src/mame/efo/cedar_magnet.cpp +++ b/src/mame/efo/cedar_magnet.cpp @@ -388,9 +388,9 @@ class cedar_magnet_state : public driver_device int m_address1hack; int m_address2hack; - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); required_device m_palette; required_device m_maincpu; @@ -400,11 +400,11 @@ class cedar_magnet_state : public driver_device required_device m_cedplane1; required_device m_cedsprite; - void cedar_bank0(address_map &map); - void cedar_magnet_io(address_map &map); - void cedar_magnet_mainboard_sub_pal_map(address_map &map); - void cedar_magnet_mainboard_sub_ram_map(address_map &map); - void cedar_magnet_map(address_map &map); + void cedar_bank0(address_map &map) ATTR_COLD; + void cedar_magnet_io(address_map &map) ATTR_COLD; + void cedar_magnet_mainboard_sub_pal_map(address_map &map) ATTR_COLD; + void cedar_magnet_mainboard_sub_ram_map(address_map &map) ATTR_COLD; + void cedar_magnet_map(address_map &map) ATTR_COLD; }; /*********************** diff --git a/src/mame/efo/cedar_magnet_flop.h b/src/mame/efo/cedar_magnet_flop.h index 488db20eb76..bcfb15295e5 100644 --- a/src/mame/efo/cedar_magnet_flop.h +++ b/src/mame/efo/cedar_magnet_flop.h @@ -28,9 +28,9 @@ class cedar_magnet_flop_device : public device_t void write(offs_t offset, u8 data); protected: - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: required_region_ptr m_disk; diff --git a/src/mame/efo/cedar_magnet_plane.h b/src/mame/efo/cedar_magnet_plane.h index 7ffd0335828..f0100cc5fba 100644 --- a/src/mame/efo/cedar_magnet_plane.h +++ b/src/mame/efo/cedar_magnet_plane.h @@ -26,11 +26,11 @@ class cedar_magnet_plane_device : public device_t, public cedar_magnet_board_int u32 draw(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, int palbase); - void cedar_magnet_plane_io(address_map &map); - void cedar_magnet_plane_map(address_map &map); + void cedar_magnet_plane_io(address_map &map) ATTR_COLD; + void cedar_magnet_plane_map(address_map &map) ATTR_COLD; protected: - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; private: std::unique_ptr m_framebuffer; diff --git a/src/mame/efo/cedar_magnet_sprite.h b/src/mame/efo/cedar_magnet_sprite.h index c9b70351571..a147c148129 100644 --- a/src/mame/efo/cedar_magnet_sprite.h +++ b/src/mame/efo/cedar_magnet_sprite.h @@ -32,13 +32,13 @@ class cedar_magnet_sprite_device : public device_t, public cedar_magnet_board_in u32 draw(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, int palbase); - void cedar_magnet_sprite_io(address_map &map); - void cedar_magnet_sprite_map(address_map &map); - void cedar_magnet_sprite_sub_ram_map(address_map &map); + void cedar_magnet_sprite_io(address_map &map) ATTR_COLD; + void cedar_magnet_sprite_map(address_map &map) ATTR_COLD; + void cedar_magnet_sprite_sub_ram_map(address_map &map) ATTR_COLD; protected: - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: void do_blit(); diff --git a/src/mame/efo/cidelsa.h b/src/mame/efo/cidelsa.h index 462cea68db8..28fa183ec6d 100644 --- a/src/mame/efo/cidelsa.h +++ b/src/mame/efo/cidelsa.h @@ -66,17 +66,17 @@ class cidelsa_state : public driver_device void destryer(machine_config &config); void destryer_video(machine_config &config); void altair_video(machine_config &config); - void altair_io_map(address_map &map); - void altair_map(address_map &map); - void cidelsa_page_ram(address_map &map); - void destryer_io_map(address_map &map); - void destryer_map(address_map &map); - void destryera_map(address_map &map); + void altair_io_map(address_map &map) ATTR_COLD; + void altair_map(address_map &map) ATTR_COLD; + void cidelsa_page_ram(address_map &map) ATTR_COLD; + void destryer_io_map(address_map &map) ATTR_COLD; + void destryer_map(address_map &map) ATTR_COLD; + void destryera_map(address_map &map) ATTR_COLD; protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; TIMER_CALLBACK_MEMBER(reset_done); @@ -119,13 +119,13 @@ class draco_state : public cidelsa_state void draco(machine_config &config); void draco_video(machine_config &config); - void draco_io_map(address_map &map); - void draco_map(address_map &map); - void draco_page_ram(address_map &map); - void draco_sound_map(address_map &map); + void draco_io_map(address_map &map) ATTR_COLD; + void draco_map(address_map &map) ATTR_COLD; + void draco_page_ram(address_map &map) ATTR_COLD; + void draco_sound_map(address_map &map) ATTR_COLD; protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; required_device m_psg; // sound state diff --git a/src/mame/efo/nightmare.cpp b/src/mame/efo/nightmare.cpp index f2aa418f9bb..a743b6700b2 100644 --- a/src/mame/efo/nightmare.cpp +++ b/src/mame/efo/nightmare.cpp @@ -233,8 +233,8 @@ class nightmare_state : public driver_device void nightmare(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; TIMER_CALLBACK_MEMBER(clear_reset); @@ -245,10 +245,10 @@ class nightmare_state : public driver_device void ic10_w(uint8_t data); void unkout_w(uint8_t data); - void main_map(address_map &map); - void io_map(address_map &map); - void sound_map(address_map &map); - void sound_io_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; + void sound_io_map(address_map &map) ATTR_COLD; uint32_t screen_update_nightmare(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); required_device m_maincpu; diff --git a/src/mame/elektor/avrmax.cpp b/src/mame/elektor/avrmax.cpp index 1271746719d..023b4b35cce 100644 --- a/src/mame/elektor/avrmax.cpp +++ b/src/mame/elektor/avrmax.cpp @@ -74,7 +74,7 @@ class avrmax_state : public driver_device void atm18mcc(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: // devices/pointers @@ -88,8 +88,8 @@ class avrmax_state : public driver_device int m_shift_clk = 0; // address maps - void main_map(address_map &map); - void data_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void data_map(address_map &map) ATTR_COLD; // I/O handlers void input_w(u8 data); diff --git a/src/mame/elektor/ec65.cpp b/src/mame/elektor/ec65.cpp index f0633d9d500..94050e19579 100644 --- a/src/mame/elektor/ec65.cpp +++ b/src/mame/elektor/ec65.cpp @@ -70,8 +70,8 @@ class ec65_state : public ec65_common void ec65(machine_config &config); private: - void machine_reset() override; - void ec65_mem(address_map &map); + void machine_reset() override ATTR_COLD; + void ec65_mem(address_map &map) ATTR_COLD; void kbd_put(u8 data); required_device m_via0; required_device m_via1; @@ -90,7 +90,7 @@ class ec65k_state : public ec65_common void ec65k(machine_config &config); private: - void ec65k_mem(address_map &map); + void ec65k_mem(address_map &map) ATTR_COLD; void kbd_put(u8 data); required_device m_rtc; required_device m_pia0; diff --git a/src/mame/elektor/elekscmp.cpp b/src/mame/elektor/elekscmp.cpp index 47d047b0bf9..0e32973bac0 100644 --- a/src/mame/elektor/elekscmp.cpp +++ b/src/mame/elektor/elekscmp.cpp @@ -49,7 +49,7 @@ class elekscmp_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(reset_button); private: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; u8 keyboard_r(); void hex_display_w(offs_t offset, u8 data); @@ -60,7 +60,7 @@ class elekscmp_state : public driver_device bool m_cassinbit = 0, m_cassoutbit = 0, m_cassold = 0; u8 m_cass_data[4]{}; - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_cass; diff --git a/src/mame/elektor/junior.cpp b/src/mame/elektor/junior.cpp index e761e73a6c7..de96d916012 100644 --- a/src/mame/elektor/junior.cpp +++ b/src/mame/elektor/junior.cpp @@ -68,9 +68,9 @@ class junior_state : public driver_device u8 m_digit = 0U; u8 m_seg = 0U; - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; required_device m_riot; required_device m_maincpu; diff --git a/src/mame/elektron/elektronmono.cpp b/src/mame/elektron/elektronmono.cpp index bcfc007cd14..47f537c6889 100644 --- a/src/mame/elektron/elektronmono.cpp +++ b/src/mame/elektron/elektronmono.cpp @@ -128,10 +128,10 @@ class elekmono_state : public driver_device void elektron(machine_config &config); private: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; - void elektron_map(address_map &map); + void elektron_map(address_map &map) ATTR_COLD; required_device m_maincpu; }; diff --git a/src/mame/emusys/emax.cpp b/src/mame/emusys/emax.cpp index 193894f315d..b0e5dc89cca 100644 --- a/src/mame/emusys/emax.cpp +++ b/src/mame/emusys/emax.cpp @@ -51,10 +51,10 @@ class emax_state : public driver_device void palette_init(palette_device &palette); void scsihd(machine_config &config); - void emax_periphs(address_map &map); - void emax_map(address_map &map); - void emaxp_map(address_map &map); - void emax2_map(address_map &map); + void emax_periphs(address_map &map) ATTR_COLD; + void emax_map(address_map &map) ATTR_COLD; + void emaxp_map(address_map &map) ATTR_COLD; + void emax2_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_ctc; diff --git a/src/mame/emusys/emu2.cpp b/src/mame/emusys/emu2.cpp index 2a00a73ae7a..0f97202722e 100644 --- a/src/mame/emusys/emu2.cpp +++ b/src/mame/emusys/emu2.cpp @@ -40,8 +40,8 @@ class emu2_state : public driver_device void emu2(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: u8 main_paged_r(offs_t offset); @@ -52,11 +52,11 @@ class emu2_state : public driver_device void scan_select_w(u8 data); u8 scan_buffer_r(); - void mem_map(address_map &map); - void paged_mem_map(address_map &map); - void io_map(address_map &map); - void scanner_mem_map(address_map &map); - void scanner_io_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void paged_mem_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; + void scanner_mem_map(address_map &map) ATTR_COLD; + void scanner_io_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_pages; diff --git a/src/mame/emusys/emu3.cpp b/src/mame/emusys/emu3.cpp index e7cb210699b..93c339a8358 100644 --- a/src/mame/emusys/emu3.cpp +++ b/src/mame/emusys/emu3.cpp @@ -65,11 +65,11 @@ class emu3_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(nmi_button); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: - void emu3_map(address_map &map); + void emu3_map(address_map &map) ATTR_COLD; void palette_init(palette_device &palette); diff --git a/src/mame/emusys/emu68k.cpp b/src/mame/emusys/emu68k.cpp index bc6b762c8e3..2ac6ece6225 100644 --- a/src/mame/emusys/emu68k.cpp +++ b/src/mame/emusys/emu68k.cpp @@ -32,7 +32,7 @@ class emu68k_state : public driver_device void proteusxr(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: void add_lcd(machine_config &config); @@ -40,11 +40,11 @@ class emu68k_state : public driver_device HD44780_PIXEL_UPDATE(lcd_pixel_update); void palette_init(palette_device &palette); - void proteus1_map(address_map &map); - void proteusxr_map(address_map &map); - void vintkeys_map(address_map &map); - void phatt_map(address_map &map); - void fc7_map(address_map &map); + void proteus1_map(address_map &map) ATTR_COLD; + void proteusxr_map(address_map &map) ATTR_COLD; + void vintkeys_map(address_map &map) ATTR_COLD; + void phatt_map(address_map &map) ATTR_COLD; + void fc7_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_mfp; diff --git a/src/mame/ensoniq/enmirage.cpp b/src/mame/ensoniq/enmirage.cpp index 45ed16bfd9a..d331b25777e 100644 --- a/src/mame/ensoniq/enmirage.cpp +++ b/src/mame/ensoniq/enmirage.cpp @@ -117,14 +117,14 @@ class enmirage_state : public driver_device } void mirage(machine_config &config); - void enmirage_es5503_map(address_map &map); + void enmirage_es5503_map(address_map &map) ATTR_COLD; void init_mirage(); DECLARE_INPUT_CHANGED_MEMBER(input_changed); static void floppy_formats(format_registration &fr); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; void coefficients_w(offs_t offset, uint8_t data); private: @@ -135,9 +135,9 @@ class enmirage_state : public driver_device void mirage_via_write_portb(uint8_t data); uint8_t mirage_adc_read(); - void mirage_map(address_map &map); + void mirage_map(address_map &map) ATTR_COLD; - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; required_device m_maincpu; memory_share_creator m_sample_ram; diff --git a/src/mame/ensoniq/esq1.cpp b/src/mame/ensoniq/esq1.cpp index ca643fdd81e..8086b331531 100644 --- a/src/mame/ensoniq/esq1.cpp +++ b/src/mame/ensoniq/esq1.cpp @@ -207,7 +207,7 @@ class esq1_filters : public device_t, protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_sound_interface overrides virtual void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; @@ -435,12 +435,12 @@ class esq1_state : public driver_device int m_seq_bank = 0; uint8_t m_seqram[0x10000]{}; uint8_t m_dosram[0x2000]{}; - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; void send_through_panel(uint8_t data); - void esq1_map(address_map &map); - void sq80_map(address_map &map); - void sq80_es5503_map(address_map &map); + void esq1_map(address_map &map) ATTR_COLD; + void sq80_map(address_map &map) ATTR_COLD; + void sq80_es5503_map(address_map &map) ATTR_COLD; bool kpc_calibrated = false; // sq80 requires keyboard calibration acknowledgement int m_adc_target = 0; // adc poll target (index into the table below) diff --git a/src/mame/ensoniq/esq5505.cpp b/src/mame/ensoniq/esq5505.cpp index c23550a2565..27941e73fb2 100644 --- a/src/mame/ensoniq/esq5505.cpp +++ b/src/mame/ensoniq/esq5505.cpp @@ -238,8 +238,8 @@ class esq5505_state : public driver_device void esq5505_otis_irq(int state); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; @@ -277,13 +277,13 @@ class esq5505_state : public driver_device static void floppy_formats(format_registration &fr); - void eps_map(address_map &map); - void sq1_map(address_map &map); - void vfx_map(address_map &map); - void vfxsd_map(address_map &map); + void eps_map(address_map &map) ATTR_COLD; + void sq1_map(address_map &map) ATTR_COLD; + void vfx_map(address_map &map) ATTR_COLD; + void vfxsd_map(address_map &map) ATTR_COLD; - void cpu_space_map(address_map &map); - void eps_cpu_space_map(address_map &map); + void cpu_space_map(address_map &map) ATTR_COLD; + void eps_cpu_space_map(address_map &map) ATTR_COLD; uint16_t m_analog_values[8]; diff --git a/src/mame/ensoniq/esqasr.cpp b/src/mame/ensoniq/esqasr.cpp index dc19fba853f..9236473cdf6 100644 --- a/src/mame/ensoniq/esqasr.cpp +++ b/src/mame/ensoniq/esqasr.cpp @@ -74,15 +74,15 @@ class esqasr_state : public driver_device optional_device m_pump; required_device m_sq1vfd; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; void esq5506_otto_irq(int state); u16 esq5506_read_adc(); void es5506_clock_changed(u32 data); - void asr_map(address_map &map); - void asrx_map(address_map &map); + void asr_map(address_map &map) ATTR_COLD; + void asrx_map(address_map &map) ATTR_COLD; }; void esqasr_state::machine_start() diff --git a/src/mame/ensoniq/esqkt.cpp b/src/mame/ensoniq/esqkt.cpp index 5aea0700491..647f7fbaacd 100644 --- a/src/mame/ensoniq/esqkt.cpp +++ b/src/mame/ensoniq/esqkt.cpp @@ -123,8 +123,8 @@ class esqkt_state : public driver_device void ts(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; @@ -146,8 +146,8 @@ class esqkt_state : public driver_device void esq5506_otto_irq(int state); u16 esq5506_read_adc(); void es5506_clock_changed(u32 data); - void kt_map(address_map &map); - void ts_map(address_map &map); + void kt_map(address_map &map) ATTR_COLD; + void ts_map(address_map &map) ATTR_COLD; }; void esqkt_state::machine_start() diff --git a/src/mame/ensoniq/esqlcd.h b/src/mame/ensoniq/esqlcd.h index a8ede5e4076..29632c7cec2 100644 --- a/src/mame/ensoniq/esqlcd.h +++ b/src/mame/ensoniq/esqlcd.h @@ -18,9 +18,9 @@ class esq2x16_sq1_device : public esqvfd_device { virtual void update_display() override; protected: - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; uint8_t m_lcdpg[4][32]{}; int m_lcdPage = 0; diff --git a/src/mame/ensoniq/esqmr.cpp b/src/mame/ensoniq/esqmr.cpp index 78788a66eb9..5a20eb7c03b 100644 --- a/src/mame/ensoniq/esqmr.cpp +++ b/src/mame/ensoniq/esqmr.cpp @@ -231,14 +231,14 @@ class esqmr_state : public driver_device required_device m_maincpu; required_device m_panel; - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; void esq5506_otto_irq(int state); u16 esq5506_read_adc(); void duart_tx_a(int state); void duart_tx_b(int state); - void mr_map(address_map &map); + void mr_map(address_map &map) ATTR_COLD; }; void esqmr_state::machine_reset() diff --git a/src/mame/ensoniq/esqpanel.h b/src/mame/ensoniq/esqpanel.h index 7c197f3a0f6..468865739ba 100644 --- a/src/mame/ensoniq/esqpanel.h +++ b/src/mame/ensoniq/esqpanel.h @@ -37,9 +37,9 @@ class esqpanel_device : public device_t, public device_serial_interface esqpanel_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // device-level overrides - virtual void device_start() override; - virtual void device_reset() override; - virtual void device_stop() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; + virtual void device_stop() override ATTR_COLD; // serial overrides virtual void rcv_complete() override; // Rx completed receiving byte @@ -80,7 +80,7 @@ class esqpanel1x22_device : public esqpanel_device { esqpanel1x22_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 0); protected: - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual void send_to_display(uint8_t data) override { m_vfd->write_char(data); } @@ -92,7 +92,7 @@ class esqpanel2x40_device : public esqpanel_device { esqpanel2x40_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 0); protected: - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual void send_to_display(uint8_t data) override { m_vfd->write_char(data); } @@ -104,7 +104,7 @@ class esqpanel2x40_vfx_device : public esqpanel_device { esqpanel2x40_vfx_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 0); protected: - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual void send_to_display(uint8_t data) override { m_vfd->write_char(data); } @@ -120,7 +120,7 @@ class esqpanel2x40_sq1_device : public esqpanel_device { esqpanel2x40_sq1_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 0); protected: - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual void send_to_display(uint8_t data) override { m_vfd->write_char(data); } @@ -133,7 +133,7 @@ class esqpanel2x16_sq1_device : public esqpanel_device { esqpanel2x16_sq1_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 0); protected: - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual void send_to_display(uint8_t data) override { m_vfd->write_char(data); } diff --git a/src/mame/ensoniq/esqvfd.h b/src/mame/ensoniq/esqvfd.h index d961edae323..d976ef22841 100644 --- a/src/mame/ensoniq/esqvfd.h +++ b/src/mame/ensoniq/esqvfd.h @@ -46,8 +46,8 @@ class esqvfd_device : public device_t { static constexpr uint8_t AT_BLINK = 0x04; static constexpr uint8_t AT_BLINKED = 0x80; // set when character should be blinked off - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; output_helper::ptr m_vfds; int m_cursx = 0, m_cursy = 0; @@ -67,7 +67,7 @@ class esq1x22_device : public esqvfd_device { virtual void write_char(int data) override; protected: - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: }; @@ -80,7 +80,7 @@ class esq2x40_device : public esqvfd_device { virtual bool write_contents(std::ostream &o) override; protected: - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; class esq2x40_sq1_device : public esqvfd_device { @@ -90,7 +90,7 @@ class esq2x40_sq1_device : public esqvfd_device { virtual void write_char(int data) override; protected: - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: bool m_wait87shift, m_wait88shift; diff --git a/src/mame/enterprise/ep64.cpp b/src/mame/enterprise/ep64.cpp index 1f8f88ee775..8d8f893d9c5 100644 --- a/src/mame/enterprise/ep64.cpp +++ b/src/mame/enterprise/ep64.cpp @@ -214,8 +214,8 @@ class ep64_state : public driver_device required_memory_region m_rom; required_ioport_array<10> m_y; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; uint8_t rd0_r(); void wr0_w(uint8_t data); @@ -226,11 +226,11 @@ class ep64_state : public driver_device void write_centronics_busy(int state); int m_centronics_busy; - void dave_128k_mem(address_map &map); - void dave_64k_mem(address_map &map); - void dave_io(address_map &map); - void ep64_io(address_map &map); - void ep64_mem(address_map &map); + void dave_128k_mem(address_map &map) ATTR_COLD; + void dave_64k_mem(address_map &map) ATTR_COLD; + void dave_io(address_map &map) ATTR_COLD; + void ep64_io(address_map &map) ATTR_COLD; + void ep64_mem(address_map &map) ATTR_COLD; }; diff --git a/src/mame/enterprise/nick.h b/src/mame/enterprise/nick.h index 28151d587fe..dd520c94772 100644 --- a/src/mame/enterprise/nick.h +++ b/src/mame/enterprise/nick.h @@ -69,16 +69,16 @@ class nick_device : public device_t, auto virq_wr_callback() { return m_write_virq.bind(); } - virtual void vram_map(address_map &map); - virtual void vio_map(address_map &map); + virtual void vram_map(address_map &map) ATTR_COLD; + virtual void vio_map(address_map &map) ATTR_COLD; uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void nick_map(address_map &map); + void nick_map(address_map &map) ATTR_COLD; 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; // device_memory_interface overrides virtual space_config_vector memory_space_config() const override; diff --git a/src/mame/entex/advision.cpp b/src/mame/entex/advision.cpp index fcc67949518..4e2b07e94bd 100644 --- a/src/mame/entex/advision.cpp +++ b/src/mame/entex/advision.cpp @@ -78,8 +78,8 @@ class advision_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(set_screensize); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; @@ -107,8 +107,8 @@ class advision_state : public driver_device u16 m_rambank = 0; u8 m_sound_cmd = 0; - void io_map(address_map &map); - void program_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void program_map(address_map &map) ATTR_COLD; u32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); void av_control_w(u8 data); diff --git a/src/mame/entex/sag.cpp b/src/mame/entex/sag.cpp index 96be402e3a2..d91ab81b601 100644 --- a/src/mame/entex/sag.cpp +++ b/src/mame/entex/sag.cpp @@ -56,7 +56,7 @@ class sag_state : public driver_device void sag(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: optional_device m_hmcs40_cpu; diff --git a/src/mame/epoch/gamepock.cpp b/src/mame/epoch/gamepock.cpp index fe35f674cbd..c038eee320b 100644 --- a/src/mame/epoch/gamepock.cpp +++ b/src/mame/epoch/gamepock.cpp @@ -48,7 +48,7 @@ class gamepock_state : public driver_device void gamepock(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_maincpu; @@ -64,7 +64,7 @@ class gamepock_state : public driver_device u8 input_r(); u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; }; void gamepock_state::machine_start() diff --git a/src/mame/epoch/scv.cpp b/src/mame/epoch/scv.cpp index 3c080552040..1ac87f401e2 100644 --- a/src/mame/epoch/scv.cpp +++ b/src/mame/epoch/scv.cpp @@ -38,8 +38,8 @@ class scv_state : public driver_device void scv_pal(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; TIMER_CALLBACK_MEMBER(vblank_update); @@ -58,7 +58,7 @@ class scv_state : public driver_device void draw_semi_graph(bitmap_ind16 &bitmap, uint8_t x, uint8_t y, uint8_t data, uint8_t fg); void draw_block_graph(bitmap_ind16 &bitmap, uint8_t x, uint8_t y, uint8_t col); - void scv_mem(address_map &map); + void scv_mem(address_map &map) ATTR_COLD; uint8_t m_porta; uint8_t m_portc; diff --git a/src/mame/epson/hx20.h b/src/mame/epson/hx20.h index 8e298bc324b..28f87b2b5c6 100644 --- a/src/mame/epson/hx20.h +++ b/src/mame/epson/hx20.h @@ -66,7 +66,7 @@ class hx20_state : public driver_device required_ioport_array<8> m_ksc_io; required_ioport m_sw6; - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; void hx20_palette(palette_device &palette) const; uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); @@ -118,9 +118,9 @@ class hx20_state : public driver_device int m_sio_rx = 0; int m_sio_pin = 0; - void hx20_mem(address_map &map); - void cm6032_mem(address_map &map); - void cm6127_mem(address_map &map); + void hx20_mem(address_map &map) ATTR_COLD; + void cm6032_mem(address_map &map) ATTR_COLD; + void cm6127_mem(address_map &map) ATTR_COLD; }; #endif // MAME_EPSON_HX20_H diff --git a/src/mame/epson/px4.cpp b/src/mame/epson/px4.cpp index dad6ce9ebe8..8999efb7967 100644 --- a/src/mame/epson/px4.cpp +++ b/src/mame/epson/px4.cpp @@ -143,12 +143,12 @@ class px4_state : public driver_device, public device_serial_interface void centronics_busy_w(int state) { m_centronics_busy = state; } void centronics_perror_w(int state) { m_centronics_perror = state; } - void px4_io(address_map &map); - void px4_mem(address_map &map); + void px4_io(address_map &map) ATTR_COLD; + void px4_mem(address_map &map) ATTR_COLD; // driver_device overrides - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; // device_serial_interface overrides virtual void tra_callback() override; @@ -280,10 +280,10 @@ class px4p_state : public px4_state void ramdisk_data_w(uint8_t data); uint8_t ramdisk_control_r(); - void px4p_io(address_map &map); + void px4p_io(address_map &map) ATTR_COLD; // driver_device overrides - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; required_device m_rdnvram; required_device m_rdsocket; diff --git a/src/mame/epson/px8.h b/src/mame/epson/px8.h index e39412ba5da..69f73b50e9e 100644 --- a/src/mame/epson/px8.h +++ b/src/mame/epson/px8.h @@ -49,8 +49,8 @@ class px8_state : public driver_device required_shared_ptr m_video_ram; /* LCD video RAM */ output_finder<3> m_leds; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); @@ -86,9 +86,9 @@ class px8_state : public driver_device /* keyboard state */ int m_ksc = 0; // keyboard scan column void px8_palette(palette_device &palette) const; - void px8_io(address_map &map); - void px8_mem(address_map &map); - void px8_slave_mem(address_map &map); + void px8_io(address_map &map) ATTR_COLD; + void px8_mem(address_map &map) ATTR_COLD; + void px8_slave_mem(address_map &map) ATTR_COLD; }; #endif // MAME_EPSON_PX8_H diff --git a/src/mame/epson/qx10.cpp b/src/mame/epson/qx10.cpp index 755c108ef30..d2a78e132f6 100644 --- a/src/mame/epson/qx10.cpp +++ b/src/mame/epson/qx10.cpp @@ -105,10 +105,10 @@ class qx10_state : public driver_device private: uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; void update_memory_mapping(); @@ -155,9 +155,9 @@ class qx10_state : public driver_device UPD7220_DISPLAY_PIXELS_MEMBER( hgdc_display_pixels ); UPD7220_DRAW_TEXT_LINE_MEMBER( hgdc_draw_text ); - void qx10_io(address_map &map); - void qx10_mem(address_map &map); - void upd7220_map(address_map &map); + void qx10_io(address_map &map) ATTR_COLD; + void qx10_mem(address_map &map) ATTR_COLD; + void upd7220_map(address_map &map) ATTR_COLD; required_device m_pit_1; required_device m_pit_2; diff --git a/src/mame/ericsson/alfaskop41xx.cpp b/src/mame/ericsson/alfaskop41xx.cpp index 12d7c758953..70f317ef999 100644 --- a/src/mame/ericsson/alfaskop41xx.cpp +++ b/src/mame/ericsson/alfaskop41xx.cpp @@ -87,10 +87,10 @@ class alfaskop4110_state : public driver_device void alfaskop4110(machine_config &config); private: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_kbd_acia; @@ -151,7 +151,7 @@ class alfaskop4120_state : public driver_device void alfaskop4120(machine_config &config); private: - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_mic_pia; @@ -169,7 +169,7 @@ class alfaskop4101_state : public driver_device void alfaskop4101(machine_config &config); private: - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_mic_pia; diff --git a/src/mame/ericsson/e9161.cpp b/src/mame/ericsson/e9161.cpp index 7d2682b6228..3b9017f6481 100644 --- a/src/mame/ericsson/e9161.cpp +++ b/src/mame/ericsson/e9161.cpp @@ -31,7 +31,7 @@ class e9161_state : public driver_device void e9161(machine_config &config); private: - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_dmac; diff --git a/src/mame/ericsson/eispc.cpp b/src/mame/ericsson/eispc.cpp index bf86ac78fe3..4b254ebc314 100644 --- a/src/mame/ericsson/eispc.cpp +++ b/src/mame/ericsson/eispc.cpp @@ -136,8 +136,8 @@ class epc_state : public driver_device protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; @@ -204,8 +204,8 @@ class epc_state : public driver_device bool m_pc4; bool m_pc5; - void epc_map(address_map &map); - void epc_io(address_map &map); + void epc_map(address_map &map) ATTR_COLD; + void epc_io(address_map &map) ATTR_COLD; // FDC void check_fdc_irq(); diff --git a/src/mame/ericsson/eispc_kb.h b/src/mame/ericsson/eispc_kb.h index 10726924ebb..101e1d63eab 100644 --- a/src/mame/ericsson/eispc_kb.h +++ b/src/mame/ericsson/eispc_kb.h @@ -25,10 +25,10 @@ class eispc_keyboard_device : public device_t void rst_line_w(int state); protected: - virtual void device_start() override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; - virtual tiny_rom_entry const *device_rom_region() const override; + virtual void device_start() override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual tiny_rom_entry const *device_rom_region() const override ATTR_COLD; required_device m_mcu; required_ioport_array<6> m_rows; @@ -43,7 +43,7 @@ class eispc_keyboard_device : public device_t uint16_t m_col_select; uint8_t m_p1; - void eispc_kb_mem(address_map &map); + void eispc_kb_mem(address_map &map) ATTR_COLD; }; #endif // MAME_ERICSSON_EISPC_KB_H diff --git a/src/mame/esprit/esp250c.cpp b/src/mame/esprit/esp250c.cpp index 6871dda4851..23578020ff7 100644 --- a/src/mame/esprit/esp250c.cpp +++ b/src/mame/esprit/esp250c.cpp @@ -63,8 +63,8 @@ class esp250c_state : public driver_device void esp250c(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; @@ -76,8 +76,8 @@ class esp250c_state : public driver_device bool m_nmi_enable = false; - void mem_map(address_map &map); - void io_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; void vblank_w(int state); uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); diff --git a/src/mame/esprit/executive10.cpp b/src/mame/esprit/executive10.cpp index 28c25b5d4c2..8a9397857a9 100644 --- a/src/mame/esprit/executive10.cpp +++ b/src/mame/esprit/executive10.cpp @@ -82,8 +82,8 @@ class executive10_state : public driver_device void executive10(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; @@ -98,8 +98,8 @@ class executive10_state : public driver_device required_shared_ptr m_aram; required_region_ptr m_chargen; - void mem_map(address_map &map); - void io_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); }; diff --git a/src/mame/esprit/executive10_102_kbd.h b/src/mame/esprit/executive10_102_kbd.h index 9704f95e940..48ad1c24e76 100644 --- a/src/mame/esprit/executive10_102_kbd.h +++ b/src/mame/esprit/executive10_102_kbd.h @@ -34,11 +34,11 @@ class executive10_102_kbd_device : public device_t protected: // device_t overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; - virtual void device_reset() override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: required_device m_mcu; diff --git a/src/mame/excalibur/ivant.cpp b/src/mame/excalibur/ivant.cpp index 20a86d75ba2..4e47ca41a26 100644 --- a/src/mame/excalibur/ivant.cpp +++ b/src/mame/excalibur/ivant.cpp @@ -77,7 +77,7 @@ class ivant_state : public driver_device void igor(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: // devices/pointers diff --git a/src/mame/excalibur/ivanto.cpp b/src/mame/excalibur/ivanto.cpp index 3a6346c429b..c4e8e32339a 100644 --- a/src/mame/excalibur/ivanto.cpp +++ b/src/mame/excalibur/ivanto.cpp @@ -8,8 +8,8 @@ Excalibur Ivan The Terrible (model 701E, H8/3256 version) This is the first version, see ivant.cpp for the newer version. It was produced in a factory owned by Eric White's company (ex-CXG), hence it's not that strange that the LCD is the same as the one in CXG Sphinx Legend and Krypton Challenge. -Ron Nelson was reluctant about it, since it was the same person that bootlegged -his Chess Challenger 10. +Ron Nelson was reluctant about it, since Eric White was the same person that +bootlegged his Fidelity Chess Challenger 10. Hardware notes: - PCB label: EXCALIBUR ELECTRONICS, INC. 6/28/96, IVANT @@ -66,7 +66,7 @@ class ivanto_state : public driver_device void ivanto(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; virtual void machine_reset() override { m_dac->write(0x80); } private: @@ -85,7 +85,7 @@ class ivanto_state : public driver_device u8 m_lcd_com = 0; emu_timer *m_irqtimer; - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; // I/O handlers void lcd_pwm_w(offs_t offset, u8 data); diff --git a/src/mame/excalibur/mirage.cpp b/src/mame/excalibur/mirage.cpp index 5fe5ab68181..244d3f838a8 100644 --- a/src/mame/excalibur/mirage.cpp +++ b/src/mame/excalibur/mirage.cpp @@ -76,8 +76,8 @@ class mirage_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(on_button); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: // devices/pointers diff --git a/src/mame/excellent/aquarium.cpp b/src/mame/excellent/aquarium.cpp index b39e71ff4bf..a338390bcf4 100644 --- a/src/mame/excellent/aquarium.cpp +++ b/src/mame/excellent/aquarium.cpp @@ -107,7 +107,7 @@ class aquarium_state : public driver_device void aquarium(machine_config &config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: // memory pointers @@ -150,9 +150,9 @@ class aquarium_state : public driver_device u8 snd_bitswap(u8 scrambled_data); void aquarium_colpri_cb(u32 &colour, u32 &pri_mask); - void main_map(address_map &map); - void snd_map(address_map &map); - void snd_portmap(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void snd_map(address_map &map) ATTR_COLD; + void snd_portmap(address_map &map) ATTR_COLD; }; diff --git a/src/mame/excellent/d9final.cpp b/src/mame/excellent/d9final.cpp index 940710ad430..9cae1bcad77 100644 --- a/src/mame/excellent/d9final.cpp +++ b/src/mame/excellent/d9final.cpp @@ -51,8 +51,8 @@ class d9final_state : public driver_device void d9final(machine_config &config); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -75,8 +75,8 @@ class d9final_state : public driver_device TILE_GET_INFO_MEMBER(get_sc0_tile_info); uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void io_map(address_map &map); - void prg_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void prg_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/excellent/dblcrown.cpp b/src/mame/excellent/dblcrown.cpp index be6527fd1af..73e86792378 100644 --- a/src/mame/excellent/dblcrown.cpp +++ b/src/mame/excellent/dblcrown.cpp @@ -81,10 +81,10 @@ class dblcrown_state : public driver_device void dblcrown(machine_config &config); private: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; required_device m_maincpu; required_device m_watchdog; @@ -114,9 +114,9 @@ class dblcrown_state : public driver_device TIMER_DEVICE_CALLBACK_MEMBER(scanline_cb); - void main_map(address_map &map); - void main_io(address_map &map); - void vram_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void main_io(address_map &map) ATTR_COLD; + void vram_map(address_map &map) ATTR_COLD; uint8_t m_bank = 0; uint8_t m_irq_src = 0; diff --git a/src/mame/excellent/excellent_spr.h b/src/mame/excellent/excellent_spr.h index 6fd9b7af0a7..8485e8da04f 100644 --- a/src/mame/excellent/excellent_spr.h +++ b/src/mame/excellent/excellent_spr.h @@ -24,8 +24,8 @@ class excellent_spr_device : public device_t, public device_gfx_interface, publi protected: std::unique_ptr m_ram; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: colpri_cb_delegate m_colpri_cb; diff --git a/src/mame/excellent/gcpinbal.cpp b/src/mame/excellent/gcpinbal.cpp index b246bb8422a..33dfe7d0527 100644 --- a/src/mame/excellent/gcpinbal.cpp +++ b/src/mame/excellent/gcpinbal.cpp @@ -133,9 +133,9 @@ class gcpinbal_state : public driver_device void gcpinbal(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: // memory pointers @@ -182,7 +182,7 @@ class gcpinbal_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); TIMER_DEVICE_CALLBACK_MEMBER(scanline_cb); - void program_map(address_map &map); + void program_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/excellent/lastbank.cpp b/src/mame/excellent/lastbank.cpp index 0f0c77d297d..44df5861725 100644 --- a/src/mame/excellent/lastbank.cpp +++ b/src/mame/excellent/lastbank.cpp @@ -55,10 +55,10 @@ class lastbank_state : public driver_device ioport_value sound_status_r(); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; - virtual void main_map(address_map &map); - virtual void audio_io(address_map &map); + virtual void main_map(address_map &map) ATTR_COLD; + virtual void audio_io(address_map &map) ATTR_COLD; void sound_flags_w(uint8_t data); @@ -81,8 +81,8 @@ class lastbank_state : public driver_device void key_select_w(uint8_t data); TIMER_DEVICE_CALLBACK_MEMBER(scanline_cb); - void audio_map(address_map &map); - void tc0091lvc_map(address_map &map); + void audio_map(address_map &map) ATTR_COLD; + void tc0091lvc_map(address_map &map) ATTR_COLD; }; class fever13_state : public lastbank_state @@ -93,8 +93,8 @@ class fever13_state : public lastbank_state { } protected: - virtual void main_map(address_map &map) override; - virtual void audio_io(address_map &map) override; + virtual void main_map(address_map &map) override ATTR_COLD; + virtual void audio_io(address_map &map) override ATTR_COLD; }; diff --git a/src/mame/excellent/witch.cpp b/src/mame/excellent/witch.cpp index cd2aa6cafd0..5de587d8e99 100644 --- a/src/mame/excellent/witch.cpp +++ b/src/mame/excellent/witch.cpp @@ -265,7 +265,7 @@ class base_state : public driver_device { } protected: - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; required_device m_maincpu; required_device m_subcpu; @@ -301,7 +301,7 @@ class base_state : public driver_device void xscroll_w(uint8_t data); void yscroll_w(uint8_t data); - void common_map(address_map &map); + void common_map(address_map &map) ATTR_COLD; TILE_GET_INFO_MEMBER(get_gfx0_tile_info); uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); @@ -322,8 +322,8 @@ class witch_state : public base_state void witch(machine_config &config); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_memory_bank m_mainbank; @@ -335,9 +335,9 @@ class witch_state : public base_state uint8_t prot_read_700x(offs_t offset); TILE_GET_INFO_MEMBER(get_gfx1_tile_info); - void common_map(address_map &map); - void main_map(address_map &map); - void sub_map(address_map &map); + void common_map(address_map &map) ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; + void sub_map(address_map &map) ATTR_COLD; }; class keirinou_state : public base_state @@ -351,16 +351,16 @@ class keirinou_state : public base_state void keirinou(machine_config &config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: required_shared_ptr m_paletteram; uint8_t m_bg_bank = 0; - void common_map(address_map &map); - void main_map(address_map &map); - void sub_map(address_map &map); + void common_map(address_map &map) ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; + void sub_map(address_map &map) ATTR_COLD; void a002_w(uint8_t data); void palette_w(offs_t offset, uint8_t data); diff --git a/src/mame/exidy/carpolo.h b/src/mame/exidy/carpolo.h index ccc9acffc31..427918613b6 100644 --- a/src/mame/exidy/carpolo.h +++ b/src/mame/exidy/carpolo.h @@ -56,9 +56,9 @@ class carpolo_state : public driver_device void carpolo(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: uint8_t m_ball_screen_collision_cause = 0U; @@ -153,7 +153,7 @@ class carpolo_state : public driver_device int check_sprite_sprite_collision(int x1, int y1, int code1, int flipy1, int x2, int y2, int code2, int flipy2, int *col_x, int *col_y); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; required_device_array m_player_crash; }; diff --git a/src/mame/exidy/circus.h b/src/mame/exidy/circus.h index 99b9fa23e46..4812e9d63dd 100644 --- a/src/mame/exidy/circus.h +++ b/src/mame/exidy/circus.h @@ -33,9 +33,9 @@ class circus_state : public driver_device void circus(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; required_device m_maincpu; required_device m_samples; @@ -63,7 +63,7 @@ class circus_state : public driver_device void draw_line(bitmap_ind16 &bitmap, const rectangle &cliprect, int x1, int y1, int x2, int y2, int dotted); void draw_sprite_collision(bitmap_ind16 &bitmap, const rectangle &cliprect); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; private: void draw_fg(bitmap_ind16 &bitmap, const rectangle &cliprect); diff --git a/src/mame/exidy/exidy.cpp b/src/mame/exidy/exidy.cpp index 5661ac7db51..9f51a1ede8e 100644 --- a/src/mame/exidy/exidy.cpp +++ b/src/mame/exidy/exidy.cpp @@ -213,8 +213,8 @@ class exidy_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(coin_count_w); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; required_ioport m_dsw; required_ioport m_in0; @@ -231,7 +231,7 @@ class exidy_state : public driver_device uint8_t exidy_interrupt_r(); - void exidy_map(address_map &map); + void exidy_map(address_map &map) ATTR_COLD; private: required_shared_ptr m_videoram; @@ -268,9 +268,9 @@ class exidy_state : public driver_device void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); void check_collision(); - void venture_map(address_map &map); - void mtrap_map(address_map &map); - void pepper2_map(address_map &map); + void venture_map(address_map &map) ATTR_COLD; + void mtrap_map(address_map &map) ATTR_COLD; + void pepper2_map(address_map &map) ATTR_COLD; }; @@ -296,7 +296,7 @@ class spectar_state : public exidy_state void init_spectar(); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; void set_max_freq(int freq) { m_max_freq = freq; } @@ -317,10 +317,10 @@ class spectar_state : public exidy_state uint8_t m_tone_freq = 0; uint8_t m_tone_active = 0; - void sidetrac_map(address_map &map); - void spectar_map(address_map &map); - void rallys_map(address_map &map); - void phantoma_map(address_map &map); + void sidetrac_map(address_map &map) ATTR_COLD; + void spectar_map(address_map &map) ATTR_COLD; + void rallys_map(address_map &map) ATTR_COLD; + void phantoma_map(address_map &map) ATTR_COLD; }; @@ -338,7 +338,7 @@ class targ_state : public spectar_state void init_targ(); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; void targ_audio_1_w(uint8_t data); void targ_audio_2_w(uint8_t data); @@ -349,7 +349,7 @@ class targ_state : public spectar_state uint8_t m_port_2_last = 0; uint8_t m_tone_pointer = 0; - void targ_map(address_map &map); + void targ_map(address_map &map) ATTR_COLD; }; @@ -367,7 +367,7 @@ class teetert_state : public exidy_state ioport_value teetert_input_r(); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_ioport m_dial; @@ -387,14 +387,14 @@ class fax_state : public exidy_state void fax(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_memory_bank m_rom_bank; void fax_bank_select_w(uint8_t data); - void fax_map(address_map &map); + void fax_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/exidy/exidy440.h b/src/mame/exidy/exidy440.h index b22edbfa9b3..c3dd7b11b62 100644 --- a/src/mame/exidy/exidy440.h +++ b/src/mame/exidy/exidy440.h @@ -69,11 +69,11 @@ class exidy440_state : public driver_device void exidy440_update_firq(); void exidy440_bank_select(uint8_t bank); - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; void exidy440_video(machine_config &config); - void exidy440_map(address_map &map); + void exidy440_map(address_map &map) ATTR_COLD; required_shared_ptr m_imageram; required_shared_ptr m_spriteram; @@ -117,7 +117,7 @@ class topsecex_state : public exidy440_state void topsecex_yscroll_w(uint8_t data); uint32_t screen_update_topsecex(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: uint8_t m_topsecex_yscroll = 0U; diff --git a/src/mame/exidy/exidy440_a.h b/src/mame/exidy/exidy440_a.h index 088bec1ec11..4a27c9b1ab5 100644 --- a/src/mame/exidy/exidy440_a.h +++ b/src/mame/exidy/exidy440_a.h @@ -24,15 +24,15 @@ class exidy440_sound_device : public device_t, public device_sound_interface protected: // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_stop() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_stop() override ATTR_COLD; // sound stream update overrides virtual void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; private: - void exidy440_audio_map(address_map &map); + void exidy440_audio_map(address_map &map) ATTR_COLD; /* channel_data structure holds info about each 6844 DMA channel */ struct m6844_channel_data diff --git a/src/mame/exidy/micropolis.h b/src/mame/exidy/micropolis.h index 0e7e09661df..aa3c8a1d44e 100644 --- a/src/mame/exidy/micropolis.h +++ b/src/mame/exidy/micropolis.h @@ -46,8 +46,8 @@ class micropolis_device : public device_t 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; private: // internal state diff --git a/src/mame/exidy/sorcerer.h b/src/mame/exidy/sorcerer.h index 8031b1f92f1..612156f2ba9 100644 --- a/src/mame/exidy/sorcerer.h +++ b/src/mame/exidy/sorcerer.h @@ -97,11 +97,11 @@ class sorcerer_state : public driver_device void machine_reset_common(); uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void sorcerer_mem(address_map &map); - void sorcererb_mem(address_map &map); - void sorcerer_io(address_map &map); - void sorcerera_io(address_map &map); - void sorcererb_io(address_map &map); + void sorcerer_mem(address_map &map) ATTR_COLD; + void sorcererb_mem(address_map &map) ATTR_COLD; + void sorcerer_io(address_map &map) ATTR_COLD; + void sorcerera_io(address_map &map) ATTR_COLD; + void sorcererb_io(address_map &map) ATTR_COLD; u8 m_portfe = 0U; u8 m_keyboard_line = 0U; @@ -146,8 +146,8 @@ class sorcerer_state : public driver_device void port48_w(u8 data); void intrq4_w(bool state); bool m_halt = 0; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; u8 memory_read_byte(offs_t offset); void memory_write_byte(offs_t offset, u8 data); u8 io_read_byte(offs_t offset); @@ -166,8 +166,8 @@ class sorcererd_state : public sorcerer_state void sorcererd(machine_config &config); private: - void sorcererd_mem(address_map &map); - void sorcererd_io(address_map &map); + void sorcererd_mem(address_map &map) ATTR_COLD; + void sorcererd_io(address_map &map) ATTR_COLD; void port2c_w(u8 data); void intrq2_w(bool state); void drq2_w(bool state); @@ -175,8 +175,8 @@ class sorcererd_state : public sorcerer_state bool m_wait = false; bool m_drq_off = false; bool m_intrq_off = false; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; optional_device m_fdc; optional_device m_fdc2; }; diff --git a/src/mame/exidy/starfire.h b/src/mame/exidy/starfire.h index 79ef4647e69..9aa424f1acd 100644 --- a/src/mame/exidy/starfire.h +++ b/src/mame/exidy/starfire.h @@ -45,10 +45,10 @@ class starfire_base_state : public driver_device { } protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; void base_config(machine_config &config); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_screen; @@ -103,8 +103,8 @@ class starfire_state : public starfire_base_state void starfire(machine_config &config); private: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; required_device m_dac; @@ -163,8 +163,8 @@ class fireone_state : public starfire_base_state void fireone(machine_config &config); private: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; required_device m_pit; required_ioport_array<2> m_controls; diff --git a/src/mame/exidy/vertigo.h b/src/mame/exidy/vertigo.h index 9565ce1f81d..f016e4590a6 100644 --- a/src/mame/exidy/vertigo.h +++ b/src/mame/exidy/vertigo.h @@ -54,12 +54,12 @@ class vertigo_state : public driver_device void v_irq3_w(int state); void update_irq(uint8_t data); - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; void exidy440_audio(machine_config &config); - void vertigo_map(address_map &map); - void vertigo_motor(address_map &map); - void exidy440_audio_map(address_map &map); + void vertigo_map(address_map &map) ATTR_COLD; + void vertigo_motor(address_map &map) ATTR_COLD; + void exidy440_audio_map(address_map &map) ATTR_COLD; struct am2901 { diff --git a/src/mame/exidy/victory.h b/src/mame/exidy/victory.h index 4bd9ce87553..036fb97098c 100644 --- a/src/mame/exidy/victory.h +++ b/src/mame/exidy/victory.h @@ -63,9 +63,9 @@ class victory_state : public driver_device void update_foreground(); virtual void machine_start() override { m_lamps.resolve(); } - virtual void video_start() override; - void main_io_map(address_map &map); - void main_map(address_map &map); + virtual void video_start() override ATTR_COLD; + void main_io_map(address_map &map) ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; /* microcode state */ struct micro_t diff --git a/src/mame/f32/crospang.cpp b/src/mame/f32/crospang.cpp index 17f38c1e75a..6bbd05dec44 100644 --- a/src/mame/f32/crospang.cpp +++ b/src/mame/f32/crospang.cpp @@ -77,9 +77,9 @@ class crospang_state : public driver_device void pitapata(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: // memory pointers @@ -113,14 +113,14 @@ class crospang_state : public driver_device TILE_GET_INFO_MEMBER(get_bg_tile_info); TILE_GET_INFO_MEMBER(get_fg_tile_info); u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void base_map(address_map &map); - void bestri_map(address_map &map); - void bestria_map(address_map &map); - void crospang_map(address_map &map); - void pitapat_map(address_map &map); - void pitapata_map(address_map &map); - void sound_io_map(address_map &map); - void sound_map(address_map &map); + void base_map(address_map &map) ATTR_COLD; + void bestri_map(address_map &map) ATTR_COLD; + void bestria_map(address_map &map) ATTR_COLD; + void crospang_map(address_map &map) ATTR_COLD; + void pitapat_map(address_map &map) ATTR_COLD; + void pitapata_map(address_map &map) ATTR_COLD; + void sound_io_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/f32/f-32.cpp b/src/mame/f32/f-32.cpp index 6546337b41b..eb6bbeab373 100644 --- a/src/mame/f32/f-32.cpp +++ b/src/mame/f32/f-32.cpp @@ -78,7 +78,7 @@ class fe132_state : public driver_device protected: uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void common_map(address_map &map); + void common_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_eeprom; @@ -98,7 +98,7 @@ class mosaicf2_state : public fe132_state protected: uint32_t input_port_1_r(); - void mosaicf2_io(address_map &map); + void mosaicf2_io(address_map &map) ATTR_COLD; }; class royalpk2_state : public fe132_state @@ -115,12 +115,12 @@ class royalpk2_state : public fe132_state void royalpk2(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; - void royalpk2_io(address_map &map); - void royalpk2_map(address_map &map); - void oki_map(address_map &map); + void royalpk2_io(address_map &map) ATTR_COLD; + void royalpk2_map(address_map &map) ATTR_COLD; + void oki_map(address_map &map) ATTR_COLD; void protection_seed_w(offs_t offset, uint32_t data); uint32_t protection_response_r(); diff --git a/src/mame/f32/silvmil.cpp b/src/mame/f32/silvmil.cpp index 274d7a52966..9ae2acca51d 100644 --- a/src/mame/f32/silvmil.cpp +++ b/src/mame/f32/silvmil.cpp @@ -89,13 +89,13 @@ class silvmil_state : public driver_device TILE_GET_INFO_MEMBER(get_bg_tile_info); TILE_GET_INFO_MEMBER(get_fg_tile_info); TILEMAP_MAPPER_MEMBER(scan_rows); - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void mem_map(address_map &map); - void sound_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; }; void silvmil_state::tilebank_w(u16 data) diff --git a/src/mame/facit/f4431.cpp b/src/mame/facit/f4431.cpp index e7b10e7be42..0b659f5c6a6 100644 --- a/src/mame/facit/f4431.cpp +++ b/src/mame/facit/f4431.cpp @@ -77,8 +77,8 @@ class f4431_state : public driver_device void f4431(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; @@ -92,8 +92,8 @@ class f4431_state : public driver_device required_region_ptr m_chargen; required_ioport m_switches; - void mem_map(address_map &map); - void io_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; uint8_t latch_r(); void latch_w(uint8_t data); diff --git a/src/mame/facit/f4431_kbd.h b/src/mame/facit/f4431_kbd.h index 878795222c1..b426c8e115b 100644 --- a/src/mame/facit/f4431_kbd.h +++ b/src/mame/facit/f4431_kbd.h @@ -34,15 +34,15 @@ class f4431_kbd_device : public device_t protected: // device_t overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; - virtual void device_reset() override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: - void mem_map(address_map &map); - void io_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; uint8_t data_r(offs_t offset); void data_w(offs_t offset, uint8_t data); diff --git a/src/mame/facit/facit4440.cpp b/src/mame/facit/facit4440.cpp index a30792c317e..ad02fdd7914 100644 --- a/src/mame/facit/facit4440.cpp +++ b/src/mame/facit/facit4440.cpp @@ -67,7 +67,7 @@ class facit4440_state : public driver_device void facit4440(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: void earom_latch_w(u8 data); @@ -80,8 +80,8 @@ class facit4440_state : public driver_device MC6845_UPDATE_ROW(update_row); - void mem_map(address_map &map); - void io_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device_array m_earom; diff --git a/src/mame/fairchild/channelf.h b/src/mame/fairchild/channelf.h index 9dac1aded44..69456f8ee97 100644 --- a/src/mame/fairchild/channelf.h +++ b/src/mame/fairchild/channelf.h @@ -43,8 +43,8 @@ class channelf_state : public driver_device uint8_t m_row_reg = 0U; uint8_t m_col_reg = 0U; uint8_t port_read_with_latch(uint8_t ext, uint8_t latch_state); - virtual void video_start() override; - virtual void machine_start() override; + virtual void video_start() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; void channelf_palette(palette_device &palette) const; uint32_t screen_update_ntsc(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); uint32_t screen_update_pal(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); @@ -58,8 +58,8 @@ class channelf_state : public driver_device void sabavpl2(machine_config &config); void sabavdpl(machine_config &config); void channlf2(machine_config &config); - void channelf_io(address_map &map); - void channelf_map(address_map &map); + void channelf_io(address_map &map) ATTR_COLD; + void channelf_map(address_map &map) ATTR_COLD; }; #endif // MAME_FAIRCHILD_CHANNELF_H diff --git a/src/mame/fairchild/channelf_a.h b/src/mame/fairchild/channelf_a.h index 42790e18115..d6784ede335 100644 --- a/src/mame/fairchild/channelf_a.h +++ b/src/mame/fairchild/channelf_a.h @@ -17,7 +17,7 @@ class channelf_sound_device : public device_t, public device_sound_interface void sound_w(int mode); protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // sound stream update overrides virtual void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; diff --git a/src/mame/fairchild/f387x.cpp b/src/mame/fairchild/f387x.cpp index f2d02b9b292..bb937b3e2d7 100644 --- a/src/mame/fairchild/f387x.cpp +++ b/src/mame/fairchild/f387x.cpp @@ -35,8 +35,8 @@ class f387x_state : public driver_device u8 ipor_r(); void opor_w(u8 data); - void mem_map(address_map &map); - void io_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_rs232c; diff --git a/src/mame/fairlight/cmi.cpp b/src/mame/fairlight/cmi.cpp index 969cbbf479c..732e54180fb 100644 --- a/src/mame/fairlight/cmi.cpp +++ b/src/mame/fairlight/cmi.cpp @@ -222,8 +222,8 @@ class cmi_state : public driver_device { } - virtual void machine_reset() override; - virtual void machine_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; void set_interrupt(int cpunum, int level, int state); @@ -338,12 +338,12 @@ class cmi_state : public driver_device template void channel_irq(int state); void cmi2x(machine_config &config); - void cmi07cpu_map(address_map &map); - void maincpu1_map(address_map &map); - void maincpu2_map(address_map &map); - void midicpu_map(address_map &map); + void cmi07cpu_map(address_map &map) ATTR_COLD; + void maincpu1_map(address_map &map) ATTR_COLD; + void maincpu2_map(address_map &map) ATTR_COLD; + void midicpu_map(address_map &map) ATTR_COLD; - template void cpu_periphs_map(address_map &map); + template void cpu_periphs_map(address_map &map) ATTR_COLD; protected: required_device m_maincpu1; diff --git a/src/mame/fairlight/cmi01a.h b/src/mame/fairlight/cmi01a.h index 25f2b742352..b7305b574f8 100644 --- a/src/mame/fairlight/cmi01a.h +++ b/src/mame/fairlight/cmi01a.h @@ -33,9 +33,9 @@ class cmi01a_device : public device_t, public device_sound_interface { void set_master_osc(double mosc) { m_mosc = mosc; } protected: - 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; required_device m_irq_merger; required_device_array m_pia; diff --git a/src/mame/fairlight/cmi_ankbd.h b/src/mame/fairlight/cmi_ankbd.h index b3d9e78ce35..a78f04a8e89 100644 --- a/src/mame/fairlight/cmi_ankbd.h +++ b/src/mame/fairlight/cmi_ankbd.h @@ -25,17 +25,17 @@ class cmi_alphanumeric_keyboard_device : public device_t void cts_w(int state); protected: - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; private: u8 col_r(); void txd_w(int state); void rts_w(int state); - void alphakeys_map(address_map &map); + void alphakeys_map(address_map &map) ATTR_COLD; devcb_write_line m_txd_handler; devcb_write_line m_rts_handler; diff --git a/src/mame/fairlight/cmi_mkbd.h b/src/mame/fairlight/cmi_mkbd.h index a76e2e7edf7..998633a7fe8 100644 --- a/src/mame/fairlight/cmi_mkbd.h +++ b/src/mame/fairlight/cmi_mkbd.h @@ -112,11 +112,11 @@ class cmi_music_keyboard_device : public device_t }; protected: - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; - virtual void device_resolve_objects() override; - virtual void device_start() override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_resolve_objects() override ATTR_COLD; + virtual void device_start() override ATTR_COLD; TIMER_CALLBACK_MEMBER(scnd_update); TIMER_CALLBACK_MEMBER(velkey_down); @@ -144,7 +144,7 @@ class cmi_music_keyboard_device : public device_t template void update_dp(offs_t offset, u16 data); - void muskeys_map(address_map &map); + void muskeys_map(address_map &map) ATTR_COLD; devcb_write_line m_cmi_txd; devcb_write_line m_cmi_rts; diff --git a/src/mame/falco/f5220_kbd.h b/src/mame/falco/f5220_kbd.h index 55cfaec1624..ff35e30e62d 100644 --- a/src/mame/falco/f5220_kbd.h +++ b/src/mame/falco/f5220_kbd.h @@ -33,9 +33,9 @@ class f5220_kbd_device : public device_t, protected device_matrix_keyboard_inte protected: // device-level overrides - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; - virtual void device_reset() override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; // device_matrix_keyboard_interface overrides virtual void key_make(uint8_t row, uint8_t column) override; diff --git a/src/mame/falco/falco500.cpp b/src/mame/falco/falco500.cpp index 277a37cdc69..56869893cf6 100644 --- a/src/mame/falco/falco500.cpp +++ b/src/mame/falco/falco500.cpp @@ -118,8 +118,8 @@ class falco500_state : public driver_device void falco500(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; @@ -132,9 +132,9 @@ class falco500_state : public driver_device required_shared_ptr m_charram; required_device m_kbd; - void mem_map(address_map &map); - void bank_map(address_map &map); - void io_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void bank_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; uint8_t asic_data_r(); uint8_t asic_status_r(); diff --git a/src/mame/falco/falcots.cpp b/src/mame/falco/falcots.cpp index 863116ee146..14345f0a790 100644 --- a/src/mame/falco/falcots.cpp +++ b/src/mame/falco/falcots.cpp @@ -46,8 +46,8 @@ class falcots_state : public driver_device void ts2624(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: MC6845_UPDATE_ROW(ts1_update_row); @@ -68,10 +68,10 @@ class falcots_state : public driver_device void bell_w(u8 data); void control_w(u8 data); - void mem_map(address_map &map); - void io_map(address_map &map); - void ts1_mem_map(address_map &map); - void ts1_io_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; + void ts1_mem_map(address_map &map) ATTR_COLD; + void ts1_io_map(address_map &map) ATTR_COLD; required_device m_maincpu; optional_device m_rstbuf; diff --git a/src/mame/falco/falcots28.cpp b/src/mame/falco/falcots28.cpp index 5ffca0b3efb..83b03b49700 100644 --- a/src/mame/falco/falcots28.cpp +++ b/src/mame/falco/falcots28.cpp @@ -67,8 +67,8 @@ class ts28_state : public driver_device void ts28(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; @@ -79,14 +79,14 @@ class ts28_state : public driver_device required_region_ptr m_chargen; required_ioport_array<16> m_keys; - void mem_map(address_map &map); - void io_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; void key_scan_w(uint8_t data); void crt_brightness_w(uint8_t data); - void char_map(address_map &map); - void attr_map(address_map &map); + void char_map(address_map &map) ATTR_COLD; + void attr_map(address_map &map) ATTR_COLD; SCN2672_DRAW_CHARACTER_MEMBER(draw_character); uint8_t m_key_scan = 0; diff --git a/src/mame/fidelity/bridgeb.cpp b/src/mame/fidelity/bridgeb.cpp index f380bd4b196..3891d9b68d2 100644 --- a/src/mame/fidelity/bridgeb.cpp +++ b/src/mame/fidelity/bridgeb.cpp @@ -55,7 +55,7 @@ class bridgeb_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(input_changed) { update_pa(); } protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_maincpu; @@ -68,8 +68,8 @@ class bridgeb_state : public driver_device u8 m_inp_mux = 0; - void main_map(address_map &map); - void main_io(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void main_io(address_map &map) ATTR_COLD; template void update_digits(offs_t offset, u16 data); diff --git a/src/mame/fidelity/card.cpp b/src/mame/fidelity/card.cpp index 3d03ae9a34e..fcac986a63b 100644 --- a/src/mame/fidelity/card.cpp +++ b/src/mame/fidelity/card.cpp @@ -214,7 +214,7 @@ class card_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(start_scan); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: void brc_base(machine_config &config); @@ -233,8 +233,8 @@ class card_state : public driver_device u8 m_inp_mux = 0; // address maps - void main_map(address_map &map); - void main_io(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void main_io(address_map &map) ATTR_COLD; TIMER_DEVICE_CALLBACK_MEMBER(barcode_shift) { m_barcode >>= 1; } diff --git a/src/mame/fidelity/cc1.cpp b/src/mame/fidelity/cc1.cpp index dcb2be5e8d5..7012b6bd369 100644 --- a/src/mame/fidelity/cc1.cpp +++ b/src/mame/fidelity/cc1.cpp @@ -92,7 +92,7 @@ class cc1_state : public driver_device void cc10c(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: // devices/pointers @@ -106,9 +106,9 @@ class cc1_state : public driver_device u8 m_7seg_data = 0; // address maps - void main_map(address_map &map); - void main_io(address_map &map); - void cc10c_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void main_io(address_map &map) ATTR_COLD; + void cc10c_map(address_map &map) ATTR_COLD; // I/O handlers void update_display(); diff --git a/src/mame/fidelity/cc10.cpp b/src/mame/fidelity/cc10.cpp index 0dab4942982..f72ccf4510a 100644 --- a/src/mame/fidelity/cc10.cpp +++ b/src/mame/fidelity/cc10.cpp @@ -66,7 +66,7 @@ class ccx_state : public driver_device void ccx(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: // devices/pointers @@ -83,10 +83,10 @@ class ccx_state : public driver_device u8 m_7seg_data = 0; // address maps - void acr_map(address_map &map); - void ccx_map(address_map &map); - void main_trampoline(address_map &map); - void main_io(address_map &map); + void acr_map(address_map &map) ATTR_COLD; + void ccx_map(address_map &map) ATTR_COLD; + void main_trampoline(address_map &map) ATTR_COLD; + void main_io(address_map &map) ATTR_COLD; u8 main_trampoline_r(offs_t offset); void main_trampoline_w(offs_t offset, u8 data); diff --git a/src/mame/fidelity/cc7.cpp b/src/mame/fidelity/cc7.cpp index 75b651a9652..2a40057f030 100644 --- a/src/mame/fidelity/cc7.cpp +++ b/src/mame/fidelity/cc7.cpp @@ -77,7 +77,7 @@ class cc7_state : public driver_device void bkc(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: // devices/pointers @@ -90,8 +90,8 @@ class cc7_state : public driver_device u8 m_7seg_data = 0; // address maps - void main_map(address_map &map); - void main_io(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void main_io(address_map &map) ATTR_COLD; // I/O handlers u8 input_r(); diff --git a/src/mame/fidelity/checkc2.cpp b/src/mame/fidelity/checkc2.cpp index e6736a38ec6..9f502b51376 100644 --- a/src/mame/fidelity/checkc2.cpp +++ b/src/mame/fidelity/checkc2.cpp @@ -44,7 +44,7 @@ class cr_state : public driver_device void cr(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: // devices/pointers diff --git a/src/mame/fidelity/chesster.cpp b/src/mame/fidelity/chesster.cpp index ae6f9b6f671..551d1a245bc 100644 --- a/src/mame/fidelity/chesster.cpp +++ b/src/mame/fidelity/chesster.cpp @@ -61,7 +61,7 @@ class chesster_state : public driver_device void kishon(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; virtual void machine_reset() override { m_dac->write(0x80); } private: @@ -77,7 +77,7 @@ class chesster_state : public driver_device u8 m_speech_bank = 0; u8 m_select = 0; - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; // I/O handlers void control_w(offs_t offset, u8 data); diff --git a/src/mame/fidelity/clockdiv.h b/src/mame/fidelity/clockdiv.h index 5088d8a9895..86ef0499efa 100644 --- a/src/mame/fidelity/clockdiv.h +++ b/src/mame/fidelity/clockdiv.h @@ -23,7 +23,7 @@ class fidel_clockdiv_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(div_changed) { div_refresh(newval); } protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; virtual void machine_reset() override { div_refresh(); } virtual void device_post_load() override { div_refresh(); } diff --git a/src/mame/fidelity/csc.cpp b/src/mame/fidelity/csc.cpp index 5266844c44a..dc1b805b18f 100644 --- a/src/mame/fidelity/csc.cpp +++ b/src/mame/fidelity/csc.cpp @@ -253,7 +253,7 @@ class csc_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(rsc_init_board); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; // devices/pointers required_device m_maincpu; @@ -270,9 +270,9 @@ class csc_state : public driver_device u8 m_inp_mux = 0; // address maps - void csc_map(address_map &map); - void csce_map(address_map &map); - void rsc_map(address_map &map); + void csc_map(address_map &map) ATTR_COLD; + void csce_map(address_map &map) ATTR_COLD; + void rsc_map(address_map &map) ATTR_COLD; // I/O handlers u16 read_inputs(); diff --git a/src/mame/fidelity/dames.cpp b/src/mame/fidelity/dames.cpp index 27310db61ab..185ee867cd6 100644 --- a/src/mame/fidelity/dames.cpp +++ b/src/mame/fidelity/dames.cpp @@ -53,7 +53,7 @@ class dsc_state : public driver_device void dsc(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: // devices/pointers @@ -66,7 +66,7 @@ class dsc_state : public driver_device u8 m_inp_mux = 0; u8 m_led_select = 0; - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; void init_board(u8 data); u8 read_board_row(u8 row); diff --git a/src/mame/fidelity/desdis.cpp b/src/mame/fidelity/desdis.cpp index 9c2b4eb2dfc..44a40c11b41 100644 --- a/src/mame/fidelity/desdis.cpp +++ b/src/mame/fidelity/desdis.cpp @@ -78,7 +78,7 @@ class desdis_state : public driver_device void init_fdes2100d(); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; // devices/pointers required_device m_maincpu; @@ -92,7 +92,7 @@ class desdis_state : public driver_device u32 m_lcd_data = 0; // address maps - void fdes2100d_map(address_map &map); + void fdes2100d_map(address_map &map) ATTR_COLD; // I/O handlers void update_lcd(); @@ -131,8 +131,8 @@ class desmas_state : public desdis_state private: // address maps - void fdes2265_map(address_map &map); - void fdes2325_map(address_map &map); + void fdes2265_map(address_map &map) ATTR_COLD; + void fdes2325_map(address_map &map) ATTR_COLD; // I/O handlers, slightly different (control_w is d0 instead of d7) virtual void control_w(offs_t offset, u8 data) override { desdis_state::control_w(offset, data << 7); } diff --git a/src/mame/fidelity/eag68k.cpp b/src/mame/fidelity/eag68k.cpp index 78b66f0541f..fb68e95975e 100644 --- a/src/mame/fidelity/eag68k.cpp +++ b/src/mame/fidelity/eag68k.cpp @@ -266,8 +266,8 @@ class eag_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(in1_changed) { update_dsr(); } protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; void eag_base(machine_config &config); @@ -286,9 +286,9 @@ class eag_state : public driver_device u8 m_led_data = 0; // address maps - void eag_map(address_map &map); - void eagv7_map(address_map &map); - void eagv10_map(address_map &map); + void eag_map(address_map &map) ATTR_COLD; + void eagv7_map(address_map &map) ATTR_COLD; + void eagv10_map(address_map &map) ATTR_COLD; // I/O handlers void update_display(); @@ -336,8 +336,8 @@ class eagv5_state : public eag_state required_device m_sublatch; // address maps - void main_map(address_map &map); - void sub_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sub_map(address_map &map) ATTR_COLD; // I/O handlers void reset_subcpu_w(u8 data); @@ -362,8 +362,8 @@ class premiere_state : public eag_state void premiere(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: // devices/pointers @@ -372,7 +372,7 @@ class premiere_state : public eag_state required_memory_bank m_rombank; // address maps - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; }; void premiere_state::machine_start() @@ -412,10 +412,10 @@ class excel68k_state : public eag_state private: // address maps - void fex68k_map(address_map &map); - void fex68km2_map(address_map &map); - void fex68km3_map(address_map &map); - void fex68km4_map(address_map &map); + void fex68k_map(address_map &map) ATTR_COLD; + void fex68km2_map(address_map &map) ATTR_COLD; + void fex68km3_map(address_map &map) ATTR_COLD; + void fex68km4_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/fidelity/eldorado.cpp b/src/mame/fidelity/eldorado.cpp index 9588b70e023..83b349ccc95 100644 --- a/src/mame/fidelity/eldorado.cpp +++ b/src/mame/fidelity/eldorado.cpp @@ -45,7 +45,7 @@ class eldorado_state : public driver_device void eldorado(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: // devices/pointers diff --git a/src/mame/fidelity/elegance.cpp b/src/mame/fidelity/elegance.cpp index 5eb097f1223..37ac93b928a 100644 --- a/src/mame/fidelity/elegance.cpp +++ b/src/mame/fidelity/elegance.cpp @@ -71,7 +71,7 @@ class elegance_state : public fidel_clockdiv_state DECLARE_INPUT_CHANGED_MEMBER(change_cpu_freq); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: // devices/pointers @@ -84,7 +84,7 @@ class elegance_state : public fidel_clockdiv_state u8 m_led_data = 0; // address maps - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; // I/O handlers void update_display(); diff --git a/src/mame/fidelity/elite.cpp b/src/mame/fidelity/elite.cpp index 56d7bbd6bcd..e7dee18010b 100644 --- a/src/mame/fidelity/elite.cpp +++ b/src/mame/fidelity/elite.cpp @@ -133,8 +133,8 @@ class elite_state : public fidel_clockdiv_state DECLARE_INPUT_CHANGED_MEMBER(change_cpu_freq); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; // devices/pointers optional_device m_ppi8255; @@ -152,10 +152,10 @@ class elite_state : public fidel_clockdiv_state u8 m_inp_mux = 0; // address maps - void pc_map(address_map &map); - void eas_map(address_map &map); - void eag_map(address_map &map); - void eag2100_map(address_map &map); + void pc_map(address_map &map) ATTR_COLD; + void eas_map(address_map &map) ATTR_COLD; + void eag_map(address_map &map) ATTR_COLD; + void eag2100_map(address_map &map) ATTR_COLD; // I/O handlers void update_display(); diff --git a/src/mame/fidelity/excel.cpp b/src/mame/fidelity/excel.cpp index cf42eec5682..12bac5fe7a8 100644 --- a/src/mame/fidelity/excel.cpp +++ b/src/mame/fidelity/excel.cpp @@ -226,7 +226,7 @@ class excel_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(fexcelp_change_cpu_freq); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: // devices/pointers @@ -244,8 +244,8 @@ class excel_state : public driver_device u8 m_speech_bank = 0; // address maps - void fexcel_map(address_map &map); - void fexcelb_map(address_map &map); + void fexcel_map(address_map &map) ATTR_COLD; + void fexcelb_map(address_map &map) ATTR_COLD; // I/O handlers void speech_w(u8 data, u8 mask); diff --git a/src/mame/fidelity/msc.cpp b/src/mame/fidelity/msc.cpp index 1aba1a76e75..2b43e680b0e 100644 --- a/src/mame/fidelity/msc.cpp +++ b/src/mame/fidelity/msc.cpp @@ -58,7 +58,7 @@ class msc_state : public driver_device void msc(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: // devices/pointers @@ -71,7 +71,7 @@ class msc_state : public driver_device u8 m_led_select = 0; u16 m_inp_mux = 0; - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; // I/O handlers void update_display(); diff --git a/src/mame/fidelity/phantom.cpp b/src/mame/fidelity/phantom.cpp index 455ee0b360f..3f9b700b049 100644 --- a/src/mame/fidelity/phantom.cpp +++ b/src/mame/fidelity/phantom.cpp @@ -83,8 +83,8 @@ class phantom_state : public driver_device void init_phantom(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; // devices/pointers required_device m_maincpu; @@ -111,7 +111,7 @@ class phantom_state : public driver_device u8 m_pieces_map[0x80][0x80] = { }; // address maps - virtual void main_map(address_map &map); + virtual void main_map(address_map &map) ATTR_COLD; // I/O handlers void update_lcd(u8 select); @@ -206,14 +206,14 @@ class chessterp_state : public phantom_state void cphantom(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_speech; output_finder<> m_eye_led; - virtual void main_map(address_map &map) override; + virtual void main_map(address_map &map) override ATTR_COLD; TIMER_DEVICE_CALLBACK_MEMBER(nmi_timer); virtual void control_w(offs_t offset, u8 data) override; diff --git a/src/mame/fidelity/sc12.cpp b/src/mame/fidelity/sc12.cpp index 52ad13c2721..b9fca19cec3 100644 --- a/src/mame/fidelity/sc12.cpp +++ b/src/mame/fidelity/sc12.cpp @@ -95,7 +95,7 @@ class sc12_state : public fidel_clockdiv_state DECLARE_INPUT_CHANGED_MEMBER(change_cpu_freq); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: // devices/pointers @@ -107,7 +107,7 @@ class sc12_state : public fidel_clockdiv_state u8 m_inp_mux = 0; // address maps - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; // I/O handlers void control_w(u8 data); diff --git a/src/mame/fidelity/sc6.cpp b/src/mame/fidelity/sc6.cpp index e03b74d544f..fec2efe5c64 100644 --- a/src/mame/fidelity/sc6.cpp +++ b/src/mame/fidelity/sc6.cpp @@ -139,8 +139,8 @@ class sc6_state : public driver_device void gambitv(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: // devices/pointers @@ -157,8 +157,8 @@ class sc6_state : public driver_device u8 m_speech_data = 0; // address maps - void msc_map(address_map &map); - void sc6_map(address_map &map); + void msc_map(address_map &map) ATTR_COLD; + void sc6_map(address_map &map) ATTR_COLD; // I/O handlers void mux_w(u8 data); diff --git a/src/mame/fidelity/sc8.cpp b/src/mame/fidelity/sc8.cpp index 017da0632ba..e4483e38929 100644 --- a/src/mame/fidelity/sc8.cpp +++ b/src/mame/fidelity/sc8.cpp @@ -53,7 +53,7 @@ class scc_state : public driver_device void scc(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: // devices/pointers @@ -67,8 +67,8 @@ class scc_state : public driver_device u8 m_led_data = 0; // address maps - void main_map(address_map &map); - void main_io(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void main_io(address_map &map) ATTR_COLD; // I/O handlers u8 input_r(); diff --git a/src/mame/fidelity/sc9.cpp b/src/mame/fidelity/sc9.cpp index f1ec5b9644e..07b70967dde 100644 --- a/src/mame/fidelity/sc9.cpp +++ b/src/mame/fidelity/sc9.cpp @@ -85,7 +85,7 @@ class sc9_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(sc9c_change_cpu_freq); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; // devices/pointers required_device m_maincpu; @@ -98,8 +98,8 @@ class sc9_state : public driver_device u8 m_led_data = 0; // address maps - void sc9_map(address_map &map); - void sc9d_map(address_map &map); + void sc9_map(address_map &map) ATTR_COLD; + void sc9d_map(address_map &map) ATTR_COLD; // I/O handlers void control_w(u8 data); diff --git a/src/mame/fidelity/vcc.cpp b/src/mame/fidelity/vcc.cpp index eaad46376cc..775adaed309 100644 --- a/src/mame/fidelity/vcc.cpp +++ b/src/mame/fidelity/vcc.cpp @@ -151,7 +151,7 @@ class vcc_state : public driver_device void vcc(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: // devices/pointers @@ -167,8 +167,8 @@ class vcc_state : public driver_device u8 m_inp_mux = 0; // address maps - void main_map(address_map &map); - void main_io(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void main_io(address_map &map) ATTR_COLD; // I/O handlers void update_display(); diff --git a/src/mame/fidelity/vsc.cpp b/src/mame/fidelity/vsc.cpp index d7cfcdaa623..8de87a4354e 100644 --- a/src/mame/fidelity/vsc.cpp +++ b/src/mame/fidelity/vsc.cpp @@ -184,7 +184,7 @@ class vsc_state : public driver_device void vsc(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: // devices/pointers @@ -203,8 +203,8 @@ class vsc_state : public driver_device u8 m_kp_mux = 0; // address maps - void main_map(address_map &map); - void main_io(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void main_io(address_map &map) ATTR_COLD; u8 main_io_trampoline_r(offs_t offset); void main_io_trampoline_w(offs_t offset, u8 data); diff --git a/src/mame/force/miniforce.cpp b/src/mame/force/miniforce.cpp index 2d7ee1a5702..8eaac6f6796 100644 --- a/src/mame/force/miniforce.cpp +++ b/src/mame/force/miniforce.cpp @@ -128,8 +128,8 @@ class miniforce_state : public driver_device void miniforce(machine_config &config); private: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; }; /* Start it up */ diff --git a/src/mame/fujitsu/fm7.h b/src/mame/fujitsu/fm7.h index ab23c0582ec..02e46a20e48 100644 --- a/src/mame/fujitsu/fm7.h +++ b/src/mame/fujitsu/fm7.h @@ -138,8 +138,8 @@ class fm7_state : public driver_device uint8_t busy = 0U; }; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; virtual void fm7_alu_function(uint32_t offset) { } virtual void fm7_mmr_refresh(address_space &space) { } @@ -199,12 +199,12 @@ class fm7_state : public driver_device uint32_t screen_update_fm7(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void fm16_io(address_map &map); - void fm16_mem(address_map &map); - void fm16_sub_mem(address_map &map); - void fm7_mem(address_map &map); - void fm7_sub_mem(address_map &map); - void fm8_mem(address_map &map); + void fm16_io(address_map &map) ATTR_COLD; + void fm16_mem(address_map &map) ATTR_COLD; + void fm16_sub_mem(address_map &map) ATTR_COLD; + void fm7_mem(address_map &map) ATTR_COLD; + void fm7_sub_mem(address_map &map) ATTR_COLD; + void fm8_mem(address_map &map) ATTR_COLD; optional_shared_ptr m_shared_ram; optional_shared_ptr m_a15_ram; @@ -328,7 +328,7 @@ class fm77_state : public fm7_state uint8_t mode = 0U; }; - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; DECLARE_MACHINE_START(fm77av); @@ -376,9 +376,9 @@ class fm77_state : public fm7_state uint32_t av_line_set_pixel(int x, int y); void av_line_draw(); - void fm77av_mem(address_map &map); - void fm77av_sub_mem(address_map &map); - void fm7_banked_mem(address_map &map); + void fm77av_mem(address_map &map) ATTR_COLD; + void fm77av_sub_mem(address_map &map) ATTR_COLD; + void fm7_banked_mem(address_map &map) ATTR_COLD; required_device_array m_avbank; optional_device m_ym; @@ -409,15 +409,15 @@ class fm11_state : public fm77_state void fm11(machine_config &config); protected: - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; private: DECLARE_MACHINE_START(fm11); - void fm11_mem(address_map &map); - void fm11_sub_mem(address_map &map); - void fm11_x86_io(address_map &map); - void fm11_x86_mem(address_map &map); + void fm11_mem(address_map &map) ATTR_COLD; + void fm11_sub_mem(address_map &map) ATTR_COLD; + void fm11_x86_io(address_map &map) ATTR_COLD; + void fm11_x86_mem(address_map &map) ATTR_COLD; required_device m_x86; }; diff --git a/src/mame/fujitsu/fmt_icmem.h b/src/mame/fujitsu/fmt_icmem.h index fd8309143ca..440216d626d 100644 --- a/src/mame/fujitsu/fmt_icmem.h +++ b/src/mame/fujitsu/fmt_icmem.h @@ -43,8 +43,8 @@ class fmt_icmem_device : public device_t, public device_memcard_image_interface protected: // device_t implementation - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; private: required_ioport m_writeprotect; diff --git a/src/mame/fujitsu/fmtowns.h b/src/mame/fujitsu/fmtowns.h index 1f5eb4345a7..90cc3861eee 100644 --- a/src/mame/fujitsu/fmtowns.h +++ b/src/mame/fujitsu/fmtowns.h @@ -141,20 +141,20 @@ class towns_state : public driver_device protected: uint16_t m_towns_machine_id; // default is 0x0101 - void marty_mem(address_map &map); - void pcm_mem(address_map &map); - void towns16_io(address_map &map); - void towns_io(address_map &map); - void towns_1g_io(address_map &map); - void towns2_io(address_map &map); - void townsux_io(address_map &map); - void towns_mem(address_map &map); - void ux_mem(address_map &map); + void marty_mem(address_map &map) ATTR_COLD; + void pcm_mem(address_map &map) ATTR_COLD; + void towns16_io(address_map &map) ATTR_COLD; + void towns_io(address_map &map) ATTR_COLD; + void towns_1g_io(address_map &map) ATTR_COLD; + void towns2_io(address_map &map) ATTR_COLD; + void townsux_io(address_map &map) ATTR_COLD; + void towns_mem(address_map &map) ATTR_COLD; + void ux_mem(address_map &map) ATTR_COLD; virtual void driver_start() override; - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; required_device m_ram; required_device m_maincpu; diff --git a/src/mame/funtech/supracan.cpp b/src/mame/funtech/supracan.cpp index 14142b4e257..31738c6a5bf 100644 --- a/src/mame/funtech/supracan.cpp +++ b/src/mame/funtech/supracan.cpp @@ -138,13 +138,13 @@ class supracan_state : public driver_device void supracan(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: - void main_map(address_map &map); - void sound_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; uint16_t _68k_soundram_r(offs_t offset, uint16_t mem_mask = ~0); void _68k_soundram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); @@ -282,7 +282,7 @@ class supracan_state : public driver_device void set_sound_irq(uint8_t bit, uint8_t state); - void host_um6619_map(address_map &map); + void host_um6619_map(address_map &map) ATTR_COLD; u8 m_irq_mask = 0; u16 m_frc_control = 0; u16 m_frc_frequency = 0; @@ -324,51 +324,9 @@ void supracan_state::get_tilemap_info_common(int layer, tile_data &tileinfo, int count += base; - uint16_t tile_bank = 0; - uint16_t palette_shift = 0; - // TODO: convert this to a static table, verify case 7 - switch (gfx_mode) - { - case 7: - tile_bank = 0x1c00; - break; - - // gamblord - case 6: - tile_bank = 0x0c00; - break; - - case 4: - tile_bank = 0x800; - break; - - case 2: - tile_bank = 0x400; - break; - - case 1: - // formduel gameplay (for layer 2 -> 0x1400) - tile_bank = 0x200; - break; - - case 0: - tile_bank = 0; - break; - - default: - LOGMASKED(LOG_UNKNOWNS, "Unsupported tilemap mode: %d\n", (m_tilemap_mode[layer] & 0x7000) >> 12); - break; - } - - if (region == 0) - tile_bank >>= 1; - + const u16 tile_bank = gfx_mode << (8 + region); // speedyd and slghtsag hints that text layer color offsets in steps of 4 - if (region == 2) - palette_shift = 2; - - if (layer == 2) - tile_bank = (0x1000 | (tile_bank << 1)) & 0x1c00; + const u16 palette_shift = (region == 2) ? 2 : 0; u8 palette_base = ((vram[count] & 0xf000) >> 12); @@ -777,6 +735,9 @@ void supracan_state::draw_sprite_tile_masked(bitmap_ind16 &dst, bitmap_ind8 &mas const uint32_t srcdata = *srcp; if (srcdata != 0 && *maskp != 0) { + // TODO: this is really color mix + // rebelst select attack screens draws with this path with no "*maskp" set, + // and expect *dstp to add up not just set. *dstp = (uint16_t)(srcdata + color); *priop = (*priop & 0xf0) | (uint8_t)prio; } @@ -833,6 +794,10 @@ void supracan_state::draw_sprites(bitmap_ind16 &bitmap, bitmap_ind8 &maskmap, bi uint32_t start_word = (m_sprite_base_addr >> 1) + skip_count * 4; uint32_t end_word = start_word + (m_sprite_count - skip_count) * 4; int region = (m_sprite_flags & 1) ? 0 : 1; // 8bpp : 4bpp + // As per tilemaps banking is halved with 8bpp sprites + // - rebelst during gameplay + // - A'Can logo and slghtsag don't set any bank number. + const u16 bank_size = 0x100 << region; static const uint16_t VRAM_MASK = 0xffff; @@ -864,7 +829,7 @@ void supracan_state::draw_sprites(bitmap_ind16 &bitmap, bitmap_ind8 &maskmap, bi // magipool also wants latter, for the shot markers to work. if (sprite_ptr & 0x8000 || (xsize == 1 && ysize == 1)) { - int tile = (bank * 0x200) + (sprite_ptr & 0x03ff); + int tile = (bank * bank_size) + (sprite_ptr & 0x03ff); int palette = (sprite_ptr & 0xf000) >> 12; // this might not be correct, due to the & 0x8000 condition above this would force all single tile sprites to be using palette >= 0x8 only @@ -883,19 +848,12 @@ void supracan_state::draw_sprites(bitmap_ind16 &bitmap, bitmap_ind8 &maskmap, bi { // I think the xsize must influence the ysize somehow, there are too many conflicting cases otherwise // there don't appear to be any special markers in the actual looked up tile data to indicate skip / end of list - - //if (((vram[i + 0] & 0x1e00) >> 9) == test_target) - //{ - // ysize = test_value; - //} - - for (int ytile = 0; ytile < ysize; ytile++) { for (int xtile = 0; xtile < xsize; xtile++) { uint16_t data = vram[((sprite_ptr << 1) + ytile * xsize + xtile) & VRAM_MASK]; - int tile = (bank * 0x200) + (data & 0x03ff); + int tile = (bank * bank_size) + (data & 0x03ff); int palette = (data & 0xf000) >> 12; int xpos = sprite_xflip ? (x - (xtile + 1) * 8 + xsize * 8) : (x + xtile * 8); @@ -1062,7 +1020,7 @@ uint32_t supracan_state::screen_update(screen_device &screen, bitmap_ind16 &bitm // - boomzoo (title) wants 0x00 // - sangofgt (1st fighter stage) wants 0x00 // - sonevil (intro) wants 0x00 - // TODO: layer overlay happens from mixing registers (A'Can BIOS sets 0x02 there) + // - back layer overlay happens from mixing registers (A'Can BIOS sets 0x02 there) bitmap.fill(0x00, cliprect); draw_sprites(m_sprite_final_bitmap, m_sprite_mask_bitmap, m_prio_bitmap, cliprect); @@ -1378,7 +1336,7 @@ template void supracan_state::dma_w(offs_t offset, uint16_t data, for (int i = 0; i <= m_dma_regs.count[ch]; i++) { // staiwbbl wants to fill both VRAM and work RAM at startup, - // and expects to transfer word for VRAM, byte for work RAM. + // and expects to transfer full count size for VRAM, half for work RAM. // Not providing this will cause all kinds of video and logic glitches. // TODO: pinpoint DMA modes here (at least upper bits 14-13 should do) if (data == 0xa800) @@ -1390,7 +1348,9 @@ template void supracan_state::dma_w(offs_t offset, uint16_t data, } else { - mem.write_byte(m_dma_regs.dest[ch], mem.read_byte(m_dma_regs.source[ch])); + // rebelst expects D8-D15 to be transfered for the ROZ layer hex grids. + const u8 src_byte = m_dma_regs.dest[ch] & 1; + mem.write_byte(m_dma_regs.dest[ch], mem.read_byte(m_dma_regs.source[ch] + src_byte)); m_dma_regs.dest[ch] += dest_dec ? -1 : 1; } } diff --git a/src/mame/funtech/umc6619_sound.h b/src/mame/funtech/umc6619_sound.h index 17dff54dc46..d928b5ba227 100644 --- a/src/mame/funtech/umc6619_sound.h +++ b/src/mame/funtech/umc6619_sound.h @@ -25,8 +25,8 @@ class umc6619_sound_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; // sound stream update overrides virtual void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; diff --git a/src/mame/funtech/umc6650.h b/src/mame/funtech/umc6650.h index e3ae9557e50..ed244471086 100644 --- a/src/mame/funtech/umc6650.h +++ b/src/mame/funtech/umc6650.h @@ -15,15 +15,15 @@ class umc6650_device : public device_t, public device_memory_interface void write(offs_t offset, u8 data); private: - 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 space_config_vector memory_space_config() const override; - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; required_memory_region m_romkey; address_space_config m_space_io_config; - void internal_map(address_map &map); + void internal_map(address_map &map) ATTR_COLD; address_space *m_space_io; u8 m_address; }; diff --git a/src/mame/funworld/4roses.cpp b/src/mame/funworld/4roses.cpp index 30c368fa0c1..180825bc93b 100644 --- a/src/mame/funworld/4roses.cpp +++ b/src/mame/funworld/4roses.cpp @@ -227,8 +227,8 @@ class _4roses_state : public funworld_state private: uint8_t _4roses_opcode_r(offs_t offset); - void _4roses_map(address_map &map); - void _4roses_opcodes_map(address_map &map); + void _4roses_map(address_map &map) ATTR_COLD; + void _4roses_opcodes_map(address_map &map) ATTR_COLD; }; class rugby_state : public _4roses_state @@ -245,8 +245,8 @@ class rugby_state : public _4roses_state private: uint8_t rugby_opcode_r(offs_t offset); - void rugby_map(address_map &map); - void rugby_opcodes_map(address_map &map); + void rugby_map(address_map &map) ATTR_COLD; + void rugby_opcodes_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/funworld/funworld.cpp b/src/mame/funworld/funworld.cpp index c4b0cf7778f..ff6f68b1f7b 100644 --- a/src/mame/funworld/funworld.cpp +++ b/src/mame/funworld/funworld.cpp @@ -3668,7 +3668,7 @@ class multiwina_state : public funworld_state uint8_t opcode_r(offs_t offset); - void opcodes_map(address_map& map); + void opcodes_map(address_map &map) ATTR_COLD; }; uint8_t multiwina_state::opcode_r(offs_t offset) @@ -3704,7 +3704,7 @@ class jokercrd_state : public funworld_state private: uint8_t jokercrd_opcode_r(offs_t offset); - void jokercrd_opcodes_map(address_map& map); + void jokercrd_opcodes_map(address_map &map) ATTR_COLD; }; uint8_t jokercrd_state::jokercrd_opcode_r(offs_t offset) diff --git a/src/mame/funworld/funworld.h b/src/mame/funworld/funworld.h index fc1f3c3289f..59577125209 100644 --- a/src/mame/funworld/funworld.h +++ b/src/mame/funworld/funworld.h @@ -54,12 +54,12 @@ class funworld_state : public driver_device void funworld_lamp_b_w(uint8_t data); virtual void machine_start() override { m_lamps.resolve(); } - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; void funworld_palette(palette_device &palette) const; uint32_t screen_update_funworld(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); TILE_GET_INFO_MEMBER(get_bg_tile_info); - void magicrd2_map(address_map &map); + void magicrd2_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_gfxdecode; @@ -72,14 +72,14 @@ class funworld_state : public driver_device uint8_t funquiz_ay8910_a_r(); uint8_t funquiz_ay8910_b_r(); - void clubcard_map(address_map &map); - void cuoreuno_map(address_map &map); - void funquiz_map(address_map &map); - void funworld_map(address_map &map); - void fw_brick_map(address_map &map); - void gratispk_map(address_map &map); - void saloon_map(address_map &map); - void witchryl_map(address_map &map); + void clubcard_map(address_map &map) ATTR_COLD; + void cuoreuno_map(address_map &map) ATTR_COLD; + void funquiz_map(address_map &map) ATTR_COLD; + void funworld_map(address_map &map) ATTR_COLD; + void fw_brick_map(address_map &map) ATTR_COLD; + void gratispk_map(address_map &map) ATTR_COLD; + void saloon_map(address_map &map) ATTR_COLD; + void witchryl_map(address_map &map) ATTR_COLD; required_shared_ptr m_videoram; required_shared_ptr m_colorram; @@ -100,7 +100,7 @@ class magicrd2_state : public funworld_state void init_magicd2c(); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; }; @@ -112,11 +112,11 @@ class lunapark_state : public funworld_state void lunapark(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: - void lunapark_map(address_map &map); + void lunapark_map(address_map &map) ATTR_COLD; }; @@ -132,12 +132,12 @@ class chinatow_state : public funworld_state void init_rcdinch(); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: uint8_t chinatow_r_32f0(offs_t offset); - void chinatow_map(address_map &map); + void chinatow_map(address_map &map) ATTR_COLD; }; @@ -152,12 +152,12 @@ class multiwin_state : public funworld_state void driver_init(); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: uint8_t multiwin_opcode_r(offs_t offset); - void multiwin_opcodes_map(address_map& map); + void multiwin_opcodes_map(address_map &map) ATTR_COLD; }; class royalcrdf_state : public funworld_state @@ -172,8 +172,8 @@ class royalcrdf_state : public funworld_state private: uint8_t royalcrdf_opcode_r(offs_t offset); - void royalcrdf_map(address_map& map); - void royalcrdf_opcodes_map(address_map& map); + void royalcrdf_map(address_map &map) ATTR_COLD; + void royalcrdf_opcodes_map(address_map &map) ATTR_COLD; }; class intergames_state : public funworld_state @@ -194,7 +194,7 @@ class intergames_state : public funworld_state protected: - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; private: uint8_t crtc_or_psg_r(offs_t offset); @@ -202,7 +202,7 @@ class intergames_state : public funworld_state uint8_t prot_r(offs_t offset); void prot_w(offs_t offset, uint8_t data); - void intergames_map(address_map &map); + void intergames_map(address_map &map) ATTR_COLD; required_device m_crtc; required_device m_ay8910; diff --git a/src/mame/funworld/photoply.cpp b/src/mame/funworld/photoply.cpp index 2b38e13aceb..0b5dcd3c24f 100644 --- a/src/mame/funworld/photoply.cpp +++ b/src/mame/funworld/photoply.cpp @@ -94,8 +94,8 @@ class photoply_state : public driver_device static void winbond_superio_config(device_t *device); - void main_io(address_map &map); - void main_map(address_map &map); + void main_io(address_map &map) ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; }; #if 0 diff --git a/src/mame/funworld/photoplys.cpp b/src/mame/funworld/photoplys.cpp index 7fb8294a463..b48a8996247 100644 --- a/src/mame/funworld/photoplys.cpp +++ b/src/mame/funworld/photoplys.cpp @@ -34,7 +34,7 @@ class photoplays_state : public driver_device private: required_device m_maincpu; - void photoplays_map(address_map &map); + void photoplays_map(address_map &map) ATTR_COLD; }; void photoplays_state::photoplays_map(address_map &map) diff --git a/src/mame/funworld/photoplysx.cpp b/src/mame/funworld/photoplysx.cpp index 9e4826e350c..2cbcc9ef453 100644 --- a/src/mame/funworld/photoplysx.cpp +++ b/src/mame/funworld/photoplysx.cpp @@ -43,7 +43,7 @@ class photoplaysx_state : public driver_device private: required_device m_maincpu; - void photoplaysx_map(address_map &map); + void photoplaysx_map(address_map &map) ATTR_COLD; }; void photoplaysx_state::photoplaysx_map(address_map &map) diff --git a/src/mame/funworld/snookr10.h b/src/mame/funworld/snookr10.h index 6f25eeeee2b..37da6942231 100644 --- a/src/mame/funworld/snookr10.h +++ b/src/mame/funworld/snookr10.h @@ -41,12 +41,12 @@ class snookr10_state : public driver_device void apple10_palette(palette_device &palette) const; void crystalc_palette(palette_device &palette) const; uint32_t screen_update_snookr10(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void crystalc_map(address_map &map); - void snookr10_map(address_map &map); - void tenballs_map(address_map &map); + void crystalc_map(address_map &map) ATTR_COLD; + void snookr10_map(address_map &map) ATTR_COLD; + void tenballs_map(address_map &map) ATTR_COLD; virtual void machine_start() override { m_lamps.resolve(); } - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; int m_outportl = 0; int m_outporth = 0; diff --git a/src/mame/funworld/supercrd.cpp b/src/mame/funworld/supercrd.cpp index 024e90f2947..761c46146df 100644 --- a/src/mame/funworld/supercrd.cpp +++ b/src/mame/funworld/supercrd.cpp @@ -246,8 +246,8 @@ class supercrd_state : public driver_device void init_supst(); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_shared_ptr m_videoram; @@ -265,9 +265,9 @@ class supercrd_state : public driver_device TILE_GET_INFO_MEMBER(get_bg_tile_info); void palette(palette_device &palette) const; uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void prg_map(address_map &map); - void io_map(address_map &map); - void decrypted_opcodes_map(address_map &map); + void prg_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; + void decrypted_opcodes_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/fuuki/fuukifg.h b/src/mame/fuuki/fuukifg.h index e53e40c1ac4..21bc4b6c9c6 100644 --- a/src/mame/fuuki/fuukifg.h +++ b/src/mame/fuuki/fuukifg.h @@ -22,8 +22,8 @@ class fuukivid_device : public device_t, public device_gfx_interface, public dev void draw_sprites(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, bool flip_screen, u16 *spriteram, u32 size); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: tile_delegate m_tile_cb; diff --git a/src/mame/fuuki/fuukifg2.h b/src/mame/fuuki/fuukifg2.h index 0712d904023..05f3d9b5171 100644 --- a/src/mame/fuuki/fuukifg2.h +++ b/src/mame/fuuki/fuukifg2.h @@ -36,13 +36,13 @@ class fuuki16_state : public driver_device void fuuki16(machine_config &config); private: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; - void main_map(address_map &map); - void sound_io_map(address_map &map); - void sound_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_io_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; TIMER_CALLBACK_MEMBER(level1_interrupt); TIMER_CALLBACK_MEMBER(vblank_interrupt); diff --git a/src/mame/fuuki/fuukifg3.h b/src/mame/fuuki/fuukifg3.h index ea370111c1e..53e35db5933 100644 --- a/src/mame/fuuki/fuukifg3.h +++ b/src/mame/fuuki/fuukifg3.h @@ -42,13 +42,13 @@ class fuuki32_state : public driver_device void fuuki32(machine_config &config); private: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; - void main_map(address_map &map); - void sound_io_map(address_map &map); - void sound_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_io_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; TIMER_CALLBACK_MEMBER(level1_interrupt); TIMER_CALLBACK_MEMBER(vblank_interrupt); diff --git a/src/mame/gaelco/atvtrack.cpp b/src/mame/gaelco/atvtrack.cpp index 800803c4475..4406296854b 100644 --- a/src/mame/gaelco/atvtrack.cpp +++ b/src/mame/gaelco/atvtrack.cpp @@ -132,9 +132,9 @@ class atvtrack_state : public driver_device void ioport_w(offs_t offset, u64 data); u32 gpu_r(offs_t offset); void gpu_w(offs_t offset, u32 data); - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; u32 screen_update_atvtrack(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); inline u32 decode64_32(offs_t offset64, u64 data, u64 mem_mask, offs_t &offset32); [[maybe_unused]] void logbinary(u32 data, int high, int low); @@ -151,10 +151,10 @@ class atvtrack_state : public driver_device void gpu_irq_test(); void gpu_irq_set(int); - void atvtrack_main_map(address_map &map); - void atvtrack_main_port(address_map &map); - void atvtrack_sub_map(address_map &map); - void atvtrack_sub_port(address_map &map); + void atvtrack_main_map(address_map &map) ATTR_COLD; + void atvtrack_main_port(address_map &map) ATTR_COLD; + void atvtrack_sub_map(address_map &map) ATTR_COLD; + void atvtrack_sub_port(address_map &map) ATTR_COLD; bool m_slaverun = false; }; @@ -169,11 +169,11 @@ class smashdrv_state : public atvtrack_state void smashdrv(machine_config &config); private: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; - void smashdrv_main_map(address_map &map); - void smashdrv_main_port(address_map &map); + void smashdrv_main_map(address_map &map) ATTR_COLD; + void smashdrv_main_port(address_map &map) ATTR_COLD; }; void atvtrack_state::logbinary(u32 data, int high=31, int low=0) diff --git a/src/mame/gaelco/bigkarnk_ms.cpp b/src/mame/gaelco/bigkarnk_ms.cpp index b360189ab69..056ed04ea65 100644 --- a/src/mame/gaelco/bigkarnk_ms.cpp +++ b/src/mame/gaelco/bigkarnk_ms.cpp @@ -321,7 +321,7 @@ class bigkarnk_ms_state : public driver_device void init_bigkarnkm(); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -340,14 +340,14 @@ class bigkarnk_ms_state : public driver_device required_shared_ptr m_scrollregs; required_device m_soundrom; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void bigkarnkm_map(address_map &map); - void sound_map(address_map &map); - void soundrom_map(address_map &map); + void bigkarnkm_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; + void soundrom_map(address_map &map) ATTR_COLD; uint16_t vram1_r(offs_t offset, uint16_t mem_mask); uint16_t vram2_r(offs_t offset, uint16_t mem_mask); diff --git a/src/mame/gaelco/blmbycar.cpp b/src/mame/gaelco/blmbycar.cpp index fdf0a662941..38cbe811502 100644 --- a/src/mame/gaelco/blmbycar.cpp +++ b/src/mame/gaelco/blmbycar.cpp @@ -65,12 +65,12 @@ class base_state : public driver_device void base(machine_config &config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; required_device m_maincpu; required_memory_bank m_okibank; - void common_map(address_map &map); + void common_map(address_map &map) ATTR_COLD; private: // devices @@ -92,7 +92,7 @@ class base_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void draw_sprites( screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect ); - void oki_map(address_map &map); + void oki_map(address_map &map) ATTR_COLD; }; class blmbycar_state : public base_state @@ -110,8 +110,8 @@ class blmbycar_state : public base_state void init_blmbycar(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_ioport m_pot_wheel_io; @@ -126,7 +126,7 @@ class blmbycar_state : public base_state uint16_t pot_wheel_r(); uint16_t opt_wheel_r(); - void prg_map(address_map &map); + void prg_map(address_map &map) ATTR_COLD; }; class watrball_state : public base_state @@ -140,15 +140,15 @@ class watrball_state : public base_state void watrball(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: uint8_t m_retvalue = 0; uint16_t unk_r(); - void prg_map(address_map &map); + void prg_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/gaelco/gaelco.h b/src/mame/gaelco/gaelco.h index dd82fe7c238..d62897ee838 100644 --- a/src/mame/gaelco/gaelco.h +++ b/src/mame/gaelco/gaelco.h @@ -69,7 +69,7 @@ class gaelco_state : public driver_device template TILE_GET_INFO_MEMBER(get_tile_info); - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; DECLARE_VIDEO_START(bigkarnk); DECLARE_VIDEO_START(maniacsq); DECLARE_VIDEO_START(squash); @@ -79,12 +79,12 @@ class gaelco_state : public driver_device uint32_t screen_update_thoop(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void draw_sprites( screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect ); - void bigkarnk_map(address_map &map); - void bigkarnk_snd_map(address_map &map); - void maniacsq_map(address_map &map); - void oki_map(address_map &map); - void squash_map(address_map &map); - void thoop_map(address_map &map); + void bigkarnk_map(address_map &map) ATTR_COLD; + void bigkarnk_snd_map(address_map &map) ATTR_COLD; + void maniacsq_map(address_map &map) ATTR_COLD; + void oki_map(address_map &map) ATTR_COLD; + void squash_map(address_map &map) ATTR_COLD; + void thoop_map(address_map &map) ATTR_COLD; /* per-game configuration */ uint8_t m_sprite_palette_force_high = 0; diff --git a/src/mame/gaelco/gaelco2.h b/src/mame/gaelco/gaelco2.h index ed03d41ebe1..cf36de82b3c 100644 --- a/src/mame/gaelco/gaelco2.h +++ b/src/mame/gaelco/gaelco2.h @@ -58,7 +58,7 @@ class gaelco2_state : public driver_device u32 screen_update_left(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); u32 screen_update_right(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void mcu_hostmem_map(address_map &map); + void mcu_hostmem_map(address_map &map) ATTR_COLD; required_device m_maincpu; optional_device m_mainlatch; @@ -83,12 +83,12 @@ class gaelco2_state : public driver_device void draw_sprites(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, int mask); u32 dual_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, int index); - void alighunt_map(address_map &map); - void maniacsq_map(address_map &map); - void play2000_map(address_map &map); - void touchgo_map(address_map &map); - void saltcrdi_map(address_map &map); - void srollnd_map(address_map &map); + void alighunt_map(address_map &map) ATTR_COLD; + void maniacsq_map(address_map &map) ATTR_COLD; + void play2000_map(address_map &map) ATTR_COLD; + void touchgo_map(address_map &map) ATTR_COLD; + void saltcrdi_map(address_map &map) ATTR_COLD; + void srollnd_map(address_map &map) ATTR_COLD; // simulation u16 srollnd_share_sim_r(offs_t offset, u16 mem_mask = ~0); @@ -115,13 +115,13 @@ class snowboar_state : public gaelco2_state void init_snowboara(); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: u16 snowboar_protection_r(); void snowboar_protection_w(offs_t offset, u16 data, u16 mem_mask = ~0); - void snowboar_map(address_map &map); + void snowboar_map(address_map &map) ATTR_COLD; required_shared_ptr m_snowboar_protection; @@ -141,14 +141,14 @@ class bang_state : public gaelco2_state void bang(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: template u16 gun_x(); template u16 gun_y(); void bang_clr_gun_int_w(u16 data); TIMER_DEVICE_CALLBACK_MEMBER(bang_irq); - void bang_map(address_map &map); + void bang_map(address_map &map) ATTR_COLD; required_ioport_array<2> m_light_x; required_ioport_array<2> m_light_y; @@ -174,7 +174,7 @@ class wrally2_state : public gaelco2_state private: void wrally2_adc_clk(int state); void wrally2_adc_cs(int state); - void wrally2_map(address_map &map); + void wrally2_map(address_map &map) ATTR_COLD; required_ioport_array<2> m_analog; diff --git a/src/mame/gaelco/gaelco3d.h b/src/mame/gaelco/gaelco3d.h index 14603042697..073d1234156 100644 --- a/src/mame/gaelco/gaelco3d.h +++ b/src/mame/gaelco/gaelco3d.h @@ -61,9 +61,9 @@ class gaelco3d_state : public driver_device template int fp_analog_bit_r(); private: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; struct gaelco3d_object_data { @@ -173,11 +173,11 @@ class gaelco3d_state : public driver_device void adsp_tx_callback(offs_t offset, uint32_t data); void fp_analog_clock_w(int state); - void adsp_data_map(address_map &map); - void adsp_program_map(address_map &map); - void main020_map(address_map &map); - void main_map(address_map &map); - void tms_map(address_map &map); + void adsp_data_map(address_map &map) ATTR_COLD; + void adsp_program_map(address_map &map) ATTR_COLD; + void main020_map(address_map &map) ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; + void tms_map(address_map &map) ATTR_COLD; }; #endif // MAME_GAELCO_GAELCO3D_H diff --git a/src/mame/gaelco/gaelco3d_m.h b/src/mame/gaelco/gaelco3d_m.h index ab68906d6cc..2093af7eb01 100644 --- a/src/mame/gaelco/gaelco3d_m.h +++ b/src/mame/gaelco/gaelco3d_m.h @@ -48,9 +48,9 @@ class gaelco_serial_device : public device_t protected: // device-level overrides - virtual void device_start() override; - virtual void device_stop() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_stop() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: struct buf_t diff --git a/src/mame/gaelco/gaelco_ds5002fp.h b/src/mame/gaelco/gaelco_ds5002fp.h index ddec7584315..f16413ca702 100644 --- a/src/mame/gaelco/gaelco_ds5002fp.h +++ b/src/mame/gaelco/gaelco_ds5002fp.h @@ -16,16 +16,16 @@ class gaelco_ds5002fp_device : public device_t, public device_memory_interface protected: // device_t implementation - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; // device_memory_interface configuration virtual space_config_vector memory_space_config() const override; private: - void dallas_ram(address_map &map); - void dallas_rom(address_map &map); + void dallas_ram(address_map &map) ATTR_COLD; + void dallas_rom(address_map &map) ATTR_COLD; address_space_config const m_hostmem_config; address_space *m_hostmem; diff --git a/src/mame/gaelco/gaelco_wrally_sprites.h b/src/mame/gaelco/gaelco_wrally_sprites.h index 8f6a082e550..86f044f490b 100644 --- a/src/mame/gaelco/gaelco_wrally_sprites.h +++ b/src/mame/gaelco/gaelco_wrally_sprites.h @@ -21,8 +21,8 @@ class gaelco_wrally_sprites_device : public device_t protected: gaelco_wrally_sprites_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 void get_sprites_info(uint16_t* spriteram, int& sx, int& sy, int& number, int& color, int& color_effect, int& attr, int& high_priotiy, int &end); diff --git a/src/mame/gaelco/gaelcopc.cpp b/src/mame/gaelco/gaelcopc.cpp index f82ed381a34..a1d7b0bc26d 100644 --- a/src/mame/gaelco/gaelcopc.cpp +++ b/src/mame/gaelco/gaelcopc.cpp @@ -49,7 +49,7 @@ class gaelcopc_state : public driver_device void gaelcopc(machine_config &config); private: - void gaelcopc_map(address_map &map); + void gaelcopc_map(address_map &map) ATTR_COLD; // devices required_device m_maincpu; diff --git a/src/mame/gaelco/gaelcrpt.h b/src/mame/gaelco/gaelcrpt.h index 47a18cf2125..bbd33e73d2d 100644 --- a/src/mame/gaelco/gaelcrpt.h +++ b/src/mame/gaelco/gaelcrpt.h @@ -20,8 +20,8 @@ class gaelco_vram_encryption_device : public device_t uint16_t gaelco_decrypt(cpu_device &cpu, int offset, int data); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: int decrypt(int const enc_prev_word, int const dec_prev_word, int const enc_word); diff --git a/src/mame/gaelco/glass.cpp b/src/mame/gaelco/glass.cpp index b540d37030f..0e4c6a37fd4 100644 --- a/src/mame/gaelco/glass.cpp +++ b/src/mame/gaelco/glass.cpp @@ -52,9 +52,9 @@ class glass_state : public driver_device void glass_ds5002fp(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: // devices @@ -94,9 +94,9 @@ class glass_state : public driver_device template TILE_GET_INFO_MEMBER(get_tile_info); uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); - void main_map(address_map &map); - void mcu_hostmem_map(address_map &map); - void oki_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void mcu_hostmem_map(address_map &map) ATTR_COLD; + void oki_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/gaelco/goldart.cpp b/src/mame/gaelco/goldart.cpp index ada14631051..2fad6f64ed9 100644 --- a/src/mame/gaelco/goldart.cpp +++ b/src/mame/gaelco/goldart.cpp @@ -63,9 +63,9 @@ class goldart_state : public driver_device void goldart(machine_config& config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_mcu; @@ -77,8 +77,8 @@ class goldart_state : public driver_device uint32_t screen_update_goldart(screen_device& screen, bitmap_ind16& bitmap, const rectangle& cliprect); - void dallas_rom(address_map& map); - void dallas_ram(address_map& map); + void dallas_rom(address_map &map) ATTR_COLD; + void dallas_ram(address_map &map) ATTR_COLD; uint8_t m_ram[0x10000]; uint8_t m_ram2[0x10000]; diff --git a/src/mame/gaelco/mastboy.cpp b/src/mame/gaelco/mastboy.cpp index 3ed1fd85277..bcb1ae21643 100644 --- a/src/mame/gaelco/mastboy.cpp +++ b/src/mame/gaelco/mastboy.cpp @@ -478,9 +478,9 @@ class mastboy_state : public driver_device void mastboy(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: uint8_t vram_r(offs_t offset); @@ -498,9 +498,9 @@ class mastboy_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void vblank_irq(int state); - void bank_c000_map(address_map &map); - void mastboy_io_map(address_map &map); - void mastboy_map(address_map &map); + void bank_c000_map(address_map &map) ATTR_COLD; + void mastboy_io_map(address_map &map) ATTR_COLD; + void mastboy_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_msm; diff --git a/src/mame/gaelco/mastboyo.cpp b/src/mame/gaelco/mastboyo.cpp index 7451736441b..67bcb2db399 100644 --- a/src/mame/gaelco/mastboyo.cpp +++ b/src/mame/gaelco/mastboyo.cpp @@ -37,8 +37,8 @@ class mastboyo_state : public driver_device void mastboyo(machine_config &config); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: tilemap_t *m_fg_tilemap; @@ -50,8 +50,8 @@ class mastboyo_state : public driver_device required_region_ptr m_questionrom; required_region_ptr m_paletterom; - void mastboyo_map(address_map &map); - void mastboyo_portmap(address_map &map); + void mastboyo_map(address_map &map) ATTR_COLD; + void mastboyo_portmap(address_map &map) ATTR_COLD; template void fgram_w(offs_t offset, uint8_t data); void rombank_w(uint8_t data); diff --git a/src/mame/gaelco/radikaldarts.cpp b/src/mame/gaelco/radikaldarts.cpp index 51f02cd8bb4..76a4220abef 100644 --- a/src/mame/gaelco/radikaldarts.cpp +++ b/src/mame/gaelco/radikaldarts.cpp @@ -37,7 +37,7 @@ class radikaldarts_state : public driver_device private: required_device m_maincpu; - void radikaldarts_map(address_map &map); + void radikaldarts_map(address_map &map) ATTR_COLD; }; void radikaldarts_state::radikaldarts_map(address_map &map) diff --git a/src/mame/gaelco/rollext.cpp b/src/mame/gaelco/rollext.cpp index ceb801f023a..d63c8ef9843 100644 --- a/src/mame/gaelco/rollext.cpp +++ b/src/mame/gaelco/rollext.cpp @@ -456,12 +456,12 @@ class rollext_state : public driver_device required_ioport m_eeprom_out; INTERRUPT_GEN_MEMBER(vblank_interrupt); - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; void preprocess_texture_data(); uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void memmap(address_map &map); + void memmap(address_map &map) ATTR_COLD; }; void rollext_state::preprocess_texture_data() diff --git a/src/mame/gaelco/splash.h b/src/mame/gaelco/splash.h index 94c02640d37..2e96ccf31f8 100644 --- a/src/mame/gaelco/splash.h +++ b/src/mame/gaelco/splash.h @@ -89,7 +89,7 @@ class splash_state : public driver_device //roldfrog and funystrp specific void sound_bank_w(uint8_t data); - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; DECLARE_MACHINE_START(splash); DECLARE_MACHINE_START(roldfrog); DECLARE_MACHINE_RESET(splash); @@ -104,12 +104,12 @@ class splash_state : public driver_device INTERRUPT_GEN_MEMBER(roldfrog_interrupt); void roldfrog_update_irq( ); - void funystrp_sound_map(address_map &map); - void roldfrog_map(address_map &map); - void roldfrog_sound_io_map(address_map &map); - void roldfrog_sound_map(address_map &map); - void splash_map(address_map &map); - void splash_sound_map(address_map &map); + void funystrp_sound_map(address_map &map) ATTR_COLD; + void roldfrog_map(address_map &map) ATTR_COLD; + void roldfrog_sound_io_map(address_map &map) ATTR_COLD; + void roldfrog_sound_map(address_map &map) ATTR_COLD; + void splash_map(address_map &map) ATTR_COLD; + void splash_sound_map(address_map &map) ATTR_COLD; }; class funystrp_state : public splash_state @@ -132,7 +132,7 @@ class funystrp_state : public splash_state void init_ringball(); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: uint16_t spr_read(offs_t offset); @@ -151,9 +151,9 @@ class funystrp_state : public splash_state uint32_t screen_update_funystrp(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void funystrp_draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); - void funystrp_map(address_map &map); - void funystrp_sound_io_map(address_map &map); - void ringball_map(address_map &map); + void funystrp_map(address_map &map) ATTR_COLD; + void funystrp_sound_io_map(address_map &map) ATTR_COLD; + void ringball_map(address_map &map) ATTR_COLD; required_device m_msm1; required_device m_msm2; diff --git a/src/mame/gaelco/splash_ms.cpp b/src/mame/gaelco/splash_ms.cpp index 0e9608b7fb1..ec49ac1553c 100644 --- a/src/mame/gaelco/splash_ms.cpp +++ b/src/mame/gaelco/splash_ms.cpp @@ -67,16 +67,16 @@ class splashms_state : public driver_device required_device m_subram; required_device m_subrom; - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void splashms_map(address_map &map); - void sub_map(address_map &map); - void sub_portmap(address_map &map); - void sound_map(address_map &map); + void splashms_map(address_map &map) ATTR_COLD; + void sub_map(address_map &map) ATTR_COLD; + void sub_portmap(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; uint16_t unknown_0x40000c_r(); uint8_t frommain_command_r(); @@ -101,8 +101,8 @@ class splashms_state : public driver_device void splash_adpcm_control_w(uint8_t data); int m_adpcm_data = 0; - void subrambank_map(address_map& map); - void subrombank_map(address_map& map); + void subrambank_map(address_map &map) ATTR_COLD; + void subrombank_map(address_map &map) ATTR_COLD; void descramble_16x16tiles(uint8_t* src, int len); diff --git a/src/mame/gaelco/targeth.cpp b/src/mame/gaelco/targeth.cpp index 9406cfb3da8..6f6b608db3d 100644 --- a/src/mame/gaelco/targeth.cpp +++ b/src/mame/gaelco/targeth.cpp @@ -101,8 +101,8 @@ class targeth_state : public driver_device void targeth(machine_config &config); protected: - virtual void video_start() override; - virtual void machine_start() override; + virtual void video_start() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; private: void oki_bankswitch_w(uint8_t data); @@ -120,9 +120,9 @@ class targeth_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void main_map(address_map &map); - void mcu_hostmem_map(address_map &map); - void oki_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void mcu_hostmem_map(address_map &map) ATTR_COLD; + void oki_map(address_map &map) ATTR_COLD; void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); diff --git a/src/mame/gaelco/thoop2.cpp b/src/mame/gaelco/thoop2.cpp index 0d790195ec9..12e02103b53 100644 --- a/src/mame/gaelco/thoop2.cpp +++ b/src/mame/gaelco/thoop2.cpp @@ -93,8 +93,8 @@ class thoop2_state : public driver_device void thoop2(machine_config &config); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: void oki_bankswitch_w(uint8_t data); @@ -108,9 +108,9 @@ class thoop2_state : public driver_device template TILE_GET_INFO_MEMBER(get_tile_info); uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void mcu_hostmem_map(address_map &map); - void oki_map(address_map &map); - void thoop2_map(address_map &map); + void mcu_hostmem_map(address_map &map) ATTR_COLD; + void oki_map(address_map &map) ATTR_COLD; + void thoop2_map(address_map &map) ATTR_COLD; void draw_sprites(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); diff --git a/src/mame/gaelco/wrally.cpp b/src/mame/gaelco/wrally.cpp index 6e2d2fd7567..b1e7e87d796 100644 --- a/src/mame/gaelco/wrally.cpp +++ b/src/mame/gaelco/wrally.cpp @@ -170,8 +170,8 @@ class wrally_state : public driver_device template int analog_bit_r(); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: uint8_t shareram_r(offs_t offset); @@ -188,9 +188,9 @@ class wrally_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void mcu_hostmem_map(address_map &map); - void oki_map(address_map &map); - void main_map(address_map &map); + void mcu_hostmem_map(address_map &map) ATTR_COLD; + void oki_map(address_map &map) ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_outlatch; diff --git a/src/mame/gaelco/xorworld.cpp b/src/mame/gaelco/xorworld.cpp index 4d011b58e2e..64c29999c59 100644 --- a/src/mame/gaelco/xorworld.cpp +++ b/src/mame/gaelco/xorworld.cpp @@ -64,7 +64,7 @@ class xorworld_state : public driver_device void init_xorworld(); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -88,7 +88,7 @@ class xorworld_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); - void prg_map(address_map &map); + void prg_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/galaxian/dambustr.cpp b/src/mame/galaxian/dambustr.cpp index f5f7bbe0332..b557e8462cd 100644 --- a/src/mame/galaxian/dambustr.cpp +++ b/src/mame/galaxian/dambustr.cpp @@ -78,7 +78,7 @@ class dambustr_state : public galaxold_state int m_noise_data = 0; void dambustr_noise_enable_w(uint8_t data); - void dambustr_map(address_map &map); + void dambustr_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/galaxian/fastfred.h b/src/mame/galaxian/fastfred.h index b0408878270..17e38038fbc 100644 --- a/src/mame/galaxian/fastfred.h +++ b/src/mame/galaxian/fastfred.h @@ -93,7 +93,7 @@ class fastfred_state : public galaxold_state void vblank_irq(int state); INTERRUPT_GEN_MEMBER(sound_timer_irq); - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; void fastfred_palette(palette_device &palette) const; DECLARE_MACHINE_START(imago); DECLARE_VIDEO_START(fastfred); @@ -102,10 +102,10 @@ class fastfred_state : public galaxold_state uint32_t screen_update_fastfred(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); uint32_t screen_update_imago(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); - void fastfred_map(address_map &map); - void imago_map(address_map &map); - void jumpcoas_map(address_map &map); - void sound_map(address_map &map); + void fastfred_map(address_map &map) ATTR_COLD; + void imago_map(address_map &map) ATTR_COLD; + void jumpcoas_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; }; #endif // MAME_GALAXIAN_FASTFRED_H diff --git a/src/mame/galaxian/galaxian.h b/src/mame/galaxian/galaxian.h index ed1f81f67de..2b4fe9b13b2 100644 --- a/src/mame/galaxian/galaxian.h +++ b/src/mame/galaxian/galaxian.h @@ -336,65 +336,65 @@ class galaxian_state : public driver_device void set_h0_start(uint8_t start) { m_h0_start = start; } void set_left_sprite_clip(uint8_t clip) { m_leftspriteclip = clip; } - void amigo2_map(address_map &map); - void anteaterg_map(address_map &map); - void anteatergg_map(address_map &map); - void anteateruk_map(address_map &map); - void astroamb_map(address_map &map); - void bigkonggx_map(address_map &map); - void bongo_map(address_map &map); - void bongog_map(address_map &map); - void bongo_io_map(address_map &map); - void checkmaj_sound_map(address_map &map); - void checkman_sound_map(address_map &map); - void checkman_sound_portmap(address_map &map); - void ckongg_map(address_map &map); - void ckongg_map_base(address_map &map); - void ckongmc_map(address_map &map); - void ckongs_map(address_map &map); - void explorer_map(address_map &map); - void fantastc_map(address_map &map); - void frogf_map(address_map &map); - void frogg_map(address_map &map); - void frogger_map(address_map &map); - void froggervd_map(address_map &map); - void frogger_sound_map(address_map &map); - void frogger_sound_portmap(address_map &map); - void froggeram_map(address_map &map); - void froggermc_map(address_map &map); - void galartic_map(address_map &map); - void galaxian_map(address_map &map); - void galaxian_map_base(address_map &map); - void galaxian_map_discrete(address_map &map); - void highroll_map(address_map &map); - void jumpbug_map(address_map &map); - void jumpbugbrf_map(address_map &map); - void jungsub_map(address_map &map); - void jungsub_io_map(address_map &map); - void konami_sound_map(address_map &map); - void konami_sound_portmap(address_map &map); - void kong_map(address_map &map); - void mandingarf_map(address_map &map); - void mandinka_map(address_map &map); - void mimonkey_map(address_map &map); - void mimonscr_map(address_map &map); - void mooncrst_map(address_map &map); - void mooncrst_map_base(address_map &map); - void mooncrst_map_discrete(address_map &map); - void moonqsr_decrypted_opcodes_map(address_map &map); - void ozon1_map(address_map &map); - void ozon1_io_map(address_map &map); - void scobra_map(address_map &map); - void scorpnmc_map(address_map &map); - void spactrai_map(address_map &map); - void takeoff_sound_map(address_map &map); - void takeoff_sound_portmap(address_map &map); - void theend_map(address_map &map); - void thepitm_map(address_map &map); - void turpins_map(address_map &map); - void turpins_sound_map(address_map &map); - void turtles_map(address_map &map); - void victoryc_map(address_map &map); + void amigo2_map(address_map &map) ATTR_COLD; + void anteaterg_map(address_map &map) ATTR_COLD; + void anteatergg_map(address_map &map) ATTR_COLD; + void anteateruk_map(address_map &map) ATTR_COLD; + void astroamb_map(address_map &map) ATTR_COLD; + void bigkonggx_map(address_map &map) ATTR_COLD; + void bongo_map(address_map &map) ATTR_COLD; + void bongog_map(address_map &map) ATTR_COLD; + void bongo_io_map(address_map &map) ATTR_COLD; + void checkmaj_sound_map(address_map &map) ATTR_COLD; + void checkman_sound_map(address_map &map) ATTR_COLD; + void checkman_sound_portmap(address_map &map) ATTR_COLD; + void ckongg_map(address_map &map) ATTR_COLD; + void ckongg_map_base(address_map &map) ATTR_COLD; + void ckongmc_map(address_map &map) ATTR_COLD; + void ckongs_map(address_map &map) ATTR_COLD; + void explorer_map(address_map &map) ATTR_COLD; + void fantastc_map(address_map &map) ATTR_COLD; + void frogf_map(address_map &map) ATTR_COLD; + void frogg_map(address_map &map) ATTR_COLD; + void frogger_map(address_map &map) ATTR_COLD; + void froggervd_map(address_map &map) ATTR_COLD; + void frogger_sound_map(address_map &map) ATTR_COLD; + void frogger_sound_portmap(address_map &map) ATTR_COLD; + void froggeram_map(address_map &map) ATTR_COLD; + void froggermc_map(address_map &map) ATTR_COLD; + void galartic_map(address_map &map) ATTR_COLD; + void galaxian_map(address_map &map) ATTR_COLD; + void galaxian_map_base(address_map &map) ATTR_COLD; + void galaxian_map_discrete(address_map &map) ATTR_COLD; + void highroll_map(address_map &map) ATTR_COLD; + void jumpbug_map(address_map &map) ATTR_COLD; + void jumpbugbrf_map(address_map &map) ATTR_COLD; + void jungsub_map(address_map &map) ATTR_COLD; + void jungsub_io_map(address_map &map) ATTR_COLD; + void konami_sound_map(address_map &map) ATTR_COLD; + void konami_sound_portmap(address_map &map) ATTR_COLD; + void kong_map(address_map &map) ATTR_COLD; + void mandingarf_map(address_map &map) ATTR_COLD; + void mandinka_map(address_map &map) ATTR_COLD; + void mimonkey_map(address_map &map) ATTR_COLD; + void mimonscr_map(address_map &map) ATTR_COLD; + void mooncrst_map(address_map &map) ATTR_COLD; + void mooncrst_map_base(address_map &map) ATTR_COLD; + void mooncrst_map_discrete(address_map &map) ATTR_COLD; + void moonqsr_decrypted_opcodes_map(address_map &map) ATTR_COLD; + void ozon1_map(address_map &map) ATTR_COLD; + void ozon1_io_map(address_map &map) ATTR_COLD; + void scobra_map(address_map &map) ATTR_COLD; + void scorpnmc_map(address_map &map) ATTR_COLD; + void spactrai_map(address_map &map) ATTR_COLD; + void takeoff_sound_map(address_map &map) ATTR_COLD; + void takeoff_sound_portmap(address_map &map) ATTR_COLD; + void theend_map(address_map &map) ATTR_COLD; + void thepitm_map(address_map &map) ATTR_COLD; + void turpins_map(address_map &map) ATTR_COLD; + void turpins_sound_map(address_map &map) ATTR_COLD; + void turtles_map(address_map &map) ATTR_COLD; + void victoryc_map(address_map &map) ATTR_COLD; virtual void machine_start() override { @@ -402,7 +402,7 @@ class galaxian_state : public driver_device m_irq_enabled = 0; } - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; required_device m_maincpu; optional_device m_audiocpu; @@ -475,8 +475,8 @@ class bagmanmc_state : public galaxian_state void bagmanmc_extend_sprite_info(const uint8_t *base, uint8_t *sx, uint8_t *sy, uint8_t *flipx, uint8_t *flipy, uint16_t *code, uint8_t *color); private: - void bagmanmc_map(address_map &map); - void bagmanmc_io_map(address_map &map); + void bagmanmc_map(address_map &map) ATTR_COLD; + void bagmanmc_io_map(address_map &map) ATTR_COLD; }; @@ -499,10 +499,10 @@ class gmgalax_state : public bagmanmc_state void init_gmgalax(); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: - void gmgalax_map(address_map &map); + void gmgalax_map(address_map &map) ATTR_COLD; required_ioport_array<3> m_glin; required_ioport_array<3> m_gmin; @@ -532,9 +532,9 @@ class pisces_state : public galaxian_state void pisces_extend_sprite_info(const uint8_t *base, uint8_t *sx, uint8_t *sy, uint8_t *flipx, uint8_t *flipy, uint16_t *code, uint8_t *color); private: - void pisces_map(address_map &map); - void skybase_map(address_map &map); - void porter_map(address_map &map); + void pisces_map(address_map &map) ATTR_COLD; + void skybase_map(address_map &map) ATTR_COLD; + void porter_map(address_map &map) ATTR_COLD; }; @@ -552,7 +552,7 @@ class fourplay_state : public pisces_state private: void fourplay_rombank_w(offs_t offset, uint8_t data); - void fourplay_map(address_map &map); + void fourplay_map(address_map &map) ATTR_COLD; required_memory_bank m_rombank; }; @@ -572,7 +572,7 @@ class mshuttle_state : public galaxian_state void init_mshuttlj(); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: void ay8910_cs_w(uint8_t data); @@ -580,9 +580,9 @@ class mshuttle_state : public galaxian_state void ay8910_data_w(uint8_t data); uint8_t ay8910_data_r(); - void mshuttle_map(address_map &map); - void mshuttle_decrypted_opcodes_map(address_map &map); - void mshuttle_portmap(address_map &map); + void mshuttle_map(address_map &map) ATTR_COLD; + void mshuttle_decrypted_opcodes_map(address_map &map) ATTR_COLD; + void mshuttle_portmap(address_map &map) ATTR_COLD; void mshuttle_decode(const uint8_t convtable[8][16]); @@ -606,7 +606,7 @@ class kingball_state : public galaxian_state void kingball(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: void speech_dip_w(uint8_t data); @@ -614,9 +614,9 @@ class kingball_state : public galaxian_state void sound2_w(uint8_t data); void dac_w(uint8_t data); - void kingball_map(address_map &map); - void kingball_sound_map(address_map &map); - void kingball_sound_portmap(address_map &map); + void kingball_map(address_map &map) ATTR_COLD; + void kingball_sound_map(address_map &map) ATTR_COLD; + void kingball_sound_portmap(address_map &map) ATTR_COLD; required_device m_dac; required_ioport m_mux_port; @@ -642,7 +642,7 @@ class namenayo_state : public galaxian_state void namenayo_draw_background(bitmap_rgb32 &bitmap, const rectangle &cliprect); void namenayo_extend_tile_info(uint16_t *code, uint8_t *color, uint8_t attrib, uint8_t x, uint8_t y); void namenayo_extend_sprite_info(const uint8_t *base, uint8_t *sx, uint8_t *sy, uint8_t *flipx, uint8_t *flipy, uint16_t *code, uint8_t *color); - void namenayo_map(address_map &map); + void namenayo_map(address_map &map) ATTR_COLD; void namenayo_extattr_w(offs_t offset, uint8_t data); void namenayo_unk_d800_w(uint8_t data); @@ -667,7 +667,7 @@ class tenspot_state : public galaxian_state void init_tenspot(); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: void unk_6000_w(uint8_t data); @@ -677,8 +677,8 @@ class tenspot_state : public galaxian_state void set_game_bank(int bank, bool invalidate_gfx); - void tenspot_map(address_map &map); - void tenspot_select_map(address_map &map); + void tenspot_map(address_map &map) ATTR_COLD; + void tenspot_select_map(address_map &map) ATTR_COLD; required_ioport_array<10> m_game_dsw; required_memory_bank m_mainbank; @@ -700,12 +700,12 @@ class zigzagb_state : public galaxian_state void init_zigzag(); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: void bankswap_w(uint8_t data); void ay8910_w(offs_t offset, uint8_t data); - void zigzag_map(address_map &map); + void zigzag_map(address_map &map) ATTR_COLD; required_memory_bank_array<2> m_rombanks; uint8_t m_ay8910_latch = 0U; @@ -729,7 +729,7 @@ class videight_state : public galaxian_state void videight_gfxbank_w(offs_t offset, uint8_t data); void videight_extend_tile_info(uint16_t *code, uint8_t *color, uint8_t attrib, uint8_t x, uint8_t y); void videight_extend_sprite_info(const uint8_t *base, uint8_t *sx, uint8_t *sy, uint8_t *flipx, uint8_t *flipy, uint16_t *code, uint8_t *color); - void videight_map(address_map &map); + void videight_map(address_map &map) ATTR_COLD; required_memory_bank m_rombank; }; @@ -750,8 +750,8 @@ class guttangt_state : public galaxian_state void init_guttangts3(); private: - void guttangt_map(address_map &map); - void guttangts3_map(address_map &map); + void guttangt_map(address_map &map) ATTR_COLD; + void guttangts3_map(address_map &map) ATTR_COLD; void guttangt_rombank_w(uint8_t data); optional_memory_bank m_rombank; @@ -778,9 +778,9 @@ class zac_scorpion_state : public galaxian_state uint8_t protection_r(); void protection_w(uint8_t data); - void scorpion_map(address_map &map); - void scorpion_sound_map(address_map &map); - void scorpion_sound_portmap(address_map &map); + void scorpion_map(address_map &map) ATTR_COLD; + void scorpion_sound_map(address_map &map) ATTR_COLD; + void scorpion_sound_portmap(address_map &map) ATTR_COLD; required_device m_digitalker; }; @@ -801,7 +801,7 @@ class nihon_sfx_state : public galaxian_state void init_sfx(); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; uint8_t sample_io_r(offs_t offset); void sample_io_w(offs_t offset, uint8_t data); @@ -810,9 +810,9 @@ class nihon_sfx_state : public galaxian_state void sfx_draw_background(bitmap_rgb32 &bitmap, const rectangle &cliprect); void sfx_draw_bullet(bitmap_rgb32 &bitmap, const rectangle &cliprect, int offs, int x, int y); - void sfx_map(address_map &map); - void sfx_sample_map(address_map &map); - void sfx_sample_portmap(address_map &map); + void sfx_map(address_map &map) ATTR_COLD; + void sfx_sample_map(address_map &map) ATTR_COLD; + void sfx_sample_portmap(address_map &map) ATTR_COLD; required_device m_audio2; required_device m_dac; @@ -835,13 +835,13 @@ class monsterz_state : public nihon_sfx_state void init_monsterz(); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: - void monsterz_map(address_map& map); - void monsterz_sound_map(address_map& map); - void monsterz_sound_portmap(address_map& map); - void monsterz_sample_map(address_map& map); + void monsterz_map(address_map &map) ATTR_COLD; + void monsterz_sound_map(address_map &map) ATTR_COLD; + void monsterz_sound_portmap(address_map &map) ATTR_COLD; + void monsterz_sample_map(address_map &map) ATTR_COLD; void monsterz_ay8910_w(offs_t offset, uint8_t data); required_device m_dac2; @@ -867,7 +867,7 @@ class moonwar_state : public galaxian_state void moonwar(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: void port_select_w(uint8_t data); @@ -899,13 +899,13 @@ class sbhoei_state : public galaxian_state void sbhoei_extend_sprite_info(const uint8_t *base, uint8_t *sx, uint8_t *sy, uint8_t *flipx, uint8_t *flipy, uint16_t *code, uint8_t *color); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: - void sbhoei_map(address_map &map); - void sbhoei_map_discrete(address_map &map); - void sbhoei_sound_map(address_map &map); - void sbhoei_sound_io_map(address_map &map); + void sbhoei_map(address_map &map) ATTR_COLD; + void sbhoei_map_discrete(address_map &map) ATTR_COLD; + void sbhoei_sound_map(address_map &map) ATTR_COLD; + void sbhoei_sound_io_map(address_map &map) ATTR_COLD; void sbhoei_palette(palette_device &palette); void sbhoei_soundlatch_w(uint8_t data); @@ -936,7 +936,7 @@ class bmxstunts_state : public galaxian_state private: required_device m_snsnd; - void bmxstunts_map(address_map& map); + void bmxstunts_map(address_map &map) ATTR_COLD; void snsnd_w(uint8_t data) { m_snsnd->write(bitswap<8>(data,0,1,2,3,4,5,6,7)); } }; diff --git a/src/mame/galaxian/galaxian_a.h b/src/mame/galaxian/galaxian_a.h index 9187a989be6..e93435d42a7 100644 --- a/src/mame/galaxian/galaxian_a.h +++ b/src/mame/galaxian/galaxian_a.h @@ -24,8 +24,8 @@ class galaxian_sound_device : public device_t galaxian_sound_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // device-level overrides - 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; required_device m_discrete; @@ -41,7 +41,7 @@ class mooncrst_sound_device : public galaxian_sound_device protected: // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; class bongo_sound_device : public galaxian_sound_device @@ -51,7 +51,7 @@ class bongo_sound_device : public galaxian_sound_device protected: // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; class sbhoei_sound_device : public galaxian_sound_device @@ -65,8 +65,8 @@ class sbhoei_sound_device : public galaxian_sound_device protected: // device-level overrides - 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; }; DECLARE_DEVICE_TYPE(GALAXIAN_SOUND, galaxian_sound_device) diff --git a/src/mame/galaxian/galaxian_rockclim.cpp b/src/mame/galaxian/galaxian_rockclim.cpp index ed970816e26..a42f931b939 100644 --- a/src/mame/galaxian/galaxian_rockclim.cpp +++ b/src/mame/galaxian/galaxian_rockclim.cpp @@ -21,10 +21,10 @@ class galaxian_rockclim_state : public galaxian_state void init_rockclim(); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: - void rockclim_map(address_map &map); + void rockclim_map(address_map &map) ATTR_COLD; void rockclim_palette(palette_device &palette) const; void rockclim_draw_background(bitmap_rgb32 &bitmap, const rectangle &cliprect); diff --git a/src/mame/galaxian/galaxold.h b/src/mame/galaxian/galaxold.h index b0651589ba4..eecc90956bd 100644 --- a/src/mame/galaxian/galaxold.h +++ b/src/mame/galaxian/galaxold.h @@ -272,32 +272,32 @@ class galaxold_state : public driver_device void mooncrst(machine_config &config); void galaxian_audio(machine_config &config); void mooncrst_audio(machine_config &config); - void _4in1_map(address_map &map); - void bullsdrtg_data_map(address_map &map); - void dkongjrm_map(address_map &map); - void dkongjrmc_map(address_map &map); - void drivfrcg_program(address_map &map); - void drivfrcg_io(address_map &map); - void galaxold_map(address_map &map); - void hexpoola_data(address_map &map); - void hexpoola_io(address_map &map); - void hunchbkg_map(address_map &map); - void hunchbkg_data(address_map &map); - void hustlerb3_map(address_map &map); - void mooncrst_map(address_map &map); - void racknrol_map(address_map &map); - void racknrol_io(address_map &map); - void scramb_common_map(address_map &map); - void scramb2_map(address_map &map); - void scramb3_map(address_map &map); - void scramblb_map(address_map &map); - void scrambleo_map(address_map &map); - void scrambler_map(address_map &map); - void spcwarp_map(address_map &map); - void superbikg_data(address_map &map); - void superbikg_io(address_map &map); - void superbikg_map(address_map &map); - void tazzmang_map(address_map &map); + void _4in1_map(address_map &map) ATTR_COLD; + void bullsdrtg_data_map(address_map &map) ATTR_COLD; + void dkongjrm_map(address_map &map) ATTR_COLD; + void dkongjrmc_map(address_map &map) ATTR_COLD; + void drivfrcg_program(address_map &map) ATTR_COLD; + void drivfrcg_io(address_map &map) ATTR_COLD; + void galaxold_map(address_map &map) ATTR_COLD; + void hexpoola_data(address_map &map) ATTR_COLD; + void hexpoola_io(address_map &map) ATTR_COLD; + void hunchbkg_map(address_map &map) ATTR_COLD; + void hunchbkg_data(address_map &map) ATTR_COLD; + void hustlerb3_map(address_map &map) ATTR_COLD; + void mooncrst_map(address_map &map) ATTR_COLD; + void racknrol_map(address_map &map) ATTR_COLD; + void racknrol_io(address_map &map) ATTR_COLD; + void scramb_common_map(address_map &map) ATTR_COLD; + void scramb2_map(address_map &map) ATTR_COLD; + void scramb3_map(address_map &map) ATTR_COLD; + void scramblb_map(address_map &map) ATTR_COLD; + void scrambleo_map(address_map &map) ATTR_COLD; + void scrambler_map(address_map &map) ATTR_COLD; + void spcwarp_map(address_map &map) ATTR_COLD; + void superbikg_data(address_map &map) ATTR_COLD; + void superbikg_io(address_map &map) ATTR_COLD; + void superbikg_map(address_map &map) ATTR_COLD; + void tazzmang_map(address_map &map) ATTR_COLD; protected: virtual void machine_start() override { m_leds.resolve(); } diff --git a/src/mame/galaxian/scobra.cpp b/src/mame/galaxian/scobra.cpp index 7ee9d3ebcd2..ac60eefece6 100644 --- a/src/mame/galaxian/scobra.cpp +++ b/src/mame/galaxian/scobra.cpp @@ -83,21 +83,21 @@ class scobra_state : public scramble_state void hustler_ppi8255_0_w(offs_t offset, uint8_t data); void hustler_ppi8255_1_w(offs_t offset, uint8_t data); - void hustler_map(address_map &map); - void hustler_sound_io_map(address_map &map); - void hustler_sound_map(address_map &map); - void hustlerb_map(address_map &map); - void hustlerb_sound_io_map(address_map &map); - void hustlerb_sound_map(address_map &map); - void hustlerb6_map(address_map &map); - void mimonkeyug_map(address_map &map); - void minefldfe_map(address_map &map); - void rescuefe_map(address_map &map); - void scobra_sound_io_map(address_map &map); - void scobra_sound_map(address_map &map); - void tazmani3_map(address_map &map); - void type1_map(address_map &map); - void type2_map(address_map &map); + void hustler_map(address_map &map) ATTR_COLD; + void hustler_sound_io_map(address_map &map) ATTR_COLD; + void hustler_sound_map(address_map &map) ATTR_COLD; + void hustlerb_map(address_map &map) ATTR_COLD; + void hustlerb_sound_io_map(address_map &map) ATTR_COLD; + void hustlerb_sound_map(address_map &map) ATTR_COLD; + void hustlerb6_map(address_map &map) ATTR_COLD; + void mimonkeyug_map(address_map &map) ATTR_COLD; + void minefldfe_map(address_map &map) ATTR_COLD; + void rescuefe_map(address_map &map) ATTR_COLD; + void scobra_sound_io_map(address_map &map) ATTR_COLD; + void scobra_sound_map(address_map &map) ATTR_COLD; + void tazmani3_map(address_map &map) ATTR_COLD; + void type1_map(address_map &map) ATTR_COLD; + void type2_map(address_map &map) ATTR_COLD; optional_shared_ptr m_soundram; }; diff --git a/src/mame/galaxian/scramble.h b/src/mame/galaxian/scramble.h index 014f9de8baf..882a5827dfc 100644 --- a/src/mame/galaxian/scramble.h +++ b/src/mame/galaxian/scramble.h @@ -115,25 +115,25 @@ class scramble_state : public galaxold_state void triplep(machine_config &config); void newsin7(machine_config &config); void mrkougb(machine_config &config); - void ad2083_map(address_map &map); - void ad2083_sound_io_map(address_map &map); - void ad2083_sound_map(address_map &map); - void decrypted_opcodes_map(address_map &map); - void harem_map(address_map &map); - void harem_sound_io_map(address_map &map); - void harem_sound_map(address_map &map); - void hotshock_map(address_map &map); - void hotshock_sound_io_map(address_map &map); - void hunchbks_map(address_map &map); - void hunchbks_readport(address_map &map); - void mars_map(address_map &map); - void mrkougar_map(address_map &map); - void newsin7_map(address_map &map); - void scramble_map(address_map &map); - void scramble_sound_io_map(address_map &map); - void scramble_sound_map(address_map &map); - void triplep_io_map(address_map &map); - void triplep_map(address_map &map); + void ad2083_map(address_map &map) ATTR_COLD; + void ad2083_sound_io_map(address_map &map) ATTR_COLD; + void ad2083_sound_map(address_map &map) ATTR_COLD; + void decrypted_opcodes_map(address_map &map) ATTR_COLD; + void harem_map(address_map &map) ATTR_COLD; + void harem_sound_io_map(address_map &map) ATTR_COLD; + void harem_sound_map(address_map &map) ATTR_COLD; + void hotshock_map(address_map &map) ATTR_COLD; + void hotshock_sound_io_map(address_map &map) ATTR_COLD; + void hunchbks_map(address_map &map) ATTR_COLD; + void hunchbks_readport(address_map &map) ATTR_COLD; + void mars_map(address_map &map) ATTR_COLD; + void mrkougar_map(address_map &map) ATTR_COLD; + void newsin7_map(address_map &map) ATTR_COLD; + void scramble_map(address_map &map) ATTR_COLD; + void scramble_sound_io_map(address_map &map) ATTR_COLD; + void scramble_sound_map(address_map &map) ATTR_COLD; + void triplep_io_map(address_map &map) ATTR_COLD; + void triplep_map(address_map &map) ATTR_COLD; private: void cavelon_banksw(); diff --git a/src/mame/gamepark/gp2x.cpp b/src/mame/gamepark/gp2x.cpp index cf421d4d77d..2fe2d0095f6 100644 --- a/src/mame/gamepark/gp2x.cpp +++ b/src/mame/gamepark/gp2x.cpp @@ -61,7 +61,7 @@ class gp2x_state : public driver_device uint32_t m_nand_ptr_temp = 0; uint32_t m_timer = 0; uint32_t screen_update_gp2x(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void gp2x_map(address_map &map); + void gp2x_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/gamepark/gp32.h b/src/mame/gamepark/gp32.h index d9a4bdfb9ae..51fa2f4b1d5 100644 --- a/src/mame/gamepark/gp32.h +++ b/src/mame/gamepark/gp32.h @@ -118,7 +118,7 @@ class gp32_state : public driver_device void gp32(machine_config &config); private: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; required_shared_ptr m_s3c240x_ram; std::unique_ptr m_eeprom_data; @@ -190,15 +190,15 @@ class gp32_state : public driver_device void s3c240x_spi_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0); uint32_t s3c240x_mmc_r(offs_t offset); void s3c240x_mmc_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0); - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; uint32_t screen_update_gp32(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); TIMER_CALLBACK_MEMBER(s3c240x_lcd_timer_exp); TIMER_CALLBACK_MEMBER(s3c240x_pwm_timer_exp); TIMER_CALLBACK_MEMBER(s3c240x_dma_timer_exp); TIMER_CALLBACK_MEMBER(s3c240x_iic_timer_exp); TIMER_CALLBACK_MEMBER(s3c240x_iis_timer_exp); - void gp32_map(address_map &map); + void gp32_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_smartmedia; diff --git a/src/mame/gametron/gatron.cpp b/src/mame/gametron/gatron.cpp index ddd7728bc7f..4cea174cc3c 100644 --- a/src/mame/gametron/gatron.cpp +++ b/src/mame/gametron/gatron.cpp @@ -355,7 +355,7 @@ class gatron_state : public driver_device void gat(machine_config &config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: required_shared_ptr m_videoram; @@ -371,8 +371,8 @@ class gatron_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void prg_map(address_map &map); - void port_map(address_map &map); + void prg_map(address_map &map) ATTR_COLD; + void port_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/gametron/gotya.cpp b/src/mame/gametron/gotya.cpp index ad188a5d757..f0f6eef3703 100644 --- a/src/mame/gametron/gotya.cpp +++ b/src/mame/gametron/gotya.cpp @@ -92,9 +92,9 @@ class gotya_state : public driver_device void gotya(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: // memory pointers @@ -127,7 +127,7 @@ class gotya_state : public driver_device void draw_status_row(bitmap_ind16 &bitmap, const rectangle &cliprect, int sx, int col); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); void draw_status(bitmap_ind16 &bitmap, const rectangle &cliprect); - void prg_map(address_map &map); + void prg_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/gametron/sbugger.cpp b/src/mame/gametron/sbugger.cpp index fd2cac62ee0..0aacaf2c57d 100644 --- a/src/mame/gametron/sbugger.cpp +++ b/src/mame/gametron/sbugger.cpp @@ -128,7 +128,7 @@ class sbugger_state : public driver_device void sbugger(machine_config &config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -147,8 +147,8 @@ class sbugger_state : public driver_device void palette(palette_device &palette) const; uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void io_map(address_map &map); - void prg_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void prg_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/gottlieb/exterm.cpp b/src/mame/gottlieb/exterm.cpp index 92618c9e914..773e936cecf 100644 --- a/src/mame/gottlieb/exterm.cpp +++ b/src/mame/gottlieb/exterm.cpp @@ -96,7 +96,7 @@ class exterm_state : public driver_device void exterm(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_maincpu; @@ -121,8 +121,8 @@ class exterm_state : public driver_device TMS340X0_TO_SHIFTREG_CB_MEMBER(to_shiftreg_slave); TMS340X0_FROM_SHIFTREG_CB_MEMBER(from_shiftreg_slave); - void master_map(address_map &map); - void slave_map(address_map &map); + void master_map(address_map &map) ATTR_COLD; + void slave_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/gottlieb/gottlieb.cpp b/src/mame/gottlieb/gottlieb.cpp index 52a7c7dd240..162f25a9b4b 100644 --- a/src/mame/gottlieb/gottlieb.cpp +++ b/src/mame/gottlieb/gottlieb.cpp @@ -281,9 +281,9 @@ class gottlieb_state : public driver_device ioport_value stooges_joystick_r(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: void analog_reset_w(u8 data); @@ -317,11 +317,11 @@ class gottlieb_state : public driver_device void audio_handle_zero_crossing(const attotime &zerotime, bool logit); void laserdisc_audio_process(int samplerate, int samples, const int16_t *ch0, const int16_t *ch1); - void gottlieb_base_map(address_map &map); - void gottlieb_ram_map(address_map &map); - void gottlieb_ram_rom_map(address_map &map); - void gottlieb_rom_map(address_map &map); - void reactor_map(address_map &map); + void gottlieb_base_map(address_map &map) ATTR_COLD; + void gottlieb_ram_map(address_map &map) ATTR_COLD; + void gottlieb_ram_rom_map(address_map &map) ATTR_COLD; + void gottlieb_rom_map(address_map &map) ATTR_COLD; + void reactor_map(address_map &map) ATTR_COLD; // devices required_device m_maincpu; diff --git a/src/mame/gridcomp/gridcomp.cpp b/src/mame/gridcomp/gridcomp.cpp index 722deb81b22..8662ea377d8 100644 --- a/src/mame/gridcomp/gridcomp.cpp +++ b/src/mame/gridcomp/gridcomp.cpp @@ -123,8 +123,8 @@ class gridcomp_state : public driver_device void grid1101(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; @@ -153,9 +153,9 @@ class gridcomp_state : public driver_device void kbd_put(u16 data); - void grid1101_io(address_map &map); - void grid1101_map(address_map &map); - void grid1121_map(address_map &map); + void grid1101_io(address_map &map) ATTR_COLD; + void grid1101_map(address_map &map) ATTR_COLD; + void grid1121_map(address_map &map) ATTR_COLD; bool m_kbd_ready = false; uint16_t m_kbd_data = 0; diff --git a/src/mame/gridcomp/gridkeyb.h b/src/mame/gridcomp/gridkeyb.h index 9f0398a2261..65a745112f6 100644 --- a/src/mame/gridcomp/gridkeyb.h +++ b/src/mame/gridcomp/gridkeyb.h @@ -46,7 +46,7 @@ class grid_keyboard_device : public device_t, protected device_matrix_keyboard_i m_keyboard_cb.set(std::forward(args)...); } - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; protected: grid_keyboard_device( @@ -55,8 +55,8 @@ class grid_keyboard_device : public device_t, protected device_matrix_keyboard_i char const *tag, device_t *owner, u32 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 void key_make(u8 row, u8 column) override; virtual void key_repeat(u8 row, u8 column) override; virtual void send_key(u16 code); diff --git a/src/mame/grundy/newbrain.h b/src/mame/grundy/newbrain.h index 1fb7c2c9965..9e6aca635b8 100644 --- a/src/mame/grundy/newbrain.h +++ b/src/mame/grundy/newbrain.h @@ -56,12 +56,12 @@ class newbrain_state : public driver_device void newbrain_video(machine_config &config); private: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; - void newbrain_iorq(address_map &map); - void newbrain_mreq(address_map &map); + void newbrain_iorq(address_map &map) ATTR_COLD; + void newbrain_mreq(address_map &map) ATTR_COLD; TIMER_CALLBACK_MEMBER(clear_reset); TIMER_CALLBACK_MEMBER(power_on); diff --git a/src/mame/handheld/chessking.cpp b/src/mame/handheld/chessking.cpp index 251fab38a86..4c0b7095d2e 100644 --- a/src/mame/handheld/chessking.cpp +++ b/src/mame/handheld/chessking.cpp @@ -63,7 +63,7 @@ class chessking_state : public driver_device void chesskng(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_maincpu; @@ -78,8 +78,8 @@ class chessking_state : public driver_device uint8_t m_cart_bank = 0; uint16_t m_beeper_freq = 0; - void chesskng_map(address_map &map); - void chesskng_io(address_map &map); + void chesskng_map(address_map &map) ATTR_COLD; + void chesskng_io(address_map &map) ATTR_COLD; DECLARE_DEVICE_IMAGE_LOAD_MEMBER(cart_load); uint8_t cartridge_r(offs_t offset); diff --git a/src/mame/handheld/gameking.cpp b/src/mame/handheld/gameking.cpp index 55b668fa4d6..a5778dd9165 100644 --- a/src/mame/handheld/gameking.cpp +++ b/src/mame/handheld/gameking.cpp @@ -51,7 +51,7 @@ class gameking_state : public driver_device void gameking1(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_maincpu; @@ -71,8 +71,8 @@ class gameking_state : public driver_device uint32_t screen_update_gameking3(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); DECLARE_DEVICE_IMAGE_LOAD_MEMBER(cart_load); - void gameking_mem(address_map &map); - void gameking3_mem(address_map &map); + void gameking_mem(address_map &map) ATTR_COLD; + void gameking3_mem(address_map &map) ATTR_COLD; emu_timer *m_timer1; emu_timer *m_timer2; diff --git a/src/mame/handheld/gmaster.cpp b/src/mame/handheld/gmaster.cpp index e0c8a262b75..417deddc2d2 100644 --- a/src/mame/handheld/gmaster.cpp +++ b/src/mame/handheld/gmaster.cpp @@ -71,7 +71,7 @@ class gmaster_state : public driver_device void gmaster(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_maincpu; @@ -89,7 +89,7 @@ class gmaster_state : public driver_device u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); template SED1520_UPDATE_CB(screen_update_cb); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; }; void gmaster_state::machine_start() diff --git a/src/mame/handheld/hh_cop400.cpp b/src/mame/handheld/hh_cop400.cpp index aa1a60e11af..769df8d9a16 100644 --- a/src/mame/handheld/hh_cop400.cpp +++ b/src/mame/handheld/hh_cop400.cpp @@ -74,8 +74,8 @@ class hh_cop400_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(power_button); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; // devices required_device m_maincpu; @@ -600,7 +600,7 @@ class lchicken_state : public hh_cop400_state int motor_switch_r(); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: output_finder<> m_motor_pos_out; @@ -1118,8 +1118,8 @@ class mbaskb2_state : public hh_cop400_state ioport_value switch_r(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_subcpu; @@ -2314,7 +2314,7 @@ class scat_state : public hh_cop400_state void scat(machine_config &config); private: - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; void update_display(); void write_d(u8 data); diff --git a/src/mame/handheld/hh_cops1.cpp b/src/mame/handheld/hh_cops1.cpp index 573b2a8bb71..cf641ce35bc 100644 --- a/src/mame/handheld/hh_cops1.cpp +++ b/src/mame/handheld/hh_cops1.cpp @@ -51,8 +51,8 @@ class hh_cops1_state : public driver_device { } protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; // devices required_device m_maincpu; diff --git a/src/mame/handheld/hh_hmcs40.cpp b/src/mame/handheld/hh_hmcs40.cpp index fc9d8edea04..7dfb606089d 100644 --- a/src/mame/handheld/hh_hmcs40.cpp +++ b/src/mame/handheld/hh_hmcs40.cpp @@ -167,8 +167,8 @@ class hh_hmcs40_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(single_interrupt_line); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; // devices required_device m_maincpu; @@ -2430,7 +2430,7 @@ class cdkong_state : public hh_hmcs40_state void cdkong(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_volume; @@ -3353,7 +3353,7 @@ class eturtles_state : public hh_hmcs40_state DECLARE_INPUT_CHANGED_MEMBER(game_speed); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; required_device m_audiocpu; diff --git a/src/mame/handheld/hh_ht11xx.cpp b/src/mame/handheld/hh_ht11xx.cpp index 5c61a786bc1..b61e4b79481 100644 --- a/src/mame/handheld/hh_ht11xx.cpp +++ b/src/mame/handheld/hh_ht11xx.cpp @@ -65,7 +65,7 @@ class hh_ht1190_state : public hh_ht11xx_state void brke23p2(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; void segment_w(offs_t offset, u64 data); @@ -87,7 +87,7 @@ class hh_ht1130_state : public hh_ht11xx_state void ga888(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; void segment_w(offs_t offset, u64 data); diff --git a/src/mame/handheld/hh_melps4.cpp b/src/mame/handheld/hh_melps4.cpp index a88160e4d88..8a64ce9b682 100644 --- a/src/mame/handheld/hh_melps4.cpp +++ b/src/mame/handheld/hh_melps4.cpp @@ -39,8 +39,8 @@ class hh_melps4_state : public driver_device virtual DECLARE_INPUT_CHANGED_MEMBER(reset_button); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; // devices required_device m_maincpu; diff --git a/src/mame/handheld/hh_mn1400.cpp b/src/mame/handheld/hh_mn1400.cpp index f08b98ac4d6..07edb95fe55 100644 --- a/src/mame/handheld/hh_mn1400.cpp +++ b/src/mame/handheld/hh_mn1400.cpp @@ -39,8 +39,8 @@ class hh_mn1400_state : public driver_device { } protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; // devices required_device m_maincpu; diff --git a/src/mame/handheld/hh_pic16.cpp b/src/mame/handheld/hh_pic16.cpp index 1f19aa39e04..a2598417992 100644 --- a/src/mame/handheld/hh_pic16.cpp +++ b/src/mame/handheld/hh_pic16.cpp @@ -106,8 +106,8 @@ class hh_pic16_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(power_button); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; // devices required_device m_maincpu; @@ -869,7 +869,7 @@ class flash_state : public hh_pic16_state void flash(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_volume; @@ -1304,7 +1304,7 @@ class leboom_state : public hh_pic16_state void leboom(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_volume; diff --git a/src/mame/handheld/hh_pps41.cpp b/src/mame/handheld/hh_pps41.cpp index b2ef2c96cb2..aca9a88299f 100644 --- a/src/mame/handheld/hh_pps41.cpp +++ b/src/mame/handheld/hh_pps41.cpp @@ -57,7 +57,7 @@ class hh_pps41_state : public driver_device virtual DECLARE_INPUT_CHANGED_MEMBER(power_button); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; virtual void machine_reset() override { update_int(); } virtual void device_post_load() override { update_int(); } diff --git a/src/mame/handheld/hh_rw5000.cpp b/src/mame/handheld/hh_rw5000.cpp index 656810b97dd..c5248241692 100644 --- a/src/mame/handheld/hh_rw5000.cpp +++ b/src/mame/handheld/hh_rw5000.cpp @@ -58,8 +58,8 @@ class hh_rw5000_state : public driver_device template DECLARE_INPUT_CHANGED_MEMBER(switch_prev) { if (newval) switch_change(Sel, param, false); } protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; // devices required_device m_maincpu; diff --git a/src/mame/handheld/hh_sm510.cpp b/src/mame/handheld/hh_sm510.cpp index 58276765dd9..25ca88ba8b9 100644 --- a/src/mame/handheld/hh_sm510.cpp +++ b/src/mame/handheld/hh_sm510.cpp @@ -6874,7 +6874,7 @@ class tgaiden_state : public hh_sm510_state void tgaiden(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: // R2 connects to a single LED behind the screen diff --git a/src/mame/handheld/hh_sm510.h b/src/mame/handheld/hh_sm510.h index 8cd7829dcc9..7e87f19a692 100644 --- a/src/mame/handheld/hh_sm510.h +++ b/src/mame/handheld/hh_sm510.h @@ -81,8 +81,8 @@ class hh_sm510_state : public driver_device TIMER_CALLBACK_MEMBER(display_decay_tick); emu_timer *m_display_decay_timer = nullptr; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; // machine configs void mcfg_cpu_common(machine_config &config); diff --git a/src/mame/handheld/hh_smc1k.cpp b/src/mame/handheld/hh_smc1k.cpp index a0e21ea621a..6ff971352b5 100644 --- a/src/mame/handheld/hh_smc1k.cpp +++ b/src/mame/handheld/hh_smc1k.cpp @@ -43,8 +43,8 @@ class hh_smc1k_state : public driver_device virtual DECLARE_INPUT_CHANGED_MEMBER(acl_button); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; // devices required_device m_maincpu; diff --git a/src/mame/handheld/hh_tms1k.cpp b/src/mame/handheld/hh_tms1k.cpp index ad957b8cd85..94c5bba242a 100644 --- a/src/mame/handheld/hh_tms1k.cpp +++ b/src/mame/handheld/hh_tms1k.cpp @@ -387,8 +387,8 @@ class hh_tms1k_state : public driver_device template DECLARE_INPUT_CHANGED_MEMBER(switch_prev) { if (newval) switch_change(Sel, param, false); } protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; // devices required_device m_maincpu; @@ -987,7 +987,7 @@ class bcheetah_state : public hh_tms1k_state void bcheetah(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: output_finder<> m_motor1; @@ -1870,7 +1870,7 @@ class cchime_state : public hh_tms1k_state void cchime(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_volume; @@ -2608,7 +2608,7 @@ class h2hbaskb_state : public hh_tms1k_state void h2hhockey(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_cap_discharge; @@ -3081,7 +3081,7 @@ class quizwizc_state : public hh_tms1k_state void quizwizc(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: u16 m_pinout = 0x07; // cartridge R pins @@ -3272,7 +3272,7 @@ class tc4_state : public hh_tms1k_state void tc4(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: u8 m_pinout = 0xf; // cartridge K pins @@ -3453,7 +3453,7 @@ class litelrn_state : public hh_tms1k_state void litelrn(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_volume; @@ -5947,7 +5947,7 @@ class mmarvin_state : public hh_tms1k_state void mmarvin(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_volume; @@ -7406,7 +7406,7 @@ class skywriter_state : public hh_tms1k_state void skywriter(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: std::unique_ptr m_pixbuf; @@ -9748,7 +9748,7 @@ class bigtrak_state : public hh_tms1k_state void bigtrak(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: output_finder<> m_left_motor_forward; @@ -9973,7 +9973,7 @@ class mbdtower_state : public hh_tms1k_state void mbdtower(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: output_finder<> m_motor_pos_out; @@ -12392,7 +12392,7 @@ class wtalker_state : public hh_tms1k_state ioport_value pulse_r() { return (m_pulse > machine().time()) ? 1 : 0; } protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: memory_share_creator m_nvram; @@ -15332,7 +15332,7 @@ class playmaker_state : public hh_tms1k_state void playmaker(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: u8 m_notch = 0; // cartridge K1/K2 @@ -16358,7 +16358,7 @@ class tbreakup_state : public hh_tms1k_state DECLARE_INPUT_CHANGED_MEMBER(skill_switch); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_expander; @@ -17258,7 +17258,7 @@ class xl25_state : public hh_tms1k_state DECLARE_INPUT_CHANGED_MEMBER(k4_button) { update_halt(); } protected: - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; private: void update_halt(); diff --git a/src/mame/handheld/hh_ucom4.cpp b/src/mame/handheld/hh_ucom4.cpp index 3642869e1c4..c766bb25259 100644 --- a/src/mame/handheld/hh_ucom4.cpp +++ b/src/mame/handheld/hh_ucom4.cpp @@ -133,8 +133,8 @@ class hh_ucom4_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(single_interrupt_line); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; // devices required_device m_maincpu; diff --git a/src/mame/handheld/lk3000.cpp b/src/mame/handheld/lk3000.cpp index 1790d930e93..a20462df212 100644 --- a/src/mame/handheld/lk3000.cpp +++ b/src/mame/handheld/lk3000.cpp @@ -59,7 +59,7 @@ class lk3000_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(reset_button) { m_maincpu->set_input_line(INPUT_LINE_RESET, newval ? ASSERT_LINE : CLEAR_LINE); } protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: // devices/pointers @@ -77,8 +77,8 @@ class lk3000_state : public driver_device bool m_has_ram = false; u8 m_ram[0x400]; - void main_map(address_map &map); - void main_io(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void main_io(address_map &map) ATTR_COLD; DECLARE_DEVICE_IMAGE_LOAD_MEMBER(cart_load); template void update_display(offs_t offset, u16 data); diff --git a/src/mame/handheld/monty.cpp b/src/mame/handheld/monty.cpp index 6e5065aec04..771aa4db37b 100644 --- a/src/mame/handheld/monty.cpp +++ b/src/mame/handheld/monty.cpp @@ -61,7 +61,7 @@ class monty_state : public driver_device void mmonty(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_maincpu; @@ -73,9 +73,9 @@ class monty_state : public driver_device int m_lcd_cs = 0; int m_halt = 0; - void monty_mem(address_map &map); - void mmonty_mem(address_map &map); - void monty_io(address_map &map); + void monty_mem(address_map &map) ATTR_COLD; + void mmonty_mem(address_map &map) ATTR_COLD; + void monty_io(address_map &map) ATTR_COLD; template void lcd_output_w(offs_t offset, u64 data) { m_lcd_data[N << 4 | offset] = data; } // buffer for screen_update u32 screen_update(screen_device& screen, bitmap_rgb32& bitmap, const rectangle& cliprect); diff --git a/src/mame/handheld/pensebem.cpp b/src/mame/handheld/pensebem.cpp index 849e5e636c1..7ecd56c484c 100644 --- a/src/mame/handheld/pensebem.cpp +++ b/src/mame/handheld/pensebem.cpp @@ -128,8 +128,8 @@ class pensebem2017_state : public driver_device void pensebem2017(machine_config &config); private: - void prg_map(address_map &map); - void data_map(address_map &map); + void prg_map(address_map &map) ATTR_COLD; + void data_map(address_map &map) ATTR_COLD; uint8_t port_b_r(); void port_b_w(uint8_t data); @@ -150,8 +150,8 @@ class pensebem2017_state : public driver_device required_ioport_array<4> m_keyb_rows; protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; }; void pensebem2017_state::machine_start() diff --git a/src/mame/handheld/rzone.cpp b/src/mame/handheld/rzone.cpp index 49d96ab314f..70974305af9 100644 --- a/src/mame/handheld/rzone.cpp +++ b/src/mame/handheld/rzone.cpp @@ -57,7 +57,7 @@ class rzone_state : public hh_sm510_state void rzindy500(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: output_finder<> m_led_out; diff --git a/src/mame/handheld/scrablex.cpp b/src/mame/handheld/scrablex.cpp index b0138bcc4b2..36aacb73ea2 100644 --- a/src/mame/handheld/scrablex.cpp +++ b/src/mame/handheld/scrablex.cpp @@ -43,7 +43,7 @@ class scrablex_state : public driver_device void scrablex(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_maincpu; diff --git a/src/mame/handheld/talkingbb.cpp b/src/mame/handheld/talkingbb.cpp index f27177b10a2..9c988f027ee 100644 --- a/src/mame/handheld/talkingbb.cpp +++ b/src/mame/handheld/talkingbb.cpp @@ -131,7 +131,7 @@ class talkingbb_state : public driver_device void talkingbb(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: // devices/pointers @@ -143,8 +143,8 @@ class talkingbb_state : public driver_device u8 m_bank = 0; u8 m_inp_mux = 0; - void main_map(address_map &map); - void main_io(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void main_io(address_map &map) ATTR_COLD; // I/O handlers void bank_w(u8 data); diff --git a/src/mame/handheld/talkingfb.cpp b/src/mame/handheld/talkingfb.cpp index 149d5eef92c..f2c7e751820 100644 --- a/src/mame/handheld/talkingfb.cpp +++ b/src/mame/handheld/talkingfb.cpp @@ -50,7 +50,7 @@ class talkingfb_state : public driver_device void talkingfb(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: // devices/pointers @@ -61,8 +61,8 @@ class talkingfb_state : public driver_device u8 m_bank = 0; u8 m_inp_mux = 0; - void main_map(address_map &map); - void main_io(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void main_io(address_map &map) ATTR_COLD; // I/O handlers void bank_w(u8 data); diff --git a/src/mame/handheld/teammate.cpp b/src/mame/handheld/teammate.cpp index ead490dea51..1ca9bbf65c1 100644 --- a/src/mame/handheld/teammate.cpp +++ b/src/mame/handheld/teammate.cpp @@ -48,7 +48,7 @@ class teammate_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(reset_button) { m_maincpu->set_input_line(INPUT_LINE_RESET, newval ? ASSERT_LINE : CLEAR_LINE); } protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_maincpu; @@ -62,8 +62,8 @@ class teammate_state : public driver_device u8 m_select = 0; u8 m_led_data = 0; - void main_map(address_map &map); - void main_io(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void main_io(address_map &map) ATTR_COLD; void select_w(u8 data); u8 select_r(); diff --git a/src/mame/handheld/wildfire.cpp b/src/mame/handheld/wildfire.cpp index 8ca0b985752..4eb7fa2931f 100644 --- a/src/mame/handheld/wildfire.cpp +++ b/src/mame/handheld/wildfire.cpp @@ -64,7 +64,7 @@ class wildfire_state : public driver_device void wildfire(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_maincpu; diff --git a/src/mame/hds/hds200.cpp b/src/mame/hds/hds200.cpp index b6eb465711d..5dce5d54f7c 100644 --- a/src/mame/hds/hds200.cpp +++ b/src/mame/hds/hds200.cpp @@ -73,12 +73,12 @@ class hds200_state : public driver_device void hds200(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: - void mem_map(address_map &map); - void io_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_dma; @@ -91,9 +91,9 @@ class hds200_state : public driver_device required_memory_bank m_rombank; uint8_t attr_r(offs_t offset); - void attrram_map(address_map &map); + void attrram_map(address_map &map) ATTR_COLD; uint8_t char_r(offs_t offset); - void charram_map(address_map &map); + void charram_map(address_map &map) ATTR_COLD; SCN2674_DRAW_CHARACTER_MEMBER(draw_character); diff --git a/src/mame/hds/hds200_kbd.h b/src/mame/hds/hds200_kbd.h index ff2cb782a0d..4575e230006 100644 --- a/src/mame/hds/hds200_kbd.h +++ b/src/mame/hds/hds200_kbd.h @@ -38,10 +38,10 @@ class hds200_kbd_hle_device : public device_t, protected: // device_t overrides - virtual ioport_constructor device_input_ports() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; // device_buffered_serial_interface overrides virtual void tra_callback() override; diff --git a/src/mame/heathzenith/et3400.cpp b/src/mame/heathzenith/et3400.cpp index 86eec309cb8..884f0b477ba 100644 --- a/src/mame/heathzenith/et3400.cpp +++ b/src/mame/heathzenith/et3400.cpp @@ -56,7 +56,7 @@ class et3400_state : public driver_device private: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; uint8_t keypad_r(offs_t offset); void display_w(offs_t offset, uint8_t data); @@ -66,7 +66,7 @@ class et3400_state : public driver_device uint8_t pia_br(); void pia_bw(uint8_t data); - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_pia; diff --git a/src/mame/heathzenith/h17_fdc.h b/src/mame/heathzenith/h17_fdc.h index 75dd4460e93..ef5ab3e193e 100644 --- a/src/mame/heathzenith/h17_fdc.h +++ b/src/mame/heathzenith/h17_fdc.h @@ -38,9 +38,9 @@ class heath_h17_fdc_device : public device_t protected: static constexpr u8 MAX_FLOPPY_DRIVES = 3; - 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; void ctrl_w(u8 val); u8 floppy_status_r(); diff --git a/src/mame/heathzenith/h8.cpp b/src/mame/heathzenith/h8.cpp index 243fe3d279f..d859eda7cf4 100644 --- a/src/mame/heathzenith/h8.cpp +++ b/src/mame/heathzenith/h8.cpp @@ -85,8 +85,8 @@ class h8_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(button_0); protected: - virtual void machine_reset() override; - virtual void machine_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; private: u8 portf0_r(); @@ -99,8 +99,8 @@ class h8_state : public driver_device TIMER_DEVICE_CALLBACK_MEMBER(kansas_r); TIMER_DEVICE_CALLBACK_MEMBER(kansas_w); - void io_map(address_map &map); - void mem_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; u8 m_digit = 0U; u8 m_segment = 0U; diff --git a/src/mame/heathzenith/h89.cpp b/src/mame/heathzenith/h89.cpp index 3a22250cac4..4e459099d76 100644 --- a/src/mame/heathzenith/h89.cpp +++ b/src/mame/heathzenith/h89.cpp @@ -140,15 +140,15 @@ class h89_base_state : public driver_device void update_gpp(u8 gpp); void port_f2_w(u8 data); - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; TIMER_DEVICE_CALLBACK_MEMBER(h89_irq_timer); - void h89_mem(address_map &map); - void map_fetch(address_map &map); + void h89_mem(address_map &map) ATTR_COLD; + void map_fetch(address_map &map) ATTR_COLD; u8 m1_r(offs_t offset); - void h89_base_io(address_map &map); + void h89_base_io(address_map &map) ATTR_COLD; void set_wait_state(int data); @@ -179,7 +179,7 @@ class h88_state : public h89_base_state protected: required_device m_cassette; - void h88_io(address_map &map); + void h88_io(address_map &map) ATTR_COLD; }; @@ -202,7 +202,7 @@ class h89_state : public h89_base_state protected: required_device m_h37; - void h89_io(address_map &map); + void h89_io(address_map &map) ATTR_COLD; }; @@ -220,7 +220,7 @@ class h89_sigmasoft_state : public h89_state protected: required_device m_sigma_parallel; - void h89_sigmasoft_io(address_map &map); + void h89_sigmasoft_io(address_map &map) ATTR_COLD; }; @@ -258,7 +258,7 @@ class h89_mms_state : public h89_base_state protected: required_device m_mms316; - void h89_mms_io(address_map &map); + void h89_mms_io(address_map &map) ATTR_COLD; }; diff --git a/src/mame/heathzenith/h_88_cass.h b/src/mame/heathzenith/h_88_cass.h index f3a7a22196f..ab705d0763a 100644 --- a/src/mame/heathzenith/h_88_cass.h +++ b/src/mame/heathzenith/h_88_cass.h @@ -28,9 +28,9 @@ class heath_h_88_cass_device : public device_t protected: - 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; void uart_rts(u8 data); void uart_tx_empty(u8 data); diff --git a/src/mame/heathzenith/intr_cntrl.h b/src/mame/heathzenith/intr_cntrl.h index b35efe6ea9e..ca26007df3e 100644 --- a/src/mame/heathzenith/intr_cntrl.h +++ b/src/mame/heathzenith/intr_cntrl.h @@ -53,7 +53,7 @@ class heath_intr_cntrl : public device_t, virtual u8 get_instruction() override; virtual void update_intr_line(); - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; u8 m_intr_lines; }; @@ -72,7 +72,7 @@ class ss_intr_cntrl : public heath_intr_cntrl protected: ss_intr_cntrl(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock = 0); - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; bool m_drq_raised; bool m_irq_raised; @@ -94,7 +94,7 @@ class z37_intr_cntrl : public ss_intr_cntrl virtual u8 get_instruction() override; virtual void update_intr_line() override; - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; bool m_intr_blocked; }; @@ -113,7 +113,7 @@ class mms_intr_cntrl : public ss_intr_cntrl virtual u8 get_instruction() override; virtual void update_intr_line() override; - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; }; @@ -155,7 +155,7 @@ class heath_intr_socket : public device_t, protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; devcb_write8 m_irq_line; diff --git a/src/mame/heathzenith/mdt60.cpp b/src/mame/heathzenith/mdt60.cpp index 039ee3f02b0..ea4a45d1558 100644 --- a/src/mame/heathzenith/mdt60.cpp +++ b/src/mame/heathzenith/mdt60.cpp @@ -46,8 +46,8 @@ class mdt60_state : public driver_device void mdt60(machine_config &mconfig); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: MC6845_UPDATE_ROW(update_row); @@ -58,7 +58,7 @@ class mdt60_state : public driver_device u8 dip0_r(offs_t offset); void reg_w(u8 data); - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_keyboard; diff --git a/src/mame/heathzenith/mms77316_fdc.h b/src/mame/heathzenith/mms77316_fdc.h index 0568049e418..eea4c671f63 100644 --- a/src/mame/heathzenith/mms77316_fdc.h +++ b/src/mame/heathzenith/mms77316_fdc.h @@ -30,9 +30,9 @@ class mms77316_fdc_device : public device_t protected: - 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; void ctrl_w(u8 val); void data_w(u8 val); diff --git a/src/mame/heathzenith/sigmasoft_parallel_port.h b/src/mame/heathzenith/sigmasoft_parallel_port.h index 15837bf577b..b32aa193a88 100644 --- a/src/mame/heathzenith/sigmasoft_parallel_port.h +++ b/src/mame/heathzenith/sigmasoft_parallel_port.h @@ -32,7 +32,7 @@ class sigmasoft_parallel_port : public device_t protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; u8 video_mem_r(); void video_mem_w(u8 val); diff --git a/src/mame/heathzenith/tlb.h b/src/mame/heathzenith/tlb.h index 4763f5ffe98..6034265ef21 100644 --- a/src/mame/heathzenith/tlb.h +++ b/src/mame/heathzenith/tlb.h @@ -79,14 +79,14 @@ class heath_tlb_device : public device_t, protected: heath_tlb_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock = 0); - virtual ioport_constructor device_input_ports() const override; - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_start() override; - virtual void device_reset() override; - virtual void device_add_mconfig(machine_config &config) override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + 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; - void mem_map(address_map &map); - void io_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; // interrupt related @@ -161,8 +161,8 @@ class heath_super19_tlb_device : public heath_tlb_device heath_super19_tlb_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock = 0); protected: - virtual const tiny_rom_entry *device_rom_region() const override; - virtual ioport_constructor device_input_ports() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; }; /** @@ -174,14 +174,14 @@ class heath_superset_tlb_device : public heath_tlb_device heath_superset_tlb_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock = 0); protected: - virtual const tiny_rom_entry *device_rom_region() const override; - virtual ioport_constructor device_input_ports() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; - 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; - void mem_map(address_map &map); - void io_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; virtual MC6845_UPDATE_ROW(crtc_update_row) override; @@ -205,8 +205,8 @@ class heath_watz_tlb_device : public heath_tlb_device heath_watz_tlb_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock = 0); protected: - virtual const tiny_rom_entry *device_rom_region() const override; - virtual ioport_constructor device_input_ports() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; }; /** @@ -218,11 +218,11 @@ class heath_ultra_tlb_device : public heath_tlb_device heath_ultra_tlb_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock = 0); protected: - virtual const tiny_rom_entry *device_rom_region() const override; - virtual ioport_constructor device_input_ports() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; }; /** @@ -236,14 +236,14 @@ class heath_gp19_tlb_device : public heath_tlb_device static constexpr feature_type imperfect_features() { return feature::GRAPHICS; } protected: - virtual const tiny_rom_entry *device_rom_region() const override; - virtual ioport_constructor device_input_ports() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; - 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; - void mem_map(address_map &map); - void io_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; void latch_u5_w(u8 data); @@ -264,14 +264,14 @@ class heath_imaginator_tlb_device : public heath_tlb_device heath_imaginator_tlb_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock = 0); 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_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; - void mem_map(address_map &map); - void io_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; virtual MC6845_UPDATE_ROW(crtc_update_row) override; void crtc_hsync_w(int val); @@ -327,9 +327,9 @@ class heath_igc_tlb_device : public heath_tlb_device protected: heath_igc_tlb_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock = 0); - 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; virtual MC6845_UPDATE_ROW(crtc_update_row) override; @@ -359,8 +359,8 @@ class heath_igc_super19_tlb_device : public heath_igc_tlb_device heath_igc_super19_tlb_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock = 0); protected: - virtual const tiny_rom_entry *device_rom_region() const override; - virtual ioport_constructor device_input_ports() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; }; /** @@ -372,11 +372,11 @@ class heath_igc_ultra_tlb_device : public heath_igc_tlb_device heath_igc_ultra_tlb_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock = 0); protected: - virtual const tiny_rom_entry *device_rom_region() const override; - virtual ioport_constructor device_input_ports() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; }; /** @@ -388,8 +388,8 @@ class heath_igc_watz_tlb_device : public heath_igc_tlb_device heath_igc_watz_tlb_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock = 0); protected: - virtual const tiny_rom_entry *device_rom_region() const override; - virtual ioport_constructor device_input_ports() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; }; // Options for the standard H89 class of systems @@ -460,7 +460,7 @@ class heath_tlb_connector : public device_t, void sigma_window_hi_addr_w(u8 val) { if (m_tlb) m_tlb->sigma_window_hi_addr_w(val); } protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; devcb_write_line m_write_sd; devcb_write_line m_dtr_cb; diff --git a/src/mame/heathzenith/z100.cpp b/src/mame/heathzenith/z100.cpp index 15a2e247bdc..cae804fc257 100644 --- a/src/mame/heathzenith/z100.cpp +++ b/src/mame/heathzenith/z100.cpp @@ -196,9 +196,9 @@ class z100_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(kbd_reset); private: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; uint8_t ram_r(offs_t offset); void ram_w(offs_t offset, uint8_t data); @@ -227,8 +227,8 @@ class z100_state : public driver_device MC6845_UPDATE_ROW(update_row); - void z100_io(address_map &map); - void z100_mem(address_map &map); + void z100_io(address_map &map) ATTR_COLD; + void z100_mem(address_map &map) ATTR_COLD; required_device m_maincpu; required_shared_ptr m_ram; diff --git a/src/mame/heathzenith/z22.cpp b/src/mame/heathzenith/z22.cpp index a9fcab693f1..f820454cad6 100644 --- a/src/mame/heathzenith/z22.cpp +++ b/src/mame/heathzenith/z22.cpp @@ -42,8 +42,8 @@ class z22_state : public driver_device void z22(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: MC6845_UPDATE_ROW(update_row); @@ -55,7 +55,7 @@ class z22_state : public driver_device void eeprom_clock_w(int state); - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_crtc; diff --git a/src/mame/heathzenith/z29.cpp b/src/mame/heathzenith/z29.cpp index 9ec3d6e1fab..1c069682f39 100644 --- a/src/mame/heathzenith/z29.cpp +++ b/src/mame/heathzenith/z29.cpp @@ -37,7 +37,7 @@ class z29_state : public driver_device void z29(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: void keyin_w(int state); @@ -47,8 +47,8 @@ class z29_state : public driver_device void crtc_w(offs_t offset, u8 data); void latch_12k_w(u8 data); - void prg_map(address_map &map); - void ext_map(address_map &map); + void prg_map(address_map &map) ATTR_COLD; + void ext_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_keyboard; diff --git a/src/mame/heathzenith/z37_fdc.h b/src/mame/heathzenith/z37_fdc.h index 1d758882470..b7b54b2f7ef 100644 --- a/src/mame/heathzenith/z37_fdc.h +++ b/src/mame/heathzenith/z37_fdc.h @@ -29,9 +29,9 @@ class heath_z37_fdc_device : public device_t protected: - 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; void ctrl_w(u8 val); diff --git a/src/mame/hec2hrp/hec2hrp.h b/src/mame/hec2hrp/hec2hrp.h index 7a5c44e4569..a8da0cf759e 100644 --- a/src/mame/hec2hrp/hec2hrp.h +++ b/src/mame/hec2hrp/hec2hrp.h @@ -87,7 +87,7 @@ class hec2hrp_state : public driver_device void interact_common(machine_config &config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: void hector_hr(bitmap_ind16 &bitmap, uint8_t *page, int ymax, int yram); @@ -179,17 +179,17 @@ class hec2hrp_state : public driver_device void hector_80c(bitmap_ind16 &bitmap, uint8_t *page, int ymax, int yram); void hector_disc2_reset(); uint32_t screen_update_interact(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void interact_mem(address_map &map); - - void hec2hrp_io(address_map &map); - void hec2hrp_mem(address_map &map); - void hec2hrx_io(address_map &map); - void hec2hrx_mem(address_map &map); - void hec2mdhrx_io(address_map &map); - void hec2mx40_io(address_map &map); - void hec2mx80_io(address_map &map); - void hecdisc2_io(address_map &map); - void hecdisc2_mem(address_map &map); + void interact_mem(address_map &map) ATTR_COLD; + + void hec2hrp_io(address_map &map) ATTR_COLD; + void hec2hrp_mem(address_map &map) ATTR_COLD; + void hec2hrx_io(address_map &map) ATTR_COLD; + void hec2hrx_mem(address_map &map) ATTR_COLD; + void hec2mdhrx_io(address_map &map) ATTR_COLD; + void hec2mx40_io(address_map &map) ATTR_COLD; + void hec2mx80_io(address_map &map) ATTR_COLD; + void hecdisc2_io(address_map &map) ATTR_COLD; + void hecdisc2_mem(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_cassette; diff --git a/src/mame/hegenerglaser/academy.cpp b/src/mame/hegenerglaser/academy.cpp index c1f3aaa8696..09c9faddda9 100644 --- a/src/mame/hegenerglaser/academy.cpp +++ b/src/mame/hegenerglaser/academy.cpp @@ -59,7 +59,7 @@ class academy_state : public driver_device required_device m_outlatch; required_ioport m_keys; - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; void led_w(u8 data); u8 input_r(); diff --git a/src/mame/hegenerglaser/amsterdam.cpp b/src/mame/hegenerglaser/amsterdam.cpp index 29fa3ca03fb..662f3bdb3ca 100644 --- a/src/mame/hegenerglaser/amsterdam.cpp +++ b/src/mame/hegenerglaser/amsterdam.cpp @@ -62,8 +62,8 @@ class amsterdam_state : public driver_device required_ioport_array<2> m_keys; required_ioport m_reset; - void amsterd_mem(address_map &map); - void dallas32_mem(address_map &map); + void amsterd_mem(address_map &map) ATTR_COLD; + void dallas32_mem(address_map &map) ATTR_COLD; void led_w(offs_t offset, u8 data); void dac_w(u8 data); diff --git a/src/mame/hegenerglaser/berlin.cpp b/src/mame/hegenerglaser/berlin.cpp index e51819eb972..b7f320e2103 100644 --- a/src/mame/hegenerglaser/berlin.cpp +++ b/src/mame/hegenerglaser/berlin.cpp @@ -68,8 +68,8 @@ class berlin_state : public driver_device required_device m_display; required_ioport m_keys; - void berlin_mem(address_map &map); - void berlinp_mem(address_map &map); + void berlin_mem(address_map &map) ATTR_COLD; + void berlinp_mem(address_map &map) ATTR_COLD; u8 nvram_r(offs_t offset) { return m_nvram[offset]; } void nvram_w(offs_t offset, u8 data) { m_nvram[offset] = data; } diff --git a/src/mame/hegenerglaser/brikett.cpp b/src/mame/hegenerglaser/brikett.cpp index f17d594bf18..4b2d5c01ea3 100644 --- a/src/mame/hegenerglaser/brikett.cpp +++ b/src/mame/hegenerglaser/brikett.cpp @@ -133,7 +133,7 @@ class brikett_state : public driver_device void mephisto3(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; virtual void machine_reset() override { m_reset = true; } private: @@ -154,14 +154,14 @@ class brikett_state : public driver_device u8 m_esb_select = 0; // address maps - void mephisto_map(address_map &map); - void mephistoj_map(address_map &map); - void mephisto2_map(address_map &map); - void mephistoe2_map(address_map &map); - void mephistoe2a_map(address_map &map); - void mephisto3_map(address_map &map); - void mephisto_io(address_map &map); - void mephistoj_io(address_map &map); + void mephisto_map(address_map &map) ATTR_COLD; + void mephistoj_map(address_map &map) ATTR_COLD; + void mephisto2_map(address_map &map) ATTR_COLD; + void mephistoe2_map(address_map &map) ATTR_COLD; + void mephistoe2a_map(address_map &map) ATTR_COLD; + void mephisto3_map(address_map &map) ATTR_COLD; + void mephisto_io(address_map &map) ATTR_COLD; + void mephistoj_io(address_map &map) ATTR_COLD; // I/O handlers int clear_r(); diff --git a/src/mame/hegenerglaser/europa.cpp b/src/mame/hegenerglaser/europa.cpp index d4eede6a7a9..74da1ffa225 100644 --- a/src/mame/hegenerglaser/europa.cpp +++ b/src/mame/hegenerglaser/europa.cpp @@ -59,7 +59,7 @@ class europa_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(on_button); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: // devices/pointers diff --git a/src/mame/hegenerglaser/glasgow.cpp b/src/mame/hegenerglaser/glasgow.cpp index 2fe7ad3b2fa..4afa855a03c 100644 --- a/src/mame/hegenerglaser/glasgow.cpp +++ b/src/mame/hegenerglaser/glasgow.cpp @@ -62,7 +62,7 @@ class glasgow_state : public driver_device void glasgow(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_maincpu; @@ -73,7 +73,7 @@ class glasgow_state : public driver_device u8 m_kp_mux = 0; - void glasgow_mem(address_map &map); + void glasgow_mem(address_map &map) ATTR_COLD; void control_w(u8 data); u8 keys_r(); diff --git a/src/mame/hegenerglaser/milano.cpp b/src/mame/hegenerglaser/milano.cpp index 15022e7cc18..b492ba9428e 100644 --- a/src/mame/hegenerglaser/milano.cpp +++ b/src/mame/hegenerglaser/milano.cpp @@ -46,7 +46,7 @@ class milano_state : public driver_device void milano(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_maincpu; @@ -58,7 +58,7 @@ class milano_state : public driver_device u8 m_board_mux = 0; u8 m_led_data = 0; - void milano_mem(address_map &map); + void milano_mem(address_map &map) ATTR_COLD; void update_leds(); void io_w(u8 data); diff --git a/src/mame/hegenerglaser/mm1.cpp b/src/mame/hegenerglaser/mm1.cpp index 9544068575c..e0d63de4903 100644 --- a/src/mame/hegenerglaser/mm1.cpp +++ b/src/mame/hegenerglaser/mm1.cpp @@ -75,7 +75,7 @@ class mm1_state : public driver_device void mm1(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; virtual void machine_reset() override { m_reset = true; } private: @@ -89,9 +89,9 @@ class mm1_state : public driver_device u8 m_kp_mux = 0; // address maps - void mirage_map(address_map &map); - void mm1_map(address_map &map); - void mm1_io(address_map &map); + void mirage_map(address_map &map) ATTR_COLD; + void mm1_map(address_map &map) ATTR_COLD; + void mm1_io(address_map &map) ATTR_COLD; // I/O handlers void update_display(); diff --git a/src/mame/hegenerglaser/mm2.cpp b/src/mame/hegenerglaser/mm2.cpp index af977d7f1aa..9d94c1f78d4 100644 --- a/src/mame/hegenerglaser/mm2.cpp +++ b/src/mame/hegenerglaser/mm2.cpp @@ -148,7 +148,7 @@ class mm2_state : public driver_device void bup(machine_config &config); protected: - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; @@ -157,11 +157,11 @@ class mm2_state : public driver_device required_ioport_array<2> m_keys; required_ioport m_reset; - void bup_mem(address_map &map); - void mm2_mem(address_map &map); - void mm4_mem(address_map &map); - void mm5p_mem(address_map &map); - void rebel5_mem(address_map &map); + void bup_mem(address_map &map) ATTR_COLD; + void mm2_mem(address_map &map) ATTR_COLD; + void mm4_mem(address_map &map) ATTR_COLD; + void mm5p_mem(address_map &map) ATTR_COLD; + void rebel5_mem(address_map &map) ATTR_COLD; void lcd_irqack_w(u8 data); u8 keys_r(offs_t offset); diff --git a/src/mame/hegenerglaser/mmboard.h b/src/mame/hegenerglaser/mmboard.h index e0a29534114..22fc6f30903 100644 --- a/src/mame/hegenerglaser/mmboard.h +++ b/src/mame/hegenerglaser/mmboard.h @@ -36,8 +36,8 @@ class mephisto_board_device : public device_t 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; void set_config(machine_config &config, sensorboard_device::sb_type board_type); void refresh_leds_w(offs_t offset, u8 data); @@ -64,7 +64,7 @@ class mephisto_sensors_board_device : public mephisto_board_device protected: // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; @@ -78,7 +78,7 @@ class mephisto_buttons_board_device : public mephisto_board_device protected: // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; diff --git a/src/mame/hegenerglaser/mmdisplay1.h b/src/mame/hegenerglaser/mmdisplay1.h index 53015299565..22a98a33b8f 100644 --- a/src/mame/hegenerglaser/mmdisplay1.h +++ b/src/mame/hegenerglaser/mmdisplay1.h @@ -26,8 +26,8 @@ class mephisto_display1_device : public device_t 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; private: output_finder<4> m_digits; diff --git a/src/mame/hegenerglaser/mmdisplay2.h b/src/mame/hegenerglaser/mmdisplay2.h index 0cb2004f98f..c29a9fb022a 100644 --- a/src/mame/hegenerglaser/mmdisplay2.h +++ b/src/mame/hegenerglaser/mmdisplay2.h @@ -31,9 +31,9 @@ class mephisto_display2_device : public device_t protected: // device-level overrides - 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; private: required_device m_lcd; diff --git a/src/mame/hegenerglaser/modena.cpp b/src/mame/hegenerglaser/modena.cpp index 824c13a1b07..99e1d944a3e 100644 --- a/src/mame/hegenerglaser/modena.cpp +++ b/src/mame/hegenerglaser/modena.cpp @@ -51,7 +51,7 @@ class modena_state : public driver_device void modena(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_maincpu; @@ -64,7 +64,7 @@ class modena_state : public driver_device u8 m_board_mux = 0; u8 m_io_ctrl = 0; - void modena_mem(address_map &map); + void modena_mem(address_map &map) ATTR_COLD; u8 input_r(); void io_w(u8 data); diff --git a/src/mame/hegenerglaser/modular.cpp b/src/mame/hegenerglaser/modular.cpp index 8ffbd0da372..3ec15249264 100644 --- a/src/mame/hegenerglaser/modular.cpp +++ b/src/mame/hegenerglaser/modular.cpp @@ -128,8 +128,8 @@ class mmodular_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(switch_sensor_type) { set_sbtype(newval); } protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: // devices/pointers @@ -143,13 +143,13 @@ class mmodular_state : public driver_device u8 m_bav_data = 0; // address maps - void alm16_mem(address_map &map); - void alm32_mem(address_map &map); - void port16_mem(address_map &map); - void port32_mem(address_map &map); - void van16_mem(address_map &map); - void van32_mem(address_map &map); - void gen32_mem(address_map &map); + void alm16_mem(address_map &map) ATTR_COLD; + void alm32_mem(address_map &map) ATTR_COLD; + void port16_mem(address_map &map) ATTR_COLD; + void port32_mem(address_map &map) ATTR_COLD; + void van16_mem(address_map &map) ATTR_COLD; + void van32_mem(address_map &map) ATTR_COLD; + void gen32_mem(address_map &map) ATTR_COLD; // I/O handlers u32 rom_r(offs_t offset); diff --git a/src/mame/hegenerglaser/modular_tm.cpp b/src/mame/hegenerglaser/modular_tm.cpp index f80068626e0..ae15955af43 100644 --- a/src/mame/hegenerglaser/modular_tm.cpp +++ b/src/mame/hegenerglaser/modular_tm.cpp @@ -71,8 +71,8 @@ class mmtm_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(change_cpu_freq); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: // devices/pointers @@ -83,8 +83,8 @@ class mmtm_state : public driver_device emu_timer *m_boot_timer; // address maps - void mmtm_2m_map(address_map &map); - void mmtm_8m_map(address_map &map); + void mmtm_2m_map(address_map &map) ATTR_COLD; + void mmtm_8m_map(address_map &map) ATTR_COLD; u8 nvram_r(offs_t offset) { return m_nvram[offset]; } void nvram_w(offs_t offset, u8 data) { m_nvram[offset] = data; } diff --git a/src/mame/hegenerglaser/mondial.cpp b/src/mame/hegenerglaser/mondial.cpp index db074497daa..0395f4fde7c 100644 --- a/src/mame/hegenerglaser/mondial.cpp +++ b/src/mame/hegenerglaser/mondial.cpp @@ -51,7 +51,7 @@ class mondial_state : public driver_device void mondial(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_maincpu; @@ -62,7 +62,7 @@ class mondial_state : public driver_device u8 m_inp_mux = 0; - void mondial_mem(address_map &map); + void mondial_mem(address_map &map) ATTR_COLD; void control_w(u8 data); u8 irq_ack_r(); diff --git a/src/mame/hegenerglaser/mondial2.cpp b/src/mame/hegenerglaser/mondial2.cpp index 739d8fd6479..5b77c18e8fd 100644 --- a/src/mame/hegenerglaser/mondial2.cpp +++ b/src/mame/hegenerglaser/mondial2.cpp @@ -43,7 +43,7 @@ class mondial2_state : public driver_device void mondial2(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_maincpu; @@ -56,7 +56,7 @@ class mondial2_state : public driver_device u8 m_board_mux = 0; u8 m_led_data = 0; - void mondial2_mem(address_map &map); + void mondial2_mem(address_map &map) ATTR_COLD; void update_leds(); void control_w(u8 data); diff --git a/src/mame/hegenerglaser/mondial68k.cpp b/src/mame/hegenerglaser/mondial68k.cpp index a21e17b8e69..002fcc2ddd5 100644 --- a/src/mame/hegenerglaser/mondial68k.cpp +++ b/src/mame/hegenerglaser/mondial68k.cpp @@ -53,7 +53,7 @@ class mondial68k_state : public driver_device void mondial68k(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_maincpu; @@ -67,7 +67,7 @@ class mondial68k_state : public driver_device u8 m_input_mux = 0xff; u8 m_board_mux = 0xff; - void mondial68k_mem(address_map &map); + void mondial68k_mem(address_map &map) ATTR_COLD; void update_leds(); void lcd_output_w(u32 data); diff --git a/src/mame/hegenerglaser/montec.cpp b/src/mame/hegenerglaser/montec.cpp index 7d60e03970b..dc2d72890b0 100644 --- a/src/mame/hegenerglaser/montec.cpp +++ b/src/mame/hegenerglaser/montec.cpp @@ -58,7 +58,7 @@ class montec_state : public driver_device void montec4le(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_maincpu; @@ -69,7 +69,7 @@ class montec_state : public driver_device required_ioport_array<2> m_keys; output_finder<8> m_digits; - void montec_mem(address_map &map); + void montec_mem(address_map &map) ATTR_COLD; template void lcd_output_w(u32 data); void led_w(u8 data); diff --git a/src/mame/hegenerglaser/polgar.cpp b/src/mame/hegenerglaser/polgar.cpp index a71514031b7..4739bd9790c 100644 --- a/src/mame/hegenerglaser/polgar.cpp +++ b/src/mame/hegenerglaser/polgar.cpp @@ -46,7 +46,7 @@ class polgar_state : public driver_device required_device m_maincpu; required_ioport m_keys; - void polgar_mem(address_map &map); + void polgar_mem(address_map &map) ATTR_COLD; u8 keys_r(offs_t offset); }; diff --git a/src/mame/hegenerglaser/risc.cpp b/src/mame/hegenerglaser/risc.cpp index d50a7ca3275..8e81bc87fab 100644 --- a/src/mame/hegenerglaser/risc.cpp +++ b/src/mame/hegenerglaser/risc.cpp @@ -48,7 +48,7 @@ class risc_state : public driver_device void mrisc(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_maincpu; @@ -56,7 +56,7 @@ class risc_state : public driver_device required_memory_bank m_rombank; required_ioport m_keys; - void mrisc_mem(address_map &map); + void mrisc_mem(address_map &map) ATTR_COLD; u8 keys_r(offs_t offset); u8 chessm_r(); diff --git a/src/mame/hegenerglaser/roma2.cpp b/src/mame/hegenerglaser/roma2.cpp index e65238d70f7..ae83e155a85 100644 --- a/src/mame/hegenerglaser/roma2.cpp +++ b/src/mame/hegenerglaser/roma2.cpp @@ -67,7 +67,7 @@ class roma2_state : public driver_device required_ioport_array<4> m_inputs; optional_ioport m_reset; - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; u8 input_r(); }; diff --git a/src/mame/hegenerglaser/smondial.cpp b/src/mame/hegenerglaser/smondial.cpp index 240a47701a4..7b26c98209e 100644 --- a/src/mame/hegenerglaser/smondial.cpp +++ b/src/mame/hegenerglaser/smondial.cpp @@ -66,7 +66,7 @@ class smondialb_state : public driver_device void smondialb(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; // devices/pointers required_device m_maincpu; @@ -82,8 +82,8 @@ class smondialb_state : public driver_device u8 m_board_mux = 0; // address maps - void smondialb_mem(address_map &map); - void smondial2_mem(address_map &map); + void smondialb_mem(address_map &map) ATTR_COLD; + void smondial2_mem(address_map &map) ATTR_COLD; // I/O handlers template void lcd_output_w(u32 data); @@ -115,7 +115,7 @@ class smondiala_state : public smondialb_state void smondiala(machine_config &config); private: - void smondiala_mem(address_map &map); + void smondiala_mem(address_map &map) ATTR_COLD; // led row/column is switched around, do a trampoline here instead of making a different .lay file virtual void led_w(u8 data) override { smondialb_state::led_w(bitswap<8>(data, 7,6,3,2,5,4,1,0)); } diff --git a/src/mame/hitachi/b16.cpp b/src/mame/hitachi/b16.cpp index e18dcfafa5f..25dd0c4839c 100644 --- a/src/mame/hitachi/b16.cpp +++ b/src/mame/hitachi/b16.cpp @@ -1,71 +1,162 @@ -// license:BSD-3-Clause -// copyright-holders:Angelo Salese -/*************************************************************************** - - Hitachi B(asic Master?) 16 - - very preliminary driver by Angelo Salese - - TODO: - - Driver is all made up of educated guesses (no documentation available) - - 0xfcc67 after the ROM checksum to zero (bp 0xfc153 -> SI = 0) -> system boots - -****************************************************************************/ +// license: BSD-3-Clause +// copyright-holders: Angelo Salese +// thanks-to: Mike Stedman +/************************************************************************************************** + +Hitachi B(asic Master?) 16000 series? + +TODO: +- Barely anything is known about the HW; +- Requires a compatible system disk to make it go further; +- hookup proper keyboard; +- FDC throws disk error, mon_w hookup is unconfirmed, doesn't seem to select a drive ... +- b16: hangs for checking bit 7 in vblank fashion at $80, either the DMA is at the + wrong spot or the earlier variant effectively don't have it. +- b16ex2: "error message 1101", bypassed between ports $80 and $48 +- b16ex2: confirm kanji hookup; + +=================================================================================================== + +B16 EX-II PCB contents: + +TIM uPD8253C-5 @ 16B +DMAC uPD8257C-5 @ 18B +INTM / INTS 2x uPD8259AC @ 13D / 15D +Labelless CRTC, Fujitsu 6845 package +FDC is unpopulated on board, should be a 765 coupled with a SED9420C/AC +USART is unpopulated on board, assume i8251 +PPI is unpopulated on board +BDC HN65013G025 @ 2A +CAL HN6223S @ 12K - Near bus slots +CA HN6022B @ 12L / +MPX HG61H06R29F @ 9J +RAC HN60236 - 81005V @ 9H +A HN60230 - 81007V @ 9F +PAC HG61H20B12F @ 9D +DECO HG61H15B19F @ 11D +KAM HN671105AU @ 16A +DECI HG61H15B19F @ 2F +VAP NEC uPD65030G035 @ 4K +GN NEC uPD65021G030 @ 2K +4x 32x3 slots, labeled SLOT0 to 3 +11 Jumpers "SH1" +Several connectors scattered across the board +Centronics port CN9, Serial port CN8 +2 empty sockets for CN10 / CN11 (DE-9 options?) + +=================================================================================================== + +irq vectors + +intm +ir0 pit timer (does work RAM logic only) +ir1 FDC irq +ir2 ? +ir3 vblank? +ir4 ? +ir5 ? +ir6 slave ack +ir7 ? + +ints +ir0 keyboard +ir1 ? +ir2 ? +ir3 device at I/O $38 / $3a +ir4 device at I/O $4c / $4e +ir5 ? +ir6 ? +ir7 ? + +=================================================================================================== + +Error codes (TODO: RE them all) +0301 PIT failure +1101 b16ex2 bus config error? + +**************************************************************************************************/ #include "emu.h" #include "cpu/i86/i86.h" -#include "machine/am9517a.h" +#include "cpu/i86/i286.h" +#include "imagedev/floppy.h" +#include "machine/i8257.h" +#include "machine/pic8259.h" +#include "machine/pit8253.h" +#include "machine/upd765.h" #include "video/mc6845.h" + #include "emupal.h" #include "screen.h" - +//#include "softlist_dev.h" namespace { class b16_state : public driver_device { public: - b16_state(const machine_config &mconfig, device_type type, const char *tag) : - driver_device(mconfig, type, tag), - m_vram(*this, "vram"), - m_mc6845(*this, "crtc"), - m_dma8237(*this, "8237dma"), - m_maincpu(*this, "maincpu"), - m_gfxdecode(*this, "gfxdecode"), - m_palette(*this, "palette"), - m_char_rom(*this, "pcg") + b16_state(const machine_config &mconfig, device_type type, const char *tag) + : driver_device(mconfig, type, tag) + , m_maincpu(*this, "maincpu") + , m_pit(*this, "pit") + , m_intm(*this, "intm") + , m_ints(*this, "ints") + , m_dma(*this, "dma") + , m_crtc(*this, "crtc") + , m_vram(*this, "vram") + , m_gfxdecode(*this, "gfxdecode") + , m_palette(*this, "palette") + , m_kanji_rom(*this, "kanji") + , m_fdc(*this, "fdc") + , m_floppy(*this, "fdc:%u", 0U) { } void b16(machine_config &config); + void b16ex2(machine_config &config); + DECLARE_INPUT_CHANGED_MEMBER(key_pressed); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + + void b16_map(address_map &map) ATTR_COLD; + void b16_io(address_map &map) ATTR_COLD; + void b16ex2_map(address_map &map) ATTR_COLD; private: uint8_t m_crtc_vreg[0x100]{}, m_crtc_index = 0; + uint8_t m_port78 = 0; + uint8_t m_keyb_scancode = 0; - required_shared_ptr m_vram; - required_device m_mc6845; - required_device m_dma8237; required_device m_maincpu; + required_device m_pit; + required_device m_intm; + required_device m_ints; + required_device m_dma; + required_device m_crtc; + required_shared_ptr m_vram; required_device m_gfxdecode; required_device m_palette; - required_region_ptr m_char_rom; - - uint16_t vblank_r(); - void b16_pcg_w(offs_t offset, uint8_t data); - void b16_6845_address_w(uint8_t data); - void b16_6845_data_w(uint8_t data); - uint8_t unk_dev_r(offs_t offset); - void unk_dev_w(offs_t offset, uint8_t data); + required_region_ptr m_kanji_rom; + required_device m_fdc; + required_device_array m_floppy; + + std::unique_ptr m_ig_ram; + + u8 ig_ram_r(offs_t offset); + void ig_ram_w(offs_t offset, uint8_t data); + void crtc_address_w(uint8_t data); + void crtc_data_w(uint8_t data); uint8_t memory_read_byte(offs_t offset); void memory_write_byte(offs_t offset, uint8_t data); uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void b16_io(address_map &map); - void b16_map(address_map &map); + TIMER_CALLBACK_MEMBER( tc_tick_cb ); + emu_timer *m_timer_tc; + + static void floppy_formats(format_registration &fr); }; #define mc6845_h_char_total (m_crtc_vreg[0]) @@ -88,6 +179,9 @@ class b16_state : public driver_device void b16_state::video_start() { + m_ig_ram = make_unique_clear(0x4000); + m_gfxdecode->gfx(1)->set_source_and_total(m_ig_ram.get(), 0x200 * 2); + save_item(NAME(m_crtc_vreg)); save_item(NAME(m_crtc_index)); } @@ -95,21 +189,44 @@ void b16_state::video_start() uint32_t b16_state::screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect) { - for(int y=0;y> 8; + const u32 tile_offset = x + y * mc6845_h_display; + const u16 lo_vram = m_vram[tile_offset]; + const u16 hi_vram = m_vram[tile_offset + 0x4000 / 2]; + const u16 tile = lo_vram & 0x00ff; + const u8 color = (lo_vram & 0x0700) >> 8; - for(int yi=0;yi(tile + (kanji_bank << 8), 12, 7, 6, 5, 11, 10, 9, 8, 4, 3, 2, 1, 0) << 4; + gfx_data = m_kanji_rom[((kanji_offset + yi) << 1) + lr]; + } + else + { + gfx_data = m_ig_ram[(tile << 4) + yi]; + } + + for(int xi = 0; xi < 8; xi++) { - int const pen = (m_char_rom[tile*16+yi] >> (7-xi) & 1) ? color : 0; + const int res_x = x * 8 + xi; + const int res_y = y * mc6845_tile_height + yi; + if (!cliprect.contains(res_x, res_y)) + continue; - if(y*mc6845_tile_height < 400 && x*8+xi < 640) /* TODO: safety check */ - bitmap.pix(y*mc6845_tile_height+yi, x*8+xi) = m_palette->pen(pen); + int const pen = BIT(gfx_data, 7 - xi) ? color : 0; + bitmap.pix(res_y, res_x) = m_palette->pen(pen); } } } @@ -118,128 +235,157 @@ uint32_t b16_state::screen_update(screen_device &screen, bitmap_ind16 &bitmap, c return 0; } -void b16_state::b16_pcg_w(offs_t offset, uint8_t data) +u8 b16_state::ig_ram_r(offs_t offset) { - m_char_rom[offset] = data; + // swap bit 0 for now, so we can see a setup thru debugger later on. + // SW does mov ah,0 -> stosw when uploading. + const u16 ig_offset = bitswap<13>(offset, 0, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1); + return m_ig_ram[ig_offset]; +} + +void b16_state::ig_ram_w(offs_t offset, uint8_t data) +{ + const u16 ig_offset = bitswap<13>(offset, 0, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1); + m_ig_ram[ig_offset] = data; - m_gfxdecode->gfx(0)->mark_dirty(offset >> 4); + m_gfxdecode->gfx(1)->mark_dirty(ig_offset >> 4); } void b16_state::b16_map(address_map &map) { map.unmap_value_high(); - map(0x00000, 0x9ffff).ram(); // probably not all of it. + // TODO: amount of work RAM depends on model type + map(0x00000, 0x9ffff).ram(); map(0xa0000, 0xaffff).ram(); // bitmap? - map(0xb0000, 0xb7fff).ram().share("vram"); // tvram - map(0xb8000, 0xbbfff).w(FUNC(b16_state::b16_pcg_w)).umask16(0x00ff); // pcg + map(0xb0000, 0xb7fff).ram().share("vram"); + map(0xb8000, 0xbbfff).rw(FUNC(b16_state::ig_ram_r), FUNC(b16_state::ig_ram_w)).umask16(0xffff); map(0xfc000, 0xfffff).rom().region("ipl", 0); } -uint16_t b16_state::vblank_r() +void b16_state::b16ex2_map(address_map &map) { - return ioport("SYSTEM")->read(); + b16_state::b16_map(map); +// map(0x0e****) bus slot ROM? + map(0x0f8000, 0x0fffff).rom().region("ipl", 0); + map(0xff8000, 0xffffff).rom().region("ipl", 0); } -void b16_state::b16_6845_address_w(uint8_t data) +void b16_state::crtc_address_w(uint8_t data) { m_crtc_index = data; - m_mc6845->address_w(data); + m_crtc->address_w(data); } -void b16_state::b16_6845_data_w(uint8_t data) +void b16_state::crtc_data_w(uint8_t data) { m_crtc_vreg[m_crtc_index] = data; - m_mc6845->register_w(data); -} - -/* -Pretty weird protocol, dunno what it is ... - -8a (06) W -(04) R -ff (04) W -(04) R -ff (04) W -36 (0e) W -ff (08) W -ff (08) W -06 (0e) W -(08) R -(08) R -36 (0e) W -40 (08) W -9c (08) W -76 (0e) W -ff (0a) W -ff (0a) W -46 (0e) W -(0a) R -(0a) R -76 (0e) W -1a (0a) W -00 (0a) W -b6 (0e) W -ff (0c) W -ff (0c) W -86 (0e) W -(0c) R -(0c) R -b6 (0e) W -34 (0c) W -00 (0c) W -36 (0e) W -b6 (0e) W -40 (08) W -9c (08) W -34 (0c) W -00 (0c) W -8a (06) W -06 (06) W -05 (06) W -*/ - -uint8_t b16_state::unk_dev_r(offs_t offset) -{ - static int test; - - printf("(%02x) R\n",offset << 1); - - if(offset == 0x8/2 || offset == 0x0a/2 || offset == 0x0c/2) // quick hack - { - test^=1; - return test ? 0x9f : 0x92; - } - - return 0xff; + m_crtc->register_w(data); } -void b16_state::unk_dev_w(offs_t offset, uint8_t data) +void b16_state::b16_io(address_map &map) { - printf("%02x (%02x) W\n",data,offset << 1); - + map.unmap_value_high(); +// map(0x00, 0x07).umask16(0x00ff); // PIT mirror? + map(0x08, 0x0f).rw(m_pit, FUNC(pit8253_device::read), FUNC(pit8253_device::write)).umask16(0x00ff); + map(0x10, 0x13).rw(m_intm, FUNC(pic8259_device::read), FUNC(pic8259_device::write)).umask16(0x00ff); + map(0x18, 0x1b).rw(m_ints, FUNC(pic8259_device::read), FUNC(pic8259_device::write)).umask16(0x00ff); + map(0x20, 0x20).w(FUNC(b16_state::crtc_address_w)); + map(0x22, 0x22).w(FUNC(b16_state::crtc_data_w)); +// map(0x28, 0x2b) keyboard, likely thru USART + map(0x28, 0x28).lr8(NAME([this]() {return m_keyb_scancode; })); + map(0x2a, 0x2a).lr8(NAME([]() { return 0x02; })); + // Jumper block? +// map(0x40, 0x40) +// map(0x42, 0x42) +// map(0x44, 0x44) + // b16ex2: jumps to $e0000 if bit 7 high, noisy on bit 4 + map(0x48, 0x48).lr8(NAME([] () { return 0; })); + map(0x70, 0x73).m(m_fdc, FUNC(upd765a_device::map)).umask16(0x00ff); + map(0x74, 0x74).lw8( + NAME([this] (u8 data) { + floppy_image_device *floppy = m_floppy[0]->get_device(); + + // motor on strobe? + if (floppy != nullptr) + { + floppy->mon_w(1); + floppy->mon_w(0); + } + }) + ); + map(0x78, 0x78).lrw8( + NAME([this] () { + return m_port78; + }), + NAME([this] (u8 data) { + logerror("Port $78 %02x\n", data); + // bit 0: TC strobe? + // bit 2: FDC reset? + m_port78 = data; + if (BIT(data, 0)) + { + m_fdc->tc_w(true); + m_timer_tc->adjust(attotime::zero); + } + }) + ); + map(0x79, 0x79).lrw8( + NAME([] () { + // bit 0 read at POST + return 0; + }), + NAME([this] (u8 data) { + logerror("Port $79 write %02x\n", data); + }) + ); + map(0x80, 0x89).rw(m_dma, FUNC(i8257_device::read), FUNC(i8257_device::write)).umask16(0x00ff); +// map(0x00a0, 0x00bf) DMA upper segments or video clut +// map(0x8020, 0x8023) external FDC? Can branch at FDC irq } -void b16_state::b16_io(address_map &map) +INPUT_CHANGED_MEMBER(b16_state::key_pressed) { - map.unmap_value_high(); - map(0x00, 0x0f).rw(FUNC(b16_state::unk_dev_r), FUNC(b16_state::unk_dev_w)).umask16(0x00ff); // DMA device? - map(0x20, 0x20).w(FUNC(b16_state::b16_6845_address_w)); - map(0x22, 0x22).w(FUNC(b16_state::b16_6845_data_w)); - //0x79 bit 0 DSW? - map(0x80, 0x81).r(FUNC(b16_state::vblank_r)); // TODO + m_ints->ir0_w(!newval); + m_keyb_scancode = (u8)param | (newval << 7); } -/* Input ports */ static INPUT_PORTS_START( b16 ) - PORT_START("SYSTEM") - PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_CUSTOM ) PORT_VBLANK("screen") + // question marks denotes unknown keys, asterisks for empty chars + // KEY0 + // ?1234567 + // ? = left arrow (backspace?) + + // KEY1 + // 890-*** + + PORT_START("KEY2") + // ?qwertyu + PORT_BIT(0x40, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_Y) PORT_CHAR('Y') PORT_CHANGED_MEMBER(DEVICE_SELF, b16_state, key_pressed, 0x10 | 6) + + // KEY3 + // iop@[*** + + PORT_START("KEY4") + // asdfghjk + PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_A) PORT_CHAR('A') PORT_CHANGED_MEMBER(DEVICE_SELF, b16_state, key_pressed, 0x20) + + // KEY5 + // ?;:]**** + + PORT_START("KEY6") + // zxcvbnm, + PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_Z) PORT_CHAR('Z') PORT_CHANGED_MEMBER(DEVICE_SELF, b16_state, key_pressed, 0x30) + PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_X) PORT_CHAR('X') PORT_CHANGED_MEMBER(DEVICE_SELF, b16_state, key_pressed, 0x31) + PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_C) PORT_CHAR('C') PORT_CHANGED_MEMBER(DEVICE_SELF, b16_state, key_pressed, 0x32) +// PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_V) PORT_CHAR('V') PORT_CHANGED_MEMBER(DEVICE_SELF, b16_state, key_pressed, 0x33) + PORT_BIT(0x10, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_B) PORT_CHAR('B') PORT_CHANGED_MEMBER(DEVICE_SELF, b16_state, key_pressed, 0x34) INPUT_PORTS_END -static const gfx_layout b16_charlayout = +static const gfx_layout charlayout = { 8, 16, RGN_FRAC(1,1), @@ -250,8 +396,21 @@ static const gfx_layout b16_charlayout = 8*16 }; +static const gfx_layout kanjilayout = +{ + 16, 16, + RGN_FRAC(1,1), + 1, + { 0 }, + { STEP16(0,1) }, + { STEP16(0,8*2) }, + 16*16 +}; + + static GFXDECODE_START( gfx_b16 ) - GFXDECODE_ENTRY( "pcg", 0x0000, b16_charlayout, 0, 1 ) + GFXDECODE_ENTRY( "kanji", 0x0000, kanjilayout, 0, 1 ) + GFXDECODE_ENTRY( nullptr, 0x0000, charlayout, 0, 1 ) GFXDECODE_END uint8_t b16_state::memory_read_byte(offs_t offset) @@ -266,15 +425,89 @@ void b16_state::memory_write_byte(offs_t offset, uint8_t data) return prog_space.write_byte(offset, data); } +static void b16_floppies(device_slot_interface &device) +{ + device.option_add("525dd", FLOPPY_525_DD); + // TODO: at least PC-98 3.5" x 1.2MB format +} + +void b16_state::floppy_formats(format_registration &fr) +{ + fr.add_mfm_containers(); +// fr.add(FLOPPY_PC98_FORMAT); +// fr.add(FLOPPY_PC98FDI_FORMAT); +// fr.add(FLOPPY_FDD_FORMAT); +// fr.add(FLOPPY_DCP_FORMAT); +// fr.add(FLOPPY_DIP_FORMAT); +// fr.add(FLOPPY_NFD_FORMAT); +} + +TIMER_CALLBACK_MEMBER( b16_state::tc_tick_cb ) +{ +// logerror("tc off\n"); + m_fdc->tc_w(false); +} + +void b16_state::machine_start() +{ + m_timer_tc = timer_alloc(FUNC(b16_state::tc_tick_cb), this); +} + +void b16_state::machine_reset() +{ + floppy_image_device *floppy = m_floppy[0]->get_device(); + + if (floppy != nullptr) + floppy->set_rpm(300); + m_fdc->set_rate(250000); + +} void b16_state::b16(machine_config &config) { - /* basic machine hardware */ - I8086(config, m_maincpu, XTAL(14'318'181)/2); //unknown xtal + // TODO: attached ROM may be B16 EX instead, with 8086-2 (8 MHz) + // Original B16 should be I8088 + I8086(config, m_maincpu, XTAL(16'000'000)/2); m_maincpu->set_addrmap(AS_PROGRAM, &b16_state::b16_map); m_maincpu->set_addrmap(AS_IO, &b16_state::b16_io); + m_maincpu->set_irq_acknowledge_callback(m_intm, FUNC(pic8259_device::inta_cb)); + + PIT8253(config, m_pit); + // TODO: unconfirmed, just enough to make it surpass POST checks + m_pit->set_clk<0>(XTAL(16'000'000) / 8); + m_pit->out_handler<0>().set(m_intm, FUNC(pic8259_device::ir0_w)); + m_pit->set_clk<1>(XTAL(16'000'000) / 4); +// m_pit->out_handler<1>() + m_pit->set_clk<2>(XTAL(16'000'000) / 4); +// m_pit->out_handler<2>() + + I8257(config, m_dma, XTAL(16'000'000)); + m_dma->in_memr_cb().set(FUNC(b16_state::memory_read_byte)); + m_dma->out_memw_cb().set(FUNC(b16_state::memory_write_byte)); + + PIC8259(config, m_intm); + m_intm->out_int_callback().set_inputline(m_maincpu, 0); + m_intm->in_sp_callback().set_constant(1); + m_intm->read_slave_ack_callback().set(m_ints, FUNC(pic8259_device::acknowledge)); + + PIC8259(config, m_ints, 0); + m_ints->out_int_callback().set(m_intm, FUNC(pic8259_device::ir6_w)); + m_ints->in_sp_callback().set_constant(0); + + // clock unconfirmed, definitely want the ready line on + // would stop at `SEARCH_ADDRESS_MARK_HEADER` otherwise + UPD765A(config, m_fdc, XTAL(16'000'000) / 2, true, false); + m_fdc->intrq_wr_callback().set(m_intm, FUNC(pic8259_device::ir1_w)); + m_fdc->drq_wr_callback().set([this] (int state) { logerror("drq %d\n", state);}); + FLOPPY_CONNECTOR(config, "fdc:0", b16_floppies, "525dd", b16_state::floppy_formats).enable_sound(true); + FLOPPY_CONNECTOR(config, "fdc:1", b16_floppies, "525dd", b16_state::floppy_formats).enable_sound(true); + + /* unknown variant, unknown clock, hand tuned to get ~60 fps */ + MC6845(config, m_crtc, XTAL(16'000'000)/6); + m_crtc->set_screen("screen"); + m_crtc->set_show_border_area(false); + m_crtc->set_char_width(8); - /* video hardware */ screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_RASTER)); screen.set_refresh_hz(60); screen.set_vblank_time(ATTOSECONDS_IN_USEC(2500)); /* not accurate */ @@ -283,32 +516,67 @@ void b16_state::b16(machine_config &config) screen.set_visarea_full(); screen.set_palette(m_palette); - MC6845(config, m_mc6845, XTAL(14'318'181)/5); /* unknown variant, unknown clock, hand tuned to get ~60 fps */ - m_mc6845->set_screen("screen"); - m_mc6845->set_show_border_area(false); - m_mc6845->set_char_width(8); + GFXDECODE(config, m_gfxdecode, m_palette, gfx_b16); + // TODO: palette format is a guess + PALETTE(config, m_palette, palette_device::BRG_3BIT).set_entries(8); +} + +void b16_state::b16ex2(machine_config &config) +{ + b16_state::b16(config); + I80286(config.replace(), m_maincpu, XTAL(16'000'000) / 2); // A80286-8 / S + m_maincpu->set_addrmap(AS_PROGRAM, &b16_state::b16ex2_map); + m_maincpu->set_addrmap(AS_IO, &b16_state::b16_io); + m_maincpu->set_irq_acknowledge_callback(m_intm, FUNC(pic8259_device::inta_cb)); - AM9517A(config, m_dma8237, XTAL(14'318'181)/2); - m_dma8237->in_memr_callback().set(FUNC(b16_state::memory_read_byte)); - m_dma8237->out_memw_callback().set(FUNC(b16_state::memory_write_byte)); + // TODO: as above + m_pit->set_clk<0>(XTAL(16'000'000) / 4); +// m_pit->out_handler<0>() + m_pit->set_clk<1>(XTAL(16'000'000) / 4); +// m_pit->out_handler<1>() + m_pit->set_clk<2>(XTAL(16'000'000) / 2); +// m_pit->out_handler<2>() - GFXDECODE(config, m_gfxdecode, m_palette, gfx_b16); - PALETTE(config, m_palette).set_entries(8); -// MCFG_PALETTE_INIT_STANDARD(black_and_white) // TODO + m_palette->set_entries(16); + + // 512~1.5M RAM + // 5.25" FDD x 2 } -/* ROM definition */ + ROM_START( b16 ) ROM_REGION16_LE( 0x4000, "ipl", ROMREGION_ERASEFF ) ROM_LOAD( "ipl.rom", 0x0000, 0x4000, CRC(7c1c93d5) SHA1(2a1e63a689c316ff836f21646166b38714a18e03) ) - ROM_REGION( 0x4000/2, "pcg", ROMREGION_ERASE00 ) + ROM_REGION( 0x40000, "kanji", ROMREGION_ERASEFF ) +ROM_END + +ROM_START( b16ex2 ) + ROM_REGION16_LE( 0x8000, "ipl", ROMREGION_ERASEFF ) + // M27128-L + ROM_LOAD16_BYTE( "j4c-0072.4b", 0x0001, 0x4000, CRC(7f6e4143) SHA1(afe126639b7161562d93e955c1fc720a93e1596b)) + // M27128-H + ROM_LOAD16_BYTE( "j5c-0072.6b", 0x0000, 0x4000, CRC(5f3c85ca) SHA1(4988d8e1e763268a62f2a86104db4d106babd242)) + + ROM_REGION( 0x40000, "kanji", ROMREGION_ERASE00 ) + // Both HN62301AP, sockets labeled "KANJI1" and "KANJI2" + ROM_LOAD16_BYTE( "7l1.11f", 0x00001, 0x20000, CRC(a31b3efd) SHA1(818b9fbb5109779bb3d66f76a93cc087c3b21698) ) + ROM_LOAD16_BYTE( "7m1.12f", 0x00000, 0x20000, CRC(9eff324e) SHA1(2dfe14cc4b884eb6bb3c953d0ba9677d663b256e) ) ROM_END } // anonymous namespace -/* Driver */ +// TODO: pinpoint MB SKU for all +// Original would be MB-16001, flyer shows a "Basic Master" subtitle +COMP( 1982?, b16, 0, 0, b16, b16, b16_state, empty_init, "Hitachi", "B16", MACHINE_NOT_WORKING | MACHINE_NO_SOUND ) +// B16 EX 8086-2 +// B16 SX superimpose option, 3.5" x 1.2MB floppies + +COMP( 1983?, b16ex2, 0, 0, b16ex2, b16, b16_state, empty_init, "Hitachi", "B16 EX-II", MACHINE_NOT_WORKING | MACHINE_NO_SOUND ) +// B16 MX-II, 1~2MB RAM + 640x494 extra video mode + support for M[ultiuser?]DOS + +// B16 EX-III, 386 based? -/* YEAR NAME PARENT COMPAT MACHINE INPUT CLASS INIT COMPANY FULLNAME FLAGS */ -COMP( 1983, b16, 0, 0, b16, b16, b16_state, empty_init, "Hitachi", "B16", MACHINE_NOT_WORKING | MACHINE_NO_SOUND) +// B16 LX, LCD variants +// Ricoh Mr. My Tool (Mr.マイツール), sister variants with 3.5 2HD floppies diff --git a/src/mame/hitachi/bmjr.cpp b/src/mame/hitachi/bmjr.cpp index 07af7c4bab8..bb98f00b7b0 100644 --- a/src/mame/hitachi/bmjr.cpp +++ b/src/mame/hitachi/bmjr.cpp @@ -53,13 +53,13 @@ class bmjr_state : public driver_device static constexpr feature_type unemulated_features() { return feature::PRINTER; } protected: - virtual void video_start() override; - virtual void video_reset() override; + virtual void video_start() override ATTR_COLD; + virtual void video_reset() override ATTR_COLD; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_cassette; @@ -94,7 +94,7 @@ class bmjr_state : public driver_device u8 m_color_mode = 0U; u8 m_tile_latch = 0U; u8 m_screen_mode = 0U; - void mp1710_map(address_map &map); + void mp1710_map(address_map &map) ATTR_COLD; void screen_mode_w(u8 data); void screen_reverse_w(u8 data); u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); diff --git a/src/mame/hitachi/bml3.cpp b/src/mame/hitachi/bml3.cpp index 12c0d2df941..0fd7cb714e4 100644 --- a/src/mame/hitachi/bml3.cpp +++ b/src/mame/hitachi/bml3.cpp @@ -12,239 +12,31 @@ Basic Master Level 3 (MB-689x) "Peach" (c) 1980 Hitachi TODO: - keyboard break NMI (as per bmjr); -- Move keyboard timer logic as 6845 hsync callback; -- Cassette relay doesn't work properly, issuing a LOAD won't autostart a load; +- Move keyboard timer logic as 6845 hsync callback, fix logic (would key repeat too fast); - Cassette baud rate bump (can switch from 600 to 1200 bauds thru $ffd7); - implement sound as a bus slot device; - implement RAM expansion as bus slots (RAM3 at 0x8000-0xbfff, RAM4 at 0xc000-0xefff); - bml3mk5: BANK REG $ffe8 (applies EMS for the RAM expansion?); -- soft reset will hang the machine; -- Hitachi MB-S1 support (bumps memory map, adds an extra I/O layer); +- Cassettes requires manual press of play button when issuing a LOAD (verify); **************************************************************************************************/ #include "emu.h" +#include "bml3.h" -#include "bus/bml3/bml3bus.h" #include "bus/bml3/kanji.h" #include "bus/bml3/mp1802.h" #include "bus/bml3/mp1805.h" #include "bus/bml3/rtc.h" #include "cpu/m6809/m6809.h" -#include "imagedev/cassette.h" #include "machine/6821pia.h" -#include "machine/6850acia.h" #include "machine/clock.h" -#include "machine/timer.h" -#include "sound/spkrdev.h" -#include "sound/ymopn.h" -#include "video/mc6845.h" -#include "emupal.h" #include "screen.h" #include "softlist_dev.h" #include "speaker.h" -namespace { - -// System clock definitions, from the MB-6890 servce manual, p.48: - -#define MASTER_CLOCK ( 32.256_MHz_XTAL ) // Master clock crystal (X1) frequency, 32.256 MHz. "fx" in the manual. - -#define D80_CLOCK ( MASTER_CLOCK / 2 ) // Graphics dot clock in 80-column mode. ~16 MHz. -#define D40_CLOCK ( D80_CLOCK / 2 ) // Graphics dot clock in 40-column mode. ~8 MHz. - -#define CPU_EXT_CLOCK ( D40_CLOCK / 2 ) // IC37, 4.032 MHz signal to EXTAL on the 6809 MPU. -#define CPU_CLOCK ( CPU_EXT_CLOCK / 4 ) // Actual MPU clock frequency ("fE" in the manual). The division yielding CPU_CLOCK is done in the 6809 itself. Also used as the 40-column character clock. - -#define C80_CLOCK ( CPU_EXT_CLOCK / 2 ) // 80-column character mode. IC37, "80CHRCK"; ~2 MHz. -#define C40_CLOCK ( CPU_CLOCK ) // 40-column character mode; same as MPU clock. "40CHRCK"; ~1 MHz. - -// Video signal clocks from the HD4650SSP CRTC (IC36) -// In the real hardware, the 80-/40-column Mode switch changes the CRTC character clock input source. However, it just uses a different divider, so the end result is the same horizontal vsync frequency. -#define H_CLOCK ( C80_CLOCK / 128 ) // in 80-column mode -//#define H_CLOCK ( C40_CLOCK / 64 ) // in 40-column mode (either way the frequency is the same: 15.75 kHz) -#define V_CLOCK ( 2 * H_CLOCK / 525 ) // Vertical refresh rate comes out at exactly 60 Hz. - -// TODO: ACIA RS-232C and cassette interface clocks (service manual p.67); perhaps reverse the order and simply divide by 2 from each previous frequency. -// IC111 (74LS157P) takes 16.128 MHz and 1.008 MHz TTL clock inputs. The RS/C SW input line determines the mode (high -> RS-232C). - -// Frequencies for RS-232C mode: -// D80_CLOCK / 840.0 // 19200 Hz -// D80_CLOCK / 420 // 38400 Hz -// D80_CLOCK / 210 // 76800 Hz -// D80_CLOCK / 105.0 // 153600 Hz - -// Frequencies for cassette mode: -// / 13440 // 1200 -// / 6720 // 2400 -// / 3360 // 4800 -// / 1680 // 9600 - - -class bml3_state : public driver_device -{ -public: - bml3_state(const machine_config &mconfig, device_type type, const char *tag) - : driver_device(mconfig, type, tag) - , m_maincpu(*this, "maincpu") - , m_bml3bus(*this, "bml3bus") - , m_p_chargen(*this, "chargen") - , m_crtc(*this, "crtc") - , m_cassette(*this, "cassette") - , m_speaker(*this, "speaker") - , m_ym2203(*this, "ym2203") - , m_acia(*this, "acia") - , m_palette(*this, "palette") - , m_rom_view(*this, "rom") - , m_banka(*this, "banka") - , m_bankc(*this, "bankc") - , m_banke(*this, "banke") - , m_bankf(*this, "bankf") - , m_bankg(*this, "bankg") - , m_io_keyboard(*this, "X%u", 0U) - { } - - void bml3(machine_config &config); - DECLARE_INPUT_CHANGED_MEMBER(nmi_button); - -protected: - virtual void main_map(address_map &map); - virtual void system_io(address_map &map); - - virtual void machine_start() override; - virtual void machine_reset() override; - - required_device m_maincpu; - required_device m_bml3bus; - virtual u8 get_attr_mask() { return 0x1f; } - virtual u8 get_ig_mode(u8 attr) { return 0; } - virtual u8 get_ig_dots(u8 tile, u8 ra, u8 xi) { return 0; } -private: - required_region_ptr m_p_chargen; - required_device m_crtc; - required_device m_cassette; - required_device m_speaker; - optional_device m_ym2203; - required_device m_acia; - required_device m_palette; - memory_view m_rom_view; - //memory_view m_bank4; - memory_view m_banka; - memory_view m_bankc; - memory_view m_banke; - memory_view m_bankf; - memory_view m_bankg; - required_ioport_array<4> m_io_keyboard; - - uint8_t mc6845_r(offs_t offset); - void mc6845_w(offs_t offset, u8 data); - uint8_t kb_sel_r(); - void kb_sel_w(u8 data); - void mode_sel_w(u8 data); - void interlace_sel_w(u8 data); - uint8_t vram_r(offs_t offset); - void vram_w(offs_t offset, u8 data); - [[maybe_unused]] uint8_t psg_latch_r(); - [[maybe_unused]] void psg_latch_w(u8 data); - uint8_t c_reg_sel_r(); - void c_reg_sel_w(u8 data); - uint8_t music_sel_r(); - void music_sel_w(u8 data); - void piaA_w(uint8_t data); - uint8_t kbnmi_r(); - void time_mask_w(u8 data); - uint8_t timer_r(); - void remote_w(u8 data); - void acia_rts_w(int state); - void acia_irq_w(int state); - - MC6845_UPDATE_ROW(crtc_update_row); - - INTERRUPT_GEN_MEMBER(timer_firq); - TIMER_DEVICE_CALLBACK_MEMBER(kansas_r); - TIMER_DEVICE_CALLBACK_MEMBER(kansas_w); - TIMER_DEVICE_CALLBACK_MEMBER(keyboard_callback); - [[maybe_unused]] uint8_t ym2203_r(); - [[maybe_unused]] void ym2203_w(u8 data); - - u8 m_hres_reg = 0U; - u8 m_crtc_vreg[0x100]{}; - u8 m_psg_latch = 0U; - u8 m_attr_latch = 0U; - u8 m_vres_reg = 0U; - bool m_keyb_interrupt_enabled = 0; - bool m_keyb_nmi_disabled = 0; // not used yet - bool m_keyb_counter_operation_disabled = 0; - u8 m_keyb_empty_scan = 0U; - u8 m_keyb_scancode = 0U; - u16 m_kbt = 0U; - bool m_keyb_capslock_led_on = 0; - bool m_keyb_hiragana_led_on = 0; - bool m_keyb_katakana_led_on = 0; - bool m_cassbit = 0; - bool m_cassold = 0; - u8 m_cass_data[4]{}; - void crtc_change_clock(); - u8 m_crtc_index = 0U; - std::unique_ptr m_vram; - std::unique_ptr m_aram; - u8 m_firq_mask = 0U; - u8 m_firq_status = 0U; - u8 m_nmi = 0U; -}; - -class bml3mk2_state : public bml3_state -{ -public: - bml3mk2_state(const machine_config &mconfig, device_type type, const char *tag) - : bml3_state(mconfig, type, tag) - { } - - void bml3mk2(machine_config &config); -}; - -class bml3mk5_state : public bml3mk2_state -{ -public: - bml3mk5_state(const machine_config &mconfig, device_type type, const char *tag) - : bml3mk2_state(mconfig, type, tag) - , m_ig_view(*this, "ig_view") - , m_gfxdecode(*this, "gfxdecode") - { } - - void bml3mk5(machine_config &config); -protected: - virtual void main_map(address_map &map) override; - virtual void system_io(address_map &map) override; - - virtual void machine_start() override; - virtual void machine_reset() override; - - virtual u8 get_attr_mask() override { return 0x3f; } - virtual u8 get_ig_mode(u8 attr) override { return BIT(attr, 5); } - // NOTE: if IG attribute is enabled then the rest of attribute byte is ignored (no reverse etc.). - // TODO: if IGMODREG is 1 then the resulting tile will be a white square - virtual u8 get_ig_dots(u8 tile, u8 ra, u8 xi) override { - u16 base_offset = tile << 3; - u8 res = 0; - for (int i = 0; i < 3; i++) - { - if (BIT(m_ig_ram[base_offset + ra + i * 0x800], xi)) - res |= 1 << i; - } - return res; - } -private: - memory_view m_ig_view; - required_device m_gfxdecode; - std::unique_ptr m_ig_ram; - void ig_ram_w(offs_t offset, u8 data); - - u8 m_igen = 0; -}; - MC6845_UPDATE_ROW( bml3_state::crtc_update_row ) { rgb_t const *const palette = m_palette->palette()->entry_list_raw(); @@ -1143,7 +935,6 @@ void bml3mk5_state::bml3mk5(machine_config &config) GFXDECODE(config, "gfxdecode", "palette", gfx_bml3mk5); } - /* ROM definition */ // floppy-drive slot devices expect "maincpu" is sized 0x10000. ROM_START( bml3 ) @@ -1184,9 +975,6 @@ ROM_START( bml3mk5 ) ROM_LOAD("font.rom", 0x0000, 0x1000, BAD_DUMP CRC(0b6f2f10) SHA1(dc411b447ca414e94843636d8b5f910c954581fb) ) // handcrafted ROM_END -} // anonymous namespace - - COMP( 1980, bml3, 0, 0, bml3, bml3, bml3_state, empty_init, "Hitachi", "Basic Master Level 3 (MB-6890)", MACHINE_NOT_WORKING | MACHINE_SUPPORTS_SAVE ) COMP( 1982, bml3mk2, bml3, 0, bml3mk2, bml3, bml3mk2_state, empty_init, "Hitachi", "Basic Master Level 3 Mark II (MB-6891)", MACHINE_NOT_WORKING | MACHINE_SUPPORTS_SAVE ) COMP( 1983, bml3mk5, bml3, 0, bml3mk5, bml3mk5, bml3mk5_state, empty_init, "Hitachi", "Basic Master Level 3 Mark 5 (MB-6892)", MACHINE_NOT_WORKING | MACHINE_SUPPORTS_SAVE ) diff --git a/src/mame/hitachi/bml3.h b/src/mame/hitachi/bml3.h new file mode 100644 index 00000000000..392373bca79 --- /dev/null +++ b/src/mame/hitachi/bml3.h @@ -0,0 +1,223 @@ +// license: GPL-2.0+ +// copyright-holders: Angelo Salese, Jonathan Edwards, Christopher Edwards, Robbbert + +#ifndef MAME_HITACHI_BML3_H +#define MAME_HITACHI_BML3_H + +#pragma once + +#include "bus/bml3/bml3bus.h" +#include "imagedev/cassette.h" +#include "machine/6850acia.h" +#include "sound/spkrdev.h" +#include "sound/ymopn.h" +#include "machine/timer.h" +#include "video/mc6845.h" + +#include "emupal.h" + + +// System clock definitions, from the MB-6890 servce manual, p.48: + +#define MASTER_CLOCK ( 32.256_MHz_XTAL ) // Master clock crystal (X1) frequency, 32.256 MHz. "fx" in the manual. + +#define D80_CLOCK ( MASTER_CLOCK / 2 ) // Graphics dot clock in 80-column mode. ~16 MHz. +#define D40_CLOCK ( D80_CLOCK / 2 ) // Graphics dot clock in 40-column mode. ~8 MHz. + +#define CPU_EXT_CLOCK ( D40_CLOCK / 2 ) // IC37, 4.032 MHz signal to EXTAL on the 6809 MPU. +#define CPU_CLOCK ( CPU_EXT_CLOCK / 4 ) // Actual MPU clock frequency ("fE" in the manual). The division yielding CPU_CLOCK is done in the 6809 itself. Also used as the 40-column character clock. + +#define C80_CLOCK ( CPU_EXT_CLOCK / 2 ) // 80-column character mode. IC37, "80CHRCK"; ~2 MHz. +#define C40_CLOCK ( CPU_CLOCK ) // 40-column character mode; same as MPU clock. "40CHRCK"; ~1 MHz. + +// Video signal clocks from the HD4650SSP CRTC (IC36) +// In the real hardware, the 80-/40-column Mode switch changes the CRTC character clock input source. However, it just uses a different divider, so the end result is the same horizontal vsync frequency. +#define H_CLOCK ( C80_CLOCK / 128 ) // in 80-column mode +//#define H_CLOCK ( C40_CLOCK / 64 ) // in 40-column mode (either way the frequency is the same: 15.75 kHz) +#define V_CLOCK ( 2 * H_CLOCK / 525 ) // Vertical refresh rate comes out at exactly 60 Hz. + +// TODO: ACIA RS-232C and cassette interface clocks (service manual p.67); perhaps reverse the order and simply divide by 2 from each previous frequency. +// IC111 (74LS157P) takes 16.128 MHz and 1.008 MHz TTL clock inputs. The RS/C SW input line determines the mode (high -> RS-232C). + +// Frequencies for RS-232C mode: +// D80_CLOCK / 840.0 // 19200 Hz +// D80_CLOCK / 420 // 38400 Hz +// D80_CLOCK / 210 // 76800 Hz +// D80_CLOCK / 105.0 // 153600 Hz + +// Frequencies for cassette mode: +// / 13440 // 1200 +// / 6720 // 2400 +// / 3360 // 4800 +// / 1680 // 9600 + + +class bml3_state : public driver_device +{ +public: + bml3_state(const machine_config &mconfig, device_type type, const char *tag) + : driver_device(mconfig, type, tag) + , m_maincpu(*this, "maincpu") + , m_bml3bus(*this, "bml3bus") + , m_banka(*this, "banka") + , m_bankc(*this, "bankc") + , m_banke(*this, "banke") + , m_bankf(*this, "bankf") + , m_bankg(*this, "bankg") + , m_rom_view(*this, "rom") + , m_palette(*this, "palette") + , m_p_chargen(*this, "chargen") + , m_crtc(*this, "crtc") + , m_cassette(*this, "cassette") + , m_speaker(*this, "speaker") + , m_ym2203(*this, "ym2203") + , m_acia(*this, "acia") + , m_io_keyboard(*this, "X%u", 0U) + { } + + void bml3(machine_config &config); + DECLARE_INPUT_CHANGED_MEMBER(nmi_button); + +protected: + virtual void main_map(address_map &map) ATTR_COLD; + virtual void system_io(address_map &map) ATTR_COLD; + + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + + required_device m_maincpu; + required_device m_bml3bus; + memory_view m_banka; + memory_view m_bankc; + memory_view m_banke; + memory_view m_bankf; + memory_view m_bankg; + memory_view m_rom_view; + required_device m_palette; + required_region_ptr m_p_chargen; + + virtual u8 get_attr_mask() { return 0x1f; } + virtual u8 get_ig_mode(u8 attr) { return 0; } + virtual u8 get_ig_dots(u8 tile, u8 ra, u8 xi) { return 0; } + + uint8_t vram_r(offs_t offset); + void vram_w(offs_t offset, u8 data); + + virtual MC6845_UPDATE_ROW(crtc_update_row); + +private: + required_device m_crtc; + required_device m_cassette; + required_device m_speaker; + optional_device m_ym2203; + required_device m_acia; + //memory_view m_bank4; + required_ioport_array<4> m_io_keyboard; + + uint8_t mc6845_r(offs_t offset); + void mc6845_w(offs_t offset, u8 data); + uint8_t kb_sel_r(); + void kb_sel_w(u8 data); + void mode_sel_w(u8 data); + void interlace_sel_w(u8 data); + [[maybe_unused]] uint8_t psg_latch_r(); + [[maybe_unused]] void psg_latch_w(u8 data); + uint8_t c_reg_sel_r(); + void c_reg_sel_w(u8 data); + uint8_t music_sel_r(); + void music_sel_w(u8 data); + void piaA_w(uint8_t data); + uint8_t kbnmi_r(); + void time_mask_w(u8 data); + uint8_t timer_r(); + void remote_w(u8 data); + void acia_rts_w(int state); + void acia_irq_w(int state); + + INTERRUPT_GEN_MEMBER(timer_firq); + TIMER_DEVICE_CALLBACK_MEMBER(kansas_r); + TIMER_DEVICE_CALLBACK_MEMBER(kansas_w); + TIMER_DEVICE_CALLBACK_MEMBER(keyboard_callback); + [[maybe_unused]] uint8_t ym2203_r(); + [[maybe_unused]] void ym2203_w(u8 data); + + u8 m_hres_reg = 0U; + u8 m_crtc_vreg[0x100]{}; + u8 m_psg_latch = 0U; + u8 m_attr_latch = 0U; + u8 m_vres_reg = 0U; + bool m_keyb_interrupt_enabled = 0; + bool m_keyb_nmi_disabled = 0; // not used yet + bool m_keyb_counter_operation_disabled = 0; + u8 m_keyb_empty_scan = 0U; + u8 m_keyb_scancode = 0U; + u16 m_kbt = 0U; + bool m_keyb_capslock_led_on = 0; + bool m_keyb_hiragana_led_on = 0; + bool m_keyb_katakana_led_on = 0; + bool m_cassbit = 0; + bool m_cassold = 0; + u8 m_cass_data[4]{}; + void crtc_change_clock(); + u8 m_crtc_index = 0U; + std::unique_ptr m_vram; + std::unique_ptr m_aram; + u8 m_firq_mask = 0U; + u8 m_firq_status = 0U; + u8 m_nmi = 0U; +}; + +class bml3mk2_state : public bml3_state +{ +public: + bml3mk2_state(const machine_config &mconfig, device_type type, const char *tag) + : bml3_state(mconfig, type, tag) + { } + + void bml3mk2(machine_config &config); +}; + +class bml3mk5_state : public bml3mk2_state +{ +public: + bml3mk5_state(const machine_config &mconfig, device_type type, const char *tag) + : bml3mk2_state(mconfig, type, tag) + , m_ig_view(*this, "ig_view") + , m_gfxdecode(*this, "gfxdecode") + { } + + void bml3mk5(machine_config &config); +protected: + virtual void main_map(address_map &map) override ATTR_COLD; + virtual void system_io(address_map &map) override ATTR_COLD; + + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + + virtual u8 get_attr_mask() override { return 0x3f; } + virtual u8 get_ig_mode(u8 attr) override { return BIT(attr, 5); } + // NOTE: if IG attribute is enabled then the rest of attribute byte is ignored (no reverse etc.). + // TODO: if IGMODREG is 1 then the resulting tile will be a white square + virtual u8 get_ig_dots(u8 tile, u8 ra, u8 xi) override { + u16 base_offset = tile << 3; + u8 res = 0; + for (int i = 0; i < 3; i++) + { + if (BIT(m_ig_ram[base_offset + ra + i * 0x800], xi)) + res |= 1 << i; + } + return res; + } + + void ig_ram_w(offs_t offset, u8 data); + + memory_view m_ig_view; + +private: + required_device m_gfxdecode; + std::unique_ptr m_ig_ram; + + u8 m_igen = 0; +}; + +#endif // MAME_HITACHI_BML3_H diff --git a/src/mame/hitachi/mbs1.cpp b/src/mame/hitachi/mbs1.cpp new file mode 100644 index 00000000000..b222a4f5729 --- /dev/null +++ b/src/mame/hitachi/mbs1.cpp @@ -0,0 +1,346 @@ +// license: BSD-3-Clause +// copyright-holders: Angelo Salese +/************************************************************************************************** + +MB-S1 (c) 1984 Hitachi + +TODO: +- Cassette won't load, not even in Level 3 mode; +- Many features missing; + +**************************************************************************************************/ + +#include "emu.h" + +#include "bml3.h" +#include "mbs1_mmu.h" + +#include "emupal.h" +#include "screen.h" +#include "softlist_dev.h" +#include "speaker.h" + + +namespace { + +class mbs1_state : public bml3mk5_state +{ +public: + mbs1_state(const machine_config &mconfig, device_type type, const char *tag) + : bml3mk5_state(mconfig, type, tag) + , m_mmu(*this, "mmu") + , m_vtram(*this, "vtram") + , m_system_mode(*this, "SYSTEM_MODE") + { } + + void mbs1(machine_config &config) ATTR_COLD; + +protected: + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + +// virtual void main_map(address_map &map) override ATTR_COLD; + virtual void system_io(address_map &map) override ATTR_COLD; + void s1_map(address_map &map) ATTR_COLD; + void s1_mmu_map(address_map &map) ATTR_COLD; + void s1_ext_io(address_map &map) ATTR_COLD; + + virtual MC6845_UPDATE_ROW(crtc_update_row) override; + +private: + required_device m_mmu; + required_shared_ptr m_vtram; + required_ioport m_system_mode; + + bool m_su_mode = 0; + u8 m_system_clock = 0; + bool m_system_type = false; +}; + +MC6845_UPDATE_ROW( mbs1_state::crtc_update_row ) +{ + if (!m_system_type) + { + bml3mk5_state::crtc_update_row(bitmap, cliprect, ma, ra, y, x_count, cursor_x, de, hbp, vbp); + return; + } + rgb_t const *const palette = m_palette->palette()->entry_list_raw(); + u8 const bgcolor = 0; //m_hres_reg & 7; + + // TODO: WIDTH80, pinpoint bit used + for (u8 x = 0; x < x_count; x += 2) + { + u16 mem = ((ma + x) >> 1) & 0x7ff; + + //u8 const attr = m_aram[mem]; + u8 const rawbits = m_vtram[mem]; + int const tile = rawbits & 0x7f; + int const tile_bank = BIT(rawbits, 7); + u8 const color = 7; //attr & 7; + bool const reverse = (x == cursor_x); // ^BIT(attr, 3); + + u8 gfx_data = m_p_chargen[(tile<<4)|(ra<<1)|tile_bank]; + + for (u8 xi = 0; xi < 8; xi++) + { + u8 const pen = BIT(reverse ? ~gfx_data : gfx_data, 7 - xi) ? color : bgcolor; + int const res_x = x * 8 + xi * 2; + bitmap.pix(y, res_x + 0) = palette[pen]; + bitmap.pix(y, res_x + 1) = palette[pen]; + } + } + +} + + +void mbs1_state::s1_map(address_map &map) +{ + map(0x0000, 0xffff).rw(m_mmu, FUNC(mbs1_mmu_device::read), FUNC(mbs1_mmu_device::write)); +} + +// TODO: sloppily enough, a memory_view can't see that is actually on higher base +// so using just map(0xf0000, 0xfffff).m(*this, FUNC(mbs1_state::main_map)); +// will just punt with "A memory_view must be installed at its configuration address." +// We also eventually need to add some memory sharing here, for the work RAM so for now +// lets just repeat lv3 memory map. +void mbs1_state::s1_mmu_map(address_map &map) +{ + map.unmap_value_high(); +// map(0x00000, 0x7ffff) extended RAM + +// map(0x84000, 0x8ffff) mirror of main work RAM +$4000 + map(0x84000, 0x8ffff).ram(); +// map(0xb0000, 0xb3fff) GVRAM +// map(0xb4000, 0xbbfff) extra GVRAM banks + map(0xbc000, 0xbc7ff).mirror(0x800).ram().share("vtram"); +// map(0xc0000, 0xc6fff) ROM for MPC-CM01 (card?) +// map(0xc7000, 0xc7fff) EEPROM for MPC-CM01 + map(0xd0000, 0xd7fff).rom().region("dictionary", 0); + map(0xe0000, 0xe7fff).rom().region("s1basic", 0); +// map(0xe2000, 0xe2fff) view overlay for MPC-CM01 + map(0xe8000, 0xeffff).rom().region("s1boot", 0); + map(0xefe00, 0xefeff).m(*this, FUNC(mbs1_state::s1_ext_io)); + map(0xeff00, 0xeffff).m(*this, FUNC(mbs1_state::system_io)); + + map(0xf0000, 0xf03ff).ram(); + map(0xf0400, 0xf43ff).rw(FUNC(mbs1_state::vram_r), FUNC(mbs1_state::vram_w)); + map(0xf4400, 0xf7fff).ram(); + map(0xf8000, 0xf9fff).ram(); + map(0xfa000, 0xfbfff).view(m_banka); + m_banka[0](0xfa000, 0xfbfff).readonly().share("rama"); + map(0xfa000, 0xfbfff).writeonly().share("rama"); + map(0xfc000, 0xfdfff).view(m_bankc); + m_bankc[0](0xfc000, 0xfdfff).readonly().share("ramc"); + map(0xfc000, 0xfdfff).writeonly().share("ramc"); + map(0xfe000, 0xfefff).view(m_banke); + m_banke[0](0xfe000, 0xfefff).readonly().share("rame"); + map(0xfe000, 0xfefff).writeonly().share("rame"); + map(0xff000, 0xffeff).view(m_bankf); + m_bankf[0](0xff000, 0xffeff).readonly().share("ramf"); + map(0xff000, 0xffeff).writeonly().share("ramf"); + map(0xffff0, 0xfffff).view(m_bankg); + m_bankg[0](0xffff0, 0xfffff).readonly().share("ramg"); + map(0xffff0, 0xfffff).writeonly().share("ramg"); + map(0xf8000, 0xfffff).view(m_rom_view); + m_rom_view[0](0xfa000, 0xffeff).rom().region("maincpu", 0xa000); + m_rom_view[0](0xffff0, 0xfffff).rom().region("maincpu", 0xfff0); + map(0xfff00, 0xfffef).m(*this, FUNC(mbs1_state::system_io)); + map(0xfa000, 0xfa7ff).view(m_ig_view); + m_ig_view[0](0xfa000, 0xfa7ff).writeonly().w(FUNC(mbs1_state::ig_ram_w)); + +} + +// relative to $efe00 +void mbs1_state::s1_ext_io(address_map &map) +{ + map(0x00, 0x0f).rw(m_mmu, FUNC(mbs1_mmu_device::bank_r), FUNC(mbs1_mmu_device::bank_w)); +// map(0x10, 0x10) FUSE (w/o) +// map(0x11, 0x11) OS-9 address segment +// map(0x18, 0x18) TRAP (r/o) +// map(0x19, 0x19) BUS control +// map(0x1a, 0x1b) Pro-control / Acc-control for MPC-68008 +// map(0x20, 0x20) BMSK color (w/o) +// map(0x21, 0x21) Active graphic plane +// map(0x23, 0x23) Display page +// map(0x24, 0x24) SCRN mode +// map(0x25, 0x27) BRG graphic color +// map(0x28, 0x2f) palette +// map(0x40, 0x41) PIA 1 (DE-9) +// map(0x42, 0x43) PIA 2 (Printer, mirror of 0xffc2-c3) +} + +void mbs1_state::system_io(address_map &map) +{ + bml3mk5_state::system_io(map); + map(0xeffeb, 0xeffeb).lrw8( + NAME([this]() { + return (m_system_type) | (m_system_clock << 1) | (m_su_mode << 2); + }), + NAME([this] (u8 data) { + logerror("$effeb system clock write %02x\n", data); + m_system_clock = BIT(data, 1); + m_maincpu->set_unscaled_clock(CPU_EXT_CLOCK * (m_system_clock + 1)); + }) + ); +} + +// TODO: duplicated from base bml3, needs keyboard converted into slot device +static INPUT_PORTS_START( mbs1 ) + PORT_START("DIPSW") + PORT_BIT( 0x03, IP_ACTIVE_LOW, IPT_UNUSED ) + // TODO: seems to apply for Level 3 mode only + // May have been removed and hardwired to '1' here. + PORT_DIPNAME( 0x04, 0x04, "40-/80-column") + PORT_DIPSETTING(0x00, "40 chars/line") + PORT_DIPSETTING(0x04, "80 chars/line") + PORT_BIT( 0xf8, IP_ACTIVE_HIGH, IPT_UNUSED ) + + PORT_START("SYSTEM_MODE") + PORT_DIPNAME( 0x01, 0x01, "System Mode") + PORT_DIPSETTING(0x00, "Level 3 mode") + PORT_DIPSETTING(0x01, "S1 mode") + + PORT_START("X0") //0x00-0x1f + PORT_BIT(0x00000001,IP_ACTIVE_HIGH,IPT_KEYBOARD) PORT_NAME("Space") PORT_CODE(KEYCODE_SPACE) PORT_CHAR(' ') + PORT_BIT(0x00000002,IP_ACTIVE_HIGH,IPT_KEYBOARD) PORT_NAME("Up") PORT_CODE(KEYCODE_UP) PORT_CHAR(UCHAR_MAMEKEY(UP)) + PORT_BIT(0x00000004,IP_ACTIVE_HIGH,IPT_KEYBOARD) PORT_NAME("? PAD") + PORT_BIT(0x00000008,IP_ACTIVE_HIGH,IPT_KEYBOARD) PORT_NAME("Left") PORT_CODE(KEYCODE_LEFT) PORT_CHAR(UCHAR_MAMEKEY(LEFT)) + PORT_BIT(0x00000010,IP_ACTIVE_HIGH,IPT_KEYBOARD) PORT_NAME("Down") PORT_CODE(KEYCODE_DOWN) PORT_CHAR(UCHAR_MAMEKEY(DOWN)) + PORT_BIT(0x00000020,IP_ACTIVE_HIGH,IPT_KEYBOARD) PORT_NAME("Right") PORT_CODE(KEYCODE_RIGHT) PORT_CHAR(UCHAR_MAMEKEY(RIGHT)) + PORT_BIT(0x00000040,IP_ACTIVE_HIGH,IPT_KEYBOARD) PORT_NAME("Control") PORT_CODE(KEYCODE_LCONTROL) + PORT_BIT(0x00000080,IP_ACTIVE_HIGH,IPT_KEYBOARD) PORT_NAME("Shift") PORT_CODE(KEYCODE_LSHIFT) PORT_CHAR(UCHAR_SHIFT_1) + PORT_BIT(0x00000100,IP_ACTIVE_HIGH,IPT_KEYBOARD) PORT_NAME("X2") // ??? + PORT_BIT(0x00000200,IP_ACTIVE_HIGH,IPT_KEYBOARD) PORT_NAME("Caps Lock") PORT_CODE(KEYCODE_CAPSLOCK) + PORT_BIT(0x00000400,IP_ACTIVE_HIGH,IPT_KEYBOARD) PORT_NAME("Kana Lock") PORT_CODE(KEYCODE_NUMLOCK) + PORT_BIT(0x00000800,IP_ACTIVE_HIGH,IPT_KEYBOARD) PORT_NAME("Kana Shift") PORT_CODE(KEYCODE_LALT) + PORT_BIT(0x00001000,IP_ACTIVE_HIGH,IPT_KEYBOARD) PORT_NAME("ESC") PORT_CODE(KEYCODE_ESC) PORT_CHAR(27) + PORT_BIT(0x00002000,IP_ACTIVE_HIGH,IPT_KEYBOARD) PORT_NAME("8 PAD") PORT_CODE(KEYCODE_8_PAD) + PORT_BIT(0x00004000,IP_ACTIVE_HIGH,IPT_KEYBOARD) PORT_NAME("9 PAD") PORT_CODE(KEYCODE_9_PAD) + PORT_BIT(0x00008000,IP_ACTIVE_HIGH,IPT_KEYBOARD) PORT_NAME("*") PORT_CODE(KEYCODE_ASTERISK) + PORT_BIT(0x00010000,IP_ACTIVE_HIGH,IPT_KEYBOARD) PORT_NAME("7") PORT_CODE(KEYCODE_7) PORT_CHAR('7') PORT_CHAR(39) + PORT_BIT(0x00020000,IP_ACTIVE_HIGH,IPT_KEYBOARD) PORT_NAME("4") PORT_CODE(KEYCODE_4) PORT_CHAR('4') PORT_CHAR('$') + PORT_BIT(0x00040000,IP_ACTIVE_HIGH,IPT_KEYBOARD) PORT_NAME("6") PORT_CODE(KEYCODE_6) PORT_CHAR('6') PORT_CHAR('&') + PORT_BIT(0x00080000,IP_ACTIVE_HIGH,IPT_KEYBOARD) PORT_NAME("8") PORT_CODE(KEYCODE_8) PORT_CHAR('8') PORT_CHAR('(') + PORT_BIT(0x00100000,IP_ACTIVE_HIGH,IPT_KEYBOARD) PORT_NAME("0") PORT_CODE(KEYCODE_0) PORT_CHAR('0') + PORT_BIT(0x00200000,IP_ACTIVE_HIGH,IPT_KEYBOARD) PORT_NAME("^") PORT_CODE(KEYCODE_BACKSLASH) PORT_CHAR('^') + PORT_BIT(0x00400000,IP_ACTIVE_HIGH,IPT_KEYBOARD) PORT_NAME("-") PORT_CODE(KEYCODE_MINUS) PORT_CHAR('-') PORT_CHAR('=') + PORT_BIT(0x00800000,IP_ACTIVE_HIGH,IPT_KEYBOARD) PORT_NAME("3") PORT_CODE(KEYCODE_3) PORT_CHAR('3') PORT_CHAR('#') + PORT_BIT(0x01000000,IP_ACTIVE_HIGH,IPT_KEYBOARD) PORT_NAME("Delete") PORT_CODE(KEYCODE_BACKSPACE) PORT_CHAR(8) + PORT_BIT(0x02000000,IP_ACTIVE_HIGH,IPT_KEYBOARD) PORT_NAME("5") PORT_CODE(KEYCODE_5) PORT_CHAR('5') PORT_CHAR('%') + PORT_BIT(0x04000000,IP_ACTIVE_HIGH,IPT_KEYBOARD) PORT_NAME("1") PORT_CODE(KEYCODE_1) PORT_CHAR('1') PORT_CHAR('!') + PORT_BIT(0x08000000,IP_ACTIVE_HIGH,IPT_KEYBOARD) PORT_NAME("2") PORT_CODE(KEYCODE_2) PORT_CHAR('2') PORT_CHAR('"') + PORT_BIT(0x10000000,IP_ACTIVE_HIGH,IPT_KEYBOARD) PORT_NAME("9") PORT_CODE(KEYCODE_9) PORT_CHAR('9') PORT_CHAR(')') + PORT_BIT(0x20000000,IP_ACTIVE_HIGH,IPT_KEYBOARD) PORT_NAME("7 PAD") PORT_CODE(KEYCODE_7_PAD) + PORT_BIT(0x40000000,IP_ACTIVE_HIGH,IPT_KEYBOARD) PORT_NAME("Delete PAD") //backspace + PORT_BIT(0x80000000,IP_ACTIVE_HIGH,IPT_KEYBOARD) PORT_NAME(u8"¥") PORT_CODE(KEYCODE_TAB) + + PORT_START("X1") //0x20-0x3f + PORT_BIT(0x00000001,IP_ACTIVE_HIGH,IPT_KEYBOARD) PORT_NAME("U") PORT_CODE(KEYCODE_U) PORT_CHAR('U') PORT_CHAR('u') + PORT_BIT(0x00000002,IP_ACTIVE_HIGH,IPT_KEYBOARD) PORT_NAME("R") PORT_CODE(KEYCODE_R) PORT_CHAR('R') PORT_CHAR('r') + PORT_BIT(0x00000004,IP_ACTIVE_HIGH,IPT_KEYBOARD) PORT_NAME("Y") PORT_CODE(KEYCODE_Y) PORT_CHAR('Y') PORT_CHAR('y') + PORT_BIT(0x00000008,IP_ACTIVE_HIGH,IPT_KEYBOARD) PORT_NAME("I") PORT_CODE(KEYCODE_I) PORT_CHAR('I') PORT_CHAR('i') + PORT_BIT(0x00000010,IP_ACTIVE_HIGH,IPT_KEYBOARD) PORT_NAME("P") PORT_CODE(KEYCODE_P) PORT_CHAR('P') PORT_CHAR('p') + PORT_BIT(0x00000020,IP_ACTIVE_HIGH,IPT_KEYBOARD) PORT_NAME("[") PORT_CODE(KEYCODE_OPENBRACE) PORT_CHAR('[') + PORT_BIT(0x00000040,IP_ACTIVE_HIGH,IPT_KEYBOARD) PORT_NAME("@") PORT_CODE(KEYCODE_EQUALS) PORT_CHAR('@') + PORT_BIT(0x00000080,IP_ACTIVE_HIGH,IPT_KEYBOARD) PORT_NAME("0 PAD") PORT_CODE(KEYCODE_0_PAD) + PORT_BIT(0x00000100,IP_ACTIVE_HIGH,IPT_KEYBOARD) PORT_NAME("Q") PORT_CODE(KEYCODE_Q) PORT_CHAR('Q') PORT_CHAR('q') + PORT_BIT(0x00000200,IP_ACTIVE_HIGH,IPT_KEYBOARD) PORT_NAME("T") PORT_CODE(KEYCODE_T) PORT_CHAR('T') PORT_CHAR('t') + PORT_BIT(0x00000400,IP_ACTIVE_HIGH,IPT_KEYBOARD) PORT_NAME("W") PORT_CODE(KEYCODE_W) PORT_CHAR('W') PORT_CHAR('w') + PORT_BIT(0x00000800,IP_ACTIVE_HIGH,IPT_KEYBOARD) PORT_NAME("E") PORT_CODE(KEYCODE_E) PORT_CHAR('E') PORT_CHAR('e') + PORT_BIT(0x00001000,IP_ACTIVE_HIGH,IPT_KEYBOARD) PORT_NAME("O") PORT_CODE(KEYCODE_O) PORT_CHAR('O') PORT_CHAR('o') + PORT_BIT(0x00002000,IP_ACTIVE_HIGH,IPT_KEYBOARD) PORT_NAME(". PAD") PORT_CODE(KEYCODE_DEL_PAD) + PORT_BIT(0x00004000,IP_ACTIVE_HIGH,IPT_KEYBOARD) PORT_NAME("HOME") PORT_CODE(KEYCODE_HOME) //or cls? + PORT_BIT(0x00008000,IP_ACTIVE_HIGH,IPT_KEYBOARD) PORT_NAME("ENTER") PORT_CODE(KEYCODE_ENTER) PORT_CHAR(13) + PORT_BIT(0x00010000,IP_ACTIVE_HIGH,IPT_KEYBOARD) PORT_NAME("J") PORT_CODE(KEYCODE_J) PORT_CHAR('J') PORT_CHAR('j') + PORT_BIT(0x00020000,IP_ACTIVE_HIGH,IPT_KEYBOARD) PORT_NAME("F") PORT_CODE(KEYCODE_F) PORT_CHAR('F') PORT_CHAR('f') + PORT_BIT(0x00040000,IP_ACTIVE_HIGH,IPT_KEYBOARD) PORT_NAME("H") PORT_CODE(KEYCODE_H) PORT_CHAR('H') PORT_CHAR('h') + PORT_BIT(0x00080000,IP_ACTIVE_HIGH,IPT_KEYBOARD) PORT_NAME("K") PORT_CODE(KEYCODE_K) PORT_CHAR('K') PORT_CHAR('k') + PORT_BIT(0x00100000,IP_ACTIVE_HIGH,IPT_KEYBOARD) PORT_NAME(";") PORT_CODE(KEYCODE_COLON) PORT_CHAR(';') PORT_CHAR('+') + PORT_BIT(0x00200000,IP_ACTIVE_HIGH,IPT_KEYBOARD) PORT_NAME("]") PORT_CODE(KEYCODE_CLOSEBRACE) PORT_CHAR(']') + PORT_BIT(0x00400000,IP_ACTIVE_HIGH,IPT_KEYBOARD) PORT_NAME(":") PORT_CODE(KEYCODE_QUOTE) PORT_CHAR(':') PORT_CHAR('*') + PORT_BIT(0x00800000,IP_ACTIVE_HIGH,IPT_KEYBOARD) PORT_NAME("4 PAD") PORT_CODE(KEYCODE_4_PAD) + PORT_BIT(0x01000000,IP_ACTIVE_HIGH,IPT_KEYBOARD) PORT_NAME("A") PORT_CODE(KEYCODE_A) PORT_CHAR('A') PORT_CHAR('a') + PORT_BIT(0x02000000,IP_ACTIVE_HIGH,IPT_KEYBOARD) PORT_NAME("G") PORT_CODE(KEYCODE_G) PORT_CHAR('G') PORT_CHAR('g') + PORT_BIT(0x04000000,IP_ACTIVE_HIGH,IPT_KEYBOARD) PORT_NAME("S") PORT_CODE(KEYCODE_S) PORT_CHAR('S') PORT_CHAR('s') + PORT_BIT(0x08000000,IP_ACTIVE_HIGH,IPT_KEYBOARD) PORT_NAME("D") PORT_CODE(KEYCODE_D) PORT_CHAR('D') PORT_CHAR('d') + PORT_BIT(0x10000000,IP_ACTIVE_HIGH,IPT_KEYBOARD) PORT_NAME("L") PORT_CODE(KEYCODE_L) PORT_CHAR('L') PORT_CHAR('l') + PORT_BIT(0x20000000,IP_ACTIVE_HIGH,IPT_KEYBOARD) PORT_NAME("5 PAD") PORT_CODE(KEYCODE_5_PAD) + PORT_BIT(0x40000000,IP_ACTIVE_HIGH,IPT_KEYBOARD) PORT_NAME("6 PAD") PORT_CODE(KEYCODE_6_PAD) + PORT_BIT(0x80000000,IP_ACTIVE_HIGH,IPT_KEYBOARD) PORT_NAME("- PAD") PORT_CODE(KEYCODE_MINUS_PAD) + + PORT_START("X2") //0x40-0x5f + PORT_BIT(0x00000001,IP_ACTIVE_HIGH,IPT_KEYBOARD) PORT_NAME("M") PORT_CODE(KEYCODE_M) PORT_CHAR('M') PORT_CHAR('m') + PORT_BIT(0x00000002,IP_ACTIVE_HIGH,IPT_KEYBOARD) PORT_NAME("V") PORT_CODE(KEYCODE_V) PORT_CHAR('V') PORT_CHAR('v') + PORT_BIT(0x00000004,IP_ACTIVE_HIGH,IPT_KEYBOARD) PORT_NAME("N") PORT_CODE(KEYCODE_N) PORT_CHAR('N') PORT_CHAR('n') + PORT_BIT(0x00000008,IP_ACTIVE_HIGH,IPT_KEYBOARD) PORT_NAME(",") PORT_CODE(KEYCODE_COMMA) PORT_CHAR(',') PORT_CHAR('<') + PORT_BIT(0x00000010,IP_ACTIVE_HIGH,IPT_KEYBOARD) PORT_NAME("/") PORT_CODE(KEYCODE_SLASH) PORT_CHAR('/') PORT_CHAR('?') + PORT_BIT(0x00000020,IP_ACTIVE_HIGH,IPT_KEYBOARD) PORT_NAME("/ PAD") PORT_CODE(KEYCODE_SLASH_PAD) + PORT_BIT(0x00000040,IP_ACTIVE_HIGH,IPT_KEYBOARD) PORT_NAME("_") PORT_CODE(KEYCODE_TILDE) PORT_CHAR('_') + PORT_BIT(0x00000080,IP_ACTIVE_HIGH,IPT_KEYBOARD) PORT_NAME("1 PAD") PORT_CODE(KEYCODE_1_PAD) + PORT_BIT(0x00000100,IP_ACTIVE_HIGH,IPT_KEYBOARD) PORT_NAME("Z") PORT_CODE(KEYCODE_Z) PORT_CHAR('Z') PORT_CHAR('z') + PORT_BIT(0x00000200,IP_ACTIVE_HIGH,IPT_KEYBOARD) PORT_NAME("B") PORT_CODE(KEYCODE_B) PORT_CHAR('B') PORT_CHAR('b') + PORT_BIT(0x00000400,IP_ACTIVE_HIGH,IPT_KEYBOARD) PORT_NAME("X") PORT_CODE(KEYCODE_X) PORT_CHAR('X') PORT_CHAR('x') + PORT_BIT(0x00000800,IP_ACTIVE_HIGH,IPT_KEYBOARD) PORT_NAME("C") PORT_CODE(KEYCODE_C) PORT_CHAR('C') PORT_CHAR('c') + PORT_BIT(0x00001000,IP_ACTIVE_HIGH,IPT_KEYBOARD) PORT_NAME(".") PORT_CODE(KEYCODE_STOP) PORT_CHAR('.') PORT_CHAR('>') + PORT_BIT(0x00002000,IP_ACTIVE_HIGH,IPT_KEYBOARD) PORT_NAME("2 PAD") PORT_CODE(KEYCODE_2_PAD) + PORT_BIT(0x00004000,IP_ACTIVE_HIGH,IPT_KEYBOARD) PORT_NAME("3 PAD") PORT_CODE(KEYCODE_3_PAD) + PORT_BIT(0x00008000,IP_ACTIVE_HIGH,IPT_KEYBOARD) PORT_NAME("+") PORT_CODE(KEYCODE_PLUS_PAD) + PORT_BIT(0x00010000,IP_ACTIVE_HIGH,IPT_KEYBOARD) PORT_NAME("PF1") PORT_CODE(KEYCODE_F1) PORT_CHAR(UCHAR_MAMEKEY(F1)) PORT_CHAR(UCHAR_MAMEKEY(F6)) + PORT_BIT(0x00020000,IP_ACTIVE_HIGH,IPT_KEYBOARD) PORT_NAME("PF2") PORT_CODE(KEYCODE_F2) PORT_CHAR(UCHAR_MAMEKEY(F2)) PORT_CHAR(UCHAR_MAMEKEY(F7)) + PORT_BIT(0x00040000,IP_ACTIVE_HIGH,IPT_KEYBOARD) PORT_NAME("PF3") PORT_CODE(KEYCODE_F3) PORT_CHAR(UCHAR_MAMEKEY(F3)) PORT_CHAR(UCHAR_MAMEKEY(F8)) + PORT_BIT(0x00080000,IP_ACTIVE_HIGH,IPT_KEYBOARD) PORT_NAME("PF4") PORT_CODE(KEYCODE_F4) PORT_CHAR(UCHAR_MAMEKEY(F4)) PORT_CHAR(UCHAR_MAMEKEY(F9)) + PORT_BIT(0x00100000,IP_ACTIVE_HIGH,IPT_KEYBOARD) PORT_NAME("PF5") PORT_CODE(KEYCODE_F5) PORT_CHAR(UCHAR_MAMEKEY(F5)) PORT_CHAR(UCHAR_MAMEKEY(F10)) + PORT_BIT(0xffe00000,IP_ACTIVE_HIGH,IPT_UNKNOWN) + + PORT_START("X3") + PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Break") PORT_CODE(KEYCODE_END) PORT_CHAR(UCHAR_MAMEKEY(END)) PORT_CHANGED_MEMBER(DEVICE_SELF, bml3_state, nmi_button, 0) +INPUT_PORTS_END + +void mbs1_state::machine_start() +{ + bml3mk5_state::machine_start(); + save_item(NAME(m_system_clock)); + save_item(NAME(m_su_mode)); +} + + +void mbs1_state::machine_reset() +{ + bml3mk5_state::machine_reset(); + m_system_type = bool(BIT(m_system_mode->read(), 0)); + m_mmu->init_banks(m_system_type, m_su_mode); +} + + +void mbs1_state::mbs1(machine_config &config) +{ + bml3mk5_state::bml3mk5(config); + m_maincpu->set_addrmap(AS_PROGRAM, &mbs1_state::s1_map); + + MBS1_MMU(config, m_mmu, 0); + m_mmu->set_map(&mbs1_state::s1_mmu_map); +} + +ROM_START( mbs1 ) + ROM_REGION( 0x10000, "maincpu", ROMREGION_ERASEFF ) + ROM_LOAD("rom1.rom", 0xa000, 0x5f00, CRC(b23b0530) SHA1(cb9a8352d2ba0fc0085e4219cd07c91c8447ab75) ) + ROM_LOAD("rom2.rom", 0xfff0, 0x0010, CRC(63b9adb2) SHA1(62b950671b533d18bca36eae362f2bc26638b587) ) + + ROM_REGION( 0x8000, "s1boot", ROMREGION_ERASEFF ) + ROM_LOAD("s1rom2.rom", 0x0000, 0x7e00, CRC(e266108c) SHA1(18af24fa8f123960562fbe1c58e209d06d62c205) ) + ROM_LOAD("s1romi.rom", 0x7ff0, 0x0010, CRC(81cc0e4d) SHA1(7e52264e0fdb5cb9a3489c70842f4d12146060ba) ) + + ROM_REGION( 0x8000, "s1basic", ROMREGION_ERASEFF ) + ROM_LOAD("s1bas1.rom", 0x0000, 0x8000, CRC(efb80721) SHA1(81c926f9fa658012cd04b30176aad800db46594e) ) + + ROM_REGION( 0x8000, "dictionary", ROMREGION_ERASEFF ) + ROM_LOAD("s1dic.rom", 0x0000, 0x8000, NO_DUMP ) + + ROM_REGION( 0x1000, "chargen", 0 ) + ROM_LOAD("font.rom", 0x0000, 0x1000, CRC(d1f27c5a) SHA1(a3abbdea9f6656bd795fd35ee806a54d7be35de0) ) +ROM_END + +} // anonymous namespace + + +COMP( 1984, mbs1, 0, 0, mbs1, mbs1, mbs1_state, empty_init, "Hitachi", "MB-S1", MACHINE_NOT_WORKING ) diff --git a/src/mame/hitachi/mbs1_mmu.cpp b/src/mame/hitachi/mbs1_mmu.cpp new file mode 100644 index 00000000000..a5d17f66b54 --- /dev/null +++ b/src/mame/hitachi/mbs1_mmu.cpp @@ -0,0 +1,94 @@ +// license: BSD-3-Clause +// copyright-holders: Angelo Salese +/************************************************************************************************** + +Hitachi MB-S1 MMU support + +6809 ties A15-A12 with an Address Mapper (74S189 x2) and a System/User physical switch (LS257 x2). + +References: +http://haserin09.la.coocan.jp/os9_mmu.html#MB-S1 + +TODO: +- Default setups for Mark 5 vs. System vs. User modes. +- OS-9 card support +\- extra task switching LS174 + HM6148 x2 in place of the 74S189s (DIY override). +\- Handles 64 pages of memory models + +**************************************************************************************************/ + +#include "emu.h" +#include "mbs1_mmu.h" + +#include + + +DEFINE_DEVICE_TYPE(MBS1_MMU, mbs1_mmu_device, "mbs1_mmu", "Hitachi MB-S1 MMU") + +mbs1_mmu_device::mbs1_mmu_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) + : device_t(mconfig, MBS1_MMU, tag, owner, clock) + , device_memory_interface(mconfig, *this) + , m_space_config("memory_map", ENDIANNESS_BIG, 8, 20, 0) +{ + std::fill(std::begin(m_bank_latch), std::end(m_bank_latch), 0); +} + +mbs1_mmu_device::~mbs1_mmu_device() +{ +} + +device_memory_interface::space_config_vector mbs1_mmu_device::memory_space_config() const +{ + return space_config_vector { + std::make_pair(0, &m_space_config) + }; +} + +void mbs1_mmu_device::device_start() +{ + space().specific(m_space); + + save_pointer(NAME(m_bank_latch), 16); +} + +void mbs1_mmu_device::device_reset() +{ +} + +// TODO: should not reset everything when in user mode +void mbs1_mmu_device::init_banks(bool system_type, bool user_mode) +{ + if (system_type == true) + { + for (int i = 0; i < 14; i++) + m_bank_latch[i] = 0xf0 | i; + m_bank_latch[0xe] = 0x84; + m_bank_latch[0xf] = 0xef; + } + else + { + // Level 3 mode + for (int i = 0; i < 16; i++) + m_bank_latch[i] = 0xf0 | i; + } +} + +u8 mbs1_mmu_device::read(offs_t offset) +{ + return m_space.read_byte((offset & 0xfff) | (m_bank_latch[offset >> 12] << 12)); +} + +void mbs1_mmu_device::write(offs_t offset, u8 data) +{ + m_space.write_byte((offset & 0xfff) | (m_bank_latch[offset >> 12] << 12), data); +} + +u8 mbs1_mmu_device::bank_r(offs_t offset) +{ + return m_bank_latch[offset]; +} + +void mbs1_mmu_device::bank_w(offs_t offset, u8 data) +{ + m_bank_latch[offset] = data; +} diff --git a/src/mame/hitachi/mbs1_mmu.h b/src/mame/hitachi/mbs1_mmu.h new file mode 100644 index 00000000000..8d2384df0e6 --- /dev/null +++ b/src/mame/hitachi/mbs1_mmu.h @@ -0,0 +1,41 @@ +// license: BSD-3-Clause +// copyright-holders: Angelo Salese +#ifndef MAME_HITACHI_MBS1_MMU_H +#define MAME_HITACHI_MBS1_MMU_H + +#pragma once + + +class mbs1_mmu_device : public device_t, public device_memory_interface +{ +public: + mbs1_mmu_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock = 0); + virtual ~mbs1_mmu_device(); + + // configuration helpers + template mbs1_mmu_device& set_map(T &&... args) { set_addrmap(0, std::forward(args)...); return *this; } + + u8 read(offs_t offset); + void write(offs_t offset, u8 data); + + u8 bank_r(offs_t offset); + void bank_w(offs_t offset, u8 data); + + void init_banks(bool system_type, bool user_mode); + +protected: + virtual space_config_vector memory_space_config() const override ATTR_COLD; + + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; + +private: + const address_space_config m_space_config; + memory_access<20, 0, 0, ENDIANNESS_BIG>::specific m_space; + + u8 m_bank_latch[16]; +}; + +DECLARE_DEVICE_TYPE(MBS1_MMU, mbs1_mmu_device) + +#endif // MAME_MBS1_MMU_H diff --git a/src/mame/homebrew/4004clk.cpp b/src/mame/homebrew/4004clk.cpp index fa9933f5523..feb5f1f188a 100644 --- a/src/mame/homebrew/4004clk.cpp +++ b/src/mame/homebrew/4004clk.cpp @@ -36,7 +36,7 @@ class nixieclock_state : public driver_device void _4004clk(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_maincpu; @@ -47,11 +47,11 @@ class nixieclock_state : public driver_device void nixie_w(offs_t offset, uint8_t data); void neon_w(uint8_t data); - void _4004clk_mem(address_map &map); - void _4004clk_mp(address_map &map); - void _4004clk_rom(address_map &map); - void _4004clk_rp(address_map &map); - void _4004clk_stat(address_map &map); + void _4004clk_mem(address_map &map) ATTR_COLD; + void _4004clk_mp(address_map &map) ATTR_COLD; + void _4004clk_rom(address_map &map) ATTR_COLD; + void _4004clk_rp(address_map &map) ATTR_COLD; + void _4004clk_stat(address_map &map) ATTR_COLD; static constexpr uint8_t nixie_to_num(uint16_t val) { diff --git a/src/mame/homebrew/68ksbc.cpp b/src/mame/homebrew/68ksbc.cpp index ecc930af413..4a78921651e 100644 --- a/src/mame/homebrew/68ksbc.cpp +++ b/src/mame/homebrew/68ksbc.cpp @@ -46,7 +46,7 @@ class c68ksbc_state : public driver_device void c68ksbc(machine_config &config); private: - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; }; diff --git a/src/mame/homebrew/chaos.cpp b/src/mame/homebrew/chaos.cpp index 1a57f92920a..a563f92c20b 100644 --- a/src/mame/homebrew/chaos.cpp +++ b/src/mame/homebrew/chaos.cpp @@ -50,8 +50,8 @@ class chaos_state : public driver_device void chaos(machine_config &config); protected: - virtual void machine_reset() override; - virtual void machine_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; private: u8 port1e_r(); @@ -59,9 +59,9 @@ class chaos_state : public driver_device u8 port90_r(); u8 port91_r(); void kbd_put(u8 data); - void data_map(address_map &map); - void io_map(address_map &map); - void mem_map(address_map &map); + void data_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; u8 m_term_data = 0U; required_device m_terminal; required_shared_ptr m_p_ram; diff --git a/src/mame/homebrew/d6809.cpp b/src/mame/homebrew/d6809.cpp index 8509e92233d..b77eb7a2463 100644 --- a/src/mame/homebrew/d6809.cpp +++ b/src/mame/homebrew/d6809.cpp @@ -127,11 +127,11 @@ class d6809_state : public driver_device void term_w(u8 data); void kbd_put(u8 data); - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; u8 m_term_data = 0U; - void machine_start() override; - void machine_reset() override; + void machine_start() override ATTR_COLD; + void machine_reset() override ATTR_COLD; required_device m_maincpu; required_device m_terminal; required_device m_fdc; diff --git a/src/mame/homebrew/gigatron.cpp b/src/mame/homebrew/gigatron.cpp index 57f414fba44..23a4d253d81 100644 --- a/src/mame/homebrew/gigatron.cpp +++ b/src/mame/homebrew/gigatron.cpp @@ -57,13 +57,13 @@ class gigatron_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; - virtual void video_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; + virtual void video_reset() override ATTR_COLD; - void prog_map(address_map &map); - void data_map(address_map &map); + void prog_map(address_map &map) ATTR_COLD; + void data_map(address_map &map) ATTR_COLD; uint8_t m_lights; //blinkenlights diff --git a/src/mame/homebrew/gs6502.cpp b/src/mame/homebrew/gs6502.cpp index b4166e0d2e5..7977d043a88 100644 --- a/src/mame/homebrew/gs6502.cpp +++ b/src/mame/homebrew/gs6502.cpp @@ -27,7 +27,7 @@ class gs6502_state : public driver_device void gs6502(machine_config &config); private: - void gs6502_mem(address_map &map); + void gs6502_mem(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_acia; diff --git a/src/mame/homebrew/gs6809.cpp b/src/mame/homebrew/gs6809.cpp index 90abc0734f5..bbdba4f83b4 100644 --- a/src/mame/homebrew/gs6809.cpp +++ b/src/mame/homebrew/gs6809.cpp @@ -27,7 +27,7 @@ class gs6809_state : public driver_device void gs6809(machine_config &config); private: - void gs6809_mem(address_map &map); + void gs6809_mem(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_acia; diff --git a/src/mame/homebrew/gscpm.cpp b/src/mame/homebrew/gscpm.cpp index 9ffa2aa7480..0606bfd1dc6 100644 --- a/src/mame/homebrew/gscpm.cpp +++ b/src/mame/homebrew/gscpm.cpp @@ -39,10 +39,10 @@ class gscpm_state : public driver_device void gscpm(machine_config &config); protected: - void machine_reset() override; + void machine_reset() override ATTR_COLD; - void gscpm_mem(address_map &map); - void gscpm_io(address_map &map); + void gscpm_mem(address_map &map) ATTR_COLD; + void gscpm_io(address_map &map) ATTR_COLD; uint8_t cflash_r(offs_t offset); void cflash_w(offs_t offset, uint8_t data); diff --git a/src/mame/homebrew/gsz80.cpp b/src/mame/homebrew/gsz80.cpp index 9037b668c59..5e810f95c22 100644 --- a/src/mame/homebrew/gsz80.cpp +++ b/src/mame/homebrew/gsz80.cpp @@ -33,8 +33,8 @@ class gsz80_state : public driver_device protected: // address maps for program memory and io memory - void gsz80_mem(address_map &map); - void gsz80_io(address_map &map); + void gsz80_mem(address_map &map) ATTR_COLD; + void gsz80_io(address_map &map) ATTR_COLD; // two member devices required here required_device m_maincpu; diff --git a/src/mame/homebrew/homez80.cpp b/src/mame/homebrew/homez80.cpp index 6ab6430606c..e9ca83e0f6f 100644 --- a/src/mame/homebrew/homez80.cpp +++ b/src/mame/homebrew/homez80.cpp @@ -47,11 +47,11 @@ class homez80_state : public driver_device INTERRUPT_GEN_MEMBER(homez80_interrupt); u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; bool m_irq = 0; - void machine_reset() override; - void machine_start() override; + void machine_reset() override ATTR_COLD; + void machine_start() override ATTR_COLD; required_device m_maincpu; required_shared_ptr m_vram; required_region_ptr m_p_chargen; diff --git a/src/mame/homebrew/lft_chiptune.cpp b/src/mame/homebrew/lft_chiptune.cpp index 52af3aff731..7beb5885dfa 100644 --- a/src/mame/homebrew/lft_chiptune.cpp +++ b/src/mame/homebrew/lft_chiptune.cpp @@ -29,8 +29,8 @@ class lft_chiptune_state : public driver_device void chiptune(machine_config &config); protected: - void prg_map(address_map &map); - void data_map(address_map &map); + void prg_map(address_map &map) ATTR_COLD; + void data_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_dac; diff --git a/src/mame/homebrew/lft_craft.cpp b/src/mame/homebrew/lft_craft.cpp index daa40f26d41..fc392db07b4 100644 --- a/src/mame/homebrew/lft_craft.cpp +++ b/src/mame/homebrew/lft_craft.cpp @@ -41,11 +41,11 @@ class lft_craft_state : public driver_device void craft(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; - void prg_map(address_map &map); - void data_map(address_map &map); + void prg_map(address_map &map) ATTR_COLD; + void data_map(address_map &map) ATTR_COLD; void port_b_w(uint8_t data); void port_c_w(uint8_t data); diff --git a/src/mame/homebrew/lft_phasor.cpp b/src/mame/homebrew/lft_phasor.cpp index c6a4acc61f8..49e362d5a77 100644 --- a/src/mame/homebrew/lft_phasor.cpp +++ b/src/mame/homebrew/lft_phasor.cpp @@ -35,11 +35,11 @@ class lft_phasor_state : public driver_device void phasor(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; - void prg_map(address_map &map); - void data_map(address_map &map); + void prg_map(address_map &map) ATTR_COLD; + void data_map(address_map &map) ATTR_COLD; void init_palette(palette_device &palette) const; diff --git a/src/mame/homebrew/minib.cpp b/src/mame/homebrew/minib.cpp index 386d467d695..69ec6477f1c 100644 --- a/src/mame/homebrew/minib.cpp +++ b/src/mame/homebrew/minib.cpp @@ -51,15 +51,15 @@ class minib_state : public driver_device void minib(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; required_memory_bank m_rombank; required_device m_kbd; - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; //uint8_t pa_r(); void pa_w(uint8_t data); diff --git a/src/mame/homebrew/mk1forth.cpp b/src/mame/homebrew/mk1forth.cpp index d5bd2023d15..5ccc8fcb3ee 100644 --- a/src/mame/homebrew/mk1forth.cpp +++ b/src/mame/homebrew/mk1forth.cpp @@ -44,9 +44,9 @@ class mk1forth_state : public driver_device void mk1forth(machine_config &config); private: - void ucode_map(address_map &map); - void data_map(address_map &map); - void stack_map(address_map &map); + void ucode_map(address_map &map) ATTR_COLD; + void data_map(address_map &map) ATTR_COLD; + void stack_map(address_map &map) ATTR_COLD; }; void mk1forth_state::ucode_map(address_map &map) diff --git a/src/mame/homebrew/p112.cpp b/src/mame/homebrew/p112.cpp index 146d0a8aea2..d75b5a16b09 100644 --- a/src/mame/homebrew/p112.cpp +++ b/src/mame/homebrew/p112.cpp @@ -52,12 +52,12 @@ class p112_state : public driver_device void p112(machine_config &config); private: - virtual void machine_reset() override; - virtual void machine_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; uint32_t screen_update_p112(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); required_device m_maincpu; - void io_map(address_map &map); - void mem_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/homebrew/pc532.cpp b/src/mame/homebrew/pc532.cpp index d05b9f317e2..cef4b338a6c 100644 --- a/src/mame/homebrew/pc532.cpp +++ b/src/mame/homebrew/pc532.cpp @@ -63,10 +63,10 @@ class pc532_state : public driver_device void pc532(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; - template void cpu_map(address_map &map); + template void cpu_map(address_map &map) ATTR_COLD; required_device m_cpu; required_device m_fpu; diff --git a/src/mame/homebrew/phunsy.cpp b/src/mame/homebrew/phunsy.cpp index 9b36d1dda9f..ff567b0bb79 100644 --- a/src/mame/homebrew/phunsy.cpp +++ b/src/mame/homebrew/phunsy.cpp @@ -72,13 +72,13 @@ class phunsy_state : public driver_device void phunsy_palette(palette_device &palette) const; uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void phunsy_data(address_map &map); - void phunsy_io(address_map &map); - void phunsy_mem(address_map &map); + void phunsy_data(address_map &map) ATTR_COLD; + void phunsy_io(address_map &map) ATTR_COLD; + void phunsy_mem(address_map &map) ATTR_COLD; uint8_t m_data_out = 0U; uint8_t m_keyboard_input = 0U; - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; required_device m_maincpu; required_device m_speaker; required_device m_cass; diff --git a/src/mame/homebrew/pimps.cpp b/src/mame/homebrew/pimps.cpp index 3e7d07075e6..20211afa80d 100644 --- a/src/mame/homebrew/pimps.cpp +++ b/src/mame/homebrew/pimps.cpp @@ -90,9 +90,9 @@ class pimps_state : public driver_device void pimps(machine_config &config); private: - void io_map(address_map &map); - void mem_map(address_map &map); - virtual void machine_reset() override; + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; memory_passthrough_handler m_rom_shadow_tap; required_device m_maincpu; diff --git a/src/mame/homebrew/ravens.cpp b/src/mame/homebrew/ravens.cpp index cb8bf2baf3f..bd9eea8fef6 100644 --- a/src/mame/homebrew/ravens.cpp +++ b/src/mame/homebrew/ravens.cpp @@ -95,7 +95,7 @@ class ravens_base : public driver_device int cass_r(); void cass_w(int state); DECLARE_QUICKLOAD_LOAD_MEMBER(quickload_cb); - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_cass; }; @@ -113,10 +113,10 @@ class ravens_state : public ravens_base void ravens(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: - void io_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; u8 port17_r(); void display_w(offs_t offset, u8 data); void leds_w(u8 data); @@ -137,11 +137,11 @@ class ravens2_state : public ravens_base void ravens2(machine_config &config); protected: - virtual void machine_reset() override; - virtual void machine_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; private: - void io_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; void kbd_put(u8 data); u8 port07_r(); void port1b_w(u8 data); diff --git a/src/mame/homebrew/sbc6510.cpp b/src/mame/homebrew/sbc6510.cpp index 7dac94b2ba3..62fd80b071a 100644 --- a/src/mame/homebrew/sbc6510.cpp +++ b/src/mame/homebrew/sbc6510.cpp @@ -85,14 +85,14 @@ class sbc6510_state : public driver_device void key_w(u8 data); u8 key_r(); - void main_mem_map(address_map &map); - void video_data_map(address_map &map); - void video_mem_map(address_map &map); + void main_mem_map(address_map &map) ATTR_COLD; + void video_data_map(address_map &map) ATTR_COLD; + void video_mem_map(address_map &map) ATTR_COLD; u8 m_key_row = 0U; u8 m_2 = 0U; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; required_device m_maincpu; required_device m_videocpu; required_device m_terminal; diff --git a/src/mame/homebrew/sitcom.cpp b/src/mame/homebrew/sitcom.cpp index 4fa8f46540c..5b881978944 100644 --- a/src/mame/homebrew/sitcom.cpp +++ b/src/mame/homebrew/sitcom.cpp @@ -68,14 +68,14 @@ class sitcom_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(update_buttons); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; virtual void update_ppi_pa(uint8_t data); virtual void update_ppi_pb(uint8_t data); - void sitcom_mem(address_map &map); - void sitcom_io(address_map &map); + void sitcom_mem(address_map &map) ATTR_COLD; + void sitcom_io(address_map &map) ATTR_COLD; template void update_ds(offs_t offset, uint16_t data) { m_digits[(D << 2) | offset] = data; } void update_rxd(int state) { m_rxd = bool(state); } @@ -120,8 +120,8 @@ class sitcom_timer_state : public sitcom_state void sitcomtmr(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; virtual void update_ppi_pa(uint8_t data) override; virtual void update_ppi_pb(uint8_t data) override; diff --git a/src/mame/homebrew/ultim809.cpp b/src/mame/homebrew/ultim809.cpp index 06a39844957..a494e15bbba 100644 --- a/src/mame/homebrew/ultim809.cpp +++ b/src/mame/homebrew/ultim809.cpp @@ -66,10 +66,10 @@ class ultim809_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(nmi_button); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; std::unique_ptr m_ram; required_device m_maincpu; required_device m_via; diff --git a/src/mame/homebrew/uzebox.cpp b/src/mame/homebrew/uzebox.cpp index bcaf7a8ad53..222c89cb53e 100644 --- a/src/mame/homebrew/uzebox.cpp +++ b/src/mame/homebrew/uzebox.cpp @@ -49,8 +49,8 @@ class uzebox_state : public driver_device void uzebox(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; @@ -83,8 +83,8 @@ class uzebox_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); DECLARE_DEVICE_IMAGE_LOAD_MEMBER(cart_load); - void data_map(address_map &map); - void prg_map(address_map &map); + void data_map(address_map &map) ATTR_COLD; + void prg_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/homebrew/z80dev.cpp b/src/mame/homebrew/z80dev.cpp index 6fe360041a9..cf0dd0323de 100644 --- a/src/mame/homebrew/z80dev.cpp +++ b/src/mame/homebrew/z80dev.cpp @@ -42,10 +42,10 @@ class z80dev_state : public driver_device void display_w(offs_t offset, uint8_t data); uint8_t test_r(); - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; - void io_map(address_map &map); - void mem_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; output_finder<6> m_digits; diff --git a/src/mame/homebrew/zexall.cpp b/src/mame/homebrew/zexall.cpp index 417a93c8aa2..996c0ebf791 100644 --- a/src/mame/homebrew/zexall.cpp +++ b/src/mame/homebrew/zexall.cpp @@ -51,7 +51,7 @@ class zexall_state : public driver_device void output_req_w(uint8_t data); void output_data_w(uint8_t data); - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_terminal; @@ -61,8 +61,8 @@ class zexall_state : public driver_device uint8_t m_out_req_last = 0U; // old value at 0xFFFE before the most recent write uint8_t m_out_ack = 0U; // byte written to 0xFFFC - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; }; diff --git a/src/mame/homelab/braiplus.cpp b/src/mame/homelab/braiplus.cpp index 67b0f8d8307..2f6cef3dccf 100644 --- a/src/mame/homelab/braiplus.cpp +++ b/src/mame/homelab/braiplus.cpp @@ -54,8 +54,8 @@ class braiplus_state : public driver_device void unknown_w(u8 data); u8 keyboard_r(offs_t offset); - void mem_map(address_map &map); - void io_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device_array m_pio; diff --git a/src/mame/homelab/homelab.cpp b/src/mame/homelab/homelab.cpp index bb2c49079c5..92780a676cf 100644 --- a/src/mame/homelab/homelab.cpp +++ b/src/mame/homelab/homelab.cpp @@ -98,12 +98,12 @@ class homelab2_state : public homelab_state void homelab2(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; u32 screen2_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); private: INTERRUPT_GEN_MEMBER(homelab_frame); - void homelab2_mem(address_map &map); + void homelab2_mem(address_map &map) ATTR_COLD; u8 cass2_r(); u8 mem3800_r(); void mem3800_w(offs_t offset, u8 data); @@ -138,17 +138,17 @@ class homelab3_state : public homelab_state int cass3_r(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: u8 exxx_r(offs_t offset); void port7f_w(u8 data); void portff_w(u8 data); - void homelab3_io(address_map &map); - void homelab3_mem(address_map &map); - void brailab4_io(address_map &map); - void brailab4_mem(address_map &map); + void homelab3_io(address_map &map) ATTR_COLD; + void homelab3_mem(address_map &map) ATTR_COLD; + void brailab4_io(address_map &map) ATTR_COLD; + void brailab4_mem(address_map &map) ATTR_COLD; std::unique_ptr m_ram; }; diff --git a/src/mame/hp/hp16500.cpp b/src/mame/hp/hp16500.cpp index 28089a7b86f..ad1a12c6ada 100644 --- a/src/mame/hp/hp16500.cpp +++ b/src/mame/hp/hp16500.cpp @@ -76,7 +76,7 @@ class hp16500_state : public driver_device void hp1650(machine_config &config); private: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; uint32_t screen_update_hp16500(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); [[maybe_unused]] uint32_t screen_update_hp16500a(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); @@ -108,10 +108,10 @@ class hp16500_state : public driver_device MC6845_UPDATE_ROW(crtc_update_row); MC6845_UPDATE_ROW(crtc_update_row_1650); - void hp16500_map(address_map &map); - void hp16500a_map(address_map &map); - void hp1650_map(address_map &map); - void hp1651_map(address_map &map); + void hp16500_map(address_map &map) ATTR_COLD; + void hp16500a_map(address_map &map) ATTR_COLD; + void hp1650_map(address_map &map) ATTR_COLD; + void hp1651_map(address_map &map) ATTR_COLD; uint32_t m_palette[256]{}, m_colors[3]{}, m_count = 0, m_clutoffs = 0; }; diff --git a/src/mame/hp/hp2620.cpp b/src/mame/hp/hp2620.cpp index 8593383f96e..24eba25a7a8 100644 --- a/src/mame/hp/hp2620.cpp +++ b/src/mame/hp/hp2620.cpp @@ -39,8 +39,8 @@ class hp2620_state : public driver_device void hp2622(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: u8 nvram_r(offs_t offset); @@ -57,8 +57,8 @@ class hp2620_state : public driver_device void nlrc_w(int state); void bell_w(int state); - void io_map(address_map &map); - void mem_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_nmigate; diff --git a/src/mame/hp/hp2640.cpp b/src/mame/hp/hp2640.cpp index edac038ae04..1110371843e 100644 --- a/src/mame/hp/hp2640.cpp +++ b/src/mame/hp/hp2640.cpp @@ -189,8 +189,8 @@ class hp2640_base_state : public driver_device CHARGEN_E = 0x10 }; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; IRQ_CALLBACK_MEMBER(irq_callback); @@ -223,8 +223,8 @@ class hp2640_base_state : public driver_device uint8_t poll_r(); - void cpu_mem_map(address_map &map); - void cpu_io_map(address_map &map); + void cpu_mem_map(address_map &map) ATTR_COLD; + void cpu_io_map(address_map &map) ATTR_COLD; required_device m_cpu; required_device m_timer_10ms; @@ -1159,7 +1159,7 @@ class hp2641_state : public hp2640_base_state void hp2641(machine_config &config); protected: - void cpu_mem_map(address_map &map); + void cpu_mem_map(address_map &map) ATTR_COLD; }; hp2641_state::hp2641_state(const machine_config &mconfig, device_type type, const char *tag) diff --git a/src/mame/hp/hp2640_tape.h b/src/mame/hp/hp2640_tape.h index e44bf16c5f8..169a2681769 100644 --- a/src/mame/hp/hp2640_tape.h +++ b/src/mame/hp/hp2640_tape.h @@ -35,9 +35,9 @@ class hp2640_tape_device : public device_t protected: // device_t implementation - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; TIMER_CALLBACK_MEMBER(gap_timer_tick); TIMER_CALLBACK_MEMBER(cell_timer_tick); diff --git a/src/mame/hp/hp3478a.cpp b/src/mame/hp/hp3478a.cpp index 3562af4c9f5..018385bb63d 100644 --- a/src/mame/hp/hp3478a.cpp +++ b/src/mame/hp/hp3478a.cpp @@ -126,17 +126,17 @@ class hp3478a_state : public driver_device void hp3478a(machine_config &config); protected: - virtual void machine_start() override; - //virtual void machine_reset() override; //not needed? + virtual void machine_start() override ATTR_COLD; + //virtual void machine_reset() override ATTR_COLD; //not needed? private: uint8_t p1read(); void p2write(uint8_t data); void nvwrite(offs_t offset, uint8_t data); - void io_bank(address_map &map); - void i8039_io(address_map &map); - void i8039_map(address_map &map); + void io_bank(address_map &map) ATTR_COLD; + void i8039_io(address_map &map) ATTR_COLD; + void i8039_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_nvram; diff --git a/src/mame/hp/hp48.h b/src/mame/hp/hp48.h index bb234ed2b25..dbfe09fa452 100644 --- a/src/mame/hp/hp48.h +++ b/src/mame/hp/hp48.h @@ -89,7 +89,7 @@ class hp48_state : public driver_device hp48_module m_modules[6]; private: - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; void base_machine_start(hp48_models model); void hp48_palette(palette_device &palette) const; @@ -133,7 +133,7 @@ class hp48_state : public driver_device /* keyboard interrupt system */ void rsi(int state); void hp48_common(machine_config &config); - void hp48(address_map &map); + void hp48(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_dac; diff --git a/src/mame/hp/hp48_port.h b/src/mame/hp/hp48_port.h index e5182451177..a7c99fa4eda 100644 --- a/src/mame/hp/hp48_port.h +++ b/src/mame/hp/hp48_port.h @@ -53,7 +53,7 @@ class hp48_port_image_device : public device_t, public device_image_interface protected: // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: void fill_port(); diff --git a/src/mame/hp/hp49gp.cpp b/src/mame/hp/hp49gp.cpp index c0f9ad02852..4c5e089d285 100644 --- a/src/mame/hp/hp49gp.cpp +++ b/src/mame/hp/hp49gp.cpp @@ -47,8 +47,8 @@ class hp49gp_state : public driver_device required_device m_s3c2410; required_shared_ptr m_steppingstone; lcd_spi_t m_lcd_spi; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; uint32_t s3c2410_gpio_port_r(offs_t offset); void s3c2410_gpio_port_w(offs_t offset, uint32_t data); inline void verboselog(int n_level, const char *s_fmt, ...) ATTR_PRINTF(3,4); @@ -57,7 +57,7 @@ class hp49gp_state : public driver_device void lcd_spi_line_w( int line, int data); int lcd_spi_line_r( int line); required_device m_maincpu; - void hp49gp_map(address_map &map); + void hp49gp_map(address_map &map) ATTR_COLD; }; /*************************************************************************** diff --git a/src/mame/hp/hp64k.cpp b/src/mame/hp/hp64k.cpp index 591e8cfbe38..341ad4f8024 100644 --- a/src/mame/hp/hp64k.cpp +++ b/src/mame/hp/hp64k.cpp @@ -183,8 +183,8 @@ class hp64k_state : public driver_device private: virtual void driver_start() override; //virtual void machine_start(); - virtual void video_start() override; - virtual void machine_reset() override; + virtual void video_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; uint8_t hp64k_crtc_filter(uint8_t data); void hp64k_crtc_w(offs_t offset, uint16_t data); @@ -244,8 +244,8 @@ class hp64k_state : public driver_device TIMER_DEVICE_CALLBACK_MEMBER(hp64k_beeper_off); void hp64k_baud_clk_w(int state); - void cpu_io_map(address_map &map); - void cpu_mem_map(address_map &map); + void cpu_io_map(address_map &map) ATTR_COLD; + void cpu_mem_map(address_map &map) ATTR_COLD; required_device m_cpu; required_device m_crtc; diff --git a/src/mame/hp/hp700.cpp b/src/mame/hp/hp700.cpp index 02538f319d7..354ca71a9a1 100644 --- a/src/mame/hp/hp700.cpp +++ b/src/mame/hp/hp700.cpp @@ -27,9 +27,9 @@ class hp700_state : public driver_device void hp700_70(machine_config &config); private: - void io_map(address_map &map); - void mem_map(address_map &map); - void hp700_70_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; + void hp700_70_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_duart; diff --git a/src/mame/hp/hp7596a.cpp b/src/mame/hp/hp7596a.cpp index a101d961430..cd1f6442bc8 100644 --- a/src/mame/hp/hp7596a.cpp +++ b/src/mame/hp/hp7596a.cpp @@ -23,7 +23,7 @@ class hp7596a_state : public driver_device void hp7596a(machine_config &config); private: - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; required_device m_maincpu; }; diff --git a/src/mame/hp/hp80.cpp b/src/mame/hp/hp80.cpp index 3fa3bcaa22d..73b33de1caf 100644 --- a/src/mame/hp/hp80.cpp +++ b/src/mame/hp/hp80.cpp @@ -153,12 +153,12 @@ class hp80_base_state : public driver_device protected: void hp80_base(machine_config &config); - virtual void cpu_mem_map(address_map &map); - virtual void rombank_mem_map(address_map &map); + virtual void cpu_mem_map(address_map &map) ATTR_COLD; + virtual void rombank_mem_map(address_map &map) ATTR_COLD; virtual void unmap_optroms(address_space &space); - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; uint8_t intack_r(); @@ -990,8 +990,8 @@ class hp85_state : public hp80_base_state void hp85(machine_config &config); private: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); void vblank_w(int state); @@ -1008,7 +1008,7 @@ class hp85_state : public hp80_base_state TIMER_DEVICE_CALLBACK_MEMBER(vm_timer); TIMER_DEVICE_CALLBACK_MEMBER(prt_busy_timer); - virtual void cpu_mem_map(address_map &map) override; + virtual void cpu_mem_map(address_map &map) override ATTR_COLD; virtual void unmap_optroms(address_space &space) override; required_device m_screen; @@ -1633,11 +1633,11 @@ class hp86_state : public hp80_base_state void hp86(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; - virtual void cpu_mem_map(address_map &map) override; - virtual void rombank_mem_map(address_map &map) override; + virtual void cpu_mem_map(address_map &map) override ATTR_COLD; + virtual void rombank_mem_map(address_map &map) override ATTR_COLD; virtual void unmap_optroms(address_space &space) override; private: @@ -2250,7 +2250,7 @@ class hp86_int_state : public hp86_state hp86_int_state(const machine_config &mconfig, device_type type, const char *tag); protected: - virtual void rombank_mem_map(address_map &map) override; + virtual void rombank_mem_map(address_map &map) override ATTR_COLD; virtual void unmap_optroms(address_space &space) override; }; diff --git a/src/mame/hp/hp80_optrom.h b/src/mame/hp/hp80_optrom.h index c23203aaaaf..f734f0475a4 100644 --- a/src/mame/hp/hp80_optrom.h +++ b/src/mame/hp/hp80_optrom.h @@ -35,7 +35,7 @@ class hp80_optrom_device : public device_t, protected: // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_image_interface implementation virtual std::pair call_load() override; diff --git a/src/mame/hp/hp95lx.cpp b/src/mame/hp/hp95lx.cpp index f5fcd0eb5ee..17d4c1e9658 100644 --- a/src/mame/hp/hp95lx.cpp +++ b/src/mame/hp/hp95lx.cpp @@ -123,8 +123,8 @@ class hp95lx_state : public driver_device void hp95lx(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; required_device m_maincpu; required_device m_bankdev_c000; @@ -156,9 +156,9 @@ class hp95lx_state : public driver_device void video_register_w(uint8_t data); [[maybe_unused]] void debug_w(offs_t offset, uint8_t data); - void hp95lx_io(address_map &map); - void hp95lx_map(address_map &map); - void hp95lx_romdos(address_map &map); + void hp95lx_io(address_map &map) ATTR_COLD; + void hp95lx_map(address_map &map) ATTR_COLD; + void hp95lx_romdos(address_map &map) ATTR_COLD; required_shared_ptr m_p_videoram; required_region_ptr m_p_chargen; diff --git a/src/mame/hp/hp9825.cpp b/src/mame/hp/hp9825.cpp index 808d0c6c07b..93b70928b00 100644 --- a/src/mame/hp/hp9825.cpp +++ b/src/mame/hp/hp9825.cpp @@ -160,9 +160,9 @@ class hp98xx_state : public driver_device protected: void hp98xx_base(machine_config &config); - virtual void machine_start() override; - virtual void device_reset() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; virtual void print_line(); required_device m_cpu; @@ -202,7 +202,7 @@ class hp98xx_state : public driver_device // SC of slots int m_slot_sc[ 3 ]; - void cpu_io_map(address_map &map); + void cpu_io_map(address_map &map) ATTR_COLD; uint16_t kb_scancode_r(); void disp_w(uint16_t data); @@ -923,7 +923,7 @@ class hp9825_state : public hp98xx_state protected: void hp9825_base(machine_config &config); - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; virtual void print_line() override; @@ -1053,12 +1053,12 @@ class hp9825a_state : public hp9825_state void hp9825a(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_ram; - void cpu_mem_map(address_map &map); + void cpu_mem_map(address_map &map) ATTR_COLD; }; void hp9825a_state::hp9825a(machine_config &config) @@ -1108,10 +1108,10 @@ class hp9825b_state : public hp9825_state void hp9825b(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: - void cpu_mem_map(address_map &map); + void cpu_mem_map(address_map &map) ATTR_COLD; }; void hp9825b_state::hp9825b(machine_config &config) @@ -1165,8 +1165,8 @@ class hp9825t_state : public hp9825_state, void hp9825t(machine_config &config); protected: - virtual void machine_start() override; - virtual void device_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; // device_memory_interface overrides virtual space_config_vector memory_space_config() const override; @@ -1188,9 +1188,9 @@ class hp9825t_state : public hp9825_state, uint8_t m_special_opt; // U42 uint16_t m_fetch_addr; - void cpu_mem_map(address_map &map); - void ram_mem_map(address_map &map); - void rom_mem_map(address_map &map); + void cpu_mem_map(address_map &map) ATTR_COLD; + void ram_mem_map(address_map &map) ATTR_COLD; + void rom_mem_map(address_map &map) ATTR_COLD; uint16_t cpu_mem_r(offs_t offset, uint16_t mem_mask = ~0); void cpu_mem_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); void stm(uint8_t cycle_type); @@ -1420,12 +1420,12 @@ class hp9831_state : public hp98xx_state void hp9831(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_ram; - void cpu_mem_map(address_map &map); + void cpu_mem_map(address_map &map) ATTR_COLD; }; void hp9831_state::hp9831(machine_config &config) diff --git a/src/mame/hp/hp9825_optrom.h b/src/mame/hp/hp9825_optrom.h index 769033f550b..acff7d5261f 100644 --- a/src/mame/hp/hp9825_optrom.h +++ b/src/mame/hp/hp9825_optrom.h @@ -30,8 +30,8 @@ class hp9825_optrom_device : public device_t, protected: // device_t implementation - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; // device_image_interface implementation virtual std::pair call_load() override; diff --git a/src/mame/hp/hp9825_tape.h b/src/mame/hp/hp9825_tape.h index 1ea3613c581..0f6994980b3 100644 --- a/src/mame/hp/hp9825_tape.h +++ b/src/mame/hp/hp9825_tape.h @@ -44,9 +44,9 @@ class hp9825_tape_device : public device_t protected: // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: devcb_write_line m_flg_handler; diff --git a/src/mame/hp/hp9845.cpp b/src/mame/hp/hp9845.cpp index c059dc3e00d..5b9e1ed3ec2 100644 --- a/src/mame/hp/hp9845.cpp +++ b/src/mame/hp/hp9845.cpp @@ -762,8 +762,8 @@ class hp9845b_state : public hp9845_base_state private: uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; virtual uint16_t graphic_r(offs_t offset) override; virtual void graphic_w(offs_t offset, uint16_t data) override; @@ -1290,8 +1290,8 @@ class hp9845ct_base_state : public hp9845_base_state public: hp9845ct_base_state(const machine_config &mconfig, device_type type, const char *tag); - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); @@ -1990,8 +1990,8 @@ class hp9845c_state : public hp9845ct_base_state void hp9845c(machine_config &config); private: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; virtual uint16_t graphic_r(offs_t offset) override; virtual void graphic_w(offs_t offset, uint16_t data) override; @@ -2706,8 +2706,8 @@ class hp9845t_state : public hp9845ct_base_state void hp9845t(machine_config &config); private: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; virtual uint16_t graphic_r(offs_t offset) override; virtual void graphic_w(offs_t offset, uint16_t data) override; diff --git a/src/mame/hp/hp9845.h b/src/mame/hp/hp9845.h index 147d1786251..b38a7377595 100644 --- a/src/mame/hp/hp9845.h +++ b/src/mame/hp/hp9845.h @@ -26,9 +26,9 @@ class hp9845_base_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(togglekey_changed); protected: - virtual void machine_start() override; - virtual void device_reset() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; TIMER_DEVICE_CALLBACK_MEMBER(gv_timer); @@ -45,8 +45,8 @@ class hp9845_base_state : public driver_device void prt_irl_w(int state); void hp9845_base(machine_config &config); - void global_mem_map(address_map &map); - void ppu_io_map(address_map &map); + void global_mem_map(address_map &map) ATTR_COLD; + void ppu_io_map(address_map &map) ATTR_COLD; required_device m_lpu; required_device m_ppu; diff --git a/src/mame/hp/hp9845_optrom.h b/src/mame/hp/hp9845_optrom.h index 1239a2b87b7..fe7dfa80521 100644 --- a/src/mame/hp/hp9845_optrom.h +++ b/src/mame/hp/hp9845_optrom.h @@ -25,7 +25,7 @@ class hp9845_optrom_device : public device_t, protected: // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_rom_image_interface implementation virtual std::pair call_load() override; diff --git a/src/mame/hp/hp9845_printer.h b/src/mame/hp/hp9845_printer.h index 4559babd490..6bf3ed9d64a 100644 --- a/src/mame/hp/hp9845_printer.h +++ b/src/mame/hp/hp9845_printer.h @@ -27,10 +27,10 @@ class hp9845_printer_device : public device_t auto sts() { return m_sts_handler.bind(); } // device-level overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; TIMER_CALLBACK_MEMBER(clear_busy_flag); diff --git a/src/mame/hp/hp98x5_io_sys.h b/src/mame/hp/hp98x5_io_sys.h index 1edff26e00e..c846b17195d 100644 --- a/src/mame/hp/hp98x5_io_sys.h +++ b/src/mame/hp/hp98x5_io_sys.h @@ -20,8 +20,8 @@ class hp98x5_io_sys_device : public device_t hp98x5_io_sys_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // 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; auto irl() { return m_irl_handler.bind(); } auto irh() { return m_irh_handler.bind(); } diff --git a/src/mame/hp/hp98x6.cpp b/src/mame/hp/hp98x6.cpp index 0408bcd7bef..433bdc97ca9 100644 --- a/src/mame/hp/hp98x6.cpp +++ b/src/mame/hp/hp98x6.cpp @@ -143,11 +143,11 @@ class hp98x6_base_state : public driver_device { } - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; void hp98x6_base(machine_config &mconfig, unsigned dot_clock, int char_width); - virtual void cpu_mem_map(address_map &map); + virtual void cpu_mem_map(address_map &map) ATTR_COLD; void diag_led_w(uint8_t data); virtual void cpu_reset_w(int state); void hpib_irq_w(int state); @@ -319,8 +319,8 @@ class hp9816_state : public hp98x6_base_state void hp9816(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; required_device m_uart; required_device m_rs232; @@ -331,7 +331,7 @@ class hp9816_state : public hp98x6_base_state static inline constexpr unsigned TEXT_VRAM_SIZE = 2048; static inline constexpr unsigned GRAPHIC_VRAM_SIZE = 16384; - virtual void cpu_mem_map(address_map &map) override; + virtual void cpu_mem_map(address_map &map) override ATTR_COLD; uint16_t text_r(offs_t offset); void text_w(offs_t offset, uint16_t data, uint16_t mem_mask); uint16_t graphic_r(offs_t offset, uint16_t mem_mask); @@ -857,14 +857,14 @@ class hp9826_36_state : public hp98x6_base_state static inline constexpr unsigned FC_SIDE_SEL_BIT = 2; static inline constexpr unsigned FC_DRIVE_EN_BIT = 0; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; virtual void device_post_load() override; TIMER_DEVICE_CALLBACK_MEMBER(fdc_ram_io); void hp9826_36(machine_config &mconfig, unsigned dot_clock, int char_width); - virtual void cpu_mem_map(address_map &map) override; + virtual void cpu_mem_map(address_map &map) override ATTR_COLD; virtual void cpu_reset_w(int state) override; unsigned get_sel_floppy() const; floppy_image_device *get_drive(unsigned idx) const; @@ -1272,13 +1272,13 @@ class hp9826_state : public hp9826_36_state void hp9826(machine_config &mconfig); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: static inline constexpr unsigned TEXT_VRAM_SIZE = 2048; static inline constexpr unsigned GRAPHIC_VRAM_SIZE = 16384; - virtual void cpu_mem_map(address_map &map) override; + virtual void cpu_mem_map(address_map &map) override ATTR_COLD; uint16_t text_r(offs_t offset, uint16_t mem_mask); void text_w(offs_t offset, uint16_t data, uint16_t mem_mask); uint16_t graphic_r(offs_t offset, uint16_t mem_mask); @@ -1451,13 +1451,13 @@ class hp9836_state : public hp9826_36_state void hp9836(machine_config &mconfig); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: static inline constexpr unsigned TEXT_VRAM_SIZE = 2048; static inline constexpr unsigned GRAPHIC_VRAM_SIZE = 16384; - virtual void cpu_mem_map(address_map &map) override; + virtual void cpu_mem_map(address_map &map) override ATTR_COLD; uint16_t text_r(offs_t offset, uint16_t mem_mask); void text_w(offs_t offset, uint16_t data, uint16_t mem_mask); uint16_t graphic_r(offs_t offset, uint16_t mem_mask); @@ -1803,13 +1803,13 @@ class hp9836c_state : public hp9826_36_state void hp9836c(machine_config &mconfig); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: static inline constexpr unsigned TEXT_VRAM_SIZE = 2048; static inline constexpr unsigned GRAPHIC_VRAM_SIZE = 131072; - virtual void cpu_mem_map(address_map &map) override; + virtual void cpu_mem_map(address_map &map) override ATTR_COLD; uint16_t text_r(offs_t offset, uint16_t mem_mask); void text_w(offs_t offset, uint16_t data, uint16_t mem_mask); uint16_t graphic_r(offs_t offset, uint16_t mem_mask); diff --git a/src/mame/hp/hp98x6_optrom.h b/src/mame/hp/hp98x6_optrom.h index 44541403bd0..336b8f95816 100644 --- a/src/mame/hp/hp98x6_optrom.h +++ b/src/mame/hp/hp98x6_optrom.h @@ -27,7 +27,7 @@ class hp98x6_optrom_device : public device_t, protected: // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_image_interface implementation virtual std::pair call_load() override; diff --git a/src/mame/hp/hp98x6_upi.h b/src/mame/hp/hp98x6_upi.h index bd895497c33..8cead0d2179 100644 --- a/src/mame/hp/hp98x6_upi.h +++ b/src/mame/hp/hp98x6_upi.h @@ -34,10 +34,10 @@ class hp98x6_upi_device : public device_t protected: // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: enum class fsm_st { diff --git a/src/mame/hp/hp9k.cpp b/src/mame/hp/hp9k.cpp index 27a82571d99..2326e44e8f4 100644 --- a/src/mame/hp/hp9k.cpp +++ b/src/mame/hp/hp9k.cpp @@ -166,7 +166,7 @@ class hp9k_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); required_device m_gfxdecode; - void hp9k_mem(address_map &map); + void hp9k_mem(address_map &map) ATTR_COLD; }; // diff --git a/src/mame/hp/hp9k_3xx.cpp b/src/mame/hp/hp9k_3xx.cpp index 42998f3103e..4a2b3eafba9 100644 --- a/src/mame/hp/hp9k_3xx.cpp +++ b/src/mame/hp/hp9k_3xx.cpp @@ -97,7 +97,7 @@ class hp9k3xx_state : public driver_device void hp9k382(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; virtual void driver_start() override; private: @@ -115,15 +115,15 @@ class hp9k3xx_state : public driver_device void led_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); - void hp9k310_map(address_map &map); - void hp9k320_map(address_map &map); - void hp9k330_map(address_map &map); - void hp9k332_map(address_map &map); - void hp9k360_map(address_map &map); - void hp9k370_map(address_map &map); - void hp9k380_map(address_map &map); - void hp9k382_map(address_map &map); - void hp9k3xx_common(address_map &map); + void hp9k310_map(address_map &map) ATTR_COLD; + void hp9k320_map(address_map &map) ATTR_COLD; + void hp9k330_map(address_map &map) ATTR_COLD; + void hp9k332_map(address_map &map) ATTR_COLD; + void hp9k360_map(address_map &map) ATTR_COLD; + void hp9k370_map(address_map &map) ATTR_COLD; + void hp9k380_map(address_map &map) ATTR_COLD; + void hp9k382_map(address_map &map) ATTR_COLD; + void hp9k3xx_common(address_map &map) ATTR_COLD; void add_dio16_bus(machine_config &mconfig); void add_dio32_bus(machine_config &mconfig); diff --git a/src/mame/hp/hp_ipc.cpp b/src/mame/hp/hp_ipc.cpp index db116a4f7d7..2f7053d6ceb 100644 --- a/src/mame/hp/hp_ipc.cpp +++ b/src/mame/hp/hp_ipc.cpp @@ -411,8 +411,8 @@ class hp_ipc_state : public driver_device void hp9808a(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: uint16_t mem_r(offs_t offset, uint16_t mem_mask); @@ -435,11 +435,11 @@ class hp_ipc_state : public driver_device [[maybe_unused]] void irq_6(int state); void irq_7(int state); - void hp_ipc_mem_inner_base(address_map &map); - void hp_ipc_mem_inner_9807a(address_map &map); - void hp_ipc_mem_outer(address_map &map); + void hp_ipc_mem_inner_base(address_map &map) ATTR_COLD; + void hp_ipc_mem_inner_9807a(address_map &map) ATTR_COLD; + void hp_ipc_mem_outer(address_map &map) ATTR_COLD; - void hp_ipc_mem_inner_9808a(address_map &map); + void hp_ipc_mem_inner_9808a(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_bankdev; diff --git a/src/mame/hp/hp_ipc_optrom.h b/src/mame/hp/hp_ipc_optrom.h index 4e8f583c77b..dcf575fbb9c 100644 --- a/src/mame/hp/hp_ipc_optrom.h +++ b/src/mame/hp/hp_ipc_optrom.h @@ -32,7 +32,7 @@ class hp_ipc_optrom_device : public device_t, protected: // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_image_interface implementation virtual std::pair call_load() override; diff --git a/src/mame/hp/hpz80unk.cpp b/src/mame/hp/hpz80unk.cpp index 7ab251fafe7..5bdabc2bdb2 100644 --- a/src/mame/hp/hpz80unk.cpp +++ b/src/mame/hp/hpz80unk.cpp @@ -69,12 +69,12 @@ class hpz80unk_state : public driver_device u8 port0d_r(); u8 portfc_r(); - void io_map(address_map &map); - void mem_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; u8 m_port02_data = 0U; - void machine_reset() override; - void machine_start() override; + void machine_reset() override ATTR_COLD; + void machine_start() override ATTR_COLD; required_device m_maincpu; required_shared_ptr m_p_rom; required_device_array m_uart; diff --git a/src/mame/hp/jornada.cpp b/src/mame/hp/jornada.cpp index 04ab3e06f7e..be84bac24dc 100644 --- a/src/mame/hp/jornada.cpp +++ b/src/mame/hp/jornada.cpp @@ -148,13 +148,13 @@ class jornada_state : public driver_device protected: // driver_device overrides - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; virtual void device_reset_after_children() override; static constexpr u32 SA1110_CLOCK = 206000000; - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; void cpu_rts_to_mcu(int state); void mcu_assemble_touch_data(); diff --git a/src/mame/husky/hawk.cpp b/src/mame/husky/hawk.cpp index c3622750c8b..68e1467a040 100644 --- a/src/mame/husky/hawk.cpp +++ b/src/mame/husky/hawk.cpp @@ -43,15 +43,15 @@ class hawk_state : public driver_device void init_hawk(); protected: - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; private: void hawk_palette(palette_device &palette) const; uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void hawk_mem(address_map &map); - void hawk_io(address_map &map); + void hawk_mem(address_map &map) ATTR_COLD; + void hawk_io(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_palette; diff --git a/src/mame/husky/hunter16.cpp b/src/mame/husky/hunter16.cpp index 7821c4b306f..200c6d2cc0e 100644 --- a/src/mame/husky/hunter16.cpp +++ b/src/mame/husky/hunter16.cpp @@ -43,9 +43,9 @@ class hunter16_state : public driver_device protected: uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void mem_map(address_map &map); - void io_16_map(address_map &map); - void io_1680_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void io_16_map(address_map &map) ATTR_COLD; + void io_1680_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_screen; diff --git a/src/mame/husky/hunter2.cpp b/src/mame/husky/hunter2.cpp index c8d3275cf1f..ef1fa903cd8 100644 --- a/src/mame/husky/hunter2.cpp +++ b/src/mame/husky/hunter2.cpp @@ -70,7 +70,7 @@ class hunter2_state : public driver_device void init_hunter2(); protected: - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; private: uint8_t keyboard_r(); @@ -91,8 +91,8 @@ class hunter2_state : public driver_device void cts_w(int state); void rxd_w(int state); - void hunter2_io(address_map &map); - void hunter2_mem(address_map &map); + void hunter2_io(address_map &map) ATTR_COLD; + void hunter2_mem(address_map &map) ATTR_COLD; uint8_t m_keydata = 0; uint8_t m_irq_mask = 0; diff --git a/src/mame/husky/husky.cpp b/src/mame/husky/husky.cpp index 4591483cb0f..553eacc8b51 100644 --- a/src/mame/husky/husky.cpp +++ b/src/mame/husky/husky.cpp @@ -61,8 +61,8 @@ class husky_state : public driver_device void init_husky(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: uint8_t porta_r(); @@ -84,8 +84,8 @@ class husky_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void husky_io(address_map &map); - void husky_mem(address_map &map); + void husky_io(address_map &map) ATTR_COLD; + void husky_mem(address_map &map) ATTR_COLD; required_device m_maincpu; required_ioport_array<4> m_kbd; diff --git a/src/mame/ibm/ibm3153.cpp b/src/mame/ibm/ibm3153.cpp index 509bcfc69c0..f8fb8ef63a9 100644 --- a/src/mame/ibm/ibm3153.cpp +++ b/src/mame/ibm/ibm3153.cpp @@ -57,12 +57,12 @@ class ibm3153_state : public driver_device void ibm3153(machine_config &config); private: - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; void ibm3153_palette(palette_device &palette) const; uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void io_map(address_map &map); - void mem_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_region_ptr m_p_chargen; diff --git a/src/mame/ibm/ibm5100.cpp b/src/mame/ibm/ibm5100.cpp index 53b51ba7aa2..78575aad2a2 100644 --- a/src/mame/ibm/ibm5100.cpp +++ b/src/mame/ibm/ibm5100.cpp @@ -57,13 +57,13 @@ class ibm5100_state : public driver_device protected: // driver_device implementation - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; - virtual void cpu_pgm_map(address_map &map); - virtual void cpu_rws_map(address_map &map); - virtual void cpu_ioc_map(address_map &map); - virtual void cpu_iod_map(address_map &map); + virtual void cpu_pgm_map(address_map &map) ATTR_COLD; + virtual void cpu_rws_map(address_map &map) ATTR_COLD; + virtual void cpu_ioc_map(address_map &map) ATTR_COLD; + virtual void cpu_iod_map(address_map &map) ATTR_COLD; u32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, rectangle const &cliprect); @@ -117,11 +117,11 @@ class ibm5110_state : public ibm5100_state void ibm5110(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; - virtual void cpu_pgm_map(address_map &map) override; - virtual void cpu_ioc_map(address_map &map) override; + virtual void cpu_pgm_map(address_map &map) override ATTR_COLD; + virtual void cpu_ioc_map(address_map &map) override ATTR_COLD; virtual void da0_ctl_w(u8 data) override; diff --git a/src/mame/ibm/ibm5100_kbd.h b/src/mame/ibm/ibm5100_kbd.h index 51f0040f5ab..7e335e7a205 100644 --- a/src/mame/ibm/ibm5100_kbd.h +++ b/src/mame/ibm/ibm5100_kbd.h @@ -25,9 +25,9 @@ class ibm5100_keyboard_device ibm5100_keyboard_device(machine_config const &mconfig, device_type type, char const *tag, device_t *owner, u32 clock); // device_t implementation - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; - virtual void device_reset() override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; // device_matrix_keyboard_interface implementation virtual void key_make(u8 row, u8 column) override; diff --git a/src/mame/ibm/ibm5550.cpp b/src/mame/ibm/ibm5550.cpp index 099c97feeba..3cf5910445a 100644 --- a/src/mame/ibm/ibm5550.cpp +++ b/src/mame/ibm/ibm5550.cpp @@ -63,7 +63,7 @@ class ibm5550_state : public driver_device void ibm5550(machine_config &config); private: - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; required_device m_maincpu; required_device m_pit; @@ -75,8 +75,8 @@ class ibm5550_state : public driver_device required_shared_ptr m_gfxram; required_device m_palette; - void main_map(address_map &map); - void main_io(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void main_io(address_map &map) ATTR_COLD; uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); diff --git a/src/mame/ibm/ibm6580.cpp b/src/mame/ibm/ibm6580.cpp index f4de1a54bb9..eb8cf005a79 100644 --- a/src/mame/ibm/ibm6580.cpp +++ b/src/mame/ibm/ibm6580.cpp @@ -219,8 +219,8 @@ class ibm6580_state : public driver_device void ibm6580(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: void pic_latch_w(uint16_t data); @@ -254,11 +254,11 @@ class ibm6580_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void ibm6580_io(address_map &map); - void ibm6580_mem(address_map &map); + void ibm6580_io(address_map &map) ATTR_COLD; + void ibm6580_mem(address_map &map) ATTR_COLD; - void mcu_io(address_map &map); - void mcu_mem(address_map &map); + void mcu_io(address_map &map) ATTR_COLD; + void mcu_mem(address_map &map) ATTR_COLD; uint16_t m_gate = 0; uint8_t m_dma0pg = 0; diff --git a/src/mame/ibm/ibm6580_fdc.h b/src/mame/ibm/ibm6580_fdc.h index 752b72858bb..9a2b6043ef0 100644 --- a/src/mame/ibm/ibm6580_fdc.h +++ b/src/mame/ibm/ibm6580_fdc.h @@ -23,11 +23,11 @@ class dw_fdc_device : public device_t void ack_w(int state); protected: - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; TIMER_CALLBACK_MEMBER(assert_reset_line); diff --git a/src/mame/ibm/ibm6580_kbd.h b/src/mame/ibm/ibm6580_kbd.h index 8c7c60ce5a8..abe7aaaa83a 100644 --- a/src/mame/ibm/ibm6580_kbd.h +++ b/src/mame/ibm/ibm6580_kbd.h @@ -22,12 +22,12 @@ class dw_keyboard_device : public device_t void ack_w(int state); protected: - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; - void device_start() override; - void device_reset() override; + void device_start() override ATTR_COLD; + void device_reset() override ATTR_COLD; private: uint8_t m_dip, m_bus, m_p2; diff --git a/src/mame/ibm/rosetta.h b/src/mame/ibm/rosetta.h index 92e5305ef4e..cc9af033741 100644 --- a/src/mame/ibm/rosetta.h +++ b/src/mame/ibm/rosetta.h @@ -61,8 +61,8 @@ class rosetta_device protected: // device_t overrides virtual void device_validity_check(validity_checker &valid) const override; - 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 device_post_load() override; // virtual address translation diff --git a/src/mame/ibm/rs6000_type7xxx.cpp b/src/mame/ibm/rs6000_type7xxx.cpp index ba8aaa9aeb9..3fce2eef7d0 100644 --- a/src/mame/ibm/rs6000_type7xxx.cpp +++ b/src/mame/ibm/rs6000_type7xxx.cpp @@ -38,7 +38,7 @@ class type7xxx_state : public driver_device private: required_device m_maincpu; - void type7009_map(address_map &map); + void type7009_map(address_map &map) ATTR_COLD; uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); }; diff --git a/src/mame/ibm/rtpc.cpp b/src/mame/ibm/rtpc.cpp index 23f7ffd5662..ca41db76ee3 100644 --- a/src/mame/ibm/rtpc.cpp +++ b/src/mame/ibm/rtpc.cpp @@ -141,12 +141,12 @@ class rtpc_state : public driver_device protected: // driver_device overrides - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; void iocc_mem_map(address_map &map) { map.unmap_value_high(); } - template void iocc_pio_map(address_map &map); - void mcu_pgm_map(address_map &map); + template void iocc_pio_map(address_map &map) ATTR_COLD; + void mcu_pgm_map(address_map &map) ATTR_COLD; void common(machine_config &config); diff --git a/src/mame/ibm/rtpc_iocc.h b/src/mame/ibm/rtpc_iocc.h index 0275f2d6489..a2edef4f229 100644 --- a/src/mame/ibm/rtpc_iocc.h +++ b/src/mame/ibm/rtpc_iocc.h @@ -116,8 +116,8 @@ class rtpc_iocc_device protected: // device_t 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; // device_memory_interface overrides virtual space_config_vector memory_space_config() const override; diff --git a/src/mame/ibm/thinkpad8xx.cpp b/src/mame/ibm/thinkpad8xx.cpp index 97b9f24edee..7f246e64bd8 100644 --- a/src/mame/ibm/thinkpad8xx.cpp +++ b/src/mame/ibm/thinkpad8xx.cpp @@ -87,11 +87,13 @@ void thinkpad8xx_state::thinkpad850(machine_config &config) ROM_START(thinkpad850) + ROM_DEFAULT_BIOS("v101") + ROM_SYSTEM_BIOS( 0, "v100", "v1.00 (91G0610, 07-03-1995)" ) + ROM_SYSTEM_BIOS( 1, "v101", "v1.01 (91G1671, 09-10-1996)" ) + ROM_REGION( 0x80000, "maincpu", 0 ) - ROM_SYSTEM_BIOS( 0, "91g1671", "v1.01 (91G1671, 09-10-1996)" ) - ROMX_LOAD( "91g1671_ibm_dakota_v101_mbm29f040a.u21", 0x00000, 0x80000, CRC(5210dbd6) SHA1(8e0bbbe130e6fdb06ef307bb5addbcb993a8a41f), ROM_BIOS(0) ) // Needed for installing Windows NT - ROM_SYSTEM_BIOS( 1, "91g0610", "v1.00 (91G0610, 07-03-1995)" ) - ROMX_LOAD( "91g0610_ibm_dakota_v100_mbm29f040a.u21", 0x00000, 0x80000, CRC(169a79c4) SHA1(da74a2f346b732add62d08ca5f34f192cae5d033), ROM_BIOS(1) ) + ROMX_LOAD( "91g0610_ibm_dakota_v100_mbm29f040a.u21", 0x00000, 0x80000, CRC(169a79c4) SHA1(da74a2f346b732add62d08ca5f34f192cae5d033), ROM_BIOS(0) ) + ROMX_LOAD( "91g1671_ibm_dakota_v101_mbm29f040a.u21", 0x00000, 0x80000, CRC(5210dbd6) SHA1(8e0bbbe130e6fdb06ef307bb5addbcb993a8a41f), ROM_BIOS(1) ) // Needed for installing Windows NT ROM_REGION(0xe000, "mcu", 0) ROM_LOAD( "hd6473388.u15", 0x0000, 0xe000, NO_DUMP ) diff --git a/src/mame/ice/chexx.cpp b/src/mame/ice/chexx.cpp index c3f33a2d80f..bf085b3a351 100644 --- a/src/mame/ice/chexx.cpp +++ b/src/mame/ice/chexx.cpp @@ -123,7 +123,7 @@ class chexx_state : public driver_device void lamp_w(uint8_t data); void chexx(machine_config &config); - void mem(address_map &map); + void mem(address_map &map) ATTR_COLD; protected: TIMER_CALLBACK_MEMBER(update); @@ -132,8 +132,8 @@ class chexx_state : public driver_device void digitalker_set_bank(uint8_t bank); // driver_device overrides - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; // devices required_device m_maincpu; @@ -170,7 +170,7 @@ class faceoffh_state : public chexx_state protected: void ay_w(offs_t offset, uint8_t data); - void mem(address_map &map); + void mem(address_map &map) ATTR_COLD; required_device m_aysnd; // only faceoffh uint8_t m_ay_cmd = 0; diff --git a/src/mame/ice/frenzyxprss.cpp b/src/mame/ice/frenzyxprss.cpp index 191583ae80e..fc1c2f70bb2 100644 --- a/src/mame/ice/frenzyxprss.cpp +++ b/src/mame/ice/frenzyxprss.cpp @@ -49,7 +49,7 @@ class frenzyxprss_state : public driver_device private: required_device m_maincpu; - void frenzyxprss_map(address_map &map); + void frenzyxprss_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/ice/ice_bozopail.cpp b/src/mame/ice/ice_bozopail.cpp index 5aea3f1b4f6..11b90796133 100644 --- a/src/mame/ice/ice_bozopail.cpp +++ b/src/mame/ice/ice_bozopail.cpp @@ -41,8 +41,8 @@ class ice_bozopail_state : public driver_device void ice_bozo(machine_config &config); private: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; void bank_w(u8 data); void sndl_w(u8 data); @@ -51,7 +51,7 @@ class ice_bozopail_state : public driver_device void load_w(u8 data); u8 pa_r(); - void ice_bozo_map(address_map &map); + void ice_bozo_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_dac; diff --git a/src/mame/ice/ice_tbd.cpp b/src/mame/ice/ice_tbd.cpp index c78c0163018..931a9365bbe 100644 --- a/src/mame/ice/ice_tbd.cpp +++ b/src/mame/ice/ice_tbd.cpp @@ -35,11 +35,11 @@ class ice_tbd_state : public driver_device void ice_tbd(machine_config &config); private: - void ice_tbd_io_map(address_map &map); - void ice_tbd_map(address_map &map); + void ice_tbd_io_map(address_map &map) ATTR_COLD; + void ice_tbd_map(address_map &map) ATTR_COLD; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; required_device m_maincpu; }; diff --git a/src/mame/ice/lethalj.h b/src/mame/ice/lethalj.h index 8c3999b024d..784958ad5ef 100644 --- a/src/mame/ice/lethalj.h +++ b/src/mame/ice/lethalj.h @@ -52,10 +52,10 @@ class lethalj_state : public driver_device inline void get_crosshair_xy(int player, int *x, int *y); TMS340X0_SCANLINE_IND16_CB_MEMBER(scanline_update); - void lethalj_map(address_map &map); + void lethalj_map(address_map &map) ATTR_COLD; virtual void machine_start() override { m_lamps.resolve(); } - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; TIMER_CALLBACK_MEMBER(gen_ext1_int); diff --git a/src/mame/ice/schexx4gen.cpp b/src/mame/ice/schexx4gen.cpp index 258084e25ea..b33014e73be 100644 --- a/src/mame/ice/schexx4gen.cpp +++ b/src/mame/ice/schexx4gen.cpp @@ -25,7 +25,7 @@ class schexx_state : public driver_device void schexx(machine_config &config); private: - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; }; diff --git a/src/mame/ice/vp101.cpp b/src/mame/ice/vp101.cpp index 693ac908d65..6c86b4aee2a 100644 --- a/src/mame/ice/vp101.cpp +++ b/src/mame/ice/vp101.cpp @@ -126,8 +126,8 @@ class vp10x_state : public driver_device void vp101(machine_config &config); private: - virtual void machine_reset() override; - virtual void machine_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; uint32_t tty_ready_r(); void tty_w(uint32_t data); @@ -157,8 +157,8 @@ class vp10x_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); uint32_t vp50_screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void main_map(address_map &map); - void vp50_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void vp50_map(address_map &map) ATTR_COLD; // devices required_device m_maincpu; @@ -166,7 +166,7 @@ class vp10x_state : public driver_device required_device m_ata; // driver_device overrides - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; int pic_cmd = 0; int pic_state = 0; int m_dmarq_state = 0; diff --git a/src/mame/igs/cabaret.cpp b/src/mame/igs/cabaret.cpp index 5f6128c95b0..bc6e6653050 100644 --- a/src/mame/igs/cabaret.cpp +++ b/src/mame/igs/cabaret.cpp @@ -64,8 +64,8 @@ class cabaret_state : public driver_device protected: virtual void machine_start() override { m_led.resolve(); } - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -99,8 +99,8 @@ class cabaret_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); INTERRUPT_GEN_MEMBER(interrupt_cb); - void program_map(address_map &map); - void port_map(address_map &map); + void program_map(address_map &map) ATTR_COLD; + void port_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/igs/dunhuang.cpp b/src/mame/igs/dunhuang.cpp index d6adf67bf66..53007216852 100644 --- a/src/mame/igs/dunhuang.cpp +++ b/src/mame/igs/dunhuang.cpp @@ -109,13 +109,13 @@ class dunhuang_state : public driver_device uint8_t dsw_r(); uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void dunhuang_io_map(address_map &map); - void dunhuang_map(address_map &map); - void ramdac_map(address_map &map); + void dunhuang_io_map(address_map &map) ATTR_COLD; + void dunhuang_map(address_map &map) ATTR_COLD; + void ramdac_map(address_map &map) ATTR_COLD; - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; /* video-related */ tilemap_t *m_tmap; diff --git a/src/mame/igs/funtech.cpp b/src/mame/igs/funtech.cpp index 704dc57de4a..331f761d8c0 100644 --- a/src/mame/igs/funtech.cpp +++ b/src/mame/igs/funtech.cpp @@ -56,8 +56,8 @@ class fun_tech_corp_state : public driver_device void poker21(machine_config &config); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; required_device m_maincpu; required_device m_gfxdecode; @@ -69,7 +69,7 @@ class fun_tech_corp_state : public driver_device void lamps_w(uint8_t data); void coins_w(uint8_t data); - void program_map(address_map &map); + void program_map(address_map &map) ATTR_COLD; void base(machine_config &config); @@ -87,7 +87,7 @@ class fun_tech_corp_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void io_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; }; class reels_state : public fun_tech_corp_state @@ -103,7 +103,7 @@ class reels_state : public fun_tech_corp_state void funtech(machine_config &config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: required_shared_ptr_array m_reel_ram; @@ -120,8 +120,8 @@ class reels_state : public fun_tech_corp_state uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void io_map(address_map &map); - void program_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void program_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/igs/goldstar.cpp b/src/mame/igs/goldstar.cpp index 496e346815e..cb1b4f123ff 100644 --- a/src/mame/igs/goldstar.cpp +++ b/src/mame/igs/goldstar.cpp @@ -333,29 +333,29 @@ class goldstar_state : public driver_device void goldfrui(machine_config &config); void goldstar(machine_config &config); void goldstbl(machine_config &config); - void bonusch_portmap(address_map &map); - void feverch_portmap(address_map &map); - void cm_map(address_map &map); - void crazybon_portmap(address_map &map); - void flaming7_map(address_map &map); - void goldstar_map(address_map &map); - void goldstar_readport(address_map &map); - void kkotnoli_map(address_map &map); - void ladylinr_map(address_map &map); - void lucky8_map(address_map &map); - void common_decrypted_opcodes_map(address_map &map); - void super972_decrypted_opcodes_map(address_map &map); - void mbstar_map(address_map &map); - void megaline_portmap(address_map &map); - void ncb3_readwriteport(address_map &map); - void nfm_map(address_map &map); - void jkrmast_map(address_map &map); - void jkrmast_portmap(address_map &map); - void pkrmast_portmap(address_map &map); - void ramdac_map(address_map &map); - void wcat3_map(address_map &map); - void wcherry_map(address_map &map); - void wcherry_readwriteport(address_map &map); + void bonusch_portmap(address_map &map) ATTR_COLD; + void feverch_portmap(address_map &map) ATTR_COLD; + void cm_map(address_map &map) ATTR_COLD; + void crazybon_portmap(address_map &map) ATTR_COLD; + void flaming7_map(address_map &map) ATTR_COLD; + void goldstar_map(address_map &map) ATTR_COLD; + void goldstar_readport(address_map &map) ATTR_COLD; + void kkotnoli_map(address_map &map) ATTR_COLD; + void ladylinr_map(address_map &map) ATTR_COLD; + void lucky8_map(address_map &map) ATTR_COLD; + void common_decrypted_opcodes_map(address_map &map) ATTR_COLD; + void super972_decrypted_opcodes_map(address_map &map) ATTR_COLD; + void mbstar_map(address_map &map) ATTR_COLD; + void megaline_portmap(address_map &map) ATTR_COLD; + void ncb3_readwriteport(address_map &map) ATTR_COLD; + void nfm_map(address_map &map) ATTR_COLD; + void jkrmast_map(address_map &map) ATTR_COLD; + void jkrmast_portmap(address_map &map) ATTR_COLD; + void pkrmast_portmap(address_map &map) ATTR_COLD; + void ramdac_map(address_map &map) ATTR_COLD; + void wcat3_map(address_map &map) ATTR_COLD; + void wcherry_map(address_map &map) ATTR_COLD; + void wcherry_readwriteport(address_map &map) ATTR_COLD; protected: virtual void machine_start() override { m_lamps.resolve(); } @@ -481,22 +481,22 @@ class cmaster_state : public goldstar_state void super7(machine_config &config); void animalhs(machine_config &config); void eldoraddoa(machine_config &config); - void animalhs_map(address_map &map); - void animalhs_portmap(address_map &map); - void amcoe1_portmap(address_map &map); - void amcoe2_portmap(address_map &map); - void cm_portmap(address_map &map); - void cm97_portmap(address_map &map); - void cmast91_portmap(address_map &map); - void cmast92_map(address_map &map); - void cmast92_portmap(address_map &map); - void cmtetrisb_portmap(address_map &map); - void cmtetriskr_portmap(address_map &map); - void cmv4zg_portmap(address_map &map); - void eldoraddoa_portmap(address_map &map); - void super7_portmap(address_map &map); - void chryangl_decrypted_opcodes_map(address_map &map); - void ss2001_portmap(address_map &map); + void animalhs_map(address_map &map) ATTR_COLD; + void animalhs_portmap(address_map &map) ATTR_COLD; + void amcoe1_portmap(address_map &map) ATTR_COLD; + void amcoe2_portmap(address_map &map) ATTR_COLD; + void cm_portmap(address_map &map) ATTR_COLD; + void cm97_portmap(address_map &map) ATTR_COLD; + void cmast91_portmap(address_map &map) ATTR_COLD; + void cmast92_map(address_map &map) ATTR_COLD; + void cmast92_portmap(address_map &map) ATTR_COLD; + void cmtetrisb_portmap(address_map &map) ATTR_COLD; + void cmtetriskr_portmap(address_map &map) ATTR_COLD; + void cmv4zg_portmap(address_map &map) ATTR_COLD; + void eldoraddoa_portmap(address_map &map) ATTR_COLD; + void super7_portmap(address_map &map) ATTR_COLD; + void chryangl_decrypted_opcodes_map(address_map &map) ATTR_COLD; + void ss2001_portmap(address_map &map) ATTR_COLD; protected: // installed by various driver init handlers to get stuff to work @@ -555,7 +555,7 @@ class wingco_state : public goldstar_state void bingownga(machine_config &config); void mbstar(machine_config &config); void flam7_tw(machine_config &config); - void magodds_map(address_map &map); + void magodds_map(address_map &map) ATTR_COLD; protected: TILE_GET_INFO_MEMBER(get_magical_fg_tile_info); @@ -567,7 +567,7 @@ class wingco_state : public goldstar_state uint8_t m_nmi_enable = 0U; uint8_t m_vidreg = 0U; - void nd8lines_map(address_map &map); + void nd8lines_map(address_map &map) ATTR_COLD; }; @@ -594,9 +594,9 @@ class cb3_state : public goldstar_state void cb3c(machine_config &config); void cb3e(machine_config &config); void ncb3(machine_config &config); - void ncb3_map(address_map &map); - void chryangla_map(address_map &map); - void chryangla_decrypted_opcodes_map(address_map &map); + void ncb3_map(address_map &map) ATTR_COLD; + void chryangla_map(address_map &map) ATTR_COLD; + void chryangla_decrypted_opcodes_map(address_map &map) ATTR_COLD; protected: void do_blockswaps(uint8_t *rom); @@ -630,8 +630,8 @@ class sanghopm_state : public goldstar_state uint32_t screen_update_sangho(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); void star100(machine_config &config); - void star100_map(address_map &map); - void star100_readport(address_map &map); + void star100_map(address_map &map) ATTR_COLD; + void star100_readport(address_map &map) ATTR_COLD; protected: TILE_GET_INFO_MEMBER(get_fg_tile_info); TILE_GET_INFO_MEMBER(get_bg_tile_info); @@ -681,11 +681,11 @@ class unkch_state : public goldstar_state void feverch(machine_config &config); void rolling(machine_config &config); - void bonusch_map(address_map &map); - void feverch_map(address_map &map); - void megaline_map(address_map &map); - void unkch_map(address_map &map); - void unkch_portmap(address_map &map); + void bonusch_map(address_map &map) ATTR_COLD; + void feverch_map(address_map &map) ATTR_COLD; + void megaline_map(address_map &map) ATTR_COLD; + void unkch_map(address_map &map) ATTR_COLD; + void unkch_portmap(address_map &map) ATTR_COLD; protected: TILE_GET_INFO_MEMBER(get_reel1_tile_info); TILE_GET_INFO_MEMBER(get_reel2_tile_info); diff --git a/src/mame/igs/igs009.cpp b/src/mame/igs/igs009.cpp index 14892ed72d0..312750904f2 100644 --- a/src/mame/igs/igs009.cpp +++ b/src/mame/igs/igs009.cpp @@ -68,9 +68,9 @@ class igs009_state : public driver_device int hopper_r(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: template void reel_ram_w(offs_t offset, uint8_t data); @@ -95,9 +95,9 @@ class igs009_state : public driver_device DECLARE_VIDEO_START(gp98); uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void gp98_portmap(address_map &map); - void jingbell_map(address_map &map); - void jingbell_portmap(address_map &map); + void gp98_portmap(address_map &map) ATTR_COLD; + void jingbell_map(address_map &map) ATTR_COLD; + void jingbell_portmap(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_gfxdecode; diff --git a/src/mame/igs/igs011.cpp b/src/mame/igs/igs011.cpp index 2c92fbad947..4a26e276066 100644 --- a/src/mame/igs/igs011.cpp +++ b/src/mame/igs/igs011.cpp @@ -144,8 +144,8 @@ class igs011_state : public driver_device void drgnwrld_igs012(machine_config &config); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: /* devices */ @@ -294,16 +294,16 @@ class igs011_state : public driver_device void drgnwrld_gfx_decrypt(); void prot_mem_range_set(); - void drgnwrld_mem(address_map &map); - void drgnwrld_igs012_mem(address_map &map); - void lhb_mem(address_map &map); - void lhb2_mem(address_map &map); - void nkishusp_mem(address_map &map); - void tygn_mem(address_map &map); - void vbowl_mem(address_map &map); - void vbowlhk_mem(address_map &map); - void wlcc_mem(address_map &map); - void xymg_mem(address_map &map); + void drgnwrld_mem(address_map &map) ATTR_COLD; + void drgnwrld_igs012_mem(address_map &map) ATTR_COLD; + void lhb_mem(address_map &map) ATTR_COLD; + void lhb2_mem(address_map &map) ATTR_COLD; + void nkishusp_mem(address_map &map) ATTR_COLD; + void tygn_mem(address_map &map) ATTR_COLD; + void vbowl_mem(address_map &map) ATTR_COLD; + void vbowlhk_mem(address_map &map) ATTR_COLD; + void wlcc_mem(address_map &map) ATTR_COLD; + void xymg_mem(address_map &map) ATTR_COLD; }; diff --git a/src/mame/igs/igs017.cpp b/src/mame/igs/igs017.cpp index b84ee29890f..acdf9063711 100644 --- a/src/mame/igs/igs017.cpp +++ b/src/mame/igs/igs017.cpp @@ -104,8 +104,8 @@ class igs_mux_device : u8 data_r(); protected: - 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 space_config_vector memory_space_config() const override; @@ -172,8 +172,8 @@ class igs_string_device : public device_t void dump(const char *filename, u32 string_addr, u32 xor_addr, bool is_16bits) const; protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: required_memory_region m_region_key; @@ -321,8 +321,8 @@ class igs_bitswap_device : public device_t void set_val_xor(u16 val_xor); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: u8 m_m3 = 0, m_mf = 0; @@ -486,8 +486,8 @@ class igs_incdec_device : public device_t void dec_w(u8 data); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: u8 m_val = 0; @@ -554,8 +554,8 @@ class igs_inc_device : public device_t void inc_w(u8 data); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: u8 m_val = 0; @@ -675,9 +675,9 @@ class igs017_state : public driver_device void init_tjsb(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: int m_remap_addr; @@ -851,46 +851,46 @@ class igs017_state : public driver_device void spkrform_patch_rom(); // Memory maps - void decrypted_opcodes_map(address_map &map); - - void igs_bitswap_mux_map(address_map &map); - void igs_fixed_data_mux_map(address_map &map); - void igs_string_mux_map(address_map &map); - - void cpoker2_io(address_map &map); - void cpoker2_map(address_map &map); - void cpoker2_mux_map(address_map &map); - void happyskl_io(address_map &map); - void happyskl_mux_map(address_map &map); - void iqblocka_io(address_map &map); - void iqblocka_map(address_map &map); - void iqblocka_mux_map(address_map &map); - void iqblockf_mux_map(address_map &map); - void lhzb2_map(address_map &map); - void lhzb2_mux_map(address_map &map); - void lhzb2a_map(address_map &map); - void lhzb2a_mux_map(address_map &map); - void mgcs_map(address_map &map); - void mgcs_mux_map(address_map &map); - void mgcsa_map(address_map &map); - void mgdh_mux_map(address_map &map); - void mgdh_map(address_map &map); - void mgdha_mux_map(address_map &map); - void sdmg2_map(address_map &map); - void sdmg2_mux_map(address_map &map); - void sdmg2p_map(address_map &map); - void sdmg2p_mux_map(address_map &map); - void slqz2_map(address_map &map); - void slqz2_mux_map(address_map &map); - void spkrform_io(address_map &map); - void spkrform_mux_map(address_map &map); - void starzan_io(address_map &map); - void starzan_mux_map(address_map &map); - void tarzan_io(address_map &map); - void tarzan_mux_map(address_map &map); - void tjsb_io(address_map &map); - void tjsb_map(address_map &map); - void tjsb_mux_map(address_map &map); + void decrypted_opcodes_map(address_map &map) ATTR_COLD; + + void igs_bitswap_mux_map(address_map &map) ATTR_COLD; + void igs_fixed_data_mux_map(address_map &map) ATTR_COLD; + void igs_string_mux_map(address_map &map) ATTR_COLD; + + void cpoker2_io(address_map &map) ATTR_COLD; + void cpoker2_map(address_map &map) ATTR_COLD; + void cpoker2_mux_map(address_map &map) ATTR_COLD; + void happyskl_io(address_map &map) ATTR_COLD; + void happyskl_mux_map(address_map &map) ATTR_COLD; + void iqblocka_io(address_map &map) ATTR_COLD; + void iqblocka_map(address_map &map) ATTR_COLD; + void iqblocka_mux_map(address_map &map) ATTR_COLD; + void iqblockf_mux_map(address_map &map) ATTR_COLD; + void lhzb2_map(address_map &map) ATTR_COLD; + void lhzb2_mux_map(address_map &map) ATTR_COLD; + void lhzb2a_map(address_map &map) ATTR_COLD; + void lhzb2a_mux_map(address_map &map) ATTR_COLD; + void mgcs_map(address_map &map) ATTR_COLD; + void mgcs_mux_map(address_map &map) ATTR_COLD; + void mgcsa_map(address_map &map) ATTR_COLD; + void mgdh_mux_map(address_map &map) ATTR_COLD; + void mgdh_map(address_map &map) ATTR_COLD; + void mgdha_mux_map(address_map &map) ATTR_COLD; + void sdmg2_map(address_map &map) ATTR_COLD; + void sdmg2_mux_map(address_map &map) ATTR_COLD; + void sdmg2p_map(address_map &map) ATTR_COLD; + void sdmg2p_mux_map(address_map &map) ATTR_COLD; + void slqz2_map(address_map &map) ATTR_COLD; + void slqz2_mux_map(address_map &map) ATTR_COLD; + void spkrform_io(address_map &map) ATTR_COLD; + void spkrform_mux_map(address_map &map) ATTR_COLD; + void starzan_io(address_map &map) ATTR_COLD; + void starzan_mux_map(address_map &map) ATTR_COLD; + void tarzan_io(address_map &map) ATTR_COLD; + void tarzan_mux_map(address_map &map) ATTR_COLD; + void tjsb_io(address_map &map) ATTR_COLD; + void tjsb_map(address_map &map) ATTR_COLD; + void tjsb_mux_map(address_map &map) ATTR_COLD; }; void igs017_state::machine_start() diff --git a/src/mame/igs/igs017_igs031.h b/src/mame/igs/igs017_igs031.h index 2083e1829a7..62395de3a1a 100644 --- a/src/mame/igs/igs017_igs031.h +++ b/src/mame/igs/igs017_igs031.h @@ -38,7 +38,7 @@ class igs017_igs031_device : private: u16 palette_callback_straight(u16 bgr) const; - void map(address_map &map); + void map(address_map &map) ATTR_COLD; void palram_w(offs_t offset, u8 data); u8 input_port_r(offs_t offset); @@ -76,9 +76,9 @@ class igs017_igs031_device : void tjsb_decrypt_sprites(); protected: - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; virtual space_config_vector memory_space_config() const override; diff --git a/src/mame/igs/igs022.h b/src/mame/igs/igs022.h index 5e6fed9d26a..6ce2c73928a 100644 --- a/src/mame/igs/igs022.h +++ b/src/mame/igs/igs022.h @@ -13,8 +13,8 @@ class igs022_device : public device_t void handle_command(); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: static constexpr u16 NUM_REGS = 0x300, STACK_SIZE = 0x100; diff --git a/src/mame/igs/igs025.h b/src/mame/igs/igs025.h index 6ea21f03388..59d8e19c078 100644 --- a/src/mame/igs/igs025.h +++ b/src/mame/igs/igs025.h @@ -28,8 +28,8 @@ class igs025_device : public device_t protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; igs025_execute_external m_execute_external; diff --git a/src/mame/igs/igs028.h b/src/mame/igs/igs028.h index de18faa4114..9b5a9c6addc 100644 --- a/src/mame/igs/igs028.h +++ b/src/mame/igs/igs028.h @@ -17,8 +17,8 @@ class igs028_device : public device_t void IGS028_handle(void); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; uint32_t olds_prot_addr(uint16_t addr); uint32_t olds_read_reg(uint16_t addr); diff --git a/src/mame/igs/igs_m027_link.cpp b/src/mame/igs/igs_m027_link.cpp index 1c51357b473..c21c69d399a 100644 --- a/src/mame/igs/igs_m027_link.cpp +++ b/src/mame/igs/igs_m027_link.cpp @@ -149,7 +149,7 @@ class host_state : public driver_device private: required_device m_maincpu; - void host_map(address_map &map); + void host_map(address_map &map) ATTR_COLD; }; class extension_state : public driver_device @@ -169,7 +169,7 @@ class extension_state : public driver_device void init_mgcs2l(); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -178,8 +178,8 @@ class extension_state : public driver_device TIMER_DEVICE_CALLBACK_MEMBER(interrupt); - void cjsll_map(address_map &map); - void mgcs2l_map(address_map &map); + void cjsll_map(address_map &map) ATTR_COLD; + void mgcs2l_map(address_map &map) ATTR_COLD; void decrypt(); }; diff --git a/src/mame/igs/igs_m027xa.cpp b/src/mame/igs/igs_m027xa.cpp index a9355bce575..9caa81548c4 100644 --- a/src/mame/igs/igs_m027xa.cpp +++ b/src/mame/igs/igs_m027xa.cpp @@ -65,9 +65,9 @@ class igs_m027xa_state : public driver_device void init_wldfruit(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -92,8 +92,8 @@ class igs_m027xa_state : public driver_device TIMER_DEVICE_CALLBACK_MEMBER(interrupt); void pgm_create_dummy_internal_arm_region(); - void main_map(address_map &map); - void main_xor_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void main_xor_map(address_map &map) ATTR_COLD; u32 external_rom_r(offs_t offset); diff --git a/src/mame/igs/igs_m036.cpp b/src/mame/igs/igs_m036.cpp index dcf9bd9fd1e..4ed74d8b9b1 100644 --- a/src/mame/igs/igs_m036.cpp +++ b/src/mame/igs/igs_m036.cpp @@ -95,7 +95,7 @@ class igs_m036_state : public driver_device void pgm_create_dummy_internal_arm_region(void); - void igs_m036_map(address_map &map); + void igs_m036_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/igs/igspoker.cpp b/src/mame/igs/igspoker.cpp index f522338ef10..a4150b72c44 100644 --- a/src/mame/igs/igspoker.cpp +++ b/src/mame/igs/igspoker.cpp @@ -130,8 +130,8 @@ class igspoker_state : public driver_device protected: virtual void machine_start() override { m_led.resolve(); m_lamps.resolve(); } - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: uint8_t irqack_r(); @@ -153,10 +153,10 @@ class igspoker_state : public driver_device uint32_t screen_update_cpokerpk(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); TIMER_DEVICE_CALLBACK_MEMBER(interrupt); - void cpokerpk_io_map(address_map &map); - void igspoker_io_map(address_map &map); - void igspoker_prg_map(address_map &map); - void number10_io_map(address_map &map); + void cpokerpk_io_map(address_map &map) ATTR_COLD; + void igspoker_io_map(address_map &map) ATTR_COLD; + void igspoker_prg_map(address_map &map) ATTR_COLD; + void number10_io_map(address_map &map) ATTR_COLD; required_device m_maincpu; optional_shared_ptr m_bg_tile_ram; diff --git a/src/mame/igs/iqblock.cpp b/src/mame/igs/iqblock.cpp index d130de28991..2caac503c33 100644 --- a/src/mame/igs/iqblock.cpp +++ b/src/mame/igs/iqblock.cpp @@ -83,7 +83,7 @@ class iqblock_state : public driver_device void init_iqblock(); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -112,8 +112,8 @@ class iqblock_state : public driver_device TILE_GET_INFO_MEMBER(get_fg_tile_info); uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void program_map(address_map &map); - void port_map(address_map &map); + void program_map(address_map &map) ATTR_COLD; + void port_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/igs/jackie.cpp b/src/mame/igs/jackie.cpp index a933fc00c7b..240d176b716 100644 --- a/src/mame/igs/jackie.cpp +++ b/src/mame/igs/jackie.cpp @@ -88,9 +88,9 @@ class jackie_state : public driver_device int hopper_r(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: void fg_tile_w(offs_t offset, uint8_t data); @@ -111,8 +111,8 @@ class jackie_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); TIMER_DEVICE_CALLBACK_MEMBER(irq); - void io_map(address_map &map); - void prg_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void prg_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_gfxdecode; diff --git a/src/mame/igs/lordgun.h b/src/mame/igs/lordgun.h index 7980d499454..10d58981632 100644 --- a/src/mame/igs/lordgun.h +++ b/src/mame/igs/lordgun.h @@ -94,20 +94,20 @@ class lordgun_state : public driver_device template TILE_GET_INFO_MEMBER(get_tile_info); - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void lorddgun_calc_gun_scr(int i); void lordgun_update_gun(int i); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); - void aliencha_map(address_map &map); - void aliencha_soundio_map(address_map &map); - void common_map(address_map &map); - void lordgun_map(address_map &map); - void lordgun_soundio_map(address_map &map); - void soundmem_map(address_map &map); - void ymf278_map(address_map &map); + void aliencha_map(address_map &map) ATTR_COLD; + void aliencha_soundio_map(address_map &map) ATTR_COLD; + void common_map(address_map &map) ATTR_COLD; + void lordgun_map(address_map &map) ATTR_COLD; + void lordgun_soundio_map(address_map &map) ATTR_COLD; + void soundmem_map(address_map &map) ATTR_COLD; + void ymf278_map(address_map &map) ATTR_COLD; }; /*----------- defined in video/lordgun.c -----------*/ diff --git a/src/mame/igs/pgm.h b/src/mame/igs/pgm.h index 8a445f3a115..b158d05ce45 100644 --- a/src/mame/igs/pgm.h +++ b/src/mame/igs/pgm.h @@ -53,8 +53,8 @@ class pgm_state : public driver_device void pgmbase(machine_config &config); protected: - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; /* memory pointers */ required_shared_ptr m_mainram; @@ -68,8 +68,8 @@ class pgm_state : public driver_device /* hack */ int m_irq4_disabled = 0; - void pgm_base_mem(address_map &map); - void pgm_mem(address_map &map); + void pgm_base_mem(address_map &map) ATTR_COLD; + void pgm_mem(address_map &map) ATTR_COLD; private: /* memory pointers */ @@ -139,9 +139,9 @@ class pgm_state : public driver_device void draw_sprite_new_basic(int wide, int high, int xpos, int ypos, int palt, int flip, bitmap_ind16 &bitmap, const rectangle &cliprect, bitmap_ind8 &priority_bitmap, int pri); void draw_sprites(bitmap_ind16& spritebitmap, const rectangle &cliprect, bitmap_ind8& priority_bitmap); void get_sprites(); - void pgm_basic_mem(address_map &map); - void pgm_z80_io(address_map &map); - void pgm_z80_mem(address_map &map); + void pgm_basic_mem(address_map &map) ATTR_COLD; + void pgm_z80_io(address_map &map) ATTR_COLD; + void pgm_z80_mem(address_map &map) ATTR_COLD; }; diff --git a/src/mame/igs/pgm2.h b/src/mame/igs/pgm2.h index 0e8ed984f08..b030f9e0eb9 100644 --- a/src/mame/igs/pgm2.h +++ b/src/mame/igs/pgm2.h @@ -50,31 +50,31 @@ class pgm2_state : public driver_device m_mainrom(*this, "mainrom") { } - void init_kov2nl(); - void init_orleg2(); - void init_ddpdojt(); - void init_kov3(); - void init_kov3_104(); - void init_kov3_102(); - void init_kov3_101(); - void init_kov3_100(); - void init_kof98umh(); - void init_bubucar(); - - void pgm2_ramrom(machine_config &config); - void pgm2_lores(machine_config &config); - void pgm2(machine_config &config); - void pgm2_hires(machine_config &config); - void pgm2_map(address_map &map); - void pgm2_module_rom_map(address_map &map); - void pgm2_ram_rom_map(address_map &map); - void pgm2_rom_map(address_map &map); + void init_kov2nl() ATTR_COLD; + void init_orleg2() ATTR_COLD; + void init_ddpdojt() ATTR_COLD; + void init_kov3() ATTR_COLD; + void init_kov3_104() ATTR_COLD; + void init_kov3_102() ATTR_COLD; + void init_kov3_101() ATTR_COLD; + void init_kov3_100() ATTR_COLD; + void init_kof98umh() ATTR_COLD; + void init_bubucar() ATTR_COLD; + + void pgm2_ramrom(machine_config &config) ATTR_COLD; + void pgm2_lores(machine_config &config) ATTR_COLD; + void pgm2(machine_config &config) ATTR_COLD; + void pgm2_hires(machine_config &config) ATTR_COLD; + void pgm2_map(address_map &map) ATTR_COLD; + void pgm2_module_rom_map(address_map &map) ATTR_COLD; + void pgm2_ram_rom_map(address_map &map) ATTR_COLD; + void pgm2_rom_map(address_map &map) ATTR_COLD; protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; - virtual void device_post_load() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; + virtual void device_post_load() override ATTR_COLD; private: struct kov3_module_key diff --git a/src/mame/igs/pgm2_memcard.h b/src/mame/igs/pgm2_memcard.h index 1b9525b82aa..7a627f4df92 100644 --- a/src/mame/igs/pgm2_memcard.h +++ b/src/mame/igs/pgm2_memcard.h @@ -49,7 +49,7 @@ class pgm2_memcard_device : public device_t, private: // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; u8 m_memcard_data[0x100]; u8 m_protection_data[4]; diff --git a/src/mame/igs/pgm3.cpp b/src/mame/igs/pgm3.cpp index 7653cbbcb3c..2e1a9a5b4bb 100644 --- a/src/mame/igs/pgm3.cpp +++ b/src/mame/igs/pgm3.cpp @@ -67,13 +67,13 @@ class pgm3_state : public driver_device private: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; uint32_t screen_update_pgm3(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void screen_vblank_pgm3(int state); required_device m_maincpu; - void pgm3_map(address_map &map); + void pgm3_map(address_map &map) ATTR_COLD; }; void pgm3_state::pgm3_map(address_map &map) diff --git a/src/mame/igs/pgmcrypt.cpp b/src/mame/igs/pgmcrypt.cpp index bf753b1b820..d243259bd32 100644 --- a/src/mame/igs/pgmcrypt.cpp +++ b/src/mame/igs/pgmcrypt.cpp @@ -30,19 +30,19 @@ #define IGS27_CRYPT1_ALT \ if ((i & 0x040080) != 0x000080) x ^= 0x0001; #define IGS27_CRYPT1_ALT2 \ - if ((i & 0x0480) != 0x0080) x ^= 0x0001; + if ((i & 0x000480) != 0x000080) x ^= 0x0001; #define IGS27_CRYPT2 \ if ((i & 0x104008) == 0x104008) x ^= 0x0002; #define IGS27_CRYPT2_ALT \ if ((i & 0x004008) == 0x004008) x ^= 0x0002; #define IGS27_CRYPT2_ALT2 \ - if((i & 0x004008) == 0x004008 && (i & 0x180000) != 0x000000) x ^= 0x0002; + if ((i & 0x004008) == 0x004008 && (i & 0x180000) != 0x000000) x ^= 0x0002; #define IGS27_CRYPT2_ALT3 \ - if((i & 0x84008) == 0x84008) x ^= 0x0002; + if ((i & 0x084008) == 0x084008) x ^= 0x0002; #define IGS27_CRYPT3 \ if ((i & 0x080030) == 0x080010) x ^= 0x0004; #define IGS27_CRYPT3_ALT \ - if((i & 0x000030) == 0x000010 && (i & 0x180000) != 0x080000) x ^= 0x0004; + if ((i & 0x000030) == 0x000010 && (i & 0x180000) != 0x080000) x ^= 0x0004; #define IGS27_CRYPT3_ALT2 \ if ((i & 0x000030) == 0x000010) x ^= 0x0004; // ket - due to address starting at 0 and not 100000/2! @@ -55,7 +55,7 @@ #define IGS27_CRYPT5 \ if ((i & 0x008100) == 0x008000) x ^= 0x0010; #define IGS27_CRYPT5_ALT \ - if ((i & 0x48100) == 0x48000) x ^= 0x0010; + if ((i & 0x048100) == 0x048000) x ^= 0x0010; #define IGS27_CRYPT6 \ if ((i & 0x002004) != 0x000004) x ^= 0x0020; #define IGS27_CRYPT6_ALT \ @@ -63,7 +63,7 @@ #define IGS27_CRYPT7 \ if ((i & 0x011800) != 0x010000) x ^= 0x0040; #define IGS27_CRYPT7_ALT \ - if ((i & 0x01800) != 0x00000) x ^= 0x0040; + if ((i & 0x001800) != 0x000000) x ^= 0x0040; #define IGS27_CRYPT8 \ if ((i & 0x004820) == 0x004820) x ^= 0x0080; #define IGS27_CRYPT8_ALT \ diff --git a/src/mame/igs/pgmprot_igs025_igs012.h b/src/mame/igs/pgmprot_igs025_igs012.h index bbc5c9799c9..b98dc0ae436 100644 --- a/src/mame/igs/pgmprot_igs025_igs012.h +++ b/src/mame/igs/pgmprot_igs025_igs012.h @@ -24,5 +24,5 @@ class pgm_012_025_state : public pgm_state required_device m_igs025; void pgm_drgw2_decrypt(); - void drgw2_mem(address_map &map); + void drgw2_mem(address_map &map) ATTR_COLD; }; diff --git a/src/mame/igs/pgmprot_igs025_igs022.h b/src/mame/igs/pgmprot_igs025_igs022.h index 4a21a38a46b..3a1bedac6de 100644 --- a/src/mame/igs/pgmprot_igs025_igs022.h +++ b/src/mame/igs/pgmprot_igs025_igs022.h @@ -26,7 +26,7 @@ class pgm_022_025_state : public pgm_state void pgm_022_025(machine_config &config); void pgm_022_025_dw3(machine_config &config); void pgm_022_025_killbld(machine_config &config); - void killbld_mem(address_map &map); + void killbld_mem(address_map &map) ATTR_COLD; }; INPUT_PORTS_EXTERN( killbld ); diff --git a/src/mame/igs/pgmprot_igs025_igs028.h b/src/mame/igs/pgmprot_igs025_igs028.h index 6219ce12a0d..718c350c27c 100644 --- a/src/mame/igs/pgmprot_igs025_igs028.h +++ b/src/mame/igs/pgmprot_igs025_igs028.h @@ -18,7 +18,7 @@ class pgm_028_025_state : public pgm_state void pgm_028_025_ol(machine_config &config); protected: - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; private: required_shared_ptr m_sharedprotram; @@ -27,7 +27,7 @@ class pgm_028_025_state : public pgm_state void igs025_to_igs028_callback( void ); - void olds_mem(address_map &map); + void olds_mem(address_map &map) ATTR_COLD; }; INPUT_PORTS_EXTERN( olds ); diff --git a/src/mame/igs/pgmprot_igs027a_type1.h b/src/mame/igs/pgmprot_igs027a_type1.h index 85b86aa4bc1..bbfb98e0825 100644 --- a/src/mame/igs/pgmprot_igs027a_type1.h +++ b/src/mame/igs/pgmprot_igs027a_type1.h @@ -36,7 +36,7 @@ class pgm_arm_type1_state : public pgm_state void pgm_arm_type1(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: /////////////// simulations @@ -136,10 +136,10 @@ class pgm_arm_type1_state : public pgm_state int puzzli2_take_leveldata_value(u8 datvalue); - void _55857E_arm7_map(address_map &map); - void cavepgm_mem(address_map &map); - void kov_map(address_map &map); - void kov_sim_map(address_map &map); + void _55857E_arm7_map(address_map &map) ATTR_COLD; + void cavepgm_mem(address_map &map) ATTR_COLD; + void kov_map(address_map &map) ATTR_COLD; + void kov_sim_map(address_map &map) ATTR_COLD; }; INPUT_PORTS_EXTERN( sango ); diff --git a/src/mame/igs/pgmprot_igs027a_type2.h b/src/mame/igs/pgmprot_igs027a_type2.h index 2e9c69338a4..edca4277bc2 100644 --- a/src/mame/igs/pgmprot_igs027a_type2.h +++ b/src/mame/igs/pgmprot_igs027a_type2.h @@ -53,8 +53,8 @@ class pgm_arm_type2_state : public pgm_state void kov2p_arm_region_w(offs_t offset, u32 data, u32 mem_mask = ~0); u32 ddp2_speedup_r(address_space &space); u16 ddp2_main_speedup_r(); - void _55857F_arm7_map(address_map &map); - void kov2_mem(address_map &map); + void _55857F_arm7_map(address_map &map) ATTR_COLD; + void kov2_mem(address_map &map) ATTR_COLD; }; /* simulations (or missing) */ diff --git a/src/mame/igs/pgmprot_igs027a_type3.h b/src/mame/igs/pgmprot_igs027a_type3.h index 90e3fbe4269..1cb51363e7a 100644 --- a/src/mame/igs/pgmprot_igs027a_type3.h +++ b/src/mame/igs/pgmprot_igs027a_type3.h @@ -25,7 +25,7 @@ class pgm_arm_type3_state : public pgm_state void pgm_arm_type3_33_8688m(machine_config &config); protected: - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; private: // svg @@ -66,8 +66,8 @@ class pgm_arm_type3_state : public pgm_state u32 happy6_speedup_r(); u32 svg_speedup_r(); u32 svgpcb_speedup_r(); - void _55857G_arm7_map(address_map &map); - void svg_68k_mem(address_map &map); + void _55857G_arm7_map(address_map &map) ATTR_COLD; + void svg_68k_mem(address_map &map) ATTR_COLD; }; INPUT_PORTS_EXTERN(theglad); diff --git a/src/mame/igs/spoker.cpp b/src/mame/igs/spoker.cpp index a3af2c58cd3..c462559bde6 100644 --- a/src/mame/igs/spoker.cpp +++ b/src/mame/igs/spoker.cpp @@ -76,9 +76,9 @@ class spoker_state : public driver_device int hopper_r(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; required_device m_maincpu; required_device m_gfxdecode; @@ -120,9 +120,9 @@ class spoker_state : public driver_device TILE_GET_INFO_MEMBER(get_fg_tile_info); uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void _3super8_portmap(address_map &map); - void program_map(address_map &map); - void spoker_portmap(address_map &map); + void _3super8_portmap(address_map &map) ATTR_COLD; + void program_map(address_map &map) ATTR_COLD; + void spoker_portmap(address_map &map) ATTR_COLD; }; class spokeru_state : public spoker_state @@ -135,15 +135,15 @@ class spokeru_state : public spoker_state void init_spokeru(); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; - void portmap(address_map &map); + void portmap(address_map &map) ATTR_COLD; void coins_w(uint8_t data); void nmi_video_leds_w(uint8_t data); private: - void program_map(address_map &map); + void program_map(address_map &map) ATTR_COLD; }; class jinhulu2_state : public spokeru_state @@ -160,7 +160,7 @@ class jinhulu2_state : public spokeru_state private: void nmi_w(uint8_t data); - void portmap(address_map &map); + void portmap(address_map &map) ATTR_COLD; }; class jb_state : public spokeru_state @@ -175,7 +175,7 @@ class jb_state : public spokeru_state void jb(machine_config &config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: required_shared_ptr_array m_reel_ram; @@ -187,7 +187,7 @@ class jb_state : public spokeru_state template void reel_ram_w(offs_t offset, uint8_t data); uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void portmap(address_map &map); + void portmap(address_map &map) ATTR_COLD; }; @@ -1657,6 +1657,6 @@ GAME( 1993?, spk115it, spk306us, spoker, spoker, spoker_state, init_spk1 GAME( 1993?, spk114it, spk306us, spoker, spk114it, spoker_state, init_spk114it, ROT0, "IGS", "Super Poker (v114IT)", MACHINE_SUPPORTS_SAVE ) GAME( 1996, spk102ua, spk306us, spokeru, spoker, spokeru_state, init_spokeru, ROT0, "IGS", "Super Poker (v102UA)", MACHINE_SUPPORTS_SAVE ) GAME( 1996, spk100, spk306us, spoker, spk114it, spoker_state, init_spk100, ROT0, "IGS", "Super Poker (v100)", MACHINE_SUPPORTS_SAVE ) -GAME( 1993?, 3super8, 0, _3super8, 3super8, spoker_state, init_3super8, ROT0, "", "3 Super 8 (Italy)", MACHINE_NOT_WORKING | MACHINE_IMPERFECT_GRAPHICS | MACHINE_IMPERFECT_SOUND | MACHINE_SUPPORTS_SAVE ) //roms are badly dumped +GAME( 1993?, 3super8, 0, _3super8, 3super8, spoker_state, init_3super8, ROT0, "", "3 Super 8 (Italy)", MACHINE_NOT_WORKING | MACHINE_IMPERFECT_GRAPHICS | MACHINE_IMPERFECT_SOUND | MACHINE_SUPPORTS_SAVE ) // ROMs are badly dumped GAME( 1997, jbell, 0, jb, jb, jb_state, init_spokeru, ROT0, "IGS", "Jingle Bell (v200US)", MACHINE_SUPPORTS_SAVE ) -GAME( 1995, jinhulu2, 0, jinhulu2, spoker, jinhulu2_state, init_jinhulu2, ROT0, "IGS", "Jin Hu Lu 2 (v412GS)", MACHINE_NOT_WORKING | MACHINE_SUPPORTS_SAVE ) // needs decryption +GAME( 1995, jinhulu2, 0, jinhulu2, spoker, jinhulu2_state, init_jinhulu2, ROT0, "IGS", "Jin Hu Lu 2 (v412GS)", MACHINE_NOT_WORKING | MACHINE_SUPPORTS_SAVE ) // tries to link to something? diff --git a/src/mame/igt/drw80pkr.cpp b/src/mame/igt/drw80pkr.cpp index caed66a073c..08c3e347e4e 100644 --- a/src/mame/igt/drw80pkr.cpp +++ b/src/mame/igt/drw80pkr.cpp @@ -57,8 +57,8 @@ class drw80pkr_state : public driver_device void drw80pkr(machine_config &config); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: tilemap_t *m_bg_tilemap; @@ -96,8 +96,8 @@ class drw80pkr_state : public driver_device void drw80pkr_palette(palette_device &palette) const; uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void io_map(address_map &map); - void map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/igt/gkigt.cpp b/src/mame/igt/gkigt.cpp index 66f490995dd..5fc496cdd09 100644 --- a/src/mame/igt/gkigt.cpp +++ b/src/mame/igt/gkigt.cpp @@ -3,11 +3,13 @@ /* TODO: -- hookup QUART devices, and fix "QUART COUNTER NOT RUNNING" error message; -- interrupt system; +- complete QUART devices, and fix "QUART COUNTER NOT RUNNING" error message; +\- ms3/ms72c can't possibly use SC28C94, that's a '98 chip. Do they map earlier variants? +- interrupt system, wants IAC mode from i960; +\- ms3/ms72c/bmoonii acks irq0 from quart2 CIR block only; - understand what's "netflex" device; -- ms72c has extra checks? - CMOS never get properly initialized? +- Eventually uses a touchscreen; Game King board types: @@ -108,135 +110,76 @@ class igt_gameking_state : public driver_device { public: igt_gameking_state(const machine_config &mconfig, device_type type, const char *tag) - : driver_device(mconfig, type, tag), - m_maincpu(*this, "maincpu"), - m_palette(*this, "palette"), - m_screen(*this, "screen"), - m_vram(*this, "vram"), - m_quart1(*this, "quart1") + : driver_device(mconfig, type, tag) + , m_maincpu(*this, "maincpu") + , m_palette(*this, "palette") + , m_screen(*this, "screen") + , m_vram(*this, "vram") + , m_quart(*this, "quart%u", 1U) { } void igt_gameking(machine_config &config); void igt_ms72c(machine_config &config); private: - virtual void video_start() override; - uint32_t screen_update_igt_gameking(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); + virtual void video_start() override ATTR_COLD; + uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; - uint32_t igt_gk_28010008_r() - { - return machine().rand(); // don't quite understand this one - }; - - uint32_t uart_status_r(); - void uart_w(uint32_t data); - void irq_enable_w(uint8_t data); - void irq_ack_w(uint8_t data); - uint8_t irq_vector_r(); - void unk_w(uint8_t data); - uint8_t frame_number_r(); - void vblank_irq(int state); - - uint8_t timer_r(); uint16_t version_r(); - void igt_gameking_map(address_map &map); - void igt_ms72c_map(address_map &map); - void ramdac_map(address_map &map); + void igt_gameking_map(address_map &map) ATTR_COLD; + void igt_ms72c_map(address_map &map) ATTR_COLD; + void ramdac_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_palette; required_device m_screen; required_shared_ptr m_vram; - required_device m_quart1; - - uint8_t m_irq_enable = 0; - uint8_t m_irq_pend = 0; - uint8_t m_timer_count = 0; + required_device_array m_quart; }; void igt_gameking_state::video_start() { } -uint32_t igt_gameking_state::screen_update_igt_gameking(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect) +uint32_t igt_gameking_state::screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect) { bitmap.fill(m_palette->black_pen(), cliprect); - for(int y = 0; y < 480; y++) + for(int y = cliprect.min_y; y <= cliprect.max_y; y++) { - for(int x = 0; x < 640; x+=4) + for(int x = cliprect.min_x; x <= cliprect.max_x; x+=4) { - for(int xi=0;xi<4;xi++) - { - uint32_t const color = (m_vram[(x+y*1024)/4] >> (xi*8)) & 0xff; - - if(cliprect.contains(x+xi, y)) - bitmap.pix(y, x+xi) = m_palette->pen(color); + const u32 gfx_data = m_vram[(x + y * 1024) / 4]; + for(int xi = 0; xi < 4; xi++) + { + uint32_t const color = (gfx_data >> (xi*8)) & 0xff; + bitmap.pix(y, x+xi) = m_palette->pen(color); } } } + // TODO: tilemap at $18100000 return 0; } - -uint32_t igt_gameking_state::uart_status_r() -{ - return 0x00040004; -} - -void igt_gameking_state::uart_w(uint32_t data) -{ - printf("%c", (data>>16) & 0x7f); -} - -void igt_gameking_state::irq_enable_w(uint8_t data) -{ - m_irq_enable = data; -} - -void igt_gameking_state::irq_ack_w(uint8_t data) -{ - //logerror("%02x\n",data); - m_maincpu->set_input_line(I960_IRQ0,CLEAR_LINE); - m_irq_pend = 0; -} - -uint8_t igt_gameking_state::irq_vector_r() -{ - return m_irq_pend; -} - -uint8_t igt_gameking_state::frame_number_r() -{ - // TODO: likely not right, checked in irq 0 - return 0;//m_screen->frame_number() & 7; -} - -void igt_gameking_state::unk_w(uint8_t data) -{ - // bit 7 toggled, unknown purpose -} - - void igt_gameking_state::igt_gameking_map(address_map &map) { map(0x00000000, 0x0007ffff).flags(i960_cpu_device::BURST).rom().region("maincpu", 0); map(0x08000000, 0x081fffff).flags(i960_cpu_device::BURST).rom().region("game", 0); map(0x08200000, 0x083fffff).flags(i960_cpu_device::BURST).rom().region("plx", 0); - // it's unclear how much of this is saved and how much total RAM there is. map(0x10000000, 0x1001ffff).flags(i960_cpu_device::BURST).ram().share("nvram"); map(0x10020000, 0x17ffffff).flags(i960_cpu_device::BURST).ram(); map(0x18000000, 0x181fffff).flags(i960_cpu_device::BURST).ram().share("vram"); // igtsc writes from 18000000 to 1817ffff, ms3 all the way to 181fffff. +// map(0x18200000, 0x18200003) video related? // 28000000: MEZ2 SEL, also connected to ymz chip select? // 28010000: first 28C94 QUART (QRT1 SEL) @@ -246,27 +189,12 @@ void igt_gameking_state::igt_gameking_map(address_map &map) // 28050000: SOUND SEL // 28060000: COLOR SEL // 28070000: OUT SEL -// map(0x28010000, 0x2801007f).rw("quart1", FUNC(sc28c94_device::read), FUNC(sc28c94_device::write)).umask32(0x00ff00ff); - map(0x28010008, 0x2801000b).r(FUNC(igt_gameking_state::uart_status_r)); - map(0x2801001c, 0x2801001f).nopw(); - map(0x28010030, 0x28010033).r(FUNC(igt_gameking_state::uart_status_r)); // channel D - map(0x28010034, 0x28010037).w(FUNC(igt_gameking_state::uart_w)); // channel D + map(0x28010000, 0x2801007f).rw(m_quart[0], FUNC(sc28c94_device::read), FUNC(sc28c94_device::write)).umask32(0x00ff00ff); map(0x28020000, 0x280205ff).flags(i960_cpu_device::BURST).ram(); // CMOS? -// map(0x28020000, 0x2802007f).r(FUNC(igt_gameking_state::igt_gk_28010008_r)).nopw(); - map(0x28030000, 0x28030003).portr("IN0"); -// map(0x28040000, 0x2804007f).rw("quart2", FUNC(sc28c94_device::read), FUNC(sc28c94_device::write)).umask32(0x00ff00ff); - map(0x2804000a, 0x2804000a).w(FUNC(igt_gameking_state::unk_w)); - map(0x28040008, 0x28040008).rw(FUNC(igt_gameking_state::irq_vector_r), FUNC(igt_gameking_state::irq_enable_w)); - map(0x28040018, 0x2804001b).portr("IN1").nopw(); - map(0x2804001c, 0x2804001f).portr("IN4").nopw(); - map(0x28040028, 0x2804002b).nopr(); - map(0x2804002a, 0x2804002a).w(FUNC(igt_gameking_state::irq_ack_w)); -// map(0x28040038, 0x2804003b).r(FUNC(igt_gameking_state::timer_r)).umask32(0x00ff0000); + map(0x28030000, 0x28030003).nopr(); + map(0x28040000, 0x2804007f).rw(m_quart[1], FUNC(sc28c94_device::read), FUNC(sc28c94_device::write)).umask32(0x00ff00ff); + // TODO: this overlay should come from the QUART device map(0x28040038, 0x2804003b).portr("IN2").nopw(); - map(0x2804003c, 0x2804003f).portr("IN3").nopw(); - map(0x28040050, 0x28040050).r(FUNC(igt_gameking_state::frame_number_r)); - map(0x28040054, 0x28040057).nopw(); -// map(0x28040054, 0x28040057).w(FUNC(igt_gameking_state::irq_ack_w).umask32(0x000000ff); map(0x28050000, 0x28050003).rw("ymz", FUNC(ymz280b_device::read), FUNC(ymz280b_device::write)).umask32(0x00ff00ff); map(0x28060000, 0x28060000).w("ramdac", FUNC(ramdac_device::index_w)); @@ -278,77 +206,20 @@ void igt_gameking_state::igt_gameking_map(address_map &map) map(0xa1000000, 0xa1011fff).flags(i960_cpu_device::BURST).ram(); // used by gkkey for restart IAC } +// TODO: unknown value required, checked at "Cold powerup machine setup" +// comes from Xilinx? uint16_t igt_gameking_state::version_r() { - // TODO: unknown value required, checked at "Cold powerup machine setup" return 0xf777; } -uint8_t igt_gameking_state::timer_r() -{ - // TODO: ms72c 8011ab0 "init_io" check, gets printed as "New security latch value = %x" - return m_timer_count++; -} - void igt_gameking_state::igt_ms72c_map(address_map &map) { igt_gameking_map(map); map(0x18200000, 0x18200001).r(FUNC(igt_gameking_state::version_r)); - map(0x2804003a, 0x2804003a).r(FUNC(igt_gameking_state::timer_r)); } static INPUT_PORTS_START( igt_gameking ) - PORT_START("IN0") - PORT_DIPNAME( 0x01, 0x01, "IN0" ) - PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) - PORT_DIPSETTING( 0x00, DEF_STR( On ) ) - PORT_DIPNAME( 0x02, 0x02, DEF_STR( Unknown ) ) - PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) - PORT_DIPSETTING( 0x00, DEF_STR( On ) ) - PORT_DIPNAME( 0x04, 0x04, DEF_STR( Unknown ) ) - PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) - PORT_DIPSETTING( 0x00, DEF_STR( On ) ) - PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unknown ) ) - PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) - PORT_DIPSETTING( 0x00, DEF_STR( On ) ) - PORT_DIPNAME( 0x10, 0x10, DEF_STR( Unknown ) ) - PORT_DIPSETTING( 0x10, DEF_STR( Off ) ) - PORT_DIPSETTING( 0x00, DEF_STR( On ) ) - PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unknown ) ) - PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) - PORT_DIPSETTING( 0x00, DEF_STR( On ) ) - PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unknown ) ) - PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) - PORT_DIPSETTING( 0x00, DEF_STR( On ) ) - PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) ) - PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) - PORT_DIPSETTING( 0x00, DEF_STR( On ) ) - PORT_DIPNAME( 0x010000, 0x010000, "IN0-1" ) - PORT_DIPSETTING( 0x010000, DEF_STR( Off ) ) - PORT_DIPSETTING( 0x000000, DEF_STR( On ) ) - PORT_DIPNAME( 0x020000, 0x020000, DEF_STR( Unknown ) ) - PORT_DIPSETTING( 0x020000, DEF_STR( Off ) ) - PORT_DIPSETTING( 0x000000, DEF_STR( On ) ) - PORT_DIPNAME( 0x040000, 0x040000, DEF_STR( Unknown ) ) - PORT_DIPSETTING( 0x040000, DEF_STR( Off ) ) - PORT_DIPSETTING( 0x000000, DEF_STR( On ) ) - PORT_DIPNAME( 0x080000, 0x080000, DEF_STR( Unknown ) ) - PORT_DIPSETTING( 0x080000, DEF_STR( Off ) ) - PORT_DIPSETTING( 0x000000, DEF_STR( On ) ) - PORT_DIPNAME( 0x100000, 0x100000, DEF_STR( Unknown ) ) - PORT_DIPSETTING( 0x100000, DEF_STR( Off ) ) - PORT_DIPSETTING( 0x000000, DEF_STR( On ) ) - PORT_DIPNAME( 0x200000, 0x200000, DEF_STR( Unknown ) ) - PORT_DIPSETTING( 0x200000, DEF_STR( Off ) ) - PORT_DIPSETTING( 0x000000, DEF_STR( On ) ) - PORT_DIPNAME( 0x400000, 0x400000, DEF_STR( Unknown ) ) - PORT_DIPSETTING( 0x400000, DEF_STR( Off ) ) - PORT_DIPSETTING( 0x000000, DEF_STR( On ) ) - PORT_DIPNAME( 0x800000, 0x800000, DEF_STR( Unknown ) ) - PORT_DIPSETTING( 0x800000, DEF_STR( Off ) ) - PORT_DIPSETTING( 0x000000, DEF_STR( On ) ) - PORT_BIT( 0xff00ff00, IP_ACTIVE_LOW, IPT_UNKNOWN ) - PORT_START("IN1") PORT_DIPNAME( 0x01, 0x01, "IN1" ) PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) @@ -425,24 +296,20 @@ static INPUT_PORTS_START( igt_gameking ) PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) ) PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) PORT_DIPSETTING( 0x00, DEF_STR( On ) ) - PORT_DIPNAME( 0x010000, 0x010000, "Door M" ) // Door M + PORT_DIPNAME( 0x010000, 0x000000, "Door M" ) // Door M PORT_DIPSETTING( 0x010000, DEF_STR( Off ) ) PORT_DIPSETTING( 0x000000, DEF_STR( On ) ) - PORT_DIPNAME( 0x020000, 0x020000, "Door C" ) // Door C + PORT_DIPNAME( 0x020000, 0x000000, "Door C" ) // Door C PORT_DIPSETTING( 0x020000, DEF_STR( Off ) ) PORT_DIPSETTING( 0x000000, DEF_STR( On ) ) - PORT_DIPNAME( 0x040000, 0x040000, "Door B" ) // Door B + PORT_DIPNAME( 0x040000, 0x000000, "Door B" ) // Door B PORT_DIPSETTING( 0x040000, DEF_STR( Off ) ) PORT_DIPSETTING( 0x000000, DEF_STR( On ) ) PORT_DIPNAME( 0x080000, 0x080000, DEF_STR( Unknown ) ) PORT_DIPSETTING( 0x080000, DEF_STR( Off ) ) PORT_DIPSETTING( 0x000000, DEF_STR( On ) ) - PORT_DIPNAME( 0x100000, 0x100000, "Attendant key" ) // key switch - PORT_DIPSETTING( 0x100000, DEF_STR( Off ) ) - PORT_DIPSETTING( 0x000000, DEF_STR( On ) ) - PORT_DIPNAME( 0x200000, 0x200000, "test switch" ) // test switch - PORT_DIPSETTING( 0x200000, DEF_STR( Off ) ) - PORT_DIPSETTING( 0x000000, DEF_STR( On ) ) + PORT_BIT( 0x100000, IP_ACTIVE_LOW, IPT_SERVICE1 ) PORT_NAME("Attendant key") + PORT_BIT( 0x200000, IP_ACTIVE_LOW, IPT_SERVICE ) // Test switch PORT_DIPNAME( 0x400000, 0x400000, DEF_STR( Unknown ) ) PORT_DIPSETTING( 0x400000, DEF_STR( Off ) ) PORT_DIPSETTING( 0x000000, DEF_STR( On ) ) @@ -555,20 +422,20 @@ static INPUT_PORTS_START( igt_gameking ) INPUT_PORTS_END +// TODO: wrong decoding static const gfx_layout igt_gameking_layout = { 16,8, RGN_FRAC(1,1), 4, - { 0,1,2,3 }, - { 0*4,1*4,2*4,3*4,4*4,5*4,6*4,7*4,8*4,9*4,10*4,11*4,12*4,13*4,14*4,15*4 }, - { 0*64, 1*64, 2*64, 3*64, 4*64, 5*64, 6*64, 7*64 }, - 8*64 + { STEP4(0, 1) }, + { STEP16(0, 4) }, + { STEP8(0, 4*16) }, + 16*8*4 }; - static GFXDECODE_START( gfx_igt_gameking ) - GFXDECODE_ENTRY( "cg", 0, igt_gameking_layout, 0x0, 1 ) + GFXDECODE_ENTRY( "cg", 0, igt_gameking_layout, 0x0, 16 ) GFXDECODE_END void igt_gameking_state::ramdac_map(address_map &map) @@ -582,18 +449,7 @@ void igt_gameking_state::machine_start() void igt_gameking_state::machine_reset() { - m_timer_count = 0; - m_quart1->ip2_w(1); // needs to be high -} - -void igt_gameking_state::vblank_irq(int state) -{ - if (state && BIT(m_irq_enable, 3)) - { - m_maincpu->set_input_line(I960_IRQ0, ASSERT_LINE); - //machine().debug_break(); - m_irq_pend = 8; - } + m_quart[0]->ip2_w(1); // needs to be high } static DEVICE_INPUT_DEFAULTS_START( terminal ) @@ -610,33 +466,33 @@ void igt_gameking_state::igt_gameking(machine_config &config) I960(config, m_maincpu, XTAL(24'000'000)); m_maincpu->set_addrmap(AS_PROGRAM, &igt_gameking_state::igt_gameking_map); - SC28C94(config, m_quart1, XTAL(24'000'000) / 6); - m_quart1->d_tx_cb().set("diag", FUNC(rs232_port_device::write_txd)); - - sc28c94_device &quart2(SC28C94(config, "quart2", XTAL(24'000'000) / 6)); - quart2.irq_cb().set_inputline(m_maincpu, I960_IRQ0); - - rs232_port_device &diag(RS232_PORT(config, "diag", default_rs232_devices, nullptr)); - diag.rxd_handler().set("quart1", FUNC(sc28c94_device::rx_d_w)); - diag.set_option_device_input_defaults("terminal", DEVICE_INPUT_DEFAULTS_NAME(terminal)); - - GFXDECODE(config, "gfxdecode", m_palette, gfx_igt_gameking); - SCREEN(config, m_screen, SCREEN_TYPE_RASTER); m_screen->set_refresh_hz(60); m_screen->set_vblank_time(ATTOSECONDS_IN_USEC(0)); m_screen->set_size(1024, 512); m_screen->set_visarea(0, 640-1, 0, 480-1); - m_screen->set_screen_update(FUNC(igt_gameking_state::screen_update_igt_gameking)); + m_screen->set_screen_update(FUNC(igt_gameking_state::screen_update)); m_screen->set_palette(m_palette); - m_screen->screen_vblank().set(FUNC(igt_gameking_state::vblank_irq)); +// m_screen->screen_vblank().set_inputline(m_maincpu, I960_IRQ2); // Xilinx used as video chip XTAL(26'666'666) on board + SC28C94(config, m_quart[0], XTAL(24'000'000) / 6); + m_quart[0]->d_tx_cb().set("diag", FUNC(rs232_port_device::write_txd)); + + SC28C94(config, m_quart[1], XTAL(24'000'000) / 6); + m_quart[1]->irq_cb().set_inputline(m_maincpu, I960_IRQ0); + + rs232_port_device &diag(RS232_PORT(config, "diag", default_rs232_devices, "terminal")); + diag.rxd_handler().set(m_quart[0], FUNC(sc28c94_device::rx_d_w)); + diag.set_option_device_input_defaults("terminal", DEVICE_INPUT_DEFAULTS_NAME(terminal)); + PALETTE(config, m_palette).set_entries(0x100); ramdac_device &ramdac(RAMDAC(config, "ramdac", 0, m_palette)); ramdac.set_addrmap(0, &igt_gameking_state::ramdac_map); + GFXDECODE(config, "gfxdecode", m_palette, gfx_igt_gameking); + /* sound hardware */ SPEAKER(config, "mono").front_center(); @@ -649,6 +505,10 @@ void igt_gameking_state::igt_ms72c(machine_config &config) { igt_gameking(config); m_maincpu->set_addrmap(AS_PROGRAM, &igt_gameking_state::igt_ms72c_map); + + // TODO: pinpoint enable/acknowledge + // clears $280201fc from there +// m_screen->screen_vblank().set_inputline(m_maincpu, I960_IRQ2); } ROM_START( ms3 ) diff --git a/src/mame/igt/peplus.cpp b/src/mame/igt/peplus.cpp index 94dd46d68c5..293f5bfbcde 100644 --- a/src/mame/igt/peplus.cpp +++ b/src/mame/igt/peplus.cpp @@ -269,8 +269,8 @@ class peplus_state : public driver_device template ioport_value input_r(); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -357,8 +357,8 @@ class peplus_state : public driver_device void peplus_palette(palette_device &palette) const; void handle_lightpen(); - void main_iomap(address_map &map); - void main_map(address_map &map); + void main_iomap(address_map &map) ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; }; static const uint8_t id_022[8] = { 0x00, 0x01, 0x04, 0x09, 0x13, 0x16, 0x18, 0x00 }; diff --git a/src/mame/igt/splus.cpp b/src/mame/igt/splus.cpp index 562e0333eb1..48bc8959859 100644 --- a/src/mame/igt/splus.cpp +++ b/src/mame/igt/splus.cpp @@ -93,8 +93,8 @@ class splus_state : public driver_device void i2c_nvram_w(uint8_t data); uint8_t splus_reel_optics_r(); - void splus_iomap(address_map &map); - void splus_map(address_map &map); + void splus_iomap(address_map &map) ATTR_COLD; + void splus_map(address_map &map) ATTR_COLD; // EEPROM States int m_sda_dir; diff --git a/src/mame/igt/videopkr.cpp b/src/mame/igt/videopkr.cpp index d0e7a0d32f4..7f94ee53103 100644 --- a/src/mame/igt/videopkr.cpp +++ b/src/mame/igt/videopkr.cpp @@ -325,8 +325,8 @@ class videopkr_state : public driver_device void fortune1(machine_config &config); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; //private: uint8_t videopkr_io_r(offs_t offset); @@ -349,10 +349,10 @@ class videopkr_state : public driver_device TIMER_DEVICE_CALLBACK_MEMBER(sound_t1_callback); void count_7dig(unsigned long data, uint8_t index); - void i8039_io_port(address_map &map); - void i8039_map(address_map &map); - void i8039_sound_mem(address_map &map); - void i8039_sound_port(address_map &map); + void i8039_io_port(address_map &map) ATTR_COLD; + void i8039_map(address_map &map) ATTR_COLD; + void i8039_sound_mem(address_map &map) ATTR_COLD; + void i8039_sound_port(address_map &map) ATTR_COLD; memory_share_creator m_data_ram; memory_share_creator m_video_ram; @@ -406,7 +406,7 @@ class babypkr_state : public videopkr_state void bpoker(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: uint8_t baby_sound_p0_r(); @@ -415,10 +415,10 @@ class babypkr_state : public videopkr_state void baby_sound_p3_w(uint8_t data); void babypkr_palette(palette_device &palette) const; - void i8751_map(address_map &map); - void i8751_io_port(address_map &map); - void i8051_sound_mem(address_map &map); - void i8051_sound_port(address_map &map); + void i8751_map(address_map &map) ATTR_COLD; + void i8751_io_port(address_map &map) ATTR_COLD; + void i8051_sound_mem(address_map &map) ATTR_COLD; + void i8051_sound_port(address_map &map) ATTR_COLD; required_device m_aysnd; output_finder<3> m_top_lamps; diff --git a/src/mame/informer/informer_207_100.cpp b/src/mame/informer/informer_207_100.cpp index 06351c884e9..4cb77af53c6 100644 --- a/src/mame/informer/informer_207_100.cpp +++ b/src/mame/informer/informer_207_100.cpp @@ -55,8 +55,8 @@ class informer_207_100_state : public driver_device void informer_207_100(machine_config &config); protected: - void machine_start() override; - void machine_reset() override; + void machine_start() override ATTR_COLD; + void machine_reset() override ATTR_COLD; private: required_device m_maincpu; @@ -69,7 +69,7 @@ class informer_207_100_state : public driver_device required_shared_ptr m_ram; required_region_ptr m_chargen; - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; MC6845_ON_UPDATE_ADDR_CHANGED(crtc_addr); MC6845_UPDATE_ROW(crtc_update_row); diff --git a/src/mame/informer/informer_207_376.cpp b/src/mame/informer/informer_207_376.cpp index fe429e6e46c..de472ed40af 100644 --- a/src/mame/informer/informer_207_376.cpp +++ b/src/mame/informer/informer_207_376.cpp @@ -71,8 +71,8 @@ class informer_207_376_state : public driver_device void informer_207_376(machine_config &config); protected: - void machine_start() override; - void machine_reset() override; + void machine_start() override ATTR_COLD; + void machine_reset() override ATTR_COLD; private: required_device m_maincpu; @@ -87,7 +87,7 @@ class informer_207_376_state : public driver_device required_shared_ptr m_ram; required_region_ptr m_chargen; - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; void unk_8400_w(uint8_t data); void crt_brightness_w(uint8_t data); diff --git a/src/mame/informer/informer_207_376_kbd.h b/src/mame/informer/informer_207_376_kbd.h index d54687ff127..dee488040fa 100644 --- a/src/mame/informer/informer_207_376_kbd.h +++ b/src/mame/informer/informer_207_376_kbd.h @@ -37,9 +37,9 @@ class informer_207_376_kbd_hle_device : public device_t, protected: // device_t overrides - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; - virtual void device_reset() override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; // device_buffered_serial_interface overrides virtual void tra_callback() override; diff --git a/src/mame/informer/informer_213.cpp b/src/mame/informer/informer_213.cpp index 1b188cfe532..124108d7590 100644 --- a/src/mame/informer/informer_213.cpp +++ b/src/mame/informer/informer_213.cpp @@ -57,8 +57,8 @@ class informer_213_state : public driver_device void informer_213(machine_config &config); protected: - void machine_start() override; - void machine_reset() override; + void machine_start() override ATTR_COLD; + void machine_reset() override ATTR_COLD; private: required_device m_maincpu; @@ -72,7 +72,7 @@ class informer_213_state : public driver_device required_shared_ptr m_aram; required_region_ptr m_chargen; - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); void vblank_w(int state); diff --git a/src/mame/informer/informer_213_kbd.h b/src/mame/informer/informer_213_kbd.h index 0624f11005b..a60cf231db8 100644 --- a/src/mame/informer/informer_213_kbd.h +++ b/src/mame/informer/informer_213_kbd.h @@ -37,9 +37,9 @@ class informer_213_kbd_hle_device : public device_t, protected: // device_t overrides - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; - virtual void device_reset() override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; // device_matrix_keyboard_interface overrides virtual void key_make(uint8_t row, uint8_t column) override; diff --git a/src/mame/intel/basic52.cpp b/src/mame/intel/basic52.cpp index d90ae5f2a66..c7b48c63dd5 100644 --- a/src/mame/intel/basic52.cpp +++ b/src/mame/intel/basic52.cpp @@ -47,13 +47,13 @@ class basic52_state : public driver_device void basic31(machine_config &config); private: - void machine_start() override; + void machine_start() override ATTR_COLD; void port1_w(u8 data); uint8_t port3_r(); void port3_w(u8 data); void rx_w(int state); - void io_map(address_map &map); - void mem_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; uint8_t m_port3 = 0U; required_device m_maincpu; required_device m_serial; diff --git a/src/mame/intel/imds2.cpp b/src/mame/intel/imds2.cpp index 39b2d30e0b9..6675680e7a2 100644 --- a/src/mame/intel/imds2.cpp +++ b/src/mame/intel/imds2.cpp @@ -121,8 +121,8 @@ class imds2_state : public driver_device virtual void driver_start() override; virtual void driver_reset() override; - void ipc_io_map(address_map &map); - void ipc_mem_map(address_map &map); + void ipc_io_map(address_map &map) ATTR_COLD; + void ipc_mem_map(address_map &map) ATTR_COLD; u8 bus_pio_r(offs_t offset) { return m_bus->space(AS_IO).read_byte(offset); } void bus_pio_w(offs_t offset, u8 data) { m_bus->space(AS_IO).write_byte(offset, data); } diff --git a/src/mame/intel/imds2ioc.h b/src/mame/intel/imds2ioc.h index b47484a0775..7814d93ff32 100644 --- a/src/mame/intel/imds2ioc.h +++ b/src/mame/intel/imds2ioc.h @@ -30,12 +30,12 @@ class imds2ioc_device : public device_t void pio_master_w(offs_t offset, uint8_t data); protected: - virtual ioport_constructor device_input_ports() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual const tiny_rom_entry *device_rom_region() const override; + virtual ioport_constructor device_input_ports() const 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; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: void miscout_w(uint8_t data); @@ -69,8 +69,8 @@ class imds2ioc_device : public device_t I8275_DRAW_CHARACTER_MEMBER(crtc_display_pixels); - void io_map(address_map &map); - void mem_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; void update_beeper(); void update_printer(); diff --git a/src/mame/intel/imm6_76.h b/src/mame/intel/imm6_76.h index ae894a25b8b..bae80ce3117 100644 --- a/src/mame/intel/imm6_76.h +++ b/src/mame/intel/imm6_76.h @@ -178,7 +178,7 @@ class intel_imm6_76_device : public device_t, public device_image_interface protected: // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: TIMER_CALLBACK_MEMBER(cycle_expired); diff --git a/src/mame/intel/intellec4.cpp b/src/mame/intel/intellec4.cpp index 65e15a13441..bf744668679 100644 --- a/src/mame/intel/intellec4.cpp +++ b/src/mame/intel/intellec4.cpp @@ -132,15 +132,15 @@ class intellec4_state : public driver_device virtual void driver_start() override; virtual void driver_reset() override; - void intellec4_program_banks(address_map &map); - void intellec4_rom_port_banks(address_map &map); - - void intellec4_rom(address_map &map); - void intellec4_ram_memory(address_map &map); - void intellec4_rom_ports(address_map &map); - void intellec4_ram_status(address_map &map); - void intellec4_ram_ports(address_map &map); - void intellec4_program_memory(address_map &map); + void intellec4_program_banks(address_map &map) ATTR_COLD; + void intellec4_rom_port_banks(address_map &map) ATTR_COLD; + + void intellec4_rom(address_map &map) ATTR_COLD; + void intellec4_ram_memory(address_map &map) ATTR_COLD; + void intellec4_rom_ports(address_map &map) ATTR_COLD; + void intellec4_ram_status(address_map &map) ATTR_COLD; + void intellec4_ram_ports(address_map &map) ATTR_COLD; + void intellec4_program_memory(address_map &map) ATTR_COLD; void intellec4(machine_config &config); diff --git a/src/mame/intel/intellec8.cpp b/src/mame/intel/intellec8.cpp index fc44782d178..75738be60c4 100644 --- a/src/mame/intel/intellec8.cpp +++ b/src/mame/intel/intellec8.cpp @@ -25,10 +25,10 @@ class intlc8_state : public driver_device void intlc8(machine_config &config); private: - virtual void machine_start() override; - virtual void machine_reset() override; - void io_map(address_map &map); - void mem_map(address_map &map); + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; }; diff --git a/src/mame/intel/ipc.cpp b/src/mame/intel/ipc.cpp index ced2d9d3f89..34caf853799 100644 --- a/src/mame/intel/ipc.cpp +++ b/src/mame/intel/ipc.cpp @@ -59,10 +59,10 @@ class ipc_state : public driver_device void ipc(machine_config &config); private: - void io_map(address_map &map); - void mem_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; required_device m_maincpu; }; diff --git a/src/mame/intel/ipds.cpp b/src/mame/intel/ipds.cpp index 0bbb4295784..281cb191c8a 100644 --- a/src/mame/intel/ipds.cpp +++ b/src/mame/intel/ipds.cpp @@ -42,9 +42,9 @@ class ipds_state : public driver_device void kbd_put(u8 data); I8275_DRAW_CHARACTER_MEMBER( crtc_display_pixels ); uint8_t m_term_data = 0U; - virtual void machine_reset() override; - void ipds_io(address_map &map); - void ipds_mem(address_map &map); + virtual void machine_reset() override ATTR_COLD; + void ipds_io(address_map &map) ATTR_COLD; + void ipds_mem(address_map &map) ATTR_COLD; }; uint8_t ipds_state::ipds_b0_r() diff --git a/src/mame/intel/isbc.cpp b/src/mame/intel/isbc.cpp index 3b65d74144a..10d8d8c9d17 100644 --- a/src/mame/intel/isbc.cpp +++ b/src/mame/intel/isbc.cpp @@ -77,19 +77,19 @@ class isbc_state : public driver_device void nmi_mask_w(int state); void bus_intr_out1_w(int state); void bus_intr_out2_w(int state); - void isbc2861_mem(address_map &map); - void isbc286_io(address_map &map); - void isbc286_mem(address_map &map); - void isbc8605_io(address_map &map); - void isbc8630_io(address_map &map); - void isbc86_mem(address_map &map); - void isbc_io(address_map &map); - void rpc86_io(address_map &map); - void rpc86_mem(address_map &map); - void sm1810_mem(address_map &map); - void sm1810_io(address_map &map); - - virtual void machine_reset() override; + void isbc2861_mem(address_map &map) ATTR_COLD; + void isbc286_io(address_map &map) ATTR_COLD; + void isbc286_mem(address_map &map) ATTR_COLD; + void isbc8605_io(address_map &map) ATTR_COLD; + void isbc8630_io(address_map &map) ATTR_COLD; + void isbc86_mem(address_map &map) ATTR_COLD; + void isbc_io(address_map &map) ATTR_COLD; + void rpc86_io(address_map &map) ATTR_COLD; + void rpc86_mem(address_map &map) ATTR_COLD; + void sm1810_mem(address_map &map) ATTR_COLD; + void sm1810_io(address_map &map) ATTR_COLD; + + virtual void machine_reset() override ATTR_COLD; static void cfg_fdc_qd(device_t *device); diff --git a/src/mame/intel/isbc660.cpp b/src/mame/intel/isbc660.cpp index 2204a41876c..a452e9c6c79 100644 --- a/src/mame/intel/isbc660.cpp +++ b/src/mame/intel/isbc660.cpp @@ -35,8 +35,8 @@ class isbc660_state : public driver_device protected: // driver_device overrides - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; public: // machine config diff --git a/src/mame/intel/isbc8010.cpp b/src/mame/intel/isbc8010.cpp index c00069cd6c4..41935ea5508 100644 --- a/src/mame/intel/isbc8010.cpp +++ b/src/mame/intel/isbc8010.cpp @@ -66,10 +66,10 @@ class isbc8010_state : public driver_device void usart_clock_tick(int state); - void isbc8010_io(address_map &map); - void isbc8010_mem(address_map &map); - void isbc8010a_mem(address_map &map); - void isbc8010b_mem(address_map &map); + void isbc8010_io(address_map &map) ATTR_COLD; + void isbc8010_mem(address_map &map) ATTR_COLD; + void isbc8010a_mem(address_map &map) ATTR_COLD; + void isbc8010b_mem(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_usart; diff --git a/src/mame/intel/isbc8030.cpp b/src/mame/intel/isbc8030.cpp index 9b838ecf16d..d8f08f535f4 100644 --- a/src/mame/intel/isbc8030.cpp +++ b/src/mame/intel/isbc8030.cpp @@ -56,8 +56,8 @@ class isbc8030_state : public driver_device void isbc8030(machine_config &config); private: - void isbc8030_io(address_map &map); - void isbc8030_mem(address_map &map); + void isbc8030_io(address_map &map) ATTR_COLD; + void isbc8030_mem(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_usart; diff --git a/src/mame/intel/isbc_208.h b/src/mame/intel/isbc_208.h index 204a2be7fd2..ee8ce3673ae 100644 --- a/src/mame/intel/isbc_208.h +++ b/src/mame/intel/isbc_208.h @@ -21,16 +21,16 @@ class isbc_208_device : public device_t isbc_208_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - void map(address_map &map); + void map(address_map &map) ATTR_COLD; uint8_t stat_r(offs_t offset); void aux_w(offs_t offset, uint8_t data); auto irq_callback() { return m_out_irq_func.bind(); } protected: - 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; private: required_device m_maincpu; diff --git a/src/mame/intel/rex6000.cpp b/src/mame/intel/rex6000.cpp index fb80b2c741a..c4a4e00a6ea 100644 --- a/src/mame/intel/rex6000.cpp +++ b/src/mame/intel/rex6000.cpp @@ -93,8 +93,8 @@ class rex6000_state : public driver_device TIMER_DEVICE_CALLBACK_MEMBER(sec_timer); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); @@ -111,9 +111,9 @@ class rex6000_state : public driver_device uint8_t touchscreen_r(offs_t offset); void touchscreen_w(offs_t offset, uint8_t data); - void rex6000_banked_map(address_map &map); - void rex6000_io(address_map &map); - void rex6000_mem(address_map &map); + void rex6000_banked_map(address_map &map) ATTR_COLD; + void rex6000_io(address_map &map) ATTR_COLD; + void rex6000_mem(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_ram; @@ -163,12 +163,12 @@ class oz750_state : public rex6000_state DECLARE_INPUT_CHANGED_MEMBER(trigger_on_irq); DECLARE_QUICKLOAD_LOAD_MEMBER(quickload_oz750); - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; uint32_t screen_update_oz(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void oz750(machine_config &config); - void oz750_banked_map(address_map &map); - void oz750_io(address_map &map); + void oz750_banked_map(address_map &map) ATTR_COLD; + void oz750_io(address_map &map) ATTR_COLD; private: int oz_wzd_extract_tag(const std::vector &data, const char *tag, char *dest_buf); diff --git a/src/mame/intel/sdk51.cpp b/src/mame/intel/sdk51.cpp index 91a67abe09e..350ef85b37b 100644 --- a/src/mame/intel/sdk51.cpp +++ b/src/mame/intel/sdk51.cpp @@ -38,15 +38,15 @@ class sdk51_state : public driver_device void sdk51(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: - void psen_map(address_map &map); - void movx_map(address_map &map); - void progmem_map(address_map &map); - void datamem_map(address_map &map); - void mem0_map(address_map &map); + void psen_map(address_map &map) ATTR_COLD; + void movx_map(address_map &map) ATTR_COLD; + void progmem_map(address_map &map) ATTR_COLD; + void datamem_map(address_map &map) ATTR_COLD; + void mem0_map(address_map &map) ATTR_COLD; u8 psen_r(offs_t offset); u8 datamem_r(offs_t offset); diff --git a/src/mame/intel/sdk80.cpp b/src/mame/intel/sdk80.cpp index e04fd7dd4e1..22f7881f63e 100644 --- a/src/mame/intel/sdk80.cpp +++ b/src/mame/intel/sdk80.cpp @@ -59,8 +59,8 @@ class sdk80_state : public driver_device private: void usart_clock_tick(int state); - void sdk80_io(address_map &map); - void sdk80_mem(address_map &map); + void sdk80_io(address_map &map) ATTR_COLD; + void sdk80_mem(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_usart; diff --git a/src/mame/intel/sdk85.cpp b/src/mame/intel/sdk85.cpp index 077688742ce..56f87e7fccf 100644 --- a/src/mame/intel/sdk85.cpp +++ b/src/mame/intel/sdk85.cpp @@ -84,12 +84,12 @@ class sdk85_state : public driver_device void digit_w(u8 data); u8 kbd_r(); - void io_map(address_map &map); - void mem_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; u8 m_digit = 0U; - virtual void machine_reset() override; - virtual void machine_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; required_device m_maincpu; required_device m_kdc; diff --git a/src/mame/intel/sdk86.cpp b/src/mame/intel/sdk86.cpp index f5b02c6074f..8f9af5d6101 100644 --- a/src/mame/intel/sdk86.cpp +++ b/src/mame/intel/sdk86.cpp @@ -59,11 +59,11 @@ class sdk86_state : public driver_device void digit_w(u8 data); u8 kbd_r(); - void io_map(address_map &map); - void mem_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; u8 m_digit = 0U; - void machine_start() override; + void machine_start() override ATTR_COLD; required_device m_maincpu; required_device m_uart; required_device m_kdc; diff --git a/src/mame/intergraph/interpro.cpp b/src/mame/intergraph/interpro.cpp index 26135b661b4..21de75ac3b4 100644 --- a/src/mame/intergraph/interpro.cpp +++ b/src/mame/intergraph/interpro.cpp @@ -349,12 +349,12 @@ class interpro_state : public driver_device void interpro(machine_config &config); static void interpro_scsi_adapter(device_t *device); static void interpro_cdrom(device_t *device); - void interpro_boot_map(address_map &map); - void interpro_common_map(address_map &map); + void interpro_boot_map(address_map &map) ATTR_COLD; + void interpro_common_map(address_map &map) ATTR_COLD; protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; output_finder<> m_diag_led; emu_timer *m_reset_timer = nullptr; @@ -416,14 +416,14 @@ class emerald_state : public interpro_state void emerald(machine_config &config); void ip6000(machine_config &config); - void interpro_82586_map(address_map &map); - void emerald_base_map(address_map &map); - void emerald_main_map(address_map &map); - void emerald_io_map(address_map &map); + void interpro_82586_map(address_map &map) ATTR_COLD; + void emerald_base_map(address_map &map) ATTR_COLD; + void emerald_main_map(address_map &map) ATTR_COLD; + void emerald_io_map(address_map &map) ATTR_COLD; protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: u16 m_ctrl1 = 0; @@ -486,14 +486,14 @@ class turquoise_state : public interpro_state void turquoise(machine_config &config); void ip2000(machine_config &config); - void interpro_82586_map(address_map &map); - void turquoise_base_map(address_map &map); - void turquoise_main_map(address_map &map); - void turquoise_io_map(address_map &map); + void interpro_82586_map(address_map &map) ATTR_COLD; + void turquoise_base_map(address_map &map) ATTR_COLD; + void turquoise_main_map(address_map &map) ATTR_COLD; + void turquoise_io_map(address_map &map) ATTR_COLD; protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: u16 m_ctrl1 = 0; @@ -551,14 +551,14 @@ class sapphire_state : public interpro_state void sapphire(machine_config &config); - void interpro_82596_map(address_map &map); - void sapphire_base_map(address_map &map); - void sapphire_main_map(address_map &map); - void sapphire_io_map(address_map &map); + void interpro_82596_map(address_map &map) ATTR_COLD; + void sapphire_base_map(address_map &map) ATTR_COLD; + void sapphire_main_map(address_map &map) ATTR_COLD; + void sapphire_io_map(address_map &map) ATTR_COLD; protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: u16 m_ctrl1 = 0; diff --git a/src/mame/intergraph/interpro_arbga.h b/src/mame/intergraph/interpro_arbga.h index d0c20649f40..adac08a4d81 100644 --- a/src/mame/intergraph/interpro_arbga.h +++ b/src/mame/intergraph/interpro_arbga.h @@ -11,7 +11,7 @@ class interpro_arbga_device : public device_t public: interpro_arbga_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - virtual void map(address_map &map); + virtual void map(address_map &map) ATTR_COLD; u32 sdepid_r() { return m_sdepid; } void sdepid_w(u32 data) { m_sdepid = data; } @@ -63,8 +63,8 @@ class interpro_arbga_device : public device_t void arbrev_w(u32 data) { m_arbrev = data; } protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: u32 m_sdepid = 0; diff --git a/src/mame/intergraph/interpro_ioga.h b/src/mame/intergraph/interpro_ioga.h index 2f90d7dfe19..bd38d925c70 100644 --- a/src/mame/intergraph/interpro_ioga.h +++ b/src/mame/intergraph/interpro_ioga.h @@ -239,8 +239,8 @@ class interpro_ioga_device : public device_t protected: // 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; required_address_space m_memory_space; memory_access<32, 2, 0, ENDIANNESS_LITTLE>::cache m_memory; @@ -379,7 +379,7 @@ class emerald_ioga_device : public interpro_ioga_device public: emerald_ioga_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - virtual void map(address_map &map) override; + virtual void map(address_map &map) override ATTR_COLD; void eth_w(offs_t offset, u16 data, u16 mem_mask = ~0); u16 eth_r(offs_t offset, u16 mem_mask = ~0); @@ -421,7 +421,7 @@ class turquoise_ioga_device : public interpro_ioga_device public: turquoise_ioga_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - virtual void map(address_map &map) override; + virtual void map(address_map &map) override ATTR_COLD; void eth_w(offs_t offset, u16 data, u16 mem_mask = ~0); u16 eth_r(offs_t offset, u16 mem_mask = ~0); @@ -463,7 +463,7 @@ class sapphire_ioga_device : public interpro_ioga_device public: sapphire_ioga_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - virtual void map(address_map &map) override; + virtual void map(address_map &map) override ATTR_COLD; virtual TIMER_CALLBACK_MEMBER(timer_60hz) override; @@ -492,8 +492,8 @@ class sapphire_ioga_device : public interpro_ioga_device 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 TIMER_CALLBACK_MEMBER(interrupt_check) override; virtual TIMER_CALLBACK_MEMBER(eth_reset) override; diff --git a/src/mame/intergraph/interpro_mcga.h b/src/mame/intergraph/interpro_mcga.h index ca5f06d8cf7..434440a9c65 100644 --- a/src/mame/intergraph/interpro_mcga.h +++ b/src/mame/intergraph/interpro_mcga.h @@ -11,7 +11,7 @@ class interpro_mcga_device : public device_t public: interpro_mcga_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - virtual void map(address_map &map); + virtual void map(address_map &map) ATTR_COLD; u16 reg00_r() { return m_reg[0]; } void reg00_w(u16 data) { m_reg[0] = data; } @@ -61,8 +61,8 @@ class interpro_mcga_device : public device_t protected: interpro_mcga_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; u16 m_control = 0, m_error = 0, m_memsize = 0; u8 m_frcrd = 0, m_cbsub = 0; @@ -78,7 +78,7 @@ class interpro_fmcc_device : public interpro_mcga_device public: interpro_fmcc_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - virtual void map(address_map &map) override; + virtual void map(address_map &map) override ATTR_COLD; enum control_mask { diff --git a/src/mame/intergraph/interpro_sga.h b/src/mame/intergraph/interpro_sga.h index d3ff6f4ade6..cdc32c279d7 100644 --- a/src/mame/intergraph/interpro_sga.h +++ b/src/mame/intergraph/interpro_sga.h @@ -13,7 +13,7 @@ class interpro_sga_device : public device_t auto berr_callback() { return m_berr_func.bind(); } - virtual void map(address_map &map); + virtual void map(address_map &map) ATTR_COLD; u32 gcsr_r() { return m_gcsr; } void gcsr_w(u32 data) { m_gcsr = data; } @@ -136,8 +136,8 @@ class interpro_sga_device : public device_t void dcksum1_w(u32 data) { m_dcksum1 = data; } protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: u32 m_gcsr; // general control/status diff --git a/src/mame/interton/vc4000.h b/src/mame/interton/vc4000.h index ad4381a7582..2f7059bad87 100644 --- a/src/mame/interton/vc4000.h +++ b/src/mame/interton/vc4000.h @@ -130,15 +130,15 @@ class vc4000_state : public driver_device uint8_t m_objects[512]{}; uint8_t m_irq_pause = 0; std::unique_ptr m_bitmap; - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; void vc4000_palette(palette_device &palette) const; uint32_t screen_update_vc4000(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); INTERRUPT_GEN_MEMBER(vc4000_video_line); DECLARE_QUICKLOAD_LOAD_MEMBER(quickload_cb); - void elektor_mem(address_map &map); - void vc4000_mem(address_map &map); + void elektor_mem(address_map &map) ATTR_COLD; + void vc4000_mem(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_screen; diff --git a/src/mame/interton/vc4000_a.h b/src/mame/interton/vc4000_a.h index c5e8589fbf8..5012f56e1ed 100644 --- a/src/mame/interton/vc4000_a.h +++ b/src/mame/interton/vc4000_a.h @@ -25,7 +25,7 @@ class vc4000_sound_device : public device_t, public device_sound_interface protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // sound stream update overrides virtual void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; diff --git a/src/mame/irem/irem.h b/src/mame/irem/irem.h index 106c9661953..efcf2a5a4f8 100644 --- a/src/mame/irem/irem.h +++ b/src/mame/irem/irem.h @@ -18,10 +18,10 @@ class irem_audio_device : public device_t void ay8910_45M_portb_w(uint8_t data); void ay8910_45L_porta_w(uint8_t data); - void irem_sound_portmap(address_map &map); - void m52_large_sound_map(address_map &map); - void m52_small_sound_map(address_map &map); - void m62_sound_map(address_map &map); + void irem_sound_portmap(address_map &map) ATTR_COLD; + void m52_large_sound_map(address_map &map) ATTR_COLD; + void m52_small_sound_map(address_map &map) ATTR_COLD; + void m62_sound_map(address_map &map) ATTR_COLD; optional_device m_audio_SINH; @@ -29,8 +29,8 @@ class irem_audio_device : public device_t irem_audio_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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; required_device m_cpu; required_device m_adpcm1; @@ -65,7 +65,7 @@ class m62_audio_device : public irem_audio_device m62_audio_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 void device_add_mconfig(machine_config &config) override ATTR_COLD; }; class m52_soundc_audio_device : public irem_audio_device @@ -74,7 +74,7 @@ class m52_soundc_audio_device : public irem_audio_device m52_soundc_audio_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 void device_add_mconfig(machine_config &config) override ATTR_COLD; }; class m52_large_audio_device : public irem_audio_device @@ -83,7 +83,7 @@ class m52_large_audio_device : public irem_audio_device m52_large_audio_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 void device_add_mconfig(machine_config &config) override ATTR_COLD; }; diff --git a/src/mame/irem/m10.cpp b/src/mame/irem/m10.cpp index 658469b6783..b68ebb69697 100644 --- a/src/mame/irem/m10.cpp +++ b/src/mame/irem/m10.cpp @@ -159,8 +159,8 @@ class m1x_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(coin_inserted); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; required_shared_ptr m_videoram; required_shared_ptr m_colorram; @@ -226,9 +226,9 @@ class m10_state : public m1x_state DECLARE_INPUT_CHANGED_MEMBER(set_vr1) { m_ic8j2->set_resistor_value(RES_K(10 + newval / 5.0)); } protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_ic8j1; @@ -248,8 +248,8 @@ class m10_state : public m1x_state uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); inline void plot_pixel(bitmap_ind16 &bm, int x, int y, int col); - void m10_main(address_map &map); - void m11_main(address_map &map); + void m10_main(address_map &map) ATTR_COLD; + void m11_main(address_map &map) ATTR_COLD; }; class m15_state : public m1x_state @@ -262,7 +262,7 @@ class m15_state : public m1x_state void m15(machine_config &config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: void ctrl_w(uint8_t data); @@ -271,7 +271,7 @@ class m15_state : public m1x_state uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); INTERRUPT_GEN_MEMBER(interrupt); - void main(address_map &map); + void main(address_map &map) ATTR_COLD; }; diff --git a/src/mame/irem/m107.cpp b/src/mame/irem/m107.cpp index 030bb8e8f26..caa276ba582 100644 --- a/src/mame/irem/m107.cpp +++ b/src/mame/irem/m107.cpp @@ -78,7 +78,7 @@ class m107_state : public driver_device void init_wpksoc(); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -126,14 +126,14 @@ class m107_state : public driver_device void update_scroll_positions(); void tilemap_draw(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, int laynum, int category, int opaque); void screen_refresh(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void dsoccr94_io_map(address_map &map); - void dsoccr94_map(address_map &map); - void firebarr_map(address_map &map); - void main_map(address_map &map); - void main_portmap(address_map &map); - void sound_map(address_map &map); - void wpksoc_io_map(address_map &map); - void wpksoc_map(address_map &map); + void dsoccr94_io_map(address_map &map) ATTR_COLD; + void dsoccr94_map(address_map &map) ATTR_COLD; + void firebarr_map(address_map &map) ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; + void main_portmap(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; + void wpksoc_io_map(address_map &map) ATTR_COLD; + void wpksoc_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/irem/m119.cpp b/src/mame/irem/m119.cpp index 209fb0f8ed2..8a593d6b7eb 100644 --- a/src/mame/irem/m119.cpp +++ b/src/mame/irem/m119.cpp @@ -51,7 +51,7 @@ class m119_state : public driver_device private: uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void program_map(address_map &map); + void program_map(address_map &map) ATTR_COLD; required_device m_maincpu; }; diff --git a/src/mame/irem/m14.cpp b/src/mame/irem/m14.cpp index cc61127ad8c..8fe0c73e032 100644 --- a/src/mame/irem/m14.cpp +++ b/src/mame/irem/m14.cpp @@ -99,15 +99,15 @@ class m14_state : public driver_device TILE_GET_INFO_MEMBER(m14_get_tile_info); void draw_ball_and_paddle(bitmap_ind16 &bitmap, const rectangle &cliprect); - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; void m14_palette(palette_device &palette) const; uint32_t screen_update_m14(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); INTERRUPT_GEN_MEMBER(m14_irq); - void m14_io_map(address_map &map); - void m14_map(address_map &map); + void m14_io_map(address_map &map) ATTR_COLD; + void m14_map(address_map &map) ATTR_COLD; /* video-related */ tilemap_t *m_m14_tilemap = nullptr; diff --git a/src/mame/irem/m52.cpp b/src/mame/irem/m52.cpp index 33a7db88572..09ef981f0f5 100644 --- a/src/mame/irem/m52.cpp +++ b/src/mame/irem/m52.cpp @@ -82,8 +82,8 @@ class m52_state : public driver_device void m52(machine_config &config); protected: - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; virtual void scroll_w(uint8_t data); // board mod changes? @@ -130,8 +130,8 @@ class m52_state : public driver_device void draw_background(bitmap_rgb32 &bitmap, const rectangle &cliprect, int xpos, int ypos, int image); void draw_sprites(bitmap_rgb32 &bitmap, const rectangle &cliprect, int initoffs); - void main_map(address_map &map); - void main_portmap(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void main_portmap(address_map &map) ATTR_COLD; }; class alpha1v_state : public m52_state @@ -143,10 +143,10 @@ class alpha1v_state : public m52_state void alpha1v(machine_config &config); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; virtual void scroll_w(uint8_t data) override; private: diff --git a/src/mame/irem/m57.cpp b/src/mame/irem/m57.cpp index 648e6f682c1..0ebb0d01170 100644 --- a/src/mame/irem/m57.cpp +++ b/src/mame/irem/m57.cpp @@ -81,7 +81,7 @@ class m57_state : public driver_device void m57(machine_config &config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: required_shared_ptr m_videoram; @@ -104,7 +104,7 @@ class m57_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void draw_background(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/irem/m58.cpp b/src/mame/irem/m58.cpp index 8b07e7c933e..48ce3238f6c 100644 --- a/src/mame/irem/m58.cpp +++ b/src/mame/irem/m58.cpp @@ -49,7 +49,7 @@ class m58_state : public driver_device void yard(machine_config &config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -81,7 +81,7 @@ class m58_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); void draw_panel(bitmap_ind16 &bitmap, const rectangle &cliprect); - void yard_map(address_map &map); + void yard_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/irem/m62.h b/src/mame/irem/m62.h index e3338129c23..72088449383 100644 --- a/src/mame/irem/m62.h +++ b/src/mame/irem/m62.h @@ -67,7 +67,7 @@ class m62_state : public driver_device void m62_start(tilemap_get_info_delegate tile_get_info, int rows, int cols, int x1, int y1, int x2, int y2); - void kungfum_io_map(address_map &map); + void kungfum_io_map(address_map &map) ATTR_COLD; private: /* memory pointers */ @@ -131,9 +131,9 @@ class m62_state : public driver_device TILE_GET_INFO_MEMBER(get_horizon_bg_tile_info); DECLARE_MACHINE_START(battroad); void machine_init_save(); - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; void m62_spr(palette_device &palette) const; void m62_chr(palette_device &palette) const; void m62_lotlot_fg(palette_device &palette) const; @@ -171,24 +171,24 @@ class m62_state : public driver_device required_device m_spr_palette; required_device m_chr_palette; - void battroad_io_map(address_map &map); - void battroad_map(address_map &map); - void horizon_map(address_map &map); - void kidniki_io_map(address_map &map); - void kidniki_map(address_map &map); - void kungfum_map(address_map &map); - void ldrun2_io_map(address_map &map); - void ldrun2_map(address_map &map); - void ldrun3_io_map(address_map &map); - void ldrun3_map(address_map &map); - void ldrun4_io_map(address_map &map); - void ldrun4_map(address_map &map); - void ldrun_map(address_map &map); - void lotlot_map(address_map &map); - void spelunk2_map(address_map &map); - void spelunkr_map(address_map &map); - void youjyudn_io_map(address_map &map); - void youjyudn_map(address_map &map); + void battroad_io_map(address_map &map) ATTR_COLD; + void battroad_map(address_map &map) ATTR_COLD; + void horizon_map(address_map &map) ATTR_COLD; + void kidniki_io_map(address_map &map) ATTR_COLD; + void kidniki_map(address_map &map) ATTR_COLD; + void kungfum_map(address_map &map) ATTR_COLD; + void ldrun2_io_map(address_map &map) ATTR_COLD; + void ldrun2_map(address_map &map) ATTR_COLD; + void ldrun3_io_map(address_map &map) ATTR_COLD; + void ldrun3_map(address_map &map) ATTR_COLD; + void ldrun4_io_map(address_map &map) ATTR_COLD; + void ldrun4_map(address_map &map) ATTR_COLD; + void ldrun_map(address_map &map) ATTR_COLD; + void lotlot_map(address_map &map) ATTR_COLD; + void spelunk2_map(address_map &map) ATTR_COLD; + void spelunkr_map(address_map &map) ATTR_COLD; + void youjyudn_io_map(address_map &map) ATTR_COLD; + void youjyudn_map(address_map &map) ATTR_COLD; }; INPUT_PORTS_EXTERN( m62_common ); diff --git a/src/mame/irem/m62_bkungfu.cpp b/src/mame/irem/m62_bkungfu.cpp index 62b411069d8..d8f38a21078 100644 --- a/src/mame/irem/m62_bkungfu.cpp +++ b/src/mame/irem/m62_bkungfu.cpp @@ -32,8 +32,8 @@ class m62_bkungfu_state : public m62_state void bkungfu(machine_config& config); private: - void mem_map(address_map& map); - void io_map(address_map& map); + void mem_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; uint8_t bkungfu_blitter_r(offs_t offset); void bkungfu_blitter_w(offs_t offset, uint8_t data); diff --git a/src/mame/irem/m63.cpp b/src/mame/irem/m63.cpp index d81b600a8a0..7ad5982bd25 100644 --- a/src/mame/irem/m63.cpp +++ b/src/mame/irem/m63.cpp @@ -160,9 +160,9 @@ class m63_state : public driver_device void init_fghtbskt(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_shared_ptr m_spriteram; @@ -221,10 +221,10 @@ class m63_state : public driver_device INTERRUPT_GEN_MEMBER(snd_irq); INTERRUPT_GEN_MEMBER(vblank_irq); void draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect ); - void fghtbskt_map(address_map &map); - void i8039_map(address_map &map); - void i8039_port_map(address_map &map); - void m63_map(address_map &map); + void fghtbskt_map(address_map &map) ATTR_COLD; + void i8039_map(address_map &map) ATTR_COLD; + void i8039_port_map(address_map &map) ATTR_COLD; + void m63_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/irem/m72.h b/src/mame/irem/m72.h index c87ec045493..a2f16e32b85 100644 --- a/src/mame/irem/m72.h +++ b/src/mame/irem/m72.h @@ -189,8 +189,8 @@ class m72_state : public driver_device TILEMAP_MAPPER_MEMBER(m82_scan_rows); - void machine_start() override; - void machine_reset() override; + void machine_start() override ATTR_COLD; + void machine_reset() override ATTR_COLD; DECLARE_VIDEO_START(m72); DECLARE_VIDEO_START(dbreedm72); DECLARE_VIDEO_START(imgfight); @@ -223,41 +223,41 @@ class m72_state : public driver_device void copy_le(u16 *dest, const u8 *src, u8 bytes); void install_protection_handler(const u8 *code,const u8 *crc); - void dbreed_map(address_map &map); - void dbreedm72_map(address_map &map); - void dbreedwm72_map(address_map &map); - void hharry_map(address_map &map); - void hharryu_map(address_map &map); - void kengo_map(address_map &map); - void lohtb_map(address_map &map); - void lohtb_portmap(address_map &map); - void m72_cpu1_common_map(address_map &map); - void m72_map(address_map &map); - void m72_protected_map(address_map &map); - void m72_portmap(address_map &map); - void m72_protected_portmap(address_map &map); - void m72_airduel_portmap(address_map &map); - void m81_cpu1_common_map(address_map &map); - void m81_portmap(address_map &map); - void m82_map(address_map &map); - void m82_portmap(address_map &map); - void m84_cpu1_common_map(address_map &map); - void m84_portmap(address_map &map); - void m84_v33_portmap(address_map &map); - void i80c31_mem_map(address_map &map); - void mcu_io_map(address_map &map); - void poundfor_portmap(address_map &map); - void poundfor_sound_portmap(address_map &map); - void rtype2_map(address_map &map); - void rtype2_sound_portmap(address_map &map); - void rtype_map(address_map &map); - void rtype_sound_portmap(address_map &map); - void sound_portmap(address_map &map); - void sound_protected_portmap(address_map &map); - void sound_ram_map(address_map &map); - void sound_rom_map(address_map &map); - void xmultipl_map(address_map &map); - void xmultiplm72_map(address_map &map); + void dbreed_map(address_map &map) ATTR_COLD; + void dbreedm72_map(address_map &map) ATTR_COLD; + void dbreedwm72_map(address_map &map) ATTR_COLD; + void hharry_map(address_map &map) ATTR_COLD; + void hharryu_map(address_map &map) ATTR_COLD; + void kengo_map(address_map &map) ATTR_COLD; + void lohtb_map(address_map &map) ATTR_COLD; + void lohtb_portmap(address_map &map) ATTR_COLD; + void m72_cpu1_common_map(address_map &map) ATTR_COLD; + void m72_map(address_map &map) ATTR_COLD; + void m72_protected_map(address_map &map) ATTR_COLD; + void m72_portmap(address_map &map) ATTR_COLD; + void m72_protected_portmap(address_map &map) ATTR_COLD; + void m72_airduel_portmap(address_map &map) ATTR_COLD; + void m81_cpu1_common_map(address_map &map) ATTR_COLD; + void m81_portmap(address_map &map) ATTR_COLD; + void m82_map(address_map &map) ATTR_COLD; + void m82_portmap(address_map &map) ATTR_COLD; + void m84_cpu1_common_map(address_map &map) ATTR_COLD; + void m84_portmap(address_map &map) ATTR_COLD; + void m84_v33_portmap(address_map &map) ATTR_COLD; + void i80c31_mem_map(address_map &map) ATTR_COLD; + void mcu_io_map(address_map &map) ATTR_COLD; + void poundfor_portmap(address_map &map) ATTR_COLD; + void poundfor_sound_portmap(address_map &map) ATTR_COLD; + void rtype2_map(address_map &map) ATTR_COLD; + void rtype2_sound_portmap(address_map &map) ATTR_COLD; + void rtype_map(address_map &map) ATTR_COLD; + void rtype_sound_portmap(address_map &map) ATTR_COLD; + void sound_portmap(address_map &map) ATTR_COLD; + void sound_protected_portmap(address_map &map) ATTR_COLD; + void sound_ram_map(address_map &map) ATTR_COLD; + void sound_rom_map(address_map &map) ATTR_COLD; + void xmultipl_map(address_map &map) ATTR_COLD; + void xmultiplm72_map(address_map &map) ATTR_COLD; }; #endif // MAME_IREM_M72_H diff --git a/src/mame/irem/m72_a.h b/src/mame/irem/m72_a.h index ca8877ecb2f..3bc2bee2d09 100644 --- a/src/mame/irem/m72_a.h +++ b/src/mame/irem/m72_a.h @@ -34,7 +34,7 @@ class m72_audio_device : public device_t, public device_rom_interface<32> // unk protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: // internal state diff --git a/src/mame/irem/m80.cpp b/src/mame/irem/m80.cpp index d31bb2239f6..dc7a047fcce 100644 --- a/src/mame/irem/m80.cpp +++ b/src/mame/irem/m80.cpp @@ -86,7 +86,7 @@ class shisen_state : public driver_device void shisen(machine_config &config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -115,10 +115,10 @@ class shisen_state : public driver_device TIMER_DEVICE_CALLBACK_MEMBER(sound_nmi); - void main_io_map(address_map &map); - void main_prg_map(address_map &map); - void sound_io_map(address_map &map); - void sound_prg_map(address_map &map); + void main_io_map(address_map &map) ATTR_COLD; + void main_prg_map(address_map &map) ATTR_COLD; + void sound_io_map(address_map &map) ATTR_COLD; + void sound_prg_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/irem/m90.h b/src/mame/irem/m90.h index d4749f416c8..cf45dc59cde 100644 --- a/src/mame/irem/m90.h +++ b/src/mame/irem/m90.h @@ -64,8 +64,8 @@ class m90_state : public driver_device void m90_video_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); void bootleg_video_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); TILE_GET_INFO_MEMBER(get_tile_info); - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; void common_tilemap_init(); DECLARE_VIDEO_START(bomblord); DECLARE_VIDEO_START(dynablsb); @@ -79,17 +79,17 @@ class m90_state : public driver_device void draw_sprites(screen_device &screen, bitmap_ind16 &bitmap,const rectangle &cliprect); void bomblord_draw_sprites(screen_device &screen, bitmap_ind16 &bitmap,const rectangle &cliprect); void dynablsb_draw_sprites(screen_device &screen, bitmap_ind16 &bitmap,const rectangle &cliprect); - void bomblord_main_cpu_map(address_map &map); - void dynablsb_main_cpu_io_map(address_map &map); - void dynablsb_main_cpu_map(address_map &map); - void dynablsb_sound_cpu_io_map(address_map &map); - void m90_main_cpu_io_map(address_map &map); - void m90_main_cpu_map(address_map &map); - void m90_sound_cpu_io_map(address_map &map); - void m90_sound_cpu_map(address_map &map); - void m99_sound_cpu_io_map(address_map &map); - void quizf1_main_cpu_io_map(address_map &map); - void quizf1_main_cpu_map(address_map &map); + void bomblord_main_cpu_map(address_map &map) ATTR_COLD; + void dynablsb_main_cpu_io_map(address_map &map) ATTR_COLD; + void dynablsb_main_cpu_map(address_map &map) ATTR_COLD; + void dynablsb_sound_cpu_io_map(address_map &map) ATTR_COLD; + void m90_main_cpu_io_map(address_map &map) ATTR_COLD; + void m90_main_cpu_map(address_map &map) ATTR_COLD; + void m90_sound_cpu_io_map(address_map &map) ATTR_COLD; + void m90_sound_cpu_map(address_map &map) ATTR_COLD; + void m99_sound_cpu_io_map(address_map &map) ATTR_COLD; + void quizf1_main_cpu_io_map(address_map &map) ATTR_COLD; + void quizf1_main_cpu_map(address_map &map) ATTR_COLD; }; #endif // MAME_IREM_M90_H diff --git a/src/mame/irem/m92.h b/src/mame/irem/m92.h index b3bf9ddc5e7..9a33994b344 100644 --- a/src/mame/irem/m92.h +++ b/src/mame/irem/m92.h @@ -119,15 +119,15 @@ class m92_state : public driver_device void m92_update_scroll_positions(); void m92_draw_tiles(screen_device &screen, bitmap_ind16 &bitmap,const rectangle &cliprect); - void lethalth_map(address_map &map); - void m92_map(address_map &map); - void m92_banked_map(address_map &map); - void m92_banked_portmap(address_map &map); - void m92_base_map(address_map &map); - void m92_portmap(address_map &map); - void majtitl2_map(address_map &map); - void ppan_portmap(address_map &map); - void sound_map(address_map &map); + void lethalth_map(address_map &map) ATTR_COLD; + void m92_map(address_map &map) ATTR_COLD; + void m92_banked_map(address_map &map) ATTR_COLD; + void m92_banked_portmap(address_map &map) ATTR_COLD; + void m92_base_map(address_map &map) ATTR_COLD; + void m92_portmap(address_map &map) ATTR_COLD; + void majtitl2_map(address_map &map) ATTR_COLD; + void ppan_portmap(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; TIMER_CALLBACK_MEMBER(spritebuffer_done); }; diff --git a/src/mame/irem/olibochu.cpp b/src/mame/irem/olibochu.cpp index e04a9015ba5..dfffab37419 100644 --- a/src/mame/irem/olibochu.cpp +++ b/src/mame/irem/olibochu.cpp @@ -113,9 +113,9 @@ class olibochu_state : public driver_device protected: // initialization - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: // devices, memory pointers @@ -158,8 +158,8 @@ class olibochu_state : public driver_device void cvsd_tick(int state); // address maps - void main_map(address_map &map); - void sound_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; }; void olibochu_state::machine_start() diff --git a/src/mame/irem/redalert.h b/src/mame/irem/redalert.h index e7fcbe1f296..58512b2679a 100644 --- a/src/mame/irem/redalert.h +++ b/src/mame/irem/redalert.h @@ -73,10 +73,10 @@ class redalert_state : public driver_device void demoneye_bitmap_layer_w(offs_t offset, uint8_t data); void demoneye_bitmap_ypos_w(u8 data); - void redalert_main_map(address_map &map); - void ww3_main_map(address_map &map); - void panther_main_map(address_map &map); - void demoneye_main_map(address_map &map); + void redalert_main_map(address_map &map) ATTR_COLD; + void ww3_main_map(address_map &map) ATTR_COLD; + void panther_main_map(address_map &map) ATTR_COLD; + void demoneye_main_map(address_map &map) ATTR_COLD; u8 m_demoneye_bitmap_reg[4]; u8 m_demoneye_bitmap_yoffs = 0; diff --git a/src/mame/irem/redalert_a.h b/src/mame/irem/redalert_a.h index 707d802fab5..2203fed25a5 100644 --- a/src/mame/irem/redalert_a.h +++ b/src/mame/irem/redalert_a.h @@ -31,15 +31,15 @@ class irem_m37b_audio_device : public device_t protected: irem_m37b_audio_device(const machine_config &config, device_type type, const char *tag, device_t *owner, uint32_t clock); - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; void analog_w(uint8_t data); void ay8910_w(uint8_t data); uint8_t ay8910_latch_1_r(); void ay8910_latch_2_w(uint8_t data); - void redalert_audio_map(address_map &map); + void redalert_audio_map(address_map &map) ATTR_COLD; required_device m_audiocpu; required_device m_ay8910; @@ -64,10 +64,10 @@ class panther_audio_device : public irem_m37b_audio_device panther_audio_device(const machine_config &config, const char *tag, device_t *owner, uint32_t clock = 0U); protected: - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: - void panther_audio_map(address_map &map); + void panther_audio_map(address_map &map) ATTR_COLD; }; @@ -79,10 +79,10 @@ class irem_m37b_ue17b_audio_device : public irem_m37b_audio_device void voice_command_w(uint8_t data); protected: - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: - void redalert_voice_map(address_map &map); + void redalert_voice_map(address_map &map) ATTR_COLD; required_device m_voicecpu; required_device m_soundlatch2; @@ -99,8 +99,8 @@ class demoneye_audio_device : public device_t void audio_command_w(uint8_t data); protected: - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; private: TIMER_CALLBACK_MEMBER(audio_irq_on); @@ -110,7 +110,7 @@ class demoneye_audio_device : public device_t uint8_t ay8910_latch_2_r(); void ay8910_data_w(uint8_t data); - void demoneye_audio_map(address_map &map); + void demoneye_audio_map(address_map &map) ATTR_COLD; required_device m_audiocpu; required_device_array m_ay; diff --git a/src/mame/irem/spartanxtec.cpp b/src/mame/irem/spartanxtec.cpp index d0b2333e2aa..59542305ec9 100644 --- a/src/mame/irem/spartanxtec.cpp +++ b/src/mame/irem/spartanxtec.cpp @@ -52,9 +52,9 @@ class spartanxtec_state : public driver_device void spartanxtec(machine_config &config); private: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); uint32_t screen_update_spartanxtec(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void spartanxtec_palette(palette_device &palette) const; @@ -65,9 +65,9 @@ class spartanxtec_state : public driver_device void sound_irq_ack(uint8_t data); void irq_ack(uint8_t data); - void spartanxtec_map(address_map &map); - void spartanxtec_sound_io(address_map &map); - void spartanxtec_sound_map(address_map &map); + void spartanxtec_map(address_map &map) ATTR_COLD; + void spartanxtec_sound_io(address_map &map) ATTR_COLD; + void spartanxtec_sound_map(address_map &map) ATTR_COLD; required_shared_ptr m_m62_tileram; required_shared_ptr m_spriteram; diff --git a/src/mame/irem/travrusa.cpp b/src/mame/irem/travrusa.cpp index 380e9380ec3..a7ca28a63a7 100644 --- a/src/mame/irem/travrusa.cpp +++ b/src/mame/irem/travrusa.cpp @@ -86,8 +86,8 @@ class travrusa_state : public driver_device void init_shtridrb(); protected: - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_shared_ptr m_videoram; @@ -114,8 +114,8 @@ class travrusa_state : public driver_device void set_scroll(); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); - void program_map(address_map &map); - void shtriderb_io_map(address_map &map); + void program_map(address_map &map) ATTR_COLD; + void shtriderb_io_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/irem/vigilant.h b/src/mame/irem/vigilant.h index 7f3b50d94f8..5ed7cb932f4 100644 --- a/src/mame/irem/vigilant.h +++ b/src/mame/irem/vigilant.h @@ -67,9 +67,9 @@ class vigilant_state : public driver_device // kikcubic void kikcubic_coin_w(uint8_t data); - virtual void machine_start() override; - virtual void video_start() override; - virtual void video_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; + virtual void video_reset() override ATTR_COLD; uint32_t screen_update_vigilant(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); uint32_t screen_update_kikcubic(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); @@ -83,14 +83,14 @@ class vigilant_state : public driver_device void draw_sprites(bitmap_ind16 &bitmap,const rectangle &cliprect); void vigilant_postload(); - void buccanrs_sound_io_map(address_map &map); - void kikcubic_io_map(address_map &map); - void kikcubic_map(address_map &map); - void sound_io_map(address_map &map); - void sound_map(address_map &map); - void vigilant_io_map(address_map &map); - void vigilant_map(address_map &map); - void bowmen_io_map(address_map &map); + void buccanrs_sound_io_map(address_map &map) ATTR_COLD; + void kikcubic_io_map(address_map &map) ATTR_COLD; + void kikcubic_map(address_map &map) ATTR_COLD; + void sound_io_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; + void vigilant_io_map(address_map &map) ATTR_COLD; + void vigilant_map(address_map &map) ATTR_COLD; + void bowmen_io_map(address_map &map) ATTR_COLD; }; #endif // MAME_IREM_VIGILANT_H diff --git a/src/mame/isc/compucolor.cpp b/src/mame/isc/compucolor.cpp index 5b56e3309df..f173f2ae3b7 100644 --- a/src/mame/isc/compucolor.cpp +++ b/src/mame/isc/compucolor.cpp @@ -71,8 +71,8 @@ class compucolor2_state : public driver_device required_ioport_array<16> m_y; required_ioport m_y128; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); @@ -84,8 +84,8 @@ class compucolor2_state : public driver_device uint8_t m_xo; void compucolor2(machine_config &config); - void compucolor2_io(address_map &map); - void compucolor2_mem(address_map &map); + void compucolor2_io(address_map &map) ATTR_COLD; + void compucolor2_mem(address_map &map) ATTR_COLD; }; void compucolor2_state::compucolor2_mem(address_map &map) diff --git a/src/mame/itech/capbowl.cpp b/src/mame/itech/capbowl.cpp index 31b2718ab23..a1081b7f938 100644 --- a/src/mame/itech/capbowl.cpp +++ b/src/mame/itech/capbowl.cpp @@ -135,12 +135,12 @@ class capbowl_base_state : public driver_device void base(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; required_device m_maincpu; - void base_main_map(address_map &map); + void base_main_map(address_map &map) ATTR_COLD; private: // devices @@ -173,7 +173,7 @@ class capbowl_base_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); inline rgb_t pen_for_pixel(uint8_t const *src, uint8_t pix); - void sound_map(address_map &map); + void sound_map(address_map &map) ATTR_COLD; }; class capbowl_state : public capbowl_base_state @@ -187,14 +187,14 @@ class capbowl_state : public capbowl_base_state void capbowl(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_memory_bank m_mainbank; void rom_select_w(uint8_t data); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; }; class bowlrama_state : public capbowl_base_state @@ -208,8 +208,8 @@ class bowlrama_state : public capbowl_base_state void bowlrama(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_region_ptr m_blitrom; @@ -220,7 +220,7 @@ class bowlrama_state : public capbowl_base_state void blitter_w(offs_t offset, uint8_t data); uint8_t blitter_r(offs_t offset); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/itech/iteagle.cpp b/src/mame/itech/iteagle.cpp index 6e9c12c463b..ad9723f58c3 100644 --- a/src/mame/itech/iteagle.cpp +++ b/src/mame/itech/iteagle.cpp @@ -140,8 +140,8 @@ class iteagle_state : public driver_device required_device m_fpga; required_device m_eeprom; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; void gtfore05(machine_config &config); void gtfore02(machine_config &config); void gtfore03(machine_config &config); diff --git a/src/mame/itech/iteagle_fpga.h b/src/mame/itech/iteagle_fpga.h index 2ee938b9469..ea46dc3cac4 100644 --- a/src/mame/itech/iteagle_fpga.h +++ b/src/mame/itech/iteagle_fpga.h @@ -63,9 +63,9 @@ class iteagle_fpga_device : public pci_device auto guny_callback() { return m_guny_cb.bind(); } protected: - 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; TIMER_CALLBACK_MEMBER(assert_vblank_irq); @@ -105,9 +105,9 @@ class iteagle_fpga_device : public pci_device void update_sequence(uint32_t data); void update_sequence_eg1(uint32_t data); - void rtc_map(address_map &map); - void fpga_map(address_map &map); - void ram_map(address_map &map); + void rtc_map(address_map &map) ATTR_COLD; + void fpga_map(address_map &map) ATTR_COLD; + void ram_map(address_map &map) ATTR_COLD; uint32_t fpga_r(offs_t offset, uint32_t mem_mask = ~0); void fpga_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0); @@ -132,9 +132,9 @@ class iteagle_eeprom_device : public pci_device { void set_info(int sw_version, int hw_version) {m_sw_version=sw_version; m_hw_version=hw_version;} protected: - 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; private: address_space *m_memory_space = nullptr; @@ -143,7 +143,7 @@ class iteagle_eeprom_device : public pci_device { std::array m_iteagle_default_eeprom; - void eeprom_map(address_map &map); + void eeprom_map(address_map &map) ATTR_COLD; uint32_t eeprom_r(offs_t offset, uint32_t mem_mask = ~0); void eeprom_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0); @@ -156,9 +156,9 @@ class iteagle_periph_device : public pci_device { iteagle_periph_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - 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; private: optional_device m_rtc; @@ -166,7 +166,7 @@ class iteagle_periph_device : public pci_device { uint32_t m_ctrl_regs[0xd0/4]; uint8_t m_rtc_regs[0x100]; - void ctrl_map(address_map &map); + void ctrl_map(address_map &map) ATTR_COLD; uint32_t ctrl_r(offs_t offset, uint32_t mem_mask = ~0); void ctrl_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0); diff --git a/src/mame/itech/itech32.h b/src/mame/itech/itech32.h index e88b1285c02..8f07d22177e 100644 --- a/src/mame/itech/itech32.h +++ b/src/mame/itech/itech32.h @@ -169,9 +169,9 @@ class itech32_state : public driver_device u16 bloodstm_video_r(offs_t offset); void pia_portb_out(u8 data); - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; void init_program_rom(); void init_sftm_common(int prot_addr); void init_shuffle_bowl_common(int prot_addr); @@ -197,12 +197,12 @@ class itech32_state : public driver_device virtual void shiftreg_clear(u16 *base, u16 *zbase); void handle_video_command(); virtual void update_interrupts(int vint, int xint, int qint); - void bloodstm_map(address_map &map); - void itech020_map(address_map &map); - void sound_020_map(address_map &map); - void sound_map(address_map &map); - void timekill_map(address_map &map); - void pubball_map(address_map &map); + void bloodstm_map(address_map &map) ATTR_COLD; + void itech020_map(address_map &map) ATTR_COLD; + void sound_020_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; + void timekill_map(address_map &map) ATTR_COLD; + void pubball_map(address_map &map) ATTR_COLD; }; class drivedge_state : public itech32_state @@ -224,8 +224,8 @@ class drivedge_state : public itech32_state protected: virtual void driver_start() override; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: u16 steering_r(); @@ -252,9 +252,9 @@ class drivedge_state : public itech32_state void portb_out(u8 data); void turbo_light(int state); - void main_map(address_map &map); - void tms1_map(address_map &map); - void tms2_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void tms1_map(address_map &map) ATTR_COLD; + void tms2_map(address_map &map) ATTR_COLD; virtual void nvram_init(nvram_device &nvram, void *base, size_t length) override; virtual void logblit(const char *tag) override; @@ -294,11 +294,11 @@ class shoottv_state : public itech32_state private: virtual void driver_start() override; - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; void update_interrupts(int vint, int xint, int qint) override; - void shoottv_map(address_map &map); + void shoottv_map(address_map &map) ATTR_COLD; TIMER_CALLBACK_MEMBER(gun_interrupt); diff --git a/src/mame/itech/itech8.h b/src/mame/itech/itech8.h index 2d38fc34f50..a9129846c23 100644 --- a/src/mame/itech/itech8.h +++ b/src/mame/itech/itech8.h @@ -114,9 +114,9 @@ class itech8_state : public driver_device void pia_porta_out(u8 data); void ym2203_portb_out(u8 data); - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; u32 screen_update_2layer(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); u32 screen_update_2page(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); @@ -146,15 +146,15 @@ class itech8_state : public driver_device void itech8_core_devices(machine_config &config); void itech8_core_lo(machine_config &config); void itech8_core_hi(machine_config &config); - void common_hi_map(address_map &map); - void common_lo_map(address_map &map); - void gtg2_map(address_map &map); - void ninclown_map(address_map &map); - void rimrockn_map(address_map &map); - void sound2203_map(address_map &map); - void sound2608b_map(address_map &map); - void sound3812_external_map(address_map &map); - void sound3812_map(address_map &map); + void common_hi_map(address_map &map) ATTR_COLD; + void common_lo_map(address_map &map) ATTR_COLD; + void gtg2_map(address_map &map) ATTR_COLD; + void ninclown_map(address_map &map) ATTR_COLD; + void rimrockn_map(address_map &map) ATTR_COLD; + void sound2203_map(address_map &map) ATTR_COLD; + void sound2608b_map(address_map &map) ATTR_COLD; + void sound3812_external_map(address_map &map) ATTR_COLD; + void sound3812_map(address_map &map) ATTR_COLD; }; // with sensor hardware @@ -173,7 +173,7 @@ class slikshot_state : public itech8_state void slikshot_hi(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: optional_device m_subcpu; @@ -221,10 +221,10 @@ class slikshot_state : public itech8_state u32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void mem_hi_map(address_map &map); - void mem_lo_map(address_map &map); - void z80_io_map(address_map &map); - void z80_mem_map(address_map &map); + void mem_hi_map(address_map &map) ATTR_COLD; + void mem_lo_map(address_map &map) ATTR_COLD; + void z80_io_map(address_map &map) ATTR_COLD; + void z80_mem_map(address_map &map) ATTR_COLD; }; // with additional timer @@ -237,7 +237,7 @@ class sstrike_state : public slikshot_state } protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: emu_timer *m_behind_beam_update_timer = nullptr; @@ -258,8 +258,8 @@ class grmatch_state : public itech8_state void grmatch(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device_array m_palette; @@ -274,5 +274,5 @@ class grmatch_state : public itech8_state TIMER_CALLBACK_MEMBER(palette_update); - void grmatch_map(address_map &map); + void grmatch_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/jaleco/acommand.cpp b/src/mame/jaleco/acommand.cpp index 80d5eeed7d7..fb512842ffc 100644 --- a/src/mame/jaleco/acommand.cpp +++ b/src/mame/jaleco/acommand.cpp @@ -108,9 +108,9 @@ class acommand_state : public driver_device uint32_t screen_update_acommand(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); TIMER_DEVICE_CALLBACK_MEMBER(acommand_scanline); - void acommand_map(address_map &map); + void acommand_map(address_map &map) ATTR_COLD; - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; required_shared_ptr m_spriteram; required_device m_maincpu; diff --git a/src/mame/jaleco/aeroboto.cpp b/src/mame/jaleco/aeroboto.cpp index 776859d54fa..9aa24c4eee7 100644 --- a/src/mame/jaleco/aeroboto.cpp +++ b/src/mame/jaleco/aeroboto.cpp @@ -75,9 +75,9 @@ class aeroboto_state : public driver_device void formatz(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: // memory pointers @@ -129,8 +129,8 @@ class aeroboto_state : public driver_device void vblank_irq(int state); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); - void main_map(address_map &map); - void sound_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/jaleco/argus.h b/src/mame/jaleco/argus.h index c3cd401c224..b3e2696cfd9 100644 --- a/src/mame/jaleco/argus.h +++ b/src/mame/jaleco/argus.h @@ -61,7 +61,7 @@ class argus_common_state : public driver_device template TILE_GET_INFO_MEMBER(get_tx_tile_info); - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; TIMER_DEVICE_CALLBACK_MEMBER(scanline); @@ -70,10 +70,10 @@ class argus_common_state : public driver_device void change_bg_palette(int color, int lo_offs, int hi_offs); void bg_setting(); - void sound_map_a(address_map &map); - void sound_map_b(address_map &map); - void sound_portmap_1(address_map &map); - void sound_portmap_2(address_map &map); + void sound_map_a(address_map &map) ATTR_COLD; + void sound_map_b(address_map &map) ATTR_COLD; + void sound_portmap_1(address_map &map) ATTR_COLD; + void sound_portmap_2(address_map &map) ATTR_COLD; }; class argus_state : public argus_common_state @@ -86,8 +86,8 @@ class argus_state : public argus_common_state void argus(machine_config &config); protected: - virtual void video_start() override; - virtual void video_reset() override; + virtual void video_start() override ATTR_COLD; + virtual void video_reset() override ATTR_COLD; private: void bg_status_w(u8 data); @@ -99,7 +99,7 @@ class argus_state : public argus_common_state void draw_sprites(bitmap_rgb32 &bitmap, const rectangle &cliprect, int priority); u32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void argus_map(address_map &map); + void argus_map(address_map &map) ATTR_COLD; }; class valtric_state : public argus_common_state @@ -112,8 +112,8 @@ class valtric_state : public argus_common_state void valtric(machine_config &config); protected: - virtual void video_start() override; - virtual void video_reset() override; + virtual void video_start() override ATTR_COLD; + virtual void video_reset() override ATTR_COLD; private: void mosaic_w(u8 data); @@ -127,7 +127,7 @@ class valtric_state : public argus_common_state void draw_sprites(bitmap_rgb32 &bitmap, const rectangle &cliprect); u32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void valtric_map(address_map &map); + void valtric_map(address_map &map) ATTR_COLD; u8 m_valtric_mosaic = 0U; bitmap_rgb32 m_mosaicbitmap = 0; @@ -146,8 +146,8 @@ class butasan_state : public argus_common_state void butasan(machine_config &config); protected: - virtual void video_start() override; - virtual void video_reset() override; + virtual void video_start() override ATTR_COLD; + virtual void video_reset() override ATTR_COLD; private: void bg0_status_w(u8 data); @@ -171,7 +171,7 @@ class butasan_state : public argus_common_state TIMER_DEVICE_CALLBACK_MEMBER(scanline); - void butasan_map(address_map &map); + void butasan_map(address_map &map) ATTR_COLD; required_shared_ptr m_butasan_bg1ram; diff --git a/src/mame/jaleco/armchamp.cpp b/src/mame/jaleco/armchamp.cpp index 838962c211d..6ed58afa84e 100644 --- a/src/mame/jaleco/armchamp.cpp +++ b/src/mame/jaleco/armchamp.cpp @@ -49,17 +49,17 @@ class armchamp_state : public driver_device void armchamp(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: static constexpr XTAL MASTER_CLOCK = 12_MHz_XTAL; uint32_t screen_update_armchamp(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void main_prg(address_map &map); - void main_io(address_map &map); + void main_prg(address_map &map) ATTR_COLD; + void main_io(address_map &map) ATTR_COLD; TILE_GET_INFO_MEMBER(get_tile_info); void vram_w(offs_t offset, uint8_t data); diff --git a/src/mame/jaleco/bestleag.cpp b/src/mame/jaleco/bestleag.cpp index 7a66d50b568..f1abea4e8cd 100644 --- a/src/mame/jaleco/bestleag.cpp +++ b/src/mame/jaleco/bestleag.cpp @@ -72,14 +72,14 @@ class bestleag_state : public driver_device TILE_GET_INFO_MEMBER(get_fg_tile_info); TILEMAP_MAPPER_MEMBER(bsb_bg_scan); - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; uint32_t screen_update_bestleag(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); uint32_t screen_update_bestleaw(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); void bestleag(machine_config &config); void bestleaw(machine_config &config); - void bestleag_map(address_map &map); + void bestleag_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/jaleco/bigstrkb.cpp b/src/mame/jaleco/bigstrkb.cpp index 45d0bad4900..d2ee33df87e 100644 --- a/src/mame/jaleco/bigstrkb.cpp +++ b/src/mame/jaleco/bigstrkb.cpp @@ -53,7 +53,7 @@ class bigstrkb_state : public driver_device void bigstrkb(machine_config &config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -75,7 +75,7 @@ class bigstrkb_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); - void prg_map(address_map &map); + void prg_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/jaleco/blueprnt.cpp b/src/mame/jaleco/blueprnt.cpp index 563ecf028b2..4a46ee158b1 100644 --- a/src/mame/jaleco/blueprnt.cpp +++ b/src/mame/jaleco/blueprnt.cpp @@ -83,9 +83,9 @@ class blueprnt_state : public driver_device void grasspin(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: // device/memory pointers @@ -118,10 +118,10 @@ class blueprnt_state : public driver_device void palette(palette_device &palette) const; uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); - void blueprnt_main_map(address_map &map); - void grasspin_main_map(address_map &map); - void sound_io(address_map &map); - void sound_map(address_map &map); + void blueprnt_main_map(address_map &map) ATTR_COLD; + void grasspin_main_map(address_map &map) ATTR_COLD; + void sound_io(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/jaleco/bnstars.cpp b/src/mame/jaleco/bnstars.cpp index 80bcb4e3fcb..b323dc7f4d5 100644 --- a/src/mame/jaleco/bnstars.cpp +++ b/src/mame/jaleco/bnstars.cpp @@ -175,10 +175,10 @@ class ms32_bnstars_state : public ms32_base_state tilemap_t *m_scroll_tilemap[2]{}; tilemap_t *m_rotate_tilemap[2]{}; - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; template u32 screen_update_dual(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void bnstars_map(address_map &map); - void bnstars_sound_map(address_map &map); + void bnstars_map(address_map &map) ATTR_COLD; + void bnstars_sound_map(address_map &map) ATTR_COLD; void bnstars1_mahjong_select_w(u32 data); diff --git a/src/mame/jaleco/cischeat.h b/src/mame/jaleco/cischeat.h index f1b07416560..6758654df6e 100644 --- a/src/mame/jaleco/cischeat.h +++ b/src/mame/jaleco/cischeat.h @@ -100,22 +100,22 @@ class cischeat_state : public driver_device void bigrun_d65006(machine_config &config); void cischeat_gs88000(machine_config &config); - void bigrun_map(address_map &map); - void bigrun_map2(address_map &map); - void bigrun_map3(address_map &map); - void bigrun_sound_map(address_map &map); - void cischeat_map(address_map &map); - void cischeat_map2(address_map &map); - void cischeat_map3(address_map &map); - void cischeat_sound_map(address_map &map); - void f1gpstar_map(address_map &map); - void f1gpstar_map2(address_map &map); - void f1gpstar_map3(address_map &map); - void f1gpstar_sound_map(address_map &map); - void f1gpstr2_io_map(address_map &map); - void f1gpstr2_map(address_map &map); - void f1gpstr2_sound_map(address_map &map); - void scudhamm_map(address_map &map); + void bigrun_map(address_map &map) ATTR_COLD; + void bigrun_map2(address_map &map) ATTR_COLD; + void bigrun_map3(address_map &map) ATTR_COLD; + void bigrun_sound_map(address_map &map) ATTR_COLD; + void cischeat_map(address_map &map) ATTR_COLD; + void cischeat_map2(address_map &map) ATTR_COLD; + void cischeat_map3(address_map &map) ATTR_COLD; + void cischeat_sound_map(address_map &map) ATTR_COLD; + void f1gpstar_map(address_map &map) ATTR_COLD; + void f1gpstar_map2(address_map &map) ATTR_COLD; + void f1gpstar_map3(address_map &map) ATTR_COLD; + void f1gpstar_sound_map(address_map &map) ATTR_COLD; + void f1gpstr2_io_map(address_map &map) ATTR_COLD; + void f1gpstr2_map(address_map &map) ATTR_COLD; + void f1gpstr2_sound_map(address_map &map) ATTR_COLD; + void scudhamm_map(address_map &map) ATTR_COLD; protected: virtual void machine_start() override @@ -123,7 +123,7 @@ class cischeat_state : public driver_device m_leds.resolve(); m_scudhamm_motor_command = 0; } - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; optional_device_array m_tmap; required_shared_ptr m_ram; @@ -181,7 +181,7 @@ class armchamp2_state : public cischeat_state void output_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); void armchmp2(machine_config &config); - void armchmp2_map(address_map &map); + void armchmp2_map(address_map &map) ATTR_COLD; TIMER_DEVICE_CALLBACK_MEMBER(armchamp2_scanline); ioport_value left_sensor_r(); ioport_value right_sensor_r(); @@ -201,12 +201,12 @@ class wildplt_state : public cischeat_state uint16_t *m_buffer_spriteram = nullptr; std::unique_ptr m_allocated_spriteram; - void wildplt_map(address_map &map); + void wildplt_map(address_map &map) ATTR_COLD; void wildplt(machine_config &config); void sprite_dma_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: uint16_t m_sprite_dma_reg = 0U; @@ -237,7 +237,7 @@ class captflag_state : public cischeat_state void init_vscaptfl(); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: void motor_command_right_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); @@ -249,9 +249,9 @@ class captflag_state : public cischeat_state TIMER_DEVICE_CALLBACK_MEMBER(captflag_scanline); - void captflag_map(address_map &map); - void oki1_map(address_map &map); - void oki2_map(address_map &map); + void captflag_map(address_map &map) ATTR_COLD; + void oki1_map(address_map &map) ATTR_COLD; + void oki2_map(address_map &map) ATTR_COLD; required_device m_hopper; diff --git a/src/mame/jaleco/citycon.cpp b/src/mame/jaleco/citycon.cpp index bb0282162f5..5ae5faaef27 100644 --- a/src/mame/jaleco/citycon.cpp +++ b/src/mame/jaleco/citycon.cpp @@ -44,9 +44,9 @@ class citycon_state : public driver_device void citycon(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_shared_ptr m_videoram; @@ -75,8 +75,8 @@ class citycon_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); inline void changecolor_RRRRGGGGBBBBxxxx(int color, int indx); - void main_map(address_map &map); - void sound_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/jaleco/ddayjlc.cpp b/src/mame/jaleco/ddayjlc.cpp index 54f6074ce4f..cad226eb5f3 100644 --- a/src/mame/jaleco/ddayjlc.cpp +++ b/src/mame/jaleco/ddayjlc.cpp @@ -93,9 +93,9 @@ class ddayjlc_state : public driver_device ioport_value prot_r(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: void prot_w(offs_t offset, uint8_t data); @@ -116,8 +116,8 @@ class ddayjlc_state : public driver_device void ddayjlc_palette(palette_device &palette) const; uint32_t screen_update_ddayjlc(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void vblank_irq(int state); - void main_map(address_map &map); - void sound_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; /* memory pointers */ required_shared_ptr m_mainram; diff --git a/src/mame/jaleco/exerion.cpp b/src/mame/jaleco/exerion.cpp index 5eab6b80d4c..7fdcb046de5 100644 --- a/src/mame/jaleco/exerion.cpp +++ b/src/mame/jaleco/exerion.cpp @@ -172,9 +172,9 @@ class exerion_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(coin_inserted); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: // memory pointers @@ -213,8 +213,8 @@ class exerion_state : public driver_device void palette(palette_device &palette) const; uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void draw_background(bitmap_ind16 &bitmap, const rectangle &cliprect); - void main_map(address_map &map); - void sub_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sub_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/jaleco/fcombat.cpp b/src/mame/jaleco/fcombat.cpp index f9d09d69517..13e5877b181 100644 --- a/src/mame/jaleco/fcombat.cpp +++ b/src/mame/jaleco/fcombat.cpp @@ -68,8 +68,8 @@ class fcombat_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(coin_inserted); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: // memory pointers @@ -113,8 +113,8 @@ class fcombat_state : public driver_device TILE_GET_INFO_MEMBER(get_fg_tile_info); void fcombat_palette(palette_device &palette) const; u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void audio_map(address_map &map); - void main_map(address_map &map); + void audio_map(address_map &map) ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/jaleco/ginganin.cpp b/src/mame/jaleco/ginganin.cpp index 20c850a446d..24fbfb389fa 100644 --- a/src/mame/jaleco/ginganin.cpp +++ b/src/mame/jaleco/ginganin.cpp @@ -103,9 +103,9 @@ class ginganin_state : public driver_device void ginganin(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: // memory pointers @@ -141,8 +141,8 @@ class ginganin_state : public driver_device TILE_GET_INFO_MEMBER(get_txt_tile_info); u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); - void main_map(address_map &map); - void sound_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/jaleco/homerun.cpp b/src/mame/jaleco/homerun.cpp index 40bf5bf299a..a7fa8394d16 100644 --- a/src/mame/jaleco/homerun.cpp +++ b/src/mame/jaleco/homerun.cpp @@ -150,9 +150,9 @@ class homerun_state : public driver_device ioport_value ganjaja_hopper_status_r(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -186,8 +186,8 @@ class homerun_state : public driver_device u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void banking_w(u8 data); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); - void io_map(address_map &map); - void mem_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/jaleco/jalblend.h b/src/mame/jaleco/jalblend.h index 0c1306419f9..f2e5d2407e0 100644 --- a/src/mame/jaleco/jalblend.h +++ b/src/mame/jaleco/jalblend.h @@ -30,8 +30,8 @@ class jaleco_blend_device : public device_t 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; private: template diff --git a/src/mame/jaleco/jaleco_ms32_sysctrl.h b/src/mame/jaleco/jaleco_ms32_sysctrl.h index 14be7a846e5..6f979316a17 100644 --- a/src/mame/jaleco/jaleco_ms32_sysctrl.h +++ b/src/mame/jaleco/jaleco_ms32_sysctrl.h @@ -34,7 +34,7 @@ class jaleco_ms32_sysctrl_device : public device_t jaleco_ms32_sysctrl_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); // I/O operations - void amap(address_map &map); + void amap(address_map &map) ATTR_COLD; auto flip_screen_cb() { return m_flip_screen_cb.bind(); } auto vblank_cb() { return m_vblank_cb.bind(); } auto field_cb() { return m_field_cb.bind(); } @@ -47,9 +47,9 @@ class jaleco_ms32_sysctrl_device : public device_t protected: // device-level overrides //virtual void device_validity_check(validity_checker &valid) const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; TIMER_CALLBACK_MEMBER(prg_timer_tick); diff --git a/src/mame/jaleco/jaleco_vj_qtaro.h b/src/mame/jaleco/jaleco_vj_qtaro.h index 863814a3596..cfa78456df5 100644 --- a/src/mame/jaleco/jaleco_vj_qtaro.h +++ b/src/mame/jaleco/jaleco_vj_qtaro.h @@ -31,8 +31,8 @@ class jaleco_vj_qtaro_device : public device_t void write(uint8_t *data, uint32_t len); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: uint8_t m_int; @@ -54,12 +54,12 @@ class jaleco_vj_king_qtaro_device : public pci_device protected: jaleco_vj_king_qtaro_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; private: - void map(address_map &map); + void map(address_map &map) ATTR_COLD; uint32_t qtaro_fpga_firmware_status_r(offs_t offset); void qtaro_fpga_firmware_status_w(offs_t offset, uint32_t data); diff --git a/src/mame/jaleco/jalmah.cpp b/src/mame/jaleco/jalmah.cpp index c0e469cee18..0235d4c022b 100644 --- a/src/mame/jaleco/jalmah.cpp +++ b/src/mame/jaleco/jalmah.cpp @@ -170,13 +170,13 @@ class jalmah_state : public driver_device void second_mcu_run(); void jalmah(machine_config &config); void jalmahv1(machine_config &config); - void jalmah_map(address_map &map); - void jalmahv1_map(address_map &map); - void oki_map(address_map &map); + void jalmah_map(address_map &map) ATTR_COLD; + void jalmahv1_map(address_map &map) ATTR_COLD; + void oki_map(address_map &map) ATTR_COLD; protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; required_device m_maincpu; required_device m_palette; @@ -252,14 +252,14 @@ class urashima_state : public jalmah_state template TILE_GET_INFO_MEMBER(get_tile_info_urashima); void urashima(machine_config &config); - void urashima_map(address_map &map); + void urashima_map(address_map &map) ATTR_COLD; uint32_t screen_update_urashima(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void urashima_bank_w(uint8_t data); protected: - virtual void video_start() override; - virtual void machine_reset() override; + virtual void video_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_shared_ptr_array m_videoram; diff --git a/src/mame/jaleco/megasys1.h b/src/mame/jaleco/megasys1.h index f14c8b2f4eb..3941eb911d3 100644 --- a/src/mame/jaleco/megasys1.h +++ b/src/mame/jaleco/megasys1.h @@ -60,8 +60,8 @@ class megasys1_state : public driver_device void init_monkelf(); protected: - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; required_device m_maincpu; optional_device m_audiocpu; @@ -81,15 +81,15 @@ class megasys1_state : public driver_device optional_device m_scantimer; required_region_ptr m_rom_maincpu; - void megasys1B_map(address_map &map); - void megasys1C_map(address_map &map); + void megasys1B_map(address_map &map) ATTR_COLD; + void megasys1C_map(address_map &map) ATTR_COLD; void megasys1c_handle_scanline_irq(int scanline); TIMER_DEVICE_CALLBACK_MEMBER(megasys_base_scanline); TIMER_DEVICE_CALLBACK_MEMBER(megasys1B_scanline); - void megasys_base_map(address_map &map); - void megasys1B_sound_map(address_map &map); + void megasys_base_map(address_map &map) ATTR_COLD; + void megasys1B_sound_map(address_map &map) ATTR_COLD; void megasys1_palette(palette_device &palette); @@ -146,8 +146,8 @@ class megasys1_state : public driver_device void priority_create(); - void megasys1B_edfbl_map(address_map &map); - void megasys1B_monkelf_map(address_map &map); + void megasys1B_edfbl_map(address_map &map) ATTR_COLD; + void megasys1B_monkelf_map(address_map &map) ATTR_COLD; }; class megasys1_typea_state : public megasys1_state @@ -176,15 +176,15 @@ class megasys1_typea_state : public megasys1_state void init_lordofkbp(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; - void kickoffb_sound_map(address_map &map); - void p47bl_sound_map(address_map &map); - void p47bl_extracpu_prg_map(address_map &map); - void p47bl_extracpu_io_map(address_map &map); - void megasys1A_map(address_map &map); - void megasys1A_sound_map(address_map &map); + void kickoffb_sound_map(address_map &map) ATTR_COLD; + void p47bl_sound_map(address_map &map) ATTR_COLD; + void p47bl_extracpu_prg_map(address_map &map) ATTR_COLD; + void p47bl_extracpu_io_map(address_map &map) ATTR_COLD; + void megasys1A_map(address_map &map) ATTR_COLD; + void megasys1A_sound_map(address_map &map) ATTR_COLD; void p47bl_adpcm_w(offs_t offset, u8 data); @@ -208,7 +208,7 @@ class megasys1_typea_hachoo_state : public megasys1_typea_state { } protected: - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; }; class megasys1_typed_state : public megasys1_state @@ -234,8 +234,8 @@ class megasys1_typed_state : public megasys1_state INTERRUPT_GEN_MEMBER(megasys1D_irq); - void megasys1D_map(address_map &map); - void megasys1D_oki_map(address_map &map); + void megasys1D_map(address_map &map) ATTR_COLD; + void megasys1D_oki_map(address_map &map) ATTR_COLD; }; @@ -256,9 +256,9 @@ class megasys1_typez_state : public megasys1_state private: void soundlatch_z_w(u16 data); - void megasys1Z_map(address_map &map); - void z80_sound_io_map(address_map &map); - void z80_sound_map(address_map &map); + void megasys1Z_map(address_map &map) ATTR_COLD; + void z80_sound_io_map(address_map &map) ATTR_COLD; + void z80_sound_map(address_map &map) ATTR_COLD; }; @@ -279,8 +279,8 @@ class megasys1_bc_iosim_state : public megasys1_state void system_C_iosim(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; const u8 *m_ip_select_values = nullptr; // System B and C @@ -291,8 +291,8 @@ class megasys1_bc_iosim_state : public megasys1_state static constexpr u8 hayaosi1_seq[7] = { 0x51,0x52,0x53,0x54,0x55, 0xfc,0x06 }; static constexpr u8 chimeraba_seq[7] = { 0x56,0x52,0x53,0x55,0x54, 0xfa,0x06 }; - void megasys1B_iosim_map(address_map &map); - void megasys1C_iosim_map(address_map &map); + void megasys1B_iosim_map(address_map &map) ATTR_COLD; + void megasys1C_iosim_map(address_map &map) ATTR_COLD; u16 ip_select_r(); void ip_select_w(u16 data); @@ -309,8 +309,8 @@ class megasys1_bc_iomcu_state : public megasys1_state void system_C_iomcu(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_iomcu; @@ -325,8 +325,8 @@ class megasys1_bc_iomcu_state : public megasys1_state u8 m_mcu_input_data; u8 m_mcu_io_data; - void megasys1C_iomcu_map(address_map &map); - void iomcu_map(address_map &map); + void megasys1C_iomcu_map(address_map &map) ATTR_COLD; + void iomcu_map(address_map &map) ATTR_COLD; TIMER_DEVICE_CALLBACK_MEMBER(megasys1C_iomcu_scanline); }; diff --git a/src/mame/jaleco/momoko.cpp b/src/mame/jaleco/momoko.cpp index 7ab54e51e56..357bd256824 100644 --- a/src/mame/jaleco/momoko.cpp +++ b/src/mame/jaleco/momoko.cpp @@ -84,8 +84,8 @@ class momoko_state : public driver_device void momoko(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: // memory pointers @@ -136,8 +136,8 @@ class momoko_state : public driver_device void draw_fg_romtilemap(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, int flip); void draw_bg_romtilemap(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, int flip, bool high); - void main_map(address_map &map); - void sound_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/jaleco/ms1_gatearray.h b/src/mame/jaleco/ms1_gatearray.h index 740dae163cb..b0cbdb505f5 100644 --- a/src/mame/jaleco/ms1_gatearray.h +++ b/src/mame/jaleco/ms1_gatearray.h @@ -20,8 +20,8 @@ class megasys1_gatearray_device : public device_t device_t *owner, u32 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; void install_overlay(); u16 gatearray_r(offs_t offset, u16 mem_mask = ~0); diff --git a/src/mame/jaleco/ms1_tmap.h b/src/mame/jaleco/ms1_tmap.h index 1541f8ba3a3..c9557c85986 100644 --- a/src/mame/jaleco/ms1_tmap.h +++ b/src/mame/jaleco/ms1_tmap.h @@ -57,8 +57,8 @@ class megasys1_tilemap_device : public device_t, public device_gfx_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 device_post_load() override; private: diff --git a/src/mame/jaleco/ms32.h b/src/mame/jaleco/ms32.h index d58bf35d7e5..788ac3834d5 100644 --- a/src/mame/jaleco/ms32.h +++ b/src/mame/jaleco/ms32.h @@ -48,10 +48,10 @@ class ms32_base_state : public driver_device void sound_command_w(u32 data); void irq_raise(int level, bool state); void irq_init(); - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; - void base_sound_map(address_map &map); + void base_sound_map(address_map &map) ATTR_COLD; private: u32 m_to_main = 0; @@ -104,10 +104,10 @@ class ms32_state : public ms32_base_state required_device m_ymf; void flipscreen_w(int state); - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; - void ms32_map(address_map &map); - void ms32_sound_map(address_map &map); + void ms32_map(address_map &map) ATTR_COLD; + void ms32_sound_map(address_map &map) ATTR_COLD; private: required_shared_ptr m_roz_ctrl; @@ -185,7 +185,7 @@ class ms32_f1superbattle_state : public ms32_state void init_f1superb(); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: TILE_GET_INFO_MEMBER(get_ms32_extra_tile_info); @@ -194,7 +194,7 @@ class ms32_f1superbattle_state : public ms32_state memory_share_creator m_road_vram; - void f1superb_map(address_map &map); + void f1superb_map(address_map &map) ATTR_COLD; void road_vram_w16(offs_t offset, u16 data, u16 mem_mask = ~0); u16 road_vram_r16(offs_t offset); diff --git a/src/mame/jaleco/ms32_sprite.h b/src/mame/jaleco/ms32_sprite.h index 3a40d5f57bd..3550cb03a2d 100644 --- a/src/mame/jaleco/ms32_sprite.h +++ b/src/mame/jaleco/ms32_sprite.h @@ -77,7 +77,7 @@ class ms32_sprite_device : public device_t, public device_gfx_interface protected: // device_t overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: // decoding info diff --git a/src/mame/jaleco/pturn.cpp b/src/mame/jaleco/pturn.cpp index 2d3b83421f6..cf2adfb4506 100644 --- a/src/mame/jaleco/pturn.cpp +++ b/src/mame/jaleco/pturn.cpp @@ -109,9 +109,9 @@ class pturn_state : public driver_device void pturn(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -153,8 +153,8 @@ class pturn_state : public driver_device INTERRUPT_GEN_MEMBER(sub_intgen); INTERRUPT_GEN_MEMBER(main_intgen); - void main_map(address_map &map); - void sub_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sub_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/jaleco/skyfox.cpp b/src/mame/jaleco/skyfox.cpp index 120914371aa..db4d7ca0978 100644 --- a/src/mame/jaleco/skyfox.cpp +++ b/src/mame/jaleco/skyfox.cpp @@ -60,8 +60,8 @@ class skyfox_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(coin_inserted); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: // devices/memory pointers @@ -82,8 +82,8 @@ class skyfox_state : public driver_device void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); void draw_background(bitmap_ind16 &bitmap, const rectangle &cliprect); - void main_map(address_map &map); - void sound_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/jaleco/tetrisp2.h b/src/mame/jaleco/tetrisp2.h index da0c9f785db..9b9fd7395a7 100644 --- a/src/mame/jaleco/tetrisp2.h +++ b/src/mame/jaleco/tetrisp2.h @@ -92,10 +92,10 @@ class tetrisp2_state : public driver_device u32 screen_update_rockntread(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void init_rockn_timer(); - void nndmseal_map(address_map &map); - void rockn1_map(address_map &map); - void rockn2_map(address_map &map); - void tetrisp2_map(address_map &map); + void nndmseal_map(address_map &map) ATTR_COLD; + void rockn1_map(address_map &map) ATTR_COLD; + void rockn2_map(address_map &map) ATTR_COLD; + void tetrisp2_map(address_map &map) ATTR_COLD; virtual void machine_start() override { m_leds.resolve(); } @@ -181,8 +181,8 @@ class rocknms_state : public tetrisp2_state u32 screen_update_rocknms_left(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); u32 screen_update_rocknms_right(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void rocknms_main_map(address_map &map); - void rocknms_sub_map(address_map &map); + void rocknms_main_map(address_map &map) ATTR_COLD; + void rocknms_sub_map(address_map &map) ATTR_COLD; u16 rocknms_main2sub_r(); void rocknms_main2sub_w(offs_t offset, u16 data, u16 mem_mask = ~0); @@ -241,8 +241,8 @@ class stepstag_state : public tetrisp2_state DECLARE_VIDEO_START(stepstag); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: u16 stepstag_coins_r(); @@ -278,9 +278,9 @@ class stepstag_state : public tetrisp2_state u32 screen_update_nop(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void stepstag_map(address_map &map); - void stepstag_sub_map(address_map &map); - void vjdash_map(address_map &map); + void stepstag_map(address_map &map) ATTR_COLD; + void stepstag_sub_map(address_map &map) ATTR_COLD; + void vjdash_map(address_map &map) ATTR_COLD; void field_cb(int state); void setup_non_sysctrl_screen(machine_config &config, screen_device *screen, const XTAL xtal); diff --git a/src/mame/jpm/guab.cpp b/src/mame/jpm/guab.cpp index 3adc8ccef20..b1e3fe5f739 100644 --- a/src/mame/jpm/guab.cpp +++ b/src/mame/jpm/guab.cpp @@ -82,7 +82,7 @@ class guab_state : public driver_device void guab(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: EF9369_COLOR_UPDATE(ef9369_color_update); @@ -104,7 +104,7 @@ class guab_state : public driver_device static void floppy_formats(format_registration &fr); - void guab_map(address_map &map); + void guab_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_tms34061; diff --git a/src/mame/jpm/jpmimpct.h b/src/mame/jpm/jpmimpct.h index 6f636f6af4a..8ac1100350f 100644 --- a/src/mame/jpm/jpmimpct.h +++ b/src/mame/jpm/jpmimpct.h @@ -42,8 +42,8 @@ class jpmtouch_device : public device_t, protected: jpmtouch_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 void tra_callback() override; virtual void tra_complete() override; @@ -110,7 +110,7 @@ class jpmimpct_state : public driver_device uint16_t unk_r(); void unk_w(uint16_t data); - void common_map(address_map &map); + void common_map(address_map &map) ATTR_COLD; int m_lamp_strobe = 0; @@ -122,8 +122,8 @@ class jpmimpct_state : public driver_device virtual void update_irqs(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: template void reel_optic_cb(int state) { if (state) m_optic_pattern |= (1 << N); else m_optic_pattern &= ~(1 << N); } @@ -153,7 +153,7 @@ class jpmimpct_state : public driver_device void duart_irq_handler(int state); - void impact_non_video_map(address_map &map); + void impact_non_video_map(address_map &map) ATTR_COLD; uint8_t m_Lamps[256]{}; uint8_t m_optic_pattern = 0; @@ -198,14 +198,14 @@ class jpmimpct_video_state : public jpmimpct_state DECLARE_INPUT_CHANGED_MEMBER(touch_port_changed); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; - void impact_video_map(address_map &map); + void impact_video_map(address_map &map) ATTR_COLD; void slides_video_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); - void tms_program_map(address_map &map); + void tms_program_map(address_map &map) ATTR_COLD; void tms_irq(int state); TMS340X0_TO_SHIFTREG_CB_MEMBER(to_shiftreg); diff --git a/src/mame/jpm/jpmmps.cpp b/src/mame/jpm/jpmmps.cpp index d57162dc6d2..10d418b6515 100644 --- a/src/mame/jpm/jpmmps.cpp +++ b/src/mame/jpm/jpmmps.cpp @@ -156,10 +156,10 @@ class jpmmps_state : public driver_device private: uint8_t m_sound_buffer = 0; uint8_t m_psg_latch = 0; - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; - void jpmmps_io_map(address_map &map); - void jpmmps_map(address_map &map); + void jpmmps_io_map(address_map &map) ATTR_COLD; + void jpmmps_map(address_map &map) ATTR_COLD; // devices required_device m_maincpu; diff --git a/src/mame/jpm/jpms80.cpp b/src/mame/jpm/jpms80.cpp index ed6f4b6ca32..800ecefc41c 100644 --- a/src/mame/jpm/jpms80.cpp +++ b/src/mame/jpm/jpms80.cpp @@ -64,15 +64,15 @@ class jpms80_state : public driver_device private: - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; void int1_enable_w(int state); void int2_enable_w(int state); void watchdog_w(int state); void io_enable_w(int state); - void jpms80_io_map(address_map &map); - void jpms80_map(address_map &map); + void jpms80_io_map(address_map &map) ATTR_COLD; + void jpms80_map(address_map &map) ATTR_COLD; // devices required_device m_maincpu; diff --git a/src/mame/jpm/jpmsru.cpp b/src/mame/jpm/jpmsru.cpp index 2a0a564f0de..7b6fd0d9162 100644 --- a/src/mame/jpm/jpmsru.cpp +++ b/src/mame/jpm/jpmsru.cpp @@ -113,7 +113,7 @@ class jpmsru_state : public driver_device template int opto_r() { return m_opto[N]; } protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; virtual void device_post_load() override; template void opto_cb(int state) { m_opto[N] = state; } @@ -148,20 +148,20 @@ class jpmsru_state : public driver_device void out_50p_lockout_w(offs_t offset, uint8_t data); void out_logicext_w(offs_t offset, uint8_t data); - void jpmsru_3k_map(address_map &map); - void jpmsru_4k_map(address_map &map); - void jpmsru_6k_map(address_map &map); - void jpmsru_io(address_map &map); - void jpmsru_busext_io(address_map &map); - void outputs_ewn(address_map &map); - void outputs_ewn2(address_map &map); - void outputs_ndu(address_map &map); - void outputs_dud(address_map &map); - void outputs_lan(address_map &map); - void outputs_super2(address_map &map); - void outputs_ews(address_map &map); - void outputs_sup2p(address_map &map); - void outputs_lal(address_map &map); + void jpmsru_3k_map(address_map &map) ATTR_COLD; + void jpmsru_4k_map(address_map &map) ATTR_COLD; + void jpmsru_6k_map(address_map &map) ATTR_COLD; + void jpmsru_io(address_map &map) ATTR_COLD; + void jpmsru_busext_io(address_map &map) ATTR_COLD; + void outputs_ewn(address_map &map) ATTR_COLD; + void outputs_ewn2(address_map &map) ATTR_COLD; + void outputs_ndu(address_map &map) ATTR_COLD; + void outputs_dud(address_map &map) ATTR_COLD; + void outputs_lan(address_map &map) ATTR_COLD; + void outputs_super2(address_map &map) ATTR_COLD; + void outputs_ews(address_map &map) ATTR_COLD; + void outputs_sup2p(address_map &map) ATTR_COLD; + void outputs_lal(address_map &map) ATTR_COLD; uint8_t m_int1; uint8_t m_int2; @@ -200,7 +200,7 @@ class jpmsru_dac_state : public jpmsru_state void lc(machine_config &config); private: - void outputs_lc(address_map &map); + void outputs_lc(address_map &map) ATTR_COLD; required_device m_dac; }; diff --git a/src/mame/jpm/jpmsys5.h b/src/mame/jpm/jpmsys5.h index 86548ff2f4e..da2fb2e1f94 100644 --- a/src/mame/jpm/jpmsys5.h +++ b/src/mame/jpm/jpmsys5.h @@ -64,8 +64,8 @@ class jpmsys5_state : public driver_device void u29_portb_w(uint8_t data); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; void jpmsys5_common(machine_config &config); void ymsound(machine_config &config); @@ -90,10 +90,10 @@ class jpmsys5_state : public driver_device optional_ioport m_strobe4; optional_ioport m_unknown_port; - void jpm_sys5_common_map(address_map &map); + void jpm_sys5_common_map(address_map &map) ATTR_COLD; protected: - void m68000_ym_map(address_map &map); + void m68000_ym_map(address_map &map) ATTR_COLD; private: template void reel_optic_cb(int state) { if (state) m_optic_pattern |= (1 << ((7-N)^3)); else m_optic_pattern &= ~(1 << ((7-N)^3)); } @@ -129,8 +129,8 @@ class jpmsys5_state : public driver_device void sys5_draw_lamps(); - void m68000_awp_map(address_map &map); - void m68000_awp_map_saa(address_map &map); + void m68000_awp_map(address_map &map) ATTR_COLD; + void m68000_awp_map_saa(address_map &map) ATTR_COLD; required_ioport m_direct_port; optional_device m_meters; //jpmsys5v doesn't use this @@ -167,8 +167,8 @@ class jpmsys5v_state : public jpmsys5_state void jpmsys5v(machine_config &config); private: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; void tmsvideo(machine_config &config); @@ -180,7 +180,7 @@ class jpmsys5v_state : public jpmsys5_state uint32_t screen_update_jpmsys5v(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); TIMER_CALLBACK_MEMBER(touch_cb); - void m68000_map(address_map &map); + void m68000_map(address_map &map) ATTR_COLD; required_device m_tms34061; required_device m_palette; diff --git a/src/mame/jpm/jpmsys7.cpp b/src/mame/jpm/jpmsys7.cpp index a9fcca9959c..18cd20cc48d 100644 --- a/src/mame/jpm/jpmsys7.cpp +++ b/src/mame/jpm/jpmsys7.cpp @@ -38,7 +38,7 @@ class jpmsys7_state : public driver_device void jpmsys7(machine_config &config); private: - void jpmsys7_map(address_map &map); + void jpmsys7_map(address_map &map) ATTR_COLD; // devices required_device m_maincpu; diff --git a/src/mame/jpm/pluto5.cpp b/src/mame/jpm/pluto5.cpp index b630fbd30b9..843ceca3d1f 100644 --- a/src/mame/jpm/pluto5.cpp +++ b/src/mame/jpm/pluto5.cpp @@ -210,12 +210,12 @@ class pluto5_state : public driver_device uint16_t pluto5_mem_r(offs_t offset, uint16_t mem_mask = ~0); void pluto5_mem_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); - void pluto5_map(address_map &map); + void pluto5_map(address_map &map) ATTR_COLD; // devices required_device m_maincpu; - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; }; uint16_t pluto5_state::pluto5_mem_r(offs_t offset, uint16_t mem_mask) diff --git a/src/mame/jpm/pluto6.cpp b/src/mame/jpm/pluto6.cpp index 533e2109f6d..c2b7c5d9d18 100644 --- a/src/mame/jpm/pluto6.cpp +++ b/src/mame/jpm/pluto6.cpp @@ -49,12 +49,12 @@ class pluto6_state : public driver_device void pluto6(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_maincpu; - void program_map(address_map &map); + void program_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/kaneko/airbustr.cpp b/src/mame/kaneko/airbustr.cpp index be50f2f636a..a120df83885 100644 --- a/src/mame/kaneko/airbustr.cpp +++ b/src/mame/kaneko/airbustr.cpp @@ -263,9 +263,9 @@ class airbustr_state : public driver_device void airbustrb(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: // memory pointers @@ -311,13 +311,13 @@ class airbustr_state : public driver_device INTERRUPT_GEN_MEMBER(slave_interrupt); TIMER_DEVICE_CALLBACK_MEMBER(scanline); - void master_map(address_map &map); - void master_prot_map(address_map &map); - void master_io_map(address_map &map); - void slave_map(address_map &map); - void slave_io_map(address_map &map); - void sound_map(address_map &map); - void sound_io_map(address_map &map); + void master_map(address_map &map) ATTR_COLD; + void master_prot_map(address_map &map) ATTR_COLD; + void master_io_map(address_map &map) ATTR_COLD; + void slave_map(address_map &map) ATTR_COLD; + void slave_io_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; + void sound_io_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/kaneko/djboy.cpp b/src/mame/kaneko/djboy.cpp index 9b89f00c4ca..bf7dcedc52f 100644 --- a/src/mame/kaneko/djboy.cpp +++ b/src/mame/kaneko/djboy.cpp @@ -188,9 +188,9 @@ class djboy_state : public driver_device void init_djboyj(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: //static constexpr unsigned PROT_OUTPUT_BUFFER_SIZE = 8; @@ -216,12 +216,12 @@ class djboy_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void screen_vblank(int state); TIMER_DEVICE_CALLBACK_MEMBER(scanline); - void mastercpu_am(address_map &map); - void mastercpu_port_am(address_map &map); - void slavecpu_am(address_map &map); - void slavecpu_port_am(address_map &map); - void soundcpu_am(address_map &map); - void soundcpu_port_am(address_map &map); + void mastercpu_am(address_map &map) ATTR_COLD; + void mastercpu_port_am(address_map &map) ATTR_COLD; + void slavecpu_am(address_map &map) ATTR_COLD; + void slavecpu_port_am(address_map &map) ATTR_COLD; + void soundcpu_am(address_map &map) ATTR_COLD; + void soundcpu_port_am(address_map &map) ATTR_COLD; // devices required_device m_mastercpu; diff --git a/src/mame/kaneko/expro02.cpp b/src/mame/kaneko/expro02.cpp index 42dc23243c9..56ee23f0426 100644 --- a/src/mame/kaneko/expro02.cpp +++ b/src/mame/kaneko/expro02.cpp @@ -255,7 +255,7 @@ class expro02_state : public driver_device void init_expro02(); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_maincpu; @@ -289,18 +289,18 @@ class expro02_state : public driver_device // comad uint16_t comad_timer_r(); uint8_t comad_okim6295_r(); - void comad_map(address_map &map); - void expro02_map(address_map &map); - void expro02_video_base_map(address_map &map); - void expro02_video_base_map_noview2(address_map &map); - void fantasia_map(address_map &map); - void fantsia2_map(address_map &map); - void galhustl_map(address_map &map); - void oki_map(address_map &map); - void smissw_map(address_map &map); - void supmodel_map(address_map &map); - void supmodl2_map(address_map &map); - void zipzap_map(address_map &map); + void comad_map(address_map &map) ATTR_COLD; + void expro02_map(address_map &map) ATTR_COLD; + void expro02_video_base_map(address_map &map) ATTR_COLD; + void expro02_video_base_map_noview2(address_map &map) ATTR_COLD; + void fantasia_map(address_map &map) ATTR_COLD; + void fantsia2_map(address_map &map) ATTR_COLD; + void galhustl_map(address_map &map) ATTR_COLD; + void oki_map(address_map &map) ATTR_COLD; + void smissw_map(address_map &map) ATTR_COLD; + void supmodel_map(address_map &map) ATTR_COLD; + void supmodl2_map(address_map &map) ATTR_COLD; + void zipzap_map(address_map &map) ATTR_COLD; }; /* some weird logic needed for Gals Panic on the EXPRO02 board */ diff --git a/src/mame/kaneko/galpani2.h b/src/mame/kaneko/galpani2.h index 275b236d4db..093f8d34064 100644 --- a/src/mame/kaneko/galpani2.h +++ b/src/mame/kaneko/galpani2.h @@ -68,8 +68,8 @@ class galpani2_state : public driver_device void galpani2_oki1_bank_w(uint8_t data); void galpani2_oki2_bank_w(uint8_t data); void subdatabank_select_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; uint32_t screen_update_galpani2(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); void copybg8(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect, int layer); void copybg15(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); @@ -78,8 +78,8 @@ class galpani2_state : public driver_device TIMER_DEVICE_CALLBACK_MEMBER(galpani2_interrupt2); void galpani2_mcu_nmi1(); void galpani2_mcu_nmi2(); - void galpani2_mem1(address_map &map); - void galpani2_mem2(address_map &map); + void galpani2_mem1(address_map &map) ATTR_COLD; + void galpani2_mem2(address_map &map) ATTR_COLD; }; #endif // MAME_KANEKO_GALPANI2_H diff --git a/src/mame/kaneko/galpani3.cpp b/src/mame/kaneko/galpani3.cpp index 1038be81896..480264fa260 100644 --- a/src/mame/kaneko/galpani3.cpp +++ b/src/mame/kaneko/galpani3.cpp @@ -119,11 +119,11 @@ class galpani3_state : public driver_device void galpani3_priority_buffer_scrollx_w(uint16_t data); void galpani3_priority_buffer_scrolly_w(uint16_t data); - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; uint32_t screen_update_galpani3(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); TIMER_DEVICE_CALLBACK_MEMBER(galpani3_vblank); - void galpani3_map(address_map &map); + void galpani3_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/kaneko/galpanic.cpp b/src/mame/kaneko/galpanic.cpp index 1352424cb06..1090fbcba68 100644 --- a/src/mame/kaneko/galpanic.cpp +++ b/src/mame/kaneko/galpanic.cpp @@ -101,8 +101,8 @@ class galpanic_state : public driver_device void galpanic(machine_config &config); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -127,9 +127,9 @@ class galpanic_state : public driver_device TIMER_DEVICE_CALLBACK_MEMBER(scanline); void draw_fgbitmap(bitmap_ind16 &bitmap, const rectangle &cliprect); - void galpanic_map(address_map &map); - void oki_map(address_map &map); - void galpanica_map(address_map &map); + void galpanic_map(address_map &map) ATTR_COLD; + void oki_map(address_map &map) ATTR_COLD; + void galpanica_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/kaneko/galpanic_ms.cpp b/src/mame/kaneko/galpanic_ms.cpp index 9764c8d479d..83227d8c597 100644 --- a/src/mame/kaneko/galpanic_ms.cpp +++ b/src/mame/kaneko/galpanic_ms.cpp @@ -84,9 +84,9 @@ class galspanic_ms_state : public driver_device required_device m_soundrom; required_device m_soundlatch; - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; void galspanic_ms_palette(palette_device &palette) const; uint32_t screen_update_backgrounds(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); @@ -94,9 +94,9 @@ class galspanic_ms_state : public driver_device // comad uint16_t comad_timer_r(); - void newquiz_map(address_map &map); - void sound_map(address_map &map); - void soundrom_map(address_map &map); + void newquiz_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; + void soundrom_map(address_map &map) ATTR_COLD; uint8_t unk_r() { diff --git a/src/mame/kaneko/hvyunit.cpp b/src/mame/kaneko/hvyunit.cpp index f4f5404504d..cd29029504f 100644 --- a/src/mame/kaneko/hvyunit.cpp +++ b/src/mame/kaneko/hvyunit.cpp @@ -131,20 +131,20 @@ class hvyunit_state : public driver_device TILE_GET_INFO_MEMBER(get_bg_tile_info); - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void screen_vblank(int state); TIMER_DEVICE_CALLBACK_MEMBER(scanline); - void master_io(address_map &map); - void master_memory(address_map &map); - void slave_io(address_map &map); - void slave_memory(address_map &map); - void sound_io(address_map &map); - void sound_memory(address_map &map); + void master_io(address_map &map) ATTR_COLD; + void master_memory(address_map &map) ATTR_COLD; + void slave_io(address_map &map) ATTR_COLD; + void slave_memory(address_map &map) ATTR_COLD; + void sound_io(address_map &map) ATTR_COLD; + void sound_memory(address_map &map) ATTR_COLD; // Devices required_device m_mastercpu; diff --git a/src/mame/kaneko/jchan.cpp b/src/mame/kaneko/jchan.cpp index f018f115e16..09d9e957682 100644 --- a/src/mame/kaneko/jchan.cpp +++ b/src/mame/kaneko/jchan.cpp @@ -222,13 +222,13 @@ class jchan_state : public driver_device void sub2main_cmd_w(offs_t offset, u16 data, u16 mem_mask = ~0); template void sknsspr_sprite32regs_w(offs_t offset, u16 data, u16 mem_mask = ~0); - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); TIMER_DEVICE_CALLBACK_MEMBER(vblank); - void jchan_main(address_map &map); - void jchan_sub(address_map &map); + void jchan_main(address_map &map) ATTR_COLD; + void jchan_sub(address_map &map) ATTR_COLD; }; diff --git a/src/mame/kaneko/kan_pand.h b/src/mame/kaneko/kan_pand.h index 8f724897e55..866aea2f5fc 100644 --- a/src/mame/kaneko/kan_pand.h +++ b/src/mame/kaneko/kan_pand.h @@ -50,8 +50,8 @@ class kaneko_pandora_device : public device_t, 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; void draw( bitmap_ind16 &bitmap, const rectangle &cliprect ); diff --git a/src/mame/kaneko/kaneko16.h b/src/mame/kaneko/kaneko16.h index 050a74ad650..fa38b935688 100644 --- a/src/mame/kaneko/kaneko16.h +++ b/src/mame/kaneko/kaneko16.h @@ -121,7 +121,7 @@ class kaneko16_state : public driver_device DECLARE_MACHINE_RESET(gtmr); DECLARE_MACHINE_RESET(mgcrystl); - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); template @@ -132,8 +132,8 @@ class kaneko16_state : public driver_device template void fill_bitmap(BitmapClass &bitmap, const rectangle &cliprect); - void gtmr_oki1_map(address_map &map); - void gtmr_oki2_map(address_map &map); + void gtmr_oki1_map(address_map &map) ATTR_COLD; + void gtmr_oki2_map(address_map &map) ATTR_COLD; private: optional_device m_audiocpu; @@ -143,13 +143,13 @@ class kaneko16_state : public driver_device void eeprom_w(u8 data); void eeprom_cs_w(u8 data); - void bakubrkr_map(address_map &map); - void bakubrkr_oki1_map(address_map &map); - void blazeon_map(address_map &map); - void blazeon_soundmem(address_map &map); - void blazeon_soundport(address_map &map); - void mgcrystl_map(address_map &map); - void wingforc_soundport(address_map &map); + void bakubrkr_map(address_map &map) ATTR_COLD; + void bakubrkr_oki1_map(address_map &map) ATTR_COLD; + void blazeon_map(address_map &map) ATTR_COLD; + void blazeon_soundmem(address_map &map) ATTR_COLD; + void blazeon_soundport(address_map &map) ATTR_COLD; + void mgcrystl_map(address_map &map) ATTR_COLD; + void wingforc_soundport(address_map &map) ATTR_COLD; }; class kaneko16_gtmr_state : public kaneko16_state @@ -175,10 +175,10 @@ class kaneko16_gtmr_state : public kaneko16_state u16 gtmr2_wheel_r(); u16 gtmr2_IN1_r(); - void bloodwar_map(address_map &map); - void bonkadv_map(address_map &map); - void gtmr2_map(address_map &map); - void gtmr_map(address_map &map); + void bloodwar_map(address_map &map) ATTR_COLD; + void bonkadv_map(address_map &map) ATTR_COLD; + void gtmr2_map(address_map &map) ATTR_COLD; + void gtmr_map(address_map &map) ATTR_COLD; }; class kaneko16_berlwall_state : public kaneko16_state @@ -198,7 +198,7 @@ class kaneko16_berlwall_state : public kaneko16_state void berlwall(machine_config &config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: optional_shared_ptr m_bg15_scroll; @@ -225,7 +225,7 @@ class kaneko16_berlwall_state : public kaneko16_state void render_15bpp_bitmap(bitmap_rgb32 &bitmap, const rectangle &cliprect); void patch_protection(u32 bra_offset,u16 bra_value,u16 checksum); - void berlwall_map(address_map &map); + void berlwall_map(address_map &map) ATTR_COLD; }; class kaneko16_shogwarr_state : public kaneko16_state @@ -249,8 +249,8 @@ class kaneko16_shogwarr_state : public kaneko16_state void shogwarr_oki_bank_w(u8 data); - void brapboys_oki2_map(address_map &map); - void shogwarr_map(address_map &map); + void brapboys_oki2_map(address_map &map) ATTR_COLD; + void shogwarr_map(address_map &map) ATTR_COLD; }; #endif // MAME_KANEKO_KANEKO16_H diff --git a/src/mame/kaneko/kaneko_calc3.h b/src/mame/kaneko/kaneko_calc3.h index de3d0bf33e8..6112222ffb6 100644 --- a/src/mame/kaneko/kaneko_calc3.h +++ b/src/mame/kaneko/kaneko_calc3.h @@ -31,8 +31,8 @@ class kaneko_calc3_device : public device_t void mcu_run(); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; TIMER_CALLBACK_MEMBER(mcu_run_trigger); diff --git a/src/mame/kaneko/kaneko_grap2.h b/src/mame/kaneko/kaneko_grap2.h index 1fc78a06001..d02fa6d3bdd 100644 --- a/src/mame/kaneko/kaneko_grap2.h +++ b/src/mame/kaneko/kaneko_grap2.h @@ -19,7 +19,7 @@ class kaneko_grap2_device : public device_t, public device_rom_interface<32>, pu uint16_t regs1_r(offs_t offset, uint16_t mem_mask = ~0); void regs1_go_w(uint16_t data); - void grap2_map(address_map &map); + void grap2_map(address_map &map) ATTR_COLD; void do_rle(uint32_t address); void set_color_555(pen_t color, int rshift, int gshift, int bshift, uint16_t data); @@ -68,8 +68,8 @@ class kaneko_grap2_device : public device_t, public device_rom_interface<32>, pu std::unique_ptr m_framebuffer_unk2; protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; // device_palette_interface overrides virtual uint32_t palette_entries() const noexcept override { return PALETTE_SIZE; } diff --git a/src/mame/kaneko/kaneko_hit.h b/src/mame/kaneko/kaneko_hit.h index ea1b721187a..bae30a25636 100644 --- a/src/mame/kaneko/kaneko_hit.h +++ b/src/mame/kaneko/kaneko_hit.h @@ -25,8 +25,8 @@ class kaneko_hit_device : public device_t void kaneko_hit_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: struct calc1_hit_t diff --git a/src/mame/kaneko/kaneko_spr.h b/src/mame/kaneko/kaneko_spr.h index 31ae6a8d6c8..1e7caa16ac3 100644 --- a/src/mame/kaneko/kaneko_spr.h +++ b/src/mame/kaneko/kaneko_spr.h @@ -67,8 +67,8 @@ class kaneko16_sprite_device : public device_t, public device_gfx_interface, pub device_t *owner, u32 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; // flip latching (set when declaring device in MCFG ) probably needs figuring out properly, only brapboys wants it? @@ -127,7 +127,7 @@ class kaneko_vu002_sprite_device : public kaneko16_sprite_device int get_sprite_type(void) override{ return 0; } protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; }; DECLARE_DEVICE_TYPE(KANEKO_VU002_SPRITE, kaneko_vu002_sprite_device) @@ -146,7 +146,7 @@ class kaneko_kc002_sprite_device : public kaneko16_sprite_device int get_sprite_type(void) override{ return 1; } protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; }; DECLARE_DEVICE_TYPE(KANEKO_KC002_SPRITE, kaneko_kc002_sprite_device) diff --git a/src/mame/kaneko/kaneko_tmap.h b/src/mame/kaneko/kaneko_tmap.h index 422c7a76eeb..869e5e2e10d 100644 --- a/src/mame/kaneko/kaneko_tmap.h +++ b/src/mame/kaneko/kaneko_tmap.h @@ -51,7 +51,7 @@ class kaneko_view2_tilemap_device : public device_t, public device_gfx_interface // access - void vram_map(address_map &map); + void vram_map(address_map &map) ATTR_COLD; u16 regs_r(offs_t offset); void regs_w(offs_t offset, u16 data, u16 mem_mask = u16(~0)); @@ -71,8 +71,8 @@ class kaneko_view2_tilemap_device : public device_t, public device_gfx_interface void mark_layer_dirty(u8 Layer); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: template TILE_GET_INFO_MEMBER(get_tile_info); diff --git a/src/mame/kaneko/kaneko_toybox.h b/src/mame/kaneko/kaneko_toybox.h index 5f3a1d62290..5afcf646926 100644 --- a/src/mame/kaneko/kaneko_toybox.h +++ b/src/mame/kaneko/kaneko_toybox.h @@ -39,8 +39,8 @@ class kaneko_toybox_device : public device_t uint16_t mcu_status_r(); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: required_device m_eeprom; diff --git a/src/mame/kaneko/sandscrp.cpp b/src/mame/kaneko/sandscrp.cpp index 06bd24a7f91..235eb2ecba8 100644 --- a/src/mame/kaneko/sandscrp.cpp +++ b/src/mame/kaneko/sandscrp.cpp @@ -131,16 +131,16 @@ class sandscrp_state : public driver_device void bankswitch_w(u8 data); u8 latchstatus_r(); - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void screen_vblank(int state); INTERRUPT_GEN_MEMBER(interrupt); void update_irq_state(); - void sandscrp_mem(address_map &map); - void sandscrp_soundmem(address_map &map); - void sandscrp_soundport(address_map &map); + void sandscrp_mem(address_map &map) ATTR_COLD; + void sandscrp_soundmem(address_map &map) ATTR_COLD; + void sandscrp_soundport(address_map &map) ATTR_COLD; }; diff --git a/src/mame/kaneko/sknsspr.h b/src/mame/kaneko/sknsspr.h index 20a9c78f901..cbf6c73b932 100644 --- a/src/mame/kaneko/sknsspr.h +++ b/src/mame/kaneko/sknsspr.h @@ -17,8 +17,8 @@ class sknsspr_device : public device_t, public device_video_interface, public de void skns_sprite_kludge(int x, int y); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: static constexpr unsigned SUPRNOVA_DECODE_BUFFER_SIZE = 0x2000; diff --git a/src/mame/kaneko/snowbros.h b/src/mame/kaneko/snowbros.h index d85fc93eb55..a915d5bf782 100644 --- a/src/mame/kaneko/snowbros.h +++ b/src/mame/kaneko/snowbros.h @@ -110,20 +110,20 @@ class snowbros_state : public driver_device void sb3_play_music(int data); void sb3_play_sound(int data); - void finalttr_map(address_map &map); - void honeydol_map(address_map &map); - void honeydol_sound_io_map(address_map &map); - void honeydol_sound_map(address_map &map); - void hyperpac_map(address_map &map); - void hyperpac_sound_map(address_map &map); - void snowbros3_map(address_map &map); - void snowbros_map(address_map &map); - void sound_io_map(address_map &map); - void sound_map(address_map &map); - void twinadv_map(address_map &map); - void twinadv_sound_io_map(address_map &map); - void wintbob_map(address_map &map); - void yutnori_map(address_map &map); + void finalttr_map(address_map &map) ATTR_COLD; + void honeydol_map(address_map &map) ATTR_COLD; + void honeydol_sound_io_map(address_map &map) ATTR_COLD; + void honeydol_sound_map(address_map &map) ATTR_COLD; + void hyperpac_map(address_map &map) ATTR_COLD; + void hyperpac_sound_map(address_map &map) ATTR_COLD; + void snowbros3_map(address_map &map) ATTR_COLD; + void snowbros_map(address_map &map) ATTR_COLD; + void sound_io_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; + void twinadv_map(address_map &map) ATTR_COLD; + void twinadv_sound_io_map(address_map &map) ATTR_COLD; + void wintbob_map(address_map &map) ATTR_COLD; + void yutnori_map(address_map &map) ATTR_COLD; }; #endif // MAME_KANEKO_SNOWBROS_H diff --git a/src/mame/kaneko/suprnova.h b/src/mame/kaneko/suprnova.h index df8f4ecd67b..291e666612e 100644 --- a/src/mame/kaneko/suprnova.h +++ b/src/mame/kaneko/suprnova.h @@ -163,10 +163,10 @@ class skns_state : public driver_device uint32_t sengekis_speedup_r(); uint32_t sengekij_speedup_r(); - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; - virtual void video_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; + virtual void video_reset() override ATTR_COLD; DECLARE_MACHINE_RESET(sknsa); DECLARE_MACHINE_RESET(sknsj); DECLARE_MACHINE_RESET(sknsu); @@ -189,7 +189,7 @@ class skns_state : public driver_device void init_drc(); void set_drc_pcflush(uint32_t addr); - void skns_map(address_map &map); + void skns_map(address_map &map) ATTR_COLD; }; #endif // MAME_KANEKO_SUPRNOVA_H diff --git a/src/mame/kawai/acr20.cpp b/src/mame/kawai/acr20.cpp index 2df36272b66..1b3cb59a2b2 100644 --- a/src/mame/kawai/acr20.cpp +++ b/src/mame/kawai/acr20.cpp @@ -23,7 +23,7 @@ class acr20_state : public driver_device void acr20(machine_config &config); private: - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; }; diff --git a/src/mame/kawai/k1.cpp b/src/mame/kawai/k1.cpp index aa3de7e1de0..655162e86a3 100644 --- a/src/mame/kawai/k1.cpp +++ b/src/mame/kawai/k1.cpp @@ -27,8 +27,8 @@ class kawai_k1_state : public driver_device void k1m(machine_config &config); private: - void k1_map(address_map &map); - void k1m_map(address_map &map); + void k1_map(address_map &map) ATTR_COLD; + void k1m_map(address_map &map) ATTR_COLD; required_device m_mpu; }; diff --git a/src/mame/kawai/k4.cpp b/src/mame/kawai/k4.cpp index eaffed4882a..3e3a6c6a11b 100644 --- a/src/mame/kawai/k4.cpp +++ b/src/mame/kawai/k4.cpp @@ -25,7 +25,7 @@ class kawai_k4_state : public driver_device void k4(machine_config &config); private: - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; required_device m_mpu; }; diff --git a/src/mame/kawai/k5.cpp b/src/mame/kawai/k5.cpp index 87c69c194dc..d753eb9b15d 100644 --- a/src/mame/kawai/k5.cpp +++ b/src/mame/kawai/k5.cpp @@ -25,8 +25,8 @@ class kawai_k5_state : public driver_device void k5(machine_config &config); private: - void mem_map(address_map &map); - void lcd_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void lcd_map(address_map &map) ATTR_COLD; required_device m_maincpu; }; diff --git a/src/mame/kawai/ksp10.cpp b/src/mame/kawai/ksp10.cpp index 07e854e21a2..9acb8959a7f 100644 --- a/src/mame/kawai/ksp10.cpp +++ b/src/mame/kawai/ksp10.cpp @@ -24,7 +24,7 @@ class kawai_ksp10_state : public driver_device void ksp10(machine_config &config); private: - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; }; diff --git a/src/mame/kawai/mb63h158.h b/src/mame/kawai/mb63h158.h index abacad27925..95275ab0568 100644 --- a/src/mame/kawai/mb63h158.h +++ b/src/mame/kawai/mb63h158.h @@ -28,8 +28,8 @@ class mb63h158_device : public device_t protected: // device-specific 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; private: // TODO diff --git a/src/mame/kawai/r100.cpp b/src/mame/kawai/r100.cpp index 431c76417b1..930f3309965 100644 --- a/src/mame/kawai/r100.cpp +++ b/src/mame/kawai/r100.cpp @@ -30,7 +30,7 @@ class kawai_r100_state : public driver_device void r100(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: HD44780_PIXEL_UPDATE(pixel_update); @@ -41,8 +41,8 @@ class kawai_r100_state : public driver_device void p3_w(u8 data); void buffer_w(u8 data); - void main_map(address_map &map); - void data_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void data_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_lcdc; diff --git a/src/mame/kawai/sx240.cpp b/src/mame/kawai/sx240.cpp index 66d7952aac2..6bf6ff45933 100644 --- a/src/mame/kawai/sx240.cpp +++ b/src/mame/kawai/sx240.cpp @@ -31,10 +31,10 @@ class kawai_sx240_state : public driver_device void asn_w(u8 data); void g_w(u8 data); - void master_prog(address_map &map); - void master_ext(address_map &map); - void slave_prog(address_map &map); - void slave_ext(address_map &map); + void master_prog(address_map &map) ATTR_COLD; + void master_ext(address_map &map) ATTR_COLD; + void slave_prog(address_map &map) ATTR_COLD; + void slave_ext(address_map &map) ATTR_COLD; required_device m_master; required_device m_slave; diff --git a/src/mame/kaypro/kay_kbd.h b/src/mame/kaypro/kay_kbd.h index 6c738486859..4c122aa6d4f 100644 --- a/src/mame/kaypro/kay_kbd.h +++ b/src/mame/kaypro/kay_kbd.h @@ -22,10 +22,10 @@ class kaypro_10_keyboard_device : public device_t void txd_w(int state) { m_txd = state ? 1U : 0U; } protected: - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; uint8_t p1_r(); uint8_t p2_r(); diff --git a/src/mame/kaypro/kaypro.h b/src/mame/kaypro/kaypro.h index b2b2b2a259b..42b15924cc1 100644 --- a/src/mame/kaypro/kaypro.h +++ b/src/mame/kaypro/kaypro.h @@ -43,11 +43,11 @@ class kaypro_state : public driver_device void init_kaypro(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; //private: - void kaypro_map(address_map &map); + void kaypro_map(address_map &map) ATTR_COLD; void write_centronics_busy(int state); TIMER_DEVICE_CALLBACK_MEMBER(floppy_timer); @@ -98,10 +98,10 @@ class kayproii_state : public kaypro_state void kayproii(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: - void kayproii_io(address_map &map); + void kayproii_io(address_map &map) ATTR_COLD; u8 pio_system_r(); void kayproii_pio_system_w(u8 data); @@ -132,11 +132,11 @@ class kaypro84_state : public kaypro_state void kaypro1(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: - void kaypro10_io(address_map &map); - void kaypro484_io(address_map &map); + void kaypro10_io(address_map &map) ATTR_COLD; + void kaypro484_io(address_map &map) ATTR_COLD; u8 kaypro484_87_r(); u8 kaypro484_system_port_r(); diff --git a/src/mame/kiwako/jongkyo.cpp b/src/mame/kiwako/jongkyo.cpp index 4e1fc89369c..23f2d22f017 100644 --- a/src/mame/kiwako/jongkyo.cpp +++ b/src/mame/kiwako/jongkyo.cpp @@ -61,8 +61,8 @@ class jongkyo_state : public driver_device void init_jongkyo(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: // misc @@ -92,9 +92,9 @@ class jongkyo_state : public driver_device uint8_t input_2p_r(); void palette(palette_device &palette) const; uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void decrypted_opcodes_map(address_map &map); - void memmap(address_map &map); - void portmap(address_map &map); + void decrypted_opcodes_map(address_map &map) ATTR_COLD; + void memmap(address_map &map) ATTR_COLD; + void portmap(address_map &map) ATTR_COLD; }; diff --git a/src/mame/kiwako/koikoi.cpp b/src/mame/kiwako/koikoi.cpp index a6664035166..f8b47c37ee1 100644 --- a/src/mame/kiwako/koikoi.cpp +++ b/src/mame/kiwako/koikoi.cpp @@ -84,15 +84,15 @@ class koikoi_state : public driver_device uint8_t input_r(); void unknown_w(uint8_t data); TILE_GET_INFO_MEMBER(get_tile_info); - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; void koikoi_palette(palette_device &palette) const; uint32_t screen_update_koikoi(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); required_device m_maincpu; required_device m_gfxdecode; - void koikoi_io_map(address_map &map); - void koikoi_map(address_map &map); + void koikoi_io_map(address_map &map) ATTR_COLD; + void koikoi_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/kiwako/mrjong.cpp b/src/mame/kiwako/mrjong.cpp index 2c628b7de0a..a9f1d395948 100644 --- a/src/mame/kiwako/mrjong.cpp +++ b/src/mame/kiwako/mrjong.cpp @@ -73,7 +73,7 @@ class mrjong_state : public driver_device void mrjong(machine_config &config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: required_shared_ptr m_videoram; @@ -94,8 +94,8 @@ class mrjong_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); - void io_map(address_map &map); - void program_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void program_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/koei/pasogo.cpp b/src/mame/koei/pasogo.cpp index 990fcc0926b..c8cf355a12a 100644 --- a/src/mame/koei/pasogo.cpp +++ b/src/mame/koei/pasogo.cpp @@ -171,8 +171,8 @@ class pasogo_state : public driver_device } pmu; } m_vg230; - void machine_reset() override; - void machine_start() override; + void machine_reset() override ATTR_COLD; + void machine_start() override ATTR_COLD; uint32_t screen_update_pasogo(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); INTERRUPT_GEN_MEMBER(pasogo_interrupt); @@ -181,9 +181,9 @@ class pasogo_state : public driver_device memory_region *m_cart_rom = nullptr; uint8_t m_ems_index = 0; uint16_t m_ems_bank[28]{}; - void emsbank_map(address_map &map); - void pasogo_io(address_map &map); - void pasogo_mem(address_map &map); + void emsbank_map(address_map &map) ATTR_COLD; + void pasogo_io(address_map &map) ATTR_COLD; + void pasogo_mem(address_map &map) ATTR_COLD; }; diff --git a/src/mame/konami/3dom2.h b/src/mame/konami/3dom2.h index dd05535f5d9..a080b2a2888 100644 --- a/src/mame/konami/3dom2.h +++ b/src/mame/konami/3dom2.h @@ -160,10 +160,10 @@ class m2_bda_device : public device_t 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 device_post_load() override; - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; TIMER_CALLBACK_MEMBER(dac_update); @@ -258,8 +258,8 @@ class m2_powerbus_device : public device_t uint32_t read(offs_t offset); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: enum reg_offs @@ -302,8 +302,8 @@ class m2_memctl_device : public device_t void write(offs_t offset, uint32_t data, uint32_t mem_mask = ~0); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: enum reg_offs @@ -399,8 +399,8 @@ class m2_vdu_device : public device_t uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; TIMER_CALLBACK_MEMBER(vint0_set); TIMER_CALLBACK_MEMBER(vint1_set); @@ -455,8 +455,8 @@ class m2_ctrlport_device : public device_t void write(offs_t offset, uint32_t data); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; }; @@ -474,8 +474,8 @@ class m2_mpeg_device : public device_t void write(offs_t offset, uint32_t data); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; }; @@ -512,8 +512,8 @@ class m2_cde_device : public device_t } protected: - 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 device_post_load() override; private: diff --git a/src/mame/konami/3dom2_te.h b/src/mame/konami/3dom2_te.h index 500496b051f..966046c4708 100644 --- a/src/mame/konami/3dom2_te.h +++ b/src/mame/konami/3dom2_te.h @@ -46,8 +46,8 @@ class m2_te_device : public device_t }; protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; TIMER_CALLBACK_MEMBER(command_done); diff --git a/src/mame/konami/88games.cpp b/src/mame/konami/88games.cpp index 933c8ed2e2b..ff1d8f3e37d 100644 --- a/src/mame/konami/88games.cpp +++ b/src/mame/konami/88games.cpp @@ -75,16 +75,16 @@ class _88games_state : public driver_device void speech_msg_w(uint8_t data); uint8_t k052109_051960_r(offs_t offset); void k052109_051960_w(offs_t offset, uint8_t data); - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; uint32_t screen_update_88games(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); K051316_CB_MEMBER(zoom_callback); K052109_CB_MEMBER(tile_callback); K051960_CB_MEMBER(sprite_callback); void banking_callback(uint8_t data); - void main_map(address_map &map); - void sound_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/konami/ajax.cpp b/src/mame/konami/ajax.cpp index 23cde7c185b..aefcaaa7590 100644 --- a/src/mame/konami/ajax.cpp +++ b/src/mame/konami/ajax.cpp @@ -70,8 +70,8 @@ class ajax_state : public driver_device void ajax(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: // devices @@ -114,9 +114,9 @@ class ajax_state : public driver_device K052109_CB_MEMBER(tile_callback); K051960_CB_MEMBER(sprite_callback); - void main_map(address_map &map); - void sound_map(address_map &map); - void sub_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; + void sub_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/konami/aliens.cpp b/src/mame/konami/aliens.cpp index cc20a59c711..9ab9c5eb8e2 100644 --- a/src/mame/konami/aliens.cpp +++ b/src/mame/konami/aliens.cpp @@ -49,7 +49,7 @@ class aliens_state : public driver_device void aliens(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: // devices @@ -72,8 +72,8 @@ class aliens_state : public driver_device K052109_CB_MEMBER(tile_callback); K051960_CB_MEMBER(sprite_callback); - void main_map(address_map &map); - void sound_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/konami/asterix.cpp b/src/mame/konami/asterix.cpp index d115d0c7f68..171e65a7e54 100644 --- a/src/mame/konami/asterix.cpp +++ b/src/mame/konami/asterix.cpp @@ -47,11 +47,11 @@ class asterix_state : public driver_device void asterix(machine_config &config); private: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; - void main_map(address_map &map); - void sound_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; void control2_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); void sound_arm_nmi_w(uint8_t data); diff --git a/src/mame/konami/battlnts.cpp b/src/mame/konami/battlnts.cpp index a4f7d029535..7221e9c29a7 100644 --- a/src/mame/konami/battlnts.cpp +++ b/src/mame/konami/battlnts.cpp @@ -45,8 +45,8 @@ class battlnts_state : public driver_device void battlnts(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: // video-related @@ -68,8 +68,8 @@ class battlnts_state : public driver_device void tile_callback(int layer, uint32_t bank, uint32_t &code, uint32_t &color, uint8_t &flags); void sprite_callback(uint32_t &code, uint32_t &color); - void main_map(address_map &map); - void sound_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/konami/bishi.cpp b/src/mame/konami/bishi.cpp index 37dea66da19..9f19aac2fe1 100644 --- a/src/mame/konami/bishi.cpp +++ b/src/mame/konami/bishi.cpp @@ -126,11 +126,11 @@ class bishi_state : public driver_device TIMER_DEVICE_CALLBACK_MEMBER(bishi_scanline); K056832_CB_MEMBER(tile_callback); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: /* misc */ uint16_t m_cur_control = 0U; diff --git a/src/mame/konami/bladestl.cpp b/src/mame/konami/bladestl.cpp index 229ec44be80..4c7b0bdcf66 100644 --- a/src/mame/konami/bladestl.cpp +++ b/src/mame/konami/bladestl.cpp @@ -72,8 +72,8 @@ class bladestl_state : public driver_device void bladestl(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: // devices @@ -109,8 +109,8 @@ class bladestl_state : public driver_device void tile_callback(int layer, uint32_t bank, uint32_t &code, uint32_t &color, uint8_t &flags); void sprite_callback(uint32_t &code, uint32_t &color); - void main_map(address_map &map); - void sound_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/konami/blockhl.cpp b/src/mame/konami/blockhl.cpp index 65cfb7dce4c..769ccb36098 100644 --- a/src/mame/konami/blockhl.cpp +++ b/src/mame/konami/blockhl.cpp @@ -56,7 +56,7 @@ class blockhl_state : public driver_device void blockhl(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_maincpu; @@ -76,8 +76,8 @@ class blockhl_state : public driver_device void banking_callback(uint8_t data); - void audio_map(address_map &map); - void main_map(address_map &map); + void audio_map(address_map &map) ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/konami/bottom9.cpp b/src/mame/konami/bottom9.cpp index 1f85d84ba71..327a7fab2a2 100644 --- a/src/mame/konami/bottom9.cpp +++ b/src/mame/konami/bottom9.cpp @@ -53,8 +53,8 @@ class bottom9_state : public driver_device void bottom9(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: // misc @@ -93,8 +93,8 @@ class bottom9_state : public driver_device K051316_CB_MEMBER(zoom_callback); K052109_CB_MEMBER(tile_callback); K051960_CB_MEMBER(sprite_callback); - void audio_map(address_map &map); - void main_map(address_map &map); + void audio_map(address_map &map) ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/konami/chqflag.cpp b/src/mame/konami/chqflag.cpp index fadbd758092..9d1f18de61b 100644 --- a/src/mame/konami/chqflag.cpp +++ b/src/mame/konami/chqflag.cpp @@ -79,11 +79,11 @@ class chqflag_state : public driver_device K051316_CB_MEMBER(zoom_callback_2); K051960_CB_MEMBER(sprite_callback); uint32_t screen_update_chqflag(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void chqflag_map(address_map &map); - void chqflag_sound_map(address_map &map); + void chqflag_map(address_map &map) ATTR_COLD; + void chqflag_sound_map(address_map &map) ATTR_COLD; protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: /* misc */ int m_k051316_readroms = 0; diff --git a/src/mame/konami/circusc.cpp b/src/mame/konami/circusc.cpp index ce0b7c473c9..633852376e1 100644 --- a/src/mame/konami/circusc.cpp +++ b/src/mame/konami/circusc.cpp @@ -95,9 +95,9 @@ class circusc_state : public driver_device void circusc(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: // memory pointers @@ -137,8 +137,8 @@ class circusc_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void vblank_irq(int state); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); - void main_map(address_map &map); - void sound_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/konami/cobra.cpp b/src/mame/konami/cobra.cpp index d9f57bdf322..a440873d415 100644 --- a/src/mame/konami/cobra.cpp +++ b/src/mame/konami/cobra.cpp @@ -645,20 +645,20 @@ class cobra_state : public driver_device void init_racjamdx(); void init_bujutsu(); void init_cobra(); - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; uint32_t screen_update_cobra(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); INTERRUPT_GEN_MEMBER(cobra_vblank); void cobra_video_exit(); int decode_debug_state_value(int v); void cobra(machine_config &config); void bujutsu(machine_config &config); - void cobra_gfx_map(address_map &map); - void cobra_main_map(address_map &map); - void cobra_sub_map(address_map &map); + void cobra_gfx_map(address_map &map) ATTR_COLD; + void cobra_main_map(address_map &map) ATTR_COLD; + void cobra_sub_map(address_map &map) ATTR_COLD; - void rf5c400_map(address_map& map); + void rf5c400_map(address_map &map) ATTR_COLD; uint32_t mpc106_pci_r(int function, int reg, uint32_t mem_mask); void mpc106_pci_w(int function, int reg, uint32_t data, uint32_t mem_mask); diff --git a/src/mame/konami/combatsc.h b/src/mame/konami/combatsc.h index 92f58af6142..9d1025ec444 100644 --- a/src/mame/konami/combatsc.h +++ b/src/mame/konami/combatsc.h @@ -37,8 +37,8 @@ class combatsc_base_state : public driver_device } protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; // memory pointers required_shared_ptr_array m_videoram; @@ -87,9 +87,9 @@ class combatsc_state : public combatsc_base_state void init_combatsc(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device_array m_k007121; @@ -120,8 +120,8 @@ class combatsc_state : public combatsc_base_state void palette(palette_device &palette) const; uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect, const uint8_t *source, int circuit, bitmap_ind8 &priority_bitmap, uint32_t pri_mask); - void main_map(address_map &map); - void sound_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; }; class combatscb_state : public combatsc_base_state @@ -140,9 +140,9 @@ class combatscb_state : public combatsc_base_state void combatscb(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: optional_device m_gfxdecode; @@ -164,8 +164,8 @@ class combatscb_state : public combatsc_base_state void palette(palette_device &palette) const; uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect, const uint8_t *source, int circuit); - void main_map(address_map &map); - void sound_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; }; #endif // MAME_KONAMI_COMBATSC_H diff --git a/src/mame/konami/contra.cpp b/src/mame/konami/contra.cpp index db5e22607e4..9ca3ad4ebee 100644 --- a/src/mame/konami/contra.cpp +++ b/src/mame/konami/contra.cpp @@ -178,9 +178,9 @@ class contra_state : public driver_device void contra(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: // memory pointers @@ -214,8 +214,8 @@ class contra_state : public driver_device INTERRUPT_GEN_MEMBER(interrupt); template void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect, bitmap_ind8 &priority_bitmap); - void main_map(address_map &map); - void sound_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/konami/cougar.cpp b/src/mame/konami/cougar.cpp index 5f1523ee841..302069b57bd 100644 --- a/src/mame/konami/cougar.cpp +++ b/src/mame/konami/cougar.cpp @@ -53,7 +53,7 @@ class cougar_state : public driver_device private: required_device m_maincpu; - void program_map(address_map &map); + void program_map(address_map &map) ATTR_COLD; }; void cougar_state::program_map(address_map &map) diff --git a/src/mame/konami/crimfght.cpp b/src/mame/konami/crimfght.cpp index c8bbe188a90..28c36974ac7 100644 --- a/src/mame/konami/crimfght.cpp +++ b/src/mame/konami/crimfght.cpp @@ -68,16 +68,16 @@ class crimfght_state : public driver_device void k052109_051960_w(offs_t offset, uint8_t data); IRQ_CALLBACK_MEMBER(audiocpu_irq_ack); void ym2151_ct_w(uint8_t data); - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; uint32_t screen_update_crimfght(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void volume_callback(uint8_t data); K052109_CB_MEMBER(tile_callback); K051960_CB_MEMBER(sprite_callback); void banking_callback(uint8_t data); - void bank0000_map(address_map &map); - void crimfght_map(address_map &map); - void crimfght_sound_map(address_map &map); + void bank0000_map(address_map &map) ATTR_COLD; + void crimfght_map(address_map &map) ATTR_COLD; + void crimfght_sound_map(address_map &map) ATTR_COLD; int m_woco = 0; int m_rmrd = 0; int m_init = 0; diff --git a/src/mame/konami/dbz.cpp b/src/mame/konami/dbz.cpp index 94738a8f689..d349bb6d9aa 100644 --- a/src/mame/konami/dbz.cpp +++ b/src/mame/konami/dbz.cpp @@ -99,9 +99,9 @@ class dbz_state : public driver_device void init_dbz2(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: /* memory pointers */ @@ -142,10 +142,10 @@ class dbz_state : public driver_device TIMER_DEVICE_CALLBACK_MEMBER(dbz_scanline); K056832_CB_MEMBER(tile_callback); K053246_CB_MEMBER(sprite_callback); - void dbz_map(address_map &map); - void dbz2bl_map(address_map &map); - void dbz_sound_io_map(address_map &map); - void dbz_sound_map(address_map &map); + void dbz_map(address_map &map) ATTR_COLD; + void dbz2bl_map(address_map &map) ATTR_COLD; + void dbz_sound_io_map(address_map &map) ATTR_COLD; + void dbz_sound_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/konami/ddribble.cpp b/src/mame/konami/ddribble.cpp index d0759b08296..b74b08aaa53 100644 --- a/src/mame/konami/ddribble.cpp +++ b/src/mame/konami/ddribble.cpp @@ -51,9 +51,9 @@ class ddribble_state : public driver_device void ddribble(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: // memory pointers @@ -94,10 +94,10 @@ class ddribble_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void vblank_irq(int state); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect, uint8_t* source, int lenght, int gfxset, int flipscreen); - void maincpu_map(address_map &map); - void subcpu_map(address_map &map); - void audiocpu_map(address_map &map); - void vlm_map(address_map &map); + void maincpu_map(address_map &map) ATTR_COLD; + void subcpu_map(address_map &map) ATTR_COLD; + void audiocpu_map(address_map &map) ATTR_COLD; + void vlm_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/konami/divebomb.cpp b/src/mame/konami/divebomb.cpp index 813ad73598e..1d6b0a8d35c 100644 --- a/src/mame/konami/divebomb.cpp +++ b/src/mame/konami/divebomb.cpp @@ -141,9 +141,9 @@ class divebomb_state : public driver_device void divebomb(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_spritecpu; @@ -185,12 +185,12 @@ class divebomb_state : public driver_device template void rozcpu_wrap_enable_w(uint8_t data); template void rozcpu_enable_w(uint8_t data); void rozcpu_pal_w(uint8_t data); - void fgcpu_iomap(address_map &map); - void fgcpu_map(address_map &map); - void rozcpu_iomap(address_map &map); - void rozcpu_map(address_map &map); - void spritecpu_iomap(address_map &map); - void spritecpu_map(address_map &map); + void fgcpu_iomap(address_map &map) ATTR_COLD; + void fgcpu_map(address_map &map) ATTR_COLD; + void rozcpu_iomap(address_map &map) ATTR_COLD; + void rozcpu_map(address_map &map) ATTR_COLD; + void spritecpu_iomap(address_map &map) ATTR_COLD; + void spritecpu_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/konami/djmain.cpp b/src/mame/konami/djmain.cpp index 7a4f90efb05..0bffa60dce7 100644 --- a/src/mame/konami/djmain.cpp +++ b/src/mame/konami/djmain.cpp @@ -131,9 +131,9 @@ class djmain_state : public driver_device void init_bmclubmx(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: void sndram_bank_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0); @@ -159,11 +159,11 @@ class djmain_state : public driver_device void ide_interrupt(int state); void draw_sprites( bitmap_rgb32 &bitmap, const rectangle &cliprect); K056832_CB_MEMBER(tile_callback); - void k054539_map(address_map &map); - void maincpu_djmain(address_map &map); - void maincpu_djmaina(address_map &map); - void maincpu_djmainj(address_map &map); - void maincpu_djmainu(address_map &map); + void k054539_map(address_map &map) ATTR_COLD; + void maincpu_djmain(address_map &map) ATTR_COLD; + void maincpu_djmaina(address_map &map) ATTR_COLD; + void maincpu_djmainj(address_map &map) ATTR_COLD; + void maincpu_djmainu(address_map &map) ATTR_COLD; required_shared_ptr m_obj_ram; required_device m_maincpu; diff --git a/src/mame/konami/fastlane.cpp b/src/mame/konami/fastlane.cpp index d22652c80cc..de9bf401861 100644 --- a/src/mame/konami/fastlane.cpp +++ b/src/mame/konami/fastlane.cpp @@ -49,8 +49,8 @@ class fastlane_state : public driver_device void fastlane(machine_config &config); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -81,7 +81,7 @@ class fastlane_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); TIMER_DEVICE_CALLBACK_MEMBER(scanline); template void volume_callback(uint8_t data); - void prg_map(address_map &map); + void prg_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/konami/finalizr.cpp b/src/mame/konami/finalizr.cpp index 088d6d14887..4634f4f20d2 100644 --- a/src/mame/konami/finalizr.cpp +++ b/src/mame/konami/finalizr.cpp @@ -54,9 +54,9 @@ class finalizr_state : public driver_device void finalizrb(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: // devices @@ -93,8 +93,8 @@ class finalizr_state : public driver_device void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); TIMER_DEVICE_CALLBACK_MEMBER(scanline); - void main_map(address_map &map); - void sound_io_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_io_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/konami/firebeat.cpp b/src/mame/konami/firebeat.cpp index 0d45315fda1..2ea788f405c 100644 --- a/src/mame/konami/firebeat.cpp +++ b/src/mame/konami/firebeat.cpp @@ -192,8 +192,8 @@ class firebeat_extend_spectrum_analyzer_device : public device_t, public device_ 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; // device_sound_interface-level overrides void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; @@ -417,16 +417,16 @@ class firebeat_state : public driver_device void firebeat(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void device_resolve_objects() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void device_resolve_objects() override ATTR_COLD; uint32_t screen_update_firebeat_0(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void init_firebeat(); - void firebeat_map(address_map &map); - void ymz280b_map(address_map &map); + void firebeat_map(address_map &map) ATTR_COLD; + void ymz280b_map(address_map &map) ATTR_COLD; void init_lights(write32s_delegate out1, write32s_delegate out2, write32s_delegate out3); void lamp_output_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0); @@ -493,14 +493,14 @@ class firebeat_spu_state : public firebeat_state { } protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void device_resolve_objects() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void device_resolve_objects() override ATTR_COLD; void firebeat_spu_base(machine_config &config); - void firebeat_spu_map(address_map &map); - void spu_map(address_map &map); - void rf5c400_map(address_map& map); + void firebeat_spu_map(address_map &map) ATTR_COLD; + void spu_map(address_map &map) ATTR_COLD; + void rf5c400_map(address_map &map) ATTR_COLD; void spu_ata_dmarq(int state); void spu_ata_interrupt(int state); @@ -557,9 +557,9 @@ class firebeat_ppp_state : public firebeat_state void init_ppp_overseas(); private: - virtual void device_resolve_objects() override; + virtual void device_resolve_objects() override ATTR_COLD; - void firebeat_ppp_map(address_map &map); + void firebeat_ppp_map(address_map &map) ATTR_COLD; uint16_t sensor_r(offs_t offset); @@ -602,9 +602,9 @@ class firebeat_kbm_state : public firebeat_state void firebeat_kbm(machine_config &config); private: - virtual void device_resolve_objects() override; + virtual void device_resolve_objects() override ATTR_COLD; - void firebeat_kbm_map(address_map &map); + void firebeat_kbm_map(address_map &map) ATTR_COLD; void init_keyboard(); @@ -652,7 +652,7 @@ class firebeat_bm3_state : public firebeat_spu_state void init_bm3(); private: - void firebeat_bm3_map(address_map &map); + void firebeat_bm3_map(address_map &map) ATTR_COLD; uint8_t spectrum_analyzer_r(offs_t offset); uint16_t sensor_r(offs_t offset); diff --git a/src/mame/konami/flkatck.cpp b/src/mame/konami/flkatck.cpp index 6c5e8dd599a..51980bc0213 100644 --- a/src/mame/konami/flkatck.cpp +++ b/src/mame/konami/flkatck.cpp @@ -55,9 +55,9 @@ class flkatck_state : public driver_device void flkatck(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: // memory pointers @@ -93,8 +93,8 @@ class flkatck_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); INTERRUPT_GEN_MEMBER(interrupt); void volume_callback(uint8_t data); - void main_map(address_map &map); - void sound_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/konami/gberet.cpp b/src/mame/konami/gberet.cpp index 7b6f33c5672..fccd429171a 100644 --- a/src/mame/konami/gberet.cpp +++ b/src/mame/konami/gberet.cpp @@ -218,7 +218,7 @@ class gberet_base_state : public driver_device { } protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; // memory pointers required_shared_ptr m_colorram; @@ -254,10 +254,10 @@ class gberet_state : public gberet_base_state void gberet(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; - void prg_map(address_map &map); + void prg_map(address_map &map) ATTR_COLD; private: // memory pointers @@ -292,14 +292,14 @@ class mrgoemon_state : public gberet_state void mrgoemon(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: // memory pointers required_memory_bank m_mainbank; void coin_counter_w(uint8_t data); - void prg_map(address_map &map); + void prg_map(address_map &map) ATTR_COLD; }; class gberetb_state : public gberet_base_state @@ -318,7 +318,7 @@ class gberetb_state : public gberet_base_state void scroll_w(offs_t offset, uint8_t data); uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); - void prg_map(address_map &map); + void prg_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/konami/giclassic.cpp b/src/mame/konami/giclassic.cpp index df1aef00466..e8a19a7e1d6 100644 --- a/src/mame/konami/giclassic.cpp +++ b/src/mame/konami/giclassic.cpp @@ -73,9 +73,9 @@ class giclassic_state : public driver_device void giclassic(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -90,7 +90,7 @@ class giclassic_state : public driver_device void control_w(uint16_t data); uint16_t vrom_r(offs_t offset); - void satellite_main(address_map &map); + void satellite_main(address_map &map) ATTR_COLD; uint8_t m_control = 0; }; @@ -195,8 +195,8 @@ class giclassicsvr_state : public driver_device void giclassvr(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; @@ -213,7 +213,7 @@ class giclassicsvr_state : public driver_device void control_w(uint16_t data); uint16_t control_r(); - void server_main(address_map &map); + void server_main(address_map &map) ATTR_COLD; uint16_t m_control = 0; }; diff --git a/src/mame/konami/gijoe.cpp b/src/mame/konami/gijoe.cpp index ae14b8c7c84..0f3a480746a 100644 --- a/src/mame/konami/gijoe.cpp +++ b/src/mame/konami/gijoe.cpp @@ -154,17 +154,17 @@ class gijoe_state : public driver_device uint16_t control2_r(); void control2_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); void sound_irq_w(uint16_t data); - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; uint32_t screen_update_gijoe(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); INTERRUPT_GEN_MEMBER(gijoe_interrupt); TIMER_CALLBACK_MEMBER(dmaend_callback); void gijoe_objdma(); K056832_CB_MEMBER(tile_callback); K053246_CB_MEMBER(sprite_callback); - void gijoe_map(address_map &map); - void sound_map(address_map &map); + void gijoe_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/konami/goldenregion.cpp b/src/mame/konami/goldenregion.cpp index 56c17ef3bae..42dfa1e3090 100644 --- a/src/mame/konami/goldenregion.cpp +++ b/src/mame/konami/goldenregion.cpp @@ -65,9 +65,9 @@ class gs761_state : public driver_device void gs761(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; virtual void tilemap_draw(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect, int layer, int i); @@ -97,7 +97,7 @@ class gs761_state : public driver_device K053246_CB_MEMBER(sprite_callback); TIMER_DEVICE_CALLBACK_MEMBER(scanline); - void gs761_map(address_map &map); + void gs761_map(address_map &map) ATTR_COLD; static constexpr int NUM_LAYERS = 4; }; diff --git a/src/mame/konami/gradius3.cpp b/src/mame/konami/gradius3.cpp index 13646e31274..db9b1a7678d 100644 --- a/src/mame/konami/gradius3.cpp +++ b/src/mame/konami/gradius3.cpp @@ -87,9 +87,9 @@ class gradius3_state : public driver_device uint16_t gradius3_gfxrom_r(offs_t offset); void gradius3_gfxram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); void sound_bank_w(uint8_t data); - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; uint32_t screen_update_gradius3(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); INTERRUPT_GEN_MEMBER(cpuA_interrupt); TIMER_DEVICE_CALLBACK_MEMBER(gradius3_sub_scanline); @@ -97,9 +97,9 @@ class gradius3_state : public driver_device void volume_callback(uint8_t data); K052109_CB_MEMBER(tile_callback); K051960_CB_MEMBER(sprite_callback); - void gradius3_map(address_map &map); - void gradius3_map2(address_map &map); - void gradius3_s_map(address_map &map); + void gradius3_map(address_map &map) ATTR_COLD; + void gradius3_map2(address_map &map) ATTR_COLD; + void gradius3_s_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/konami/gticlub.cpp b/src/mame/konami/gticlub.cpp index 107527dfc24..a042b84d352 100644 --- a/src/mame/konami/gticlub.cpp +++ b/src/mame/konami/gticlub.cpp @@ -272,8 +272,8 @@ class gticlub_base_state : public driver_device , m_cg_view(*this, "cg_view") { } - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; // TODO: Needs verification on real hardware static const int m_sound_timer_usec = 2400; @@ -305,7 +305,7 @@ class gticlub_base_state : public driver_device int adc1038_input_callback(int input); - void sound_memmap(address_map &map); + void sound_memmap(address_map &map) ATTR_COLD; emu_timer *m_sound_irq_timer = nullptr; }; @@ -331,8 +331,8 @@ class gticlub_state : public gticlub_base_state uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void gticlub_map(address_map &map); - void sharc_map(address_map &map); + void gticlub_map(address_map &map) ATTR_COLD; + void sharc_map(address_map &map) ATTR_COLD; #if DEBUG_GTI uint8_t m_tick = 0; @@ -357,7 +357,7 @@ class thunderh_state : public gticlub_state void gn680_sysctrl_w(uint16_t data); - void gn680_memmap(address_map &map); + void gn680_memmap(address_map &map) ATTR_COLD; }; // with Voodoo based video board @@ -381,9 +381,9 @@ class hangplt_state : public gticlub_base_state template uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void hangplt_map(address_map &map); - void hangplt_sharc0_map(address_map &map); - void hangplt_sharc1_map(address_map &map); + void hangplt_map(address_map &map) ATTR_COLD; + void hangplt_sharc0_map(address_map &map) ATTR_COLD; + void hangplt_sharc1_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/konami/gyruss.cpp b/src/mame/konami/gyruss.cpp index 6e2e50f880a..eb4a3a5e1e1 100644 --- a/src/mame/konami/gyruss.cpp +++ b/src/mame/konami/gyruss.cpp @@ -113,8 +113,8 @@ class gyruss_state : public driver_device void init_gyruss(); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: // devices @@ -155,12 +155,12 @@ class gyruss_state : public driver_device void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); template void filter_w(uint8_t data); - void audio_cpu1_io_map(address_map &map); - void audio_cpu1_map(address_map &map); - void audio_cpu2_io_map(address_map &map); - void audio_cpu2_map(address_map &map); - void main_cpu1_map(address_map &map); - void main_cpu2_map(address_map &map); + void audio_cpu1_io_map(address_map &map) ATTR_COLD; + void audio_cpu1_map(address_map &map) ATTR_COLD; + void audio_cpu2_io_map(address_map &map) ATTR_COLD; + void audio_cpu2_map(address_map &map) ATTR_COLD; + void main_cpu1_map(address_map &map) ATTR_COLD; + void main_cpu2_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/konami/hcastle.cpp b/src/mame/konami/hcastle.cpp index 44cc341b59e..f6c24132bcd 100644 --- a/src/mame/konami/hcastle.cpp +++ b/src/mame/konami/hcastle.cpp @@ -50,9 +50,9 @@ class hcastle_state : public driver_device void hcastle(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: // devices @@ -89,8 +89,8 @@ class hcastle_state : public driver_device template void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect, bitmap_ind8 &priority_bitmap, uint8_t *sbank); void volume_callback(uint8_t data); - void main_map(address_map &map); - void sound_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/konami/hexion.cpp b/src/mame/konami/hexion.cpp index e3e63211996..31b71e06375 100644 --- a/src/mame/konami/hexion.cpp +++ b/src/mame/konami/hexion.cpp @@ -141,7 +141,7 @@ class hexion_state : public driver_device void hexionb(machine_config &config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -177,9 +177,9 @@ class hexion_state : public driver_device TIMER_DEVICE_CALLBACK_MEMBER(scanline); uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void base_map(address_map &map); - void hexion_map(address_map &map); - void hexionb_map(address_map &map); + void base_map(address_map &map) ATTR_COLD; + void hexion_map(address_map &map) ATTR_COLD; + void hexionb_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/konami/hornet.cpp b/src/mame/konami/hornet.cpp index 2454da53406..2380bd30c7e 100644 --- a/src/mame/konami/hornet.cpp +++ b/src/mame/konami/hornet.cpp @@ -428,8 +428,8 @@ class hornet_state : public driver_device void init_gradius4(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: // TODO: Needs verification on real hardware @@ -492,15 +492,15 @@ class hornet_state : public driver_device template uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); TIMER_CALLBACK_MEMBER(sound_irq); - void hornet_map(address_map &map); - void hornet_lan_map(address_map &map); - void terabrst_map(address_map &map); - void sscope_map(address_map &map); - void sscope2_map(address_map &map); - void gn680_memmap(address_map &map); - void sharc0_map(address_map &map); - void sharc1_map(address_map &map); - void sound_memmap(address_map &map); + void hornet_map(address_map &map) ATTR_COLD; + void hornet_lan_map(address_map &map) ATTR_COLD; + void terabrst_map(address_map &map) ATTR_COLD; + void sscope_map(address_map &map) ATTR_COLD; + void sscope2_map(address_map &map) ATTR_COLD; + void gn680_memmap(address_map &map) ATTR_COLD; + void sharc0_map(address_map &map) ATTR_COLD; + void sharc1_map(address_map &map) ATTR_COLD; + void sound_memmap(address_map &map) ATTR_COLD; }; diff --git a/src/mame/konami/hyperspt.cpp b/src/mame/konami/hyperspt.cpp index c0e278dc3e6..7d9f26e1d89 100644 --- a/src/mame/konami/hyperspt.cpp +++ b/src/mame/konami/hyperspt.cpp @@ -61,12 +61,12 @@ class base_state : public driver_device void base(machine_config &config); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; - void common_map(address_map &map); - void common_sound_map(address_map &map); - void hyperspt_common_main_map(address_map &map); + void common_map(address_map &map) ATTR_COLD; + void common_sound_map(address_map &map) ATTR_COLD; + void hyperspt_common_main_map(address_map &map) ATTR_COLD; // memory pointers required_shared_ptr m_spriteram; @@ -120,7 +120,7 @@ class hyperspt_state : public base_state private: required_device m_vlm; - void sound_map(address_map &map); + void sound_map(address_map &map) ATTR_COLD; }; class hypersptb_state : public base_state @@ -131,8 +131,8 @@ class hypersptb_state : public base_state void hypersptb(machine_config &config); private: - void sound_map(address_map &map); - void adpcm_map(address_map &map); + void sound_map(address_map &map) ATTR_COLD; + void adpcm_map(address_map &map) ATTR_COLD; }; class roadf_state : public base_state @@ -144,13 +144,13 @@ class roadf_state : public base_state void roadfu(machine_config &config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: TILE_GET_INFO_MEMBER(get_bg_tile_info); - void main_map(address_map &map); - void sound_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/konami/hyprolyb.h b/src/mame/konami/hyprolyb.h index 05f4f07ec41..e374cd0f4c5 100644 --- a/src/mame/konami/hyprolyb.h +++ b/src/mame/konami/hyprolyb.h @@ -24,8 +24,8 @@ class hyprolyb_adpcm_device : public device_t void vck_callback( int st ); 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; private: // internal state diff --git a/src/mame/konami/ironhors.cpp b/src/mame/konami/ironhors.cpp index 3d6633c8156..6ab0378935a 100644 --- a/src/mame/konami/ironhors.cpp +++ b/src/mame/konami/ironhors.cpp @@ -62,8 +62,8 @@ class ironhors_base_state : public driver_device void base(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; void sh_irqtrigger_w(uint8_t data); void videoram_w(offs_t offset, uint8_t data); @@ -108,16 +108,16 @@ class ironhors_state : public ironhors_base_state void ironhors(machine_config &config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); TIMER_DEVICE_CALLBACK_MEMBER(scanline_tick); - void master_map(address_map &map); - void slave_map(address_map &map); - void slave_io_map(address_map &map); + void master_map(address_map &map) ATTR_COLD; + void slave_map(address_map &map) ATTR_COLD; + void slave_io_map(address_map &map) ATTR_COLD; void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); @@ -134,15 +134,15 @@ class farwest_state : public ironhors_base_state void farwest(machine_config &config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); TIMER_DEVICE_CALLBACK_MEMBER(scanline_tick); - void master_map(address_map &map); - void slave_map(address_map &map); + void master_map(address_map &map) ATTR_COLD; + void slave_map(address_map &map) ATTR_COLD; void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); diff --git a/src/mame/konami/jackal.cpp b/src/mame/konami/jackal.cpp index 3c1d00429a6..8217171bb02 100644 --- a/src/mame/konami/jackal.cpp +++ b/src/mame/konami/jackal.cpp @@ -117,9 +117,9 @@ class jackal_state : public driver_device void jackal(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: // memory pointers @@ -156,8 +156,8 @@ class jackal_state : public driver_device void draw_background(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void draw_sprites_region(bitmap_ind16 &bitmap, const rectangle &cliprect, const uint8_t *sram, int length, int bank); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); - void main_map(address_map &map); - void slave_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void slave_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/konami/jailbrek.cpp b/src/mame/konami/jailbrek.cpp index e06a39fc5f3..1357ff58e83 100644 --- a/src/mame/konami/jailbrek.cpp +++ b/src/mame/konami/jailbrek.cpp @@ -123,9 +123,9 @@ class jailbrek_state : public driver_device void jailbrek(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: // memory pointers @@ -161,8 +161,8 @@ class jailbrek_state : public driver_device INTERRUPT_GEN_MEMBER(interrupt_nmi); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); - void prg_map(address_map &map); - void vlm_map(address_map &map); + void prg_map(address_map &map) ATTR_COLD; + void vlm_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/konami/junofrst.cpp b/src/mame/konami/junofrst.cpp index 2c694799233..72712533b84 100644 --- a/src/mame/konami/junofrst.cpp +++ b/src/mame/konami/junofrst.cpp @@ -116,8 +116,8 @@ class junofrst_state : public tutankhm_state void junofrst(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: void blitter_w(offs_t offset, uint8_t data); @@ -129,10 +129,10 @@ class junofrst_state : public tutankhm_state void portB_w(uint8_t data); void _30hz_irq(int state); - void audio_map(address_map &map); - void main_map(address_map &map); - void mcu_io_map(address_map &map); - void mcu_map(address_map &map); + void audio_map(address_map &map) ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; + void mcu_io_map(address_map &map) ATTR_COLD; + void mcu_map(address_map &map) ATTR_COLD; required_device m_audiocpu; required_device m_i8039; diff --git a/src/mame/konami/k001005.h b/src/mame/konami/k001005.h index c331a0edca9..23733028072 100644 --- a/src/mame/konami/k001005.h +++ b/src/mame/konami/k001005.h @@ -119,9 +119,9 @@ class k001005_device : public device_t, public device_video_interface protected: // device-level overrides - virtual void device_start() override; - virtual void device_stop() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_stop() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: // internal state diff --git a/src/mame/konami/k001006.h b/src/mame/konami/k001006.h index c7c2283a599..9c893a770b6 100644 --- a/src/mame/konami/k001006.h +++ b/src/mame/konami/k001006.h @@ -26,8 +26,8 @@ class k001006_device : public device_t 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; private: // internal state diff --git a/src/mame/konami/k001604.h b/src/mame/konami/k001604.h index fe58e440d12..6042551ee5f 100644 --- a/src/mame/konami/k001604.h +++ b/src/mame/konami/k001604.h @@ -28,8 +28,8 @@ class k001604_device : public device_t, public device_gfx_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; private: // internal state tilemap_t* m_fg_tilemap; diff --git a/src/mame/konami/k007121.h b/src/mame/konami/k007121.h index d162fd5d5e9..505175ba011 100644 --- a/src/mame/konami/k007121.h +++ b/src/mame/konami/k007121.h @@ -28,8 +28,8 @@ class k007121_device : public device_t, public device_gfx_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; private: // internal state diff --git a/src/mame/konami/k007342.h b/src/mame/konami/k007342.h index fe661fedd51..2f659ddf4ef 100644 --- a/src/mame/konami/k007342.h +++ b/src/mame/konami/k007342.h @@ -36,8 +36,8 @@ class k007342_device : public device_t, public device_gfx_interface protected: // 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; private: // internal state diff --git a/src/mame/konami/k007420.h b/src/mame/konami/k007420.h index 67eb4b5a647..1cbf19ec9f7 100644 --- a/src/mame/konami/k007420.h +++ b/src/mame/konami/k007420.h @@ -30,8 +30,8 @@ class k007420_device : public device_t, public device_gfx_interface protected: // 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; private: // internal state diff --git a/src/mame/konami/k007452.h b/src/mame/konami/k007452.h index 31747ba469a..d66114c7fa2 100644 --- a/src/mame/konami/k007452.h +++ b/src/mame/konami/k007452.h @@ -28,8 +28,8 @@ class k007452_device : public device_t 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; private: // internal state diff --git a/src/mame/konami/k037122.h b/src/mame/konami/k037122.h index 20270c77caf..a80dac54850 100644 --- a/src/mame/konami/k037122.h +++ b/src/mame/konami/k037122.h @@ -26,8 +26,8 @@ class k037122_device : public device_t, 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; // device_palette_interface impleemntations virtual uint32_t palette_entries() const noexcept override { return 8192; } diff --git a/src/mame/konami/k051733.h b/src/mame/konami/k051733.h index 5cceaedff67..8e347708a2c 100644 --- a/src/mame/konami/k051733.h +++ b/src/mame/konami/k051733.h @@ -16,8 +16,8 @@ class k051733_device : public device_t 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; private: // internal state uint8_t m_ram[0x20]; diff --git a/src/mame/konami/k051960.h b/src/mame/konami/k051960.h index e3e6b3076e6..45d7016ff55 100644 --- a/src/mame/konami/k051960.h +++ b/src/mame/konami/k051960.h @@ -66,8 +66,8 @@ class k051960_device : public device_t, public device_gfx_interface, public devi 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; private: // internal state diff --git a/src/mame/konami/k052109.h b/src/mame/konami/k052109.h index c4a57d1f42a..35ca8d2f541 100644 --- a/src/mame/konami/k052109.h +++ b/src/mame/konami/k052109.h @@ -58,8 +58,8 @@ class k052109_device : public device_t, public device_gfx_interface, public devi 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 device_post_load() override; private: diff --git a/src/mame/konami/k053244_k053245.h b/src/mame/konami/k053244_k053245.h index 6d24c6020c8..22621ec9fca 100644 --- a/src/mame/konami/k053244_k053245.h +++ b/src/mame/konami/k053244_k053245.h @@ -44,8 +44,8 @@ class k05324x_device : public device_t, public device_gfx_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; private: // internal state diff --git a/src/mame/konami/k053246_k053247_k055673.h b/src/mame/konami/k053246_k053247_k055673.h index 1e0096e395a..059f70cea36 100644 --- a/src/mame/konami/k053246_k053247_k055673.h +++ b/src/mame/konami/k053246_k053247_k055673.h @@ -443,8 +443,8 @@ class k053247_device : public device_t, k053247_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); // 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; template void k053247_sprites_draw_common(BitmapClass &bitmap, const rectangle &cliprect); }; @@ -460,7 +460,7 @@ class k055673_device : public k053247_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // virtual void device_reset(); private: std::unique_ptr m_combined_gfx; diff --git a/src/mame/konami/k053250.h b/src/mame/konami/k053250.h index b52e8c1bcd7..2940981980f 100644 --- a/src/mame/konami/k053250.h +++ b/src/mame/konami/k053250.h @@ -41,8 +41,8 @@ class k053250_device : public device_t, 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; private: // configuration diff --git a/src/mame/konami/k053250_ps.h b/src/mame/konami/k053250_ps.h index 3a16126d4ef..9113ec53af8 100644 --- a/src/mame/konami/k053250_ps.h +++ b/src/mame/konami/k053250_ps.h @@ -45,8 +45,8 @@ class k053250ps_device : public device_t, 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; TIMER_CALLBACK_MEMBER(handle_od_wait); diff --git a/src/mame/konami/k053251.h b/src/mame/konami/k053251.h index 0023d9bebca..fa302665c83 100644 --- a/src/mame/konami/k053251.h +++ b/src/mame/konami/k053251.h @@ -31,8 +31,8 @@ class k053251_device : public device_t 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 device_post_load() override; private: diff --git a/src/mame/konami/k054000.h b/src/mame/konami/k054000.h index b073946130e..8a66ee9fc16 100644 --- a/src/mame/konami/k054000.h +++ b/src/mame/konami/k054000.h @@ -12,12 +12,12 @@ class k054000_device : public device_t k054000_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); ~k054000_device() {} - void map(address_map &map); + void map(address_map &map) ATTR_COLD; 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; private: // internal state diff --git a/src/mame/konami/k054156_k054157_k056832.h b/src/mame/konami/k054156_k054157_k056832.h index 1f1163e7b98..42333d4e793 100644 --- a/src/mame/konami/k054156_k054157_k056832.h +++ b/src/mame/konami/k054156_k054157_k056832.h @@ -105,7 +105,7 @@ class k056832_device : public device_t, public device_gfx_interface protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void device_post_load() override; private: diff --git a/src/mame/konami/k054338.h b/src/mame/konami/k054338.h index 0e23dcb1323..22a70c704a6 100644 --- a/src/mame/konami/k054338.h +++ b/src/mame/konami/k054338.h @@ -50,8 +50,8 @@ class k054338_device : public device_t, 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; private: // internal state diff --git a/src/mame/konami/k055555.h b/src/mame/konami/k055555.h index 47cb27513aa..2d5a9e87b8c 100644 --- a/src/mame/konami/k055555.h +++ b/src/mame/konami/k055555.h @@ -89,8 +89,8 @@ class k055555_device : public device_t 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; private: uint8_t m_regs[128]; diff --git a/src/mame/konami/k057714.h b/src/mame/konami/k057714.h index 003bb48ddca..d0297d8ebec 100644 --- a/src/mame/konami/k057714.h +++ b/src/mame/konami/k057714.h @@ -35,9 +35,9 @@ class k057714_device : public device_t, public device_video_interface }; protected: - virtual void device_start() override; - virtual void device_stop() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_stop() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: enum { diff --git a/src/mame/konami/k573cass.h b/src/mame/konami/k573cass.h index c73a14c5b7d..fb58c2d55eb 100644 --- a/src/mame/konami/k573cass.h +++ b/src/mame/konami/k573cass.h @@ -45,7 +45,7 @@ class konami573_cassette_slot_device : public device_t, public device_single_car int read_line_adc083x_sars(); protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; devcb_write_line m_dsr_handler; @@ -99,8 +99,8 @@ class konami573_cassette_x_device: public device_t, public konami573_cassette_in protected: konami573_cassette_x_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; required_device m_x76f041; }; @@ -125,7 +125,7 @@ class konami573_cassette_xi_device: public konami573_cassette_x_device double punchmania_inputs_callback(uint8_t input); protected: - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: required_device m_ds2401; @@ -163,8 +163,8 @@ class konami573_cassette_y_device: public device_t, public konami573_cassette_in protected: konami573_cassette_y_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; required_device m_x76f100; @@ -191,7 +191,7 @@ class konami573_cassette_yi_device: public konami573_cassette_y_device virtual void write_line_d4(int state) override; protected: - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: required_device m_ds2401; @@ -214,8 +214,8 @@ class konami573_cassette_zi_device: public device_t, public konami573_cassette_i virtual void write_line_zs01_sda(int state) override; protected: - 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; private: required_device m_zs01; diff --git a/src/mame/konami/k573dio.h b/src/mame/konami/k573dio.h index 08b1e947270..42bbd0e7ee0 100644 --- a/src/mame/konami/k573dio.h +++ b/src/mame/konami/k573dio.h @@ -15,7 +15,7 @@ class k573dio_device : public device_t auto output_callback() { return output_cb.bind(); } - void amap(address_map &map); + void amap(address_map &map) ATTR_COLD; void set_ddrsbm_fpga(bool flag) { is_ddrsbm_fpga = flag; } uint16_t a00_r(); @@ -71,10 +71,10 @@ class k573dio_device : public device_t void network_id_w(uint16_t data); protected: - 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; private: memory_share_creator ram; diff --git a/src/mame/konami/k573fpga.h b/src/mame/konami/k573fpga.h index d3a8ddcb9ed..d4c2a052ead 100644 --- a/src/mame/konami/k573fpga.h +++ b/src/mame/konami/k573fpga.h @@ -49,9 +49,9 @@ class k573fpga_device : public device_t void reset_counter(); protected: - 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; private: TIMER_CALLBACK_MEMBER(update_stream); diff --git a/src/mame/konami/k573kara.h b/src/mame/konami/k573kara.h index 665d1cb550f..3d957db37ef 100644 --- a/src/mame/konami/k573kara.h +++ b/src/mame/konami/k573kara.h @@ -13,13 +13,13 @@ class k573kara_device : public device_t public: k573kara_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - void amap(address_map &map); + void amap(address_map &map) ATTR_COLD; protected: - 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; private: uint16_t uart_r(offs_t offset); diff --git a/src/mame/konami/k573mcal.h b/src/mame/konami/k573mcal.h index 3b49e769e9a..e91cdbb9125 100644 --- a/src/mame/konami/k573mcal.h +++ b/src/mame/konami/k573mcal.h @@ -24,11 +24,11 @@ class k573mcal_device : public jvs_device k573mcal_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; // JVS device overrides virtual const char *device_id() override; diff --git a/src/mame/konami/k573mcr.h b/src/mame/konami/k573mcr.h index c87e918cb25..b51da4d95f6 100644 --- a/src/mame/konami/k573mcr.h +++ b/src/mame/konami/k573mcr.h @@ -25,16 +25,16 @@ class k573mcr_device : public jvs_device k573mcr_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; void write_rxd(int state); protected: - 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; - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; // JVS device overrides virtual const char *device_id() override; diff --git a/src/mame/konami/k573msu.h b/src/mame/konami/k573msu.h index d49280b6021..a4600431ae4 100644 --- a/src/mame/konami/k573msu.h +++ b/src/mame/konami/k573msu.h @@ -19,9 +19,9 @@ class k573msu_device : public device_t k573msu_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; }; #endif // MAME_KONAMI_K573MSU_H diff --git a/src/mame/konami/konami1.h b/src/mame/konami/konami1.h index c7c2912b676..d5264809be0 100644 --- a/src/mame/konami/konami1.h +++ b/src/mame/konami/konami1.h @@ -35,7 +35,7 @@ class konami1_device : public m6809_base_device { uint16_t m_boundary; - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual std::unique_ptr create_disassembler() override; }; diff --git a/src/mame/konami/konami_gn676_lan.h b/src/mame/konami/konami_gn676_lan.h index 043716305b9..b7156b8152c 100644 --- a/src/mame/konami/konami_gn676_lan.h +++ b/src/mame/konami/konami_gn676_lan.h @@ -23,8 +23,8 @@ class konami_gn676_lan_device : public device_t protected: konami_gn676_lan_device(const machine_config &mconfig, const device_type type, const char *tag, device_t *owner, uint32_t clock = 0); - 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_device m_x76f041; @@ -65,7 +65,7 @@ class konami_gn676b_lan_device : public konami_gn676_lan_device konami_gn676b_lan_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 0); protected: - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; DECLARE_DEVICE_TYPE(KONAMI_GN676A_LAN, konami_gn676a_lan_device) diff --git a/src/mame/konami/konamigq.cpp b/src/mame/konami/konamigq.cpp index aa617c2d4e9..597ae0b5eae 100644 --- a/src/mame/konami/konamigq.cpp +++ b/src/mame/konami/konamigq.cpp @@ -108,8 +108,8 @@ class konamigq_state : public driver_device void konamigq(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: emu_timer *m_dma_timer; @@ -144,10 +144,10 @@ class konamigq_state : public driver_device void scsi_dma_write( uint32_t *p_n_psxram, uint32_t n_address, int32_t n_size ); void scsi_drq(int state); - void konamigq_dasp_map(address_map &map); - void konamigq_k054539_map(address_map &map); - void konamigq_map(address_map &map); - void konamigq_sound_map(address_map &map); + void konamigq_dasp_map(address_map &map) ATTR_COLD; + void konamigq_k054539_map(address_map &map) ATTR_COLD; + void konamigq_map(address_map &map) ATTR_COLD; + void konamigq_sound_map(address_map &map) ATTR_COLD; }; /* EEPROM */ diff --git a/src/mame/konami/konamigs.cpp b/src/mame/konami/konamigs.cpp index acc77078d70..23a21b7f626 100644 --- a/src/mame/konami/konamigs.cpp +++ b/src/mame/konami/konamigs.cpp @@ -88,16 +88,16 @@ class gsan_state : public driver_device required_device m_screen; optional_device m_hopper; - void main_map_common(address_map &map); - void main_map(address_map &map); - void main_map_medal(address_map &map); - void main_port(address_map &map); - void main_port_medal(address_map &map); - void ymz280b_map(address_map &map); - void ymz280b_map_medal(address_map &map); - - virtual void machine_start() override; - virtual void machine_reset() override; + void main_map_common(address_map &map) ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; + void main_map_medal(address_map &map) ATTR_COLD; + void main_port(address_map &map) ATTR_COLD; + void main_port_medal(address_map &map) ATTR_COLD; + void ymz280b_map(address_map &map) ATTR_COLD; + void ymz280b_map_medal(address_map &map) ATTR_COLD; + + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; u8 ymzram_r(offs_t offset); void ymzram_w(offs_t offset, u8 data); diff --git a/src/mame/konami/konamigv.cpp b/src/mame/konami/konamigv.cpp index 0f9c0609c7a..3ba38c9c128 100644 --- a/src/mame/konami/konamigv.cpp +++ b/src/mame/konami/konamigv.cpp @@ -264,10 +264,10 @@ class konamigv_state : public driver_device void konamigv(machine_config &config); protected: - void konamigv_map(address_map &map); + void konamigv_map(address_map &map) ATTR_COLD; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; void btc_trackball_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); @@ -275,8 +275,8 @@ class konamigv_state : public driver_device void scsi_dma_write(uint32_t *p_n_psxram, uint32_t n_address, int32_t n_size); void scsi_drq(int state); - void btchamp_map(address_map &map); - void kdeadeye_map(address_map &map); + void btchamp_map(address_map &map) ATTR_COLD; + void kdeadeye_map(address_map &map) ATTR_COLD; TIMER_CALLBACK_MEMBER(scsi_dma_transfer); @@ -308,12 +308,12 @@ class simpbowl_state : public konamigv_state void simpbowl(machine_config &config); private: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; uint16_t flash_r(offs_t offset); void flash_w(offs_t offset, uint16_t data); - void simpbowl_map(address_map &map); + void simpbowl_map(address_map &map) ATTR_COLD; required_device_array m_flash8; @@ -353,12 +353,12 @@ class tokimeki_state : public konamigv_state PRINTER_PAGE_HEIGHT = 600, }; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; uint32_t printer_screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void tmosh_map(address_map &map); + void tmosh_map(address_map &map) ATTR_COLD; TIMER_CALLBACK_MEMBER(heartbeat_timer_tick); TIMER_CALLBACK_MEMBER(printing_status_timeout); diff --git a/src/mame/konami/konamigx.h b/src/mame/konami/konamigx.h index 889f68066b2..7336d7ba963 100644 --- a/src/mame/konami/konamigx.h +++ b/src/mame/konami/konamigx.h @@ -187,14 +187,14 @@ class konamigx_state : public driver_device void tbyahhoo(machine_config &config); void gokuparo(machine_config &config); void sexyparo(machine_config &config); - void gx_base_memmap(address_map &map); - void racinfrc_map(address_map &map); - void gx_type1_map(address_map &map); - void gx_type2_map(address_map &map); - void gx_type3_map(address_map &map); - void gx_type4_map(address_map &map); - void gxsndmap(address_map &map); - void gxtmsmap(address_map &map); + void gx_base_memmap(address_map &map) ATTR_COLD; + void racinfrc_map(address_map &map) ATTR_COLD; + void gx_type1_map(address_map &map) ATTR_COLD; + void gx_type2_map(address_map &map) ATTR_COLD; + void gx_type3_map(address_map &map) ATTR_COLD; + void gx_type4_map(address_map &map) ATTR_COLD; + void gxsndmap(address_map &map) ATTR_COLD; + void gxtmsmap(address_map &map) ATTR_COLD; protected: required_device m_maincpu; diff --git a/src/mame/konami/konamim2.cpp b/src/mame/konami/konamim2.cpp index f9097f74303..1b74b956a02 100644 --- a/src/mame/konami/konamim2.cpp +++ b/src/mame/konami/konamim2.cpp @@ -281,10 +281,10 @@ class konamim2_state : public driver_device static void cr589_config(device_t *device); - void m2_map(address_map &map); + void m2_map(address_map &map) ATTR_COLD; protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; public: void ppc1_int(int state); diff --git a/src/mame/konami/konblands.cpp b/src/mame/konami/konblands.cpp index 891b4b0529a..fc9b06bfb64 100644 --- a/src/mame/konami/konblands.cpp +++ b/src/mame/konami/konblands.cpp @@ -58,14 +58,14 @@ class konblands_state : public driver_device INTERRUPT_GEN_MEMBER(timer_irq); void ld_command_strobe_cb(int state); - void konblands_map(address_map &map); - void konblandsh_map(address_map &map); + void konblands_map(address_map &map) ATTR_COLD; + void konblandsh_map(address_map &map) ATTR_COLD; // driver_device overrides - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; // devices required_device m_maincpu; diff --git a/src/mame/konami/kongs470.cpp b/src/mame/konami/kongs470.cpp index 06f9175ee7e..0971a55c5b4 100644 --- a/src/mame/konami/kongs470.cpp +++ b/src/mame/konami/kongs470.cpp @@ -39,10 +39,10 @@ class kongs470_state : public driver_device void kongs470(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; required_device m_maincpu; }; diff --git a/src/mame/konami/konmedal.cpp b/src/mame/konami/konmedal.cpp index 1f2b2a84d11..843909125e3 100644 --- a/src/mame/konami/konmedal.cpp +++ b/src/mame/konami/konmedal.cpp @@ -113,9 +113,9 @@ class konmedal_state : public driver_device void fuusen_init(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: void konmedal_palette(palette_device &palette) const; @@ -152,9 +152,9 @@ class konmedal_state : public driver_device void shuri_irq_w(uint8_t data); void mario_scrollhack_w(uint8_t data); - void ddboy_main(address_map &map); - void medal_main(address_map &map); - void shuriboy_main(address_map &map); + void ddboy_main(address_map &map) ATTR_COLD; + void medal_main(address_map &map) ATTR_COLD; + void shuriboy_main(address_map &map) ATTR_COLD; void machine_start_common(); diff --git a/src/mame/konami/konmedal020.cpp b/src/mame/konami/konmedal020.cpp index 9b323f9012b..ae38dd6c822 100644 --- a/src/mame/konami/konmedal020.cpp +++ b/src/mame/konami/konmedal020.cpp @@ -44,16 +44,16 @@ class konmedal020_state : public driver_device void gs471(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; required_device m_maincpu; required_device m_vga; required_device m_ymz; private: - void gs471_main(address_map &map); + void gs471_main(address_map &map) ATTR_COLD; }; void konmedal020_state::video_start() diff --git a/src/mame/konami/konmedal68k.cpp b/src/mame/konami/konmedal68k.cpp index 86a307a6d2a..a953ad29c4b 100644 --- a/src/mame/konami/konmedal68k.cpp +++ b/src/mame/konami/konmedal68k.cpp @@ -61,11 +61,11 @@ class konmedal68k_state : public driver_device void gs662(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; - void common_main(address_map &map); + void common_main(address_map &map) ATTR_COLD; uint16_t vrom_r(offs_t offset) { @@ -138,11 +138,11 @@ class konmedal68k_state : public driver_device return m_k056832->rom_word_r(offset); } - void kzaurus_main(address_map &map); - void koropens_main(address_map &map); - void pwrchanc_main(address_map &map); - void spcpokan_main(address_map &map); - void gs662_main(address_map &map); + void kzaurus_main(address_map &map) ATTR_COLD; + void koropens_main(address_map &map) ATTR_COLD; + void pwrchanc_main(address_map &map) ATTR_COLD; + void spcpokan_main(address_map &map) ATTR_COLD; + void gs662_main(address_map &map) ATTR_COLD; static constexpr int NUM_LAYERS = 4; @@ -160,12 +160,12 @@ class konmedal68k_slot_state : public konmedal68k_state void slot(machine_config &config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; virtual void tilemap_draw(screen_device& screen, bitmap_rgb32& bitmap, const rectangle& cliprect, int layer, int i) override; private: - void slot_main(address_map &map); + void slot_main(address_map &map) ATTR_COLD; }; void konmedal68k_state::video_start() diff --git a/src/mame/konami/konmedalppc.cpp b/src/mame/konami/konmedalppc.cpp index 0b1d4bf3033..baf95a7f6e8 100644 --- a/src/mame/konami/konmedalppc.cpp +++ b/src/mame/konami/konmedalppc.cpp @@ -33,8 +33,8 @@ class konmedalppc_state : public driver_device void konmedalppc(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; @@ -44,8 +44,8 @@ class konmedalppc_state : public driver_device u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void main_map(address_map &map); - void ymz280b_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void ymz280b_map(address_map &map) ATTR_COLD; u16 ata_r(offs_t offset, u16 mem_mask); void ata_w(offs_t offset, u16 data, u16 mem_mask); diff --git a/src/mame/konami/konppc.h b/src/mame/konami/konppc.h index 88d6d6c8134..e6daac9bfd2 100644 --- a/src/mame/konami/konppc.h +++ b/src/mame/konami/konppc.h @@ -60,7 +60,7 @@ class konppc_device : public device_t void nwk_voodoo_1_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0); protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; uint32_t dsp_comm_sharc_r(int board, int offset); void dsp_comm_sharc_w(int board, int offset, uint32_t data); diff --git a/src/mame/konami/konppc_jvshost.h b/src/mame/konami/konppc_jvshost.h index ef04c6e25a8..0cc2e3a3136 100644 --- a/src/mame/konami/konppc_jvshost.h +++ b/src/mame/konami/konppc_jvshost.h @@ -22,8 +22,8 @@ class konppc_jvs_host_device : public jvs_host int sense(); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: static constexpr int JVS_BUFFER_SIZE = 1024; diff --git a/src/mame/konami/kontest.cpp b/src/mame/konami/kontest.cpp index a3f0e2fca1b..fc8651afdf8 100644 --- a/src/mame/konami/kontest.cpp +++ b/src/mame/konami/kontest.cpp @@ -59,14 +59,14 @@ class kontest_state : public driver_device // member functions void control_w(uint8_t data); - void kontest_io(address_map &map); - void kontest_map(address_map &map); + void kontest_io(address_map &map) ATTR_COLD; + void kontest_map(address_map &map) ATTR_COLD; // driver_device overrides - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; void kontest_palette(palette_device &palette) const; INTERRUPT_GEN_MEMBER(kontest_interrupt); diff --git a/src/mame/konami/kpontoon.cpp b/src/mame/konami/kpontoon.cpp index 9f965d815e2..0abe1b7fa65 100644 --- a/src/mame/konami/kpontoon.cpp +++ b/src/mame/konami/kpontoon.cpp @@ -55,14 +55,14 @@ class kpontoon_state : public driver_device void kpontoon(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: tilemap_t *m_ttl_tilemap; - void main_map(address_map &map); - void sound_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; required_device m_maincpu, m_audiocpu; required_memory_bank m_mainbank; diff --git a/src/mame/konami/kpython.cpp b/src/mame/konami/kpython.cpp index 1d42ffb6ca6..96ec65e4c0a 100644 --- a/src/mame/konami/kpython.cpp +++ b/src/mame/konami/kpython.cpp @@ -202,7 +202,7 @@ class kpython_state : public driver_device private: uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void ps2_map(address_map &map); + void ps2_map(address_map &map) ATTR_COLD; // devices required_device m_maincpu; @@ -216,7 +216,7 @@ class kpython_state : public driver_device required_shared_ptr m_ram; // driver_device overrides - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; }; diff --git a/src/mame/konami/kpython2.cpp b/src/mame/konami/kpython2.cpp index 79a6818350f..cc8b9c9e5eb 100644 --- a/src/mame/konami/kpython2.cpp +++ b/src/mame/konami/kpython2.cpp @@ -444,8 +444,8 @@ class kpython2_state : public driver_device void kpython2(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); @@ -473,8 +473,8 @@ class kpython2_state : public driver_device void iop_timer_irq(int state); - void mem_map(address_map &map); - void iop_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void iop_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_iop; diff --git a/src/mame/konami/ksys573.cpp b/src/mame/konami/ksys573.cpp index 6bc5191b8e1..aea8589fa5f 100644 --- a/src/mame/konami/ksys573.cpp +++ b/src/mame/konami/ksys573.cpp @@ -603,13 +603,13 @@ class ksys573_state : public driver_device protected: using gx700pwfbf_output_delegate = delegate; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; virtual void driver_start() override; void gx700pwfbf_init(gx700pwfbf_output_delegate &&output_callback_func); - void konami573a_map(address_map &map); + void konami573a_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_sys573_jvs_host; @@ -657,14 +657,14 @@ class ksys573_state : public driver_device void hyprbbc2_cassette_install(device_t *device); void hypbbc2p_cassette_install(device_t *device); static void cr589_config(device_t *device); - void fbaitbc_map(address_map &map); - void flashbank_map(address_map &map); - void gunmania_map(address_map &map); - void gbbchmp_map(address_map &map); - void konami573_map(address_map &map); - void konami573ak_map(address_map &map); - void konami573d_map(address_map &map); - void konami573k_map(address_map &map); + void fbaitbc_map(address_map &map) ATTR_COLD; + void flashbank_map(address_map &map) ATTR_COLD; + void gunmania_map(address_map &map) ATTR_COLD; + void gbbchmp_map(address_map &map) ATTR_COLD; + void konami573_map(address_map &map) ATTR_COLD; + void konami573ak_map(address_map &map) ATTR_COLD; + void konami573d_map(address_map &map) ATTR_COLD; + void konami573k_map(address_map &map) ATTR_COLD; required_ioport m_analog0; required_ioport m_analog1; @@ -772,7 +772,7 @@ class ddr_state : public ksys573_state void init_ddr(); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: struct stage_state @@ -817,8 +817,8 @@ class pnchmn_state : public ksys573_state required_ioport m_pads; protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: void punchmania_cassette_install(device_t *device); diff --git a/src/mame/konami/labyrunr.cpp b/src/mame/konami/labyrunr.cpp index 35d93610713..0e985015330 100644 --- a/src/mame/konami/labyrunr.cpp +++ b/src/mame/konami/labyrunr.cpp @@ -46,8 +46,8 @@ class labyrunr_state : public driver_device void labyrunr(machine_config &config); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: // devices @@ -73,7 +73,7 @@ class labyrunr_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void vblank_irq(int state); INTERRUPT_GEN_MEMBER(timer_interrupt); - void prg_map(address_map &map); + void prg_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/konami/lethal.cpp b/src/mame/konami/lethal.cpp index 3c42cc17001..76ae616fd0c 100644 --- a/src/mame/konami/lethal.cpp +++ b/src/mame/konami/lethal.cpp @@ -308,16 +308,16 @@ class lethal_state : public driver_device uint8_t guns_r(offs_t offset); uint8_t gunsaux_r(); void lethalen_palette_control(offs_t offset, uint8_t data); - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; uint32_t screen_update_lethalen(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); INTERRUPT_GEN_MEMBER(lethalen_interrupt); K05324X_CB_MEMBER(sprite_callback); K056832_CB_MEMBER(tile_callback); - void bank4000_map(address_map &map); - void le_main(address_map &map); - void le_sound(address_map &map); + void bank4000_map(address_map &map) ATTR_COLD; + void le_main(address_map &map) ATTR_COLD; + void le_sound(address_map &map) ATTR_COLD; }; diff --git a/src/mame/konami/mainevt.cpp b/src/mame/konami/mainevt.cpp index c7a3a1e198e..fe88587b202 100644 --- a/src/mame/konami/mainevt.cpp +++ b/src/mame/konami/mainevt.cpp @@ -73,7 +73,7 @@ class base_state : public driver_device , m_leds(*this, "led%u", 0U) { } - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; // devices required_device m_maincpu; @@ -107,7 +107,7 @@ class mainevt_state : public base_state void mainevt(machine_config &config); protected: - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; private: // devices @@ -122,8 +122,8 @@ class mainevt_state : public base_state K052109_CB_MEMBER(tile_callback); K051960_CB_MEMBER(sprite_callback); - void main_map(address_map &map); - void sound_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; }; class devstors_state : public base_state @@ -136,8 +136,8 @@ class devstors_state : public base_state void devstors(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: // misc @@ -153,8 +153,8 @@ class devstors_state : public base_state K052109_CB_MEMBER(tile_callback); K051960_CB_MEMBER(sprite_callback); - void main_map(address_map &map); - void sound_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/konami/megazone.cpp b/src/mame/konami/megazone.cpp index 80d44a3b60b..f3f79038342 100644 --- a/src/mame/konami/megazone.cpp +++ b/src/mame/konami/megazone.cpp @@ -224,9 +224,9 @@ class megazone_state : public driver_device void megazone(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: // memory pointers @@ -264,11 +264,11 @@ class megazone_state : public driver_device void palette(palette_device &palette) const; uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void vblank_irq(int state); - void i8039_io_map(address_map &map); - void i8039_map(address_map &map); - void main_map(address_map &map); - void sound_io_map(address_map &map); - void sound_map(address_map &map); + void i8039_io_map(address_map &map) ATTR_COLD; + void i8039_map(address_map &map) ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; + void sound_io_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/konami/midikbd.h b/src/mame/konami/midikbd.h index ebec095a231..62c12d2e62d 100644 --- a/src/mame/konami/midikbd.h +++ b/src/mame/konami/midikbd.h @@ -17,7 +17,7 @@ class midi_keyboard_device : public device_t, public device_serial_interface auto tx_callback() { return m_out_tx_func.bind(); } protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void tra_callback() override; virtual void tra_complete() override; diff --git a/src/mame/konami/mikie.cpp b/src/mame/konami/mikie.cpp index 353ec5c64ae..6eef83818e4 100644 --- a/src/mame/konami/mikie.cpp +++ b/src/mame/konami/mikie.cpp @@ -77,9 +77,9 @@ class mikie_state : public driver_device void mikie(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: // memory pointers @@ -111,8 +111,8 @@ class mikie_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void vblank_irq(int state); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); - void main_map(address_map &map); - void sound_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/konami/mogura.cpp b/src/mame/konami/mogura.cpp index 42de28168e5..07efc4a0cef 100644 --- a/src/mame/konami/mogura.cpp +++ b/src/mame/konami/mogura.cpp @@ -96,7 +96,7 @@ class mogura_state : public driver_device void mogura(machine_config &config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -115,8 +115,8 @@ class mogura_state : public driver_device void palette(palette_device &palette) const; uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void prg_map(address_map &map); - void io_map(address_map &map); + void prg_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/konami/moo.cpp b/src/mame/konami/moo.cpp index fc36490c79d..821568abe05 100644 --- a/src/mame/konami/moo.cpp +++ b/src/mame/konami/moo.cpp @@ -216,10 +216,10 @@ class moo_state : public driver_device void moo_objdma(); K056832_CB_MEMBER(tile_callback); K053246_CB_MEMBER(sprite_callback); - void bucky_map(address_map &map); - void moo_map(address_map &map); - void moobl_map(address_map &map); - void sound_map(address_map &map); + void bucky_map(address_map &map) ATTR_COLD; + void moo_map(address_map &map) ATTR_COLD; + void moobl_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/konami/mystwarr.h b/src/mame/konami/mystwarr.h index 2980ee06b0d..36973c63832 100644 --- a/src/mame/konami/mystwarr.h +++ b/src/mame/konami/mystwarr.h @@ -110,14 +110,14 @@ class mystwarr_state : public konamigx_state K055673_CB_MEMBER(gaiapols_sprite_callback); K055673_CB_MEMBER(martchmp_sprite_callback); void decode_tiles(); - void dadandrn_map(address_map &map); - void gaiapols_map(address_map &map); - void martchmp_map(address_map &map); - void martchmp_sound_map(address_map &map); - void metamrph_map(address_map &map); - void mystwarr_map(address_map &map); - void mystwarr_sound_map(address_map &map); - void oki_map(address_map &map); // for viostormabbl - void viostorm_map(address_map &map); - void viostormbl_map(address_map &map); + void dadandrn_map(address_map &map) ATTR_COLD; + void gaiapols_map(address_map &map) ATTR_COLD; + void martchmp_map(address_map &map) ATTR_COLD; + void martchmp_sound_map(address_map &map) ATTR_COLD; + void metamrph_map(address_map &map) ATTR_COLD; + void mystwarr_map(address_map &map) ATTR_COLD; + void mystwarr_sound_map(address_map &map) ATTR_COLD; + void oki_map(address_map &map) ATTR_COLD; // for viostormabbl + void viostorm_map(address_map &map) ATTR_COLD; + void viostormbl_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/konami/nemesis.h b/src/mame/konami/nemesis.h index b83be557fe0..ee8b4dea062 100644 --- a/src/mame/konami/nemesis.h +++ b/src/mame/konami/nemesis.h @@ -145,9 +145,9 @@ class nemesis_state : public driver_device void city_sound_bank_w(uint8_t data); TILE_GET_INFO_MEMBER(get_bg_tile_info); TILE_GET_INFO_MEMBER(get_fg_tile_info); - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; uint32_t screen_update_nemesis(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void nemesis_vblank_irq(int state); void bubsys_vblank_irq(int state); @@ -163,23 +163,23 @@ class nemesis_state : public driver_device void volume_callback(uint8_t data); void set_screen_raw_params(machine_config &config); - void blkpnthr_map(address_map &map); - void blkpnthr_sound_map(address_map &map); - void city_sound_map(address_map &map); - void citybomb_map(address_map &map); - void gx400_map(address_map &map); - void gx400_sound_map(address_map &map); - void gx400_vlm_map(address_map &map); - void hcrash_map(address_map &map); - void konamigt_map(address_map &map); - void nemesis_map(address_map &map); - void nyanpani_map(address_map &map); - void rf2_gx400_map(address_map &map); - void sal_sound_map(address_map &map); - void salamand_map(address_map &map); - void salamand_vlm_map(address_map &map); - void sound_map(address_map &map); - void bubsys_map(address_map &map); + void blkpnthr_map(address_map &map) ATTR_COLD; + void blkpnthr_sound_map(address_map &map) ATTR_COLD; + void city_sound_map(address_map &map) ATTR_COLD; + void citybomb_map(address_map &map) ATTR_COLD; + void gx400_map(address_map &map) ATTR_COLD; + void gx400_sound_map(address_map &map) ATTR_COLD; + void gx400_vlm_map(address_map &map) ATTR_COLD; + void hcrash_map(address_map &map) ATTR_COLD; + void konamigt_map(address_map &map) ATTR_COLD; + void nemesis_map(address_map &map) ATTR_COLD; + void nyanpani_map(address_map &map) ATTR_COLD; + void rf2_gx400_map(address_map &map) ATTR_COLD; + void sal_sound_map(address_map &map) ATTR_COLD; + void salamand_map(address_map &map) ATTR_COLD; + void salamand_vlm_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; + void bubsys_map(address_map &map) ATTR_COLD; }; #endif // MAME_KONAMI_NEMESIS_H diff --git a/src/mame/konami/nwk-tr.cpp b/src/mame/konami/nwk-tr.cpp index b2b79363edc..c110a753c57 100644 --- a/src/mame/konami/nwk-tr.cpp +++ b/src/mame/konami/nwk-tr.cpp @@ -283,8 +283,8 @@ class nwktr_state : public driver_device void init_thrilld(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: // TODO: Needs verification on real hardware @@ -326,10 +326,10 @@ class nwktr_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void ppc_map(address_map &map); - void sharc0_map(address_map &map); - void sharc1_map(address_map &map); - void sound_memmap(address_map &map); + void ppc_map(address_map &map) ATTR_COLD; + void sharc0_map(address_map &map) ATTR_COLD; + void sharc1_map(address_map &map) ATTR_COLD; + void sound_memmap(address_map &map) ATTR_COLD; }; void nwktr_state::paletteram32_w(offs_t offset, uint32_t data, uint32_t mem_mask) diff --git a/src/mame/konami/otomedius.cpp b/src/mame/konami/otomedius.cpp index 686623a7c43..e347f167256 100644 --- a/src/mame/konami/otomedius.cpp +++ b/src/mame/konami/otomedius.cpp @@ -35,11 +35,11 @@ class konami_pc_state : public driver_device private: required_device m_maincpu; - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; uint32_t screen_update_konami_pc(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void konami_pc_map(address_map &map); + void konami_pc_map(address_map &map) ATTR_COLD; }; void konami_pc_state::video_start() diff --git a/src/mame/konami/overdriv.cpp b/src/mame/konami/overdriv.cpp index 84b54f9f1c3..750654a2ed3 100644 --- a/src/mame/konami/overdriv.cpp +++ b/src/mame/konami/overdriv.cpp @@ -90,13 +90,13 @@ class overdriv_state : public driver_device K051316_CB_MEMBER(zoom_callback_1); K051316_CB_MEMBER(zoom_callback_2); K053246_CB_MEMBER(sprite_callback); - void overdriv_master_map(address_map &map); - void overdriv_slave_map(address_map &map); - void overdriv_sound_map(address_map &map); + void overdriv_master_map(address_map &map) ATTR_COLD; + void overdriv_slave_map(address_map &map) ATTR_COLD; + void overdriv_sound_map(address_map &map) ATTR_COLD; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; /* video-related */ int m_zoom_colorbase[2]{}; diff --git a/src/mame/konami/pandoras.cpp b/src/mame/konami/pandoras.cpp index 678038375bf..e3c1659244b 100644 --- a/src/mame/konami/pandoras.cpp +++ b/src/mame/konami/pandoras.cpp @@ -65,9 +65,9 @@ class pandoras_state : public driver_device void pandoras(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: // memory pointers @@ -111,11 +111,11 @@ class pandoras_state : public driver_device void vblank_irq(int state); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect, uint8_t* sr); - void i8039_io_map(address_map &map); - void i8039_map(address_map &map); - void master_map(address_map &map); - void slave_map(address_map &map); - void sound_map(address_map &map); + void i8039_io_map(address_map &map) ATTR_COLD; + void i8039_map(address_map &map) ATTR_COLD; + void master_map(address_map &map) ATTR_COLD; + void slave_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/konami/parodius.cpp b/src/mame/konami/parodius.cpp index f0e79982f45..f51ddb5516c 100644 --- a/src/mame/konami/parodius.cpp +++ b/src/mame/konami/parodius.cpp @@ -48,8 +48,8 @@ class parodius_state : public driver_device void parodius(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: // devices @@ -81,9 +81,9 @@ class parodius_state : public driver_device K052109_CB_MEMBER(tile_callback); void banking_callback(uint8_t data); - void bank0000_map(address_map &map); - void main_map(address_map &map); - void sound_map(address_map &map); + void bank0000_map(address_map &map) ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/konami/pingpong.cpp b/src/mame/konami/pingpong.cpp index 48f8685312a..059bce96fc9 100644 --- a/src/mame/konami/pingpong.cpp +++ b/src/mame/konami/pingpong.cpp @@ -43,11 +43,11 @@ class pingpong_state : public driver_device void init_merlinmm(); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; required_device m_maincpu; - void merlinmm_map(address_map &map); + void merlinmm_map(address_map &map) ATTR_COLD; private: required_shared_ptr m_colorram; @@ -69,7 +69,7 @@ class pingpong_state : public driver_device TIMER_DEVICE_CALLBACK_MEMBER(merlinmm_interrupt); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); - void pingpong_map(address_map &map); + void pingpong_map(address_map &map) ATTR_COLD; }; class cashquiz_state : public pingpong_state @@ -85,7 +85,7 @@ class cashquiz_state : public pingpong_state void init_cashquiz(); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_memory_bank_array<8> m_banks; @@ -95,7 +95,7 @@ class cashquiz_state : public pingpong_state void question_bank_high_w(uint8_t data); void question_bank_low_w(uint8_t data); - void prg_map(address_map &map); + void prg_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/konami/piratesh.cpp b/src/mame/konami/piratesh.cpp index c9661e8e197..93d9dfc9b75 100644 --- a/src/mame/konami/piratesh.cpp +++ b/src/mame/konami/piratesh.cpp @@ -74,9 +74,9 @@ class piratesh_state : public driver_device ioport_value battery_r(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -116,7 +116,7 @@ class piratesh_state : public driver_device TIMER_DEVICE_CALLBACK_MEMBER(piratesh_interrupt); K056832_CB_MEMBER(piratesh_tile_callback); K055673_CB_MEMBER(piratesh_sprite_callback); - void piratesh_map(address_map &map); + void piratesh_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/konami/plygonet.cpp b/src/mame/konami/plygonet.cpp index 3c206dde837..ef20460dc58 100644 --- a/src/mame/konami/plygonet.cpp +++ b/src/mame/konami/plygonet.cpp @@ -151,14 +151,14 @@ class polygonet_state : public driver_device void plygonet(machine_config &config); private: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; - - void main_map(address_map &map); - void sound_map(address_map &map); - void dsp_program_map(address_map &map); - void dsp_data_map(address_map &map); + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; + + void main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; + void dsp_program_map(address_map &map) ATTR_COLD; + void dsp_data_map(address_map &map) ATTR_COLD; // Main-board handlers void sys_w(offs_t offset, u8 data); diff --git a/src/mame/konami/pooyan.cpp b/src/mame/konami/pooyan.cpp index e8257b7ec65..344743db40c 100644 --- a/src/mame/konami/pooyan.cpp +++ b/src/mame/konami/pooyan.cpp @@ -46,8 +46,8 @@ class pooyan_state : public driver_device void pooyan(machine_config &config); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: // devices @@ -79,7 +79,7 @@ class pooyan_state : public driver_device void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); void vblank_irq(int state); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/konami/qdrmfgp.cpp b/src/mame/konami/qdrmfgp.cpp index 300b3f3fb56..8b49aefc7b7 100644 --- a/src/mame/konami/qdrmfgp.cpp +++ b/src/mame/konami/qdrmfgp.cpp @@ -61,7 +61,7 @@ class qdrmfgp_state : public driver_device ioport_value battery_sensor_r(); protected: - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; @@ -107,9 +107,9 @@ class qdrmfgp_state : public driver_device K056832_CB_MEMBER(qdrmfgp_tile_callback); K056832_CB_MEMBER(qdrmfgp2_tile_callback); - void qdrmfgp2_map(address_map &map); - void qdrmfgp_k054539_map(address_map &map); - void qdrmfgp_map(address_map &map); + void qdrmfgp2_map(address_map &map) ATTR_COLD; + void qdrmfgp_k054539_map(address_map &map) ATTR_COLD; + void qdrmfgp_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/konami/quickpick5.cpp b/src/mame/konami/quickpick5.cpp index fa2f174723b..3b98a5500c0 100644 --- a/src/mame/konami/quickpick5.cpp +++ b/src/mame/konami/quickpick5.cpp @@ -96,13 +96,13 @@ class quickpick5_state : public driver_device void serial_io_w(u8 data); void out_w(u8 data); - void common_map(address_map &map); - void quickpick5_main(address_map &map); - void waijockey_main(address_map &map); + void common_map(address_map &map) ATTR_COLD; + void quickpick5_main(address_map &map) ATTR_COLD; + void waijockey_main(address_map &map) ATTR_COLD; - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; required_device m_maincpu; required_device m_palette; diff --git a/src/mame/konami/rockrage.cpp b/src/mame/konami/rockrage.cpp index cb4f36ceb9c..0e6dd73c17d 100644 --- a/src/mame/konami/rockrage.cpp +++ b/src/mame/konami/rockrage.cpp @@ -87,8 +87,8 @@ class rockrage_state : public driver_device void rockrage(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: // devices @@ -115,9 +115,9 @@ class rockrage_state : public driver_device void tile_callback(int layer, uint32_t bank, uint32_t &code, uint32_t &color, uint8_t &flags); void sprite_callback(uint32_t &code, uint32_t &color); - void main_map(address_map &map); - void sound_map(address_map &map); - void vlm_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; + void vlm_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/konami/rocnrope.cpp b/src/mame/konami/rocnrope.cpp index 805c0fffdd0..2c7e1d327f9 100644 --- a/src/mame/konami/rocnrope.cpp +++ b/src/mame/konami/rocnrope.cpp @@ -47,8 +47,8 @@ class rocnrope_state : public driver_device void init_rocnrope(); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: // devices @@ -76,7 +76,7 @@ class rocnrope_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void vblank_irq(int state); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/konami/rollerg.cpp b/src/mame/konami/rollerg.cpp index 94075ff38b4..2b003a5684c 100644 --- a/src/mame/konami/rollerg.cpp +++ b/src/mame/konami/rollerg.cpp @@ -57,8 +57,8 @@ class rollerg_state : public driver_device void rollerg(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: // devices @@ -84,8 +84,8 @@ class rollerg_state : public driver_device K05324X_CB_MEMBER(sprite_callback); K051316_CB_MEMBER(zoom_callback); - void main_map(address_map &map); - void sound_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/konami/rungun.cpp b/src/mame/konami/rungun.cpp index 6c3316b8dad..b5971b7afd4 100644 --- a/src/mame/konami/rungun.cpp +++ b/src/mame/konami/rungun.cpp @@ -76,9 +76,9 @@ class rungun_state : public driver_device void rng_dual(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: /* devices */ @@ -156,8 +156,8 @@ class rungun_state : public driver_device INTERRUPT_GEN_MEMBER(rng_interrupt); - void rungun_map(address_map &map); - void rungun_sound_map(address_map &map); + void rungun_map(address_map &map) ATTR_COLD; + void rungun_sound_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/konami/sbasketb.cpp b/src/mame/konami/sbasketb.cpp index c152234c311..16a3c69b7ea 100644 --- a/src/mame/konami/sbasketb.cpp +++ b/src/mame/konami/sbasketb.cpp @@ -88,7 +88,7 @@ class sbasketb_state : public driver_device void sbasketbu(machine_config &config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: // memory pointers @@ -128,8 +128,8 @@ class sbasketb_state : public driver_device void vblank_irq(int state); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); - void main_map(address_map &map); - void sound_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/konami/scotrsht.cpp b/src/mame/konami/scotrsht.cpp index 67cb86ea216..7bc94a5852a 100644 --- a/src/mame/konami/scotrsht.cpp +++ b/src/mame/konami/scotrsht.cpp @@ -71,7 +71,7 @@ class scotrsht_state : public driver_device void scotrsht(machine_config &config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -105,9 +105,9 @@ class scotrsht_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); - void main_map(address_map &map); - void sound_map(address_map &map); - void sound_portmap(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; + void sound_portmap(address_map &map) ATTR_COLD; }; diff --git a/src/mame/konami/shaolins.cpp b/src/mame/konami/shaolins.cpp index d50401caa82..fbb9af6b613 100644 --- a/src/mame/konami/shaolins.cpp +++ b/src/mame/konami/shaolins.cpp @@ -132,7 +132,7 @@ class shaolins_state : public driver_device void shaolins(machine_config &config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -162,7 +162,7 @@ class shaolins_state : public driver_device void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); TIMER_DEVICE_CALLBACK_MEMBER(interrupt); - void prg_map(address_map &map); + void prg_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/konami/simpsons.cpp b/src/mame/konami/simpsons.cpp index 8462a87f51d..fb32f317e49 100644 --- a/src/mame/konami/simpsons.cpp +++ b/src/mame/konami/simpsons.cpp @@ -133,13 +133,13 @@ class simpsons_state : public driver_device void simpsons(machine_config &config); private: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; - void bank0000_map(address_map &map); - void bank2000_map(address_map &map); - void main_map(address_map &map); - void z80_map(address_map &map); + void bank0000_map(address_map &map) ATTR_COLD; + void bank2000_map(address_map &map) ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; + void z80_map(address_map &map) ATTR_COLD; TIMER_CALLBACK_MEMBER(dma_start); TIMER_CALLBACK_MEMBER(dma_end); diff --git a/src/mame/konami/spy.cpp b/src/mame/konami/spy.cpp index d68c85e2169..b7fae8d7f59 100644 --- a/src/mame/konami/spy.cpp +++ b/src/mame/konami/spy.cpp @@ -93,8 +93,8 @@ class spy_state : public driver_device void sound_bank_w(uint8_t data); uint8_t k052109_051960_r(offs_t offset); void k052109_051960_w(offs_t offset, uint8_t data); - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; uint32_t screen_update_spy(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void pmc_run(); void volume_callback0(uint8_t data); @@ -102,8 +102,8 @@ class spy_state : public driver_device K052109_CB_MEMBER(tile_callback); K051960_CB_MEMBER(sprite_callback); - void spy_map(address_map &map); - void spy_sound_map(address_map &map); + void spy_map(address_map &map) ATTR_COLD; + void spy_sound_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/konami/stingnet.cpp b/src/mame/konami/stingnet.cpp index b586163893e..932e3bd2332 100644 --- a/src/mame/konami/stingnet.cpp +++ b/src/mame/konami/stingnet.cpp @@ -107,8 +107,8 @@ class stingnet_state : public driver_device void stingnet(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; @@ -123,8 +123,8 @@ class stingnet_state : public driver_device u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void main_map(address_map &map); - void ymz280b_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void ymz280b_map(address_map &map) ATTR_COLD; void gcu_interrupt(int state); void ata_interrupt(int state); diff --git a/src/mame/konami/surpratk.cpp b/src/mame/konami/surpratk.cpp index 8544c2da219..6cf7431ca7b 100644 --- a/src/mame/konami/surpratk.cpp +++ b/src/mame/konami/surpratk.cpp @@ -47,8 +47,8 @@ class surpratk_state : public driver_device void surpratk(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: // video-related @@ -73,8 +73,8 @@ class surpratk_state : public driver_device K05324X_CB_MEMBER(sprite_callback); K052109_CB_MEMBER(tile_callback); void banking_callback(uint8_t data); - void bank0000_map(address_map &map); - void main_map(address_map &map); + void bank0000_map(address_map &map) ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/konami/tasman.cpp b/src/mame/konami/tasman.cpp index 344c0bc9752..5c3e5bd0eb2 100644 --- a/src/mame/konami/tasman.cpp +++ b/src/mame/konami/tasman.cpp @@ -62,7 +62,7 @@ class kongambl_state : public driver_device protected: virtual void machine_reset() override { m_irq_mask = 0; }; - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -92,8 +92,8 @@ class kongambl_state : public driver_device K056832_CB_MEMBER(tile_callback); K053246_CB_MEMBER(sprite_callback); - void kongamaud_map(address_map &map); - void kongambl_map(address_map &map); + void kongamaud_map(address_map &map) ATTR_COLD; + void kongambl_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/konami/tgtpanic.cpp b/src/mame/konami/tgtpanic.cpp index 9839b49ea2c..2b764409dbd 100644 --- a/src/mame/konami/tgtpanic.cpp +++ b/src/mame/konami/tgtpanic.cpp @@ -39,7 +39,7 @@ class tgtpanic_state : public driver_device void tgtpanic(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_maincpu; @@ -52,8 +52,8 @@ class tgtpanic_state : public driver_device void color_w(uint8_t data) { m_color = data; } uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void io_map(address_map &map); - void prg_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void prg_map(address_map &map) ATTR_COLD; }; void tgtpanic_state::machine_start() diff --git a/src/mame/konami/timeplt.cpp b/src/mame/konami/timeplt.cpp index 7ca3462f2d2..36eeef54630 100644 --- a/src/mame/konami/timeplt.cpp +++ b/src/mame/konami/timeplt.cpp @@ -84,8 +84,8 @@ class timeplt_state : public driver_device void timeplt(machine_config &config); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; required_device m_maincpu; required_device m_mainlatch; @@ -103,7 +103,7 @@ class timeplt_state : public driver_device // video-related tilemap_t *m_bg_tilemap = nullptr; - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; private: // misc @@ -130,12 +130,12 @@ class psurge_state : public timeplt_state void psurge(machine_config &config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: uint8_t protection_r(); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; }; class bikkuric_state : public timeplt_state @@ -148,12 +148,12 @@ class bikkuric_state : public timeplt_state int hopper_status_r(); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: TILE_GET_INFO_MEMBER(get_tile_info); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; }; class chkun_state : public bikkuric_state diff --git a/src/mame/konami/tmnt.cpp b/src/mame/konami/tmnt.cpp index bf92a3872e3..c773674bc9c 100644 --- a/src/mame/konami/tmnt.cpp +++ b/src/mame/konami/tmnt.cpp @@ -143,8 +143,8 @@ class tmnt_state : public driver_device void init_cuebrick(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: // memory pointers @@ -198,12 +198,12 @@ class tmnt_state : public driver_device K052109_CB_MEMBER(tmnt_tile_callback); SAMPLES_START_CB_MEMBER(tmnt_decode_sample); - void cuebrick_main_map(address_map &map); - void mia_audio_map(address_map &map); - void mia_main_map(address_map &map); - void tmnt_audio_map(address_map &map); - void tmntucbl_audio_map(address_map &map); - void tmnt_main_map(address_map &map); + void cuebrick_main_map(address_map &map) ATTR_COLD; + void mia_audio_map(address_map &map) ATTR_COLD; + void mia_main_map(address_map &map) ATTR_COLD; + void tmnt_audio_map(address_map &map) ATTR_COLD; + void tmntucbl_audio_map(address_map &map) ATTR_COLD; + void tmnt_main_map(address_map &map) ATTR_COLD; }; uint16_t tmnt_state::k052109_word_noA12_r(offs_t offset, uint16_t mem_mask) diff --git a/src/mame/konami/tmnt2.cpp b/src/mame/konami/tmnt2.cpp index 064026ecca4..04651ff9e63 100644 --- a/src/mame/konami/tmnt2.cpp +++ b/src/mame/konami/tmnt2.cpp @@ -123,8 +123,8 @@ class tmnt2_state : public driver_device void punkshot(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; // memory pointers optional_shared_ptr m_spriteram; @@ -213,16 +213,16 @@ class tmnt2_state : public driver_device K052109_CB_MEMBER(tmnt_tile_callback); K052109_CB_MEMBER(blswhstl_tile_callback); - void blswhstl_main_map(address_map &map); - void lgtnfght_audio_map(address_map &map); - void lgtnfght_main_map(address_map &map); - void punkshot_audio_map(address_map &map); - void punkshot_main_map(address_map &map); - void ssriders_audio_map(address_map &map); - void ssriders_main_map(address_map &map); - void thndrx2_audio_map(address_map &map); - void thndrx2_main_map(address_map &map); - void tmnt2_main_map(address_map &map); + void blswhstl_main_map(address_map &map) ATTR_COLD; + void lgtnfght_audio_map(address_map &map) ATTR_COLD; + void lgtnfght_main_map(address_map &map) ATTR_COLD; + void punkshot_audio_map(address_map &map) ATTR_COLD; + void punkshot_main_map(address_map &map) ATTR_COLD; + void ssriders_audio_map(address_map &map) ATTR_COLD; + void ssriders_main_map(address_map &map) ATTR_COLD; + void thndrx2_audio_map(address_map &map) ATTR_COLD; + void thndrx2_main_map(address_map &map) ATTR_COLD; + void tmnt2_main_map(address_map &map) ATTR_COLD; }; class glfgreat_state : public tmnt2_state @@ -245,8 +245,8 @@ class glfgreat_state : public tmnt2_state TILE_GET_INFO_MEMBER(glfgreat_get_roz_tile_info); DECLARE_VIDEO_START(glfgreat); - void glfgreat_audio_map(address_map &map); - void glfgreat_main_map(address_map &map); + void glfgreat_audio_map(address_map &map) ATTR_COLD; + void glfgreat_main_map(address_map &map) ATTR_COLD; required_ioport_array<4> m_analog_controller; @@ -267,7 +267,7 @@ class prmrsocr_state : public tmnt2_state void prmrsocr(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: void prmrsocr_sound_irq_w(uint16_t data); @@ -280,8 +280,8 @@ class prmrsocr_state : public tmnt2_state DECLARE_VIDEO_START(prmrsocr); K05324X_CB_MEMBER(prmrsocr_sprite_callback); - void prmrsocr_audio_map(address_map &map); - void prmrsocr_main_map(address_map &map); + void prmrsocr_audio_map(address_map &map) ATTR_COLD; + void prmrsocr_main_map(address_map &map) ATTR_COLD; required_memory_bank m_audiobank; @@ -299,14 +299,14 @@ class sunsetbl_state : public tmnt2_state void sunsetbl(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: void irq_enable_w(u8 data); void sunsetbl_vblank_w(int state); K052109_CB_MEMBER(ssbl_tile_callback); - void sunsetbl_main_map(address_map &map); + void sunsetbl_main_map(address_map &map) ATTR_COLD; bool m_irq_enable = false; }; @@ -3361,6 +3361,34 @@ ROM_START( tmnt2a ) ROM_LOAD( "tmnt2_ada.nv", 0x0000, 0x080, CRC(063068a0) SHA1(c1da5319428fd8fb60305a2d7cc166596b2fe5a4) ) ROM_END +ROM_START( tmnt2o ) + ROM_REGION( 0x100000, "maincpu", 0 ) /* 4*128k for 68000 code */ + ROM_LOAD16_BYTE( "063oaa02.8e", 0x000000, 0x20000, CRC(07067dbf) SHA1(3ffd6f09b24dfd9a403097cbba19ae7b51110dc5) ) + ROM_LOAD16_BYTE( "063oaa03.8g", 0x000001, 0x20000, CRC(b0fadf6b) SHA1(8dde410d323dd6dd5b08b32b5363875782b45191) ) + ROM_LOAD16_BYTE( "063oaa04.10e", 0x040000, 0x20000, CRC(b5eb7c49) SHA1(72193d8a334f22cf7a617e42eaebce45b8eb83f2) ) + ROM_LOAD16_BYTE( "063oaa05.10g", 0x040001, 0x20000, CRC(bd4dcca4) SHA1(3b47c086fccefe172746c00af88e1f98914c6567) ) + + ROM_REGION( 0x10000, "audiocpu", 0 ) + ROM_LOAD( "063b01.2f", 0x0000, 0x10000, CRC(364f548a) SHA1(e0636e27d4fc48b2ccb1417b63d2b68d9e272c06) ) + + ROM_REGION( 0x100000, "k052109", 0 ) /* tiles */ + ROM_LOAD32_WORD( "063b12.16k", 0x000000, 0x080000, CRC(d3283d19) SHA1(49e4daa9cbe4d99bf71fcee6237cb434a0d55312) ) + ROM_LOAD32_WORD( "063b11.12k", 0x000002, 0x080000, CRC(6ebc0c15) SHA1(e6848405076937fbf8ec6d318293a0ff922725f4) ) + + ROM_REGION( 0x400000, "k053245", 0 ) /* sprites */ + ROM_LOAD32_WORD( "063b09.7l", 0x000000, 0x100000, CRC(2d7a9d2a) SHA1(a26f9c1a07152bc8c7bcd797d4485bf848f5e2a0) ) + ROM_LOAD32_WORD( "063b07.3l", 0x000002, 0x100000, CRC(d9bee7bf) SHA1(7bbb65138fbd216b80412783e6f0072742101440) ) + ROM_LOAD32_WORD( "063b10.7k", 0x200000, 0x080000, CRC(f2dd296e) SHA1(a2aad10bfb0904dd73c2ee11049648c94de7f4d5) ) + ROM_LOAD32_WORD( "063b08.3k", 0x200002, 0x080000, CRC(3b1ae36f) SHA1(9e69cae8b517497ac77c4d148f56f2bb6a23de89) ) + /* second half empty */ + + ROM_REGION( 0x200000, "k053260", 0 ) /* samples for the 053260 */ + ROM_LOAD( "063b06.1d", 0x0000, 0x200000, CRC(1e510aa5) SHA1(02b9bd6bb6b098026a620e4d671c40a31ad9e318) ) + + ROM_REGION( 0x80, "eeprom", 0 ) // default eeprom to prevent game booting upside down with error + ROM_LOAD( "tmnt2_oaa.nv", 0x0000, 0x080, CRC(e3858340) SHA1(6bac93b5485d68dfd2e15615fa7e95d631e9bf67) ) +ROM_END + ROM_START( qgakumon ) ROM_REGION( 0x100000, "maincpu", 0 ) /* 4*256k for 68000 code */ ROM_LOAD16_BYTE( "248jaa02.8e", 0x000000, 0x40000, CRC(fab79410) SHA1(8b1a8946ee65505608cf026c9fca87365ccef089) ) @@ -3914,6 +3942,7 @@ GAME( 1991, glfgreatj, glfgreat, glfgreat, glfgreatj, glfgreat_state, empty_in GAME( 1991, tmnt2, 0, tmnt2, ssridr4p, tmnt2_state, empty_init, ROT0, "Konami", "Teenage Mutant Ninja Turtles - Turtles in Time (4 Players ver UAA)", MACHINE_SUPPORTS_SAVE ) GAME( 1991, tmnt2a, tmnt2, tmnt2, ssrid4ps, tmnt2_state, empty_init, ROT0, "Konami", "Teenage Mutant Ninja Turtles - Turtles in Time (4 Players ver ADA)", MACHINE_SUPPORTS_SAVE ) +GAME( 1991, tmnt2o, tmnt2, tmnt2, ssrid4ps, tmnt2_state, empty_init, ROT0, "Konami", "Teenage Mutant Ninja Turtles - Turtles in Time (4 Players ver OAA)", MACHINE_SUPPORTS_SAVE ) GAME( 1991, tmht22pe, tmnt2, tmnt2, ssriders, tmnt2_state, empty_init, ROT0, "Konami", "Teenage Mutant Hero Turtles - Turtles in Time (2 Players ver EBA)", MACHINE_SUPPORTS_SAVE ) GAME( 1991, tmht24pe, tmnt2, tmnt2, ssridr4p, tmnt2_state, empty_init, ROT0, "Konami", "Teenage Mutant Hero Turtles - Turtles in Time (4 Players ver EAA)", MACHINE_SUPPORTS_SAVE ) GAME( 1991, tmnt22pu, tmnt2, tmnt2, ssriders, tmnt2_state, empty_init, ROT0, "Konami", "Teenage Mutant Ninja Turtles - Turtles in Time (2 Players ver UDA)", MACHINE_SUPPORTS_SAVE ) diff --git a/src/mame/konami/tp84.cpp b/src/mame/konami/tp84.cpp index ff6ad0e2a35..9ffd16b6a5b 100644 --- a/src/mame/konami/tp84.cpp +++ b/src/mame/konami/tp84.cpp @@ -111,8 +111,8 @@ class tp84_state : public driver_device void tp84b(machine_config &config); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -157,10 +157,10 @@ class tp84_state : public driver_device void vblank_irq(int state); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); - void audio_map(address_map &map); - void cpu2_map(address_map &map); - void tp84_cpu1_map(address_map &map); - void tp84b_cpu1_map(address_map &map); + void audio_map(address_map &map) ATTR_COLD; + void cpu2_map(address_map &map) ATTR_COLD; + void tp84_cpu1_map(address_map &map) ATTR_COLD; + void tp84b_cpu1_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/konami/trackfld.h b/src/mame/konami/trackfld.h index c83b650f7b2..608e4ecc100 100644 --- a/src/mame/konami/trackfld.h +++ b/src/mame/konami/trackfld.h @@ -69,16 +69,16 @@ class trackfld_state : public driver_device void konami_SN76496_latch_w(uint8_t data) { m_SN76496_latch = data; } void konami_SN76496_w(uint8_t data) { m_sn->write(m_SN76496_latch); } - void hyprolyb_sound_map(address_map &map); - void main_map(address_map &map); - void mastkin_map(address_map &map); - void reaktor_io_map(address_map &map); - void reaktor_map(address_map &map); - void sound_map(address_map &map); - void vlm_map(address_map &map); - void wizzquiz_map(address_map &map); - void yieartf_map(address_map &map); - void hyprolyb_adpcm_map(address_map &map); + void hyprolyb_sound_map(address_map &map) ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; + void mastkin_map(address_map &map) ATTR_COLD; + void reaktor_io_map(address_map &map) ATTR_COLD; + void reaktor_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; + void vlm_map(address_map &map) ATTR_COLD; + void wizzquiz_map(address_map &map) ATTR_COLD; + void yieartf_map(address_map &map) ATTR_COLD; + void hyprolyb_adpcm_map(address_map &map) ATTR_COLD; /* memory pointers */ required_shared_ptr m_spriteram2; diff --git a/src/mame/konami/trackfld_a.h b/src/mame/konami/trackfld_a.h index 3ac32099af4..a9c198bfaa7 100644 --- a/src/mame/konami/trackfld_a.h +++ b/src/mame/konami/trackfld_a.h @@ -30,8 +30,8 @@ class trackfld_audio_device : public device_t 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; private: optional_device m_audiocpu; diff --git a/src/mame/konami/tutankhm.h b/src/mame/konami/tutankhm.h index e8c47f40357..ddc5ec57948 100644 --- a/src/mame/konami/tutankhm.h +++ b/src/mame/konami/tutankhm.h @@ -50,14 +50,14 @@ class tutankhm_state : public driver_device void sound_on_w(uint8_t data); void flip_screen_x_w(int state); void flip_screen_y_w(int state); - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; uint32_t screen_update_tutankhm_bootleg(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); uint32_t screen_update_tutankhm_scramble(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); uint32_t screen_update_tutankhm(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); void vblank_irq(int state); - void main_map(address_map &map); - virtual void video_start() override; + void main_map(address_map &map) ATTR_COLD; + virtual void video_start() override ATTR_COLD; void galaxian_palette(palette_device &palette); static rgb_t raw_to_rgb_func(u32 raw); diff --git a/src/mame/konami/twin16.h b/src/mame/konami/twin16.h index 7d80744b344..60b7ea11ef0 100644 --- a/src/mame/konami/twin16.h +++ b/src/mame/konami/twin16.h @@ -94,13 +94,13 @@ class twin16_state : public driver_device TIMER_CALLBACK_MEMBER(sprite_tick); - void main_map(address_map &map); - void sound_map(address_map &map); - void sub_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; + void sub_map(address_map &map) ATTR_COLD; - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; virtual void tile_get_info(tile_data &tileinfo, uint16_t data, int color_base); @@ -126,9 +126,9 @@ class fround_state : public twin16_state void fround_CPU_register_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); void gfx_bank_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); - void fround_map(address_map &map); + void fround_map(address_map &map) ATTR_COLD; - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; virtual void tile_get_info(tile_data &tileinfo, uint16_t data, int color_base) override; uint8_t m_gfx_bank[4]{}; @@ -148,7 +148,7 @@ class cuebrickj_state : public twin16_state private: void nvram_bank_w(uint8_t data); - void cuebrickj_main_map(address_map &map); + void cuebrickj_main_map(address_map &map) ATTR_COLD; uint16_t m_nvram[0x400 * 0x20 / 2]{}; }; diff --git a/src/mame/konami/twinkle.cpp b/src/mame/konami/twinkle.cpp index 8696a0f7ffe..8b7f859dc35 100644 --- a/src/mame/konami/twinkle.cpp +++ b/src/mame/konami/twinkle.cpp @@ -333,8 +333,8 @@ class twinkle_state : public driver_device void twinkle_dvd_type2(machine_config &config); private: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; void twinkle_io_w(offs_t offset, uint8_t data); uint8_t twinkle_io_r(offs_t offset); @@ -355,9 +355,9 @@ class twinkle_state : public driver_device void scsi_dma_write(uint32_t *p_n_psxram, uint32_t n_address, int32_t n_size); void scsi_drq(int state); - void main_map(address_map &map); - void rf5c400_map(address_map &map); - void sound_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void rf5c400_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; TIMER_CALLBACK_MEMBER(scsi_dma_transfer); diff --git a/src/mame/konami/ultraman.cpp b/src/mame/konami/ultraman.cpp index a29000deb1b..66bc40385e6 100644 --- a/src/mame/konami/ultraman.cpp +++ b/src/mame/konami/ultraman.cpp @@ -80,9 +80,9 @@ class ultraman_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); template K051316_CB_MEMBER(zoom_callback); K051960_CB_MEMBER(sprite_callback); - void main_map(address_map &map); - void sound_io_map(address_map &map); - void sound_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_io_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/konami/ultrsprt.cpp b/src/mame/konami/ultrsprt.cpp index 84a64bd5bb6..b2dbe4ab239 100644 --- a/src/mame/konami/ultrsprt.cpp +++ b/src/mame/konami/ultrsprt.cpp @@ -39,8 +39,8 @@ class ultrsprt_state : public driver_device void ultrsprt(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: static const u32 VRAM_PAGES = 2; @@ -66,8 +66,8 @@ class ultrsprt_state : public driver_device u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void sound_map(address_map &map); - void main_map(address_map &map); + void sound_map(address_map &map) ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; std::unique_ptr m_vram; u32 m_cpu_vram_page; diff --git a/src/mame/konami/vendetta.cpp b/src/mame/konami/vendetta.cpp index 1ba14924767..3e5285a601b 100644 --- a/src/mame/konami/vendetta.cpp +++ b/src/mame/konami/vendetta.cpp @@ -135,8 +135,8 @@ class vendetta_state : public driver_device int obj_busy_r() { return m_obj_busy->enabled() ? 1 : 0; } protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: // video-related @@ -184,9 +184,9 @@ class vendetta_state : public driver_device void banking_callback(uint8_t data); K053246_CB_MEMBER(sprite_callback); - void esckids_map(address_map &map); - void main_map(address_map &map); - void sound_map(address_map &map); + void esckids_map(address_map &map) ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/konami/viper.cpp b/src/mame/konami/viper.cpp index 727a203bff8..9d9756bc646 100644 --- a/src/mame/konami/viper.cpp +++ b/src/mame/konami/viper.cpp @@ -465,14 +465,14 @@ class viper_state : public driver_device int ds2430_combined_r(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; virtual uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); required_device m_voodoo; private: - void mpc8240_soc_map(address_map &map); + void mpc8240_soc_map(address_map &map) ATTR_COLD; void unk2_w(offs_t offset, uint64_t data, uint64_t mem_mask = ~0); uint64_t voodoo3_io_r(offs_t offset, uint64_t mem_mask = ~0); @@ -515,9 +515,9 @@ class viper_state : public driver_device uint32_t m_voodoo3_pci_reg[0x100]; uint32_t m_mpc8240_regs[256/4]; - void viper_map(address_map &map); - void viper_ppp_map(address_map &map); - void omz3d_map(address_map &map); + void viper_map(address_map &map) ATTR_COLD; + void viper_ppp_map(address_map &map) ATTR_COLD; + void omz3d_map(address_map &map) ATTR_COLD; TIMER_CALLBACK_MEMBER(epic_global_timer_callback); TIMER_CALLBACK_MEMBER(i2c_timer_callback); @@ -653,7 +653,7 @@ class viper_subscreen_state : public viper_state protected: virtual uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect) override; - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: std::unique_ptr m_voodoo_buf; std::unique_ptr m_ttl_buf; diff --git a/src/mame/konami/wecleman.h b/src/mame/konami/wecleman.h index 25e2aa6cc89..dad92881864 100644 --- a/src/mame/konami/wecleman.h +++ b/src/mame/konami/wecleman.h @@ -46,9 +46,9 @@ class wecleman_state : public driver_device int hotchase_sound_status_r(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; enum { @@ -127,9 +127,9 @@ class wecleman_state : public driver_device output_finder<1> m_led; - void wecleman_map(address_map &map); - void wecleman_sound_map(address_map &map); - void wecleman_sub_map(address_map &map); + void wecleman_map(address_map &map) ATTR_COLD; + void wecleman_sound_map(address_map &map) ATTR_COLD; + void wecleman_sub_map(address_map &map) ATTR_COLD; static constexpr int NUM_SPRITES = 256; struct sprite_t @@ -171,8 +171,8 @@ class hotchase_state : public wecleman_state void init_hotchase(); protected: - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: uint32_t screen_update_hotchase(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); @@ -194,9 +194,9 @@ class hotchase_state : public wecleman_state void hotchase_sprite_decode( int num16_banks, int bank_size ); - void hotchase_map(address_map &map); - void hotchase_sound_map(address_map &map); - void hotchase_sub_map(address_map &map); + void hotchase_map(address_map &map) ATTR_COLD; + void hotchase_sound_map(address_map &map) ATTR_COLD; + void hotchase_sub_map(address_map &map) ATTR_COLD; }; #endif // MAME_KONAMI_WECLEMAN_H diff --git a/src/mame/konami/windy2.h b/src/mame/konami/windy2.h index 0000a95efd7..f647c2fa2c4 100644 --- a/src/mame/konami/windy2.h +++ b/src/mame/konami/windy2.h @@ -20,8 +20,8 @@ class windy2_device : public jvs_device protected: windy2_device(const machine_config &mconfig, const device_type type, const char *tag, device_t *owner, uint32_t clock, uint8_t player_count, uint8_t switch_count); - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; // JVS device overrides virtual const char *device_id() override; @@ -56,7 +56,7 @@ class windy2_2l6b_device : public windy2_device host.set_tag(std::forward(jvs_host_tag)); } - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; }; ///////////////////////////////////////////// @@ -73,7 +73,7 @@ class windy2_quiz_device : public windy2_device host.set_tag(std::forward(jvs_host_tag)); } - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; }; ///////////////////////////////////////////// @@ -90,7 +90,7 @@ class windy2_2l8b_device : public windy2_device host.set_tag(std::forward(jvs_host_tag)); } - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; }; ///////////////////////////////////////////// @@ -107,7 +107,7 @@ class windy2_1l6b_device : public windy2_device host.set_tag(std::forward(jvs_host_tag)); } - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; }; ///////////////////////////////////////////// @@ -124,7 +124,7 @@ class windy2_2l12b_device : public windy2_device host.set_tag(std::forward(jvs_host_tag)); } - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; }; DECLARE_DEVICE_TYPE(KONAMI_WINDY2_JVS_IO_2L6B_PANEL, windy2_2l6b_device) diff --git a/src/mame/konami/xexex.cpp b/src/mame/konami/xexex.cpp index 6116a15b182..53c53d4f774 100644 --- a/src/mame/konami/xexex.cpp +++ b/src/mame/konami/xexex.cpp @@ -240,9 +240,9 @@ class xexex_state : public driver_device void sound_irq_w(uint16_t data); void sound_bankswitch_w(uint8_t data); - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; uint32_t screen_update_xexex(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); TIMER_CALLBACK_MEMBER(dmaend_callback); TIMER_DEVICE_CALLBACK_MEMBER(xexex_interrupt); @@ -253,8 +253,8 @@ class xexex_state : public driver_device K053246_CB_MEMBER(sprite_callback); K054539_CB_MEMBER(ym_set_mixing); - void main_map(address_map &map); - void sound_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/konami/xmen.cpp b/src/mame/konami/xmen.cpp index 77ab9ad86de..5bbebe2b193 100644 --- a/src/mame/konami/xmen.cpp +++ b/src/mame/konami/xmen.cpp @@ -86,8 +86,8 @@ class xmen_state : public driver_device void xmenabl(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; // video-related uint8_t m_layer_colorbase[3]{}; @@ -125,11 +125,11 @@ class xmen_state : public driver_device K052109_CB_MEMBER(tile_callback); K053246_CB_MEMBER(sprite_callback); - void base_main_map(address_map &map); - void bootleg_main_map(address_map &map); - void main_map(address_map &map); - void oki_map(address_map &map); - void sound_map(address_map &map); + void base_main_map(address_map &map) ATTR_COLD; + void bootleg_main_map(address_map &map) ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; + void oki_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; void bootleg_sound_hardware(machine_config &config); }; @@ -148,7 +148,7 @@ class xmen6p_state : public xmen_state int frame_r(); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: std::unique_ptr m_screen_bitmap[2]; // 0 left screen, 1 right screen @@ -159,7 +159,7 @@ class xmen6p_state : public xmen_state template uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void screen_vblank(int state); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/konami/yiear.cpp b/src/mame/konami/yiear.cpp index 97ab7a88247..0d277ff6721 100644 --- a/src/mame/konami/yiear.cpp +++ b/src/mame/konami/yiear.cpp @@ -134,9 +134,9 @@ class yiear_state : public driver_device void yiear(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: // memory pointers @@ -173,8 +173,8 @@ class yiear_state : public driver_device INTERRUPT_GEN_MEMBER(nmi_interrupt); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); - void main_map(address_map &map); - void vlm_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void vlm_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/konami/zr107.cpp b/src/mame/konami/zr107.cpp index a858f8aa2cd..05a147a29bc 100644 --- a/src/mame/konami/zr107.cpp +++ b/src/mame/konami/zr107.cpp @@ -253,11 +253,11 @@ class zr107_state : public driver_device void k054539_irq_gen(int state); double adc0838_callback(uint8_t input); - void sharc_memmap(address_map &map); - void sound_memmap(address_map &map); + void sharc_memmap(address_map &map) ATTR_COLD; + void sound_memmap(address_map &map) ATTR_COLD; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; }; class midnrun_state : public zr107_state @@ -271,10 +271,10 @@ class midnrun_state : public zr107_state void midnrun(machine_config &config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: - void main_memmap(address_map &map); + void main_memmap(address_map &map) ATTR_COLD; K056832_CB_MEMBER(tile_callback); @@ -295,7 +295,7 @@ class jetwave_state : public zr107_state void jetwave(machine_config &config); private: - void main_memmap(address_map &map); + void main_memmap(address_map &map) ATTR_COLD; uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); diff --git a/src/mame/konami/zs01.h b/src/mame/konami/zs01.h index 398e0ef7a0b..57e0de1b4ba 100644 --- a/src/mame/konami/zs01.h +++ b/src/mame/konami/zs01.h @@ -37,8 +37,8 @@ class zs01_device : public device_t, 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; // device_nvram_interface overrides virtual void nvram_default() override; diff --git a/src/mame/kontron/kdt6.cpp b/src/mame/kontron/kdt6.cpp index 675a36f7e25..9e6114ce6a6 100644 --- a/src/mame/kontron/kdt6.cpp +++ b/src/mame/kontron/kdt6.cpp @@ -73,8 +73,8 @@ class kdt6_state : public driver_device void psi98(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: uint8_t memory_r(offs_t offset); @@ -115,8 +115,8 @@ class kdt6_state : public driver_device void rs232b_rx_w(int state); void siob_tx_w(int state); - void psi98_io(address_map &map); - void psi98_mem(address_map &map); + void psi98_io(address_map &map) ATTR_COLD; + void psi98_mem(address_map &map) ATTR_COLD; required_device m_cpu; required_device m_dma; diff --git a/src/mame/korg/korgds8.cpp b/src/mame/korg/korgds8.cpp index 9ffa66caac4..e1d7319f774 100644 --- a/src/mame/korg/korgds8.cpp +++ b/src/mame/korg/korgds8.cpp @@ -38,7 +38,7 @@ class korg_ds8_state : public driver_device void korg707(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: HD44780_PIXEL_UPDATE(lcd_pixel_update); @@ -52,7 +52,7 @@ class korg_ds8_state : public driver_device void line_mute_w(u8 data); void led_data_w(offs_t offset, u8 data); - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; void palette_init_ds8(palette_device &palette); diff --git a/src/mame/korg/korgdss1.cpp b/src/mame/korg/korgdss1.cpp index 427b7f2718c..4ea0a56635e 100644 --- a/src/mame/korg/korgdss1.cpp +++ b/src/mame/korg/korgdss1.cpp @@ -47,8 +47,8 @@ class korg_dss1_state : public driver_device void dss1(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; u8 klm782_ga1_r(offs_t offset); void klm782_ga1_w(offs_t offset, u8 data); @@ -88,8 +88,8 @@ class korg_dss1_state : public driver_device u8 kbd_r(); void kbd_w(u8 data); - void cpu1_map(address_map &map); - void cpu2_map(address_map &map); + void cpu1_map(address_map &map) ATTR_COLD; + void cpu2_map(address_map &map) ATTR_COLD; void palette_init_dss1(palette_device &palette); @@ -118,8 +118,8 @@ class korg_dssmsrk_state : public korg_dss1_state void dssmsrk(machine_config &config); private: - void msrk_map(address_map &map); - void msrk_io_map(address_map &map); + void msrk_map(address_map &map) ATTR_COLD; + void msrk_io_map(address_map &map) ATTR_COLD; u8 fdc_r(offs_t offset); void fdc_w(offs_t offset, u8 data); diff --git a/src/mame/korg/korgdvp1.cpp b/src/mame/korg/korgdvp1.cpp index e28c31a3f30..83a18aa0496 100644 --- a/src/mame/korg/korgdvp1.cpp +++ b/src/mame/korg/korgdvp1.cpp @@ -34,7 +34,7 @@ class korgdvp1_state : public driver_device void leds_w(offs_t offset, u8 data); void dsp_w(offs_t offset, u8 data); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device_array m_dsp; diff --git a/src/mame/korg/korgdw8k.cpp b/src/mame/korg/korgdw8k.cpp index d23d19eeeca..dcf860a896b 100644 --- a/src/mame/korg/korgdw8k.cpp +++ b/src/mame/korg/korgdw8k.cpp @@ -28,8 +28,8 @@ class korgdw8k_state : public driver_device void dw8000ex(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: void dac_w(u8 data); @@ -39,8 +39,8 @@ class korgdw8k_state : public driver_device void led_addr_w(u8 data); void bank_w(u8 data); - void mem_map(address_map &map); - void expanded_mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void expanded_mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; optional_memory_bank m_rombank; diff --git a/src/mame/korg/korgm1.cpp b/src/mame/korg/korgm1.cpp index 900b53c0d7e..e0cdcc35d0c 100644 --- a/src/mame/korg/korgm1.cpp +++ b/src/mame/korg/korgm1.cpp @@ -46,10 +46,10 @@ class korgm1_state : public driver_device protected: // driver_device overrides - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: HD44780_PIXEL_UPDATE(lcd_pixel_update); @@ -58,8 +58,8 @@ class korgm1_state : public driver_device u8 panel_sw_r(); void panel_leds_w(u8 data); - void korgm1_map(address_map &map); - void korgm1_io(address_map &map); + void korgm1_map(address_map &map) ATTR_COLD; + void korgm1_io(address_map &map) ATTR_COLD; void palette_init(palette_device &palette); diff --git a/src/mame/korg/korgws.cpp b/src/mame/korg/korgws.cpp index 1d2455a4783..970852f0caa 100644 --- a/src/mame/korg/korgws.cpp +++ b/src/mame/korg/korgws.cpp @@ -28,8 +28,8 @@ class korgws_state : public driver_device void korgwssr(machine_config &config); private: - void h16_map(address_map &map); - void wssr_map(address_map &map); + void h16_map(address_map &map) ATTR_COLD; + void wssr_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_ksp; diff --git a/src/mame/korg/korgz3.cpp b/src/mame/korg/korgz3.cpp index ed1915864ee..371ab291b2a 100644 --- a/src/mame/korg/korgz3.cpp +++ b/src/mame/korg/korgz3.cpp @@ -34,16 +34,16 @@ class korgz3_state : public driver_device void korgz3(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: void p5_w(u8 data); u8 adc_port_r(); void adc_port_w(u8 data); - void main_map(address_map &map); - void io_map(address_map &map); - void synth_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; + void synth_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_synthcpu; diff --git a/src/mame/korg/microkorg.cpp b/src/mame/korg/microkorg.cpp index 0cd0595471a..d28ceeb3e82 100644 --- a/src/mame/korg/microkorg.cpp +++ b/src/mame/korg/microkorg.cpp @@ -27,7 +27,7 @@ class microkorg_state : public driver_device void microkorg(machine_config &config); private: - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; }; diff --git a/src/mame/korg/poly800.cpp b/src/mame/korg/poly800.cpp index f38e993562a..8e3a9200b61 100644 --- a/src/mame/korg/poly800.cpp +++ b/src/mame/korg/poly800.cpp @@ -30,12 +30,12 @@ class poly800_state : public driver_device void poly800mdk(machine_config &config); protected: - void common_map(address_map &map); + void common_map(address_map &map) ATTR_COLD; private: - void mem_map(address_map &map); - void mdk_map(address_map &map); - void io_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void mdk_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; protected: required_device m_maincpu; @@ -52,7 +52,7 @@ class poly800ii_state : public poly800_state void poly800ii(machine_config &config); private: - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; }; void poly800_state::common_map(address_map &map) diff --git a/src/mame/korg/polysix.cpp b/src/mame/korg/polysix.cpp index be8edca15a4..2e290c29a0c 100644 --- a/src/mame/korg/polysix.cpp +++ b/src/mame/korg/polysix.cpp @@ -25,7 +25,7 @@ class ps6_base_state : public driver_device { } - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; required_device m_progmcu; required_device m_keymcu; @@ -46,7 +46,7 @@ class polysix_state : public ps6_base_state u8 ext_r(offs_t offset); void ext_w(offs_t offset, u8 data); - void prog_ext_map(address_map &map); + void prog_ext_map(address_map &map) ATTR_COLD; }; class poly61_state : public ps6_base_state @@ -65,7 +65,7 @@ class poly61_state : public ps6_base_state u8 ext_r(offs_t offset); void ext_w(offs_t offset, u8 data); - void prog_ext_map(address_map &map); + void prog_ext_map(address_map &map) ATTR_COLD; required_device_array m_ppi; required_device_array m_pit; diff --git a/src/mame/kurzweil/krz2000.cpp b/src/mame/kurzweil/krz2000.cpp index dde204a7574..9b445d59678 100644 --- a/src/mame/kurzweil/krz2000.cpp +++ b/src/mame/kurzweil/krz2000.cpp @@ -61,11 +61,11 @@ class k2000_state : public driver_device void k2000(machine_config &config); private: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; - void k2000_map(address_map &map); - void bank_map_1m(address_map &map); + void k2000_map(address_map &map) ATTR_COLD; + void bank_map_1m(address_map &map) ATTR_COLD; required_device m_maincpu; // required_device m_scanner; diff --git a/src/mame/kyber/kminus.cpp b/src/mame/kyber/kminus.cpp index 462e91cc5ff..9ecfba41dc2 100644 --- a/src/mame/kyber/kminus.cpp +++ b/src/mame/kyber/kminus.cpp @@ -38,14 +38,14 @@ class kminus_state : public driver_device void kminus(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: MC6845_UPDATE_ROW(update_row); - void mem_map(address_map &map); - void io_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_region_ptr m_chargen; diff --git a/src/mame/kyocera/kyocera.h b/src/mame/kyocera/kyocera.h index de686960977..ee3086d5508 100644 --- a/src/mame/kyocera/kyocera.h +++ b/src/mame/kyocera/kyocera.h @@ -97,7 +97,7 @@ class kc85_state : public driver_device memory_bank_creator m_bank1; memory_bank_creator m_bank2; - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; memory_region *m_opt_region; uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); @@ -125,9 +125,9 @@ class kc85_state : public driver_device int m_centronics_select; void kc85_palette(palette_device &palette) const; - void kc85_io(address_map &map); - void kc85_mem(address_map &map); - void trsm100_io(address_map &map); + void kc85_io(address_map &map) ATTR_COLD; + void kc85_mem(address_map &map) ATTR_COLD; + void trsm100_io(address_map &map) ATTR_COLD; }; class trsm100_state : public kc85_state @@ -141,7 +141,7 @@ class trsm100_state : public kc85_state void tandy102(machine_config &config); private: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; }; class pc8201_state : public kc85_state @@ -156,7 +156,7 @@ class pc8201_state : public kc85_state void pc8201(machine_config &config); private: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; required_device m_cas_cart; uint8_t bank_r(); @@ -176,8 +176,8 @@ class pc8201_state : public kc85_state /* peripheral state */ int m_iosel = 0; /* serial interface select */ - void pc8201_io(address_map &map); - void pc8201_mem(address_map &map); + void pc8201_io(address_map &map) ATTR_COLD; + void pc8201_mem(address_map &map) ATTR_COLD; }; class tandy200_state : public driver_device @@ -204,7 +204,7 @@ class tandy200_state : public driver_device void tandy200(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_maincpu; @@ -259,9 +259,9 @@ class tandy200_state : public driver_device int m_centronics_busy; int m_centronics_select; void tandy200_video(machine_config &config); - void tandy200_io(address_map &map); - void tandy200_lcdc(address_map &map); - void tandy200_mem(address_map &map); + void tandy200_io(address_map &map) ATTR_COLD; + void tandy200_lcdc(address_map &map) ATTR_COLD; + void tandy200_mem(address_map &map) ATTR_COLD; }; #endif // MAME_KYOCERA_KYOCERA_H diff --git a/src/mame/layout/saitek_ecbackg.lay b/src/mame/layout/saitek_ecbackg.lay index e718d6b4d1f..9a05cc77e43 100644 --- a/src/mame/layout/saitek_ecbackg.lay +++ b/src/mame/layout/saitek_ecbackg.lay @@ -20,7 +20,7 @@ authors:hap - + ]]> @@ -39,7 +39,6 @@ authors:hap - @@ -178,36 +177,36 @@ authors:hap - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -644,22 +643,22 @@ authors:hap - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + diff --git a/src/mame/layout/saitek_sbackgc.lay b/src/mame/layout/saitek_sbackgc.lay new file mode 100644 index 00000000000..7b874cee396 --- /dev/null +++ b/src/mame/layout/saitek_sbackgc.lay @@ -0,0 +1,681 @@ + + + + + + + + + + + + + + + + + + + + + ]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/mame/leapfrog/iquest.cpp b/src/mame/leapfrog/iquest.cpp index 9a53693f12c..55395a0bc27 100644 --- a/src/mame/leapfrog/iquest.cpp +++ b/src/mame/leapfrog/iquest.cpp @@ -51,15 +51,15 @@ class leapfrog_iquest_state : public driver_device DECLARE_DEVICE_IMAGE_LOAD_MEMBER(cart_load); private: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; - void prog_map(address_map &map); - void ext_map(address_map &map); + void prog_map(address_map &map) ATTR_COLD; + void ext_map(address_map &map) ATTR_COLD; required_device m_maincpu; - void rom_map(address_map &map); + void rom_map(address_map &map) ATTR_COLD; required_device m_rombank; memory_region *m_cart_region; diff --git a/src/mame/leapfrog/leappad.cpp b/src/mame/leapfrog/leappad.cpp index d2acba76e23..a715c63715f 100644 --- a/src/mame/leapfrog/leappad.cpp +++ b/src/mame/leapfrog/leappad.cpp @@ -97,11 +97,11 @@ class leapfrog_leappad_state : public driver_device void leapfrog_ltleappad(machine_config &config); private: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; - void prog_map(address_map &map); - void ext_map(address_map &map); + void prog_map(address_map &map) ATTR_COLD; + void ext_map(address_map &map) ATTR_COLD; DECLARE_DEVICE_IMAGE_LOAD_MEMBER(cart_load); diff --git a/src/mame/leapfrog/leapster.cpp b/src/mame/leapfrog/leapster.cpp index c6894be6d9f..e8e42838290 100644 --- a/src/mame/leapfrog/leapster.cpp +++ b/src/mame/leapfrog/leapster.cpp @@ -221,8 +221,8 @@ class leapster_state : public driver_device void init_leapster(); private: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; uint32_t screen_update_leapster(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); DECLARE_DEVICE_IMAGE_LOAD_MEMBER(cart_load); @@ -254,8 +254,8 @@ class leapster_state : public driver_device void leapster_aux001a_w(uint32_t data); uint32_t leapster_aux001b_r(); - void leapster_aux(address_map &map); - void leapster_map(address_map &map); + void leapster_aux(address_map &map) ATTR_COLD; + void leapster_map(address_map &map) ATTR_COLD; uint16_t m_1a_data[0x800]; int m_1a_pointer; diff --git a/src/mame/leapfrog/leapster_explorer.cpp b/src/mame/leapfrog/leapster_explorer.cpp index 4f312a7a26e..fe47e27505e 100644 --- a/src/mame/leapfrog/leapster_explorer.cpp +++ b/src/mame/leapfrog/leapster_explorer.cpp @@ -40,7 +40,7 @@ class leapfrog_leapster_explorer_state : public driver_device void leapfrog_leapster_explorer(machine_config &config); private: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; DECLARE_DEVICE_IMAGE_LOAD_MEMBER(cart_load); diff --git a/src/mame/learsiegler/adm11.cpp b/src/mame/learsiegler/adm11.cpp index 0f84fe5f594..7541b0deb4a 100644 --- a/src/mame/learsiegler/adm11.cpp +++ b/src/mame/learsiegler/adm11.cpp @@ -54,13 +54,13 @@ class adm11_state : public driver_device void adm12(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: - void prog_map(address_map &map); - void ext_map(address_map &map); - void char_map(address_map &map); - void attr_map(address_map &map); + void prog_map(address_map &map) ATTR_COLD; + void ext_map(address_map &map) ATTR_COLD; + void char_map(address_map &map) ATTR_COLD; + void attr_map(address_map &map) ATTR_COLD; SCN2674_DRAW_CHARACTER_MEMBER(draw_character); void mbc_w(int state); diff --git a/src/mame/learsiegler/adm23.cpp b/src/mame/learsiegler/adm23.cpp index 16213d6cd3e..4a5cdfe5c8b 100644 --- a/src/mame/learsiegler/adm23.cpp +++ b/src/mame/learsiegler/adm23.cpp @@ -29,7 +29,7 @@ class adm23_state : public driver_device MC6845_UPDATE_ROW(update_row); MC6845_ON_UPDATE_ADDR_CHANGED(addr_changed); - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; required_region_ptr m_chargen; }; diff --git a/src/mame/learsiegler/adm31.cpp b/src/mame/learsiegler/adm31.cpp index 6d11abc1885..a3118659247 100644 --- a/src/mame/learsiegler/adm31.cpp +++ b/src/mame/learsiegler/adm31.cpp @@ -51,8 +51,8 @@ class adm31_state : public driver_device void adm31(machine_config &mconfig); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: u32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); @@ -61,7 +61,7 @@ class adm31_state : public driver_device u8 kbd_scan_r(); void kbd_status_w(u8 data); - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device_array m_acia; diff --git a/src/mame/learsiegler/adm36.cpp b/src/mame/learsiegler/adm36.cpp index ecde17ec173..70a11d206ab 100644 --- a/src/mame/learsiegler/adm36.cpp +++ b/src/mame/learsiegler/adm36.cpp @@ -37,8 +37,8 @@ class adm36_state : public driver_device void adm36(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: u32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); @@ -48,8 +48,8 @@ class adm36_state : public driver_device void pio_pb_w(u8 data); void vsyn_w(int state); - void mem_map(address_map &map); - void io_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_earom; diff --git a/src/mame/liberty/freedom120.cpp b/src/mame/liberty/freedom120.cpp index 8ff26ac5c6a..3e4e580335b 100644 --- a/src/mame/liberty/freedom120.cpp +++ b/src/mame/liberty/freedom120.cpp @@ -56,14 +56,14 @@ class freedom120_state : public driver_device void freedom120(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; - void mem_map(address_map &map); - void io_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/liberty/freedom200.cpp b/src/mame/liberty/freedom200.cpp index 0d88301c12f..d4510c7bc93 100644 --- a/src/mame/liberty/freedom200.cpp +++ b/src/mame/liberty/freedom200.cpp @@ -83,8 +83,8 @@ class freedom200_state : public driver_device void freedom200(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; @@ -107,11 +107,11 @@ class freedom200_state : public driver_device bool m_dw_blink; bool m_dw_cursor; - void mem_map(address_map &map); - void io_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; - void char_map(address_map &map); - void attr_map(address_map &map); + void char_map(address_map &map) ATTR_COLD; + void attr_map(address_map &map) ATTR_COLD; void avdc_intr_w(int state); void video_ctrl_w(uint8_t data); SCN2674_DRAW_CHARACTER_MEMBER(draw_character); diff --git a/src/mame/liberty/freedom220_kbd.h b/src/mame/liberty/freedom220_kbd.h index af23a897fca..a606b47d221 100644 --- a/src/mame/liberty/freedom220_kbd.h +++ b/src/mame/liberty/freedom220_kbd.h @@ -34,11 +34,11 @@ class freedom220_kbd_device : public device_t protected: // device_t overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; - virtual void device_reset() override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: required_device m_mcu; @@ -50,8 +50,8 @@ class freedom220_kbd_device : public device_t uint8_t m_key_row; - void mem_map(address_map &map); - void io_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; uint8_t key_row_r(offs_t offset); void speaker_w(offs_t offset, uint8_t data); diff --git a/src/mame/lsi/m3.cpp b/src/mame/lsi/m3.cpp index 33f094e80b5..a077124757d 100644 --- a/src/mame/lsi/m3.cpp +++ b/src/mame/lsi/m3.cpp @@ -86,8 +86,8 @@ class m3_state : public driver_device void m3(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; @@ -102,10 +102,10 @@ class m3_state : public driver_device required_ioport m_special; required_ioport_array<16> m_keys; - void mem_map(address_map &map); - void io_map(address_map &map); - void kbd_mem_map(address_map &map); - void kbd_io_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; + void kbd_mem_map(address_map &map) ATTR_COLD; + void kbd_io_map(address_map &map) ATTR_COLD; int kbd_t0_r(); int kbd_t1_r(); diff --git a/src/mame/lsi/octo_kbd.h b/src/mame/lsi/octo_kbd.h index 8d2019b3d86..5a33114fb48 100644 --- a/src/mame/lsi/octo_kbd.h +++ b/src/mame/lsi/octo_kbd.h @@ -12,11 +12,11 @@ class octopus_keyboard_device : public buffered_rs232_device<16U>, protected dev { public: octopus_keyboard_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; protected: - 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 key_make(uint8_t row, uint8_t column) override; virtual void key_repeat(uint8_t row, uint8_t column) override; virtual void key_break(uint8_t row, uint8_t column) override; diff --git a/src/mame/lsi/octopus.cpp b/src/mame/lsi/octopus.cpp index e732281de15..52e9ab8e9cd 100644 --- a/src/mame/lsi/octopus.cpp +++ b/src/mame/lsi/octopus.cpp @@ -174,9 +174,9 @@ class octopus_state : public driver_device void octopus(machine_config &config); private: - virtual void machine_reset() override; - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; SCN2674_DRAW_CHARACTER_MEMBER(display_pixels); uint8_t vram_r(offs_t offset); void vram_w(offs_t offset, uint8_t data); @@ -223,11 +223,11 @@ class octopus_state : public driver_device void dack6_w(int state) { m_dma1->hack_w(state ? 0 : 1); } void dack7_w(int state) { m_dma1->hack_w(state ? 0 : 1); } - void octopus_io(address_map &map); - void octopus_mem(address_map &map); - void octopus_sub_io(address_map &map); - void octopus_sub_mem(address_map &map); - void octopus_vram(address_map &map); + void octopus_io(address_map &map) ATTR_COLD; + void octopus_mem(address_map &map) ATTR_COLD; + void octopus_sub_io(address_map &map) ATTR_COLD; + void octopus_sub_mem(address_map &map) ATTR_COLD; + void octopus_vram(address_map &map) ATTR_COLD; TIMER_CALLBACK_MEMBER(beep_off); diff --git a/src/mame/luxor/abc1600.h b/src/mame/luxor/abc1600.h index d0025110ff2..66e7fc93582 100644 --- a/src/mame/luxor/abc1600.h +++ b/src/mame/luxor/abc1600.h @@ -106,8 +106,8 @@ class abc1600_state : public driver_device required_device m_bus2; required_device m_kb; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; static void floppy_formats(format_registration &fr); @@ -140,7 +140,7 @@ class abc1600_state : public driver_device void nmi_w(int state); - void cpu_space_map(address_map &map); + void cpu_space_map(address_map &map) ATTR_COLD; void update_br(); void update_pren0(int state); @@ -160,8 +160,8 @@ class abc1600_state : public driver_device int m_dbrq1 = CLEAR_LINE; int m_dbrq2 = CLEAR_LINE; - void abc1600_mem(address_map &map); - void mac_mem(address_map &map); + void abc1600_mem(address_map &map) ATTR_COLD; + void mac_mem(address_map &map) ATTR_COLD; // peripherals int m_cs7 = 0; // card select address bit 7 diff --git a/src/mame/luxor/abc1600_v.h b/src/mame/luxor/abc1600_v.h index fa789de275c..835c1bfb950 100644 --- a/src/mame/luxor/abc1600_v.h +++ b/src/mame/luxor/abc1600_v.h @@ -35,19 +35,19 @@ class abc1600_mover_device : public device_t, // construction/destruction abc1600_mover_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - virtual void vram_map(address_map &map); - virtual void crtc_map(address_map &map); - virtual void iowr0_map(address_map &map); - virtual void iowr1_map(address_map &map); - virtual void iowr2_map(address_map &map); + virtual void vram_map(address_map &map) ATTR_COLD; + virtual void crtc_map(address_map &map) ATTR_COLD; + virtual void iowr0_map(address_map &map) ATTR_COLD; + virtual void iowr1_map(address_map &map) ATTR_COLD; + virtual void iowr2_map(address_map &map) ATTR_COLD; - void mover_map(address_map &map); + void mover_map(address_map &map) ATTR_COLD; protected: // device-level overrides - 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; // device_memory_interface overrides virtual space_config_vector memory_space_config() const override; diff --git a/src/mame/luxor/abc1600mac.h b/src/mame/luxor/abc1600mac.h index f812270b2c0..6033ed6fa7f 100644 --- a/src/mame/luxor/abc1600mac.h +++ b/src/mame/luxor/abc1600mac.h @@ -78,15 +78,15 @@ class abc1600_mac_device : public device_t, 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; // device_memory_interface overrides virtual space_config_vector memory_space_config() const override; // 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; private: enum @@ -107,8 +107,8 @@ class abc1600_mac_device : public device_t, uint8_t dma_iorq_r(int dmamap, offs_t offset); void dma_iorq_w(int dmamap, offs_t offset, uint8_t data); - void program_map(address_map &map); - void mac_map(address_map &map); + void program_map(address_map &map) ATTR_COLD; + void mac_map(address_map &map) ATTR_COLD; const address_space_config m_program_config; const address_space_config m_mac_config; diff --git a/src/mame/luxor/abc80.h b/src/mame/luxor/abc80.h index 7729b512e33..4cbb167acc0 100644 --- a/src/mame/luxor/abc80.h +++ b/src/mame/luxor/abc80.h @@ -99,11 +99,11 @@ class abc80_state : public driver_device static constexpr feature_type imperfect_features() { return feature::KEYBOARD; } protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; - void abc80_mem(address_map &map); - void abc80_io(address_map &map); + void abc80_mem(address_map &map) ATTR_COLD; + void abc80_io(address_map &map) ATTR_COLD; TIMER_CALLBACK_MEMBER(scanline_tick); TIMER_CALLBACK_MEMBER(cassette_update); @@ -213,9 +213,9 @@ class tkn80_state : public abc80_state void tkn80_video(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_reset() override ATTR_COLD; virtual void draw_scanline(bitmap_rgb32 &bitmap, int y) override; virtual offs_t get_videoram_addr() override; @@ -229,7 +229,7 @@ class tkn80_state : public abc80_state uint8_t in3_r(); uint8_t in4_r(); - void tkn80_io(address_map &map); + void tkn80_io(address_map &map) ATTR_COLD; required_memory_region m_rom_e; memory_share_creator m_char_ram; diff --git a/src/mame/luxor/abc80kb.h b/src/mame/luxor/abc80kb.h index 151ee24b22b..b58b5c3ba44 100644 --- a/src/mame/luxor/abc80kb.h +++ b/src/mame/luxor/abc80kb.h @@ -28,18 +28,18 @@ class abc80_keyboard_device : public device_t uint8_t data_r(); - void keyboard_mem(address_map &map); - void keyboard_io(address_map &map); + void keyboard_mem(address_map &map) ATTR_COLD; + void keyboard_io(address_map &map) ATTR_COLD; 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; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; private: devcb_write_line m_write_keydown; diff --git a/src/mame/luxor/abc80x.h b/src/mame/luxor/abc80x.h index c3ae17f9e74..59d9360364f 100644 --- a/src/mame/luxor/abc80x.h +++ b/src/mame/luxor/abc80x.h @@ -117,9 +117,9 @@ class abc800_state : public driver_device memory_share_creator m_char_ram; required_ioport m_io_sb; - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; void cassette_output_tick(int state); @@ -162,11 +162,11 @@ class abc800_state : public driver_device // timers emu_timer *m_cassette_timer; void common(machine_config &config); - void abc800_m1(address_map &map); - void abc800_mem(address_map &map); - void abc800_io(address_map &map); - void abc800m_io(address_map &map); - void abc800c_io(address_map &map); + void abc800_m1(address_map &map) ATTR_COLD; + void abc800_mem(address_map &map) ATTR_COLD; + void abc800_io(address_map &map) ATTR_COLD; + void abc800m_io(address_map &map) ATTR_COLD; + void abc800c_io(address_map &map) ATTR_COLD; }; @@ -243,9 +243,9 @@ class abc802_state : public abc800_state required_memory_region m_char_rom; required_ioport m_config; - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; uint8_t read(offs_t offset); void write(offs_t offset, uint8_t data); @@ -264,9 +264,9 @@ class abc802_state : public abc800_state void abc802(machine_config &config); void abc802_video(machine_config &config); - void abc802_m1(address_map &map); - void abc802_mem(address_map &map); - void abc802_io(address_map &map); + void abc802_m1(address_map &map) ATTR_COLD; + void abc802_mem(address_map &map) ATTR_COLD; + void abc802_io(address_map &map) ATTR_COLD; }; @@ -296,9 +296,9 @@ class abc806_state : public abc800_state required_memory_region m_char_rom; memory_share_creator m_attr_ram; - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); @@ -351,8 +351,8 @@ class abc806_state : public abc800_state void abc806(machine_config &config); void abc806_video(machine_config &config); - void abc806_io(address_map &map); - void abc806_mem(address_map &map); + void abc806_io(address_map &map) ATTR_COLD; + void abc806_mem(address_map &map) ATTR_COLD; }; #endif // MAME_LUXOR_ABC800_H diff --git a/src/mame/luxor/ds90.cpp b/src/mame/luxor/ds90.cpp index ffd137378b9..1f98f52e293 100644 --- a/src/mame/luxor/ds90.cpp +++ b/src/mame/luxor/ds90.cpp @@ -69,12 +69,12 @@ class x37_state : public driver_device required_device_array m_floppy; required_device m_sasi; - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; static void floppy_formats(format_registration &fr); - void program_map(address_map &map); - void cpu_space_map(address_map &map); + void program_map(address_map &map) ATTR_COLD; + void cpu_space_map(address_map &map) ATTR_COLD; }; void x37_state::program_map(address_map &map) diff --git a/src/mame/makerbot/replicator.cpp b/src/mame/makerbot/replicator.cpp index 96b32ad5c0f..e22775e117d 100644 --- a/src/mame/makerbot/replicator.cpp +++ b/src/mame/makerbot/replicator.cpp @@ -183,13 +183,13 @@ class replicator_state : public driver_device void replicator(machine_config &config); private: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; void palette_init(palette_device &palette) const; - void prg_map(address_map &map); - void data_map(address_map &map); + void prg_map(address_map &map) ATTR_COLD; + void data_map(address_map &map) ATTR_COLD; uint8_t port_a_r(); uint8_t port_b_r(); diff --git a/src/mame/mame.lst b/src/mame/mame.lst index 636bc4f97a0..004142c3bd3 100644 --- a/src/mame/mame.lst +++ b/src/mame/mame.lst @@ -16193,17 +16193,11 @@ galgame4p // (c) 1998 Creative Electronics & Software (CES galgbios // (c) 1998 Creative Electronics & Software (CES) @source:chess/ave_arb.cpp -arb // -arbv2 // - -@source:chess/cking_master.cpp -ckmaster // - -@source:chess/cking_triomphe.cpp -triomphe +arb +arbv2 @source:chess/compuchess.cpp -ccmk1 // Chess Champion MK I +ccmk1 cmpchess cmpchess2 cncchess @@ -16236,6 +16230,12 @@ tascr30a tascr30b tascr30g +@source:chessking/master.cpp +master + +@source:chessking/triomphe.cpp +triomphe + @source:chromatics/cgc7900.cpp cgc7900 // @@ -19709,6 +19709,7 @@ smondial2 // 1989 Mephisto Super Mondial II @source:hitachi/b16.cpp b16 // +b16ex2 // @source:hitachi/bmjr.cpp bmjr // @@ -19718,6 +19719,9 @@ bml3 // bml3mk2 // bml3mk5 // +@source:hitachi/mbs1.cpp +mbs1 // + @source:homebrew/4004clk.cpp 4004clk // @@ -24841,6 +24845,7 @@ tmnt24pu // GX063 (c) 1991 (US) tmht22pe // GX063 (c) 1991 (UK) tmht24pe // GX063 (c) 1991 (UK) tmnt2a // GX063 (c) 1991 (Asia) +tmnt2o // GX063 (c) 1991 (Oceania) trigon // GX939 (c) 1990 (Japan) @source:konami/tp84.cpp @@ -27962,6 +27967,7 @@ sspeedr // 1979 Midway @source:midway/starrider.cpp starridr // +starridrp3 // @source:midway/tmaster.cpp tm // (c) 1996 Midway Games @@ -28769,8 +28775,10 @@ draw88pkr // 1988, BTE, Inc. amhbattl boobood docchift +fishbatl mmhammer shpchamp +wanpakup wwdash zenponta @@ -29271,6 +29279,7 @@ cowtippa // @source:misc/crazybal.cpp crazybal // EGS crazybala // EGS +crazybalb // EGS @source:misc/cromptons.cpp ffruits // @@ -38936,9 +38945,6 @@ cp2000 @source:saitek/delta1.cpp ccdelta1 -@source:saitek/ecbackg.cpp -ecbackg - @source:saitek/edames.cpp edames @@ -38982,6 +38988,10 @@ montreux risc2500 risc2500a +@source:saitek/sbackgc.cpp +ecbackg +sbackgc + @source:saitek/schess.cpp schess @@ -41982,6 +41992,9 @@ trmavia // @source:skeleton/ckz80.cpp ckz80 // +@source:skeleton/cle68k.cpp +dmndhrt // + @source:skeleton/clxvme186.cpp clxvme186 // @@ -42145,6 +42158,7 @@ rp200 gimix // @source:skeleton/gm1000.cpp +bh1000 gm1000 // @source:skeleton/gnat10.cpp @@ -43837,6 +43851,7 @@ megablst // 1989.?? C11 (c) 1989 Taito Corporation Japan megablstj // 1989.11 C11 (c) 1989 Taito Corporation (Japan) megablstu // 1989.?? C11 (c) 1989 Taito America Corporation (US) metalb // 1991.?? D16? (c) 1991 Taito Corporation Japan (World) +metalba // 1991.?? D16? (c) 1991 Taito Corporation Japan (World) metalbj // 1991.11 D12 (c) 1991 Taito Corporation (Japan) mizubaku // 1990.08 C49 (c) 1990 Taito Corporation (Japan) mjnquest // 1991.05 C77 (c) 1990 Taito Corporation (Japan) diff --git a/src/mame/matsushita/duet16.cpp b/src/mame/matsushita/duet16.cpp index b6b7791d6dc..5782c2de421 100644 --- a/src/mame/matsushita/duet16.cpp +++ b/src/mame/matsushita/duet16.cpp @@ -47,7 +47,7 @@ class duet16_state : public driver_device void duet16(machine_config &config); protected: - void machine_reset() override; + void machine_reset() override ATTR_COLD; private: u8 pic_r(offs_t offset); void pic_w(offs_t offset, u8 data); @@ -71,8 +71,8 @@ class duet16_state : public driver_device void rtc_busy_w(int state); void rtc_irq_reset(); MC6845_UPDATE_ROW(crtc_update_row); - void duet16_io(address_map &map); - void duet16_mem(address_map &map); + void duet16_io(address_map &map) ATTR_COLD; + void duet16_mem(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_pic; required_device m_fdc; diff --git a/src/mame/matsushita/jr100.cpp b/src/mame/matsushita/jr100.cpp index af1f2e25078..84171de5bca 100644 --- a/src/mame/matsushita/jr100.cpp +++ b/src/mame/matsushita/jr100.cpp @@ -93,8 +93,8 @@ class jr100_state : public driver_device void jr100(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: uint8_t m_keyboard_line = 0U; @@ -108,7 +108,7 @@ class jr100_state : public driver_device void cb2_w(int state); DECLARE_QUICKLOAD_LOAD_MEMBER(quickload_cb); - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; required_shared_ptr m_ram; required_shared_ptr m_pcg; diff --git a/src/mame/matsushita/jr200.cpp b/src/mame/matsushita/jr200.cpp index 9b2d9e5d2a3..26484b0585a 100644 --- a/src/mame/matsushita/jr200.cpp +++ b/src/mame/matsushita/jr200.cpp @@ -110,12 +110,12 @@ class jr200_state : public driver_device void jr200_border_col_w(uint8_t data); uint8_t mn1271_io_r(offs_t offset); void mn1271_io_w(offs_t offset, uint8_t data); - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; uint32_t screen_update_jr200(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); TIMER_CALLBACK_MEMBER(timer_d_callback); - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_beeper; diff --git a/src/mame/matsushita/kn5000.cpp b/src/mame/matsushita/kn5000.cpp index 1bcd481dea7..df598c4de5e 100644 --- a/src/mame/matsushita/kn5000.cpp +++ b/src/mame/matsushita/kn5000.cpp @@ -22,7 +22,7 @@ class mn89304_vga_device : public svga_device mn89304_vga_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; virtual void palette_update() override; virtual void recompute_params() override; @@ -124,15 +124,15 @@ class kn5000_state : public driver_device uint8_t m_mstat; uint8_t m_sstat; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; uint8_t cpanel_left_buttons_r(offs_t offset); uint8_t cpanel_right_buttons_r(offs_t offset); void cpanel_leds_w(offs_t offset, uint8_t data); - void maincpu_mem(address_map &map); - void subcpu_mem(address_map &map); + void maincpu_mem(address_map &map) ATTR_COLD; + void subcpu_mem(address_map &map) ATTR_COLD; }; void kn5000_state::maincpu_mem(address_map &map) diff --git a/src/mame/matsushita/myb3k.cpp b/src/mame/matsushita/myb3k.cpp index 6aa47ae218d..96c65783575 100644 --- a/src/mame/matsushita/myb3k.cpp +++ b/src/mame/matsushita/myb3k.cpp @@ -114,11 +114,11 @@ class myb3k_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(monitor_changed); private: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; - void myb3k_io(address_map &map); - void myb3k_map(address_map &map); + void myb3k_io(address_map &map) ATTR_COLD; + void myb3k_map(address_map &map) ATTR_COLD; /* Interrupt controller */ void pic_int_w(int state); diff --git a/src/mame/mattel/aquarius.h b/src/mame/mattel/aquarius.h index 4d4c4cab105..39b15faf0e9 100644 --- a/src/mame/mattel/aquarius.h +++ b/src/mame/mattel/aquarius.h @@ -56,9 +56,9 @@ class aquarius_state : public driver_device static void cfg_ram16(device_t* device); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -94,8 +94,8 @@ class aquarius_state : public driver_device void aquarius_palette(palette_device &palette) const; uint32_t screen_update_aquarius(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void aquarius_io(address_map &map); - void aquarius_mem(address_map &map); + void aquarius_io(address_map &map) ATTR_COLD; + void aquarius_mem(address_map &map) ATTR_COLD; }; #endif // MAME_MATTEL_AQUARIUS_H diff --git a/src/mame/mattel/chess.cpp b/src/mame/mattel/chess.cpp index c85da1ca902..478e566fbc8 100644 --- a/src/mame/mattel/chess.cpp +++ b/src/mame/mattel/chess.cpp @@ -54,8 +54,8 @@ class mchess_state : public driver_device void mchess(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: // devices/pointers diff --git a/src/mame/mattel/intv.h b/src/mame/mattel/intv.h index f56fcd9d2f8..6a6bc0f73c8 100644 --- a/src/mame/mattel/intv.h +++ b/src/mame/mattel/intv.h @@ -62,9 +62,9 @@ class intv_state : public driver_device void init_intv(); private: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; emu_timer *m_int_complete_timer; emu_timer *m_int2_complete_timer; @@ -127,12 +127,12 @@ class intv_state : public driver_device TIMER_CALLBACK_MEMBER(interrupt_complete); TIMER_CALLBACK_MEMBER(btb_fill); - void intv2_mem(address_map &map); - void intv_mem(address_map &map); - void intvecs_mem(address_map &map); - void intvkbd2_mem(address_map &map); - void intvkbd_mem(address_map &map); - void intvoice_mem(address_map &map); + void intv2_mem(address_map &map) ATTR_COLD; + void intv_mem(address_map &map) ATTR_COLD; + void intvecs_mem(address_map &map) ATTR_COLD; + void intvkbd2_mem(address_map &map) ATTR_COLD; + void intvkbd_mem(address_map &map) ATTR_COLD; + void intvoice_mem(address_map &map) ATTR_COLD; int m_is_keybd = 0; diff --git a/src/mame/mattel/juicebox.cpp b/src/mame/mattel/juicebox.cpp index baf3a86e25e..bea702a15fd 100644 --- a/src/mame/mattel/juicebox.cpp +++ b/src/mame/mattel/juicebox.cpp @@ -46,8 +46,8 @@ class juicebox_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(port_changed); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; @@ -79,7 +79,7 @@ class juicebox_state : public driver_device uint32_t s3c44b0_gpio_port_r(offs_t offset); void s3c44b0_gpio_port_w(offs_t offset, uint32_t data); //void s3c44b0_i2s_data_w(offs_t offset, uint16_t data); - void juicebox_map(address_map &map); + void juicebox_map(address_map &map) ATTR_COLD; }; inline void juicebox_state::verboselog(int n_level, const char *s_fmt, ...) diff --git a/src/mame/mattel/pixtermu.cpp b/src/mame/mattel/pixtermu.cpp index 39ae3ff2489..6655a731ef4 100644 --- a/src/mame/mattel/pixtermu.cpp +++ b/src/mame/mattel/pixtermu.cpp @@ -77,11 +77,11 @@ class pixter_multimedia_state : public driver_device // External Peripheral Mapping, mapped at 0xfffe6008, offset 0x26008/4 static inline constexpr uint32_t APB_EPM = 38914; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; DEVICE_IMAGE_LOAD_MEMBER(cart_load); - void arm7_map(address_map &map); + void arm7_map(address_map &map) ATTR_COLD; void apb_bridge_w(offs_t offset, uint32_t data, uint32_t mem_mask); void apb_remap(uint32_t data); diff --git a/src/mame/mattel/stic.h b/src/mame/mattel/stic.h index d62eab5236f..94bc7ea3646 100644 --- a/src/mame/mattel/stic.h +++ b/src/mame/mattel/stic.h @@ -77,9 +77,9 @@ class stic_device : public device_t, public device_video_interface void set_y_scale(int val) { m_y_scale = val; } // device-level overrides - virtual void device_start() override; - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; void screenrefresh(); uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); diff --git a/src/mame/maygay/maygay1b.h b/src/mame/maygay/maygay1b.h index 112a45c9b21..c76607ad429 100644 --- a/src/mame/maygay/maygay1b.h +++ b/src/mame/maygay/maygay1b.h @@ -137,12 +137,12 @@ class maygay1b_state : public driver_device uint8_t m_main_to_mcu; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; void cpu0_firq(int data); void cpu0_nmi(); - void m1_memmap(address_map &map); - void m1_nec_memmap(address_map &map); + void m1_memmap(address_map &map) ATTR_COLD; + void m1_nec_memmap(address_map &map) ATTR_COLD; }; INPUT_PORTS_EXTERN( maygay_m1 ); diff --git a/src/mame/maygay/maygayep.cpp b/src/mame/maygay/maygayep.cpp index ff0d6b30d93..902d647331a 100644 --- a/src/mame/maygay/maygayep.cpp +++ b/src/mame/maygay/maygayep.cpp @@ -53,7 +53,7 @@ class maygayep_state : public driver_device void init_maygayep(); private: - void maygayep_map(address_map &map); + void maygayep_map(address_map &map) ATTR_COLD; // devices required_device m_maincpu; diff --git a/src/mame/maygay/maygayew.cpp b/src/mame/maygay/maygayew.cpp index e13f6736d03..cffed66a55c 100644 --- a/src/mame/maygay/maygayew.cpp +++ b/src/mame/maygay/maygayew.cpp @@ -116,7 +116,7 @@ class maygayew_state : public driver_device void maygayew(machine_config &config); private: - void maygayew_map(address_map &map); + void maygayew_map(address_map &map) ATTR_COLD; required_device m_maincpu; }; diff --git a/src/mame/maygay/maygayv1.cpp b/src/mame/maygay/maygayv1.cpp index cce80a82d6e..2d62b296c3d 100644 --- a/src/mame/maygay/maygayv1.cpp +++ b/src/mame/maygay/maygayv1.cpp @@ -225,9 +225,9 @@ class maygayv1_state : public driver_device void init_screenpl(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: void i82716_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); @@ -247,8 +247,8 @@ class maygayv1_state : public driver_device void sound_p3_w(uint8_t data); void duart_irq_handler(int state); void duart_txa(int state); - void main_map(address_map &map); - void cpu_space_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void cpu_space_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_soundcpu; diff --git a/src/mame/maygay/mmm.cpp b/src/mame/maygay/mmm.cpp index e07b0f8ab17..88aa764a340 100644 --- a/src/mame/maygay/mmm.cpp +++ b/src/mame/maygay/mmm.cpp @@ -36,8 +36,8 @@ class mmm_state : public driver_device u8 ctc_r(offs_t offset); void ctc_w(offs_t offset, u8 data); - void io_map(address_map &map); - void mem_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_ctc; diff --git a/src/mame/mc/mc68000.cpp b/src/mame/mc/mc68000.cpp index ff7994daa26..93b4b4de981 100644 --- a/src/mame/mc/mc68000.cpp +++ b/src/mame/mc/mc68000.cpp @@ -79,8 +79,8 @@ class mc68000_state : public driver_device void mc68000(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; @@ -108,8 +108,8 @@ class mc68000_state : public driver_device bool m_ibmkbd_data; uint8_t m_ibmkbd_bits; - void mem_map(address_map &map); - void vector_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void vector_map(address_map &map) ATTR_COLD; uint16_t memory_r(offs_t offset, uint16_t mem_mask = ~0); void memory_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); diff --git a/src/mame/mc/mccpm.cpp b/src/mame/mc/mccpm.cpp index 41015139c63..17a4293843a 100644 --- a/src/mame/mc/mccpm.cpp +++ b/src/mame/mc/mccpm.cpp @@ -53,12 +53,12 @@ class mccpm_state : public driver_device void mccpm(machine_config &config); protected: - virtual void machine_reset() override; - virtual void machine_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; private: - void io_map(address_map &map); - void mem_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; void port44_w(u8); u8 port44_r(); void fdc_irq(bool); diff --git a/src/mame/mchester/ssem.cpp b/src/mame/mchester/ssem.cpp index 8bd173912b4..ac65666f89b 100644 --- a/src/mame/mchester/ssem.cpp +++ b/src/mame/mchester/ssem.cpp @@ -33,14 +33,14 @@ class ssem_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(panel_check); private: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; uint32_t screen_update_ssem(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); DECLARE_QUICKLOAD_LOAD_MEMBER(quickload_cb); inline uint32_t reverse(uint32_t v); std::string read_line(device_image_interface &image); - void ssem_map(address_map &map); + void ssem_map(address_map &map) ATTR_COLD; template void glyph_print(bitmap_rgb32 &bitmap, int32_t x, int32_t y, Format &&fmt, Params &&...args); diff --git a/src/mame/meadows/lazercmd.cpp b/src/mame/meadows/lazercmd.cpp index 3d2faa4bfdc..bce12943071 100644 --- a/src/mame/meadows/lazercmd.cpp +++ b/src/mame/meadows/lazercmd.cpp @@ -272,8 +272,8 @@ class lazercmd_state : public driver_device void init_lazercmd(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; @@ -316,10 +316,10 @@ class lazercmd_state : public driver_device int vert_scale(int data); void plot_pattern(bitmap_ind16 &bitmap, int x, int y); - void bbonk_map(address_map &map); - void lazercmd_map(address_map &map); - void medlanes_map(address_map &map); - void portmap(address_map &map); + void bbonk_map(address_map &map) ATTR_COLD; + void lazercmd_map(address_map &map) ATTR_COLD; + void medlanes_map(address_map &map) ATTR_COLD; + void portmap(address_map &map) ATTR_COLD; }; diff --git a/src/mame/meadows/meadows.cpp b/src/mame/meadows/meadows.cpp index cb4052062ef..c7abedf9bde 100644 --- a/src/mame/meadows/meadows.cpp +++ b/src/mame/meadows/meadows.cpp @@ -174,8 +174,8 @@ class meadows_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(coin_inserted); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -219,11 +219,11 @@ class meadows_state : public driver_device void draw_sprites(bitmap_ind16 &bitmap, const rectangle &clip); void sh_update(); SAMPLES_START_CB_MEMBER(sh_start); - void audio_map(address_map &map); - void bowl3d_main_map(address_map &map); - void meadows_main_map(address_map &map); - void minferno_data_map(address_map &map); - void minferno_main_map(address_map &map); + void audio_map(address_map &map) ATTR_COLD; + void bowl3d_main_map(address_map &map) ATTR_COLD; + void meadows_main_map(address_map &map) ATTR_COLD; + void minferno_data_map(address_map &map) ATTR_COLD; + void minferno_main_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/meadows/meadwttl.cpp b/src/mame/meadows/meadwttl.cpp index bdc5b972da5..24c6d0e1b96 100644 --- a/src/mame/meadows/meadwttl.cpp +++ b/src/mame/meadows/meadwttl.cpp @@ -59,10 +59,10 @@ class meadwttl_state : public driver_device required_device m_video; // driver_device overrides - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; }; diff --git a/src/mame/meadows/warpsped.cpp b/src/mame/meadows/warpsped.cpp index ee481bd5db5..4e0f463b0be 100644 --- a/src/mame/meadows/warpsped.cpp +++ b/src/mame/meadows/warpsped.cpp @@ -124,13 +124,13 @@ class warpspeed_state : public driver_device TILE_GET_INFO_MEMBER(get_text_tile_info); TILE_GET_INFO_MEMBER(get_starfield_tile_info); - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; void warpsped_palette(palette_device &palette) const; uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void draw_circles(bitmap_ind16 &bitmap); - void warpspeed_io_map(address_map &map); - void warpspeed_map(address_map &map); + void warpspeed_io_map(address_map &map) ATTR_COLD; + void warpspeed_map(address_map &map) ATTR_COLD; }; void warpspeed_state::hardware_w(offs_t offset, uint8_t data) diff --git a/src/mame/memotech/mtx.h b/src/mame/memotech/mtx.h index ff4124a1dce..91fddf91e63 100644 --- a/src/mame/memotech/mtx.h +++ b/src/mame/memotech/mtx.h @@ -60,8 +60,8 @@ class mtx_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(trigger_reset); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: bool m_cassold; @@ -134,9 +134,9 @@ class mtx_state : public driver_device DECLARE_QUICKLOAD_LOAD_MEMBER(quickload_cb); DECLARE_SNAPSHOT_LOAD_MEMBER(snapshot_cb); - void mtx_io(address_map &map); - void mtx_mem(address_map &map); - void rs128_io(address_map &map); + void mtx_io(address_map &map) ATTR_COLD; + void mtx_mem(address_map &map) ATTR_COLD; + void rs128_io(address_map &map) ATTR_COLD; }; #endif // MAME_MEMOTECH_MTX_H diff --git a/src/mame/mera/ec7915.cpp b/src/mame/mera/ec7915.cpp index 0bd2663f81f..c15a0dbe522 100644 --- a/src/mame/mera/ec7915.cpp +++ b/src/mame/mera/ec7915.cpp @@ -30,8 +30,8 @@ class ec7915_state : public driver_device void ec7915(machine_config &config); private: - void mem_map(address_map &map); - void io_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_region_ptr m_chargen; diff --git a/src/mame/mera/konin.cpp b/src/mame/mera/konin.cpp index 2d4b217d608..febcbc3de92 100644 --- a/src/mame/mera/konin.cpp +++ b/src/mame/mera/konin.cpp @@ -45,10 +45,10 @@ class konin_state : public driver_device private: void picu_r3_w(int state); - void io_map(address_map &map); - void mem_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; required_device m_maincpu; required_device m_picu; required_device m_ioppi; diff --git a/src/mame/mera/m79152pc.cpp b/src/mame/mera/m79152pc.cpp index 0595f9d3876..357b0fcacc4 100644 --- a/src/mame/mera/m79152pc.cpp +++ b/src/mame/mera/m79152pc.cpp @@ -56,7 +56,7 @@ class m79152pc_state : public driver_device void m79152pc(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: void beep_w(offs_t offset, uint8_t data); @@ -73,10 +73,10 @@ class m79152pc_state : public driver_device u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void screen_draw_line(bitmap_ind16 &bitmap, unsigned y); - void mem_map(address_map &map); - void io_map(address_map &map); - void mcu_map(address_map &map); - void mcu_io_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; + void mcu_map(address_map &map) ATTR_COLD; + void mcu_io_map(address_map &map) ATTR_COLD; required_shared_ptr m_videoram; required_shared_ptr m_attributes; diff --git a/src/mame/mera/vdm7932x.cpp b/src/mame/mera/vdm7932x.cpp index 9260ec8d75f..6d4b060fb69 100644 --- a/src/mame/mera/vdm7932x.cpp +++ b/src/mame/mera/vdm7932x.cpp @@ -30,16 +30,16 @@ class vdm7932x_state : public driver_device void vdm7932x(machine_config &config); private: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; void scan_w(offs_t offset, u8 data); u8 i8031_p3_r(); void ppi1_pc_w(u8 data); - void mem_map(address_map &map); - void io_map(address_map &map); - void sub_map(address_map &map); - void subx_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; + void sub_map(address_map &map) ATTR_COLD; + void subx_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_subcpu; diff --git a/src/mame/merit/merit.cpp b/src/mame/merit/merit.cpp index 89d0e4a9d44..2f191f93fb6 100644 --- a/src/mame/merit/merit.cpp +++ b/src/mame/merit/merit.cpp @@ -143,7 +143,7 @@ class merit_state : public driver_device int rndbit_r(); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; required_shared_ptr m_ram_attr; required_shared_ptr m_ram_video; @@ -153,7 +153,7 @@ class merit_state : public driver_device uint8_t palette_r(offs_t offset); void palette_w(offs_t offset, uint8_t data); - void bigappg_io_map(address_map &map); + void bigappg_io_map(address_map &map) ATTR_COLD; private: memory_share_creator m_ram_palette; @@ -175,12 +175,12 @@ class merit_state : public driver_device MC6845_BEGIN_UPDATE(crtc_begin_update); MC6845_UPDATE_ROW(crtc_update_row); MC6845_UPDATE_ROW(crtc_update_row_no_u40); - void bigappg_map(address_map &map); - void couple_map(address_map &map); - void riviera_map(address_map &map); - void misdraw_map(address_map &map); - void pitboss_map(address_map &map); - void pitboss_io_map(address_map &map); + void bigappg_map(address_map &map) ATTR_COLD; + void couple_map(address_map &map) ATTR_COLD; + void riviera_map(address_map &map) ATTR_COLD; + void misdraw_map(address_map &map) ATTR_COLD; + void pitboss_map(address_map &map) ATTR_COLD; + void pitboss_io_map(address_map &map) ATTR_COLD; }; class merit_banked_state : public merit_state @@ -194,14 +194,14 @@ class merit_banked_state : public merit_state void casino5(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_memory_bank_array<2> m_rombank; void bank_w(uint8_t data); - void casino5_map(address_map &map); + void casino5_map(address_map &map) ATTR_COLD; }; class merit_quiz_state : public merit_state @@ -222,7 +222,7 @@ class merit_quiz_state : public merit_state template void init_key(); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: memory_bank_creator m_questions_bank; @@ -235,12 +235,12 @@ class merit_quiz_state : public merit_state void med_offset_w(offs_t offset, uint8_t data); void high_offset_w(offs_t offset, uint8_t data); - void dtrvwz5_map(address_map &map); - void phrcraze_io_map(address_map &map); - void phrcraze_map(address_map &map); - void tictac_map(address_map &map); - void trvwhiz_map(address_map &map); - void trvwhziv_map(address_map &map); + void dtrvwz5_map(address_map &map) ATTR_COLD; + void phrcraze_io_map(address_map &map) ATTR_COLD; + void phrcraze_map(address_map &map) ATTR_COLD; + void tictac_map(address_map &map) ATTR_COLD; + void trvwhiz_map(address_map &map) ATTR_COLD; + void trvwhziv_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/merit/merit3xx.cpp b/src/mame/merit/merit3xx.cpp index 39d3cd1e4bd..6d56a8b834e 100644 --- a/src/mame/merit/merit3xx.cpp +++ b/src/mame/merit/merit3xx.cpp @@ -913,8 +913,8 @@ class merit3xx_state : public driver_device void crt352(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: MC6845_UPDATE_ROW(update_row); @@ -923,10 +923,10 @@ class merit3xx_state : public driver_device void crt352_rombank_w(u8 data); - void main_map(address_map &map); - void alt_main_map(address_map &map); - void crt307_io_map(address_map &map); - void crt352_io_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void alt_main_map(address_map &map) ATTR_COLD; + void crt307_io_map(address_map &map) ATTR_COLD; + void crt352_io_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_memory_bank m_rombank; diff --git a/src/mame/merit/meritm.cpp b/src/mame/merit/meritm.cpp index 022b4956af6..fd297b8e8e4 100644 --- a/src/mame/merit/meritm.cpp +++ b/src/mame/merit/meritm.cpp @@ -221,8 +221,8 @@ class meritm_state : public driver_device void crt250_crt252_crt258(machine_config &config); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device_array m_z80pio; @@ -278,12 +278,12 @@ class meritm_state : public driver_device uint8_t binary_to_BCD(uint8_t data); [[maybe_unused]] void vdp0_interrupt(int state); [[maybe_unused]] void vdp1_interrupt(int state); - void crt250_crt258_io_map(address_map &map); - void crt250_io_map(address_map &map); - void crt250_map(address_map &map); - void crt250_questions_map(address_map &map); - void io_map(address_map &map); - void map(address_map &map); + void crt250_crt258_io_map(address_map &map) ATTR_COLD; + void crt250_io_map(address_map &map) ATTR_COLD; + void crt250_map(address_map &map) ATTR_COLD; + void crt250_questions_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; + void map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/merit/merits.cpp b/src/mame/merit/merits.cpp index 5b674460b51..ed4f523677f 100644 --- a/src/mame/merit/merits.cpp +++ b/src/mame/merit/merits.cpp @@ -38,8 +38,8 @@ class merits_state : public driver_device void scrpiondold(machine_config &config); private: - void mem_map(address_map &map); - void io_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; required_device m_maincpu; }; diff --git a/src/mame/merit/meritsdx.cpp b/src/mame/merit/meritsdx.cpp index 1aa2083a562..f16fb8b188f 100644 --- a/src/mame/merit/meritsdx.cpp +++ b/src/mame/merit/meritsdx.cpp @@ -39,8 +39,8 @@ class meritsdx_state : public driver_device void scrpndx(machine_config &config); private: - void mem_map(address_map &map); - void io_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; required_device m_maincpu; }; diff --git a/src/mame/merit/mgames.cpp b/src/mame/merit/mgames.cpp index ea65c22abfe..cf518c0f9f7 100644 --- a/src/mame/merit/mgames.cpp +++ b/src/mame/merit/mgames.cpp @@ -257,9 +257,9 @@ class mgames_state : public driver_device uint32_t screen_update_mgames(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); TILE_GET_INFO_MEMBER(tile_info); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; uint8_t m_output[8]{}; required_shared_ptr m_video; diff --git a/src/mame/merit/mtouchxl.cpp b/src/mame/merit/mtouchxl.cpp index af5c150abe2..b2c1015c6ea 100644 --- a/src/mame/merit/mtouchxl.cpp +++ b/src/mame/merit/mtouchxl.cpp @@ -82,17 +82,17 @@ class mtxl_state : public driver_device required_device m_ram; required_device m_iocard; optional_device m_multikey; - void machine_start() override; - void machine_reset() override; + void machine_start() override ATTR_COLD; + void machine_reset() override ATTR_COLD; uint8_t coin_r(); void bank_w(uint8_t data); uint8_t key_r(); void key_w(uint8_t data); static void cdrom(device_t *device); static void hdd(device_t *device); - void at32_io(address_map &map); - void at32_map(address_map &map); - void dbank_map(address_map &map); + void at32_io(address_map &map) ATTR_COLD; + void at32_map(address_map &map) ATTR_COLD; + void dbank_map(address_map &map) ATTR_COLD; }; void mtxl_state::bank_w(uint8_t data) diff --git a/src/mame/merit/pubtimed.cpp b/src/mame/merit/pubtimed.cpp index fc8bedaa7f3..db57910faec 100644 --- a/src/mame/merit/pubtimed.cpp +++ b/src/mame/merit/pubtimed.cpp @@ -26,7 +26,7 @@ class pubtimed_state : public driver_device void pubtimed(machine_config &mconfig); private: - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; }; diff --git a/src/mame/metro/hyprduel.cpp b/src/mame/metro/hyprduel.cpp index 7cde490f9ff..237a59d0f02 100644 --- a/src/mame/metro/hyprduel.cpp +++ b/src/mame/metro/hyprduel.cpp @@ -72,8 +72,8 @@ class hyprduel_state : public driver_device void init_hyprduel(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: void subcpu_control_w(uint16_t data); @@ -88,10 +88,10 @@ class hyprduel_state : public driver_device void i4220_config(machine_config &config); - void hyprduel_map(address_map &map); - void hyprduel_map2(address_map &map); - void magerror_map(address_map &map); - void magerror_map2(address_map &map); + void hyprduel_map(address_map &map) ATTR_COLD; + void hyprduel_map2(address_map &map) ATTR_COLD; + void magerror_map(address_map &map) ATTR_COLD; + void magerror_map2(address_map &map) ATTR_COLD; /* memory pointers */ required_shared_ptr_array m_sharedram; diff --git a/src/mame/metro/metro.h b/src/mame/metro/metro.h index 71eebd80fdb..5b4c912f725 100644 --- a/src/mame/metro/metro.h +++ b/src/mame/metro/metro.h @@ -76,14 +76,14 @@ class metro_state : public driver_device void karatour_vblank_irq(int state); void puzzlet_vblank_irq(int state); - void balcube_map(address_map &map); - void bangball_map(address_map &map); - void batlbubl_map(address_map &map); - void cpu_space_map(address_map &map); - void daitoa_map(address_map &map); - void msgogo_map(address_map &map); - void puzzlet_map(address_map &map); - void ymf278_map(address_map &map); + void balcube_map(address_map &map) ATTR_COLD; + void bangball_map(address_map &map) ATTR_COLD; + void batlbubl_map(address_map &map) ATTR_COLD; + void cpu_space_map(address_map &map) ATTR_COLD; + void daitoa_map(address_map &map) ATTR_COLD; + void msgogo_map(address_map &map) ATTR_COLD; + void puzzlet_map(address_map &map) ATTR_COLD; + void ymf278_map(address_map &map) ATTR_COLD; // devices required_device m_maincpu; @@ -133,7 +133,7 @@ class metro_upd7810_state : public metro_state int custom_soundstatus_r(); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: void sound_data_w(u8 data); @@ -148,18 +148,18 @@ class metro_upd7810_state : public metro_state int rxd_r(); - void daitorid_map(address_map &map); - void dharma_map(address_map &map); - void karatour_map(address_map &map); - void kokushi_map(address_map &map); - void lastforg_map(address_map &map); - void lastfort_map(address_map &map); - void pangpoms_map(address_map &map); - void poitto_map(address_map &map); - void pururun_map(address_map &map); - void skyalert_map(address_map &map); - void toride2g_map(address_map &map); - void upd7810_map(address_map &map); + void daitorid_map(address_map &map) ATTR_COLD; + void dharma_map(address_map &map) ATTR_COLD; + void karatour_map(address_map &map) ATTR_COLD; + void kokushi_map(address_map &map) ATTR_COLD; + void lastforg_map(address_map &map) ATTR_COLD; + void lastfort_map(address_map &map) ATTR_COLD; + void pangpoms_map(address_map &map) ATTR_COLD; + void poitto_map(address_map &map) ATTR_COLD; + void pururun_map(address_map &map) ATTR_COLD; + void skyalert_map(address_map &map) ATTR_COLD; + void toride2g_map(address_map &map) ATTR_COLD; + void upd7810_map(address_map &map) ATTR_COLD; // sound related u8 m_sound_data = 0; @@ -186,7 +186,7 @@ class gakusai_state : public metro_state void gakusai(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: u16 input_r(); @@ -200,10 +200,10 @@ class gakusai_state : public metro_state void oki_bank_set(); - void dokyusei_map(address_map &map); - void dokyusp_map(address_map &map); - void gakusai2_map(address_map &map); - void gakusai_map(address_map &map); + void dokyusei_map(address_map &map) ATTR_COLD; + void dokyusp_map(address_map &map) ATTR_COLD; + void gakusai2_map(address_map &map) ATTR_COLD; + void gakusai_map(address_map &map) ATTR_COLD; // devices optional_device m_eeprom; @@ -230,7 +230,7 @@ class vmetal_state : public metro_state void vmetal(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: // vmetal @@ -238,7 +238,7 @@ class vmetal_state : public metro_state void es8712_reset_w(u8 data); void es8712_irq(int state); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; // devices required_device m_essnd; @@ -260,14 +260,14 @@ class mouja_state : public metro_state void mouja(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: void irq_timer_ctrl_w(u16 data); void sound_rombank_w(u8 data); - void main_map(address_map &map); - void oki_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void oki_map(address_map &map) ATTR_COLD; TIMER_CALLBACK_MEMBER(mouja_irq); @@ -293,7 +293,7 @@ class blzntrnd_state : public metro_state void gstrik2(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: void audiobank_w(u8 data); @@ -306,9 +306,9 @@ class blzntrnd_state : public metro_state DECLARE_VIDEO_START(gstrik2); u32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void main_map(address_map &map); - void sound_io_map(address_map &map); - void sound_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_io_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; // devices required_device m_gfxdecode; diff --git a/src/mame/metro/rabbit.cpp b/src/mame/metro/rabbit.cpp index 01fc06afafc..1fb21c45608 100644 --- a/src/mame/metro/rabbit.cpp +++ b/src/mame/metro/rabbit.cpp @@ -114,8 +114,8 @@ class rabbit_state : public driver_device void rabbit(machine_config &config); private: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; TIMER_CALLBACK_MEMBER(blit_done); @@ -132,7 +132,7 @@ class rabbit_state : public driver_device void blitter_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0); void eeprom_write(offs_t offset, uint32_t data, uint32_t mem_mask = ~0); - void rabbit_map(address_map &map); + void rabbit_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_eeprom; diff --git a/src/mame/metro/tmmjprd.cpp b/src/mame/metro/tmmjprd.cpp index 8b5c44f1c47..c476e57e068 100644 --- a/src/mame/metro/tmmjprd.cpp +++ b/src/mame/metro/tmmjprd.cpp @@ -67,8 +67,8 @@ class tmmjprd_state : public driver_device void tmpdoki(machine_config &config); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -123,7 +123,7 @@ class tmmjprd_state : public driver_device void draw_tile(bitmap_ind16 &bitmap, const rectangle &cliprect, int x,int y,int sizex,int sizey, uint32_t tiledata, uint8_t* rom); void draw_tilemap(bitmap_ind16 &bitmap, const rectangle &cliprect, uint32_t*tileram, uint32_t*tileregs, uint8_t*rom ); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; }; template diff --git a/src/mame/mg1/kbd.h b/src/mame/mg1/kbd.h index 85d111ba092..552b253eb8c 100644 --- a/src/mame/mg1/kbd.h +++ b/src/mame/mg1/kbd.h @@ -16,15 +16,15 @@ class mg1_kbd_device mg1_kbd_device(machine_config const &mconfig, char const *tag, device_t *owner, u32 clock = 0); protected: - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; - virtual tiny_rom_entry const *device_rom_region() const override; - virtual ioport_constructor device_input_ports() const override; + virtual tiny_rom_entry const *device_rom_region() const override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; private: - virtual void map_mem(address_map &map); - virtual void map_pio(address_map &map); + virtual void map_mem(address_map &map) ATTR_COLD; + virtual void map_pio(address_map &map) ATTR_COLD; devcb_write_line m_data_cb; diff --git a/src/mame/mg1/mg1.cpp b/src/mame/mg1/mg1.cpp index bc7b1b8680f..e6efa832898 100644 --- a/src/mame/mg1/mg1.cpp +++ b/src/mame/mg1/mg1.cpp @@ -92,13 +92,13 @@ class mg1_state : public driver_device protected: // driver_device overrides - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; // address maps - template void cpu_map(address_map &map); - void iop_map(address_map &map); - void dma_map(address_map &map); + template void cpu_map(address_map &map) ATTR_COLD; + void iop_map(address_map &map) ATTR_COLD; + void dma_map(address_map &map) ATTR_COLD; private: MC6845_UPDATE_ROW(update_row); diff --git a/src/mame/microcraft/dim68k.cpp b/src/mame/microcraft/dim68k.cpp index 3d920986f8b..650886ea0fb 100644 --- a/src/mame/microcraft/dim68k.cpp +++ b/src/mame/microcraft/dim68k.cpp @@ -101,13 +101,13 @@ class dim68k_state : public driver_device void fdc_irq_w(int state); - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; bool m_speaker_bit = 0; u8 m_video_control = 0U; u8 m_fdc_irq = 0U; - void machine_reset() override; - void machine_start() override; + void machine_reset() override ATTR_COLD; + void machine_start() override ATTR_COLD; required_device m_maincpu; required_device m_crtc; diff --git a/src/mame/microcraft/dim68k_kbd.h b/src/mame/microcraft/dim68k_kbd.h index b9ef3237870..85cf7825d1e 100644 --- a/src/mame/microcraft/dim68k_kbd.h +++ b/src/mame/microcraft/dim68k_kbd.h @@ -30,11 +30,11 @@ class dim68k_keyboard_device : public device_t protected: // device_t implementation - virtual void device_resolve_objects() override; - virtual void device_start() override; - virtual ioport_constructor device_input_ports() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual const tiny_rom_entry *device_rom_region() const override; + virtual void device_resolve_objects() override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual ioport_constructor device_input_ports() const 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; private: // MCU handlers @@ -44,7 +44,7 @@ class dim68k_keyboard_device : public device_t u8 eprom_r(); // address map - void ext_map(address_map &map); + void ext_map(address_map &map) ATTR_COLD; // object finders required_device m_mcu; diff --git a/src/mame/microkey/primo.h b/src/mame/microkey/primo.h index 0ba05aed834..4ffd1b5338d 100644 --- a/src/mame/microkey/primo.h +++ b/src/mame/microkey/primo.h @@ -55,8 +55,8 @@ class primo_state : public driver_device void ki_1_w(uint8_t data); void ki_2_w(uint8_t data); void FD_w(uint8_t data); - void machine_reset() override; - void machine_start() override; + void machine_reset() override ATTR_COLD; + void machine_start() override ATTR_COLD; DECLARE_MACHINE_RESET(primob); uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void vblank_irq(int state); @@ -67,11 +67,11 @@ class primo_state : public driver_device DECLARE_SNAPSHOT_LOAD_MEMBER(snapshot_cb); DECLARE_QUICKLOAD_LOAD_MEMBER(quickload_cb); - void primo32_mem(address_map &map); - void primo48_mem(address_map &map); - void primo64_mem(address_map &map); - void primoa_io(address_map &map); - void primob_io(address_map &map); + void primo32_mem(address_map &map) ATTR_COLD; + void primo48_mem(address_map &map) ATTR_COLD; + void primo64_mem(address_map &map) ATTR_COLD; + void primoa_io(address_map &map) ATTR_COLD; + void primob_io(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_iec; diff --git a/src/mame/microsoft/jazz.cpp b/src/mame/microsoft/jazz.cpp index 49bec973410..77d39e64019 100644 --- a/src/mame/microsoft/jazz.cpp +++ b/src/mame/microsoft/jazz.cpp @@ -130,12 +130,12 @@ class jazz_state : public driver_device protected: // driver_device overrides - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; // address maps - void cpu_map(address_map &map); - void mct_map(address_map &map); + void cpu_map(address_map &map) ATTR_COLD; + void mct_map(address_map &map) ATTR_COLD; // machine config void jazz(machine_config &config); diff --git a/src/mame/microsoft/mct_adr.h b/src/mame/microsoft/mct_adr.h index f66afcbc295..95956a11c8a 100644 --- a/src/mame/microsoft/mct_adr.h +++ b/src/mame/microsoft/mct_adr.h @@ -25,7 +25,7 @@ class mct_adr_device template void irq(int state) { set_irq_line(IRQ, state); } template void drq(int state) { set_drq_line(DRQ, state); } - void map(address_map &map); + void map(address_map &map) ATTR_COLD; u64 r4k_r(offs_t offset, u64 mem_mask) { return space(0).read_qword(offset << 3, mem_mask); } void r4k_w(offs_t offset, u64 data, u64 mem_mask) { space(0).write_qword(offset << 3, data, mem_mask); } @@ -36,8 +36,8 @@ class mct_adr_device protected: // device_t 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; // device_memory_interface overrides virtual space_config_vector memory_space_config() const override; @@ -47,7 +47,7 @@ class mct_adr_device void dma_w(offs_t offset, u32 data, u32 mem_mask); private: - void dma(address_map &map); + void dma(address_map &map) ATTR_COLD; void set_irq_line(int number, int state); void set_drq_line(int channel, int state); diff --git a/src/mame/microsoft/xbox.cpp b/src/mame/microsoft/xbox.cpp index 42a581c5eb4..e5061ec26cc 100644 --- a/src/mame/microsoft/xbox.cpp +++ b/src/mame/microsoft/xbox.cpp @@ -38,12 +38,12 @@ class xbox_state : public xbox_base_state void xbox(machine_config &config); protected: - void xbox_map(address_map &map); + void xbox_map(address_map &map) ATTR_COLD; // driver_device overrides - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; virtual void hack_eeprom() override; diff --git a/src/mame/microterm/ergo201.cpp b/src/mame/microterm/ergo201.cpp index ea2772bac1c..b8be217d57f 100644 --- a/src/mame/microterm/ergo201.cpp +++ b/src/mame/microterm/ergo201.cpp @@ -52,7 +52,7 @@ class ergo201_state : public driver_device void ergo201(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: u32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); @@ -60,8 +60,8 @@ class ergo201_state : public driver_device void earom_latch_w(u8 data); u8 status_r(); - void mem_map(address_map &map); - void io_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_earom; diff --git a/src/mame/microterm/microterm_f8.cpp b/src/mame/microterm/microterm_f8.cpp index 9727cc7768f..98198faa646 100644 --- a/src/mame/microterm/microterm_f8.cpp +++ b/src/mame/microterm/microterm_f8.cpp @@ -43,8 +43,8 @@ class microterm_f8_state : public driver_device void act5a(machine_config &config); private: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; TIMER_CALLBACK_MEMBER(baud_clock); @@ -63,8 +63,8 @@ class microterm_f8_state : public driver_device void port00_w(u8 data); u8 port01_r(); - void f8_mem(address_map &map); - void f8_io(address_map &map); + void f8_mem(address_map &map) ATTR_COLD; + void f8_io(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_uart; diff --git a/src/mame/microterm/mt420.cpp b/src/mame/microterm/mt420.cpp index cdd613a9d63..9052f83e9f5 100644 --- a/src/mame/microterm/mt420.cpp +++ b/src/mame/microterm/mt420.cpp @@ -42,10 +42,10 @@ class mt420_state : public driver_device void control_w(u8 data); u8 attr_r(offs_t offset); - void mem_map(address_map &map); - void io_map(address_map &map); - void chars_map(address_map &map); - void attrs_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; + void chars_map(address_map &map) ATTR_COLD; + void attrs_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_mainnmi; diff --git a/src/mame/microterm/mt440.cpp b/src/mame/microterm/mt440.cpp index 6807db86d21..8d2e9e6d8b6 100644 --- a/src/mame/microterm/mt440.cpp +++ b/src/mame/microterm/mt440.cpp @@ -69,14 +69,14 @@ class mt440_state : public driver_device void mt440(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; - void mem_map(address_map &map); - void io_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/microterm/mt5510.cpp b/src/mame/microterm/mt5510.cpp index 64092ebab33..ca3a5ddba49 100644 --- a/src/mame/microterm/mt5510.cpp +++ b/src/mame/microterm/mt5510.cpp @@ -27,16 +27,16 @@ class mt5510_state : public driver_device void mt5510(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: u32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); void bank_w(u8 data); - void mem_map(address_map &map); - void io_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_memory_bank m_rombank; diff --git a/src/mame/midcoin/24cdjuke.cpp b/src/mame/midcoin/24cdjuke.cpp index a48ecd08262..b262a4a85e0 100644 --- a/src/mame/midcoin/24cdjuke.cpp +++ b/src/mame/midcoin/24cdjuke.cpp @@ -78,8 +78,8 @@ class midcoin24cdjuke_state : public driver_device void midcoin24cdjuke(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; @@ -96,8 +96,8 @@ class midcoin24cdjuke_state : public driver_device uint8_t unknown_r() { return machine().rand(); } - void midcoin24cdjuke_io(address_map &map); - void midcoin24cdjuke_map(address_map &map); + void midcoin24cdjuke_io(address_map &map) ATTR_COLD; + void midcoin24cdjuke_map(address_map &map) ATTR_COLD; uint8_t m_kb_col; }; diff --git a/src/mame/midcoin/wallc.cpp b/src/mame/midcoin/wallc.cpp index 9acdc76ee0b..df774b9fc27 100644 --- a/src/mame/midcoin/wallc.cpp +++ b/src/mame/midcoin/wallc.cpp @@ -84,11 +84,11 @@ class wallc_state : public driver_device void init_unkitpkr(); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: - void unkitpkr_map(address_map &map); - void wallc_map(address_map &map); + void unkitpkr_map(address_map &map) ATTR_COLD; + void wallc_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_gfxdecode; diff --git a/src/mame/midcoin/wink.cpp b/src/mame/midcoin/wink.cpp index 16323eeb16e..a34c8ca3f66 100644 --- a/src/mame/midcoin/wink.cpp +++ b/src/mame/midcoin/wink.cpp @@ -69,17 +69,17 @@ class wink_state : public driver_device TILE_GET_INFO_MEMBER(get_bg_tile_info); - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; uint32_t screen_update_wink(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); INTERRUPT_GEN_MEMBER(wink_sound); - void wink_io(address_map &map); - void wink_map(address_map &map); - void wink_sound_io(address_map &map); - void wink_sound_map(address_map &map); + void wink_io(address_map &map) ATTR_COLD; + void wink_map(address_map &map) ATTR_COLD; + void wink_sound_io(address_map &map) ATTR_COLD; + void wink_sound_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/midw8080/8080bw.h b/src/mame/midw8080/8080bw.h index c6668170eeb..890b654409a 100644 --- a/src/mame/midw8080/8080bw.h +++ b/src/mame/midw8080/8080bw.h @@ -216,31 +216,31 @@ class _8080bw_state : public invaders_clone_palette_state void schaser_reinit_555_time_remain(); - void astropal_io_map(address_map &map); - void attackfc_io_map(address_map &map); - void attackfcu_io_map(address_map &map); - void ballbomb_io_map(address_map &map); - void cosmicmo_io_map(address_map &map); - void cosmo_io_map(address_map &map); - void cosmo_map(address_map &map); - void crashrd_io_map(address_map &map); - void escmars_map(address_map &map); - void indianbt_io_map(address_map &map); - void indianbtbr_io_map(address_map &map); - void invadpt2_io_map(address_map &map); - void lrescue_io_map(address_map &map); - void lrescuem2_io_map(address_map &map); - void lupin3_io_map(address_map &map); - void polaris_io_map(address_map &map); - void schaser_io_map(address_map &map); - void schaser_map(address_map &map); - void schasercv_io_map(address_map &map); - void sflush_map(address_map &map); - void spacerng_io_map(address_map &map); - void spcewarla_io_map(address_map &map); - void spcewars_io_map(address_map &map); - void starw1_io_map(address_map &map); - void steelwkr_io_map(address_map &map); + void astropal_io_map(address_map &map) ATTR_COLD; + void attackfc_io_map(address_map &map) ATTR_COLD; + void attackfcu_io_map(address_map &map) ATTR_COLD; + void ballbomb_io_map(address_map &map) ATTR_COLD; + void cosmicmo_io_map(address_map &map) ATTR_COLD; + void cosmo_io_map(address_map &map) ATTR_COLD; + void cosmo_map(address_map &map) ATTR_COLD; + void crashrd_io_map(address_map &map) ATTR_COLD; + void escmars_map(address_map &map) ATTR_COLD; + void indianbt_io_map(address_map &map) ATTR_COLD; + void indianbtbr_io_map(address_map &map) ATTR_COLD; + void invadpt2_io_map(address_map &map) ATTR_COLD; + void lrescue_io_map(address_map &map) ATTR_COLD; + void lrescuem2_io_map(address_map &map) ATTR_COLD; + void lupin3_io_map(address_map &map) ATTR_COLD; + void polaris_io_map(address_map &map) ATTR_COLD; + void schaser_io_map(address_map &map) ATTR_COLD; + void schaser_map(address_map &map) ATTR_COLD; + void schasercv_io_map(address_map &map) ATTR_COLD; + void sflush_map(address_map &map) ATTR_COLD; + void spacerng_io_map(address_map &map) ATTR_COLD; + void spcewarla_io_map(address_map &map) ATTR_COLD; + void spcewars_io_map(address_map &map) ATTR_COLD; + void starw1_io_map(address_map &map) ATTR_COLD; + void steelwkr_io_map(address_map &map) ATTR_COLD; }; @@ -269,7 +269,7 @@ class invasion_state : public invaders_state void invasion(machine_config &config); private: - void io_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; }; @@ -288,16 +288,16 @@ class darthvdr_state : public invaders_clone_state void darthvdr(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: void darthvdr_00_w(uint8_t data); void darthvdr_08_w(uint8_t data); IRQ_CALLBACK_MEMBER(darthvdr_interrupt_vector); - void main_map(address_map &map); - void io_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; uint8_t m_port_1_last = 0; uint8_t m_fleet_step = 0; @@ -324,8 +324,8 @@ class spacecom_state : public invaders_state private: uint32_t screen_update_spacecom(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void main_map(address_map &map); - void io_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; required_device m_palette; }; @@ -349,7 +349,7 @@ class invrvnge_state : public _8080bw_state void init_invrvnge(); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: void port03_w(uint8_t data); @@ -357,8 +357,8 @@ class invrvnge_state : public _8080bw_state TIMER_DEVICE_CALLBACK_MEMBER(nmi_timer); - void io_map(address_map &map); - void sound_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; required_device m_audiocpu; @@ -386,7 +386,7 @@ class vortex_state : public invaders_state private: uint32_t screen_update_vortex(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void io_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; }; @@ -407,7 +407,7 @@ class rollingc_state : public _8080bw_state // TODO: untangle the invadpt2 sound ioport_value game_select_r(); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: void rollingc_sh_port_w(uint8_t data); @@ -421,8 +421,8 @@ class rollingc_state : public _8080bw_state // TODO: untangle the invadpt2 sound uint32_t screen_update_rollingc(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void main_map(address_map &map); - void io_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; std::unique_ptr m_scattered_colorram; std::unique_ptr m_scattered_colorram2; @@ -449,7 +449,7 @@ class ozmawars_state : public _8080bw_state void ozmawars_port03_w(uint8_t data); void ozmawars_port04_w(uint8_t data); void ozmawars_port05_w(uint8_t data); - void ozmawars_io_map(address_map &map); + void ozmawars_io_map(address_map &map) ATTR_COLD; uint8_t m_port03 = 0; uint8_t m_port05 = 0; bool m_sound_enable = 0; @@ -471,14 +471,14 @@ class yosakdon_state : public invaders_clone_state void yosakdon(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: void sh_port_1_w(uint8_t data); void sh_port_2_w(uint8_t data); - void main_map(address_map &map); - void io_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; uint8_t m_port_1_last; uint8_t m_port_2_last; @@ -503,7 +503,7 @@ class shuttlei_state : public invaders_clone_state void shuttlei(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: uint8_t port_ff_r(); @@ -513,8 +513,8 @@ class shuttlei_state : public invaders_clone_state uint32_t screen_update_shuttlei(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void main_map(address_map &map); - void io_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; required_ioport m_inputs; required_ioport m_p2; @@ -546,14 +546,14 @@ class claybust_state : public invaders_state int gun_on_r(); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: uint8_t gun_lo_r(); uint8_t gun_hi_r(); TIMER_DEVICE_CALLBACK_MEMBER(gun_callback); - void io_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; required_ioport m_gunx; required_ioport m_guny; @@ -582,8 +582,8 @@ class cane_state : public mw8080bw_state void cane_unknown_port0_w(uint8_t data); private: - void cane_io_map(address_map &map); - void cane_map(address_map &map); + void cane_io_map(address_map &map) ATTR_COLD; + void cane_map(address_map &map) ATTR_COLD; }; DISCRETE_SOUND_EXTERN( cane_discrete ); @@ -605,14 +605,14 @@ class orbite_state : public invaders_clone_palette_state void orbite(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; uint8_t orbite_scattered_colorram_r(address_space &space, offs_t offset, uint8_t mem_mask = 0xff); void orbite_scattered_colorram_w(address_space &space, offs_t offset, uint8_t data, uint8_t mem_mask = 0xff); private: - void orbite_io_map(address_map &map); - void orbite_map(address_map &map); + void orbite_io_map(address_map &map) ATTR_COLD; + void orbite_map(address_map &map) ATTR_COLD; u32 screen_update_orbite(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); @@ -640,14 +640,14 @@ class invmulti_state : public invaders_state void init_invmulti(); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: uint8_t eeprom_r(); void eeprom_w(uint8_t data); void bank_w(uint8_t data); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; required_memory_bank_array<2> m_banks; required_device m_eeprom; diff --git a/src/mame/midw8080/8080bw_a.h b/src/mame/midw8080/8080bw_a.h index 3d9f85d818d..e8a24f36118 100644 --- a/src/mame/midw8080/8080bw_a.h +++ b/src/mame/midw8080/8080bw_a.h @@ -26,9 +26,9 @@ class cane_audio_device : public device_t void sn76477_dis_w(u8 data); protected: - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; private: TIMER_DEVICE_CALLBACK_MEMBER(vco_voltage_timer); diff --git a/src/mame/midw8080/mw8080bw.h b/src/mame/midw8080/mw8080bw.h index 0f87196d4e3..ce189893d09 100644 --- a/src/mame/midw8080/mw8080bw.h +++ b/src/mame/midw8080/mw8080bw.h @@ -77,8 +77,8 @@ class mw8080bw_state : public driver_device IRQ_CALLBACK_MEMBER(interrupt_vector); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; void int_enable_w(int state); @@ -134,15 +134,15 @@ class mw8080bw_state : public driver_device void shuffle_audio(machine_config &config); void tornbase_audio(machine_config &config); - void blueshrk_io_map(address_map &map); - void checkmat_io_map(address_map &map); - void dogpatch_io_map(address_map &map); - void invad2ct_io_map(address_map &map); - void main_map(address_map &map); - void maze_io_map(address_map &map); - void phantom2_io_map(address_map &map); - void shuffle_io_map(address_map &map); - void tornbase_io_map(address_map &map); + void blueshrk_io_map(address_map &map) ATTR_COLD; + void checkmat_io_map(address_map &map) ATTR_COLD; + void dogpatch_io_map(address_map &map) ATTR_COLD; + void invad2ct_io_map(address_map &map) ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; + void maze_io_map(address_map &map) ATTR_COLD; + void phantom2_io_map(address_map &map) ATTR_COLD; + void shuffle_io_map(address_map &map) ATTR_COLD; + void tornbase_io_map(address_map &map) ATTR_COLD; }; @@ -168,13 +168,13 @@ class seawolf_state : public mw8080bw_state ioport_value erase_input_r(); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: void explosion_lamp_w(u8 data); void periscope_lamp_w(u8 data); - void io_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; required_ioport m_erase_sw; required_ioport m_erase_dip; @@ -199,7 +199,7 @@ class gunfight_state : public mw8080bw_state private: void io_w(offs_t offset, u8 data); - void io_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; required_device m_soundboard; }; @@ -218,15 +218,15 @@ class boothill_state : public mw8080bw_state void m4(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: u8 reversible_shift_result_r(); void reversible_shift_count_w(u8 data); - void boothill_io_map(address_map &map); - void gmissile_io_map(address_map &map); - void m4_io_map(address_map &map); + void boothill_io_map(address_map &map) ATTR_COLD; + void gmissile_io_map(address_map &map) ATTR_COLD; + void m4_io_map(address_map &map) ATTR_COLD; u8 m_rev_shift_res = 0; }; @@ -254,10 +254,10 @@ class desertgu_state : public mw8080bw_state ioport_value dip_sw_0_1_r(); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: - void io_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; required_ioport_array<2> m_gun_port; required_ioport_array<2> m_dip_sw_0_1; @@ -286,7 +286,7 @@ class dplay_state : public mw8080bw_state ioport_value dplay_pitch_right_input_r(); private: - void io_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; required_ioport m_l_pitch; required_ioport m_r_pitch; @@ -309,11 +309,11 @@ class clowns_state : public mw8080bw_state ioport_value controller_r(); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: - void clowns_io_map(address_map &map); - void spacwalk_io_map(address_map &map); + void clowns_io_map(address_map &map) ATTR_COLD; + void spacwalk_io_map(address_map &map) ATTR_COLD; required_ioport_array<2> m_controllers; u8 m_controller_select = 0; @@ -332,14 +332,14 @@ class spcenctr_state : public mw8080bw_state void spcenctr(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: void io_w(offs_t offset, u8 data); u32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, rectangle const &cliprect); - void io_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; required_device m_soundboard; u8 m_trench_width = 0; @@ -366,7 +366,7 @@ class zzzap_state : public mw8080bw_state void zzzap_common(machine_config &config); private: - void io_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; }; @@ -395,7 +395,7 @@ class invaders_state : public mw8080bw_state ioport_value invaders_in2_control_r(); protected: - void machine_start() override; + void machine_start() override ATTR_COLD; bool is_cabinet_cocktail(); @@ -407,7 +407,7 @@ class invaders_state : public mw8080bw_state uint8_t m_flip_screen = 0; private: - void io_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; }; class bowler_state : public mw8080bw_state @@ -435,7 +435,7 @@ class bowler_state : public mw8080bw_state void bowler(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: output_finder<> m_200_left_light; @@ -465,7 +465,7 @@ class bowler_state : public mw8080bw_state void audio(machine_config &config); - void io_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/midw8080/mw8080bw_a.h b/src/mame/midw8080/mw8080bw_a.h index 98c3cdadc40..33071dadb11 100644 --- a/src/mame/midw8080/mw8080bw_a.h +++ b/src/mame/midw8080/mw8080bw_a.h @@ -38,8 +38,8 @@ class seawolf_audio_device : public device_t void write(u8 data); protected: - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; private: required_device m_samples; @@ -55,9 +55,9 @@ class gunfight_audio_device : public device_t void write(u8 data); protected: - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; private: required_device m_left_shot; @@ -75,9 +75,9 @@ class boothill_audio_device : public midway_tone_generator_device_base void write(u8 data); protected: - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; }; @@ -92,9 +92,9 @@ class desertgu_audio_device : public midway_tone_generator_device_base void p2_w(u8 data); protected: - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; private: devcb_write_line m_ctrl_sel_out; @@ -111,9 +111,9 @@ class dplay_audio_device : public midway_tone_generator_device_base void write(u8 data); protected: - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; }; @@ -127,8 +127,8 @@ class gmissile_audio_device : public device_t void p3_w(u8 data); protected: - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; private: required_device_array m_samples; @@ -147,8 +147,8 @@ class m4_audio_device : public device_t void p2_w(u8 data); protected: - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; private: required_device_array m_samples; @@ -168,9 +168,9 @@ class clowns_audio_device : public midway_tone_generator_device_base void p2_w(u8 data); protected: - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; private: required_device m_samples; @@ -191,9 +191,9 @@ class spacwalk_audio_device : public midway_tone_generator_device_base void p2_w(u8 data); protected: - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; private: devcb_write_line m_ctrl_sel_out; @@ -209,8 +209,8 @@ class dogpatch_audio_device : public midway_tone_generator_device_base void write(u8 data); protected: - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; }; @@ -224,8 +224,8 @@ class spcenctr_audio_device : public device_t void p3_w(u8 data); protected: - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; private: TIMER_CALLBACK_MEMBER(strobe_callback); @@ -248,8 +248,8 @@ class phantom2_audio_device : public device_t void p2_w(u8 data); protected: - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; private: required_device m_samples; @@ -270,8 +270,8 @@ class invaders_audio_device : public device_t void p2_w(u8 data); protected: - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; private: required_device m_sn; @@ -292,8 +292,8 @@ class invad2ct_audio_device : public device_t void p4_w(u8 data); protected: - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; private: required_device m_discrete; @@ -310,9 +310,9 @@ class zzzap_common_audio_device : public device_t protected: zzzap_common_audio_device(machine_config const &mconfig, device_type type, char const *tag, device_t *owner, u32 clock, void (*netlist)(netlist::nlparse_t &)); - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; private: void (*m_netlist)(netlist::nlparse_t &) = nullptr; diff --git a/src/mame/midw8080/rotaryf.cpp b/src/mame/midw8080/rotaryf.cpp index 122f8756310..872a3fb4c55 100644 --- a/src/mame/midw8080/rotaryf.cpp +++ b/src/mame/midw8080/rotaryf.cpp @@ -57,13 +57,13 @@ class rotaryf_state : public driver_device bool m_flipscreen = 0; uint8_t m_last = 0U; - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); TIMER_DEVICE_CALLBACK_MEMBER(rotaryf_interrupt); - void rotaryf_io_map(address_map &map); - void rotaryf_map(address_map &map); + void rotaryf_io_map(address_map &map) ATTR_COLD; + void rotaryf_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/midway/astrocde.h b/src/mame/midway/astrocde.h index f7068cd049c..72f7f31210b 100644 --- a/src/mame/midway/astrocde.h +++ b/src/mame/midway/astrocde.h @@ -163,23 +163,23 @@ class astrocde_state : public driver_device void profpac(machine_config &config); void robby(machine_config &config); void wow(machine_config &config); - void bank4000_map(address_map &map); - void demndrgn_map(address_map &map); - void port_map(address_map &map); - void port_map_16col_pattern(address_map &map); - void port_map_16col_pattern_nosound(address_map &map); - void port_map_mono_pattern(address_map &map); - void port_map_stereo_pattern(address_map &map); - void profpac_bank4000_map(address_map &map); - void profpac_map(address_map &map); - void robby_map(address_map &map); - void seawolf2_map(address_map &map); - void spacezap_map(address_map &map); - void wow_map(address_map &map); + void bank4000_map(address_map &map) ATTR_COLD; + void demndrgn_map(address_map &map) ATTR_COLD; + void port_map(address_map &map) ATTR_COLD; + void port_map_16col_pattern(address_map &map) ATTR_COLD; + void port_map_16col_pattern_nosound(address_map &map) ATTR_COLD; + void port_map_mono_pattern(address_map &map) ATTR_COLD; + void port_map_stereo_pattern(address_map &map) ATTR_COLD; + void profpac_bank4000_map(address_map &map) ATTR_COLD; + void profpac_map(address_map &map) ATTR_COLD; + void robby_map(address_map &map) ATTR_COLD; + void seawolf2_map(address_map &map) ATTR_COLD; + void spacezap_map(address_map &map) ATTR_COLD; + void wow_map(address_map &map) ATTR_COLD; protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; }; class seawolf2_state : public astrocde_state @@ -193,13 +193,13 @@ class seawolf2_state : public astrocde_state void seawolf2(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: void sound_1_w(uint8_t data); void sound_2_w(uint8_t data); - void port_map_discrete(address_map &map); + void port_map_discrete(address_map &map) ATTR_COLD; required_device m_samples; uint8_t m_port_1_last = 0U; @@ -218,14 +218,14 @@ class ebases_state : public astrocde_state ioport_value trackball_r(); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: void trackball_select_w(uint8_t data); void coin_w(uint8_t data); - void ebases_map(address_map &map); - void port_map_ebases(address_map &map); + void ebases_map(address_map &map) ATTR_COLD; + void port_map_ebases(address_map &map) ATTR_COLD; required_ioport_array<4> m_trackball; uint8_t m_trackball_last = 0U; @@ -243,14 +243,14 @@ class demndrgn_state : public astrocde_state ioport_value trackball_r(); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: void input_select_w(int state); void sound_w(uint8_t data); void trackball_reset_w(uint8_t data); - void port_map_16col_pattern_demndrgn(address_map &map); + void port_map_16col_pattern_demndrgn(address_map &map) ATTR_COLD; required_ioport_array<2> m_trackball; uint8_t m_trackball_last = 0U; @@ -271,11 +271,11 @@ class tenpindx_state : public astrocde_state void counter_w(uint8_t data); void lights_w(uint8_t data); - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; - void port_map_16col_pattern_tenpindx(address_map &map); - void sub_io_map(address_map &map); - void sub_map(address_map &map); + void port_map_16col_pattern_tenpindx(address_map &map) ATTR_COLD; + void sub_io_map(address_map &map) ATTR_COLD; + void sub_map(address_map &map) ATTR_COLD; required_device m_subcpu; output_finder<19> m_lamps; diff --git a/src/mame/midway/astrohome.cpp b/src/mame/midway/astrohome.cpp index 0ce209be5f7..7acb6f0d146 100644 --- a/src/mame/midway/astrohome.cpp +++ b/src/mame/midway/astrohome.cpp @@ -43,13 +43,13 @@ class astrocde_home_state : public astrocde_state void init_astrocde(); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: uint8_t inputs_r(offs_t offset); - void astrocade_io(address_map &map); - void astrocade_mem(address_map &map); + void astrocade_io(address_map &map) ATTR_COLD; + void astrocade_mem(address_map &map) ATTR_COLD; required_device m_cart; required_device m_exp; diff --git a/src/mame/midway/atlantis.cpp b/src/mame/midway/atlantis.cpp index 48f9ab84e12..f58f5291f7c 100644 --- a/src/mame/midway/atlantis.cpp +++ b/src/mame/midway/atlantis.cpp @@ -132,8 +132,8 @@ class atlantis_state : public driver_device void mwskins(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; TIMER_CALLBACK_MEMBER(adc_ready); @@ -203,10 +203,10 @@ class atlantis_state : public driver_device uint8_t parallel_r(offs_t offset); void parallel_w(offs_t offset, uint8_t data); - void map0(address_map &map); - void map1(address_map &map); - void map2(address_map &map); - void map3(address_map &map); + void map0(address_map &map) ATTR_COLD; + void map1(address_map &map) ATTR_COLD; + void map2(address_map &map) ATTR_COLD; + void map3(address_map &map) ATTR_COLD; }; // Parallel Port diff --git a/src/mame/midway/balsente.h b/src/mame/midway/balsente.h index c2e0ceff1c0..55f32c6c666 100644 --- a/src/mame/midway/balsente.h +++ b/src/mame/midway/balsente.h @@ -95,9 +95,9 @@ class balsente_state : public driver_device void init_gghost(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: void random_reset_w(uint8_t data); @@ -141,18 +141,18 @@ class balsente_state : public driver_device void expand_roms(uint8_t cd_rom_mask); inline void config_shooter_adc(uint8_t shooter, uint8_t adc_shift); - void cpu1_base_map(address_map &map); - void cpu1_map(address_map &map); - void cpu1_teamht_map(address_map &map); - void cpu1_grudge_map(address_map &map); - void cpu1_st1002_map(address_map &map); - void cpu1_spiker_map(address_map &map); - void cpu1_shrike_map(address_map &map); - void cpu1_smudge_map(address_map &map); - void cpu1_triviamb_map(address_map &map); - void cpu2_triviamb_io_map(address_map &map); - void cpu2_triviamb_map(address_map &map); - void shrike68k_map(address_map &map); + void cpu1_base_map(address_map &map) ATTR_COLD; + void cpu1_map(address_map &map) ATTR_COLD; + void cpu1_teamht_map(address_map &map) ATTR_COLD; + void cpu1_grudge_map(address_map &map) ATTR_COLD; + void cpu1_st1002_map(address_map &map) ATTR_COLD; + void cpu1_spiker_map(address_map &map) ATTR_COLD; + void cpu1_shrike_map(address_map &map) ATTR_COLD; + void cpu1_smudge_map(address_map &map) ATTR_COLD; + void cpu1_triviamb_map(address_map &map) ATTR_COLD; + void cpu2_triviamb_io_map(address_map &map) ATTR_COLD; + void cpu2_triviamb_map(address_map &map) ATTR_COLD; + void shrike68k_map(address_map &map) ATTR_COLD; required_device m_scanline_timer; diff --git a/src/mame/midway/csd.h b/src/mame/midway/csd.h index 02b75018b72..e97d9faa45c 100644 --- a/src/mame/midway/csd.h +++ b/src/mame/midway/csd.h @@ -37,13 +37,13 @@ class midway_cheap_squeak_deluxe_device : public device_t, public device_mixer_i void sirq_w(int state); void reset_w(int state); - void csdeluxe_map(address_map &map); + void csdeluxe_map(address_map &map) ATTR_COLD; protected: // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; TIMER_CALLBACK_MEMBER(sync_pia); diff --git a/src/mame/midway/gridlee.h b/src/mame/midway/gridlee.h index 4929c0b551c..24c4c788d2a 100644 --- a/src/mame/midway/gridlee.h +++ b/src/mame/midway/gridlee.h @@ -60,11 +60,11 @@ class gridlee_state : public driver_device TIMER_CALLBACK_MEMBER(firq_timer_tick); void expand_pixels(); void poly17_init(); - void cpu1_map(address_map &map); + void cpu1_map(address_map &map) ATTR_COLD; - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; required_shared_ptr m_spriteram; required_shared_ptr m_videoram; @@ -98,7 +98,7 @@ class gridlee_sound_device : public device_t, public device_sound_interface protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // sound stream update overrides virtual void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; diff --git a/src/mame/midway/mcr.h b/src/mame/midway/mcr.h index 7bfd6a194f6..d58b64dd1aa 100644 --- a/src/mame/midway/mcr.h +++ b/src/mame/midway/mcr.h @@ -96,18 +96,18 @@ class mcr_state : public driver_device void mcr_90010_tt(machine_config &config); void mcr_91475(machine_config &config); void mcr_90010(machine_config &config); - void cpu_90009_map(address_map &map); - void cpu_90009_portmap(address_map &map); - void cpu_90009_dp_map(address_map &map); - void cpu_90009_dp_portmap(address_map &map); - void cpu_90010_map(address_map &map); - void cpu_90010_portmap(address_map &map); - void cpu_91490_map(address_map &map); - void cpu_91490_portmap(address_map &map); + void cpu_90009_map(address_map &map) ATTR_COLD; + void cpu_90009_portmap(address_map &map) ATTR_COLD; + void cpu_90009_dp_map(address_map &map) ATTR_COLD; + void cpu_90009_dp_portmap(address_map &map) ATTR_COLD; + void cpu_90010_map(address_map &map) ATTR_COLD; + void cpu_90010_portmap(address_map &map) ATTR_COLD; + void cpu_91490_map(address_map &map) ATTR_COLD; + void cpu_91490_portmap(address_map &map) ATTR_COLD; protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; TILE_GET_INFO_MEMBER(mcr_90009_get_tile_info); TILE_GET_INFO_MEMBER(mcr_90010_get_tile_info); @@ -213,10 +213,10 @@ class mcr_nflfoot_state : public mcr_state void init_nflfoot(); void mcr_91490_ipu(machine_config &config); - void ipu_91695_map(address_map &map); - void ipu_91695_portmap(address_map &map); + void ipu_91695_map(address_map &map) ATTR_COLD; + void ipu_91695_portmap(address_map &map) ATTR_COLD; protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: int m_ipu_sio_txda = 0; diff --git a/src/mame/midway/mcr3.h b/src/mame/midway/mcr3.h index 50080df6ae1..92edac82faf 100644 --- a/src/mame/midway/mcr3.h +++ b/src/mame/midway/mcr3.h @@ -66,13 +66,13 @@ class mcr3_state : public mcr_state uint32_t screen_update_mcr3(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); uint32_t screen_update_spyhunt(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void mcrmono_map(address_map &map); - void mcrmono_portmap(address_map &map); - void spyhunt_map(address_map &map); - void spyhunt_portmap(address_map &map); + void mcrmono_map(address_map &map) ATTR_COLD; + void mcrmono_portmap(address_map &map) ATTR_COLD; + void spyhunt_map(address_map &map) ATTR_COLD; + void spyhunt_portmap(address_map &map) ATTR_COLD; virtual void machine_start() override { m_lamps.resolve(); } - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; optional_shared_ptr m_spyhunt_alpharam; required_device m_screen; diff --git a/src/mame/midway/mcr68.cpp b/src/mame/midway/mcr68.cpp index 877eed52787..eed6c5308cd 100644 --- a/src/mame/midway/mcr68.cpp +++ b/src/mame/midway/mcr68.cpp @@ -114,9 +114,9 @@ class mcr68_state : public driver_device void init_archrivlb(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: optional_device m_sounds_good; @@ -164,9 +164,9 @@ class mcr68_state : public driver_device std::unique_ptr m_srcdata0; std::unique_ptr m_srcdata2; - void mcr68_map(address_map &map); - void pigskin_map(address_map &map); - void trisport_map(address_map &map); + void mcr68_map(address_map &map) ATTR_COLD; + void pigskin_map(address_map &map) ATTR_COLD; + void trisport_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/midway/midqslvr.cpp b/src/mame/midway/midqslvr.cpp index 85b29bb6ccc..7ce04e38434 100644 --- a/src/mame/midway/midqslvr.cpp +++ b/src/mame/midway/midqslvr.cpp @@ -320,7 +320,7 @@ class midway_quicksilver2_state : public driver_device // optional for debugging ... optional_device m_voodoo2; - void midqslvr_map(address_map &map); + void midqslvr_map(address_map &map) ATTR_COLD; static void superio_config(device_t *device); }; @@ -338,7 +338,7 @@ class midway_graphite_state : public driver_device private: required_device m_maincpu; - void graphite_map(address_map &map); + void graphite_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/midway/midtunit.h b/src/mame/midway/midtunit.h index c7fa9153a1b..943b9992f8b 100644 --- a/src/mame/midway/midtunit.h +++ b/src/mame/midway/midtunit.h @@ -34,13 +34,13 @@ class midtunit_base_state : public driver_device void tunit_core(machine_config &config); - void machine_start() override; + void machine_start() override ATTR_COLD; void cmos_enable_w(uint16_t data); void cmos_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); uint16_t cmos_r(offs_t offset); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_video; @@ -69,8 +69,8 @@ class midtunit_adpcm_state : public midtunit_base_state void init_jdreddp(); protected: - void machine_start() override; - void machine_reset() override; + void machine_start() override ATTR_COLD; + void machine_reset() override ATTR_COLD; private: uint16_t sound_state_r(); @@ -87,7 +87,7 @@ class midtunit_adpcm_state : public midtunit_base_state void init_nbajam_common(int te_protection); - void main_adpcm_map(address_map &map); + void main_adpcm_map(address_map &map) ATTR_COLD; required_device m_adpcm_sound; @@ -120,8 +120,8 @@ class mk2_state : public midtunit_base_state void init_mk2(); protected: - void machine_start() override; - void machine_reset() override; + void machine_start() override ATTR_COLD; + void machine_reset() override ATTR_COLD; private: uint16_t dcs_state_r(); @@ -133,7 +133,7 @@ class mk2_state : public midtunit_base_state uint16_t mk2_prot_shift_r(); void mk2_prot_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); - void mk2_map(address_map &map); + void mk2_map(address_map &map) ATTR_COLD; required_device m_dcs; diff --git a/src/mame/midway/midtunit_v.h b/src/mame/midway/midtunit_v.h index 67f3e63fafe..17e714a4614 100644 --- a/src/mame/midway/midtunit_v.h +++ b/src/mame/midway/midtunit_v.h @@ -63,7 +63,7 @@ class midtunit_video_device : public device_t // construction/destruction midtunit_video_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock = 0); - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; TIMER_CALLBACK_MEMBER(dma_done); @@ -148,8 +148,8 @@ class midtunit_video_device : public device_t devcb_write_line m_dma_irq_cb; #if DEBUG_MIDTUNIT_BLITTER - virtual void device_reset() override; - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_reset() override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; uint32_t debug_screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); @@ -200,7 +200,7 @@ class midwunit_video_device : public midtunit_video_device midwunit_video_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock = 0); #if DEBUG_MIDTUNIT_BLITTER - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; #endif }; @@ -223,7 +223,7 @@ class midxunit_video_device : public midwunit_video_device TMS340X0_SCANLINE_IND16_CB_MEMBER(scanline_update); protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; }; DECLARE_DEVICE_TYPE(MIDTUNIT_VIDEO, midtunit_video_device) diff --git a/src/mame/midway/midvunit.h b/src/mame/midway/midvunit.h index 65f93ee5acd..f7ee672bacd 100644 --- a/src/mame/midway/midvunit.h +++ b/src/mame/midway/midvunit.h @@ -80,9 +80,9 @@ class midvunit_base_state : public driver_device { } virtual void device_post_load() override; - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; void cmos_protect_w(uint32_t data); void dma_queue_w(uint32_t data); @@ -147,7 +147,7 @@ class midvunit_state : public midvunit_base_state , m_dsw(*this, "DSW") { } - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; uint32_t port0_r(); uint32_t adc_r(); @@ -164,7 +164,7 @@ class midvunit_state : public midvunit_base_state uint16_t comm_bus_out(); uint16_t comm_bus_in(); - void midvunit_map(address_map &map); + void midvunit_map(address_map &map) ATTR_COLD; required_device m_adc; @@ -226,7 +226,7 @@ class crusnwld_state : public midvunit_state void init_offroadc(); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; void crusnwld_control_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0); uint32_t crusnwld_serial_status_r(); @@ -236,8 +236,8 @@ class crusnwld_state : public midvunit_state void bit_reset_w(uint32_t data); void init_crusnwld_common(offs_t speedup); - void crusnwld_map(address_map &map); - void offroadc_map(address_map &map); + void crusnwld_map(address_map &map) ATTR_COLD; + void offroadc_map(address_map &map) ATTR_COLD; required_device m_midway_serial_pic2; @@ -260,15 +260,15 @@ class midvplus_state : public midvunit_base_state void init_wargods(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: uint32_t midvplus_misc_r(offs_t offset); void midvplus_misc_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0); void midvplus_xf1_w(uint8_t data); - void midvplus_map(address_map &map); + void midvplus_map(address_map &map) ATTR_COLD; required_device m_midway_ioasic; required_device m_ata; diff --git a/src/mame/midway/midway.h b/src/mame/midway/midway.h index 546bd3a97ec..146ae538b55 100644 --- a/src/mame/midway/midway.h +++ b/src/mame/midway/midway.h @@ -75,16 +75,16 @@ class midway_ssio_device : public device_t, void status_w(uint8_t data); uint8_t data_r(offs_t offset); - void ssio_map(address_map &map); - static void ssio_input_ports(address_map &map, const char *ssio); + void ssio_map(address_map &map) ATTR_COLD; + static void ssio_input_ports(address_map &map, const char *ssio) ATTR_COLD; protected: // device-level overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; - virtual void device_reset() override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; TIMER_CALLBACK_MEMBER(synced_write); @@ -138,12 +138,12 @@ class midway_sounds_good_device : public device_t, void write(uint8_t data); void reset_write(int state); - void soundsgood_map(address_map &map); + void soundsgood_map(address_map &map) ATTR_COLD; protected: // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; TIMER_CALLBACK_MEMBER(synced_write); @@ -179,12 +179,12 @@ class midway_turbo_cheap_squeak_device : public device_t, void write(uint8_t data); void reset_write(int state); - void turbocs_map(address_map &map); + void turbocs_map(address_map &map) ATTR_COLD; protected: // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; TIMER_CALLBACK_MEMBER(synced_write); diff --git a/src/mame/midway/midwayic.h b/src/mame/midway/midwayic.h index 835e2d27400..8584a372c04 100644 --- a/src/mame/midway/midwayic.h +++ b/src/mame/midway/midwayic.h @@ -35,9 +35,9 @@ class midway_serial_pic_device : public device_t midway_serial_pic_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 ioport_constructor device_input_ports() const override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; void generate_serial_data(int upper); void serial_register_state(); @@ -72,8 +72,8 @@ class midway_serial_pic_emu_device : public device_t midway_serial_pic_emu_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // device_t implementation - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; private: required_device m_pic; @@ -111,7 +111,7 @@ class midway_serial_pic2_device : public midway_serial_pic_device, public device midway_serial_pic2_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; // device_nvram_interface implementation virtual void nvram_default() override; @@ -197,7 +197,7 @@ class midway_ioasic_device : public midway_serial_pic2_device protected: // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: void ioasic_register_state(); diff --git a/src/mame/midway/midwunit.h b/src/mame/midway/midwunit.h index ed35c26f0eb..4fccc28a254 100644 --- a/src/mame/midway/midwunit.h +++ b/src/mame/midway/midwunit.h @@ -50,8 +50,8 @@ class midwunit_state : public driver_device void init_mk3r20(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: void cmos_enable_w(uint16_t data); @@ -68,7 +68,7 @@ class midwunit_state : public driver_device void wwfmania_io_0_w(uint16_t data); void init_mk3_common(); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_video; diff --git a/src/mame/midway/midxunit.h b/src/mame/midway/midxunit.h index fb88b009768..1a00ad850e1 100644 --- a/src/mame/midway/midxunit.h +++ b/src/mame/midway/midxunit.h @@ -39,8 +39,8 @@ class midxunit_state : public driver_device void midxunit(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: uint8_t cmos_r(offs_t offset); @@ -58,7 +58,7 @@ class midxunit_state : public driver_device uint32_t dma_r(offs_t offset, uint32_t mem_mask = ~0); void dma_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_video; diff --git a/src/mame/midway/midyunit.h b/src/mame/midway/midyunit.h index f8a429c04a3..df40bf521b3 100644 --- a/src/mame/midway/midyunit.h +++ b/src/mame/midway/midyunit.h @@ -36,8 +36,8 @@ class midyunit_base_state : public driver_device { } - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; // protection data types struct protection_data @@ -111,7 +111,7 @@ class midyunit_base_state : public driver_device void init_gfxrom(int bpp); void install_hidden_ram(mc6809e_device &cpu, int prot_start, int prot_end); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; void yunit_core(machine_config &config); void yunit_4bpp(machine_config &config); @@ -135,15 +135,15 @@ class midzunit_state : public midyunit_base_state ioport_value narc_talkback_data_r(); protected: - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_narc_sound; void narc_sound_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); - void zunit_main_map(address_map &map); + void zunit_main_map(address_map &map) ATTR_COLD; }; class midyunit_cvsd_state : public midyunit_base_state @@ -166,7 +166,7 @@ class midyunit_cvsd_state : public midyunit_base_state void init_trog(); protected: - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; required_device m_cvsd_sound; @@ -177,7 +177,7 @@ class midyunit_cvsd_state : public midyunit_base_state void init_generic(int bpp, int sound, int prot_start, int prot_end); - void cvsd_main_map(address_map &map); + void cvsd_main_map(address_map &map) ATTR_COLD; void yunit_cvsd_core(machine_config &config); }; @@ -202,7 +202,7 @@ class midyunit_adpcm_state : public midyunit_base_state int adpcm_irq_state_r(); protected: - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; required_device m_adpcm_sound; @@ -211,7 +211,7 @@ class midyunit_adpcm_state : public midyunit_base_state void init_generic(int bpp, int prot_start, int prot_end); - void adpcm_main_map(address_map &map); + void adpcm_main_map(address_map &map) ATTR_COLD; void yunit_adpcm_core(machine_config &config); }; @@ -241,7 +241,7 @@ class term2_state : public midyunit_adpcm_state void init_term2la3(); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_adc; @@ -265,7 +265,7 @@ class term2_state : public midyunit_adpcm_state void term2la1_hack_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); void term2_init_common(write16s_delegate hack_w); - void term2_main_map(address_map &map); + void term2_main_map(address_map &map) ATTR_COLD; }; class mkyawdim_state : public midyunit_base_state @@ -285,7 +285,7 @@ class mkyawdim_state : public midyunit_base_state void init_mkyawdim(); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: required_device m_audiocpu; @@ -297,10 +297,10 @@ class mkyawdim_state : public midyunit_base_state void yawdim_sound_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); void yawdim2_sound_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); - void yawdim_main_map(address_map &map); - void yawdim2_main_map(address_map &map); - void yawdim_sound_map(address_map &map); - void yawdim2_sound_map(address_map &map); + void yawdim_main_map(address_map &map) ATTR_COLD; + void yawdim2_main_map(address_map &map) ATTR_COLD; + void yawdim_sound_map(address_map &map) ATTR_COLD; + void yawdim2_sound_map(address_map &map) ATTR_COLD; }; #endif // MAME_MIDWAY_MIDYUNIT_H diff --git a/src/mame/midway/midzeus.cpp b/src/mame/midway/midzeus.cpp index 9145de24fd1..92771732332 100644 --- a/src/mame/midway/midzeus.cpp +++ b/src/mame/midway/midzeus.cpp @@ -111,7 +111,7 @@ class midzeus2_state : public midzeus_state void update_firewire_irq(); - void zeus2_map(address_map &map); + void zeus2_map(address_map &map) ATTR_COLD; void midzeus2(machine_config &config); uint32_t m_disk_asic[0x10]{}; @@ -162,7 +162,7 @@ class crusnexo_state : public midzeus2_state uint32_t analog_r(offs_t offset); void analog_w(uint32_t data); - void crusnexo_map(address_map &map); + void crusnexo_map(address_map &map) ATTR_COLD; uint8_t m_keypad_select = 0; uint8_t m_crusnexo_leds_select = 0; @@ -192,7 +192,7 @@ class thegrid_state : public midzeus2_state uint32_t trackball_r(offs_t offset); uint32_t grid_keypad_r(offs_t offset); - void thegrid_map(address_map &map); + void thegrid_map(address_map &map) ATTR_COLD; required_ioport m_io_49way_x; required_ioport m_io_49way_y; diff --git a/src/mame/midway/midzeus.h b/src/mame/midway/midzeus.h index c523866294b..72da2c75fa8 100644 --- a/src/mame/midway/midzeus.h +++ b/src/mame/midway/midzeus.h @@ -87,9 +87,9 @@ class midzeus_state : public driver_device optional_shared_ptr m_zeusbase; protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; void cmos_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0); uint32_t cmos_r(offs_t offset); @@ -105,7 +105,7 @@ class midzeus_state : public driver_device INTERRUPT_GEN_MEMBER(display_irq); TIMER_CALLBACK_MEMBER(display_irq_off); - void zeus_map(address_map &map); + void zeus_map(address_map &map) ATTR_COLD; void midzeus(machine_config &config); emu_timer * m_display_irq_off_timer = nullptr; @@ -180,7 +180,7 @@ class invasnab_state : public midzeus_state void invasn(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: void invasn_gun_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0); @@ -189,7 +189,7 @@ class invasnab_state : public midzeus_state void update_gun_irq(); TIMER_CALLBACK_MEMBER(invasn_gun_callback); - void invasnab_map(address_map &map); + void invasnab_map(address_map &map) ATTR_COLD; uint32_t m_gun_control = 0; uint8_t m_gun_irq_state = 0; diff --git a/src/mame/midway/mw18w.cpp b/src/mame/midway/mw18w.cpp index 228270f9f19..3fea03080d5 100644 --- a/src/mame/midway/mw18w.cpp +++ b/src/mame/midway/mw18w.cpp @@ -45,8 +45,8 @@ class mw18w_state : public driver_device void mw18w_lamps_w(uint8_t data); void mw18w_led_display_w(uint8_t data); void mw18w_irq0_clear_w(uint8_t data); - void mw18w_map(address_map &map); - void mw18w_portmap(address_map &map); + void mw18w_map(address_map &map) ATTR_COLD; + void mw18w_portmap(address_map &map) ATTR_COLD; virtual void machine_start() override { m_digits.resolve(); m_lamps.resolve(); } required_device m_maincpu; diff --git a/src/mame/midway/mwsub.cpp b/src/mame/midway/mwsub.cpp index 1da286f4ea2..8f536ed6a06 100644 --- a/src/mame/midway/mwsub.cpp +++ b/src/mame/midway/mwsub.cpp @@ -35,7 +35,7 @@ class submar_state : public driver_device void submar(machine_config &config); private: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; uint8_t submar_sensor0_r(); uint8_t submar_sensor1_r(); @@ -46,8 +46,8 @@ class submar_state : public driver_device void submar_led_w(offs_t offset, uint8_t data); void submar_irq_clear_w(uint8_t data); - void submar_map(address_map &map); - void submar_portmap(address_map &map); + void submar_map(address_map &map) ATTR_COLD; + void submar_portmap(address_map &map) ATTR_COLD; required_device m_maincpu; output_finder<8> m_motors; diff --git a/src/mame/midway/omegrace.cpp b/src/mame/midway/omegrace.cpp index b92341b46a0..8db6f0aad9e 100644 --- a/src/mame/midway/omegrace.cpp +++ b/src/mame/midway/omegrace.cpp @@ -249,8 +249,8 @@ class omegrace_state : public driver_device void init_omegrace(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; @@ -260,10 +260,10 @@ class omegrace_state : public driver_device output_finder<4> m_leds; required_ioport_array<2> m_spinner; - void main_map(address_map &map); - void port_map(address_map &map); - void sound_map(address_map &map); - void sound_port(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void port_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; + void sound_port(address_map &map) ATTR_COLD; TIMER_CALLBACK_MEMBER(periodic_int); uint8_t vg_go_r(); diff --git a/src/mame/midway/pinball2k.cpp b/src/mame/midway/pinball2k.cpp index ff0d90ee0f2..88ab27ca89a 100644 --- a/src/mame/midway/pinball2k.cpp +++ b/src/mame/midway/pinball2k.cpp @@ -69,9 +69,9 @@ class pinball2k_state : public pcat_base_state void init_pinball2k(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_shared_ptr m_main_ram; @@ -127,9 +127,9 @@ class pinball2k_state : public pcat_base_state void draw_char(bitmap_rgb32 &bitmap, const rectangle &cliprect, gfx_element *gfx, int ch, int att, int x, int y); void draw_framebuffer(bitmap_rgb32 &bitmap, const rectangle &cliprect); void draw_cga(bitmap_rgb32 &bitmap, const rectangle &cliprect); - void mediagx_io(address_map &map); - void mediagx_map(address_map &map); - void ramdac_map(address_map &map); + void mediagx_io(address_map &map) ATTR_COLD; + void mediagx_map(address_map &map) ATTR_COLD; + void ramdac_map(address_map &map) ATTR_COLD; uint32_t cx5510_pci_r(int function, int reg, uint32_t mem_mask); void cx5510_pci_w(int function, int reg, uint32_t data, uint32_t mem_mask); diff --git a/src/mame/midway/seattle.cpp b/src/mame/midway/seattle.cpp index b0f7121e862..9a58773e60b 100644 --- a/src/mame/midway/seattle.cpp +++ b/src/mame/midway/seattle.cpp @@ -335,8 +335,8 @@ class seattle_state : public driver_device ioport_value gearshift_r(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_nvram; @@ -438,13 +438,13 @@ class seattle_state : public driver_device void update_widget_irq(); void init_common(int config); - void seattle_cs0_map(address_map &map); - void seattle_cs1_map(address_map &map); - void seattle_cs2_map(address_map &map); - void seattle_cs3_map(address_map &map); - void widget_cs3_map(address_map &map); - void carnevil_cs3_map(address_map &map); - void flagstaff_cs3_map(address_map &map); + void seattle_cs0_map(address_map &map) ATTR_COLD; + void seattle_cs1_map(address_map &map) ATTR_COLD; + void seattle_cs2_map(address_map &map) ATTR_COLD; + void seattle_cs3_map(address_map &map) ATTR_COLD; + void widget_cs3_map(address_map &map) ATTR_COLD; + void carnevil_cs3_map(address_map &map) ATTR_COLD; + void flagstaff_cs3_map(address_map &map) ATTR_COLD; static void hdd_config(device_t *device); }; diff --git a/src/mame/midway/sente6vb.h b/src/mame/midway/sente6vb.h index 7dea91a07ff..af14d3d2270 100644 --- a/src/mame/midway/sente6vb.h +++ b/src/mame/midway/sente6vb.h @@ -34,10 +34,10 @@ class sente6vb_device : public device_t void rec_w(int state); protected: - virtual void device_add_mconfig(machine_config &config) override; - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: uint8_t counter_state_r(); @@ -52,8 +52,8 @@ class sente6vb_device : public device_t TIMER_DEVICE_CALLBACK_MEMBER(clock_counter_0_ff); void set_counter_0_ff(int state); - void mem_map(address_map &map); - void io_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; required_device m_pit; required_device m_counter_0_timer; diff --git a/src/mame/midway/spyhuntertec.cpp b/src/mame/midway/spyhuntertec.cpp index a8da13b7afc..84eee20eac7 100644 --- a/src/mame/midway/spyhuntertec.cpp +++ b/src/mame/midway/spyhuntertec.cpp @@ -57,9 +57,9 @@ class spyhuntertec_state : public driver_device void init_spyhuntertec(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -119,10 +119,10 @@ class spyhuntertec_state : public driver_device uint8_t m_analog_select = 0; uint8_t m_analog_count = 0; - void spyhuntertec_map(address_map &map); - void spyhuntertec_portmap(address_map &map); - void spyhuntertec_sound_map(address_map &map); - void spyhuntertec_sound_portmap(address_map &map); + void spyhuntertec_map(address_map &map) ATTR_COLD; + void spyhuntertec_portmap(address_map &map) ATTR_COLD; + void spyhuntertec_sound_map(address_map &map) ATTR_COLD; + void spyhuntertec_sound_portmap(address_map &map) ATTR_COLD; }; void spyhuntertec_state::ay1_porta_w(uint8_t data) diff --git a/src/mame/midway/sspeedr.h b/src/mame/midway/sspeedr.h index 5a2a636f008..561956677da 100644 --- a/src/mame/midway/sspeedr.h +++ b/src/mame/midway/sspeedr.h @@ -36,8 +36,8 @@ class sspeedr_state : public driver_device void sspeedr(machine_config &config); protected: - virtual void video_start() override; - virtual void machine_start() override; + virtual void video_start() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; private: void int_ack_w(uint8_t data); @@ -61,8 +61,8 @@ class sspeedr_state : public driver_device void palette(palette_device &palette) const; uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void screen_vblank(int state); - void io_map(address_map &map); - void prg_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void prg_map(address_map &map) ATTR_COLD; uint8_t m_led_time[2]{}; uint8_t m_led_score[24]{}; diff --git a/src/mame/midway/starrider.cpp b/src/mame/midway/starrider.cpp index 31785f85dcc..0ff3ed5cfa6 100644 --- a/src/mame/midway/starrider.cpp +++ b/src/mame/midway/starrider.cpp @@ -345,10 +345,10 @@ class sr_state : public driver_device template void sound_fifo_or(int state); template void sound_fifo_flag(int state); - void main_memory(address_map &map); - void main_banks(address_map &map); - void pif_memory(address_map &map); - void sound_memory(address_map &map); + void main_memory(address_map &map) ATTR_COLD; + void main_banks(address_map &map) ATTR_COLD; + void pif_memory(address_map &map) ATTR_COLD; + void sound_memory(address_map &map) ATTR_COLD; required_device m_main_cpu; required_device m_main_pia1; @@ -1012,10 +1012,103 @@ ROM_START(starridr) DISK_IMAGE_READONLY( "starrider", 0, NO_DUMP ) ROM_END +ROM_START(starridrp3) + // TODO: ROM labels are illegible in photos + ROM_REGION(0x2000, "fixed", 0) + ROM_LOAD("rom_35p3.u52", 0x0000, 0x2000, CRC(5ac61ca1) SHA1(027a20cff95d9d444ead5fe7ca9823fc0c1aeff3)) + + ROM_REGION(0x1'2000, "banked", 0) + ROM_LOAD("rom_30p3.u8", 0x0'0000, 0x4000, CRC(ad9a3a2e) SHA1(95fcf776e6410a7f8081622f0176e5f17732b975)) + ROM_LOAD("rom_31p3.u15", 0x0'4000, 0x4000, CRC(5ce07944) SHA1(edf98693d880ccebeb770f9e093a67392589ba35)) + ROM_LOAD("rom_32p3.u26", 0x0'8000, 0x4000, CRC(f31f2faa) SHA1(61413681a308dd0cb2c2d0c70181c15fc9a31403)) + // 0xc000 U37 unpopulated + ROM_LOAD("rom_34p3.u45", 0x1'0000, 0x2000, CRC(6521c9bc) SHA1(2273d9efe12a6a6d40c14ffb39c32ae1d2296956)) + + ROM_REGION(0x1000, "pif", 0) + ROM_LOAD("rom_26.u3", 0x0000, 0x1000, CRC(2afef78c) SHA1(467d9441927ded3b6dceb9da10917620dfb58a3c)) + + ROM_REGION(0x1'0000, "snd", 0) + // 0x0000 U8 unpopulated + // 0x4000 U9 unpopulated + // 0x8000 U10 unpopulated + // 0xc000 space for RAM and I/O + ROM_LOAD("rom_27.u11", 0xe000, 0x2000, CRC(ffacb56d) SHA1(e6f7984e014a5ace50b0b1428a386ae645b972f5)) + + ROM_REGION(0x10'0000, "gfx", 0) + ROM_LOAD("rom_1.u4", 0x0'0000, 0x4000, CRC(9655db83) SHA1(50406ea8a4e20dbc7d4ff3ca60d41d142e3d593e)) + ROM_LOAD("rom_2.u19", 0x0'4000, 0x4000, CRC(8903afe2) SHA1(dce09ab66ad96422e426b8f0eb7bedaad1596be2)) + ROM_LOAD("rom_3.u5", 0x0'8000, 0x4000, CRC(ac1bdd83) SHA1(a635714d814fea7728e3d62003069873d00536b2)) + ROM_LOAD("rom_4.u20", 0x0'c000, 0x4000, CRC(3bef2dc3) SHA1(60e8c794d706ea6ef7b4c25f11fd9850f992bafd)) + ROM_LOAD("rom_5.u6", 0x1'0000, 0x4000, CRC(18470b9c) SHA1(5cf7bbf8c1dfeff9ee570b86d7d02bf7126ad01f)) + ROM_LOAD("rom_6.u21", 0x1'4000, 0x4000, CRC(3d345e8b) SHA1(77a1faa1b2e48bc51b20b3015007d399f72c5fc9)) + ROM_LOAD("rom_7.u7", 0x1'8000, 0x4000, CRC(c2f624db) SHA1(f57c6c16a7cf5a03cb1bee7fba841d70fe6a25d9)) + ROM_LOAD("rom_8.u22", 0x1'c000, 0x4000, CRC(089cc4dd) SHA1(ef15cf517da6ffae9e1063f3fda854ad2ef16e66)) + ROM_LOAD("rom_9.u8", 0x2'0000, 0x4000, CRC(360938be) SHA1(632194a3d398a7f670bfb05f58c1afd8c17ec288)) + ROM_LOAD("rom_10.u23", 0x2'4000, 0x4000, CRC(2fc10697) SHA1(205476c13348140a92254d0998d740f18bff7187)) + ROM_LOAD("rom_11.u9", 0x2'8000, 0x4000, CRC(665a4b07) SHA1(3c57839f65070e2b63b33eaa833370203993dc51)) + ROM_LOAD("rom_12.u24", 0x2'c000, 0x4000, CRC(e117c9b3) SHA1(0500e6723b973ab672f4479bf1ce45579ef9a9f2)) + ROM_LOAD("rom_13.u10", 0x3'0000, 0x4000, CRC(3e8cdea4) SHA1(554ddd87d5a5de1b04b81ca6a730682d90f334a1)) + ROM_LOAD("rom_14.u25", 0x3'4000, 0x4000, CRC(d8260022) SHA1(6eb60d512f6bee3a74950145ab52a6c8bb7054c4)) + ROM_LOAD("rom_15.u11", 0x3'8000, 0x4000, CRC(bac9b2b4) SHA1(0700debb88f7e001c78407f69d804c4340d602e2)) + ROM_LOAD("rom_16.u26", 0x3'c000, 0x4000, CRC(111e2f28) SHA1(96904f08d66fed87fcfc0c59be50546f42e27687)) + ROM_LOAD("rom_17.u12", 0x4'0000, 0x4000, CRC(eb5f96dd) SHA1(2ccd3b1ea12e201306707d8ed95c000c06766b48)) + ROM_LOAD("rom_18.u27", 0x4'4000, 0x4000, CRC(b87eeeee) SHA1(37d6c360c7557d28bb7cc109ac6617569d7afb18)) + ROM_LOAD("rom_19.u13", 0x4'8000, 0x4000, CRC(67ffe21b) SHA1(ebfc8f963e852cf5adb14f7f76f60fd738ddbc18)) + // 0x4'c000 U28 unpopulated + // 0x5'0000 U14 unpopulated + // 0x5'4000 U29 unpopulated + // 0x5'8000 U15 unpopulated + // 0x5'c000 U30 unpopulated + // 0x6'0000 U33 unpopulated + // 0x6'4000 U47 unpopulated + // 0x6'8000 U34 unpopulated + // 0x6'c000 U48 unpopulated + // 0x7'0000 U35 unpopulated + // 0x7'4000 U49 unpopulated + // 0x7'8000 U36 unpopulated + // 0x7'c000 U50 unpopulated + // 0x8'0000 U37 unpopulated + // 0x8'4000 U51 unpopulated + // 0x8'8000 U38 unpopulated + // 0x8'c000 U52 unpopulated + // 0x9'0000 U39 unpopulated + // 0x9'4000 U53 unpopulated + // 0x9'8000 U40 unpopulated + // 0x9'c000 U54 unpopulated + // 0xa'0000 U41 unpopulated + // 0xa'4000 U55 unpopulated + // 0xa'8000 U42 unpopulated + // 0xa'c000 U56 unpopulated + // 0xb'0000 U43 unpopulated + // 0xb'4000 U57 unpopulated + // 0xb'8000 U44 unpopulated + // 0xb'c000 U58 unpopulated + ROM_LOAD("rom_25.u46", 0xe'4000, 0x2000, CRC(2812097e) SHA1(793ed5ec8b1d1689e856fc2008f46faf963f5045)) + ROM_RELOAD(0xe'6000, 0x2000) + + ROM_REGION(0x4000, "text", 0) + ROM_LOAD("rom_25.u46", 0x0000, 0x2000, CRC(2812097e) SHA1(793ed5ec8b1d1689e856fc2008f46faf963f5045)) + ROM_RELOAD(0x2000, 0x2000) + + ROM_REGION(0x20, "clkgen", 0) + ROM_LOAD("u114.82s123", 0x00, 0x20, CRC(27a6d555) SHA1(988d55092d7d0243a867986873dfd12be67280c7)) + + ROM_REGION(0x400, "color", 0) + ROMX_LOAD("u10.82s137", 0x000, 0x400, CRC(917e35ca) SHA1(676e2d211c81dbbf911f99a672eac1fd29553a2b), ROM_NIBBLE | ROM_SHIFT_NIBBLE_LO) + ROMX_LOAD("u11.82s137", 0x000, 0x400, CRC(917e35ca) SHA1(676e2d211c81dbbf911f99a672eac1fd29553a2b), ROM_NIBBLE | ROM_SHIFT_NIBBLE_HI) + + ROM_REGION(0x200, "horz", 0) + ROM_LOAD("u74.6349", 0x000, 0x200, CRC(362ec0f9) SHA1(0304a36d038436e9f5e817dfc2c40b6421953cad)) + + DISK_REGION( "ld_pr8210a" ) + DISK_IMAGE_READONLY( "starrider", 0, NO_DUMP ) +ROM_END + } // anonymous namespace /*********************************************************************** Machine definitions ***********************************************************************/ -GAME( 1984, starridr, 0, starrider, starrider, sr_state, empty_init, ROT0, "Williams", "Star Rider", MACHINE_IS_SKELETON ) +GAME( 1984, starridr, 0, starrider, starrider, sr_state, empty_init, ROT0, "Williams", "Star Rider (REV 1)", MACHINE_IS_SKELETON ) +GAME( 1984, starridrp3, starridr, starrider, starrider, sr_state, empty_init, ROT0, "Williams", "Star Rider (PROTO 3)", MACHINE_IS_SKELETON ) diff --git a/src/mame/midway/tmaster.cpp b/src/mame/midway/tmaster.cpp index 9ea1556ba2c..9e3e47cb007 100644 --- a/src/mame/midway/tmaster.cpp +++ b/src/mame/midway/tmaster.cpp @@ -149,8 +149,8 @@ class tmaster_state : public driver_device uint16_t rtc_r(offs_t offset); void rtc_w(offs_t offset, uint16_t data); - void tmaster_map(address_map &map); - void cpu_space_map(address_map &map); + void tmaster_map(address_map &map) ATTR_COLD; + void cpu_space_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_screen; diff --git a/src/mame/midway/vegas.cpp b/src/mame/midway/vegas.cpp index 9ce517e0fc3..538bad6d541 100644 --- a/src/mame/midway/vegas.cpp +++ b/src/mame/midway/vegas.cpp @@ -387,8 +387,8 @@ class vegas_state : public driver_device ioport_value gearshift_r(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: static constexpr unsigned SYSTEM_CLOCK = 100000000; @@ -468,13 +468,13 @@ class vegas_state : public driver_device std::string sioIRQString(uint8_t data); - void vegas_cs2_map(address_map &map); - void vegas_cs3_map(address_map &map); - void vegas_cs4_map(address_map &map); - void vegas_cs5_map(address_map &map); - void vegas_cs6_map(address_map &map); - void vegas_cs7_map(address_map &map); - void vegas_cs8_map(address_map &map); + void vegas_cs2_map(address_map &map) ATTR_COLD; + void vegas_cs3_map(address_map &map) ATTR_COLD; + void vegas_cs4_map(address_map &map) ATTR_COLD; + void vegas_cs5_map(address_map &map) ATTR_COLD; + void vegas_cs6_map(address_map &map) ATTR_COLD; + void vegas_cs7_map(address_map &map) ATTR_COLD; + void vegas_cs8_map(address_map &map) ATTR_COLD; static void hdd_config(device_t *device); }; diff --git a/src/mame/midway/williams.h b/src/mame/midway/williams.h index 80fdfda2d34..1df94ba3a90 100644 --- a/src/mame/midway/williams.h +++ b/src/mame/midway/williams.h @@ -119,8 +119,8 @@ class williams_state : public driver_device const uint8_t *m_blitter_remap; std::unique_ptr m_blitter_remap_lookup; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; u8 port_0_49way_r(); void vram_select_w(u8 data); @@ -142,13 +142,13 @@ class williams_state : public driver_device void williams_base(machine_config &config); void williams_muxed(machine_config &config); - void main_map(address_map &map); - void bubbles_main_map(address_map &map); - void sinistar_main_map(address_map &map); - void spdball_main_map(address_map &map); - void alienar_main_map(address_map &map); - virtual void sound_map(address_map &map); - void sound2_map(address_map &map); // for Blaster and Sinistar cockpit + void main_map(address_map &map) ATTR_COLD; + void bubbles_main_map(address_map &map) ATTR_COLD; + void sinistar_main_map(address_map &map) ATTR_COLD; + void spdball_main_map(address_map &map) ATTR_COLD; + void alienar_main_map(address_map &map) ATTR_COLD; + virtual void sound_map(address_map &map) ATTR_COLD; + void sound2_map(address_map &map) ATTR_COLD; // for Blaster and Sinistar cockpit }; // Defender @@ -166,12 +166,12 @@ class defender_state : public williams_state void init_defndjeu(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; - void defender_main_map(address_map &map); - void defender_sound_map(address_map &map); - void defender_sound_map_6802(address_map &map); + void defender_main_map(address_map &map) ATTR_COLD; + void defender_sound_map(address_map &map) ATTR_COLD; + void defender_sound_map_6802(address_map &map) ATTR_COLD; private: void video_control_w(u8 data); @@ -189,7 +189,7 @@ class mayday_state : public defender_state void mayday(machine_config &config); private: - void mayday_main_map(address_map &map); + void mayday_main_map(address_map &map) ATTR_COLD; u8 protection_r(offs_t offset); }; @@ -224,9 +224,9 @@ class blaster_state : public williams_state void blaster(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_muxa; @@ -244,7 +244,7 @@ class blaster_state : public williams_state virtual uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect) override; - void blaster_main_map(address_map &map); + void blaster_main_map(address_map &map) ATTR_COLD; }; // base Williams 2nd gen hardware @@ -287,9 +287,9 @@ class williams2_state : public williams_state void williams2_base(machine_config &config); - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; virtual u8 video_counter_r() override; @@ -314,10 +314,10 @@ class williams2_state : public williams_state virtual uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect) override; - void common_map(address_map &map); - void d000_rom_map(address_map &map); - void d000_ram_map(address_map &map); - virtual void sound_map(address_map &map) override; + void common_map(address_map &map) ATTR_COLD; + void d000_rom_map(address_map &map) ATTR_COLD; + void d000_ram_map(address_map &map) ATTR_COLD; + virtual void sound_map(address_map &map) override ATTR_COLD; void video_control_w(u8 data); }; @@ -337,7 +337,7 @@ class mysticm_state : public williams2_state void mysticm(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; virtual uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect) override; @@ -369,7 +369,7 @@ class tshoot_state : public williams2_state template ioport_value gun_r(); private: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; void maxvol_w(int state); void lamp_w(u8 data); @@ -395,7 +395,7 @@ class joust2_state : public williams2_state void joust2(machine_config &config); private: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; required_device m_mux; required_device m_bg; diff --git a/src/mame/midway/wmg.cpp b/src/mame/midway/wmg.cpp index 43baeccf5f2..da372d0612d 100644 --- a/src/mame/midway/wmg.cpp +++ b/src/mame/midway/wmg.cpp @@ -100,8 +100,8 @@ class wmg_state : public williams_state template ioport_value wmg_mux_r(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: memory_share_creator m_p_ram; @@ -123,9 +123,9 @@ class wmg_state : public williams_state void wmg_sound_reset_w(u8 data); void wmg_vram_select_w(u8 data); - void wmg_cpu1(address_map &map); - void wmg_cpu2(address_map &map); - void wmg_banked_map(address_map &map); + void wmg_cpu1(address_map &map) ATTR_COLD; + void wmg_cpu2(address_map &map) ATTR_COLD; + void wmg_banked_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/midway/zwackery.cpp b/src/mame/midway/zwackery.cpp index 2b9b1fdd991..1114ce0f02c 100644 --- a/src/mame/midway/zwackery.cpp +++ b/src/mame/midway/zwackery.cpp @@ -60,7 +60,7 @@ class zwackery_state : public driver_device void zwackery(machine_config &config); private: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; void scanline_cb(uint32_t data); void videoram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); uint8_t spriteram_r(offs_t offset); @@ -77,9 +77,9 @@ class zwackery_state : public driver_device uint8_t ptm_r(offs_t offset); - void zwackery_map(address_map &map); + void zwackery_map(address_map &map) ATTR_COLD; - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; required_device m_maincpu; required_device m_pia0; diff --git a/src/mame/miltonbradley/microvsn.cpp b/src/mame/miltonbradley/microvsn.cpp index 94ae4ff2fc4..1aff60e3444 100644 --- a/src/mame/miltonbradley/microvsn.cpp +++ b/src/mame/miltonbradley/microvsn.cpp @@ -68,7 +68,7 @@ class microvision_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(conf_changed) { apply_settings(); } protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; virtual void machine_reset() override { apply_settings(); } virtual void device_post_load() override { apply_settings(); } diff --git a/src/mame/miltonbradley/milton6805.cpp b/src/mame/miltonbradley/milton6805.cpp index a7833acefba..db0ec31f70a 100644 --- a/src/mame/miltonbradley/milton6805.cpp +++ b/src/mame/miltonbradley/milton6805.cpp @@ -47,7 +47,7 @@ class milton_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(volume_changed); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_maincpu; @@ -85,7 +85,7 @@ class milton_filter_device : public device_t, public device_sound_interface milton_filter_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 0); protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; private: diff --git a/src/mame/miltonbradley/vectrex.h b/src/mame/miltonbradley/vectrex.h index 6a4ec754945..8a90bb3a1f2 100644 --- a/src/mame/miltonbradley/vectrex.h +++ b/src/mame/miltonbradley/vectrex.h @@ -50,7 +50,7 @@ class vectrex_base_state : public driver_device uint8_t via_r(offs_t offset); void via_w(offs_t offset, uint8_t data); virtual void driver_start() override; - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); TIMER_CALLBACK_MEMBER(imager_change_color); TIMER_CALLBACK_MEMBER(update_level); @@ -162,11 +162,11 @@ class vectrex_state : public vectrex_base_state void vectrex(machine_config &config); protected: - virtual void video_start() override; - virtual void machine_start() override; + virtual void video_start() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; private: - void vectrex_map(address_map &map); + void vectrex_map(address_map &map) ATTR_COLD; }; @@ -184,7 +184,7 @@ class raaspec_state : public vectrex_base_state void raaspec_led_w(uint8_t data); uint8_t s1_via_pb_r(); - void raaspec_map(address_map &map); + void raaspec_map(address_map &map) ATTR_COLD; required_ioport m_io_coin; }; diff --git a/src/mame/mips/mips.cpp b/src/mame/mips/mips.cpp index ce784669911..8bcaa58f9f3 100644 --- a/src/mame/mips/mips.cpp +++ b/src/mame/mips/mips.cpp @@ -283,15 +283,15 @@ class rx2030_state : public driver_device protected: // driver_device overrides - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; // address maps - void rx2030_map(address_map &map); - void rs2030_map(address_map &map); + void rx2030_map(address_map &map) ATTR_COLD; + void rs2030_map(address_map &map) ATTR_COLD; - void iop_program_map(address_map &map); - void iop_io_map(address_map &map); + void iop_program_map(address_map &map) ATTR_COLD; + void iop_io_map(address_map &map) ATTR_COLD; u16 mmu_r(offs_t offset, u16 mem_mask = 0xffff); void mmu_w(offs_t offset, u16 data, u16 mem_mask = 0xffff); @@ -376,12 +376,12 @@ class rx3230_state : public driver_device protected: // driver_device overrides - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; // address maps - void rx3230_map(address_map &map); - void rs3230_map(address_map &map); + void rx3230_map(address_map &map) ATTR_COLD; + void rs3230_map(address_map &map) ATTR_COLD; u32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, rectangle const &cliprect); diff --git a/src/mame/mips/mips_rambo.h b/src/mame/mips/mips_rambo.h index dabcca87c12..16246eca74d 100644 --- a/src/mame/mips/mips_rambo.h +++ b/src/mame/mips/mips_rambo.h @@ -27,13 +27,13 @@ class mips_rambo_device : public device_t // input lines template void drq_w(int state); - void map(address_map &map); + void map(address_map &map) ATTR_COLD; u32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); protected: // device_t 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; template u32 load_address_r() { return m_channel[Channel].load_address; } template u32 diag_r() { return 0; } diff --git a/src/mame/misc/39in1.cpp b/src/mame/misc/39in1.cpp index 8afb5a3f9fd..ae277abca20 100644 --- a/src/mame/misc/39in1.cpp +++ b/src/mame/misc/39in1.cpp @@ -88,7 +88,7 @@ class _39in1_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(set_hiscore_dip); protected: - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; private: u32 m_seed; @@ -107,8 +107,8 @@ class _39in1_state : public driver_device void cpld_w(offs_t offset, u32 data, u32 mem_mask = ~0); u32 prot_cheater_r(); - void _39in1_map(address_map &map); - void base_map(address_map &map); + void _39in1_map(address_map &map) ATTR_COLD; + void base_map(address_map &map) ATTR_COLD; void decrypt(u8 xor00, u8 xor02, u8 xor04, u8 xor08, u8 xor10, u8 xor20, u8 xor40, u8 xor80, u8 bit7, u8 bit6, u8 bit5, u8 bit4, u8 bit3, u8 bit2, u8 bit1, u8 bit0); void further_decrypt(u8 xor400, u8 xor800, u8 xor1000, u8 xor2000, u8 xor4000, u8 xor8000); diff --git a/src/mame/misc/3do.h b/src/mame/misc/3do.h index c255e0a7703..ff11b4cf4d4 100644 --- a/src/mame/misc/3do.h +++ b/src/mame/misc/3do.h @@ -30,9 +30,9 @@ class _3do_state : public driver_device void _3do_pal(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: struct SLOW2 { @@ -188,7 +188,7 @@ class _3do_state : public driver_device TIMER_DEVICE_CALLBACK_MEMBER( timer_x16_cb ); - void main_mem(address_map &map); + void main_mem(address_map &map) ATTR_COLD; void m_slow2_init( void ); void m_madam_init( void ); diff --git a/src/mame/misc/4enlinea.cpp b/src/mame/misc/4enlinea.cpp index ce5085e0302..a8acef835ef 100644 --- a/src/mame/misc/4enlinea.cpp +++ b/src/mame/misc/4enlinea.cpp @@ -255,17 +255,17 @@ class _4enlinea_state : public driver_device uint8_t m_serial_flags = 0; uint8_t m_serial_data[2]{}; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; required_device m_maincpu; required_device m_eeprom; - void audio_map(address_map &map); - void main_map(address_map &map); - void main_portmap(address_map &map); + void audio_map(address_map &map) ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; + void main_portmap(address_map &map) ATTR_COLD; - void k7_mem_map(address_map &map); - void k7_io_map(address_map &map); + void k7_mem_map(address_map &map) ATTR_COLD; + void k7_io_map(address_map &map) ATTR_COLD; }; @@ -284,8 +284,8 @@ class isa8_cga_4enlinea_device : public isa8_cga_device void _4enlinea_mode_control_w(uint8_t data); protected: - 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; }; const tiny_rom_entry *isa8_cga_4enlinea_device::device_rom_region() const diff --git a/src/mame/misc/4enraya.cpp b/src/mame/misc/4enraya.cpp index 38824679d9d..c562e35caf0 100644 --- a/src/mame/misc/4enraya.cpp +++ b/src/mame/misc/4enraya.cpp @@ -182,9 +182,9 @@ class _4enraya_state : public driver_device void _4enraya(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; void videoram_w(offs_t offset, uint8_t data); @@ -217,8 +217,8 @@ class _4enraya_state : public driver_device TILE_GET_INFO_MEMBER(get_tile_info); uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void main_map(address_map &map); - void main_portmap(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void main_portmap(address_map &map) ATTR_COLD; }; class unk_gambl_state : public _4enraya_state @@ -235,11 +235,11 @@ class unk_gambl_state : public _4enraya_state void chicgum(machine_config &config); private: - void unkpacg_main_map(address_map &map); - void unkpacga_main_map(address_map &map); - void tourpgum_main_map(address_map &map); + void unkpacg_main_map(address_map &map) ATTR_COLD; + void unkpacga_main_map(address_map &map) ATTR_COLD; + void tourpgum_main_map(address_map &map) ATTR_COLD; - void unkpacg_main_portmap(address_map &map); + void unkpacg_main_portmap(address_map &map) ATTR_COLD; }; class unk_gambl_enc_state : public unk_gambl_state diff --git a/src/mame/misc/5clown.cpp b/src/mame/misc/5clown.cpp index 96d9724b151..fa39edbf645 100644 --- a/src/mame/misc/5clown.cpp +++ b/src/mame/misc/5clown.cpp @@ -490,7 +490,7 @@ class _5clown_state : public driver_device void init_fclown(); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_maincpu; @@ -523,8 +523,8 @@ class _5clown_state : public driver_device MC6845_UPDATE_ROW(update_row); void _5clown_palette(palette_device &palette) const; - void fcaudio_map(address_map &map); - void fclown_map(address_map &map); + void fcaudio_map(address_map &map) ATTR_COLD; + void fclown_map(address_map &map) ATTR_COLD; }; void _5clown_state::machine_start() diff --git a/src/mame/misc/a1supply.cpp b/src/mame/misc/a1supply.cpp index 59eb050a738..550d838e595 100644 --- a/src/mame/misc/a1supply.cpp +++ b/src/mame/misc/a1supply.cpp @@ -31,12 +31,12 @@ class a1supply_state : public driver_device void a1supply(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: - void rom_map(address_map &map); + void rom_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/misc/ace_sp_reelctrl.h b/src/mame/misc/ace_sp_reelctrl.h index b6c6490aba8..60553a26234 100644 --- a/src/mame/misc/ace_sp_reelctrl.h +++ b/src/mame/misc/ace_sp_reelctrl.h @@ -15,10 +15,10 @@ class ace_sp_reelctrl_base_device : public device_t ace_sp_reelctrl_base_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); // 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 device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: required_device m_mcu; @@ -30,7 +30,7 @@ class ace_sp_reelctrl_device : public ace_sp_reelctrl_base_device ace_sp_reelctrl_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; private: }; @@ -41,7 +41,7 @@ class ace_sp_reelctrl_pcp_device : public ace_sp_reelctrl_base_device ace_sp_reelctrl_pcp_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; private: }; diff --git a/src/mame/misc/acefruit.cpp b/src/mame/misc/acefruit.cpp index 711a90c7f93..79729c8f4e1 100644 --- a/src/mame/misc/acefruit.cpp +++ b/src/mame/misc/acefruit.cpp @@ -50,8 +50,8 @@ class acefruit_state : public driver_device template int starspnr_payout_r(); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; TIMER_CALLBACK_MEMBER(refresh_tick); @@ -67,8 +67,8 @@ class acefruit_state : public driver_device INTERRUPT_GEN_MEMBER(vblank); void update_irq(int vpos); - void main_io(address_map &map); - void main_map(address_map &map); + void main_io(address_map &map) ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_shared_ptr m_videoram; diff --git a/src/mame/misc/aces1.cpp b/src/mame/misc/aces1.cpp index abe31ca731c..b524cc953aa 100644 --- a/src/mame/misc/aces1.cpp +++ b/src/mame/misc/aces1.cpp @@ -68,8 +68,8 @@ class aces1_state : public driver_device void aces1(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: int m_input_strobe = 0; @@ -236,8 +236,8 @@ class aces1_state : public driver_device TIMER_CALLBACK_MEMBER(m_aces1_irq_timer_callback); TIMER_CALLBACK_MEMBER(m_aces1_nmi_timer_callback); - void aces1_map(address_map &map); - void aces1_portmap(address_map &map); + void aces1_map(address_map &map) ATTR_COLD; + void aces1_portmap(address_map &map) ATTR_COLD; }; diff --git a/src/mame/misc/acesp.cpp b/src/mame/misc/acesp.cpp index 8b0141f5aba..22b9dc2b8c4 100644 --- a/src/mame/misc/acesp.cpp +++ b/src/mame/misc/acesp.cpp @@ -54,11 +54,11 @@ class ace_sp_state : public driver_device void init_ace_cr(); private: - void machine_start() override; + void machine_start() override ATTR_COLD; TIMER_DEVICE_CALLBACK_MEMBER(gen_fixfreq); - void ace_sp_map(address_map &map); + void ace_sp_map(address_map &map) ATTR_COLD; void dmd_w(offs_t offset, uint8_t data); void sevenseg_w(offs_t offset, uint8_t data); diff --git a/src/mame/misc/age_candy.cpp b/src/mame/misc/age_candy.cpp index d275661af5a..12160df43a0 100644 --- a/src/mame/misc/age_candy.cpp +++ b/src/mame/misc/age_candy.cpp @@ -30,10 +30,10 @@ class age_candy_state : public driver_device void age_candy(machine_config &config); private: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; - void age_candy_map(address_map &map); + void age_candy_map(address_map &map) ATTR_COLD; required_device m_maincpu; }; diff --git a/src/mame/misc/alinvade.cpp b/src/mame/misc/alinvade.cpp index 0a53094ff31..5edb635a415 100644 --- a/src/mame/misc/alinvade.cpp +++ b/src/mame/misc/alinvade.cpp @@ -50,12 +50,12 @@ class alinvade_state : public driver_device void vblank_irq(int state); uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void alinvade_map(address_map &map); + void alinvade_map(address_map &map) ATTR_COLD; uint8_t m_irqmask = 0; uint8_t m_irqff = 0; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; required_device m_maincpu; required_shared_ptr m_videoram; required_device m_discrete; diff --git a/src/mame/misc/amaticmg.cpp b/src/mame/misc/amaticmg.cpp index 28aa72b6be5..2b81c8595f5 100644 --- a/src/mame/misc/amaticmg.cpp +++ b/src/mame/misc/amaticmg.cpp @@ -466,8 +466,8 @@ class amaticmg_state : public driver_device void init_am_mg5hu(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_shared_ptr m_attr; @@ -499,10 +499,10 @@ class amaticmg_state : public driver_device void encf(uint8_t ciphertext, int address, uint8_t &plaintext, int &newaddress); void decrypt(int key1, int key2); - void amaticmg2_portmap(address_map &map); - void amaticmg4_portmap(address_map &map); - void amaticmg_map(address_map &map); - void amaticmg_portmap(address_map &map); + void amaticmg2_portmap(address_map &map) ATTR_COLD; + void amaticmg4_portmap(address_map &map) ATTR_COLD; + void amaticmg_map(address_map &map) ATTR_COLD; + void amaticmg_portmap(address_map &map) ATTR_COLD; }; diff --git a/src/mame/misc/amerihok.cpp b/src/mame/misc/amerihok.cpp index c8bca0a11f7..1d9a87f5046 100644 --- a/src/mame/misc/amerihok.cpp +++ b/src/mame/misc/amerihok.cpp @@ -41,8 +41,8 @@ class amerihok_state : public driver_device void amerihok(machine_config &config); private: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; void control_w(u8 data); void p2_w(u8 data); @@ -50,8 +50,8 @@ class amerihok_state : public driver_device required_device m_maincpu; required_device m_oki; - void amerihok_data_map(address_map &map); - void amerihok_map(address_map &map); + void amerihok_data_map(address_map &map) ATTR_COLD; + void amerihok_map(address_map &map) ATTR_COLD; u32 m_outputs[2]{}; u8 m_old_p2 = 0U; diff --git a/src/mame/misc/ampoker2.h b/src/mame/misc/ampoker2.h index 3377b575294..1555dbb53d4 100644 --- a/src/mame/misc/ampoker2.h +++ b/src/mame/misc/ampoker2.h @@ -27,8 +27,8 @@ class ampoker2_state : public driver_device void init_rabbitpk(); protected: - virtual void video_start() override; - virtual void machine_start() override; + virtual void video_start() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; private: void port30_w(uint8_t data); @@ -45,8 +45,8 @@ class ampoker2_state : public driver_device void ampoker2_palette(palette_device &palette) const; DECLARE_VIDEO_START(sigma2k); - void io_map(address_map &map); - void program_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void program_map(address_map &map) ATTR_COLD; required_shared_ptr m_videoram; tilemap_t *m_bg_tilemap = nullptr; diff --git a/src/mame/misc/amspdwy.cpp b/src/mame/misc/amspdwy.cpp index bac1b27a4d2..06e841ef09e 100644 --- a/src/mame/misc/amspdwy.cpp +++ b/src/mame/misc/amspdwy.cpp @@ -52,9 +52,9 @@ class amspdwy_state : public driver_device void amspdwy(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: /* memory pointers */ @@ -95,9 +95,9 @@ class amspdwy_state : public driver_device void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); template uint8_t amspdwy_wheel_r(); - void amspdwy_map(address_map &map); - void amspdwy_portmap(address_map &map); - void amspdwy_sound_map(address_map &map); + void amspdwy_map(address_map &map) ATTR_COLD; + void amspdwy_portmap(address_map &map) ATTR_COLD; + void amspdwy_sound_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/misc/amstarz80.cpp b/src/mame/misc/amstarz80.cpp index 7a2d4c45ee9..9778bfbd74f 100644 --- a/src/mame/misc/amstarz80.cpp +++ b/src/mame/misc/amstarz80.cpp @@ -76,7 +76,7 @@ class amstarz80_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void prg_map(address_map &map); + void prg_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/misc/amusco.cpp b/src/mame/misc/amusco.cpp index e63b7af6beb..d5a080a5aef 100644 --- a/src/mame/misc/amusco.cpp +++ b/src/mame/misc/amusco.cpp @@ -124,8 +124,8 @@ class amusco_state : public driver_device void coin_irq(int state); protected: - virtual void video_start() override; - virtual void machine_start() override; + virtual void video_start() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; private: TILE_GET_INFO_MEMBER(get_bg_tile_info); @@ -142,8 +142,8 @@ class amusco_state : public driver_device MC6845_UPDATE_ROW(update_row); void amusco_palette(palette_device &palette) const; - void mem_map(address_map &map); - void io_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; std::unique_ptr m_videoram{}; tilemap_t *m_bg_tilemap = nullptr; diff --git a/src/mame/misc/amuzy.cpp b/src/mame/misc/amuzy.cpp index 37495ec2ccf..53700629d6d 100644 --- a/src/mame/misc/amuzy.cpp +++ b/src/mame/misc/amuzy.cpp @@ -167,7 +167,7 @@ class amuzy_state : public driver_device TIMER_DEVICE_CALLBACK_MEMBER(scanline); - void amuzy_map(address_map &map); + void amuzy_map(address_map &map) ATTR_COLD; u16 status_r(offs_t offset); void status_w(offs_t offset, u16 data, u16 mem_mask = ~0); @@ -386,12 +386,36 @@ ROM_START( boobood ) // ブーブードンパッチ, HA9019-0 ROM_LOAD( "29lv160.u3", 0x000000, 0x200000, CRC(684523f0) SHA1(ca96918abde4ec63f33d82cf30b121f2ac05f68d) ) // 1xxxxxxxxxxxxxxxxxxxx = 0xFF ROM_END +ROM_START( fishbatl ) // フィッシャーマンバトル, HA9008-0 + ROM_REGION(0x80000, "maincpu", 0) + ROM_LOAD16_WORD_SWAP( "29f400.u1", 0x000000, 0x080000, CRC(9d6a8322) SHA1(4819370bb1f092f1c018353f153e623e0297a263) ) // 11xxxxxxxxxxxxxxxxx = 0xFF + + ROM_REGION(0x1000000, "oki", ROMREGION_ERASEFF ) + ROM_LOAD( "29f016a.u2", 0x000000, 0x200000, CRC(95f664f8) SHA1(050f074f7646336b6ce7f5e9c34d50d68d0a9a00) ) + + ROM_REGION(0x200000, "gfx", 0 ) + ROM_LOAD( "29lv160.u3", 0x000000, 0x200000, CRC(dc8f6b48) SHA1(75f92d38b1e716e3c1c0cdb25f444671789dd23a) ) +ROM_END + +ROM_START( wanpakup ) // わんぱくパイレーツ, HA9020-0 + ROM_REGION(0x80000, "maincpu", 0) + ROM_LOAD16_WORD_SWAP( "29f400.u1", 0x000000, 0x080000, CRC(8280d58f) SHA1(2be99ae6ddae795495a09fcbab55c880a0adb890) ) // 1xxxxxxxxxxxxxxxxxx = 0xFF + + ROM_REGION(0x1000000, "oki", ROMREGION_ERASEFF ) + ROM_LOAD( "29f016a.u2", 0x000000, 0x200000, CRC(ae4b65ad) SHA1(5afb0dbaa37ba90c03ed18929062f6e2c136dca0) ) // 1xxxxxxxxxxxxxxxxxxxx = 0x00 + + ROM_REGION(0x200000, "gfx", 0 ) + ROM_LOAD( "29lv160.u3", 0x000000, 0x200000, CRC(91fe39d5) SHA1(e900824a9edc47edb9444812daa2e416f8365e0c) ) // 1xxxxxxxxxxxxxxxxxxxx = 0x00 +ROM_END + } // anonymous namespace -GAME( 2005, boobood, 0, amuzy, amuzy, amuzy_state, empty_init, ROT0, "Amuzy Corporation", "Boo Boo Donpatchi (Japan)", MACHINE_NOT_WORKING ) -GAME( 2005, zenponta, 0, amuzy, amuzy, amuzy_state, empty_init, ROT0, "Amuzy Corporation", "Zenigata Ponta (Japan)", MACHINE_NOT_WORKING ) -GAME( 2006, amhbattl, 0, amuzy, amuzy, amuzy_state, empty_init, ROT0, "Amuzy Corporation", "Acchi Muite Hoi Battle (Japan)", MACHINE_NOT_WORKING ) -GAME( 2007, docchift, 0, amuzy, amuzy, amuzy_state, empty_init, ROT0, "Amuzy Corporation", "Docchi Fighter (Japan)", MACHINE_NOT_WORKING ) -GAME( 2007, wwdash, 0, amuzy, amuzy, amuzy_state, empty_init, ROT0, "Amuzy Corporation", "Wan Wan Dash (Japan)", MACHINE_NOT_WORKING ) -GAME( 2008, mmhammer, 0, amuzy, amuzy, amuzy_state, empty_init, ROT0, "Amuzy Corporation", "Mogu Mogu Hammer (Japan)", MACHINE_NOT_WORKING ) -GAME( 2008, shpchamp, 0, amuzy, amuzy, amuzy_state, empty_init, ROT0, "Amuzy Corporation", "Shippe Champion (Japan)", MACHINE_NOT_WORKING ) +GAME( 2005, boobood, 0, amuzy, amuzy, amuzy_state, empty_init, ROT0, "Amuzy Corporation", "Boo Boo Donpatchi (Japan, ver 1.01)", MACHINE_NOT_WORKING | MACHINE_NO_SOUND ) +GAME( 2005, fishbatl, 0, amuzy, amuzy, amuzy_state, empty_init, ROT0, "Amuzy Corporation", "Fisherman Battle (Japan, ver 1.03)", MACHINE_NOT_WORKING | MACHINE_NO_SOUND ) +GAME( 2005, zenponta, 0, amuzy, amuzy, amuzy_state, empty_init, ROT0, "Amuzy Corporation", "Zenigata Ponta (Japan, ver 1.02)", MACHINE_NOT_WORKING | MACHINE_NO_SOUND ) +GAME( 2006, amhbattl, 0, amuzy, amuzy, amuzy_state, empty_init, ROT0, "Amuzy Corporation", "Acchi Muite Hoi Battle (Japan, ver 1.04)", MACHINE_NOT_WORKING | MACHINE_NO_SOUND ) +GAME( 2006, wanpakup, 0, amuzy, amuzy, amuzy_state, empty_init, ROT0, "Amuzy Corporation", "Wanpaku Pirates (Japan, ver 1.00)", MACHINE_NOT_WORKING | MACHINE_NO_SOUND ) +GAME( 2007, docchift, 0, amuzy, amuzy, amuzy_state, empty_init, ROT0, "Amuzy Corporation", "Docchi Fighter (Japan, ver 1.02)", MACHINE_NOT_WORKING | MACHINE_NO_SOUND ) +GAME( 2007, wwdash, 0, amuzy, amuzy, amuzy_state, empty_init, ROT0, "Amuzy Corporation", "Wan Wan Dash (Japan, ver 1.01)", MACHINE_NOT_WORKING | MACHINE_NO_SOUND ) +GAME( 2008, mmhammer, 0, amuzy, amuzy, amuzy_state, empty_init, ROT0, "Amuzy Corporation", "Mogu Mogu Hammer (Japan, ver 1.01)", MACHINE_NOT_WORKING | MACHINE_NO_SOUND ) +GAME( 2008, shpchamp, 0, amuzy, amuzy, amuzy_state, empty_init, ROT0, "Amuzy Corporation", "Shippe Champion (Japan, ver 1.02)", MACHINE_NOT_WORKING | MACHINE_NO_SOUND ) diff --git a/src/mame/misc/anes.cpp b/src/mame/misc/anes.cpp index 1a2db37969a..296cdf6ea06 100644 --- a/src/mame/misc/anes.cpp +++ b/src/mame/misc/anes.cpp @@ -53,8 +53,8 @@ class anes_state : public driver_device void anes(machine_config &config); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: void vram_offset_w(offs_t offset, uint8_t data); @@ -108,9 +108,9 @@ class anes_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void io_map(address_map &map); - void prg_map(address_map &map); - void opcodes_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void prg_map(address_map &map) ATTR_COLD; + void opcodes_map(address_map &map) ATTR_COLD; INTERRUPT_GEN_MEMBER(interrupt); }; diff --git a/src/mame/misc/arachnid.cpp b/src/mame/misc/arachnid.cpp index 0045313d8f8..a74870d2a22 100644 --- a/src/mame/misc/arachnid.cpp +++ b/src/mame/misc/arachnid.cpp @@ -175,7 +175,7 @@ class arachnid_state : public driver_device required_device m_pia_u17; required_device m_speaker; - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; uint8_t pia_u4_pa_r(); uint8_t pia_u4_pb_r(); int pia_u4_pca_r(); @@ -192,7 +192,7 @@ class arachnid_state : public driver_device void ptm_o1_callback(int state); uint8_t read_keyboard(int pa); - void arachnid_map(address_map &map); + void arachnid_map(address_map &map) ATTR_COLD; }; /*************************************************************************** diff --git a/src/mame/misc/artmagic.h b/src/mame/misc/artmagic.h index 635dd5c294f..57418e3c034 100644 --- a/src/mame/misc/artmagic.h +++ b/src/mame/misc/artmagic.h @@ -73,24 +73,24 @@ class artmagic_state : public driver_device TMS340X0_TO_SHIFTREG_CB_MEMBER(to_shiftreg); TMS340X0_FROM_SHIFTREG_CB_MEMBER(from_shiftreg); TMS340X0_SCANLINE_RGB32_CB_MEMBER(scanline); - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; void decrypt_cheesech(); void decrypt_ultennis(); void execute_blit(); void update_irq_state(); inline uint16_t *address_to_vram(offs_t *address); - void main_map(address_map &map); - void shtstar_guncpu_io_map(address_map &map); - void shtstar_guncpu_map(address_map &map); - void shtstar_map(address_map &map); - void shtstar_subcpu_map(address_map &map); - void shtstar_subcpu_vector_map(address_map &map); - void stonebal_map(address_map &map); - void stonebal_tms_map(address_map &map); - void tms_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void shtstar_guncpu_io_map(address_map &map) ATTR_COLD; + void shtstar_guncpu_map(address_map &map) ATTR_COLD; + void shtstar_map(address_map &map) ATTR_COLD; + void shtstar_subcpu_map(address_map &map) ATTR_COLD; + void shtstar_subcpu_vector_map(address_map &map) ATTR_COLD; + void stonebal_map(address_map &map) ATTR_COLD; + void stonebal_tms_map(address_map &map) ATTR_COLD; + void tms_map(address_map &map) ATTR_COLD; protected: TIMER_CALLBACK_MEMBER(irq_off); diff --git a/src/mame/misc/astrafr.cpp b/src/mame/misc/astrafr.cpp index 410c42437ad..b560a07800a 100644 --- a/src/mame/misc/astrafr.cpp +++ b/src/mame/misc/astrafr.cpp @@ -134,10 +134,10 @@ class astrafr_state : public driver_device DECLARE_MACHINE_START(astra_37); DECLARE_MACHINE_START(astra_57); - void astra_map(address_map &map); - void astrafr_master_alt_map(address_map &map); - void astrafr_master_map(address_map &map); - void astrafr_slave_map(address_map &map); + void astra_map(address_map &map) ATTR_COLD; + void astrafr_master_alt_map(address_map &map) ATTR_COLD; + void astrafr_master_map(address_map &map) ATTR_COLD; + void astrafr_slave_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/misc/atronic.cpp b/src/mame/misc/atronic.cpp index 0b7d2457a46..3a2e6ea4f0b 100644 --- a/src/mame/misc/atronic.cpp +++ b/src/mame/misc/atronic.cpp @@ -468,12 +468,12 @@ class atronic_state : public driver_device u8 serial_r(); void serial_w(u8 data); - void atronic_map(address_map &map); - void atronic_portmap(address_map &map); + void atronic_map(address_map &map) ATTR_COLD; + void atronic_portmap(address_map &map) ATTR_COLD; - void video_map(address_map& map); + void video_map(address_map &map) ATTR_COLD; - void ramdac_map(address_map& map); + void ramdac_map(address_map &map) ATTR_COLD; // devices required_device m_screen; diff --git a/src/mame/misc/attckufo.cpp b/src/mame/misc/attckufo.cpp index f63299e3520..e827422a9a9 100644 --- a/src/mame/misc/attckufo.cpp +++ b/src/mame/misc/attckufo.cpp @@ -37,9 +37,9 @@ class attckufo_state : public driver_device uint8_t vic_videoram_r(offs_t offset); uint8_t vic_colorram_r(offs_t offset); - void cpu_map(address_map &map); - void vic_colorram_map(address_map &map); - void vic_videoram_map(address_map &map); + void cpu_map(address_map &map) ATTR_COLD; + void vic_colorram_map(address_map &map) ATTR_COLD; + void vic_videoram_map(address_map &map) ATTR_COLD; required_device m_maincpu; }; diff --git a/src/mame/misc/avt.cpp b/src/mame/misc/avt.cpp index dd3f4b7bd23..ee66beebd0e 100644 --- a/src/mame/misc/avt.cpp +++ b/src/mame/misc/avt.cpp @@ -456,7 +456,7 @@ class avt_state : public driver_device void avt(machine_config &config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: void avt_6845_address_w(uint8_t data); @@ -470,8 +470,8 @@ class avt_state : public driver_device void avt_palette(palette_device &palette) const; uint32_t screen_update_avt(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void avt_map(address_map &map); - void avt_portmap(address_map &map); + void avt_map(address_map &map) ATTR_COLD; + void avt_portmap(address_map &map) ATTR_COLD; tilemap_t *m_bg_tilemap = nullptr; uint8_t m_crtc_vreg[0x100]{}, m_crtc_index = 0; diff --git a/src/mame/misc/babysuprem.cpp b/src/mame/misc/babysuprem.cpp index 04924ffaa51..3dd83f35eb9 100644 --- a/src/mame/misc/babysuprem.cpp +++ b/src/mame/misc/babysuprem.cpp @@ -67,8 +67,8 @@ class bsuprem_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(test_pressed); protected: - virtual void machine_reset() override; - virtual void machine_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; private: required_device m_maincpu; @@ -98,7 +98,7 @@ class bsuprem_state : public driver_device void u9_w(offs_t offset, uint8_t data); void u10_w(offs_t offset, uint8_t data); - void bsuprem_map(address_map &map); + void bsuprem_map(address_map &map) ATTR_COLD; INTERRUPT_GEN_MEMBER(mains_irq); diff --git a/src/mame/misc/bailey.cpp b/src/mame/misc/bailey.cpp index 4e1f7724b8c..5b87856fc88 100644 --- a/src/mame/misc/bailey.cpp +++ b/src/mame/misc/bailey.cpp @@ -54,10 +54,10 @@ class bailey_state : public driver_device protected: // driver_device overrides - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: diff --git a/src/mame/misc/beaminv.cpp b/src/mame/misc/beaminv.cpp index 33344b51d95..f9120e6d161 100644 --- a/src/mame/misc/beaminv.cpp +++ b/src/mame/misc/beaminv.cpp @@ -90,17 +90,17 @@ class beaminv_state : public driver_device uint8_t v128_r(); void controller_select_w(uint8_t data); uint8_t controller_r(); - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; uint32_t screen_update_beaminv(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); TIMER_CALLBACK_MEMBER(interrupt_callback); void create_interrupt_timer(); void start_interrupt_timer(); void beaminv(machine_config &config); void ctainv(machine_config &config); - void main_io_map(address_map &map); - void main_map(address_map &map); - void ctainv_map(address_map &map); + void main_io_map(address_map &map) ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; + void ctainv_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/misc/beezer.cpp b/src/mame/misc/beezer.cpp index 34b7a3618c9..e5435b280ef 100644 --- a/src/mame/misc/beezer.cpp +++ b/src/mame/misc/beezer.cpp @@ -98,12 +98,12 @@ class beezer_state : public driver_device void bankswitch_w(uint8_t data); void beezer(machine_config &config); - void main_map(address_map &map); - void sound_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; diff --git a/src/mame/misc/belatra.cpp b/src/mame/misc/belatra.cpp index a446c8857ce..d33a838458c 100644 --- a/src/mame/misc/belatra.cpp +++ b/src/mame/misc/belatra.cpp @@ -72,7 +72,7 @@ class belatra_state : public driver_device required_device m_vidc; required_device m_iomd; - void program_map(address_map &map); + void program_map(address_map &map) ATTR_COLD; }; void belatra_state::program_map(address_map &map) diff --git a/src/mame/misc/bingoman.cpp b/src/mame/misc/bingoman.cpp index 632162ad27f..d6f5774b50a 100644 --- a/src/mame/misc/bingoman.cpp +++ b/src/mame/misc/bingoman.cpp @@ -261,9 +261,9 @@ class bingoman_state : public driver_device protected: // driver_device overrides - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: // devices @@ -272,7 +272,7 @@ class bingoman_state : public driver_device // screen updates uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void bingoman_palette(palette_device &palette) const; - void bingoman_prg_map(address_map &map); + void bingoman_prg_map(address_map &map) ATTR_COLD; }; void bingoman_state::video_start() diff --git a/src/mame/misc/bingor.cpp b/src/mame/misc/bingor.cpp index 4489df84cd1..2079d313b90 100644 --- a/src/mame/misc/bingor.cpp +++ b/src/mame/misc/bingor.cpp @@ -537,7 +537,7 @@ class bingor_state : public driver_device void vip2000(machine_config &config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: required_shared_ptr m_blit_ram; @@ -549,13 +549,13 @@ class bingor_state : public driver_device void vip2000_outputs_w(uint16_t data); - void bingor2_map(address_map &map); - void bingor_io(address_map &map); - void bingor_map(address_map &map); - void slave_io(address_map &map); - void slave_map(address_map &map); - void vip2000_io(address_map &map); - void vip2000_map(address_map &map); + void bingor2_map(address_map &map) ATTR_COLD; + void bingor_io(address_map &map) ATTR_COLD; + void bingor_map(address_map &map) ATTR_COLD; + void slave_io(address_map &map) ATTR_COLD; + void slave_map(address_map &map) ATTR_COLD; + void vip2000_io(address_map &map) ATTR_COLD; + void vip2000_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/misc/blitz68k.cpp b/src/mame/misc/blitz68k.cpp index d18d42ba936..ea93fa6287b 100644 --- a/src/mame/misc/blitz68k.cpp +++ b/src/mame/misc/blitz68k.cpp @@ -219,16 +219,16 @@ class blitz68k_state : public driver_device uint32_t screen_update_blitz68k_noblit(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); TIMER_DEVICE_CALLBACK_MEMBER(steaser_mcu_sim); MC6845_ON_UPDATE_ADDR_CHANGED(crtc_addr); - void bankrob_map(address_map &map); - void bankroba_map(address_map &map); - void cjffruit_map(address_map &map); - void deucesw2_map(address_map &map); - void dualgame_map(address_map &map); - void hermit_map(address_map &map); - void ilpag_map(address_map &map); - void maxidbl_map(address_map &map); - void ramdac_map(address_map &map); - void steaser_map(address_map &map); + void bankrob_map(address_map &map) ATTR_COLD; + void bankroba_map(address_map &map) ATTR_COLD; + void cjffruit_map(address_map &map) ATTR_COLD; + void deucesw2_map(address_map &map) ATTR_COLD; + void dualgame_map(address_map &map) ATTR_COLD; + void hermit_map(address_map &map) ATTR_COLD; + void ilpag_map(address_map &map) ATTR_COLD; + void maxidbl_map(address_map &map) ATTR_COLD; + void ramdac_map(address_map &map) ATTR_COLD; + void steaser_map(address_map &map) ATTR_COLD; optional_shared_ptr m_nvram; std::unique_ptr m_blit_buffer; diff --git a/src/mame/misc/blocktax.cpp b/src/mame/misc/blocktax.cpp index cd9b3a001f3..64b13164097 100644 --- a/src/mame/misc/blocktax.cpp +++ b/src/mame/misc/blocktax.cpp @@ -50,11 +50,11 @@ class blocktax_state : public driver_device void blocktax(machine_config &config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: uint32_t screen_update_blocktax(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - [[maybe_unused]] void blocktax_map(address_map &map); + [[maybe_unused]] void blocktax_map(address_map &map) ATTR_COLD; required_device m_maincpu; }; diff --git a/src/mame/misc/bntyhunt.cpp b/src/mame/misc/bntyhunt.cpp index 3cf788c556d..e8c91ca9aeb 100644 --- a/src/mame/misc/bntyhunt.cpp +++ b/src/mame/misc/bntyhunt.cpp @@ -52,7 +52,7 @@ class bntyhunt_state : public driver_device private: required_device m_maincpu; - void bntyhunt_map(address_map &map); + void bntyhunt_map(address_map &map) ATTR_COLD; }; void bntyhunt_state::bntyhunt_map(address_map &map) diff --git a/src/mame/misc/buster.cpp b/src/mame/misc/buster.cpp index 9b40a8bea82..8099f99a4a2 100644 --- a/src/mame/misc/buster.cpp +++ b/src/mame/misc/buster.cpp @@ -38,9 +38,9 @@ class buster_state : public driver_device void coin_output_w(uint8_t data); uint32_t screen_update_buster(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); void buster(machine_config &config); - void mainmap(address_map &map); + void mainmap(address_map &map) ATTR_COLD; protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; required_shared_ptr m_vram; diff --git a/src/mame/misc/calomega.h b/src/mame/misc/calomega.h index 837705e0680..feaf59c9b16 100644 --- a/src/mame/misc/calomega.h +++ b/src/mame/misc/calomega.h @@ -69,7 +69,7 @@ class calomega_state : public driver_device protected: virtual void machine_start() override { m_lamps.resolve(); } - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: void calomega_videoram_w(offs_t offset, uint8_t data); @@ -110,12 +110,12 @@ class calomega_state : public driver_device uint32_t screen_update_calomega(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); void calomega_palette(palette_device &palette) const; - void sys903_map(address_map &map); - void s903mod_map(address_map &map); - void sys905_map(address_map &map); - void sys906_map(address_map &map); - void kstec_mem_map(address_map &map); - void kstec_io_map(address_map &map); + void sys903_map(address_map &map) ATTR_COLD; + void s903mod_map(address_map &map) ATTR_COLD; + void sys905_map(address_map &map) ATTR_COLD; + void sys906_map(address_map &map) ATTR_COLD; + void kstec_mem_map(address_map &map) ATTR_COLD; + void kstec_io_map(address_map &map) ATTR_COLD; optional_device_array m_pia; required_device m_maincpu; diff --git a/src/mame/misc/cardline.cpp b/src/mame/misc/cardline.cpp index 72dab6424f8..3e115002ba7 100644 --- a/src/mame/misc/cardline.cpp +++ b/src/mame/misc/cardline.cpp @@ -52,7 +52,7 @@ class cardline_state : public driver_device void cardline(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: void vram_w(offs_t offset, uint8_t data); @@ -72,8 +72,8 @@ class cardline_state : public driver_device MC6845_BEGIN_UPDATE(crtc_begin_update); MC6845_UPDATE_ROW(crtc_update_row); - void mem_io(address_map &map); - void mem_prg(address_map &map); + void mem_io(address_map &map) ATTR_COLD; + void mem_prg(address_map &map) ATTR_COLD; required_shared_ptr m_videoram; required_shared_ptr m_colorram; diff --git a/src/mame/misc/carrera.cpp b/src/mame/misc/carrera.cpp index 62e778501bc..9e2bb3242db 100644 --- a/src/mame/misc/carrera.cpp +++ b/src/mame/misc/carrera.cpp @@ -78,8 +78,8 @@ class carrera_state : public driver_device uint8_t unknown_r(); void palette(palette_device &palette) const; uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void prg_map(address_map &map); - void io_map(address_map &map); + void prg_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; required_shared_ptr m_tileram; required_device m_maincpu; diff --git a/src/mame/misc/castle.cpp b/src/mame/misc/castle.cpp index 3a7469f4615..2cc84eb044f 100644 --- a/src/mame/misc/castle.cpp +++ b/src/mame/misc/castle.cpp @@ -61,9 +61,9 @@ class castle_state : public driver_device void castle_V1rvE(machine_config &config); void castle_V2rvA(machine_config &config); - void V1rvE_mastermap(address_map &map); - void V1rvE_slavemap(address_map &map); - void V2rvA_map(address_map &map); + void V1rvE_mastermap(address_map &map) ATTR_COLD; + void V1rvE_slavemap(address_map &map) ATTR_COLD; + void V2rvA_map(address_map &map) ATTR_COLD; protected: // devices diff --git a/src/mame/misc/cb2001.cpp b/src/mame/misc/cb2001.cpp index be5e8ac8660..bf779064eb6 100644 --- a/src/mame/misc/cb2001.cpp +++ b/src/mame/misc/cb2001.cpp @@ -90,8 +90,8 @@ class cb2001_state : public driver_device void init_smaller_proms(); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_shared_ptr m_vram_fg; @@ -119,9 +119,9 @@ class cb2001_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); INTERRUPT_GEN_MEMBER(vblank_irq); uint8_t irq_ack_r(); - void io_map(address_map &map); - void cb5_io_map(address_map &map); - void program_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void cb5_io_map(address_map &map) ATTR_COLD; + void program_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/misc/chameleonrx1.cpp b/src/mame/misc/chameleonrx1.cpp index fd4edd2076b..1aeb63ad6ba 100644 --- a/src/mame/misc/chameleonrx1.cpp +++ b/src/mame/misc/chameleonrx1.cpp @@ -34,7 +34,7 @@ class chameleonrx1_state : public driver_device private: required_device m_maincpu; - void chameleonrx1_map(address_map &map); + void chameleonrx1_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/misc/chance32.cpp b/src/mame/misc/chance32.cpp index 76592cf755b..80e9fee5702 100644 --- a/src/mame/misc/chance32.cpp +++ b/src/mame/misc/chance32.cpp @@ -51,9 +51,9 @@ class chance32_state : public driver_device void chance32(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: template void vram_w(offs_t offset, uint8_t data) @@ -68,8 +68,8 @@ class chance32_state : public driver_device template TILE_GET_INFO_MEMBER(get_tile_info); uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void main_map(address_map &map); - void main_io(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void main_io(address_map &map) ATTR_COLD; tilemap_t *m_tilemap[2]{}; diff --git a/src/mame/misc/changyu.cpp b/src/mame/misc/changyu.cpp index 7a6275f70cd..393e4530954 100644 --- a/src/mame/misc/changyu.cpp +++ b/src/mame/misc/changyu.cpp @@ -2,6 +2,7 @@ // copyright-holders: /* + This skeleton driver hosts 2 unidentified Chang Yu Electronic (CYE) games. The PCBs, while sharing most components, differ, so they may very well go in different drivers when emulated. @@ -45,6 +46,7 @@ main PCB (marked 9101): #include "cpu/m6502/m6502.h" #include "cpu/mcs51/mcs51.h" +#include "machine/gen_latch.h" #include "sound/ay8910.h" #include "sound/hc55516.h" #include "sound/ymopl.h" @@ -71,10 +73,16 @@ class changyu_state : public driver_device { } - void changyu(machine_config &config); - void changyu2(machine_config &config); + void changyu(machine_config &config) ATTR_COLD; protected: + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; + + void common_map(address_map &map) ATTR_COLD; + + TILE_GET_INFO_MEMBER(get_bg_tile_info); + required_device m_maincpu; required_device m_mcu; required_device m_crtc; @@ -82,25 +90,60 @@ class changyu_state : public driver_device required_device m_gfxdecode; required_shared_ptr m_videoram; -private: + tilemap_t *m_bg_tilemap = nullptr; +private: uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void palette_init(palette_device &palette) const; + void palette_init(palette_device &palette) const ATTR_COLD; - void main_map(address_map &map); - void main2_map(address_map &map); - void prog2_map(address_map &map); - void ext2_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; - virtual void machine_start() override; + void videoram_w(offs_t offset, u8 data); +}; - tilemap_t *m_bg_tilemap{}; - virtual void video_start() override; - TILE_GET_INFO_MEMBER(get_bg_tile_info); - void videoram_w(offs_t offset, u8 data); +class changyu2_state : public changyu_state +{ +public: + changyu2_state(const machine_config &mconfig, device_type type, const char *tag) + : changyu_state(mconfig, type, tag) + , m_mcu_response_latch(*this, "mcu_response") + { + } + + void changyu2(machine_config &config) ATTR_COLD; + +protected: + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; + +private: + void main2_map(address_map &map) ATTR_COLD; + void ext2_map(address_map &map) ATTR_COLD; + + void mcu_cmd_w(u8 data); + void mcu_ctrl_w(u8 data); + u8 mcu_status_r(); + u8 mcu_cmd_r(); + u8 mcu_p1_r(); + TIMER_CALLBACK_MEMBER(set_mcu_cmd); + + required_device m_mcu_response_latch; + + u8 m_mcu_cmd = 0; }; +void changyu_state::video_start() +{ + m_bg_tilemap = &machine().tilemap().create(*m_gfxdecode, tilemap_get_info_delegate(*this, FUNC(changyu_state::get_bg_tile_info)), TILEMAP_SCAN_ROWS, 8, 8, 72, 28); +} + +void changyu2_state::video_start() +{ + m_bg_tilemap = &machine().tilemap().create(*m_gfxdecode, tilemap_get_info_delegate(*this, FUNC(changyu2_state::get_bg_tile_info)), TILEMAP_SCAN_ROWS, 8, 8, 64, 32); +} + + void changyu_state::palette_init(palette_device &palette) const { uint8_t const *const color_prom = memregion("proms")->base(); @@ -124,56 +167,102 @@ TILE_GET_INFO_MEMBER(changyu_state::get_bg_tile_info) tileinfo.set(0, code, color, 0 ); } +uint32_t changyu_state::screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect) +{ + m_bg_tilemap->draw(screen, bitmap, cliprect, 0, 0); + return 0; +} + void changyu_state::videoram_w(offs_t offset, u8 data) { m_videoram[offset] = data; m_bg_tilemap->mark_tile_dirty(offset & 0x7ff); } -void changyu_state::video_start() +void changyu2_state::mcu_cmd_w(u8 data) { - m_bg_tilemap = &machine().tilemap().create(*m_gfxdecode, tilemap_get_info_delegate(*this, FUNC(changyu_state::get_bg_tile_info)), TILEMAP_SCAN_ROWS, 8, 8, 64, 32); + machine().scheduler().perfect_quantum(attotime::from_usec(50)); // enough time for the MCU to take the interrupt about to be triggered + machine().scheduler().synchronize(timer_expired_delegate(FUNC(changyu2_state::set_mcu_cmd), this), s32(u32(data))); +} -// m_bg_tilemap->set_transparent_pen(0); +void changyu2_state::mcu_ctrl_w(u8 data) +{ + // other bits unknown + m_mcu->set_input_line(MCS51_INT0_LINE, BIT(data, 7) ? CLEAR_LINE : ASSERT_LINE); } -uint32_t changyu_state::screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect) +u8 changyu2_state::mcu_status_r() { - m_bg_tilemap->draw(screen, bitmap, cliprect, 0, 0); + // other bits unknown + return m_mcu_response_latch->pending_r() ? 0x01 : 0x00; +} - return 0; +u8 changyu2_state::mcu_cmd_r() +{ + return m_mcu_cmd; } -void changyu_state::main_map(address_map &map) +u8 changyu2_state::mcu_p1_r() { + return m_mcu_response_latch->pending_r() ? 0x7f : 0xff; +} + +TIMER_CALLBACK_MEMBER(changyu2_state::set_mcu_cmd) +{ + m_mcu_cmd = u8(u32(param)); +} + + +void changyu_state::common_map(address_map &map) +{ + map.unmap_value_high(); + map(0x0000, 0x0fff).ram(); + map(0x1000, 0x1fff).ram().w(FUNC(changyu_state::videoram_w)).share(m_videoram); +} + +void changyu_state::main_map(address_map &map) +{ + common_map(map); + map(0x0800, 0x0800).portr("IN0"); + map(0x0808, 0x0808).portr("IN1"); + map(0x0810, 0x0810).portr("IN2"); + map(0x0818, 0x0818).portr("IN3"); + + map(0x0838, 0x0838).w(m_crtc, FUNC(mc6845_device::address_w)); + map(0x0839, 0x0839).rw(m_crtc, FUNC(mc6845_device::register_r), FUNC(mc6845_device::register_w)); + map(0x1000, 0x1fff).ram().w(FUNC(changyu_state::videoram_w)).share("videoram"); + map(0x3000, 0x37ff).ram(); + map(0x8000, 0xffff).rom().region("boot_rom", 0x8000); } -void changyu_state::main2_map(address_map &map) +void changyu2_state::main2_map(address_map &map) { - map.unmap_value_high(); - main_map(map); + common_map(map); + + map(0x2000, 0x2000).portr("IN0"); + map(0x2008, 0x2008).portr("IN1"); + map(0x2010, 0x2010).portr("IN2"); + map(0x2018, 0x2018).portr("IN3"); + map(0x2030, 0x2030).w(m_crtc, FUNC(mc6845_device::address_w)); map(0x2031, 0x2031).rw(m_crtc, FUNC(mc6845_device::register_r), FUNC(mc6845_device::register_w)); + map(0x2038, 0x2038).w(FUNC(changyu2_state::mcu_cmd_w)); map(0x2800, 0x2801).w("ymsnd", FUNC(ym2413_device::write)); - - map(0x3000, 0x37ff).unmaprw(); + map(0x2808, 0x2808).r(FUNC(changyu2_state::mcu_status_r)); + map(0x2020, 0x2020).r(m_mcu_response_latch, FUNC(generic_latch_8_device::read)); + map(0x3000, 0x3000).w(FUNC(changyu2_state::mcu_ctrl_w)); map(0x6000, 0xffff).rom().region("boot_rom", 0x6000); } -void changyu_state::prog2_map(address_map &map) -{ - - map(0x0000, 0xfff).rom().region("mcu", 0); -} - - -void changyu_state::ext2_map(address_map &map) +void changyu2_state::ext2_map(address_map &map) { + map(0x0300, 0x0300).r(FUNC(changyu2_state::mcu_cmd_r)); + map(0x0400, 0x0400).w(m_mcu_response_latch, FUNC(generic_latch_8_device::write)); map(0x0502, 0x0503).w("ay", FUNC(ay8910_device::data_address_w)); } @@ -189,6 +278,99 @@ static INPUT_PORTS_START( changyu ) PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) PORT_START("IN1") + PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_GAMBLE_D_UP ) + PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) // enables some kind of meters in-game + PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_GAMBLE_TAKE ) + PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) + PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_SERVICE1 ) // resets on attract, no effect in gameplay? + PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) + PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_MEMORY_RESET ) PORT_NAME("Clear Meters") // in bookkeeping menu + PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) + + PORT_START("IN2") + PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_GAMBLE_STAND ) PORT_NAME("Stand / Pass") + PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SLOT_STOP_ALL ) PORT_NAME("Bet All") + PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_GAMBLE_PAYOUT ) + PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_GAMBLE_KEYOUT ) + PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_GAMBLE_BOOK ) + PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_GAMBLE_LOW ) PORT_NAME("Small") + PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START1 ) PORT_NAME("Start / Hit") + PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_GAMBLE_HIGH ) PORT_NAME("Big") + + PORT_START("IN3") + PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SLOT_STOP3 ) PORT_NAME("Bet 3") + PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) + PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SLOT_STOP1 ) PORT_NAME("Bet 1") + PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_COIN1 ) + PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN ) + PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_SLOT_STOP2 ) PORT_NAME("Bet 2") + PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) + PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_GAMBLE_KEYIN ) + + PORT_START("DSW0") // dips' listing available + PORT_DIPUNKNOWN_DIPLOC(0x01, 0x01, "SW0:1") + PORT_DIPUNKNOWN_DIPLOC(0x02, 0x02, "SW0:2") + PORT_DIPUNKNOWN_DIPLOC(0x04, 0x04, "SW0:3") + PORT_DIPUNKNOWN_DIPLOC(0x08, 0x08, "SW0:4") + PORT_DIPUNKNOWN_DIPLOC(0x10, 0x10, "SW0:5") + PORT_DIPUNKNOWN_DIPLOC(0x20, 0x20, "SW0:6") + PORT_DIPUNKNOWN_DIPLOC(0x40, 0x40, "SW0:7") + PORT_DIPUNKNOWN_DIPLOC(0x80, 0x80, "SW0:8") + + PORT_START("DSW1") + PORT_DIPUNKNOWN_DIPLOC(0x01, 0x01, "SW1:1") + PORT_DIPUNKNOWN_DIPLOC(0x02, 0x02, "SW1:2") + PORT_DIPUNKNOWN_DIPLOC(0x04, 0x04, "SW1:3") + PORT_DIPUNKNOWN_DIPLOC(0x08, 0x08, "SW1:4") + PORT_DIPUNKNOWN_DIPLOC(0x10, 0x10, "SW1:5") + PORT_DIPUNKNOWN_DIPLOC(0x20, 0x20, "SW1:6") + PORT_DIPUNKNOWN_DIPLOC(0x40, 0x40, "SW1:7") + PORT_DIPUNKNOWN_DIPLOC(0x80, 0x80, "SW1:8") + + PORT_START("DSW2") + PORT_DIPUNKNOWN_DIPLOC(0x01, 0x01, "SW2:1") + PORT_DIPUNKNOWN_DIPLOC(0x02, 0x02, "SW2:2") + PORT_DIPUNKNOWN_DIPLOC(0x04, 0x04, "SW2:3") + PORT_DIPUNKNOWN_DIPLOC(0x08, 0x08, "SW2:4") + PORT_DIPUNKNOWN_DIPLOC(0x10, 0x10, "SW2:5") + PORT_DIPUNKNOWN_DIPLOC(0x20, 0x20, "SW2:6") + PORT_DIPUNKNOWN_DIPLOC(0x40, 0x40, "SW2:7") + PORT_DIPUNKNOWN_DIPLOC(0x80, 0x80, "SW2:8") +INPUT_PORTS_END + +// similar to above, with some shuffling. +static INPUT_PORTS_START( changyu2 ) + PORT_START("IN0") + PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) + PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) + PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_GAMBLE_PAYOUT ) + PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_GAMBLE_KEYOUT ) + PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_GAMBLE_BOOK ) + PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_GAMBLE_LOW ) PORT_NAME("Small") + PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START1 ) PORT_NAME("Start / Hit") + PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_GAMBLE_HIGH ) PORT_NAME("Big") + + PORT_START("IN1") + PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_GAMBLE_D_UP ) + PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) + PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_GAMBLE_TAKE ) + PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) + PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN ) // freezes with no cards when soft reset if high + PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) + PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_MEMORY_RESET ) PORT_NAME("Clear Meters") + PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) + + PORT_START("IN2") + PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_GAMBLE_STAND ) PORT_NAME("Stand / Pass") + PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SLOT_STOP_ALL ) PORT_NAME("Bet All") + PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SLOT_STOP1 ) PORT_NAME("Bet 1") + PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_COIN1 ) + PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_SLOT_STOP2 ) PORT_NAME("Bet 2") + PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_SLOT_STOP3 ) PORT_NAME("Bet 3") + PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) + PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_GAMBLE_KEYIN ) + + PORT_START("IN3") PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) @@ -198,7 +380,7 @@ static INPUT_PORTS_START( changyu ) PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) - PORT_START("DSW0") // dips' listing available + PORT_START("DSW0") PORT_DIPUNKNOWN_DIPLOC(0x01, 0x01, "SW0:1") PORT_DIPUNKNOWN_DIPLOC(0x02, 0x02, "SW0:2") PORT_DIPUNKNOWN_DIPLOC(0x04, 0x04, "SW0:3") @@ -230,10 +412,18 @@ static INPUT_PORTS_START( changyu ) INPUT_PORTS_END + void changyu_state::machine_start() { } +void changyu2_state::machine_start() +{ + changyu_state::machine_start(); + + save_item(NAME(m_mcu_cmd)); +} + static GFXDECODE_START( gfx_changyu ) GFXDECODE_ENTRY( "gfx1", 0, gfx_8x8x4_planar, 0, 16 ) GFXDECODE_END @@ -267,22 +457,24 @@ void changyu_state::changyu(machine_config &config) /* sound hardware */ SPEAKER(config, "mono").front_center(); - AY8910(config, "ay", XTAL(12'000'000 / 6)).add_route(ALL_OUTPUTS, "mono", 1.00); // divisor not verified + AY8910(config, "ay", XTAL(12'000'000 / 6)).add_route(ALL_OUTPUTS, "mono", 0.9); // divisor not verified - HC55516(config, "voice", XTAL(12'000'000 / 6)).add_route(ALL_OUTPUTS, "mono", 1.00); // UM5100 is a HC55536 with ROM hook-up, divisor not verified + HC55516(config, "voice", XTAL(12'000'000 / 6)).add_route(ALL_OUTPUTS, "mono", 0.9); // UM5100 is a HC55536 with ROM hook-up, divisor not verified } -void changyu_state::changyu2(machine_config &config) +void changyu2_state::changyu2(machine_config &config) { changyu(config); - m_maincpu->set_addrmap(AS_PROGRAM, &changyu_state::main2_map); - I87C51(config.replace(), m_mcu, XTAL(8'000'000)); -// m_mcu->set_disable(); - m_mcu->set_addrmap(AS_PROGRAM, &changyu_state::prog2_map); - m_mcu->set_addrmap(AS_IO, &changyu_state::ext2_map); + m_maincpu->set_addrmap(AS_PROGRAM, &changyu2_state::main2_map); + + auto &mcu(I87C51(config.replace(), m_mcu, XTAL(8'000'000))); + mcu.set_addrmap(AS_IO, &changyu2_state::ext2_map); + mcu.port_in_cb<0>().set(FUNC(changyu2_state::mcu_p1_r)); + + GENERIC_LATCH_8(config, m_mcu_response_latch); - YM2413(config, "ymsnd", 3.579545_MHz_XTAL).add_route(ALL_OUTPUTS, "mono", 1.0); + YM2413(config, "ymsnd", 3.579545_MHz_XTAL).add_route(ALL_OUTPUTS, "mono", 0.9); } ROM_START( changyu ) @@ -353,5 +545,6 @@ ROM_END } // anonymous namespace -GAME( 1989, changyu, 0, changyu, changyu, changyu_state, empty_init, ROT0, "Chang Yu Electronic", "unknown Chang Yu Electronic gambling game 1", MACHINE_IS_SKELETON ) // Wing Co. in GFX1, year taken from start of maincpu ROM -GAME( 19??, changyu2, 0, changyu2, changyu, changyu_state, empty_init, ROT0, "Chang Yu Electronic", "unknown Chang Yu Electronic gambling game 2", MACHINE_IS_SKELETON ) // Wing Co. in GFX1 +// No copyright for both, are these really bootlegs? +GAME( 1989, changyu, 0, changyu, changyu, changyu_state, empty_init, ROT0, "Chang Yu Electronic", "Mayo no 21", MACHINE_NOT_WORKING | MACHINE_NO_SOUND ) // Wing Co. in GFX1, year taken from start of maincpu ROM +GAME( 19??, changyu2, 0, changyu2, changyu2,changyu2_state, empty_init, ROT0, "Chang Yu Electronic", "999", MACHINE_NOT_WORKING ) // Wing Co. in GFX1 diff --git a/src/mame/misc/chicago.cpp b/src/mame/misc/chicago.cpp index 188f138cb03..5f98d1e8b2a 100644 --- a/src/mame/misc/chicago.cpp +++ b/src/mame/misc/chicago.cpp @@ -60,10 +60,10 @@ class chicago_state : public driver_device protected: // driver_device overrides - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: diff --git a/src/mame/misc/chsuper.cpp b/src/mame/misc/chsuper.cpp index d087104af2b..fcd33a78693 100644 --- a/src/mame/misc/chsuper.cpp +++ b/src/mame/misc/chsuper.cpp @@ -59,7 +59,7 @@ class chsuper_state : public driver_device protected: virtual void machine_start() override { m_lamps.resolve(); } - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: int m_tilexor = 0; @@ -78,10 +78,10 @@ class chsuper_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void losttrea_portmap(address_map &map); - void portmap(address_map &map); - void prg_map(address_map &map); - void ramdac_map(address_map &map); + void losttrea_portmap(address_map &map) ATTR_COLD; + void portmap(address_map &map) ATTR_COLD; + void prg_map(address_map &map) ATTR_COLD; + void ramdac_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/misc/cleartone.cpp b/src/mame/misc/cleartone.cpp index 65b1545f8a8..c6c83d7a0db 100644 --- a/src/mame/misc/cleartone.cpp +++ b/src/mame/misc/cleartone.cpp @@ -33,8 +33,8 @@ class cleartone_state : public driver_device required_device m_maincpu; required_device m_digitalker; - void program_map(address_map &map); - void io_map(address_map &map); + void program_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/misc/clowndwn.cpp b/src/mame/misc/clowndwn.cpp index b9e524bd99d..48f681c7dc8 100644 --- a/src/mame/misc/clowndwn.cpp +++ b/src/mame/misc/clowndwn.cpp @@ -25,12 +25,12 @@ class clowndwn_state : public driver_device , m_maincpu(*this, "maincpu") { } - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; required_device m_maincpu; void clowndwn(machine_config &config); - void clowndwn_map(address_map &map); + void clowndwn_map(address_map &map) ATTR_COLD; }; void clowndwn_state::clowndwn_map(address_map &map) diff --git a/src/mame/misc/clpoker.cpp b/src/mame/misc/clpoker.cpp index 3ed3421ad95..bf292c047d2 100644 --- a/src/mame/misc/clpoker.cpp +++ b/src/mame/misc/clpoker.cpp @@ -57,7 +57,7 @@ class clpoker_state : public driver_device void clpoker(machine_config &config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: void output_a_w(u8 data); @@ -69,9 +69,9 @@ class clpoker_state : public driver_device u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void io_map(address_map &map); - void prg_map(address_map &map); - void ramdac_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void prg_map(address_map &map) ATTR_COLD; + void ramdac_map(address_map &map) ATTR_COLD; TILE_GET_INFO_MEMBER(get_bg_tile_info); TILE_GET_INFO_MEMBER(get_fg_tile_info); diff --git a/src/mame/misc/cocoloco.cpp b/src/mame/misc/cocoloco.cpp index 967e70f1983..e3ccd2660a7 100644 --- a/src/mame/misc/cocoloco.cpp +++ b/src/mame/misc/cocoloco.cpp @@ -209,7 +209,7 @@ class cocoloco_state : public driver_device void cocoloco(machine_config &config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -227,7 +227,7 @@ class cocoloco_state : public driver_device void cocoloco_palette(palette_device &palette) const; uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void cocoloco_map(address_map &map); + void cocoloco_map(address_map &map) ATTR_COLD; }; /*********************************** diff --git a/src/mame/misc/coinmstr.cpp b/src/mame/misc/coinmstr.cpp index f3c2fd2ada8..a578a8a1b61 100644 --- a/src/mame/misc/coinmstr.cpp +++ b/src/mame/misc/coinmstr.cpp @@ -170,7 +170,7 @@ class coinmstr_state : public driver_device void init_coinmstr(); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: required_shared_ptr m_videoram; @@ -195,14 +195,14 @@ class coinmstr_state : public driver_device TILE_GET_INFO_MEMBER(get_bg_tile_info); uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void coinmstr_map(address_map &map); - void jpcoin_io_map(address_map &map); - void jpcoin_map(address_map &map); - void jpjcoin_io_map(address_map &map); - void pokeroul_io_map(address_map &map); - void quizmstr_io_map(address_map &map); - void supnudg2_io_map(address_map &map); - void trailblz_io_map(address_map &map); + void coinmstr_map(address_map &map) ATTR_COLD; + void jpcoin_io_map(address_map &map) ATTR_COLD; + void jpcoin_map(address_map &map) ATTR_COLD; + void jpjcoin_io_map(address_map &map) ATTR_COLD; + void pokeroul_io_map(address_map &map) ATTR_COLD; + void quizmstr_io_map(address_map &map) ATTR_COLD; + void supnudg2_io_map(address_map &map) ATTR_COLD; + void trailblz_io_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/misc/coinmvga.cpp b/src/mame/misc/coinmvga.cpp index 8d2bf031e90..48fa2fcb823 100644 --- a/src/mame/misc/coinmvga.cpp +++ b/src/mame/misc/coinmvga.cpp @@ -255,7 +255,7 @@ class coinmvga_state : public driver_device void coinmvga(machine_config &config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: uint8_t i2c_r(); @@ -269,9 +269,9 @@ class coinmvga_state : public driver_device required_device_array m_gfxdecode; required_device_array m_palette; - void coinmvga_map(address_map &map); - void ramdac2_map(address_map &map); - void ramdac_map(address_map &map); + void coinmvga_map(address_map &map) ATTR_COLD; + void ramdac2_map(address_map &map) ATTR_COLD; + void ramdac_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/misc/cointek.cpp b/src/mame/misc/cointek.cpp index 69395b22d49..026eb3d1be1 100644 --- a/src/mame/misc/cointek.cpp +++ b/src/mame/misc/cointek.cpp @@ -60,11 +60,11 @@ class cointek_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void audio_io_map(address_map &map); - void audio_opcodes_map(address_map &map); - void audio_prg_map(address_map &map); - void io_map(address_map &map); - void prg_map(address_map &map); + void audio_io_map(address_map &map) ATTR_COLD; + void audio_opcodes_map(address_map &map) ATTR_COLD; + void audio_prg_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; + void prg_map(address_map &map) ATTR_COLD; }; uint32_t cointek_state::screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect) diff --git a/src/mame/misc/comebaby.cpp b/src/mame/misc/comebaby.cpp index 778c7f6f487..3380835c460 100644 --- a/src/mame/misc/comebaby.cpp +++ b/src/mame/misc/comebaby.cpp @@ -230,7 +230,7 @@ class comebaby_state : public driver_device // optional for making the compile switch to work optional_device m_voodoo3; - void comebaby_map(address_map &map); + void comebaby_map(address_map &map) ATTR_COLD; static void superio_config(device_t *device); }; diff --git a/src/mame/misc/coolpool.h b/src/mame/misc/coolpool.h index 79923b709f8..574e971eebd 100644 --- a/src/mame/misc/coolpool.h +++ b/src/mame/misc/coolpool.h @@ -27,8 +27,8 @@ class coolpool_base_state : public driver_device , m_dsp_rom(*this, "dspdata") { } - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; static constexpr unsigned NVRAM_UNLOCK_SEQ_LEN = 10; @@ -86,7 +86,7 @@ class amerdart_state : public coolpool_base_state void amerdart(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_palette; @@ -106,9 +106,9 @@ class amerdart_state : public coolpool_base_state int amerdart_trackball_direction(int num, int data); - void dsp_io_map(address_map &map); - void dsp_pgm_map(address_map &map); - void main_map(address_map &map); + void dsp_io_map(address_map &map) ATTR_COLD; + void dsp_pgm_map(address_map &map) ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; }; class _9ballsht_state : public coolpool_base_state @@ -132,12 +132,12 @@ class _9ballsht_state : public coolpool_base_state TMS340X0_SCANLINE_RGB32_CB_MEMBER(scanline); - void dsp_io_base_map(address_map &map); - void dsp_pgm_map(address_map &map); + void dsp_io_base_map(address_map &map) ATTR_COLD; + void dsp_pgm_map(address_map &map) ATTR_COLD; private: - void nballsht_dsp_io_map(address_map &map); - void nballsht_map(address_map &map); + void nballsht_dsp_io_map(address_map &map) ATTR_COLD; + void nballsht_map(address_map &map) ATTR_COLD; }; class coolpool_state : public _9ballsht_state @@ -159,8 +159,8 @@ class coolpool_state : public _9ballsht_state uint16_t coolpool_input_r(offs_t offset); - void coolpool_dsp_io_map(address_map &map); - void coolpool_map(address_map &map); + void coolpool_dsp_io_map(address_map &map) ATTR_COLD; + void coolpool_map(address_map &map) ATTR_COLD; }; #endif // MAME_MISC_COOLPOOL_H diff --git a/src/mame/misc/corona.cpp b/src/mame/misc/corona.cpp index 3137c10cedb..06bf6cd7863 100644 --- a/src/mame/misc/corona.cpp +++ b/src/mame/misc/corona.cpp @@ -358,7 +358,7 @@ class corona_state : public driver_device protected: virtual void machine_start() override { m_lamps.resolve(); } - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: void blitter_y_w(uint8_t data); @@ -377,22 +377,22 @@ class corona_state : public driver_device void corona_palette(palette_device &palette) const; uint32_t screen_update_winner(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); uint32_t screen_update_luckyrlt(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void luckyrlt_cpu_io_map(address_map &map); - void luckyrlt_map(address_map &map); - void luckyrlt_sound_cpu_io_map(address_map &map); - void luckyrlt_sound_map(address_map &map); - void re800_cpu_io_map(address_map &map); - void re800_map(address_map &map); - void re800_sound_cpu_io_map(address_map &map); - void re800_sound_map(address_map &map); - void winner81_cpu_io_map(address_map &map); - void winner81_map(address_map &map); - void winner81_sound_cpu_io_map(address_map &map); - void winner81_sound_map(address_map &map); - void winner82_cpu_io_map(address_map &map); - void winner82_map(address_map &map); - void winner82_sound_cpu_io_map(address_map &map); - void winner82_sound_map(address_map &map); + void luckyrlt_cpu_io_map(address_map &map) ATTR_COLD; + void luckyrlt_map(address_map &map) ATTR_COLD; + void luckyrlt_sound_cpu_io_map(address_map &map) ATTR_COLD; + void luckyrlt_sound_map(address_map &map) ATTR_COLD; + void re800_cpu_io_map(address_map &map) ATTR_COLD; + void re800_map(address_map &map) ATTR_COLD; + void re800_sound_cpu_io_map(address_map &map) ATTR_COLD; + void re800_sound_map(address_map &map) ATTR_COLD; + void winner81_cpu_io_map(address_map &map) ATTR_COLD; + void winner81_map(address_map &map) ATTR_COLD; + void winner81_sound_cpu_io_map(address_map &map) ATTR_COLD; + void winner81_sound_map(address_map &map) ATTR_COLD; + void winner82_cpu_io_map(address_map &map) ATTR_COLD; + void winner82_map(address_map &map) ATTR_COLD; + void winner82_sound_cpu_io_map(address_map &map) ATTR_COLD; + void winner82_sound_map(address_map &map) ATTR_COLD; uint8_t m_blitter_x_reg = 0; uint8_t m_blitter_y_reg = 0; diff --git a/src/mame/misc/cowtipping.cpp b/src/mame/misc/cowtipping.cpp index fab09811389..543341fdab3 100644 --- a/src/mame/misc/cowtipping.cpp +++ b/src/mame/misc/cowtipping.cpp @@ -51,14 +51,14 @@ class cowtipping_state : public driver_device void cowtipping(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_maincpu; uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/misc/crazybal.cpp b/src/mame/misc/crazybal.cpp index dd5af32605d..73b66e4bd78 100644 --- a/src/mame/misc/crazybal.cpp +++ b/src/mame/misc/crazybal.cpp @@ -60,10 +60,10 @@ class crazybal_state : public driver_device void crazybal(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -112,7 +112,8 @@ void crazybal_state::crazybal(machine_config &config) } -ROM_START( crazybal ) // EGS 113 + EGS 114 PCBs +// EGS 113 + EGS 114 PCBs +ROM_START( crazybal ) ROM_REGION( 0x1000, "maincpu", ROMREGION_ERASE00 ) ROM_REGION( 0x0600, "mainpcb_proms", ROMREGION_ERASE00 ) // all Sn74S287N @@ -127,7 +128,8 @@ ROM_START( crazybal ) // EGS 113 + EGS 114 PCBs ROM_LOAD( "3.12l", 0x000, 0x100, CRC(e2ca8670) SHA1(60bc4be4185c50a9afd3a28d1fb9e8f46c93764a) ) // Sn74S287N ROM_END -ROM_START( crazybala ) // EGS 106 + EGS 107 PCBs (found in a cabinet distributed by Bontempi) +// EGS 106 + EGS 107 PCBs (found in a cabinet distributed by Bontempi) +ROM_START( crazybala ) ROM_REGION( 0x1000, "maincpu", ROMREGION_ERASE00 ) ROM_REGION( 0x0340, "mainpcb_proms", ROMREGION_ERASE00 ) @@ -138,8 +140,22 @@ ROM_START( crazybala ) // EGS 106 + EGS 107 PCBs (found in a cabinet distributed ROM_LOAD( "74s188.6h", 0x320, 0x020, CRC(7b4b2f9f) SHA1(96b4a90e3c51582434e0eca1c3701cc2183dd372) ) ROM_END +// EGS 106 + EGS 107 PCBs. Only one PROM (at 4G) differs from the other set on this hw version. +// It affects the shape of the 6 bumpers in the middle of the screen. +ROM_START( crazybalb ) + ROM_REGION( 0x1000, "maincpu", ROMREGION_ERASE00 ) + + ROM_REGION( 0x0340, "mainpcb_proms", ROMREGION_ERASE00 ) + ROM_LOAD( "mmi6331.12c", 0x000, 0x100, CRC(1f05c2df) SHA1(189e90ca29ef043ed1d4640aed3fa472a4e26da8) ) + ROM_LOAD( "mmi6331.12d", 0x100, 0x100, CRC(f1d7a030) SHA1(697cf26dbfbd6207cb1dd2e098d6dba9b0bdbaf3) ) + ROM_LOAD( "mmi6331.13e", 0x200, 0x100, CRC(57280959) SHA1(8162d9868e8367ba4c21712dc275ce4888cfbc70) ) + ROM_LOAD( "74s188.4g", 0x300, 0x020, CRC(fd10b3e7) SHA1(b5464d198f08d770a781ee284ba56987d1bcff12) ) + ROM_LOAD( "74s188.6h", 0x320, 0x020, CRC(7b4b2f9f) SHA1(96b4a90e3c51582434e0eca1c3701cc2183dd372) ) +ROM_END + } // anonymous namespace -GAME( 1978, crazybal, 0, crazybal, 0, crazybal_state, empty_init, ROT0, "Electronic Games Systems / NAT", "Crazy Balls (NAT)", MACHINE_IS_SKELETON ) -GAME( 1978, crazybala, crazybal, crazybal, 0, crazybal_state, empty_init, ROT0, "Electronic Games Systems / Bontempi", "Crazy Balls (Bontempi)", MACHINE_IS_SKELETON ) +GAME( 1978, crazybal, 0, crazybal, 0, crazybal_state, empty_init, ROT0, "Electronic Games Systems / NAT", "Crazy Balls (NAT)", MACHINE_IS_SKELETON ) +GAME( 1978, crazybala, crazybal, crazybal, 0, crazybal_state, empty_init, ROT0, "Electronic Games Systems / Bontempi", "Crazy Balls (Bontempi, set 1)", MACHINE_IS_SKELETON ) +GAME( 1978, crazybalb, crazybal, crazybal, 0, crazybal_state, empty_init, ROT0, "Electronic Games Systems / Bontempi", "Crazy Balls (Bontempi, set 2)", MACHINE_IS_SKELETON ) diff --git a/src/mame/misc/cromptons.cpp b/src/mame/misc/cromptons.cpp index ef64e14cb1b..2ac3abb817e 100644 --- a/src/mame/misc/cromptons.cpp +++ b/src/mame/misc/cromptons.cpp @@ -47,7 +47,7 @@ class cromptons_state : public driver_device void cromptons(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: u8 port_r(); @@ -57,8 +57,8 @@ class cromptons_state : public driver_device required_device_array m_outlatch; required_ioport_array<4> m_inputs; - void prg_map(address_map &map); - void io_map(address_map &map); + void prg_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; u8 m_port_select = 0; }; diff --git a/src/mame/misc/crospuzl.cpp b/src/mame/misc/crospuzl.cpp index d1126b215f2..7e6d9136c19 100644 --- a/src/mame/misc/crospuzl.cpp +++ b/src/mame/misc/crospuzl.cpp @@ -79,9 +79,9 @@ class crospuzl_state : public driver_device void FlashCmd_w(uint8_t data); void FlashAddr_w(uint8_t data); - virtual void machine_start() override; - virtual void machine_reset() override; - void crospuzl_mem(address_map &map); + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + void crospuzl_mem(address_map &map) ATTR_COLD; // PIO uint32_t m_PIO = 0; diff --git a/src/mame/misc/crystal.cpp b/src/mame/misc/crystal.cpp index 700cefe23e1..b67eac5e36d 100644 --- a/src/mame/misc/crystal.cpp +++ b/src/mame/misc/crystal.cpp @@ -175,8 +175,8 @@ class crystal_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(coin_inserted); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: // memory pointers @@ -207,7 +207,7 @@ class crystal_state : public driver_device void coin_counters_w(uint8_t data); void patchreset(); - void crystal_mem(address_map &map); + void crystal_mem(address_map &map) ATTR_COLD; // PIO uint32_t pioldat_r(); diff --git a/src/mame/misc/ctvboy.cpp b/src/mame/misc/ctvboy.cpp index f06d2f01930..f0f7151c39d 100644 --- a/src/mame/misc/ctvboy.cpp +++ b/src/mame/misc/ctvboy.cpp @@ -53,7 +53,7 @@ class ctvboy_state : public driver_device void ctvboy(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_maincpu; @@ -71,7 +71,7 @@ class ctvboy_state : public driver_device void speaker_decay_sim(s32 param); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; DECLARE_DEVICE_IMAGE_LOAD_MEMBER(cart_load); void p1_w(u8 data); diff --git a/src/mame/misc/cubeqst.cpp b/src/mame/misc/cubeqst.cpp index 7b0831f46be..79397b29611 100644 --- a/src/mame/misc/cubeqst.cpp +++ b/src/mame/misc/cubeqst.cpp @@ -50,9 +50,9 @@ class cubeqst_state : public driver_device void cubeqst(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_laserdisc; @@ -90,9 +90,9 @@ class cubeqst_state : public driver_device void vblank_irq(int state); TIMER_CALLBACK_MEMBER(delayed_bank_swap); void swap_linecpu_banks(); - void line_sound_map(address_map &map); - void m68k_program_map(address_map &map); - void rotate_map(address_map &map); + void line_sound_map(address_map &map) ATTR_COLD; + void m68k_program_map(address_map &map) ATTR_COLD; + void rotate_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/misc/cupidon.cpp b/src/mame/misc/cupidon.cpp index 1478ef7d9d9..59e39ae4694 100644 --- a/src/mame/misc/cupidon.cpp +++ b/src/mame/misc/cupidon.cpp @@ -35,7 +35,7 @@ class cupidon_state : public driver_device void init_funnyfm(); void cupidon(machine_config &config); - void cupidon_map(address_map &map); + void cupidon_map(address_map &map) ATTR_COLD; protected: // devices diff --git a/src/mame/misc/cybertnk.cpp b/src/mame/misc/cybertnk.cpp index 7f8150d71d1..b411548fbbd 100644 --- a/src/mame/misc/cybertnk.cpp +++ b/src/mame/misc/cybertnk.cpp @@ -209,7 +209,7 @@ class cybertnk_state : public driver_device void cybertnk(machine_config &config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -246,9 +246,9 @@ class cybertnk_state : public driver_device uint32_t update_screen(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, int screen_shift); uint32_t screen_update_cybertnk_left(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); uint32_t screen_update_cybertnk_right(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void master_mem(address_map &map); - void slave_mem(address_map &map); - void sound_mem(address_map &map); + void master_mem(address_map &map) ATTR_COLD; + void slave_mem(address_map &map) ATTR_COLD; + void sound_mem(address_map &map) ATTR_COLD; }; /* tile format diff --git a/src/mame/misc/daryde.cpp b/src/mame/misc/daryde.cpp index 618bd171b23..8323f066e85 100644 --- a/src/mame/misc/daryde.cpp +++ b/src/mame/misc/daryde.cpp @@ -24,8 +24,8 @@ class daryde_state : public driver_device void pandart(machine_config &config); private: - void mem_map(address_map &map); - void io_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; }; void daryde_state::mem_map(address_map &map) diff --git a/src/mame/misc/dcheese.h b/src/mame/misc/dcheese.h index 9b5ba33cfcb..fa6d8dc669e 100644 --- a/src/mame/misc/dcheese.h +++ b/src/mame/misc/dcheese.h @@ -37,8 +37,8 @@ class dcheese_state : public driver_device void dcheese(machine_config &config); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_region_ptr m_palrom; @@ -90,9 +90,9 @@ class dcheese_state : public driver_device void do_clear(); void do_blit(); - void main_cpu_map(address_map &map); - void main_fc7_map(address_map &map); - void sound_cpu_map(address_map &map); + void main_cpu_map(address_map &map) ATTR_COLD; + void main_fc7_map(address_map &map) ATTR_COLD; + void sound_cpu_map(address_map &map) ATTR_COLD; }; #endif // MAME_MISC_DCHEESE_H diff --git a/src/mame/misc/ddz.cpp b/src/mame/misc/ddz.cpp index 1a2af9247bd..2e4c0b14901 100644 --- a/src/mame/misc/ddz.cpp +++ b/src/mame/misc/ddz.cpp @@ -72,8 +72,8 @@ class ddz_state : public driver_device void ddz(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: // memory pointers @@ -84,7 +84,7 @@ class ddz_state : public driver_device required_device m_maincpu; required_device m_vr0soc; - void ddz_mem(address_map &map); + void ddz_mem(address_map &map) ATTR_COLD; }; diff --git a/src/mame/misc/dfruit.cpp b/src/mame/misc/dfruit.cpp index 780c208db1b..ebe7ba95387 100644 --- a/src/mame/misc/dfruit.cpp +++ b/src/mame/misc/dfruit.cpp @@ -47,8 +47,8 @@ class dfruit_state : public driver_device void output_w(uint8_t data); TIMER_DEVICE_CALLBACK_MEMBER(scanline_cb); - void main_map(address_map &map); - void tc0091lvc_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void tc0091lvc_map(address_map &map) ATTR_COLD; }; void dfruit_state::screen_vblank(int state) diff --git a/src/mame/misc/dgpix.cpp b/src/mame/misc/dgpix.cpp index 70395149be9..b3ac5cab915 100644 --- a/src/mame/misc/dgpix.cpp +++ b/src/mame/misc/dgpix.cpp @@ -182,13 +182,13 @@ class dgpix_state : public driver_device { } protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; void dgpix_base(machine_config &config); - void base_map(address_map &map); + void base_map(address_map &map) ATTR_COLD; u16 flash_r(offs_t offset); void flash_w(offs_t offset, u16 data, u16 mem_mask = ~0); @@ -199,7 +199,7 @@ class dgpix_state : public driver_device private: u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void io_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; void vram_w(offs_t offset, u16 data, u16 mem_mask = ~0); u16 vram_r(offs_t offset); @@ -244,7 +244,7 @@ class dgpix_typea_state : public dgpix_state void init_fmaniac3(); private: - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; }; @@ -262,10 +262,10 @@ class dgpix_bmkey_state : public dgpix_state void init_btplay2k(); protected: - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; private: - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; void sound_bank_w(u16 data); diff --git a/src/mame/misc/discoboy.cpp b/src/mame/misc/discoboy.cpp index 062b6708970..2d232eb744b 100644 --- a/src/mame/misc/discoboy.cpp +++ b/src/mame/misc/discoboy.cpp @@ -89,8 +89,8 @@ class discoboy_state : public driver_device void discoboy(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: // video-related @@ -126,9 +126,9 @@ class discoboy_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); void adpcm_int(int state); - void main_prg_map(address_map &map); - void io_map(address_map &map); - void sound_prg_map(address_map &map); + void main_prg_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; + void sound_prg_map(address_map &map) ATTR_COLD; }; void discoboy_state::draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect) diff --git a/src/mame/misc/dominob.cpp b/src/mame/misc/dominob.cpp index b2f539876da..13f9e95ec01 100644 --- a/src/mame/misc/dominob.cpp +++ b/src/mame/misc/dominob.cpp @@ -88,7 +88,7 @@ class dominob_state : public driver_device void dominob(machine_config &config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: /* memory pointers */ @@ -108,8 +108,8 @@ class dominob_state : public driver_device uint8_t dominob_unk_port02_r(); uint32_t screen_update_dominob(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect ); - void memmap(address_map &map); - void portmap(address_map &map); + void memmap(address_map &map) ATTR_COLD; + void portmap(address_map &map) ATTR_COLD; }; void dominob_state::video_start() diff --git a/src/mame/misc/dorachan.cpp b/src/mame/misc/dorachan.cpp index 63562e27f14..b6d58d470d8 100644 --- a/src/mame/misc/dorachan.cpp +++ b/src/mame/misc/dorachan.cpp @@ -45,15 +45,15 @@ class dorachan_state : public driver_device uint8_t protection_r(); uint8_t v128_r(); uint32_t screen_update_dorachan(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void dorachan_io_map(address_map &map); - void dorachan_map(address_map &map); + void dorachan_io_map(address_map &map) ATTR_COLD; + void dorachan_map(address_map &map) ATTR_COLD; // internal state uint8_t m_flip_screen = 0; uint16_t m_prot_value = 0; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; // devices, memory pointers required_device m_maincpu; diff --git a/src/mame/misc/drdmania.cpp b/src/mame/misc/drdmania.cpp index 39c41850de0..c1765e6d4dc 100644 --- a/src/mame/misc/drdmania.cpp +++ b/src/mame/misc/drdmania.cpp @@ -81,11 +81,11 @@ class drdmania_state : public driver_device void init_drdmania(); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: - void mem_map(address_map &map); - void io_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_screen; diff --git a/src/mame/misc/dreamwld.cpp b/src/mame/misc/dreamwld.cpp index a5e8552f019..f4b826a1e19 100644 --- a/src/mame/misc/dreamwld.cpp +++ b/src/mame/misc/dreamwld.cpp @@ -142,9 +142,9 @@ class dreamwld_state : public driver_device void dreamwld(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: /* memory pointers */ @@ -193,10 +193,10 @@ class dreamwld_state : public driver_device u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void screen_vblank(int state); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); - void baryon_map(address_map &map); - void dreamwld_map(address_map &map); - void oki1_map(address_map &map); - void oki2_map(address_map &map); + void baryon_map(address_map &map) ATTR_COLD; + void dreamwld_map(address_map &map) ATTR_COLD; + void oki1_map(address_map &map) ATTR_COLD; + void oki2_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/misc/dwarfd.cpp b/src/mame/misc/dwarfd.cpp index a8a399f8c0d..925b32163ae 100644 --- a/src/mame/misc/dwarfd.cpp +++ b/src/mame/misc/dwarfd.cpp @@ -328,8 +328,8 @@ class dwarfd_state : public driver_device void init_dwarfd(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: /* video-related */ @@ -356,11 +356,11 @@ class dwarfd_state : public driver_device I8275_DRAW_CHARACTER_MEMBER(display_pixels); I8275_DRAW_CHARACTER_MEMBER(pesp_display_pixels); I8275_DRAW_CHARACTER_MEMBER(qc_display_pixels); - void io_map(address_map &map); - void mem_map(address_map &map); - void pokeresp_map(address_map &map); - void qc_io_map(address_map &map); - void qc_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; + void pokeresp_map(address_map &map) ATTR_COLD; + void qc_io_map(address_map &map) ATTR_COLD; + void qc_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/misc/dynadice.cpp b/src/mame/misc/dynadice.cpp index cb984c5ee55..ea2e11d9f1b 100644 --- a/src/mame/misc/dynadice.cpp +++ b/src/mame/misc/dynadice.cpp @@ -63,9 +63,9 @@ class dynadice_state : public driver_device void init_dynadice(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: /* memory pointers */ @@ -91,10 +91,10 @@ class dynadice_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void dynadice_io_map(address_map &map); - void dynadice_map(address_map &map); - void dynadice_sound_io_map(address_map &map); - void dynadice_sound_map(address_map &map); + void dynadice_io_map(address_map &map) ATTR_COLD; + void dynadice_map(address_map &map) ATTR_COLD; + void dynadice_sound_io_map(address_map &map) ATTR_COLD; + void dynadice_sound_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/misc/dynamoah.cpp b/src/mame/misc/dynamoah.cpp index 5d68a2722d0..fa8766c3450 100644 --- a/src/mame/misc/dynamoah.cpp +++ b/src/mame/misc/dynamoah.cpp @@ -39,8 +39,8 @@ class dynamoah_state : public driver_device uint8_t ext_r(offs_t offset); void ext_w(offs_t offset, uint8_t data); - void i8031_mem(address_map &map); - void i8031_ext_mem(address_map &map); + void i8031_mem(address_map &map) ATTR_COLD; + void i8031_ext_mem(address_map &map) ATTR_COLD; }; void dynamoah_state::p1_w(uint8_t data) diff --git a/src/mame/misc/ecoinf1.cpp b/src/mame/misc/ecoinf1.cpp index 8cc91ed33a8..938a5d3a51d 100644 --- a/src/mame/misc/ecoinf1.cpp +++ b/src/mame/misc/ecoinf1.cpp @@ -24,8 +24,8 @@ class ecoinf1_state : public driver_device void ecoinf1_older(machine_config &config); private: - void older_memmap(address_map &map); - void older_portmap(address_map &map); + void older_memmap(address_map &map) ATTR_COLD; + void older_portmap(address_map &map) ATTR_COLD; required_device m_maincpu; }; diff --git a/src/mame/misc/ecoinf2.cpp b/src/mame/misc/ecoinf2.cpp index a0d10d76c93..0d60326c428 100644 --- a/src/mame/misc/ecoinf2.cpp +++ b/src/mame/misc/ecoinf2.cpp @@ -206,8 +206,8 @@ class ecoinf2_state : public driver_device m_coinlamp_outputs.resolve(); } - void oxo_memmap(address_map &map); - void oxo_portmap(address_map &map); + void oxo_memmap(address_map &map) ATTR_COLD; + void oxo_portmap(address_map &map) ATTR_COLD; required_device m_maincpu; required_device_array m_reels; diff --git a/src/mame/misc/ecoinf3.cpp b/src/mame/misc/ecoinf3.cpp index 24d340c80d2..cec56c36aa6 100644 --- a/src/mame/misc/ecoinf3.cpp +++ b/src/mame/misc/ecoinf3.cpp @@ -269,8 +269,8 @@ class ecoinf3_state : public driver_device void ppi8255_intf_h_write_b(uint8_t data) { logerror("%04x - ppi8255_intf_h_(used)write_b %02x\n", m_maincpu->pcbase(), data); } void ppi8255_intf_h_write_c(uint8_t data) { logerror("%04x - ppi8255_intf_h_(used)write_c %02x\n", m_maincpu->pcbase(), data); } - void pyramid_memmap(address_map &map); - void pyramid_portmap(address_map &map); + void pyramid_memmap(address_map &map) ATTR_COLD; + void pyramid_portmap(address_map &map) ATTR_COLD; required_device m_maincpu; required_device_array m_reels; diff --git a/src/mame/misc/ecoinfr.cpp b/src/mame/misc/ecoinfr.cpp index 59a64e5c9b5..3b8ef386f9a 100644 --- a/src/mame/misc/ecoinfr.cpp +++ b/src/mame/misc/ecoinfr.cpp @@ -115,7 +115,7 @@ class ecoinfr_state : public driver_device void ec_port17_out_w(uint8_t data); void ec_port18_out_w(uint8_t data); - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; virtual void machine_start() override { m_digits.resolve(); } TIMER_DEVICE_CALLBACK_MEMBER(ecoinfr_irq_timer); @@ -125,8 +125,8 @@ class ecoinfr_state : public driver_device required_device m_maincpu; required_device_array m_reel; output_finder<16> m_digits; - void memmap(address_map &map); - void portmap(address_map &map); + void memmap(address_map &map) ATTR_COLD; + void portmap(address_map &map) ATTR_COLD; }; diff --git a/src/mame/misc/efdt.h b/src/mame/misc/efdt.h index 73bcd36528b..0dd9121be78 100644 --- a/src/mame/misc/efdt.h +++ b/src/mame/misc/efdt.h @@ -26,9 +26,9 @@ class efdt_state : public driver_device void efdt(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -71,8 +71,8 @@ class efdt_state : public driver_device uint32_t screen_update_efdt(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void efdt_map(address_map &map); - void efdt_snd_map(address_map &map); + void efdt_map(address_map &map) ATTR_COLD; + void efdt_snd_map(address_map &map) ATTR_COLD; }; #endif // MAME_MISC_EFDT_H diff --git a/src/mame/misc/efg8080.cpp b/src/mame/misc/efg8080.cpp index 6dfb9cf8ab6..d2dac6523d5 100644 --- a/src/mame/misc/efg8080.cpp +++ b/src/mame/misc/efg8080.cpp @@ -55,7 +55,7 @@ class efg_state : public driver_device void blackhol(machine_config &config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -70,10 +70,10 @@ class efg_state : public driver_device u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); TILE_GET_INFO_MEMBER(get_tile_info); - void foolrace_map(address_map &map); - void foolrace_io(address_map &map); - void blackhol_map(address_map &map); - void blackhol_io(address_map &map); + void foolrace_map(address_map &map) ATTR_COLD; + void foolrace_io(address_map &map) ATTR_COLD; + void blackhol_map(address_map &map) ATTR_COLD; + void blackhol_io(address_map &map) ATTR_COLD; }; diff --git a/src/mame/misc/electra.cpp b/src/mame/misc/electra.cpp index c83966a9b45..1c02ccb287a 100644 --- a/src/mame/misc/electra.cpp +++ b/src/mame/misc/electra.cpp @@ -63,10 +63,10 @@ class electra_state : public driver_device required_device m_video; // driver_device overrides - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; }; diff --git a/src/mame/misc/enigma2.cpp b/src/mame/misc/enigma2.cpp index 1b0368d3743..977fbc4f781 100644 --- a/src/mame/misc/enigma2.cpp +++ b/src/mame/misc/enigma2.cpp @@ -188,8 +188,8 @@ class enigma2_state : public driver_device ioport_value p2_controls_r(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; @@ -223,10 +223,10 @@ class enigma2_state : public driver_device void create_interrupt_timers(); void start_interrupt_timers(); - void enigma2_audio_cpu_map(address_map &map); - void enigma2_main_cpu_map(address_map &map); - void enigma2a_main_cpu_io_map(address_map &map); - void enigma2a_main_cpu_map(address_map &map); + void enigma2_audio_cpu_map(address_map &map) ATTR_COLD; + void enigma2_main_cpu_map(address_map &map) ATTR_COLD; + void enigma2a_main_cpu_io_map(address_map &map) ATTR_COLD; + void enigma2a_main_cpu_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/misc/epos.cpp b/src/mame/misc/epos.cpp index 6c64a5768a1..e8823df04b8 100644 --- a/src/mame/misc/epos.cpp +++ b/src/mame/misc/epos.cpp @@ -96,8 +96,8 @@ class epos_base_state : public driver_device { } protected: - virtual void video_start() override; - virtual void video_reset() override; + virtual void video_start() override ATTR_COLD; + virtual void video_reset() override ATTR_COLD; static void set_pal_color(palette_device &palette, uint8_t offset, uint8_t data); // TODO: convert to an RGB converter and set_format @@ -128,7 +128,7 @@ class tristar8000_state : public epos_base_state DECLARE_INPUT_CHANGED_MEMBER(coin_switch) { if (newval) m_coin_latch |= param; } protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: // I/O @@ -139,8 +139,8 @@ class tristar8000_state : public epos_base_state void coin_reset_w(uint8_t data) { m_coin_latch = 0; } void palette(palette_device &palette) const; - void io_map(address_map &map); - void prg_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void prg_map(address_map &map) ATTR_COLD; }; class tristar9000_state : public epos_base_state @@ -158,8 +158,8 @@ class tristar9000_state : public epos_base_state void init_tristar9000(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_memory_bank_array<2> m_mainbank; @@ -178,8 +178,8 @@ class tristar9000_state : public epos_base_state uint8_t ay_porta_mpx_r(); void flip_screen_w(uint8_t data); void pal_w(offs_t offset, uint8_t data); - void io_map(address_map &map); - void prg_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void prg_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/misc/esd16.cpp b/src/mame/misc/esd16.cpp index db172d6438b..1fe0f268953 100644 --- a/src/mame/misc/esd16.cpp +++ b/src/mame/misc/esd16.cpp @@ -106,9 +106,9 @@ void esd16_state::vram_w(offs_t offset, u16 data, u16 mem_mask) m_tilemap_16x16[Layer]->mark_tile_dirty(offset); } -void esd16_state::hedpanic_platform_w(u16 data) +void esd16_state::platform_w(u16 data) { - int const offsets = m_headpanic_platform_x[0] + 0x40 * m_headpanic_platform_y[0]; + int const offsets = m_platform_x[0] + 0x40 * m_platform_y[0]; m_vram[1][offsets] = data; m_tilemap[1]->mark_tile_dirty(offsets); @@ -129,36 +129,36 @@ void esd16_state::eeprom_w(u8 data) void esd16_state::io_area_dsw(address_map &map, u32 base) { - map(base + 0x0, base + 0x1).nopw(); /* Irq Ack */ + map(base + 0x0, base + 0x1).nopw(); // IRQ Ack map(base + 0x2, base + 0x3).portr("P1_P2"); map(base + 0x4, base + 0x5).portr("SYSTEM"); map(base + 0x6, base + 0x7).portr("DSW"); map(base + 0x8, base + 0x9).w(FUNC(esd16_state::tilemap0_color_w)); - map(base + 0xa, base + 0xb).nopw(); /* Unknown */ + map(base + 0xa, base + 0xb).nopw(); // Unknown map(base + 0xd, base + 0xd).w(FUNC(esd16_state::sound_command_w)); - map(base + 0xe, base + 0xf).nopw(); /* n/c */ + map(base + 0xe, base + 0xf).nopw(); // n/c } void esd16_state::io_area_eeprom(address_map &map, u32 base) { - map(base + 0x0, base + 0x1).nopw(); /* Irq Ack */ + map(base + 0x0, base + 0x1).nopw(); // IRQ Ack map(base + 0x2, base + 0x3).portr("P1_P2"); map(base + 0x4, base + 0x5).portr("SYSTEM"); map(base + 0x6, base + 0x6).r(FUNC(esd16_state::eeprom_r)); map(base + 0x8, base + 0x9).w(FUNC(esd16_state::tilemap0_color_w)); - map(base + 0xa, base + 0xb).nopw(); /* Unknown */ + map(base + 0xa, base + 0xb).nopw(); // Unknown map(base + 0xd, base + 0xd).w(FUNC(esd16_state::sound_command_w)); map(base + 0xe, base + 0xf).w(FUNC(esd16_state::eeprom_w)); } void esd16_state::vid_attr_area(address_map &map, u32 base) { - map(base + 0x0, base + 0x3).writeonly().share("scroll_0"); - map(base + 0x4, base + 0x7).writeonly().share("scroll_1"); - map(base + 0x8, base + 0x9).writeonly().share("platform_x"); - map(base + 0xa, base + 0xb).writeonly().share("platform_y"); + map(base + 0x0, base + 0x3).writeonly().share(m_scroll[0]); + map(base + 0x4, base + 0x7).writeonly().share(m_scroll[1]); + map(base + 0x8, base + 0x9).writeonly().share(m_platform_x); + map(base + 0xa, base + 0xb).writeonly().share(m_platform_y); map(base + 0xc, base + 0xd).nopw(); - map(base + 0xe, base + 0xf).writeonly().share("head_layersize"); + map(base + 0xe, base + 0xf).writeonly().share(m_layersize); } void esd16_state::palette_area(address_map &map, u32 base) @@ -168,13 +168,13 @@ void esd16_state::palette_area(address_map &map, u32 base) void esd16_state::sprite_area(address_map &map, u32 base) { - map(base + 0x000, base + 0x7ff).writeonly().share("spriteram").mirror(0x000800); + map(base + 0x000, base + 0x7ff).writeonly().share(m_spriteram).mirror(0x000800); } void esd16_state::vram_area(address_map &map, u32 base) { - map(base + 0x00000, base + 0x03fff).w(FUNC(esd16_state::vram_w<0>)).share("vram_0").mirror(0x4000); - map(base + 0x20000, base + 0x23fff).w(FUNC(esd16_state::vram_w<1>)).share("vram_1").mirror(0x4000); + map(base + 0x00000, base + 0x03fff).w(FUNC(esd16_state::vram_w<0>)).share(m_vram[0]).mirror(0x4000); + map(base + 0x20000, base + 0x23fff).w(FUNC(esd16_state::vram_w<1>)).share(m_vram[1]).mirror(0x4000); } /*** Memory Maps ***/ @@ -227,10 +227,10 @@ void esd16_state::hedpanic_map(address_map &map) vid_attr_area(map, 0xb00000); io_area_eeprom(map, 0xc00000); - map(0xd00008, 0xd00009).w(FUNC(esd16_state::hedpanic_platform_w)); // protection + map(0xd00008, 0xd00009).w(FUNC(esd16_state::platform_w)); // protection } -/* Multi Champ Deluxe, like Head Panic but different addresses */ +// Multi Champ Deluxe, like Head Panic but different addresses void esd16_state::mchampdx_map(address_map &map) { @@ -243,10 +243,10 @@ void esd16_state::mchampdx_map(address_map &map) sprite_area(map, 0x600000); vid_attr_area(map, 0x700000); - map(0xd00008, 0xd00009).w(FUNC(esd16_state::hedpanic_platform_w)); // not used in mchampdx? + map(0xd00008, 0xd00009).w(FUNC(esd16_state::platform_w)); // not used in mchampdx? } -/* Tang Tang & Deluxe 5 - like the others but again with different addresses */ +// Tang Tang & Deluxe 5 - like the others but again with different addresses void esd16_state::tangtang_map(address_map &map) { @@ -258,7 +258,7 @@ void esd16_state::tangtang_map(address_map &map) vram_area(map, 0x300000); vid_attr_area(map, 0x400000); io_area_eeprom(map, 0x500000); - map(0x600008, 0x600009).w(FUNC(esd16_state::hedpanic_platform_w)); + map(0x600008, 0x600009).w(FUNC(esd16_state::platform_w)); } @@ -278,7 +278,7 @@ void esd16_state::sound_rombank_w(u8 data) void esd16_state::sound_map(address_map &map) { map(0x0000, 0x7fff).rom(); // ROM - map(0x8000, 0xbfff).bankr("audiobank"); // Banked ROM + map(0x8000, 0xbfff).bankr(m_audiobank); // Banked ROM map(0xf800, 0xffff).ram(); // RAM } @@ -687,7 +687,7 @@ void esd16_state::machine_start() { if (m_audiobank) { - uint8_t* AUDIO = memregion("audiocpu")->base(); + u8* AUDIO = memregion("audiocpu")->base(); m_audiobank->configure_entries(0, 16, &AUDIO[0x0000], 0x4000); } @@ -710,12 +710,12 @@ DECOSPR_PRIORITY_CB_MEMBER(esd16_state::pri_callback) void esd16_state::esd16_nosound(machine_config &config) { - /* basic machine hardware */ - M68000(config, m_maincpu, XTAL(16'000'000)); /* 16MHz */ + // basic machine hardware + M68000(config, m_maincpu, XTAL(16'000'000)); // 16MHz m_maincpu->set_addrmap(AS_PROGRAM, &esd16_state::multchmp_map); m_maincpu->set_vblank_int("screen", FUNC(esd16_state::irq6_line_hold)); - /* video hardware */ + // video hardware screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_RASTER)); screen.set_refresh_hz(60); screen.set_vblank_time(ATTOSECONDS_IN_USEC(0)); @@ -739,7 +739,7 @@ void esd16_state::fantstry(machine_config& config) // PIC16F84A-04/P for sound CPU - /* sound hardware */ + // sound hardware SPEAKER(config, "mono").front_center(); OKIM6295(config, "okisfx", XTAL(16'000'000) / 8, okim6295_device::PIN7_LOW); @@ -759,51 +759,51 @@ void esd16_state::esd16(machine_config& config) { esd16_nosound(config); - Z80(config, m_audiocpu, XTAL(16'000'000)/4); /* 4MHz */ + Z80(config, m_audiocpu, XTAL(16'000'000)/4); // 4MHz m_audiocpu->set_addrmap(AS_PROGRAM, &esd16_state::sound_map); m_audiocpu->set_addrmap(AS_IO, &esd16_state::sound_io_map); - m_audiocpu->set_periodic_int(FUNC(esd16_state::nmi_line_pulse), attotime::from_hz(32*60)); /* IRQ By Main CPU */ + m_audiocpu->set_periodic_int(FUNC(esd16_state::nmi_line_pulse), attotime::from_hz(32*60)); // IRQ By Main CPU - /* sound hardware */ + // sound hardware SPEAKER(config, "mono").front_center(); GENERIC_LATCH_8(config, m_soundlatch).data_pending_callback().set_inputline(m_audiocpu, 0); - YM3812(config, "ymsnd", XTAL(16'000'000)/4).add_route(ALL_OUTPUTS, "mono", 0.30); /* 4MHz */ + YM3812(config, "ymsnd", XTAL(16'000'000)/4).add_route(ALL_OUTPUTS, "mono", 0.30); // 4MHz - OKIM6295(config, "oki", XTAL(16'000'000)/16, okim6295_device::PIN7_HIGH).add_route(ALL_OUTPUTS, "mono", 0.60); /* 1MHz */ + OKIM6295(config, "oki", XTAL(16'000'000)/16, okim6295_device::PIN7_HIGH).add_route(ALL_OUTPUTS, "mono", 0.60); // 1MHz } void esd16_state::jumppop(machine_config &config) { esd16(config); - /* basic machine hardware */ + // basic machine hardware m_maincpu->set_addrmap(AS_PROGRAM, &esd16_state::jumppop_map); - m_audiocpu->set_clock(XTAL(14'000'000)/4); /* 3.5MHz - Verified */ + m_audiocpu->set_clock(XTAL(14'000'000)/4); // 3.5MHz - Verified m_sprgen->set_info(gfx_jumppop_spr); m_gfxdecode->set_info(gfx_jumppop); - subdevice("ymsnd")->set_clock(XTAL(14'000'000)/4); /* 3.5MHz - Verified */ + subdevice("ymsnd")->set_clock(XTAL(14'000'000)/4); // 3.5MHz - Verified - subdevice("oki")->set_clock(XTAL(14'000'000)/16); /* 875kHz - Verified */ + subdevice("oki")->set_clock(XTAL(14'000'000)/16); // 875kHz - Verified } -/* The ESD 05-28-99 PCB adds an EEPROM */ +// The ESD 05-28-99 PCB adds an EEPROM void esd16_state::hedpanio(machine_config &config) { esd16(config); - /* basic machine hardware */ + // basic machine hardware m_maincpu->set_addrmap(AS_PROGRAM, &esd16_state::hedpanic_map); EEPROM_93C46_16BIT(config, "eeprom"); } -/* The ESD 08-26-1999 PCBs take that further and modify the sprite offsets */ +// The ESD 08-26-1999 PCBs take that further and modify the sprite offsets void esd16_state::hedpanic(machine_config &config) { @@ -811,7 +811,7 @@ void esd16_state::hedpanic(machine_config &config) m_sprgen->set_offsets(-0x18, -0x100); } -/* ESD 08-26-1999 PCBs with different memory maps */ +// ESD 08-26-1999 PCBs with different memory maps void esd16_state::mchampdx(machine_config &config) { @@ -892,21 +892,21 @@ MULTCHMP.U39 -/ MX27C2000 ***************************************************************************/ ROM_START( multchmp ) - ROM_REGION( 0x080000, "maincpu", 0 ) /* 68000 Code */ + ROM_REGION( 0x080000, "maincpu", 0 ) // 68000 Code ROM_LOAD16_BYTE( "esd2.cu02", 0x000000, 0x040000, CRC(2d1b098a) SHA1(c2f3991f02c611c258219da2c61cad22c9a21f7d) ) ROM_LOAD16_BYTE( "esd1.cu03", 0x000001, 0x040000, CRC(10974063) SHA1(854b38b4d4cb529e9928aae4212c86a220615e04) ) - ROM_REGION( 0x40000, "audiocpu", 0 ) /* Z80 Code */ + ROM_REGION( 0x40000, "audiocpu", 0 ) // Z80 Code ROM_LOAD( "esd3.su06", 0x00000, 0x20000, CRC(7c178bd7) SHA1(8754d3c70d9b2bf369a5ce0cce4cc0696ed22750) ) - ROM_REGION( 0x180000, "spr", 0 ) /* Sprites, 16x16x5 */ + ROM_REGION( 0x180000, "spr", 0 ) // Sprites, 16x16x5 ROM_LOAD16_BYTE( "esd17.ju06", 0x000000, 0x040000, CRC(a69d4399) SHA1(06ae6c07cc6b7313e2e2aa3b994f7532d6994e1b) ) ROM_LOAD16_BYTE( "esd16.ju05", 0x000001, 0x040000, CRC(e670a6da) SHA1(47cbe45b6d5d0ca70d0c6787d589dde5d14fdba4) ) ROM_LOAD16_BYTE( "esd15.ju04", 0x080000, 0x040000, CRC(88b7a97c) SHA1(0a57ec8f6a44c8e3aa3ef35499a415d6a2b7eb16) ) ROM_LOAD16_BYTE( "esd14.ju03", 0x080001, 0x040000, CRC(a6122225) SHA1(cbcf2b31c4c011daba21f0ae5fd3be63c9a87c00) ) ROM_LOAD16_BYTE( "esd13.ju07", 0x100000, 0x040000, CRC(22071594) SHA1(c79102b250780d1da8c290d065d61fbbfa193366) ) - ROM_REGION( 0x400000, "bgs", 0 ) /* Layers, 16x16x8 */ + ROM_REGION( 0x400000, "bgs", 0 ) // Layers, 16x16x8 ROM_LOAD32_BYTE( "esd9.fu28", 0x000000, 0x080000, CRC(6652c04a) SHA1(178e1d42847506d869ef79db2f7e10df05e9ef76) ) ROM_LOAD32_BYTE( "esd11.fu29", 0x000002, 0x080000, CRC(9bafd8ee) SHA1(db18be05431d4b6d4207e19fa4ed8701621aaa19) ) ROM_LOAD32_BYTE( "esd7.fu26", 0x000001, 0x080000, CRC(a783a003) SHA1(1ff61a049485c5b599c458a8bf7f48027d14f8e0) ) @@ -916,26 +916,26 @@ ROM_START( multchmp ) ROM_LOAD32_BYTE( "esd8.fu30", 0x200001, 0x080000, CRC(22861af2) SHA1(1e74e85517cb8fd5fb4bda6e9d9d54046e31f653) ) ROM_LOAD32_BYTE( "esd6.fu32", 0x200003, 0x080000, CRC(e2689bb2) SHA1(1da9b1f7335d5c2d1c2f8353fccf91c0109d2e9d) ) - ROM_REGION( 0x40000, "oki", 0 ) /* Samples */ + ROM_REGION( 0x40000, "oki", 0 ) // Samples ROM_LOAD( "esd4.su10", 0x00000, 0x20000, CRC(6e741fcd) SHA1(742e0952916c00f67dd9f8d01e721a9a538d2fc4) ) ROM_END ROM_START( multchmpk ) - ROM_REGION( 0x080000, "maincpu", 0 ) /* 68000 Code */ + ROM_REGION( 0x080000, "maincpu", 0 ) // 68000 Code ROM_LOAD16_BYTE( "multchmp.u02", 0x000000, 0x040000, CRC(7da8c0df) SHA1(763a3240554a02d8a9a0b13b6bfcd384825a6c57) ) ROM_LOAD16_BYTE( "multchmp.u03", 0x000001, 0x040000, CRC(5dc62799) SHA1(ff7882985efc20309c3f901a622f1beffa0c47be) ) - ROM_REGION( 0x40000, "audiocpu", 0 ) /* Z80 Code */ + ROM_REGION( 0x40000, "audiocpu", 0 ) // Z80 Code ROM_LOAD( "esd3.su06", 0x00000, 0x20000, CRC(7c178bd7) SHA1(8754d3c70d9b2bf369a5ce0cce4cc0696ed22750) ) - ROM_REGION( 0x180000, "spr", 0 ) /* Sprites, 16x16x5 */ + ROM_REGION( 0x180000, "spr", 0 ) // Sprites, 16x16x5 ROM_LOAD16_BYTE( "multchmp.u39", 0x000000, 0x040000, CRC(51f01067) SHA1(d5ebbc7d358b63724d2f24da8b2ce4a202be37a5) ) ROM_LOAD16_BYTE( "multchmp.u38", 0x000001, 0x040000, CRC(88e252e8) SHA1(07d898379798c6be42b636762b0af61b9111a480) ) ROM_LOAD16_BYTE( "multchmp.u37", 0x080000, 0x040000, CRC(b1ae7f08) SHA1(37dd9d4cef8b9e1d09d7b46a9794fb2b777c9a01) ) ROM_LOAD16_BYTE( "multchmp.u36", 0x080001, 0x040000, CRC(d8f06fa8) SHA1(f76912f93f99578529612a7f01d82ac7229a8e41) ) ROM_LOAD16_BYTE( "multchmp.u35", 0x100000, 0x040000, CRC(9d1590a6) SHA1(35f634dbf0df06ec62359c7bae43c7f5d14b0ab2) ) - ROM_REGION( 0x400000, "bgs", 0 ) /* Layers, 16x16x8 */ + ROM_REGION( 0x400000, "bgs", 0 ) // Layers, 16x16x8 ROM_LOAD32_BYTE( "multchmp.u31", 0x000000, 0x080000, CRC(b1e4e9e3) SHA1(1a7393e9073b028b4170393b3788ad8cb86c0c78) ) ROM_LOAD32_BYTE( "multchmp.u33", 0x000002, 0x080000, CRC(e4c0ec96) SHA1(74152108e4d05f4aff9d38919f212fcb8c87cef3) ) ROM_LOAD32_BYTE( "multchmp.u29", 0x000001, 0x080000, CRC(01bd1399) SHA1(b717ccffe0af92a42a0879736d34d3ad71840233) ) @@ -945,26 +945,26 @@ ROM_START( multchmpk ) ROM_LOAD32_BYTE( "multchmp.u30", 0x200001, 0x080000, CRC(c6b4cc18) SHA1(d9097b85584272cfe4989a40d622ef1feeee6775) ) ROM_LOAD32_BYTE( "multchmp.u28", 0x200003, 0x080000, CRC(449991fa) SHA1(fd93e420a04cb8bea5421aa9cbe079bd3e7d4924) ) - ROM_REGION( 0x40000, "oki", 0 ) /* Samples */ + ROM_REGION( 0x40000, "oki", 0 ) // Samples ROM_LOAD( "esd4.su10", 0x00000, 0x20000, CRC(6e741fcd) SHA1(742e0952916c00f67dd9f8d01e721a9a538d2fc4) ) ROM_END -ROM_START( multchmpa ) /* Also found on a ESD 10-10-98 PCB which looks identical to the ESD 11-09-98 PCB */ - ROM_REGION( 0x080000, "maincpu", 0 ) /* 68000 Code */ +ROM_START( multchmpa ) // Also found on a ESD 10-10-98 PCB which looks identical to the ESD 11-09-98 PCB + ROM_REGION( 0x080000, "maincpu", 0 ) // 68000 Code ROM_LOAD16_BYTE( "esd2.cu02", 0x000000, 0x040000, CRC(bfd39198) SHA1(11c0cb7a865daa1be9301ddfa5f5d2014e8f9908) ) ROM_LOAD16_BYTE( "esd1.cu03", 0x000001, 0x040000, CRC(cd769077) SHA1(741cca679393dab031691834874c96fee791241e) ) - ROM_REGION( 0x40000, "audiocpu", 0 ) /* Z80 Code */ + ROM_REGION( 0x40000, "audiocpu", 0 ) // Z80 Code ROM_LOAD( "esd3.su01", 0x00000, 0x20000, CRC(7c178bd7) SHA1(8754d3c70d9b2bf369a5ce0cce4cc0696ed22750) ) - ROM_REGION( 0x180000, "spr", 0 ) /* Sprites, 16x16x5 */ + ROM_REGION( 0x180000, "spr", 0 ) // Sprites, 16x16x5 ROM_LOAD16_BYTE( "esd17.ju06", 0x000000, 0x040000, CRC(51f01067) SHA1(d5ebbc7d358b63724d2f24da8b2ce4a202be37a5) ) ROM_LOAD16_BYTE( "esd16.ju05", 0x000001, 0x040000, CRC(88e252e8) SHA1(07d898379798c6be42b636762b0af61b9111a480) ) ROM_LOAD16_BYTE( "esd15.ju04", 0x080000, 0x040000, CRC(b1ae7f08) SHA1(37dd9d4cef8b9e1d09d7b46a9794fb2b777c9a01) ) ROM_LOAD16_BYTE( "esd14.ju03", 0x080001, 0x040000, CRC(d8f06fa8) SHA1(f76912f93f99578529612a7f01d82ac7229a8e41) ) ROM_LOAD16_BYTE( "esd13.ju07", 0x100000, 0x040000, CRC(9d1590a6) SHA1(35f634dbf0df06ec62359c7bae43c7f5d14b0ab2) ) - ROM_REGION( 0x400000, "bgs", 0 ) /* Layers, 16x16x8 */ + ROM_REGION( 0x400000, "bgs", 0 ) // Layers, 16x16x8 ROM_LOAD32_BYTE( "esd9.fu28", 0x000000, 0x080000, CRC(a3cfe895) SHA1(a8dc0d5d9e64d4c5112177b8f20b5bdb86ca73af) ) ROM_LOAD32_BYTE( "esd11.fu29", 0x000002, 0x080000, CRC(d3c1855e) SHA1(bb547d4a45a745e9ae4a6727087cdf325105de90) ) ROM_LOAD32_BYTE( "esd7.fu26", 0x000001, 0x080000, CRC(042d59ff) SHA1(8e45a4757e07d8aaf50b151d8849c1a27424e64b) ) @@ -974,7 +974,7 @@ ROM_START( multchmpa ) /* Also found on a ESD 10-10-98 PCB which looks identical ROM_LOAD32_BYTE( "esd8.fu30", 0x200001, 0x080000, CRC(fa8cd2d3) SHA1(ddc1b98867e6d2eee458bf35a933e7cdc59f4c7e) ) ROM_LOAD32_BYTE( "esd6.fu32", 0x200003, 0x080000, CRC(97fde7b1) SHA1(b3610f6fcc1367ff079dc01121c86bc1e1f4c7a2) ) - ROM_REGION( 0x40000, "oki", 0 ) /* Samples */ + ROM_REGION( 0x40000, "oki", 0 ) // Samples ROM_LOAD( "esd4.su08", 0x00000, 0x20000, CRC(6e741fcd) SHA1(742e0952916c00f67dd9f8d01e721a9a538d2fc4) ) ROM_END @@ -1033,26 +1033,26 @@ Note: Some versions of this PCB used larger EPROMs with the data repeated: ROM_START( mchampdx ) - ROM_REGION( 0x080000, "maincpu", 0 ) /* 68000 Code */ + ROM_REGION( 0x080000, "maincpu", 0 ) // 68000 Code ROM_LOAD16_BYTE( "ver0106_esd2.cu02", 0x000000, 0x040000, CRC(ea98b3fd) SHA1(107ee8adea246141fd6fa9209541ce0a7ed1e24c) ) ROM_LOAD16_BYTE( "ver0106_esd1.cu03", 0x000001, 0x040000, CRC(c6e4546b) SHA1(af9a8edffe94d035f92b36b1cd145c2a5ee66f48) ) - ROM_REGION( 0x40000, "audiocpu", 0 ) /* Z80 Code */ + ROM_REGION( 0x40000, "audiocpu", 0 ) // Z80 Code ROM_LOAD( "esd3.su06", 0x00000, 0x40000, CRC(1b22568c) SHA1(5458e1a798357a6785f8ea1fe9da37768cd4761d) ) - /* this has additional copyright sprites in the flash roms for the (c)2000 message.. */ - ROM_REGION( 0x600000, "spr", 0 ) /* Sprites, 16x16x5 */ + // this has additional copyright sprites in the flash roms for the (c)2000 message.. + ROM_REGION( 0x600000, "spr", 0 ) // Sprites, 16x16x5 ROM_LOAD( "ver0106_ju01.bin", 0x200000, 0x200000, CRC(55841d90) SHA1(52ba3ee9393dcddf28e2d20a50151bc739faaaa4) ) ROM_LOAD( "ver0106_ju02.bin", 0x000000, 0x200000, CRC(b27a4977) SHA1(b7f94bb04d0046538b3938335e6b0cce330ad79c) ) - /* expand this to take up 0x200000 bytes too so we can decode it */ + // expand this to take up 0x200000 bytes too so we can decode it ROM_LOAD16_BYTE( "ver0106_esd5.ju07", 0x400000, 0x040000, CRC(7a3ac887) SHA1(3c759f9bed396bbaf6bd7298a8bd2bd76df3aa6f) ) ROM_FILL( 0x500000, 0x100000, 0x00 ) - ROM_REGION( 0x400000, "bgs", 0 ) /* Layers, 16x16x8 */ + ROM_REGION( 0x400000, "bgs", 0 ) // Layers, 16x16x8 ROM_LOAD32_WORD( "rom.fu35", 0x000000, 0x200000, CRC(ba46f3dc) SHA1(4ac7695bdf4237654481f7f74f8650d70a51e691) ) ROM_LOAD32_WORD( "rom.fu34", 0x000002, 0x200000, CRC(2895cf09) SHA1(88756fcd589af1986c3881d4080f086afc11b498) ) - ROM_REGION( 0x40000, "oki", 0 ) /* Samples */ + ROM_REGION( 0x40000, "oki", 0 ) // Samples ROM_LOAD( "esd4.su10", 0x00000, 0x40000, CRC(2fbe94ab) SHA1(1bc4a33ec93a80fb598722d2b50bdf3ccaaa984a) ) ROM_REGION16_BE( 0x80, "eeprom", ROMREGION_ERASE00 ) // factory default settings because game doesn't init them properly otherwise @@ -1060,25 +1060,25 @@ ROM_START( mchampdx ) ROM_END ROM_START( mchampdxa ) - ROM_REGION( 0x080000, "maincpu", 0 ) /* 68000 Code */ + ROM_REGION( 0x080000, "maincpu", 0 ) // 68000 Code ROM_LOAD16_BYTE( "esd2.cu02", 0x000000, 0x040000, CRC(4cca802c) SHA1(5e6e81febbb56b7c4630b530e546e7ab59c6c6c1) ) ROM_LOAD16_BYTE( "esd1.cu03", 0x000001, 0x040000, CRC(0af1cd0a) SHA1(d2befcb596d83d523317d17b4c1c71f99de0d33e) ) - ROM_REGION( 0x40000, "audiocpu", 0 ) /* Z80 Code */ + ROM_REGION( 0x40000, "audiocpu", 0 ) // Z80 Code ROM_LOAD( "esd3.su06", 0x00000, 0x40000, CRC(1b22568c) SHA1(5458e1a798357a6785f8ea1fe9da37768cd4761d) ) - ROM_REGION( 0x600000, "spr", 0 ) /* Sprites, 16x16x5 */ + ROM_REGION( 0x600000, "spr", 0 ) // Sprites, 16x16x5 ROM_LOAD( "rom.ju01", 0x200000, 0x200000, CRC(1a749fc2) SHA1(feff4b26ee28244b4d092798a176e33e09d5df2c) ) ROM_LOAD( "rom.ju02", 0x000000, 0x200000, CRC(7e87e332) SHA1(f90aa00a64a940846d99053c7aa023e3fd5d070b) ) - /* expand this to take up 0x200000 bytes too so we can decode it */ + // expand this to take up 0x200000 bytes too so we can decode it ROM_LOAD16_BYTE( "esd5.ju07", 0x400000, 0x080000, CRC(6cc871cc) SHA1(710b9695c864e4234686993b88d24590d60e1cb9) ) ROM_FILL( 0x500000, 0x100000, 0x00 ) - ROM_REGION( 0x400000, "bgs", 0 ) /* Layers, 16x16x8 */ + ROM_REGION( 0x400000, "bgs", 0 ) // Layers, 16x16x8 ROM_LOAD32_WORD( "rom.fu35", 0x000000, 0x200000, CRC(ba46f3dc) SHA1(4ac7695bdf4237654481f7f74f8650d70a51e691) ) ROM_LOAD32_WORD( "rom.fu34", 0x000002, 0x200000, CRC(2895cf09) SHA1(88756fcd589af1986c3881d4080f086afc11b498) ) - ROM_REGION( 0x40000, "oki", 0 ) /* Samples */ + ROM_REGION( 0x40000, "oki", 0 ) // Samples ROM_LOAD( "esd4.su10", 0x00000, 0x40000, CRC(2fbe94ab) SHA1(1bc4a33ec93a80fb598722d2b50bdf3ccaaa984a) ) ROM_REGION16_BE( 0x80, "eeprom", ROMREGION_ERASE00 ) // factory default settings because game doesn't init them properly otherwise @@ -1086,25 +1086,25 @@ ROM_START( mchampdxa ) ROM_END ROM_START( mchampdxb ) - ROM_REGION( 0x080000, "maincpu", 0 ) /* 68000 Code */ + ROM_REGION( 0x080000, "maincpu", 0 ) // 68000 Code ROM_LOAD16_BYTE( "ver1114_esd2.cu02", 0x000000, 0x040000, CRC(d17b2616) SHA1(2c50c2bf928036678b92b8862d191552e46d9faa) ) ROM_LOAD16_BYTE( "ver1114_esd1.cu03", 0x000001, 0x040000, CRC(11ff2e94) SHA1(30044bedfff514ae0a855cffa756e5c315fe2124) ) - ROM_REGION( 0x40000, "audiocpu", 0 ) /* Z80 Code */ + ROM_REGION( 0x40000, "audiocpu", 0 ) // Z80 Code ROM_LOAD( "ver1114_esd3.su06", 0x00000, 0x40000, CRC(b87a1e85) SHA1(2fcdd7e8b301e3d20e6500a03dc293403b23b471) ) - ROM_REGION( 0x600000, "spr", 0 ) /* Sprites, 16x16x5 */ + ROM_REGION( 0x600000, "spr", 0 ) // Sprites, 16x16x5 ROM_LOAD( "ver1114_ju01", 0x200000, 0x200000, CRC(0048e687) SHA1(5cc0a35b5f5f8d69b2dc3728ad6d0d505d9e16c5) ) // SMT Flash MX chips ROM_LOAD( "ver1114_ju02", 0x000000, 0x200000, CRC(2f9ccff8) SHA1(176240cd247cc5d3efd58fe0630726a8633be2a4) ) - /* expand this to take up 0x200000 bytes too so we can decode it */ + // expand this to take up 0x200000 bytes too so we can decode it ROM_LOAD16_BYTE( "ver1114_esd5.ju07", 0x400000, 0x040000, CRC(8175939f) SHA1(cd0132ae0d2e35dc656434989b1f0f255ad562ab) ) ROM_FILL( 0x500000, 0x100000, 0x00 ) - ROM_REGION( 0x400000, "bgs", 0 ) /* Layers, 16x16x8 */ + ROM_REGION( 0x400000, "bgs", 0 ) // Layers, 16x16x8 ROM_LOAD32_WORD( "ver1114_fu35", 0x000000, 0x200000, CRC(c515c704) SHA1(c1657534314e66a25c38f70a12f14d2225ab89cc) ) // SMT Flash MX chips ROM_LOAD32_WORD( "ver1114_fu34", 0x000002, 0x200000, CRC(39d448bb) SHA1(07cd6e30a25d1c0caeef0f95f23df0ca6a2c7a26) ) - ROM_REGION( 0x40000, "oki", 0 ) /* Samples */ + ROM_REGION( 0x40000, "oki", 0 ) // Samples ROM_LOAD( "esd4.su10", 0x00000, 0x40000, CRC(2fbe94ab) SHA1(1bc4a33ec93a80fb598722d2b50bdf3ccaaa984a) ) ROM_REGION16_BE( 0x80, "eeprom", ROMREGION_ERASE00 ) // factory default settings because game doesn't init them properly otherwise @@ -1199,108 +1199,108 @@ Note: Some versions of this PCB used larger EPROMs with the data repeated: ***************************************************************************/ -ROM_START( hedpanic ) /* Story line & game instructions in English */ - ROM_REGION( 0x080000, "maincpu", 0 ) /* 68000 Code */ +ROM_START( hedpanic ) // Story line & game instructions in English + ROM_REGION( 0x080000, "maincpu", 0 ) // 68000 Code ROM_LOAD16_BYTE( "esd2.cu03", 0x000000, 0x040000, CRC(7c7be3bb) SHA1(d43ad7a967e1ef79ee0cf50d3842cc9174fbef3a) ) ROM_LOAD16_BYTE( "esd1.cu02", 0x000001, 0x040000, CRC(42405e9d) SHA1(0fa088b8bd921e42cedcc4083dfe41bc9888dfd1) ) - ROM_REGION( 0x40000, "audiocpu", 0 ) /* Z80 Code */ - ROM_LOAD( "esd3.su06", 0x00000, 0x40000, CRC(a88d4424) SHA1(eefb5ac79632931a36f360713c482cd079891f91) ) /* AT27C020 mask rom */ + ROM_REGION( 0x40000, "audiocpu", 0 ) // Z80 Code + ROM_LOAD( "esd3.su06", 0x00000, 0x40000, CRC(a88d4424) SHA1(eefb5ac79632931a36f360713c482cd079891f91) ) // AT27C020 mask rom - ROM_REGION( 0x600000, "spr", 0 ) /* Sprites, 16x16x5 */ + ROM_REGION( 0x600000, "spr", 0 ) // Sprites, 16x16x5 ROM_LOAD( "esd6.ju01", 0x200000, 0x200000, CRC(5858372c) SHA1(dc96112587df681d53cf7449bd39477919978325) ) ROM_LOAD( "esd7.ju02", 0x000000, 0x200000, CRC(055d525f) SHA1(85ad474691f96e47311a1904015d1c92d3b2d607) ) - /* expand this to take up 0x200000 bytes too so we can decode it */ + // expand this to take up 0x200000 bytes too so we can decode it ROM_LOAD16_BYTE( "esd5.ju07", 0x400000, 0x080000, CRC(bd785921) SHA1(c8bcb38d5aa6f5a27f0dedf7efd1d6737d59b4ca) ) ROM_FILL( 0x500000, 0x100000, 0x00 ) - ROM_REGION( 0x400000, "bgs", 0 ) /* Layers, 16x16x8 */ + ROM_REGION( 0x400000, "bgs", 0 ) // Layers, 16x16x8 ROM_LOAD32_WORD( "esd8.fu35", 0x000000, 0x200000, CRC(23aceb4f) SHA1(35d9ebc33b9e1515e47750cfcdfc0bf8bf44b71d) ) ROM_LOAD32_WORD( "esd9.fu34", 0x000002, 0x200000, CRC(76b46cd2) SHA1(679cbf50ae5935e8848868081ecef4ec66424f6c) ) - ROM_REGION( 0x40000, "oki", 0 ) /* Samples */ - ROM_LOAD( "esd4.su10", 0x000000, 0x020000, CRC(3c11c590) SHA1(cb33845c3dc0501fff8055c2d66f412881089df1) ) /* AT27010 mask rom */ + ROM_REGION( 0x40000, "oki", 0 ) // Samples + ROM_LOAD( "esd4.su10", 0x000000, 0x020000, CRC(3c11c590) SHA1(cb33845c3dc0501fff8055c2d66f412881089df1) ) // AT27010 mask rom ROM_REGION16_BE( 0x80, "eeprom", 0 ) ROM_LOAD( "hedpanic.nv", 0x0000, 0x0080, CRC(e91f4038) SHA1(f492de71170900f87912a272ab4f4a3a37ba31fe) ) ROM_END -ROM_START( hedpanicf ) /* Story line in Japanese, game instructions in English */ - ROM_REGION( 0x080000, "maincpu", 0 ) /* 68000 Code */ - ROM_LOAD16_BYTE( "esd2", 0x000000, 0x040000, CRC(8cccc691) SHA1(d6a5dd6c21a67638b9023182f77780282b9b04e5) ) /* CU03 */ - ROM_LOAD16_BYTE( "esd1", 0x000001, 0x040000, CRC(d8574925) SHA1(bd4990778b90a49aa6b10f8cf6709ce2424f546a) ) /* CU02 */ +ROM_START( hedpanicf ) // Story line in Japanese, game instructions in English + ROM_REGION( 0x080000, "maincpu", 0 ) // 68000 Code + ROM_LOAD16_BYTE( "esd2", 0x000000, 0x040000, CRC(8cccc691) SHA1(d6a5dd6c21a67638b9023182f77780282b9b04e5) ) // CU03 + ROM_LOAD16_BYTE( "esd1", 0x000001, 0x040000, CRC(d8574925) SHA1(bd4990778b90a49aa6b10f8cf6709ce2424f546a) ) // CU02 - ROM_REGION( 0x40000, "audiocpu", 0 ) /* Z80 Code */ - ROM_LOAD( "esd3.su06", 0x00000, 0x40000, CRC(a88d4424) SHA1(eefb5ac79632931a36f360713c482cd079891f91) ) /* AT27C020 mask rom */ + ROM_REGION( 0x40000, "audiocpu", 0 ) // Z80 Code + ROM_LOAD( "esd3.su06", 0x00000, 0x40000, CRC(a88d4424) SHA1(eefb5ac79632931a36f360713c482cd079891f91) ) // AT27C020 mask rom - ROM_REGION( 0x600000, "spr", 0 ) /* Sprites, 16x16x5 */ + ROM_REGION( 0x600000, "spr", 0 ) // Sprites, 16x16x5 ROM_LOAD( "esd6.ju01", 0x200000, 0x200000, CRC(5858372c) SHA1(dc96112587df681d53cf7449bd39477919978325) ) ROM_LOAD( "esd7.ju02", 0x000000, 0x200000, CRC(055d525f) SHA1(85ad474691f96e47311a1904015d1c92d3b2d607) ) - /* expand this to take up 0x200000 bytes too so we can decode it */ + // expand this to take up 0x200000 bytes too so we can decode it ROM_LOAD16_BYTE( "esd5.ju07", 0x400000, 0x080000, CRC(bd785921) SHA1(c8bcb38d5aa6f5a27f0dedf7efd1d6737d59b4ca) ) ROM_FILL( 0x500000, 0x100000, 0x00 ) - ROM_REGION( 0x400000, "bgs", 0 ) /* Layers, 16x16x8 */ + ROM_REGION( 0x400000, "bgs", 0 ) // Layers, 16x16x8 ROM_LOAD32_WORD( "esd8.fu35", 0x000000, 0x200000, CRC(23aceb4f) SHA1(35d9ebc33b9e1515e47750cfcdfc0bf8bf44b71d) ) ROM_LOAD32_WORD( "esd9.fu34", 0x000002, 0x200000, CRC(76b46cd2) SHA1(679cbf50ae5935e8848868081ecef4ec66424f6c) ) - ROM_REGION( 0x40000, "oki", 0 ) /* Samples */ - ROM_LOAD( "esd4.su10", 0x000000, 0x020000, CRC(3c11c590) SHA1(cb33845c3dc0501fff8055c2d66f412881089df1) ) /* AT27010 mask rom */ + ROM_REGION( 0x40000, "oki", 0 ) // Samples + ROM_LOAD( "esd4.su10", 0x000000, 0x020000, CRC(3c11c590) SHA1(cb33845c3dc0501fff8055c2d66f412881089df1) ) // AT27010 mask rom ROM_REGION16_BE( 0x80, "eeprom", 0 ) ROM_LOAD( "hedpanic.nv", 0x0000, 0x0080, CRC(e91f4038) SHA1(f492de71170900f87912a272ab4f4a3a37ba31fe) ) ROM_END -ROM_START( hedpanica ) /* Story line & game instructions in English, copyright year is 1999 - ESD 06-10-1999 PCB */ - ROM_REGION( 0x080000, "maincpu", 0 ) /* 68000 Code */ - ROM_LOAD16_BYTE( "esd12.cu03", 0x000000, 0x040000, CRC(deb7e0a0) SHA1(ef3a00e9bfdffd7c89326ad97a261f9a7b9863ae) ) /* CU03 */ - ROM_LOAD16_BYTE( "esd11.cu02", 0x000001, 0x040000, CRC(e1418f23) SHA1(39f14172d9b1a0d47edfe2456362fddc22f60066) ) /* CU02 */ +ROM_START( hedpanica ) // Story line & game instructions in English, copyright year is 1999 - ESD 06-10-1999 PCB + ROM_REGION( 0x080000, "maincpu", 0 ) // 68000 Code + ROM_LOAD16_BYTE( "esd12.cu03", 0x000000, 0x040000, CRC(deb7e0a0) SHA1(ef3a00e9bfdffd7c89326ad97a261f9a7b9863ae) ) // CU03 + ROM_LOAD16_BYTE( "esd11.cu02", 0x000001, 0x040000, CRC(e1418f23) SHA1(39f14172d9b1a0d47edfe2456362fddc22f60066) ) // CU02 - ROM_REGION( 0x40000, "audiocpu", 0 ) /* Z80 Code */ - ROM_LOAD( "esd3.su06", 0x00000, 0x40000, CRC(a88d4424) SHA1(eefb5ac79632931a36f360713c482cd079891f91) ) /* AT27C020 mask rom */ + ROM_REGION( 0x40000, "audiocpu", 0 ) // Z80 Code + ROM_LOAD( "esd3.su06", 0x00000, 0x40000, CRC(a88d4424) SHA1(eefb5ac79632931a36f360713c482cd079891f91) ) // AT27C020 mask rom - ROM_REGION( 0x600000, "spr", 0 ) /* Sprites, 16x16x5 */ + ROM_REGION( 0x600000, "spr", 0 ) // Sprites, 16x16x5 ROM_LOAD( "ju04", 0x200000, 0x200000, CRC(4f3503d7) SHA1(4bed795c7328e0ebfa97688918eb8a908c29deb8) ) ROM_LOAD( "ju06", 0x000000, 0x200000, CRC(9f6f6193) SHA1(c7c7ae6898ab7177eefb0e525d827666e2af9f7e) ) - /* expand this to take up 0x200000 bytes too so we can decode it */ - ROM_LOAD16_BYTE( "esd5.bin", 0x400000, 0x080000, CRC(6968265a) SHA1(84b4f2d8b3bf6ea4117fa8281c76b58df778261d) ) /* JU07 */ + // expand this to take up 0x200000 bytes too so we can decode it + ROM_LOAD16_BYTE( "esd5.bin", 0x400000, 0x080000, CRC(6968265a) SHA1(84b4f2d8b3bf6ea4117fa8281c76b58df778261d) ) // JU07 ROM_FILL( 0x500000, 0x100000, 0x00 ) - ROM_REGION( 0x400000, "bgs", 0 ) /* Layers, 16x16x8 */ + ROM_REGION( 0x400000, "bgs", 0 ) // Layers, 16x16x8 ROM_LOAD32_WORD( "fu35", 0x000000, 0x200000, CRC(9b5a45c5) SHA1(fbd8bc6ccc068d2cc7fe4f575fa0847f53e786ab) ) ROM_LOAD32_WORD( "fu34", 0x000002, 0x200000, CRC(8f2099cc) SHA1(40795ae5fb8de613c2d5b6147992c153695bf698) ) - ROM_REGION( 0x80000, "oki", 0 ) /* Samples */ - ROM_LOAD( "esd4.bin", 0x000000, 0x080000, CRC(5692fe92) SHA1(4423039cb437ab36d198b212ef394bf1704be404) ) /* SU10 */ + ROM_REGION( 0x80000, "oki", 0 ) // Samples + ROM_LOAD( "esd4.bin", 0x000000, 0x080000, CRC(5692fe92) SHA1(4423039cb437ab36d198b212ef394bf1704be404) ) // SU10 ROM_REGION16_BE( 0x80, "eeprom", 0 ) ROM_LOAD( "hedpanic.nv", 0x0000, 0x0080, CRC(e91f4038) SHA1(f492de71170900f87912a272ab4f4a3a37ba31fe) ) ROM_END -ROM_START( hedpanico ) /* Story line & game instructions in English, copyright year is 1999 - ESD 05-28-99 PCB which uses older style sprites */ - ROM_REGION( 0x080000, "maincpu", 0 ) /* 68000 Code */ - ROM_LOAD16_BYTE( "esd2.rom", 0x000000, 0x040000, CRC(70b08424) SHA1(2ba4fb3b749e31db4239a9173b8509366400152f) ) /* CU03 */ - ROM_LOAD16_BYTE( "esd1.rom", 0x000001, 0x040000, CRC(4e0682c5) SHA1(f4117f31b6426d7bf126a6c62c489b9347885b42) ) /* CU02 */ +ROM_START( hedpanico ) // Story line & game instructions in English, copyright year is 1999 - ESD 05-28-99 PCB which uses older style sprites + ROM_REGION( 0x080000, "maincpu", 0 ) // 68000 Code + ROM_LOAD16_BYTE( "esd2.rom", 0x000000, 0x040000, CRC(70b08424) SHA1(2ba4fb3b749e31db4239a9173b8509366400152f) ) // CU03 + ROM_LOAD16_BYTE( "esd1.rom", 0x000001, 0x040000, CRC(4e0682c5) SHA1(f4117f31b6426d7bf126a6c62c489b9347885b42) ) // CU02 - ROM_REGION( 0x40000, "audiocpu", 0 ) /* Z80 Code */ - ROM_LOAD( "esd3.su06", 0x00000, 0x40000, CRC(a88d4424) SHA1(eefb5ac79632931a36f360713c482cd079891f91) ) /* AT27C020 mask rom */ + ROM_REGION( 0x40000, "audiocpu", 0 ) // Z80 Code + ROM_LOAD( "esd3.su06", 0x00000, 0x40000, CRC(a88d4424) SHA1(eefb5ac79632931a36f360713c482cd079891f91) ) // AT27C020 mask rom - ROM_REGION( 0x600000, "spr", 0 ) /* Sprites, 16x16x5 */ + ROM_REGION( 0x600000, "spr", 0 ) // Sprites, 16x16x5 ROM_LOAD( "sm1.ju01", 0x000000, 0x200000, CRC(8083813f) SHA1(9492e7e844e45d59f0506f69d40c338b27bd3ce3) ) ROM_LOAD( "sm2.ju02", 0x200000, 0x200000, CRC(7a9610e4) SHA1(21ae3ec3fbddfc66416c109b091bd885d5ba0558) ) - /* expand this to take up 0x200000 bytes too so we can decode it */ - ROM_LOAD16_BYTE( "esd5.rom", 0x400000, 0x080000, CRC(82c5727f) SHA1(017f1d0c94475c51d17f12e24895f47a273a2dbb) ) /* JU07 */ + // expand this to take up 0x200000 bytes too so we can decode it + ROM_LOAD16_BYTE( "esd5.rom", 0x400000, 0x080000, CRC(82c5727f) SHA1(017f1d0c94475c51d17f12e24895f47a273a2dbb) ) // JU07 ROM_FILL( 0x500000, 0x100000, 0x00 ) - ROM_REGION( 0x400000, "bgs", 0 ) /* Layers, 16x16x8 */ + ROM_REGION( 0x400000, "bgs", 0 ) // Layers, 16x16x8 ROM_LOAD32_WORD( "sm3.fu35", 0x000000, 0x200000, CRC(94dd4cfc) SHA1(a3f9c49611f0bc9d26166dafb44e2c5ebbb31127) ) ROM_LOAD32_WORD( "sm4.fu34", 0x000002, 0x200000, CRC(6da0fb9e) SHA1(c4e7487953f45c5f6ce2ebe558b4c325f6ec54eb) ) - ROM_REGION( 0x40000, "oki", 0 ) /* Samples */ - ROM_LOAD( "esd4.rom", 0x000000, 0x020000, CRC(d7ca6806) SHA1(8ad668bfb5b7561cc0f3e36dfc3c936b136a4274) ) /* SU10 */ + ROM_REGION( 0x40000, "oki", 0 ) // Samples + ROM_LOAD( "esd4.rom", 0x000000, 0x020000, CRC(d7ca6806) SHA1(8ad668bfb5b7561cc0f3e36dfc3c936b136a4274) ) // SU10 ROM_REGION16_BE( 0x80, "eeprom", 0 ) ROM_LOAD( "hedpanic.nv", 0x0000, 0x0080, CRC(e91f4038) SHA1(f492de71170900f87912a272ab4f4a3a37ba31fe) ) @@ -1358,106 +1358,106 @@ ESD made in Korea */ -ROM_START( deluxe5 ) /* Deluxe 5 */ - ROM_REGION( 0x080000, "maincpu", 0 ) /* 68000 Code */ - ROM_LOAD16_BYTE( "esd2.cu02", 0x000000, 0x040000, CRC(d077dc13) SHA1(d83feadb29674d56a5f019641f402798c7ba8d61) ) /* M27C2001 EPROM */ - ROM_LOAD16_BYTE( "esd1.cu03", 0x000001, 0x040000, CRC(15d6644f) SHA1(cfb8168167389855f906658511d1dc7460e13100) ) /* M27C2001 EPROM */ +ROM_START( deluxe5 ) // Deluxe 5 + ROM_REGION( 0x080000, "maincpu", 0 ) // 68000 Code + ROM_LOAD16_BYTE( "esd2.cu02", 0x000000, 0x040000, CRC(d077dc13) SHA1(d83feadb29674d56a5f019641f402798c7ba8d61) ) // M27C2001 EPROM + ROM_LOAD16_BYTE( "esd1.cu03", 0x000001, 0x040000, CRC(15d6644f) SHA1(cfb8168167389855f906658511d1dc7460e13100) ) // M27C2001 EPROM - ROM_REGION( 0x40000, "audiocpu", 0 ) /* Z80 Code */ - ROM_LOAD( "esd3.su06", 0x00000, 0x40000, CRC(31de379a) SHA1(a0c9a9cec7207cc4ba33abb68bef62d7eb8e75e9) ) /* AM27C020 mask rom */ + ROM_REGION( 0x40000, "audiocpu", 0 ) // Z80 Code + ROM_LOAD( "esd3.su06", 0x00000, 0x40000, CRC(31de379a) SHA1(a0c9a9cec7207cc4ba33abb68bef62d7eb8e75e9) ) // AM27C020 mask rom - ROM_REGION( 0x180000, "spr", 0 ) /* Sprites, 16x16x5 */ - ROM_LOAD16_BYTE( "am27c020.ju06", 0x000000, 0x040000, CRC(8b853bce) SHA1(fa6e654fc965d88bb426b76cdce3417f357b25f3) ) /* AM27C020 mask roms with no label */ + ROM_REGION( 0x180000, "spr", 0 ) // Sprites, 16x16x5 + ROM_LOAD16_BYTE( "am27c020.ju06", 0x000000, 0x040000, CRC(8b853bce) SHA1(fa6e654fc965d88bb426b76cdce3417f357b25f3) ) // AM27C020 mask roms with no label ROM_LOAD16_BYTE( "am27c020.ju05", 0x000001, 0x040000, CRC(bbe81779) SHA1(750387fb4aaa04b7f4f1d3985896f5e11219e3ea) ) ROM_LOAD16_BYTE( "am27c020.ju04", 0x080000, 0x040000, CRC(40fa2c2f) SHA1(b9d9bfdc9343f00bad9749c76472f064c509cfce) ) ROM_LOAD16_BYTE( "am27c020.ju03", 0x080001, 0x040000, CRC(aa130fd3) SHA1(46a55d8ca59a52e610600fdba76d9729528d2871) ) ROM_LOAD16_BYTE( "am27c020.ju07", 0x100000, 0x040000, CRC(d414c3af) SHA1(9299b07a8c7a3e30a1bb6028204a049a7cb510f7) ) - ROM_REGION( 0x400000, "bgs", 0 ) /* Layers, 16x16x8 */ - ROM_LOAD32_WORD( "fu35", 0x000000, 0x200000, CRC(ae10242a) SHA1(f3d18c0cb7951b5f7ee47aa2856b7554088328ed) ) /* No labels on the flash roms */ - ROM_LOAD32_WORD( "fu34", 0x000002, 0x200000, CRC(248b8c05) SHA1(fe7bcc05ae0dd0a27c6ba4beb4ac155a8f3d7f7e) ) /* No labels on the flash roms */ + ROM_REGION( 0x400000, "bgs", 0 ) // Layers, 16x16x8 + ROM_LOAD32_WORD( "fu35", 0x000000, 0x200000, CRC(ae10242a) SHA1(f3d18c0cb7951b5f7ee47aa2856b7554088328ed) ) // No labels on the flash roms + ROM_LOAD32_WORD( "fu34", 0x000002, 0x200000, CRC(248b8c05) SHA1(fe7bcc05ae0dd0a27c6ba4beb4ac155a8f3d7f7e) ) // No labels on the flash roms - ROM_REGION( 0x40000, "oki", 0 ) /* Samples */ - ROM_LOAD( "esd4.su10", 0x00000, 0x20000, CRC(23f2b7d9) SHA1(328c951d14674760df68486841c933bad0d59fe3) ) /* AT27C010 mask rom */ + ROM_REGION( 0x40000, "oki", 0 ) // Samples + ROM_LOAD( "esd4.su10", 0x00000, 0x20000, CRC(23f2b7d9) SHA1(328c951d14674760df68486841c933bad0d59fe3) ) // AT27C010 mask rom ROM_REGION16_BE( 0x80, "eeprom", ROMREGION_ERASE00 ) // factory default settings because game doesn't init them properly otherwise ROM_LOAD16_WORD_SWAP( "eeprom", 0x0000, 0x0080, CRC(4539a8a0) SHA1(b882110b489e61ac5421fbe3551d9ee323b5d86b) ) ROM_END -ROM_START( deluxe5a ) /* Deluxe 5 */ - ROM_REGION( 0x080000, "maincpu", 0 ) /* 68000 Code */ +ROM_START( deluxe5a ) // Deluxe 5 + ROM_REGION( 0x080000, "maincpu", 0 ) // 68000 Code ROM_LOAD16_BYTE( "esd2.cu02", 0x000000, 0x040000, CRC(c67bf757) SHA1(c90d486088d4aedbc9dd307cf1a8d5febf6fdba0) ) // sldh ROM_LOAD16_BYTE( "esd1.cu03", 0x000001, 0x040000, CRC(24f4d7b9) SHA1(bb0eabdd72a475149d6df768d9d29b545f061e54) ) // sldh - ROM_REGION( 0x40000, "audiocpu", 0 ) /* Z80 Code */ - ROM_LOAD( "esd3.su06", 0x00000, 0x40000, CRC(31de379a) SHA1(a0c9a9cec7207cc4ba33abb68bef62d7eb8e75e9) ) /* AM27C020 mask rom */ + ROM_REGION( 0x40000, "audiocpu", 0 ) // Z80 Code + ROM_LOAD( "esd3.su06", 0x00000, 0x40000, CRC(31de379a) SHA1(a0c9a9cec7207cc4ba33abb68bef62d7eb8e75e9) ) // AM27C020 mask rom - ROM_REGION( 0x180000, "spr", 0 ) /* Sprites, 16x16x5 */ - ROM_LOAD16_BYTE( "am27c020.ju06", 0x000000, 0x040000, CRC(8b853bce) SHA1(fa6e654fc965d88bb426b76cdce3417f357b25f3) ) /* AM27C020 mask roms with no label */ + ROM_REGION( 0x180000, "spr", 0 ) // Sprites, 16x16x5 + ROM_LOAD16_BYTE( "am27c020.ju06", 0x000000, 0x040000, CRC(8b853bce) SHA1(fa6e654fc965d88bb426b76cdce3417f357b25f3) ) // AM27C020 mask roms with no label ROM_LOAD16_BYTE( "am27c020.ju05", 0x000001, 0x040000, CRC(bbe81779) SHA1(750387fb4aaa04b7f4f1d3985896f5e11219e3ea) ) ROM_LOAD16_BYTE( "am27c020.ju04", 0x080000, 0x040000, CRC(40fa2c2f) SHA1(b9d9bfdc9343f00bad9749c76472f064c509cfce) ) ROM_LOAD16_BYTE( "am27c020.ju03", 0x080001, 0x040000, CRC(aa130fd3) SHA1(46a55d8ca59a52e610600fdba76d9729528d2871) ) ROM_LOAD16_BYTE( "am27c020.ju07", 0x100000, 0x040000, CRC(d414c3af) SHA1(9299b07a8c7a3e30a1bb6028204a049a7cb510f7) ) - ROM_REGION( 0x400000, "bgs", 0 ) /* Layers, 16x16x8 */ - ROM_LOAD32_WORD( "fu35", 0x000000, 0x200000, CRC(ae10242a) SHA1(f3d18c0cb7951b5f7ee47aa2856b7554088328ed) ) /* No labels on the flash roms */ - ROM_LOAD32_WORD( "fu34", 0x000002, 0x200000, CRC(248b8c05) SHA1(fe7bcc05ae0dd0a27c6ba4beb4ac155a8f3d7f7e) ) /* No labels on the flash roms */ + ROM_REGION( 0x400000, "bgs", 0 ) // Layers, 16x16x8 + ROM_LOAD32_WORD( "fu35", 0x000000, 0x200000, CRC(ae10242a) SHA1(f3d18c0cb7951b5f7ee47aa2856b7554088328ed) ) // No labels on the flash roms + ROM_LOAD32_WORD( "fu34", 0x000002, 0x200000, CRC(248b8c05) SHA1(fe7bcc05ae0dd0a27c6ba4beb4ac155a8f3d7f7e) ) // No labels on the flash roms - ROM_REGION( 0x40000, "oki", 0 ) /* Samples */ - ROM_LOAD( "esd4.su10", 0x00000, 0x20000, CRC(23f2b7d9) SHA1(328c951d14674760df68486841c933bad0d59fe3) ) /* AT27C010 mask rom */ + ROM_REGION( 0x40000, "oki", 0 ) // Samples + ROM_LOAD( "esd4.su10", 0x00000, 0x20000, CRC(23f2b7d9) SHA1(328c951d14674760df68486841c933bad0d59fe3) ) // AT27C010 mask rom ROM_REGION16_BE( 0x80, "eeprom", ROMREGION_ERASE00 ) // factory default settings because game doesn't init them properly otherwise ROM_LOAD16_WORD_SWAP( "eeprom", 0x0000, 0x0080, CRC(4539a8a0) SHA1(b882110b489e61ac5421fbe3551d9ee323b5d86b) ) ROM_END -ROM_START( deluxe5b ) /* Deluxe 5 */ - ROM_REGION( 0x080000, "maincpu", 0 ) /* 68000 Code */ +ROM_START( deluxe5b ) // Deluxe 5 + ROM_REGION( 0x080000, "maincpu", 0 ) // 68000 Code ROM_LOAD16_BYTE( "esd2.cu02", 0x000000, 0x040000, CRC(72a67495) SHA1(4fd5871621a6d1d4ea7a23c84f5796ee99caf857) ) // sldh ROM_LOAD16_BYTE( "esd1.cu03", 0x000001, 0x040000, CRC(7cc119c8) SHA1(4d2d37e815ab3211ff88c2e6584b4eaee1cd202d) ) // sldh - ROM_REGION( 0x40000, "audiocpu", 0 ) /* Z80 Code */ - ROM_LOAD( "esd3.su06", 0x00000, 0x40000, CRC(31de379a) SHA1(a0c9a9cec7207cc4ba33abb68bef62d7eb8e75e9) ) /* AM27C020 mask rom */ + ROM_REGION( 0x40000, "audiocpu", 0 ) // Z80 Code + ROM_LOAD( "esd3.su06", 0x00000, 0x40000, CRC(31de379a) SHA1(a0c9a9cec7207cc4ba33abb68bef62d7eb8e75e9) ) // AM27C020 mask rom - ROM_REGION( 0x180000, "spr", 0 ) /* Sprites, 16x16x5 */ - ROM_LOAD16_BYTE( "am27c020.ju06", 0x000000, 0x040000, CRC(8b853bce) SHA1(fa6e654fc965d88bb426b76cdce3417f357b25f3) ) /* AM27C020 mask roms with no label */ + ROM_REGION( 0x180000, "spr", 0 ) // Sprites, 16x16x5 + ROM_LOAD16_BYTE( "am27c020.ju06", 0x000000, 0x040000, CRC(8b853bce) SHA1(fa6e654fc965d88bb426b76cdce3417f357b25f3) ) // AM27C020 mask roms with no label ROM_LOAD16_BYTE( "am27c020.ju05", 0x000001, 0x040000, CRC(bbe81779) SHA1(750387fb4aaa04b7f4f1d3985896f5e11219e3ea) ) ROM_LOAD16_BYTE( "am27c020.ju04", 0x080000, 0x040000, CRC(40fa2c2f) SHA1(b9d9bfdc9343f00bad9749c76472f064c509cfce) ) ROM_LOAD16_BYTE( "am27c020.ju03", 0x080001, 0x040000, CRC(aa130fd3) SHA1(46a55d8ca59a52e610600fdba76d9729528d2871) ) ROM_LOAD16_BYTE( "am27c020.ju07", 0x100000, 0x040000, CRC(d414c3af) SHA1(9299b07a8c7a3e30a1bb6028204a049a7cb510f7) ) - ROM_REGION( 0x400000, "bgs", 0 ) /* Layers, 16x16x8 */ - ROM_LOAD32_WORD( "fu35", 0x000000, 0x200000, CRC(ae10242a) SHA1(f3d18c0cb7951b5f7ee47aa2856b7554088328ed) ) /* No labels on the flash roms */ - ROM_LOAD32_WORD( "fu34", 0x000002, 0x200000, CRC(248b8c05) SHA1(fe7bcc05ae0dd0a27c6ba4beb4ac155a8f3d7f7e) ) /* No labels on the flash roms */ + ROM_REGION( 0x400000, "bgs", 0 ) // Layers, 16x16x8 + ROM_LOAD32_WORD( "fu35", 0x000000, 0x200000, CRC(ae10242a) SHA1(f3d18c0cb7951b5f7ee47aa2856b7554088328ed) ) // No labels on the flash roms + ROM_LOAD32_WORD( "fu34", 0x000002, 0x200000, CRC(248b8c05) SHA1(fe7bcc05ae0dd0a27c6ba4beb4ac155a8f3d7f7e) ) // No labels on the flash roms - ROM_REGION( 0x40000, "oki", 0 ) /* Samples */ - ROM_LOAD( "esd4.su10", 0x00000, 0x20000, CRC(23f2b7d9) SHA1(328c951d14674760df68486841c933bad0d59fe3) ) /* AT27C010 mask rom */ + ROM_REGION( 0x40000, "oki", 0 ) // Samples + ROM_LOAD( "esd4.su10", 0x00000, 0x20000, CRC(23f2b7d9) SHA1(328c951d14674760df68486841c933bad0d59fe3) ) // AT27C010 mask rom ROM_REGION16_BE( 0x80, "eeprom", ROMREGION_ERASE00 ) // factory default settings because game doesn't init them properly otherwise ROM_LOAD16_WORD_SWAP( "eeprom", 0x0000, 0x0080, CRC(4539a8a0) SHA1(b882110b489e61ac5421fbe3551d9ee323b5d86b) ) ROM_END -ROM_START( deluxe4u ) /* Deluxe 4 U - Removes Blackjack game, but otherwise same as Deluxe 5 */ - ROM_REGION( 0x080000, "maincpu", 0 ) /* 68000 Code */ +ROM_START( deluxe4u ) // Deluxe 4 U - Removes Blackjack game, but otherwise same as Deluxe 5 + ROM_REGION( 0x080000, "maincpu", 0 ) // 68000 Code ROM_LOAD16_BYTE( "2.cu02", 0x000000, 0x040000, CRC(db213e1f) SHA1(bf9c49635f79b92a761715138528200106aa86ae) ) ROM_LOAD16_BYTE( "1.cu03", 0x000001, 0x040000, CRC(fbf14d74) SHA1(5ff5bf4ff55609452d5b8a49d8658f878541ce60) ) - ROM_REGION( 0x40000, "audiocpu", 0 ) /* Z80 Code */ - ROM_LOAD( "esd3.su06", 0x00000, 0x40000, CRC(31de379a) SHA1(a0c9a9cec7207cc4ba33abb68bef62d7eb8e75e9) ) /* AM27C020 mask rom */ + ROM_REGION( 0x40000, "audiocpu", 0 ) // Z80 Code + ROM_LOAD( "esd3.su06", 0x00000, 0x40000, CRC(31de379a) SHA1(a0c9a9cec7207cc4ba33abb68bef62d7eb8e75e9) ) // AM27C020 mask rom - ROM_REGION( 0x180000, "spr", 0 ) /* Sprites, 16x16x5 */ - ROM_LOAD16_BYTE( "am27c020.ju06", 0x000000, 0x040000, CRC(8b853bce) SHA1(fa6e654fc965d88bb426b76cdce3417f357b25f3) ) /* AM27C020 mask roms with no label */ + ROM_REGION( 0x180000, "spr", 0 ) // Sprites, 16x16x5 + ROM_LOAD16_BYTE( "am27c020.ju06", 0x000000, 0x040000, CRC(8b853bce) SHA1(fa6e654fc965d88bb426b76cdce3417f357b25f3) ) // AM27C020 mask roms with no label ROM_LOAD16_BYTE( "am27c020.ju05", 0x000001, 0x040000, CRC(bbe81779) SHA1(750387fb4aaa04b7f4f1d3985896f5e11219e3ea) ) ROM_LOAD16_BYTE( "am27c020.ju04", 0x080000, 0x040000, CRC(40fa2c2f) SHA1(b9d9bfdc9343f00bad9749c76472f064c509cfce) ) ROM_LOAD16_BYTE( "am27c020.ju03", 0x080001, 0x040000, CRC(aa130fd3) SHA1(46a55d8ca59a52e610600fdba76d9729528d2871) ) ROM_LOAD16_BYTE( "am27c020.ju07", 0x100000, 0x040000, CRC(d414c3af) SHA1(9299b07a8c7a3e30a1bb6028204a049a7cb510f7) ) - ROM_REGION( 0x400000, "bgs", 0 ) /* Layers, 16x16x8 */ - ROM_LOAD32_WORD( "fu35", 0x000000, 0x200000, CRC(6df14570) SHA1(fa4fc64c984d6a94fe61ec809ec515e840388704) ) /* Specific to Deluxe 4 U - No labels on the flash roms */ - ROM_LOAD32_WORD( "fu34", 0x000002, 0x200000, CRC(93175d6d) SHA1(691832134f43e17bb767dff080b2736288961414) ) /* Specific to Deluxe 4 U - No labels on the flash roms */ + ROM_REGION( 0x400000, "bgs", 0 ) // Layers, 16x16x8 + ROM_LOAD32_WORD( "fu35", 0x000000, 0x200000, CRC(6df14570) SHA1(fa4fc64c984d6a94fe61ec809ec515e840388704) ) // Specific to Deluxe 4 U - No labels on the flash roms + ROM_LOAD32_WORD( "fu34", 0x000002, 0x200000, CRC(93175d6d) SHA1(691832134f43e17bb767dff080b2736288961414) ) // Specific to Deluxe 4 U - No labels on the flash roms - ROM_REGION( 0x40000, "oki", 0 ) /* Samples */ - ROM_LOAD( "esd4.su10", 0x00000, 0x20000, CRC(23f2b7d9) SHA1(328c951d14674760df68486841c933bad0d59fe3) ) /* AT27C010 mask rom */ + ROM_REGION( 0x40000, "oki", 0 ) // Samples + ROM_LOAD( "esd4.su10", 0x00000, 0x20000, CRC(23f2b7d9) SHA1(328c951d14674760df68486841c933bad0d59fe3) ) // AT27C010 mask rom ROM_REGION16_BE( 0x80, "eeprom", ROMREGION_ERASE00 ) // factory default settings because game doesn't init them properly otherwise ROM_LOAD16_WORD_SWAP( "eeprom", 0x0000, 0x0080, CRC(4539a8a0) SHA1(b882110b489e61ac5421fbe3551d9ee323b5d86b) ) @@ -1518,25 +1518,25 @@ ESD made in Korea */ ROM_START( tangtang ) - ROM_REGION( 0x080000, "maincpu", 0 ) /* 68000 Code */ + ROM_REGION( 0x080000, "maincpu", 0 ) // 68000 Code ROM_LOAD16_BYTE( "esd2.cu02", 0x000000, 0x040000, CRC(b6dd6e3d) SHA1(44d2663827c45267eb154c873f3bd2e9e2bf3d3f) ) ROM_LOAD16_BYTE( "esd1.cu03", 0x000001, 0x040000, CRC(b6c0f2f4) SHA1(68ad76e7e380c728dda200a852729e034d9c9f4c) ) - ROM_REGION( 0x40000, "audiocpu", 0 ) /* Z80 Code */ + ROM_REGION( 0x40000, "audiocpu", 0 ) // Z80 Code ROM_LOAD( "esd3.su06", 0x00000, 0x40000, CRC(d48ecc5c) SHA1(5015dd775980542eb29a08bffe1a09ea87d56272) ) - ROM_REGION( 0x180000, "spr", 0 ) /* Sprites, 16x16x5 */ + ROM_REGION( 0x180000, "spr", 0 ) // Sprites, 16x16x5 ROM_LOAD16_BYTE( "xju07.bin", 0x000000, 0x040000, CRC(556acac3) SHA1(10e919e63b434da80fb261db1d8967cb11e95e00) ) ROM_LOAD16_BYTE( "xju06.bin", 0x000001, 0x040000, CRC(01f59ff7) SHA1(a62a2d5c2d107f67fecfc08fdb5d801ee39c3875) ) ROM_LOAD16_BYTE( "xju05.bin", 0x080000, 0x040000, CRC(679302cf) SHA1(911c2f7e0e809ee28e4f2364788fd51d2bcef24e) ) ROM_LOAD16_BYTE( "xju04.bin", 0x080001, 0x040000, CRC(f999b9d7) SHA1(9e4d0e68cdc429c7563b8ad51c072d68ffed09dc) ) ROM_LOAD16_BYTE( "xju08.bin", 0x100000, 0x040000, CRC(ecc2d8c7) SHA1(1aabdf7204fcdff8d46cb50de8b097e3775dddf3) ) - ROM_REGION( 0x400000, "bgs", 0 ) /* Layers, 16x16x8 */ + ROM_REGION( 0x400000, "bgs", 0 ) // Layers, 16x16x8 ROM_LOAD32_WORD( "fu35.bin", 0x000000, 0x200000, CRC(84f3f833) SHA1(f84e41d93dc47a58ada800b921a7e5902b7631cd) ) ROM_LOAD32_WORD( "fu34.bin", 0x000002, 0x200000, CRC(bf91f543) SHA1(7c149fed8b8044850cd6b798622a91c45336cd47) ) - ROM_REGION( 0x40000, "oki", 0 ) /* Samples */ + ROM_REGION( 0x40000, "oki", 0 ) // Samples ROM_LOAD( "esd4.su10", 0x00000, 0x20000, CRC(f2dfb02d) SHA1(04001488697aad3e5b2d15c9f5a81dc2b7d0952c) ) ROM_REGION16_BE( 0x80, "eeprom", ROMREGION_ERASE00 ) // default settings because game doesn't init them properly otherwise @@ -1593,27 +1593,27 @@ ESD made in Korea */ -ROM_START( swatpolc ) /* SWAT Police */ - ROM_REGION( 0x080000, "maincpu", 0 ) /* 68000 Code */ - ROM_LOAD16_BYTE( "esd.cu02", 0x000000, 0x040000, CRC(29e0c126) SHA1(7c0356eed4ffdc056b7ec5c1ac07f1c9cc6aeffa) ) /* ESD labels but not numbered */ - ROM_LOAD16_BYTE( "esd.cu03", 0x000001, 0x040000, CRC(1070208b) SHA1(1e058774c5aee1de15ffcd26d530b23592286db1) ) /* ESD labels but not numbered */ +ROM_START( swatpolc ) // SWAT Police + ROM_REGION( 0x080000, "maincpu", 0 ) // 68000 Code + ROM_LOAD16_BYTE( "esd.cu02", 0x000000, 0x040000, CRC(29e0c126) SHA1(7c0356eed4ffdc056b7ec5c1ac07f1c9cc6aeffa) ) // ESD labels but not numbered + ROM_LOAD16_BYTE( "esd.cu03", 0x000001, 0x040000, CRC(1070208b) SHA1(1e058774c5aee1de15ffcd26d530b23592286db1) ) // ESD labels but not numbered - ROM_REGION( 0x40000, "audiocpu", 0 ) /* Z80 Code */ - ROM_LOAD( "esd3.su06", 0x00000, 0x40000, CRC(80e97dbe) SHA1(d6fae689cd3737777f36c980b9a7d9e42b06a467) ) /* 2 roms on PCB with an ESD3 label */ + ROM_REGION( 0x40000, "audiocpu", 0 ) // Z80 Code + ROM_LOAD( "esd3.su06", 0x00000, 0x40000, CRC(80e97dbe) SHA1(d6fae689cd3737777f36c980b9a7d9e42b06a467) ) // 2 roms on PCB with an ESD3 label - ROM_REGION( 0x300000, "spr", 0 ) /* Sprites, 16x16x5 */ + ROM_REGION( 0x300000, "spr", 0 ) // Sprites, 16x16x5 ROM_LOAD16_BYTE( "esd4.ju06", 0x000000, 0x080000, CRC(bde1b130) SHA1(e45a2257f8c4d107dfb7401b5ae1b79951052bc6) ) ROM_LOAD16_BYTE( "esd3.ju05", 0x000001, 0x080000, CRC(e8d9c092) SHA1(80e1f1d4dad48c7be3d4b72c4a82d5388fd493c7) ) ROM_LOAD16_BYTE( "esd2.ju04", 0x100000, 0x080000, CRC(9c1752f2) SHA1(2e8c377137258498564749413b49e156180e806a) ) ROM_LOAD16_BYTE( "esd1.ju03", 0x100001, 0x080000, CRC(17fcc5e7) SHA1(ad57d2b0c0062f6f8c7732df57e4d12ca47c1bb8) ) ROM_LOAD16_BYTE( "esd5.ju07", 0x200000, 0x080000, CRC(d2c27f03) SHA1(7cbdf7f7ff17df16ca81823f69e82ae1cf96b714) ) - ROM_REGION( 0x400000, "bgs", 0 ) /* Layers, 16x16x8 */ - ROM_LOAD32_WORD( "fu35", 0x000000, 0x200000, CRC(c55897c5) SHA1(f6e0ef1c2fcfe6a511fe787a3abeff4da16d1b54) ) /* No labels on the flash roms */ - ROM_LOAD32_WORD( "fu34", 0x000002, 0x200000, CRC(7117a6a2) SHA1(17c0ab02698cffa0582ed2d2b7dbb7fed8cd9393) ) /* No labels on the flash roms */ + ROM_REGION( 0x400000, "bgs", 0 ) // Layers, 16x16x8 + ROM_LOAD32_WORD( "fu35", 0x000000, 0x200000, CRC(c55897c5) SHA1(f6e0ef1c2fcfe6a511fe787a3abeff4da16d1b54) ) // No labels on the flash roms + ROM_LOAD32_WORD( "fu34", 0x000002, 0x200000, CRC(7117a6a2) SHA1(17c0ab02698cffa0582ed2d2b7dbb7fed8cd9393) ) // No labels on the flash roms - ROM_REGION( 0x40000, "oki", 0 ) /* Samples */ - ROM_LOAD( "at27c020.su10", 0x00000, 0x40000, CRC(c43efec2) SHA1(4ef328d8703b81328de09ecc4328763aba06e883) ) /* AT27C020 mask rom with no label */ + ROM_REGION( 0x40000, "oki", 0 ) // Samples + ROM_LOAD( "at27c020.su10", 0x00000, 0x40000, CRC(c43efec2) SHA1(4ef328d8703b81328de09ecc4328763aba06e883) ) // AT27C020 mask rom with no label ROM_END @@ -1708,10 +1708,10 @@ JU07 and FU30 through FU32 unpopulated */ ROM_START( jumppop ) - ROM_REGION( 0x80000, "maincpu", 0 ) /* 68000 code */ + ROM_REGION( 0x80000, "maincpu", 0 ) // 68000 code ROM_LOAD16_WORD_SWAP ("68k_prg.bin", 0x00000, 0x80000, CRC(123536b9) SHA1(3597dec81e98d7bdf4ea9053983e62f127defcb7) ) - ROM_REGION( 0x80000, "audiocpu", 0 ) /* Z80 code */ + ROM_REGION( 0x80000, "audiocpu", 0 ) // Z80 code ROM_LOAD( "z80_prg.bin", 0x00000, 0x40000, CRC(a88d4424) SHA1(eefb5ac79632931a36f360713c482cd079891f91) ) ROM_REGION( 0x200000, "spr", 0 ) // 2nd half of these is just unused garbage data from the 'bgs' region @@ -1722,17 +1722,17 @@ ROM_START( jumppop ) ROM_LOAD32_WORD( "bg1.bin", 0x000000, 0x100000, CRC(5b37f943) SHA1(fe73b839f29d4c32823418711b22f85a5f583ec2) ) ROM_LOAD32_WORD( "bg0.bin", 0x000002, 0x100000, CRC(35a1363d) SHA1(66c550b0bdea7c8b079f186f5e044f731d31bc58) ) - ROM_REGION( 0x80000, "oki", 0 ) /* Oki samples */ + ROM_REGION( 0x80000, "oki", 0 ) // Oki samples ROM_LOAD( "samples.bin", 0x00000, 0x40000, CRC(066f30a7) SHA1(6bdd0210001c597819f7132ffa1dc1b1d55b4e0a) ) ROM_END -/* This set displays an a '(c)2001 Emag Soft' copyright and doesn't have the ESD copyright embedded into the 'bgs' tiles */ -ROM_START( jumppope ) /* Running on an original ESD 11-09-98 PCB with original ESD labeled ROMs */ - ROM_REGION( 0x80000, "maincpu", 0 ) /* 68000 code */ +// This set displays an a '(c)2001 Emag Soft' copyright and doesn't have the ESD copyright embedded into the 'bgs' tiles +ROM_START( jumppope ) // Running on an original ESD 11-09-98 PCB with original ESD labeled ROMs + ROM_REGION( 0x80000, "maincpu", 0 ) // 68000 code ROM_LOAD16_BYTE( "esd2.cu02", 0x000000, 0x040000, CRC(302dd093) SHA1(fd52dc2342652fd6e6f24942d00a0c2bff83e4ed) ) // 68k_prg.bin [odd] 99.980164% ROM_LOAD16_BYTE( "esd1.cu03", 0x000001, 0x040000, CRC(883392ba) SHA1(7241fd35b0431bbb6e83e4f0eb9026bafbcf1d7f) ) // 68k_prg.bin [even] 99.979782% - ROM_REGION( 0x80000, "audiocpu", 0 ) /* Z80 code */ + ROM_REGION( 0x80000, "audiocpu", 0 ) // Z80 code ROM_LOAD( "at27c020.su06", 0x00000, 0x40000, CRC(a88d4424) SHA1(eefb5ac79632931a36f360713c482cd079891f91) ) // z80_prg.bin IDENTICAL ROM_REGION( 0x200000, "spr", 0 ) @@ -1747,16 +1747,16 @@ ROM_START( jumppope ) /* Running on an original ESD 11-09-98 PCB with original E ROM_LOAD32_BYTE( "esd4.fu26", 0x000001, 0x080000, CRC(97b409be) SHA1(3a4344ca8ffb0aee046e3c0bab2d7c3f7c0eb204) ) // [odd 1/2] 99.763107%, [odd 2/2] 99.267578% ROM_LOAD32_BYTE( "esd3.fu27", 0x000003, 0x080000, CRC(3358a693) SHA1(2e368e5c26755bbe6d04838015fd4ca5e43ccfb5) ) // [odd 1/2] 99.784470%, [odd 2/2] 99.267578% - ROM_REGION( 0x80000, "oki", 0 ) /* Oki samples */ + ROM_REGION( 0x80000, "oki", 0 ) // Oki samples ROM_LOAD( "at27c020.su10", 0x00000, 0x40000, CRC(066f30a7) SHA1(6bdd0210001c597819f7132ffa1dc1b1d55b4e0a) ) // samples.bin IDENTICAL ROM_END -/* Fantasy Story - not an ESD PCB */ +// Fantasy Story - not an ESD PCB ROM_START( fantstry ) ROM_REGION( 0x80000, "maincpu", 0 ) ROM_LOAD16_WORD_SWAP( "system_rom", 0x00000, 0x80000, CRC(3d7f19ce) SHA1(eb163489adda25a0ece1a21292bfe5818b52cddc) ) - ROM_REGION( 0x10000, "audiocpu", 0 ) /* PIC16F84A-04/P Code */ + ROM_REGION( 0x10000, "audiocpu", 0 ) // PIC16F84A-04/P Code ROM_LOAD( "pic16f84a", 0x00000, 0x10000, NO_DUMP ) ROM_REGION( 0x040000, "okisfx", 0 ) @@ -1804,7 +1804,7 @@ ROM_END ***************************************************************************/ -/* ESD 11-09-98 */ +// ESD 11-09-98 GAME( 1999, multchmp, 0, esd16, multchmp, esd16_state, empty_init, ROT0, "ESD", "Multi Champ (World, ver. 2.5)", MACHINE_SUPPORTS_SAVE ) GAME( 1998, multchmpk, multchmp, esd16, multchmp, esd16_state, empty_init, ROT0, "ESD", "Multi Champ (Korea, older)", MACHINE_SUPPORTS_SAVE ) GAME( 1998, multchmpa, multchmp, esd16, multchmp, esd16_state, empty_init, ROT0, "ESD", "Multi Champ (World, older)", MACHINE_SUPPORTS_SAVE ) @@ -1812,20 +1812,20 @@ GAME( 1998, multchmpa, multchmp, esd16, multchmp, esd16_state, empty_init, R GAME( 2001, jumppop, 0, jumppop, jumppop, esd16_state, empty_init, ROT0, "ESD", "Jumping Pop (set 1)", MACHINE_SUPPORTS_SAVE ) GAME( 2001, jumppope, jumppop, jumppop, jumppop, esd16_state, empty_init, ROT0, "Emag Soft", "Jumping Pop (set 2)", MACHINE_SUPPORTS_SAVE ) -/* ESD 05-28-99 */ +// ESD 05-28-99 GAME( 1999, hedpanico, hedpanic, hedpanio, hedpanic, esd16_state, empty_init, ROT0, "ESD", "Head Panic (ver. 0615, 15/06/1999)", MACHINE_SUPPORTS_SAVE ) -/* ESD 06-10-1999 */ +// ESD 06-10-1999 GAME( 1999, hedpanica, hedpanic, hedpanic, hedpanic, esd16_state, empty_init, ROT0, "ESD", "Head Panic (ver. 0702, 02/07/1999)", MACHINE_SUPPORTS_SAVE ) -/* ESD 08-26-1999 */ +// ESD 08-26-1999 GAME( 2000, mchampdx, 0, mchampdx, hedpanic, esd16_state, empty_init, ROT0, "ESD", "Multi Champ Deluxe (ver. 0106, 06/01/2000)", MACHINE_SUPPORTS_SAVE ) GAME( 1999, mchampdxa, mchampdx, mchampdx, hedpanic, esd16_state, empty_init, ROT0, "ESD", "Multi Champ Deluxe (ver. 1126, 26/11/1999)", MACHINE_SUPPORTS_SAVE ) GAME( 1999, mchampdxb, mchampdx, mchampdx, hedpanic, esd16_state, empty_init, ROT0, "ESD", "Multi Champ Deluxe (ver. 1114, 14/11/1999)", MACHINE_SUPPORTS_SAVE ) GAME( 2000, hedpanic, 0, hedpanic, hedpanic, esd16_state, empty_init, ROT0, "ESD", "Head Panic (ver. 0117, 17/01/2000)", MACHINE_SUPPORTS_SAVE ) GAME( 2000, hedpanicf, hedpanic, hedpanic, hedpanic, esd16_state, empty_init, ROT0, "ESD / Fuuki", "Head Panic (ver. 0315, 15/03/2000)", MACHINE_SUPPORTS_SAVE ) -/* ESD - This PCB looks identical to the ESD 08-26-1999 PCB */ +// ESD - This PCB looks identical to the ESD 08-26-1999 PCB GAME( 2000, deluxe5, 0, tangtang, hedpanic, esd16_state, empty_init, ROT0, "ESD", "Deluxe 5 (ver. 0107, 07/01/2000, set 1)", MACHINE_SUPPORTS_SAVE ) // all 4 sets report the same version number? GAME( 2000, deluxe5a, deluxe5, tangtang, hedpanic, esd16_state, empty_init, ROT0, "ESD", "Deluxe 5 (ver. 0107, 07/01/2000, set 2)", MACHINE_SUPPORTS_SAVE ) GAME( 2000, deluxe5b, deluxe5, tangtang, hedpanic, esd16_state, empty_init, ROT0, "ESD", "Deluxe 5 (ver. 0107, 07/01/2000, set 3)", MACHINE_SUPPORTS_SAVE ) @@ -1834,6 +1834,6 @@ GAME( 2000, deluxe4u, deluxe5, tangtang, hedpanic, esd16_state, empty_init, R GAME( 2000, tangtang, 0, tangtang, hedpanic, esd16_state, empty_init, ROT0, "ESD", "Tang Tang (ver. 0526, 26/05/2000)", MACHINE_SUPPORTS_SAVE ) GAME( 2001, swatpolc, 0, hedpanic, swatpolc, esd16_state, empty_init, ROT0, "ESD", "SWAT Police", MACHINE_SUPPORTS_SAVE ) -/* Z Soft PCB, uses PIC instead of Z80 */ +// Z Soft PCB, uses PIC instead of Z80 GAME( 2002, fantstry, 0, fantstry, fantstry, esd16_state, empty_init, ROT0, "Z Soft", "Fantasy Story (set 1)", MACHINE_NOT_WORKING | MACHINE_NO_SOUND | MACHINE_SUPPORTS_SAVE ) // playable, just no sound GAME( 2002, fantstrya, fantstry, fantstrya, fantstry, esd16_state, empty_init, ROT0, "Z Soft", "Fantasy Story (set 2)", MACHINE_NOT_WORKING | MACHINE_NO_SOUND | MACHINE_SUPPORTS_SAVE ) // same diff --git a/src/mame/misc/esd16.h b/src/mame/misc/esd16.h index c40a4d585b3..b2062d3c149 100644 --- a/src/mame/misc/esd16.h +++ b/src/mame/misc/esd16.h @@ -26,9 +26,9 @@ class esd16_state : public driver_device m_vram(*this, "vram_%u", 0U), m_scroll(*this, "scroll_%u", 0U), m_spriteram(*this, "spriteram"), - m_head_layersize(*this, "head_layersize"), - m_headpanic_platform_x(*this, "platform_x"), - m_headpanic_platform_y(*this, "platform_y"), + m_layersize(*this, "head_layersize"), + m_platform_x(*this, "platform_x"), + m_platform_y(*this, "platform_y"), m_audiobank(*this, "audiobank"), m_io_eepromout(*this, "EEPROMOUT"), m_maincpu(*this, "maincpu"), @@ -50,28 +50,28 @@ class esd16_state : public driver_device void fantstrya(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: - /* memory pointers */ + // memory pointers required_shared_ptr_array m_vram; required_shared_ptr_array m_scroll; required_shared_ptr m_spriteram; - required_shared_ptr m_head_layersize; - required_shared_ptr m_headpanic_platform_x; - required_shared_ptr m_headpanic_platform_y; + required_shared_ptr m_layersize; + required_shared_ptr m_platform_x; + required_shared_ptr m_platform_y; optional_memory_bank m_audiobank; optional_ioport m_io_eepromout; - /* video-related */ + // video-related tilemap_t *m_tilemap_16x16[2]{}; tilemap_t *m_tilemap[2]{}; - int m_tilemap_color[2]{}; + u32 m_tilemap_color[2]{}; - /* devices */ + // devices required_device m_maincpu; optional_device m_audiocpu; required_device m_gfxdecode; @@ -80,7 +80,7 @@ class esd16_state : public driver_device optional_device m_soundlatch; void sound_command_w(u8 data); - void hedpanic_platform_w(u16 data); + void platform_w(u16 data); u8 eeprom_r(); void eeprom_w(u8 data); void sound_rombank_w(u8 data); @@ -91,21 +91,21 @@ class esd16_state : public driver_device template TILE_GET_INFO_MEMBER(get_tile_info_16x16); u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); DECOSPR_PRIORITY_CB_MEMBER(pri_callback); - void fantstrya_map(address_map &map); - void hedpanic_map(address_map &map); - void jumppop_map(address_map &map); - void mchampdx_map(address_map &map); - void multchmp_map(address_map &map); - void sound_io_map(address_map &map); - void sound_map(address_map &map); - void tangtang_map(address_map &map); - - void io_area_dsw(address_map &map, u32 base); - void io_area_eeprom(address_map &map, u32 base); - void palette_area(address_map &map, u32 base); - void sprite_area(address_map &map, u32 base); - void vid_attr_area(address_map &map, u32 base); - void vram_area(address_map &map, u32 base); + void fantstrya_map(address_map &map) ATTR_COLD; + void hedpanic_map(address_map &map) ATTR_COLD; + void jumppop_map(address_map &map) ATTR_COLD; + void mchampdx_map(address_map &map) ATTR_COLD; + void multchmp_map(address_map &map) ATTR_COLD; + void sound_io_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; + void tangtang_map(address_map &map) ATTR_COLD; + + void io_area_dsw(address_map &map, u32 base) ATTR_COLD; + void io_area_eeprom(address_map &map, u32 base) ATTR_COLD; + void palette_area(address_map &map, u32 base) ATTR_COLD; + void sprite_area(address_map &map, u32 base) ATTR_COLD; + void vid_attr_area(address_map &map, u32 base) ATTR_COLD; + void vram_area(address_map &map, u32 base) ATTR_COLD; }; #endif // MAME_MISC_ESD16_H diff --git a/src/mame/misc/esd16_v.cpp b/src/mame/misc/esd16_v.cpp index 82e8672d03f..910e1af686d 100644 --- a/src/mame/misc/esd16_v.cpp +++ b/src/mame/misc/esd16_v.cpp @@ -111,10 +111,10 @@ void esd16_state::video_start() m_tilemap[0] = &machine().tilemap().create(*m_gfxdecode, tilemap_get_info_delegate(*this, FUNC(esd16_state::get_tile_info<0>)), TILEMAP_SCAN_ROWS, 8, 8, 0x80, 0x40); m_tilemap[1] = &machine().tilemap().create(*m_gfxdecode, tilemap_get_info_delegate(*this, FUNC(esd16_state::get_tile_info<1>)), TILEMAP_SCAN_ROWS, 8, 8, 0x80, 0x40); - /* swatpolc changes tilemap 0 to 16x16 at various times */ + // swatpolc changes tilemap 0 to 16x16 at various times m_tilemap_16x16[0] = &machine().tilemap().create(*m_gfxdecode, tilemap_get_info_delegate(*this, FUNC(esd16_state::get_tile_info_16x16<0>)), TILEMAP_SCAN_ROWS, 16,16, 0x40, 0x40); - /* hedpanic changes tilemap 1 to 16x16 at various times */ + // hedpanic changes tilemap 1 to 16x16 at various times m_tilemap_16x16[1] = &machine().tilemap().create(*m_gfxdecode, tilemap_get_info_delegate(*this, FUNC(esd16_state::get_tile_info_16x16<1>)), TILEMAP_SCAN_ROWS, 16,16, 0x40, 0x40); m_tilemap[0]->set_scrolldx(-0x60 + 2, -0x60); @@ -154,7 +154,7 @@ if (machine().input().code_pressed(KEYCODE_Z)) if (layers_ctrl & 1) { - if (m_head_layersize[0] & 0x0001) + if (m_layersize[0] & 0x0001) { m_tilemap_16x16[0]->set_scrollx(0, m_scroll[0][0]); m_tilemap_16x16[0]->set_scrolly(0, m_scroll[0][1]); @@ -175,7 +175,7 @@ if (machine().input().code_pressed(KEYCODE_Z)) if (layers_ctrl & 2) { - if (m_head_layersize[0] & 0x0002) + if (m_layersize[0] & 0x0002) { m_tilemap_16x16[1]->set_scrollx(0, m_scroll[1][0]); m_tilemap_16x16[1]->set_scrolly(0, m_scroll[1][1]); diff --git a/src/mame/misc/esh.cpp b/src/mame/misc/esh.cpp index 7048d52296e..f88e2ec6ee9 100644 --- a/src/mame/misc/esh.cpp +++ b/src/mame/misc/esh.cpp @@ -56,7 +56,7 @@ class esh_state : public driver_device void init_esh(); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_laserdisc; @@ -78,8 +78,8 @@ class esh_state : public driver_device required_device m_beep; required_device m_palette; - void z80_0_io(address_map &map); - void z80_0_mem(address_map &map); + void z80_0_io(address_map &map) ATTR_COLD; + void z80_0_mem(address_map &map) ATTR_COLD; }; diff --git a/src/mame/misc/esripsys.h b/src/mame/misc/esripsys.h index e0124d07f95..daf4e7ad037 100644 --- a/src/mame/misc/esripsys.h +++ b/src/mame/misc/esripsys.h @@ -52,7 +52,7 @@ class esripsys_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(coin_interrupt); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: required_device m_framecpu; @@ -137,10 +137,10 @@ class esripsys_state : public driver_device TIMER_CALLBACK_MEMBER(hblank_start_callback); TIMER_CALLBACK_MEMBER(hblank_end_callback); ESRIP_DRAW(esripsys_draw); - void frame_cpu_map(address_map &map); - void game_cpu_map(address_map &map); - void sound_cpu_map(address_map &map); - void video_cpu_map(address_map &map); + void frame_cpu_map(address_map &map) ATTR_COLD; + void game_cpu_map(address_map &map) ATTR_COLD; + void sound_cpu_map(address_map &map) ATTR_COLD; + void video_cpu_map(address_map &map) ATTR_COLD; }; #endif // MAME_MISC_ESRIPSYS_H diff --git a/src/mame/misc/ettrivia.cpp b/src/mame/misc/ettrivia.cpp index b4086d12d32..b387e8c8d80 100644 --- a/src/mame/misc/ettrivia.cpp +++ b/src/mame/misc/ettrivia.cpp @@ -60,8 +60,8 @@ class ettrivia_state : public driver_device void ettrivia(machine_config &config); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -96,8 +96,8 @@ class ettrivia_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); INTERRUPT_GEN_MEMBER(interrupt); inline void get_tile_info(tile_data &tileinfo, int tile_index, uint8_t *vidram, int gfx_code); - void program_map(address_map &map); - void io_map(address_map &map); + void program_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/misc/eva.cpp b/src/mame/misc/eva.cpp index 6064989a77c..f59816f0fd7 100644 --- a/src/mame/misc/eva.cpp +++ b/src/mame/misc/eva.cpp @@ -80,7 +80,7 @@ class eva24_state : public base_state void eva(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: // devices diff --git a/src/mame/misc/extrema.cpp b/src/mame/misc/extrema.cpp index 4761a9fd62e..02704443b0e 100644 --- a/src/mame/misc/extrema.cpp +++ b/src/mame/misc/extrema.cpp @@ -53,8 +53,8 @@ class extrema_state : public driver_device private: required_device m_maincpu; - void extrema_map(address_map &map); - void extrema_portmap(address_map &map); + void extrema_map(address_map &map) ATTR_COLD; + void extrema_portmap(address_map &map) ATTR_COLD; }; diff --git a/src/mame/misc/ez2d.cpp b/src/mame/misc/ez2d.cpp index 9fe62c419ff..a0994eac314 100644 --- a/src/mame/misc/ez2d.cpp +++ b/src/mame/misc/ez2d.cpp @@ -98,8 +98,8 @@ class ez2d_state : public driver_device private: required_device m_maincpu; - void ez2d_map(address_map &map); - void ez2d_io(address_map &map); + void ez2d_map(address_map &map) ATTR_COLD; + void ez2d_io(address_map &map) ATTR_COLD; static void winbond_superio_config(device_t *device); }; diff --git a/src/mame/misc/falgas_m89.cpp b/src/mame/misc/falgas_m89.cpp index 1f354332976..d59c267e084 100644 --- a/src/mame/misc/falgas_m89.cpp +++ b/src/mame/misc/falgas_m89.cpp @@ -108,7 +108,7 @@ class falgasm89_state : public driver_device void falgasm87(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; required_device m_maincpu; @@ -116,8 +116,8 @@ class falgasm89_state : public driver_device void psg_pa_w(u8 data); u8 psg_pb_r(); - void mem_map(address_map &map); - void io_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; required_ioport_array<4> m_inputs; @@ -138,9 +138,9 @@ class falgasm89_video_state : public falgasm89_state private: required_device m_videocpu; - void main_io_map(address_map &map); - void video_mem_map(address_map &map); - void video_io_map(address_map &map); + void main_io_map(address_map &map) ATTR_COLD; + void video_mem_map(address_map &map) ATTR_COLD; + void video_io_map(address_map &map) ATTR_COLD; }; void falgasm89_state::machine_start() diff --git a/src/mame/misc/fastinvaders.cpp b/src/mame/misc/fastinvaders.cpp index 6fdd9f7e9dc..80c8745c509 100644 --- a/src/mame/misc/fastinvaders.cpp +++ b/src/mame/misc/fastinvaders.cpp @@ -71,7 +71,7 @@ class fastinvaders_state : public driver_device int sid_read(); - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; TIMER_DEVICE_CALLBACK_MEMBER(scanline_timer); TIMER_DEVICE_CALLBACK_MEMBER(count_ar); @@ -83,10 +83,10 @@ class fastinvaders_state : public driver_device void dark_2_clr(uint8_t data); uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void fastinvaders_map(address_map &map); - void fastinvaders_io_base(address_map &map); - void fastinvaders_6845_io(address_map &map); - void fastinvaders_8275_io(address_map &map); + void fastinvaders_map(address_map &map) ATTR_COLD; + void fastinvaders_io_base(address_map &map) ATTR_COLD; + void fastinvaders_6845_io(address_map &map) ATTR_COLD; + void fastinvaders_8275_io(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_gfxdecode; @@ -537,8 +537,8 @@ void fastinvaders_state::fastinvaders_8275_io(address_map &map) { fastinvaders_io_base(map); - map(0x20, 0x21).rw(m_crtc8275, FUNC(i8275_device::read), FUNC(i8275_device::write)); map(0x10, 0x1f).rw(m_dma8257, FUNC(i8257_device::read), FUNC(i8257_device::write)); + map(0x20, 0x21).rw(m_crtc8275, FUNC(i8275_device::read), FUNC(i8275_device::write)); map(0x30, 0x33).rw(m_pic8259, FUNC(pic8259_device::read), FUNC(pic8259_device::write)); map(0x40, 0x4f).w(FUNC(fastinvaders_state::io_40_w)); //ds4 //latch //map(0x50, 0x50).r(FUNC(fastinvaders_state::io_50_r));//latch diff --git a/src/mame/misc/fireball.cpp b/src/mame/misc/fireball.cpp index b892bb8ab25..31c6a963965 100644 --- a/src/mame/misc/fireball.cpp +++ b/src/mame/misc/fireball.cpp @@ -65,12 +65,12 @@ class fireball_state : public driver_device void fireball(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: - void fireball_map(address_map &map); - void fireball_io_map(address_map &map); + void fireball_map(address_map &map) ATTR_COLD; + void fireball_io_map(address_map &map) ATTR_COLD; void io_00_w(uint8_t data); uint8_t io_00_r(); diff --git a/src/mame/misc/flipjack.cpp b/src/mame/misc/flipjack.cpp index 0951e363e25..a7a6fe871cd 100644 --- a/src/mame/misc/flipjack.cpp +++ b/src/mame/misc/flipjack.cpp @@ -115,7 +115,7 @@ class flipjack_state : public driver_device void coin_nmi_w(int state); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_maincpu; @@ -142,10 +142,10 @@ class flipjack_state : public driver_device void flipjack_palette(palette_device &palette) const; MC6845_UPDATE_ROW(update_row); - void main_io_map(address_map &map); - void main_map(address_map &map); - void sound_io_map(address_map &map); - void sound_map(address_map &map); + void main_io_map(address_map &map) ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; + void sound_io_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/misc/flower.cpp b/src/mame/misc/flower.cpp index e0c812969cd..27606410d66 100644 --- a/src/mame/misc/flower.cpp +++ b/src/mame/misc/flower.cpp @@ -125,10 +125,10 @@ class flower_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(coin_inserted); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; private: void flipscreen_w(int state); @@ -146,8 +146,8 @@ class flower_state : public driver_device TILEMAP_MAPPER_MEMBER(tilemap_scan); u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void audio_map(address_map &map); - void shared_map(address_map &map); + void audio_map(address_map &map) ATTR_COLD; + void shared_map(address_map &map) ATTR_COLD; required_device m_mastercpu; required_device m_slavecpu; diff --git a/src/mame/misc/flower_a.h b/src/mame/misc/flower_a.h index 86f06e3289d..84100bd3c37 100644 --- a/src/mame/misc/flower_a.h +++ b/src/mame/misc/flower_a.h @@ -28,16 +28,16 @@ class flower_sound_device : public device_t, // I/O operations void lower_write(offs_t offset, u8 data); void upper_write(offs_t offset, u8 data); -// virtual void lower_map(address_map &map); -// virtual void upper_map(address_map &map); +// virtual void lower_map(address_map &map) ATTR_COLD; +// virtual void upper_map(address_map &map) ATTR_COLD; - void regs_map(address_map &map); + void regs_map(address_map &map) ATTR_COLD; protected: // device-level overrides //virtual void device_validity_check(validity_checker &valid) const override; - //virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + //virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; virtual space_config_vector memory_space_config() const override; virtual void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; diff --git a/src/mame/misc/fortecar.cpp b/src/mame/misc/fortecar.cpp index d6e0e41c7e8..a7729f295e9 100644 --- a/src/mame/misc/fortecar.cpp +++ b/src/mame/misc/fortecar.cpp @@ -362,8 +362,8 @@ class fortecrd_state : public driver_device void fortecrd(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; @@ -382,8 +382,8 @@ class fortecrd_state : public driver_device void fortecrd_palette(palette_device &palette) const; uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void fortecrd_map(address_map &map); - void fortecrd_ports(address_map &map); + void fortecrd_map(address_map &map) ATTR_COLD; + void fortecrd_ports(address_map &map) ATTR_COLD; }; diff --git a/src/mame/misc/freekick.cpp b/src/mame/misc/freekick.cpp index 4bd7c3d0e6c..15a03485deb 100644 --- a/src/mame/misc/freekick.cpp +++ b/src/mame/misc/freekick.cpp @@ -137,9 +137,9 @@ class base_state : public driver_device m_spinner(*this, "IN%u", 2U) { } protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; // memory pointers required_shared_ptr m_videoram; @@ -180,8 +180,8 @@ class freekick_state : public base_state void freekick(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_region_ptr m_sound_data; @@ -197,8 +197,8 @@ class freekick_state : public base_state uint8_t snd_rom_r(); uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); - void io_map(address_map &map); - void program_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void program_map(address_map &map) ATTR_COLD; }; class pbillrd_state : public base_state @@ -223,14 +223,14 @@ class pbillrd_state : public base_state std::unique_ptr m_decrypted_opcodes; - void decrypted_opcodes_map(address_map &map); + void decrypted_opcodes_map(address_map &map) ATTR_COLD; private: void bankswitch_w(uint8_t data); uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); - void program_map(address_map &map); - void pbillrdbl_program_map(address_map &map); + void program_map(address_map &map) ATTR_COLD; + void pbillrdbl_program_map(address_map &map) ATTR_COLD; }; class gigas_state : public pbillrd_state @@ -253,10 +253,10 @@ class gigas_state : public pbillrd_state private: uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); - void gigas_io_map(address_map &map); - void gigas_program_map(address_map &map); - void omega_io_map(address_map &map); - void omega_program_map(address_map &map); + void gigas_io_map(address_map &map) ATTR_COLD; + void gigas_program_map(address_map &map) ATTR_COLD; + void omega_io_map(address_map &map) ATTR_COLD; + void omega_program_map(address_map &map) ATTR_COLD; }; class oigas_state : public gigas_state @@ -269,8 +269,8 @@ class oigas_state : public gigas_state void oigas(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: uint16_t m_inval = 0; @@ -281,7 +281,7 @@ class oigas_state : public gigas_state uint8_t _3_r(); uint8_t _2_r(); - void io_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/misc/freeway.cpp b/src/mame/misc/freeway.cpp index 0fa8c8ed3c6..eed7242af38 100644 --- a/src/mame/misc/freeway.cpp +++ b/src/mame/misc/freeway.cpp @@ -44,15 +44,15 @@ class freeway_state : public driver_device void nmi_w(int state); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: MC6845_UPDATE_ROW(update_row); void lamps_w(u8 data); - void mem_map(address_map &map); - void io_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_pic; diff --git a/src/mame/misc/fresh.cpp b/src/mame/misc/fresh.cpp index c62093301f3..879498ef9eb 100644 --- a/src/mame/misc/fresh.cpp +++ b/src/mame/misc/fresh.cpp @@ -50,7 +50,7 @@ class fresh_state : public driver_device void fresh(machine_config &config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: tilemap_t *m_bg_tilemap = nullptr; @@ -108,7 +108,7 @@ class fresh_state : public driver_device TIMER_DEVICE_CALLBACK_MEMBER(fake_scanline); uint32_t screen_update_fresh(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void fresh_map(address_map &map); + void fresh_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/misc/funeball.cpp b/src/mame/misc/funeball.cpp index 7a071690cea..76408e581ab 100644 --- a/src/mame/misc/funeball.cpp +++ b/src/mame/misc/funeball.cpp @@ -25,7 +25,7 @@ class funeball_state : public driver_device void funeball(machine_config &config); private: - void prog_map(address_map &map); + void prog_map(address_map &map) ATTR_COLD; required_device m_maincpu; }; diff --git a/src/mame/misc/fungames.cpp b/src/mame/misc/fungames.cpp index d6213b7120e..210dded9048 100644 --- a/src/mame/misc/fungames.cpp +++ b/src/mame/misc/fungames.cpp @@ -53,9 +53,9 @@ class fungames_state : public driver_device protected: // driver_device overrides - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: // devices diff --git a/src/mame/misc/funkball.cpp b/src/mame/misc/funkball.cpp index 073a1e66cd0..076a76ec8c2 100644 --- a/src/mame/misc/funkball.cpp +++ b/src/mame/misc/funkball.cpp @@ -126,7 +126,7 @@ class funkball_state : public pcat_base_state uint8_t funkball_config_reg_r(); void funkball_config_reg_w(uint8_t data); - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); struct @@ -142,11 +142,11 @@ class funkball_state : public pcat_base_state void bios_ram_w(offs_t offset, uint8_t data); uint8_t io20_r(offs_t offset); void io20_w(offs_t offset, uint8_t data); - virtual void machine_start() override; - virtual void machine_reset() override; - void flashbank_map(address_map &map); - void funkball_io(address_map &map); - void funkball_map(address_map &map); + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + void flashbank_map(address_map &map) ATTR_COLD; + void funkball_io(address_map &map) ATTR_COLD; + void funkball_map(address_map &map) ATTR_COLD; uint32_t voodoo_0_pci_r(int function, int reg, uint32_t mem_mask); void voodoo_0_pci_w(int function, int reg, uint32_t data, uint32_t mem_mask); diff --git a/src/mame/misc/galaxi.cpp b/src/mame/misc/galaxi.cpp index 9dedca47a4e..92bfdc46102 100644 --- a/src/mame/misc/galaxi.cpp +++ b/src/mame/misc/galaxi.cpp @@ -77,9 +77,9 @@ class galaxi_state : public driver_device int hopper_r(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: /* memory pointers */ @@ -130,8 +130,8 @@ class galaxi_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void show_out(); - void galaxi_map(address_map &map); - void lastfour_map(address_map &map); + void galaxi_map(address_map &map) ATTR_COLD; + void lastfour_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/misc/galgame.cpp b/src/mame/misc/galgame.cpp index 092c44eebac..39d7c302ec1 100644 --- a/src/mame/misc/galgame.cpp +++ b/src/mame/misc/galgame.cpp @@ -58,13 +58,13 @@ class galaxygame_state : public driver_device uint16_t y_r(); void y_w(uint16_t data); void clk_w(uint16_t data); - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; uint32_t screen_update_galaxygame(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); INTERRUPT_GEN_MEMBER(galaxygame_irq); uint8_t galaxygame_irq_callback(offs_t offset); required_device m_maincpu; required_device m_palette; - void galaxygame_map(address_map &map); + void galaxygame_map(address_map &map) ATTR_COLD; }; /************************************* diff --git a/src/mame/misc/gambl186.cpp b/src/mame/misc/gambl186.cpp index 3e324e8b511..cc3351cb76a 100644 --- a/src/mame/misc/gambl186.cpp +++ b/src/mame/misc/gambl186.cpp @@ -76,7 +76,7 @@ class gambl186_state : public driver_device void gambl186(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_maincpu; @@ -95,8 +95,8 @@ class gambl186_state : public driver_device void comms_w(offs_t offset, uint16_t data); void data_bank_w(uint16_t data); void upd_w(uint16_t data); - void gambl186_io(address_map &map); - void gambl186_map(address_map &map); + void gambl186_io(address_map &map) ATTR_COLD; + void gambl186_map(address_map &map) ATTR_COLD; }; void gambl186_state::machine_start() diff --git a/src/mame/misc/gameace.cpp b/src/mame/misc/gameace.cpp index 3544505a941..20c8ffb7280 100644 --- a/src/mame/misc/gameace.cpp +++ b/src/mame/misc/gameace.cpp @@ -99,8 +99,8 @@ class gameace_state : public driver_device void init_hotbody(); protected: - virtual void video_start() override; - virtual void machine_start() override; + virtual void video_start() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; private: required_device m_maincpu; @@ -139,9 +139,9 @@ class gameace_state : public driver_device TILE_GET_INFO_MEMBER(get_fg_tile_info); - void main_program_map(address_map &map); - void main_port_map(address_map &map); - void sound_program_map(address_map &map); + void main_program_map(address_map &map) ATTR_COLD; + void main_port_map(address_map &map) ATTR_COLD; + void sound_program_map(address_map &map) ATTR_COLD; void decode_cpu(); void decode_sprites(); diff --git a/src/mame/misc/gamemasters.cpp b/src/mame/misc/gamemasters.cpp index c5800e9828f..947e54229b3 100644 --- a/src/mame/misc/gamemasters.cpp +++ b/src/mame/misc/gamemasters.cpp @@ -36,7 +36,7 @@ class gamemasters_state : public driver_device void output_1520(uint8_t data); void output_1540(offs_t offset, uint8_t data); - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; }; diff --git a/src/mame/misc/gammagic.cpp b/src/mame/misc/gammagic.cpp index a2270b1d444..66e2cbcb264 100644 --- a/src/mame/misc/gammagic.cpp +++ b/src/mame/misc/gammagic.cpp @@ -73,12 +73,12 @@ class gammagic_state : public driver_device void gammagic(machine_config &config); private: - void gammagic_io(address_map &map); - void gammagic_map(address_map &map); + void gammagic_io(address_map &map) ATTR_COLD; + void gammagic_map(address_map &map) ATTR_COLD; static void smc_superio_config(device_t *device); - void v8000_map(address_map &map); + void v8000_map(address_map &map) ATTR_COLD; }; void gammagic_state::gammagic_map(address_map &map) diff --git a/src/mame/misc/gamtor.cpp b/src/mame/misc/gamtor.cpp index ba69765337b..382d10e674b 100644 --- a/src/mame/misc/gamtor.cpp +++ b/src/mame/misc/gamtor.cpp @@ -50,8 +50,8 @@ class gamtor_vga_device : public svga_device virtual void mem_linear_w(offs_t offset,uint8_t data) override; protected: - virtual void io_3cx_map(address_map &map) override; - virtual void io_3bx_3dx_map(address_map &map) override; + virtual void io_3cx_map(address_map &map) override ATTR_COLD; + virtual void io_3bx_3dx_map(address_map &map) override ATTR_COLD; virtual uint16_t offset() override; }; @@ -124,7 +124,7 @@ class gaminator_state : public driver_device void gaminator(machine_config &config); private: - void gaminator_map(address_map &map); + void gaminator_map(address_map &map) ATTR_COLD; void gamtor_unk_w(uint32_t data); diff --git a/src/mame/misc/gei.cpp b/src/mame/misc/gei.cpp index 964851f5b5f..ef2099ae27c 100644 --- a/src/mame/misc/gei.cpp +++ b/src/mame/misc/gei.cpp @@ -167,7 +167,7 @@ class gei_state : public driver_device protected: virtual void machine_start() override { m_lamps.resolve(); } - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); @@ -189,15 +189,15 @@ class gei_state : public driver_device INTERRUPT_GEN_MEMBER(vblank_irq); - void amuse1_map(address_map &map); - void amuse_map(address_map &map); - void findout_map(address_map &map); - void gepoker_map(address_map &map); - void getrivia_map(address_map &map); - void gselect_map(address_map &map); - void quizvid_map(address_map &map); - void sprtauth_map(address_map &map); - void suprpokr_map(address_map &map); + void amuse1_map(address_map &map) ATTR_COLD; + void amuse_map(address_map &map) ATTR_COLD; + void findout_map(address_map &map) ATTR_COLD; + void gepoker_map(address_map &map) ATTR_COLD; + void getrivia_map(address_map &map) ATTR_COLD; + void gselect_map(address_map &map) ATTR_COLD; + void quizvid_map(address_map &map) ATTR_COLD; + void sprtauth_map(address_map &map) ATTR_COLD; + void suprpokr_map(address_map &map) ATTR_COLD; bitmap_ind16 m_bitmap; diff --git a/src/mame/misc/gfamily.cpp b/src/mame/misc/gfamily.cpp index 3aea63edee2..710f490ceb9 100644 --- a/src/mame/misc/gfamily.cpp +++ b/src/mame/misc/gfamily.cpp @@ -65,8 +65,8 @@ class gfamily_state : public driver_device required_device m_ide_00_1; required_device m_lpc_01_0; -// void main_io(address_map &map); -// void main_map(address_map &map); +// void main_io(address_map &map) ATTR_COLD; +// void main_map(address_map &map) ATTR_COLD; static void ite_superio_config(device_t *device); }; diff --git a/src/mame/misc/gi6809.cpp b/src/mame/misc/gi6809.cpp index 7fab0573163..81b07ea3b8a 100644 --- a/src/mame/misc/gi6809.cpp +++ b/src/mame/misc/gi6809.cpp @@ -125,20 +125,20 @@ class gi6809_state : public driver_device void init_cast(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; void gi6809_base(machine_config &config); private: // Address Maps - void glckmain_map(address_map &map); - void glckslave_map(address_map &map); - void castmain_map(address_map &map); - void castslave_map(address_map &map); - void jestmain_map(address_map &map); - void jestslave_map(address_map &map); + void glckmain_map(address_map &map) ATTR_COLD; + void glckslave_map(address_map &map) ATTR_COLD; + void castmain_map(address_map &map) ATTR_COLD; + void castslave_map(address_map &map) ATTR_COLD; + void jestmain_map(address_map &map) ATTR_COLD; + void jestslave_map(address_map &map) ATTR_COLD; // Devices required_device m_maincpu; diff --git a/src/mame/misc/globalfr.cpp b/src/mame/misc/globalfr.cpp index 22086310167..2c6d10c8f2d 100644 --- a/src/mame/misc/globalfr.cpp +++ b/src/mame/misc/globalfr.cpp @@ -43,7 +43,7 @@ class globalfr_state : public driver_device void vfd_w(uint16_t data); - void globalfr_map(address_map &map); + void globalfr_map(address_map &map) ATTR_COLD; }; /******************************************************************************/ diff --git a/src/mame/misc/globalvr.cpp b/src/mame/misc/globalvr.cpp index f85543e70a7..fe070aaf1af 100644 --- a/src/mame/misc/globalvr.cpp +++ b/src/mame/misc/globalvr.cpp @@ -281,7 +281,7 @@ class globalvr_state : public driver_device private: required_device m_maincpu; - void globalvr_map(address_map &map); + void globalvr_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/misc/gluck2.cpp b/src/mame/misc/gluck2.cpp index 3174df6b740..f99b1312f88 100644 --- a/src/mame/misc/gluck2.cpp +++ b/src/mame/misc/gluck2.cpp @@ -234,10 +234,10 @@ class gluck2_state : public driver_device void counters_w(uint8_t data); TILE_GET_INFO_MEMBER(get_tile_info); - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void gluck2_map(address_map &map); + void gluck2_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/misc/gms.cpp b/src/mame/misc/gms.cpp index 59f77d1d8bc..acd5fc48183 100644 --- a/src/mame/misc/gms.cpp +++ b/src/mame/misc/gms.cpp @@ -143,7 +143,7 @@ class gms_2layers_state : public driver_device void init_super555(); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; optional_shared_ptr_array m_vidram; required_shared_ptr_array m_reelram; @@ -163,7 +163,7 @@ class gms_2layers_state : public driver_device tilemap_t *m_reel_tilemap[4]; tilemap_t *m_tilemap[2]{}; - void super555_mem(address_map &map); + void super555_mem(address_map &map) ATTR_COLD; template void vram_w(offs_t offset, uint16_t data, uint16_t mem_mask); template void reelram_w(offs_t offset, uint16_t data, uint16_t mem_mask); @@ -173,10 +173,10 @@ class gms_2layers_state : public driver_device uint16_t m_input_matrix = 0; //uint16_t m_prot_data = 0; - void mcu_io(address_map &map); - void rbmk_mem(address_map &map); - void rbspm_mem(address_map &map); - void ssanguoj_mem(address_map &map); + void mcu_io(address_map &map) ATTR_COLD; + void rbmk_mem(address_map &map) ATTR_COLD; + void rbspm_mem(address_map &map) ATTR_COLD; + void ssanguoj_mem(address_map &map) ATTR_COLD; uint16_t unk_r(); uint16_t input_matrix_r(); @@ -206,10 +206,10 @@ class gms_3layers_state : public gms_2layers_state void magslot(machine_config &config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: - void magslot_mem(address_map &map); + void magslot_mem(address_map &map) ATTR_COLD; TILE_GET_INFO_MEMBER(get_tile1_info); }; diff --git a/src/mame/misc/goldngam.cpp b/src/mame/misc/goldngam.cpp index 90dd657f830..9aa2206f2d6 100644 --- a/src/mame/misc/goldngam.cpp +++ b/src/mame/misc/goldngam.cpp @@ -268,13 +268,13 @@ class goldngam_state : public driver_device static constexpr int MOVIECRD_DUART2_IRQ = M68K_IRQ_4; uint8_t unk_r(); - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; void palette_init(palette_device &palette); uint32_t screen_update_goldngam(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void cpu_space_map(address_map &map); + void cpu_space_map(address_map &map) ATTR_COLD; - void moviecrd_map(address_map &map); - void swisspkr_map(address_map &map); + void moviecrd_map(address_map &map) ATTR_COLD; + void swisspkr_map(address_map &map) ATTR_COLD; required_shared_ptr m_videoram; required_device m_maincpu; diff --git a/src/mame/misc/goldnpkr.cpp b/src/mame/misc/goldnpkr.cpp index ce7d156c25c..cef17cb2506 100644 --- a/src/mame/misc/goldnpkr.cpp +++ b/src/mame/misc/goldnpkr.cpp @@ -1085,7 +1085,7 @@ class goldnpkr_state : public driver_device protected: virtual void machine_start() override { m_lamps.resolve(); } - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; void goldnpkr_videoram_w(offs_t offset, uint8_t data); void goldnpkr_colorram_w(offs_t offset, uint8_t data); @@ -1121,23 +1121,23 @@ class goldnpkr_state : public driver_device DECLARE_MACHINE_RESET(mondial); DECLARE_MACHINE_RESET(lespendu); - void genie_map(address_map &map); - void goldnpkr_map(address_map &map); - void mondial_map(address_map &map); - void witchcdj_map(address_map &map); - void pottnpkr_map(address_map &map); - void wcrdxtnd_map(address_map &map); - void wildcard_map(address_map &map); - void wildcrdb_map(address_map &map); - void wildcrdb_mcu_io_map(address_map &map); - void wildcrdb_mcu_map(address_map &map); - void wildcrdb_mcu_decrypted_opcodes_map(address_map &map); - void witchcrd_falcon_map(address_map &map); - void witchcrd_map(address_map &map); - void super21p_map(address_map &map); - void op5cards_map(address_map &map); - void icp_ext_map(address_map &map); - void lespendu_map(address_map &map); + void genie_map(address_map &map) ATTR_COLD; + void goldnpkr_map(address_map &map) ATTR_COLD; + void mondial_map(address_map &map) ATTR_COLD; + void witchcdj_map(address_map &map) ATTR_COLD; + void pottnpkr_map(address_map &map) ATTR_COLD; + void wcrdxtnd_map(address_map &map) ATTR_COLD; + void wildcard_map(address_map &map) ATTR_COLD; + void wildcrdb_map(address_map &map) ATTR_COLD; + void wildcrdb_mcu_io_map(address_map &map) ATTR_COLD; + void wildcrdb_mcu_map(address_map &map) ATTR_COLD; + void wildcrdb_mcu_decrypted_opcodes_map(address_map &map) ATTR_COLD; + void witchcrd_falcon_map(address_map &map) ATTR_COLD; + void witchcrd_map(address_map &map) ATTR_COLD; + void super21p_map(address_map &map) ATTR_COLD; + void op5cards_map(address_map &map) ATTR_COLD; + void icp_ext_map(address_map &map) ATTR_COLD; + void lespendu_map(address_map &map) ATTR_COLD; required_shared_ptr m_videoram; required_shared_ptr m_colorram; @@ -1171,8 +1171,8 @@ class blitz_state : public goldnpkr_state void mcu_command_w(uint8_t data); void mcu_portb_w(uint8_t data); void mcu_portc_w(uint8_t data); - void megadpkr_banked_map(address_map &map); - void megadpkr_map(address_map &map); + void megadpkr_banked_map(address_map &map) ATTR_COLD; + void megadpkr_map(address_map &map) ATTR_COLD; required_region_ptr m_cpubank; diff --git a/src/mame/misc/good.cpp b/src/mame/misc/good.cpp index 72b1786ba64..4ba1762bc76 100644 --- a/src/mame/misc/good.cpp +++ b/src/mame/misc/good.cpp @@ -58,7 +58,7 @@ class good_state : public driver_device void good(machine_config &config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: // memory pointers @@ -75,7 +75,7 @@ class good_state : public driver_device uint32_t screen_update_good(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); required_device m_maincpu; required_device m_gfxdecode; - void good_map(address_map &map); + void good_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/misc/gotcha.h b/src/mame/misc/gotcha.h index 2833ce3cefc..7543d333bdb 100644 --- a/src/mame/misc/gotcha.h +++ b/src/mame/misc/gotcha.h @@ -38,9 +38,9 @@ class gotcha_state : public driver_device void gotcha(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: void lamps_w(uint16_t data); @@ -55,8 +55,8 @@ class gotcha_state : public driver_device TILE_GET_INFO_MEMBER(bg_get_tile_info); uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); inline void get_tile_info( tile_data &tileinfo, int tile_index ,uint16_t *vram, int color_offs); - void main_map(address_map &map); - void sound_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; /* memory pointers */ required_shared_ptr m_fgvideoram; diff --git a/src/mame/misc/gsspade.cpp b/src/mame/misc/gsspade.cpp index 0780e4d6102..dad06e9a227 100644 --- a/src/mame/misc/gsspade.cpp +++ b/src/mame/misc/gsspade.cpp @@ -32,8 +32,8 @@ class gsspade_state : public driver_device void gsspade(machine_config &config); private: - void prog_map(address_map &map); - void ext_map(address_map &map); + void prog_map(address_map &map) ATTR_COLD; + void ext_map(address_map &map) ATTR_COLD; required_device m_soundcpu; }; diff --git a/src/mame/misc/gumbo.cpp b/src/mame/misc/gumbo.cpp index a1edd3a3e5a..c542fb2ea5d 100644 --- a/src/mame/misc/gumbo.cpp +++ b/src/mame/misc/gumbo.cpp @@ -72,7 +72,7 @@ class gumbo_state : public driver_device void gumbo(machine_config &config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: // memory pointers @@ -92,9 +92,9 @@ class gumbo_state : public driver_device TILE_GET_INFO_MEMBER(get_fg_tile_info); uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void dblpoint_map(address_map &map); - void gumbo_map(address_map &map); - void mspuzzle_map(address_map &map); + void dblpoint_map(address_map &map) ATTR_COLD; + void gumbo_map(address_map &map) ATTR_COLD; + void mspuzzle_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/misc/gunpey.cpp b/src/mame/misc/gunpey.cpp index 454fe910fa2..56e5abcce20 100644 --- a/src/mame/misc/gunpey.cpp +++ b/src/mame/misc/gunpey.cpp @@ -256,8 +256,8 @@ class gunpey_state : public driver_device void gunpey(machine_config &config); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: // memory handlers @@ -328,8 +328,8 @@ class gunpey_state : public driver_device required_region_ptr m_blit_rom; // address spaces - void io_map(address_map &map); - void mem_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/misc/h01x.cpp b/src/mame/misc/h01x.cpp index ce80902ee9d..b4bafbad511 100644 --- a/src/mame/misc/h01x.cpp +++ b/src/mame/misc/h01x.cpp @@ -56,12 +56,12 @@ class h01x_state : public driver_device void h01jce(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: - void h01x_mem_map(address_map &map); - void h01x_io_map(address_map &map); + void h01x_mem_map(address_map &map) ATTR_COLD; + void h01x_io_map(address_map &map) ATTR_COLD; uint8_t mem_0000_r(offs_t offset); void mem_0000_w(uint8_t data); diff --git a/src/mame/misc/hapyfish.cpp b/src/mame/misc/hapyfish.cpp index 8c4beb81273..29d1074deb2 100644 --- a/src/mame/misc/hapyfish.cpp +++ b/src/mame/misc/hapyfish.cpp @@ -125,8 +125,8 @@ class hapyfish_state : public driver_device uint8_t m_input_select = 0; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; uint32_t s3c2440_gpio_port_r(offs_t offset); void s3c2440_gpio_port_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0); uint32_t s3c2440_core_pin_r(offs_t offset); @@ -137,7 +137,7 @@ class hapyfish_state : public driver_device void s3c2440_i2s_data_w(offs_t offset, uint16_t data); uint32_t s3c2440_adc_data_r(); - void hapyfish_map(address_map &map); + void hapyfish_map(address_map &map) ATTR_COLD; }; /*************************************************************************** diff --git a/src/mame/misc/hazelgr.cpp b/src/mame/misc/hazelgr.cpp index 52d4452fd19..9f2328a8646 100644 --- a/src/mame/misc/hazelgr.cpp +++ b/src/mame/misc/hazelgr.cpp @@ -27,8 +27,8 @@ class haze_state : public driver_device void haze(machine_config &config); private: - void io_map(address_map &map); - void mem_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; }; diff --git a/src/mame/misc/hideseek.cpp b/src/mame/misc/hideseek.cpp index b19cd4c7892..0656aff82fa 100644 --- a/src/mame/misc/hideseek.cpp +++ b/src/mame/misc/hideseek.cpp @@ -49,13 +49,13 @@ class hideseek_state : public driver_device void init_hideseek(); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: void hideseek_palette(palette_device &palette) const; uint32_t screen_update_hideseek(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; }; diff --git a/src/mame/misc/highvdeo.cpp b/src/mame/misc/highvdeo.cpp index c197e8d420d..23217516e63 100644 --- a/src/mame/misc/highvdeo.cpp +++ b/src/mame/misc/highvdeo.cpp @@ -142,8 +142,8 @@ class highvdeo_state : public driver_device void tv_vcf(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_shared_ptr m_blit_ram; @@ -195,27 +195,27 @@ class highvdeo_state : public driver_device uint32_t screen_update_tourvisn(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); uint32_t screen_update_brasil(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void brasil_io(address_map &map); - void brasil_map(address_map &map); - void ciclone_io(address_map &map); - void fashion_io(address_map &map); - void grancapi_io(address_map &map); - void newtiger_io(address_map &map); - void zoomania_io(address_map &map); - void magicbom_io(address_map &map); - void newmcard_io_base(address_map &map); - void newmcard_io(address_map &map); - void newmcard_map(address_map &map); - void nyjoker_io(address_map &map); - void nyjoker_map(address_map &map); - void ramdac_map(address_map &map); - void record_io(address_map &map); - void tv_ncf_io(address_map &map); - void tv_ncf_map(address_map &map); - void tv_tcf_io(address_map &map); - void tv_tcf_map(address_map &map); - void tv_vcf_io(address_map &map); - void tv_vcf_map(address_map &map); + void brasil_io(address_map &map) ATTR_COLD; + void brasil_map(address_map &map) ATTR_COLD; + void ciclone_io(address_map &map) ATTR_COLD; + void fashion_io(address_map &map) ATTR_COLD; + void grancapi_io(address_map &map) ATTR_COLD; + void newtiger_io(address_map &map) ATTR_COLD; + void zoomania_io(address_map &map) ATTR_COLD; + void magicbom_io(address_map &map) ATTR_COLD; + void newmcard_io_base(address_map &map) ATTR_COLD; + void newmcard_io(address_map &map) ATTR_COLD; + void newmcard_map(address_map &map) ATTR_COLD; + void nyjoker_io(address_map &map) ATTR_COLD; + void nyjoker_map(address_map &map) ATTR_COLD; + void ramdac_map(address_map &map) ATTR_COLD; + void record_io(address_map &map) ATTR_COLD; + void tv_ncf_io(address_map &map) ATTR_COLD; + void tv_ncf_map(address_map &map) ATTR_COLD; + void tv_tcf_io(address_map &map) ATTR_COLD; + void tv_tcf_map(address_map &map) ATTR_COLD; + void tv_vcf_io(address_map &map) ATTR_COLD; + void tv_vcf_map(address_map &map) ATTR_COLD; }; void highvdeo_state::machine_start() diff --git a/src/mame/misc/hitpoker.cpp b/src/mame/misc/hitpoker.cpp index 68bffb39347..8bdd388fb19 100644 --- a/src/mame/misc/hitpoker.cpp +++ b/src/mame/misc/hitpoker.cpp @@ -80,8 +80,8 @@ class hitpoker_state : public driver_device void init_hitpoker(); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -106,8 +106,8 @@ class hitpoker_state : public driver_device void pic_w(uint8_t data); uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void hitpoker_map(address_map &map); - void reelmtp_map(address_map &map); + void hitpoker_map(address_map &map) ATTR_COLD; + void reelmtp_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/misc/hobbyplay.cpp b/src/mame/misc/hobbyplay.cpp index 17089beb1cf..a4d8167db3d 100644 --- a/src/mame/misc/hobbyplay.cpp +++ b/src/mame/misc/hobbyplay.cpp @@ -50,7 +50,7 @@ class hobbyplay_state : public driver_device private: required_device m_maincpu; - void prg_map(address_map &map); + void prg_map(address_map &map) ATTR_COLD; }; void hobbyplay_state::prg_map(address_map &map) diff --git a/src/mame/misc/hotblock.cpp b/src/mame/misc/hotblock.cpp index 0006c7430ee..5cde20defd8 100644 --- a/src/mame/misc/hotblock.cpp +++ b/src/mame/misc/hotblock.cpp @@ -97,12 +97,12 @@ class hotblock_state : public driver_device void eeprom_w(u8 data); void port0_w(u8 data); - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void banked_video_map(address_map &map); - void hotblock_io(address_map &map); - void hotblock_map(address_map &map); + void banked_video_map(address_map &map) ATTR_COLD; + void hotblock_io(address_map &map) ATTR_COLD; + void hotblock_map(address_map &map) ATTR_COLD; }; u8 hotblock_state::eeprom_r() diff --git a/src/mame/misc/hotchili.cpp b/src/mame/misc/hotchili.cpp index f291bb5f87f..bcbd087a92c 100644 --- a/src/mame/misc/hotchili.cpp +++ b/src/mame/misc/hotchili.cpp @@ -197,7 +197,7 @@ class hotchili_state : public driver_device protected: // driver_device overrides - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: // screen updates @@ -210,7 +210,7 @@ class hotchili_state : public driver_device uint8_t m_addr_high, m_addr_low; uint16_t m_addr_mask, m_addr_latch; - void hc_map(address_map &map); + void hc_map(address_map &map) ATTR_COLD; void bankswitch_w(uint8_t data); //inports diff --git a/src/mame/misc/hotstuff.cpp b/src/mame/misc/hotstuff.cpp index 0c2caab438d..5cd6a809160 100644 --- a/src/mame/misc/hotstuff.cpp +++ b/src/mame/misc/hotstuff.cpp @@ -25,10 +25,10 @@ class hotstuff_state : public driver_device private: required_shared_ptr m_bitmapram; - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; uint32_t screen_update_hotstuff(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); required_device m_maincpu; - void hotstuff_map(address_map &map); + void hotstuff_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/misc/imolagp.cpp b/src/mame/misc/imolagp.cpp index 19708059f1a..2c8a4c96c2c 100644 --- a/src/mame/misc/imolagp.cpp +++ b/src/mame/misc/imolagp.cpp @@ -133,9 +133,9 @@ class imolagp_state : public driver_device ioport_value imolagp_steerlatch_r(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -166,10 +166,10 @@ class imolagp_state : public driver_device void imolagp_palette(palette_device &palette) const; uint32_t screen_update_imolagp(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void imolagp_master_io(address_map &map); - void imolagp_master_map(address_map &map); - void imolagp_slave_io(address_map &map); - void imolagp_slave_map(address_map &map); + void imolagp_master_io(address_map &map) ATTR_COLD; + void imolagp_master_map(address_map &map) ATTR_COLD; + void imolagp_slave_io(address_map &map) ATTR_COLD; + void imolagp_slave_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/misc/inder_sb.h b/src/mame/misc/inder_sb.h index 4f2986f37ab..5735a68ca57 100644 --- a/src/mame/misc/inder_sb.h +++ b/src/mame/misc/inder_sb.h @@ -39,12 +39,12 @@ class inder_sb_device : public device_t, uint16_t megaphx_0x050002_r(offs_t offset, uint16_t mem_mask = ~0); void megaphx_0x050000_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); - void sound_io(address_map &map); - void sound_map(address_map &map); + void sound_io(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; protected: - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: required_device m_audiocpu; diff --git a/src/mame/misc/interflip8035.cpp b/src/mame/misc/interflip8035.cpp index fb38dbf4ea1..832559da0ec 100644 --- a/src/mame/misc/interflip8035.cpp +++ b/src/mame/misc/interflip8035.cpp @@ -520,15 +520,15 @@ class interflip8035_state : public driver_device protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; memory_share_creator m_data_ram; private: - void audio_program_map(address_map &map); - void audio_io_map(address_map &map); - void main_program_map(address_map &map); - void main_io_map(address_map &map); + void audio_program_map(address_map &map) ATTR_COLD; + void audio_io_map(address_map &map) ATTR_COLD; + void main_program_map(address_map &map) ATTR_COLD; + void main_io_map(address_map &map) ATTR_COLD; // Main MCU Interface u8 main_io_r(offs_t offset); diff --git a/src/mame/misc/intrscti.cpp b/src/mame/misc/intrscti.cpp index cb6161b30ee..40bd109ae85 100644 --- a/src/mame/misc/intrscti.cpp +++ b/src/mame/misc/intrscti.cpp @@ -44,12 +44,12 @@ class intrscti_state : public driver_device required_device m_gfxdecode; required_device m_palette; - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; uint32_t screen_update_intrscti(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void intrscti_io_map(address_map &map); - void intrscti_map(address_map &map); - void intrscti_sub_io_map(address_map &map); - void intrscti_sub_map(address_map &map); + void intrscti_io_map(address_map &map) ATTR_COLD; + void intrscti_map(address_map &map) ATTR_COLD; + void intrscti_sub_io_map(address_map &map) ATTR_COLD; + void intrscti_sub_map(address_map &map) ATTR_COLD; }; void intrscti_state::video_start() diff --git a/src/mame/misc/island.cpp b/src/mame/misc/island.cpp index 3549dd31c3b..d4dcbf9eca1 100644 --- a/src/mame/misc/island.cpp +++ b/src/mame/misc/island.cpp @@ -31,8 +31,8 @@ class island_state : public driver_device void vortex(machine_config &config); private: - void prog_map(address_map &map); - void ext_map(address_map &map); + void prog_map(address_map &map) ATTR_COLD; + void ext_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_oki; diff --git a/src/mame/misc/istellar.cpp b/src/mame/misc/istellar.cpp index c4f3d47d0d6..db53b87d934 100644 --- a/src/mame/misc/istellar.cpp +++ b/src/mame/misc/istellar.cpp @@ -64,8 +64,8 @@ class istellar_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(coin_inserted); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -92,12 +92,12 @@ class istellar_state : public driver_device void z80_2_ldp_write(uint8_t data); uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); void vblank_irq(int state); - void z80_0_io(address_map &map); - void z80_0_mem(address_map &map); - void z80_1_io(address_map &map); - void z80_1_mem(address_map &map); - void z80_2_io(address_map &map); - void z80_2_mem(address_map &map); + void z80_0_io(address_map &map) ATTR_COLD; + void z80_0_mem(address_map &map) ATTR_COLD; + void z80_1_io(address_map &map) ATTR_COLD; + void z80_1_mem(address_map &map) ATTR_COLD; + void z80_2_io(address_map &map) ATTR_COLD; + void z80_2_mem(address_map &map) ATTR_COLD; }; void istellar_state::tile_w(offs_t offset, uint8_t data) diff --git a/src/mame/misc/itgambl2.cpp b/src/mame/misc/itgambl2.cpp index 1a0f07ce8c3..8e08a56ebf3 100644 --- a/src/mame/misc/itgambl2.cpp +++ b/src/mame/misc/itgambl2.cpp @@ -79,8 +79,8 @@ class itgambl2_state : public driver_device void itgambl2(machine_config &config); protected: - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -91,7 +91,7 @@ class itgambl2_state : public driver_device void itgambl2_palette(palette_device &palette) const; uint32_t screen_update_itgambl2(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void itgambl2_map(address_map &map); + void itgambl2_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/misc/itgambl3.cpp b/src/mame/misc/itgambl3.cpp index 4c23fee3f00..2a34a972515 100644 --- a/src/mame/misc/itgambl3.cpp +++ b/src/mame/misc/itgambl3.cpp @@ -65,8 +65,8 @@ class itgambl3_state : public driver_device void itgambl3(machine_config &config); protected: - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: int m_test_x = 0; @@ -77,7 +77,7 @@ class itgambl3_state : public driver_device void itgambl3_palette(palette_device &palette) const; uint32_t screen_update_itgambl3(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void itgambl3_map(address_map &map); + void itgambl3_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/misc/itgamble.cpp b/src/mame/misc/itgamble.cpp index 7524005c5db..6ce9a36bd8f 100644 --- a/src/mame/misc/itgamble.cpp +++ b/src/mame/misc/itgamble.cpp @@ -141,15 +141,15 @@ class itgamble_state : public driver_device private: uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void itgamble_map(address_map &map); + void itgamble_map(address_map &map) ATTR_COLD; // devices required_device m_maincpu; required_device m_palette; // driver_device overrides - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; }; diff --git a/src/mame/misc/jackhouse.cpp b/src/mame/misc/jackhouse.cpp index 7a93eb6b913..6f7469ff2d6 100644 --- a/src/mame/misc/jackhouse.cpp +++ b/src/mame/misc/jackhouse.cpp @@ -57,13 +57,13 @@ class jackhouse_state : public driver_device protected: virtual void machine_start() override { m_lamps.resolve(); }; - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: - void io_map(address_map &map); - void program_map(address_map &map); - void ramdac_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void program_map(address_map &map) ATTR_COLD; + void ramdac_map(address_map &map) ATTR_COLD; uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); TILE_GET_INFO_MEMBER(get_fg_tile_info); diff --git a/src/mame/misc/jackpool.cpp b/src/mame/misc/jackpool.cpp index e893ee14a88..61ea1d04786 100644 --- a/src/mame/misc/jackpool.cpp +++ b/src/mame/misc/jackpool.cpp @@ -47,14 +47,14 @@ class jackpool_state : public driver_device void init_jackpool(); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: uint8_t jackpool_io_r(offs_t offset); void map_vreg_w(int state); uint32_t screen_update_jackpool(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); INTERRUPT_GEN_MEMBER(jackpool_interrupt); - void jackpool_mem(address_map &map); + void jackpool_mem(address_map &map) ATTR_COLD; required_shared_ptr m_vram; uint8_t m_map_vreg = 0; diff --git a/src/mame/misc/jackpot.cpp b/src/mame/misc/jackpot.cpp index 560be36e603..0e563811192 100644 --- a/src/mame/misc/jackpot.cpp +++ b/src/mame/misc/jackpot.cpp @@ -82,7 +82,7 @@ class jackpot_state : public driver_device void jackpot(machine_config &config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -99,9 +99,9 @@ class jackpot_state : public driver_device void attr_w(offs_t offset, uint8_t data); uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void prg_map(address_map &map); - void sound_io_map(address_map &map); - void sound_prg_map(address_map &map); + void prg_map(address_map &map) ATTR_COLD; + void sound_io_map(address_map &map) ATTR_COLD; + void sound_prg_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/misc/jaminator.cpp b/src/mame/misc/jaminator.cpp index 6fae6d8eab6..b0a078ec7c9 100644 --- a/src/mame/misc/jaminator.cpp +++ b/src/mame/misc/jaminator.cpp @@ -72,13 +72,13 @@ class jaminator_state : public driver_device ioport_value link_data_r() { return m_link_data; } protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: - void main_map(address_map &map); - void io_map(address_map &map); - void sound_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_devo; diff --git a/src/mame/misc/jokrwild.cpp b/src/mame/misc/jokrwild.cpp index bb86afb0ea0..656f846ae1a 100644 --- a/src/mame/misc/jokrwild.cpp +++ b/src/mame/misc/jokrwild.cpp @@ -102,7 +102,7 @@ class jokrwild_state : public driver_device void init_jokrwild(); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: required_shared_ptr m_videoram; @@ -119,7 +119,7 @@ class jokrwild_state : public driver_device TILE_GET_INFO_MEMBER(get_bg_tile_info); void jokrwild_palette(palette_device &palette) const; uint32_t screen_update_jokrwild(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void jokrwild_map(address_map &map); + void jokrwild_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/misc/joystand.cpp b/src/mame/misc/joystand.cpp index fae6773ed50..a3e411e2893 100644 --- a/src/mame/misc/joystand.cpp +++ b/src/mame/misc/joystand.cpp @@ -141,8 +141,8 @@ class joystand_state : public driver_device void x180ii(machine_config &config); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: // devices @@ -210,9 +210,9 @@ class joystand_state : public driver_device // machine INTERRUPT_GEN_MEMBER(joystand_interrupt); - void joystand_map(address_map &map); - void x180ii_map(address_map &map); - void cart_map(address_map &map); + void joystand_map(address_map &map) ATTR_COLD; + void x180ii_map(address_map &map) ATTR_COLD; + void cart_map(address_map &map) ATTR_COLD; }; const rgb_t joystand_state::BG15_TRANSPARENT = 0x99999999; diff --git a/src/mame/misc/jubilee.cpp b/src/mame/misc/jubilee.cpp index 33770cd7e9c..86a4a46a8c9 100644 --- a/src/mame/misc/jubilee.cpp +++ b/src/mame/misc/jubilee.cpp @@ -231,11 +231,11 @@ class jubilee_state : public driver_device TILE_GET_INFO_MEMBER(get_bg_tile_info); uint32_t screen_update_jubileep(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); INTERRUPT_GEN_MEMBER(jubileep_interrupt); - void jubileep_cru_map(address_map &map); - void jubileep_map(address_map &map); + void jubileep_cru_map(address_map &map) ATTR_COLD; + void jubileep_map(address_map &map) ATTR_COLD; virtual void machine_start() override { m_lamps.resolve(); } - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; uint8_t mux_sel = 0; uint8_t muxlamps = 0; diff --git a/src/mame/misc/jungleyo.cpp b/src/mame/misc/jungleyo.cpp index ec5fc28cdef..593f64e35e9 100644 --- a/src/mame/misc/jungleyo.cpp +++ b/src/mame/misc/jungleyo.cpp @@ -128,7 +128,7 @@ class jungleyo_state : public driver_device template void init_magjack(); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: void output_w(u16 data); @@ -142,7 +142,7 @@ class jungleyo_state : public driver_device void fg_videoram_w(offs_t offset, u16 data, u16 mem_mask = ~0); template void reel_vram_w(offs_t offset, u16 data, u16 mem_mask = ~0); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; u8 palette_ram_r(offs_t offset); void palette_ram_w(offs_t offset, u8 data); diff --git a/src/mame/misc/kas89.cpp b/src/mame/misc/kas89.cpp index 3038e7413a8..7146dc3bcd8 100644 --- a/src/mame/misc/kas89.cpp +++ b/src/mame/misc/kas89.cpp @@ -227,8 +227,8 @@ class kas89_state : public driver_device void init_kas89(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: void mux_w(uint8_t data); @@ -240,10 +240,10 @@ class kas89_state : public driver_device void led_mux_select_w(uint8_t data); TIMER_DEVICE_CALLBACK_MEMBER(nmi_cb); TIMER_DEVICE_CALLBACK_MEMBER(sound_nmi_cb); - void audio_io(address_map &map); - void audio_map(address_map &map); - void kas89_io(address_map &map); - void kas89_map(address_map &map); + void audio_io(address_map &map) ATTR_COLD; + void audio_map(address_map &map) ATTR_COLD; + void kas89_io(address_map &map) ATTR_COLD; + void kas89_map(address_map &map) ATTR_COLD; uint8_t m_mux_data; uint8_t m_main_nmi_enable; diff --git a/src/mame/misc/katosmedz80.cpp b/src/mame/misc/katosmedz80.cpp index 287a7d3af2c..6596d140d04 100644 --- a/src/mame/misc/katosmedz80.cpp +++ b/src/mame/misc/katosmedz80.cpp @@ -276,8 +276,8 @@ class katosmedz80_state : public driver_device void dnbanban(machine_config &config) ATTR_COLD; protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; @@ -290,8 +290,8 @@ class katosmedz80_state : public driver_device output_finder<8> m_ledsp8; output_finder<4> m_pos; - void program_map(address_map &map); - void io_map(address_map &map); + void program_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; void port8_w(uint8_t data); diff --git a/src/mame/misc/kingpin.cpp b/src/mame/misc/kingpin.cpp index 21760e2de58..136ec98679c 100644 --- a/src/mame/misc/kingpin.cpp +++ b/src/mame/misc/kingpin.cpp @@ -62,14 +62,14 @@ class kingpin_state : public driver_device void dealracl(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: void sound_nmi_w(uint8_t data); - void kingpin_io_map(address_map &map); - void kingpin_program_map(address_map &map); - void kingpin_sound_map(address_map &map); - void dealracl_program_map(address_map &map); + void kingpin_io_map(address_map &map) ATTR_COLD; + void kingpin_program_map(address_map &map) ATTR_COLD; + void kingpin_sound_map(address_map &map) ATTR_COLD; + void dealracl_program_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_audiocpu; diff --git a/src/mame/misc/kurukuru.cpp b/src/mame/misc/kurukuru.cpp index 809506d5f19..e144f778413 100644 --- a/src/mame/misc/kurukuru.cpp +++ b/src/mame/misc/kurukuru.cpp @@ -413,8 +413,8 @@ class kurukuru_state : public driver_device void kurukuru(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; @@ -435,14 +435,14 @@ class kurukuru_state : public driver_device void ym2149_bout_w(uint8_t data); void kurukuru_msm5205_vck(int state); - void kurukuru_audio_io(address_map &map); - void kurukuru_audio_map(address_map &map); - void kurukuru_io(address_map &map); - void kurukuru_map(address_map &map); - void ppj_audio_io(address_map &map); - void ppj_audio_map(address_map &map); - void ppj_io(address_map &map); - void ppj_map(address_map &map); + void kurukuru_audio_io(address_map &map) ATTR_COLD; + void kurukuru_audio_map(address_map &map) ATTR_COLD; + void kurukuru_io(address_map &map) ATTR_COLD; + void kurukuru_map(address_map &map) ATTR_COLD; + void ppj_audio_io(address_map &map) ATTR_COLD; + void ppj_audio_map(address_map &map) ATTR_COLD; + void ppj_io(address_map &map) ATTR_COLD; + void ppj_map(address_map &map) ATTR_COLD; }; #define MAIN_CLOCK XTAL(21'477'272) diff --git a/src/mame/misc/ladyfrog.h b/src/mame/misc/ladyfrog.h index 3fa6785b1b1..e9dfabb844d 100644 --- a/src/mame/misc/ladyfrog.h +++ b/src/mame/misc/ladyfrog.h @@ -34,9 +34,9 @@ class ladyfrog_state : public driver_device void ladyfrog(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: /* memory pointers */ @@ -90,8 +90,8 @@ class ladyfrog_state : public driver_device uint32_t screen_update_ladyfrog(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); TIMER_CALLBACK_MEMBER(nmi_callback); void draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect ); - void ladyfrog_map(address_map &map); - void ladyfrog_sound_map(address_map &map); + void ladyfrog_map(address_map &map) ATTR_COLD; + void ladyfrog_sound_map(address_map &map) ATTR_COLD; }; #endif // MAME_MISC_LADYFROG_H diff --git a/src/mame/misc/laserbas.cpp b/src/mame/misc/laserbas.cpp index 898984f572a..f985a50bebb 100644 --- a/src/mame/misc/laserbas.cpp +++ b/src/mame/misc/laserbas.cpp @@ -89,8 +89,8 @@ class laserbas_state : public driver_device void laserbas(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; @@ -126,8 +126,8 @@ class laserbas_state : public driver_device TIMER_DEVICE_CALLBACK_MEMBER(laserbas_scanline); MC6845_UPDATE_ROW(crtc_update_row); - void laserbas_io(address_map &map); - void laserbas_memory(address_map &map); + void laserbas_io(address_map &map) ATTR_COLD; + void laserbas_memory(address_map &map) ATTR_COLD; }; TIMER_DEVICE_CALLBACK_MEMBER( laserbas_state::laserbas_scanline ) diff --git a/src/mame/misc/laz_aftrshok.cpp b/src/mame/misc/laz_aftrshok.cpp index 4ff8b613943..88fba4829fb 100644 --- a/src/mame/misc/laz_aftrshok.cpp +++ b/src/mame/misc/laz_aftrshok.cpp @@ -53,11 +53,11 @@ class aftrshok_state : public driver_device void sound_data_w(u8 data); void mcu_p3_w(u8 data); - void prog_map(address_map &map); - void ext_map(address_map &map); + void prog_map(address_map &map) ATTR_COLD; + void ext_map(address_map &map) ATTR_COLD; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; required_device m_maincpu; required_device m_oki; diff --git a/src/mame/misc/laz_ribrac.cpp b/src/mame/misc/laz_ribrac.cpp index 0ba536fcfb6..475e6a32e95 100644 --- a/src/mame/misc/laz_ribrac.cpp +++ b/src/mame/misc/laz_ribrac.cpp @@ -42,7 +42,7 @@ class ribrac_state : public driver_device void ribrac(machine_config &config); private: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; void sound_data_w(u8 data); void sound_control_w(u8 data); @@ -52,8 +52,8 @@ class ribrac_state : public driver_device void led_w(u8 data); void extra_w(u8 data); - void prog_map(address_map &map); - void ext_map(address_map &map); + void prog_map(address_map &map) ATTR_COLD; + void ext_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device_array m_oki; diff --git a/src/mame/misc/lependu.cpp b/src/mame/misc/lependu.cpp index 4a71e08bd59..bd7609d5a9e 100644 --- a/src/mame/misc/lependu.cpp +++ b/src/mame/misc/lependu.cpp @@ -125,10 +125,10 @@ class lependu_state : public driver_device uint32_t screen_update_lependu(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; void lependu_videoram_w(offs_t offset, uint8_t data); void lependu_colorram_w(offs_t offset, uint8_t data); @@ -143,7 +143,7 @@ class lependu_state : public driver_device private: TILE_GET_INFO_MEMBER(get_bg_tile_info); void lependu_palette(palette_device &palette) const; - void lependu_map(address_map &map); + void lependu_map(address_map &map) ATTR_COLD; uint8_t lependu_mux_port_r(); diff --git a/src/mame/misc/limenko.cpp b/src/mame/misc/limenko.cpp index a810d503693..03880ad079b 100644 --- a/src/mame/misc/limenko.cpp +++ b/src/mame/misc/limenko.cpp @@ -72,7 +72,7 @@ class limenko_state : public driver_device int spriteram_bit_r(); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -126,10 +126,10 @@ class limenko_state : public driver_device void draw_sprites(); void copy_sprites(bitmap_ind16 &bitmap, bitmap_ind16 &sprites_bitmap, bitmap_ind8 &priority_bitmap, const rectangle &cliprect); - void limenko_io_map(address_map &map); - void limenko_map(address_map &map); - void spotty_io_map(address_map &map); - void spotty_map(address_map &map); + void limenko_io_map(address_map &map) ATTR_COLD; + void limenko_map(address_map &map) ATTR_COLD; + void spotty_io_map(address_map &map) ATTR_COLD; + void spotty_map(address_map &map) ATTR_COLD; // spotty audiocpu uint8_t audiocpu_p1_r(); diff --git a/src/mame/misc/ltcasino.cpp b/src/mame/misc/ltcasino.cpp index 5b15ed023c1..779a39236a3 100644 --- a/src/mame/misc/ltcasino.cpp +++ b/src/mame/misc/ltcasino.cpp @@ -150,7 +150,7 @@ class ltcasino_state : public driver_device void ltcasino(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; required_device m_maincpu; required_device_array m_pia; @@ -167,7 +167,7 @@ class ltcasino_state : public driver_device tilemap_t *m_tilemap; private: - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); TILE_GET_INFO_MEMBER(tile_info); @@ -190,7 +190,7 @@ class ltcasin2_state : public ltcasino_state void mv4in1(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: void palette(palette_device &palette) const; diff --git a/src/mame/misc/luckybal.cpp b/src/mame/misc/luckybal.cpp index 5f6af35d9d6..9fcf274605a 100644 --- a/src/mame/misc/luckybal.cpp +++ b/src/mame/misc/luckybal.cpp @@ -306,8 +306,8 @@ class luckybal_state : public driver_device void init_luckybald(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: void csio_cks_w(int state); @@ -334,8 +334,8 @@ class luckybal_state : public driver_device required_device_array m_latch; required_ioport_array<6> m_keymx; - void main_io(address_map &map); - void main_map(address_map &map); + void main_io(address_map &map) ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; output_finder<38> m_lamps; }; diff --git a/src/mame/misc/magic10.cpp b/src/mame/misc/magic10.cpp index 7d6959c3951..63a59f2bda6 100644 --- a/src/mame/misc/magic10.cpp +++ b/src/mame/misc/magic10.cpp @@ -192,7 +192,7 @@ class magic10_base_state : public driver_device protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; void base(machine_config &config); template void videoram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); @@ -240,9 +240,9 @@ class magic10_state : public magic10_base_state output_finder<8> m_lamps; void out_w(uint16_t data); - void magic10_map(address_map &map); - void magic10a_map(address_map &map); - void sgsafari_map(address_map &map); + void magic10_map(address_map &map) ATTR_COLD; + void magic10a_map(address_map &map) ATTR_COLD; + void sgsafari_map(address_map &map) ATTR_COLD; }; class magic102_state : public magic10_base_state @@ -265,7 +265,7 @@ class magic102_state : public magic10_base_state uint16_t r(); uint16_t m_ret = 0; - void map(address_map &map); + void map(address_map &map) ATTR_COLD; }; class hotslot_state : public magic10_state @@ -283,7 +283,7 @@ class hotslot_state : public magic10_state uint16_t copro_r(); void copro_w(uint16_t data); - void map(address_map &map); + void map(address_map &map) ATTR_COLD; }; @@ -304,7 +304,7 @@ class spetrix_state : public magic10_base_state private: void out_w(uint16_t data); - void spetrix_map(address_map &map); + void spetrix_map(address_map &map) ATTR_COLD; }; /*************************** diff --git a/src/mame/misc/magicard.cpp b/src/mame/misc/magicard.cpp index c0165e17418..1ea454fd9f5 100644 --- a/src/mame/misc/magicard.cpp +++ b/src/mame/misc/magicard.cpp @@ -240,12 +240,12 @@ class magicard_base_state : public driver_device void magicard_base(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; uint32_t screen_update_magicard(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void ramdac_map(address_map &map); + void ramdac_map(address_map &map) ATTR_COLD; void dram_w(offs_t offset, uint16_t data, uint16_t mem_mask); uint16_t dram_r(offs_t offset, uint16_t mem_mask); @@ -277,7 +277,7 @@ class magicard_base_state : public driver_device private: output_finder<8> m_lamps; - void scc66470_map(address_map &map); + void scc66470_map(address_map &map) ATTR_COLD; std::unique_ptr m_dram; @@ -299,10 +299,10 @@ class magicard_state : public magicard_base_state void init_dallaspk(); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: - void magicard_map(address_map &map); + void magicard_map(address_map &map) ATTR_COLD; uint8_t nvram_r(offs_t offset); void nvram_w(offs_t offset, uint8_t data); uint8_t read_ds1207(offs_t offset); @@ -332,10 +332,10 @@ class hotslots_state : public magicard_base_state void simpbest(machine_config &config); private: - void hotslots_map_base(address_map &map); - void hotslots_map(address_map &map); - void puzzleme_map(address_map &map); - void simpbest_map(address_map &map); + void hotslots_map_base(address_map &map) ATTR_COLD; + void hotslots_map(address_map &map) ATTR_COLD; + void puzzleme_map(address_map &map) ATTR_COLD; + void simpbest_map(address_map &map) ATTR_COLD; uint8_t read_ds1207_ds2401(offs_t offset); void write_ds1207_ds2401(offs_t offset, uint8_t data); diff --git a/src/mame/misc/magicfly.cpp b/src/mame/misc/magicfly.cpp index 6263ca976a8..80826d09ab2 100644 --- a/src/mame/misc/magicfly.cpp +++ b/src/mame/misc/magicfly.cpp @@ -475,7 +475,7 @@ class magicfly_state : public driver_device void _7mezzo(machine_config &config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: required_shared_ptr m_videoram; @@ -496,7 +496,7 @@ class magicfly_state : public driver_device void bchance_palette(palette_device &palette) const; DECLARE_VIDEO_START(7mezzo); uint32_t screen_update_magicfly(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void magicfly_map(address_map &map); + void magicfly_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/misc/magictg.cpp b/src/mame/misc/magictg.cpp index 64cb652ec87..d02c76b27fc 100644 --- a/src/mame/misc/magictg.cpp +++ b/src/mame/misc/magictg.cpp @@ -161,9 +161,9 @@ class magictg_state : public driver_device void magictg(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_mips; @@ -238,10 +238,10 @@ class magictg_state : public driver_device void zr36120_reset(); - void adsp_data_map(address_map &map); - void adsp_io_map(address_map &map); - void adsp_program_map(address_map &map); - void magictg_map(address_map &map); + void adsp_data_map(address_map &map) ATTR_COLD; + void adsp_io_map(address_map &map) ATTR_COLD; + void adsp_program_map(address_map &map) ATTR_COLD; + void magictg_map(address_map &map) ATTR_COLD; uint32_t pci_dev0_r(int function, int reg, uint32_t mem_mask); void pci_dev0_w(int function, int reg, uint32_t data, uint32_t mem_mask); diff --git a/src/mame/misc/magreel.cpp b/src/mame/misc/magreel.cpp index 5356eb5a9ad..75eb868284b 100644 --- a/src/mame/misc/magreel.cpp +++ b/src/mame/misc/magreel.cpp @@ -49,11 +49,11 @@ class magreel_state : public driver_device protected: // driver_device overrides - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; u32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect) { diff --git a/src/mame/misc/magtouch.cpp b/src/mame/misc/magtouch.cpp index 3157d90ee7c..d02f7bf789d 100644 --- a/src/mame/misc/magtouch.cpp +++ b/src/mame/misc/magtouch.cpp @@ -111,11 +111,11 @@ class magtouch_state : public pcat_base_state uint8_t magtouch_io_r(offs_t offset); void magtouch_io_w(offs_t offset, uint8_t data); void dma8237_1_dack_w(uint8_t data); - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; static void magtouch_sb_conf(device_t *device); - void magtouch_io(address_map &map); - void magtouch_map(address_map &map); + void magtouch_io(address_map &map) ATTR_COLD; + void magtouch_map(address_map &map) ATTR_COLD; }; /************************************* diff --git a/src/mame/misc/majorpkr.cpp b/src/mame/misc/majorpkr.cpp index 5d3aaf2869b..99345a26fdd 100644 --- a/src/mame/misc/majorpkr.cpp +++ b/src/mame/misc/majorpkr.cpp @@ -508,8 +508,8 @@ class majorpkr_state : public driver_device void majorpkr(machine_config &config); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_gfxdecode; @@ -545,8 +545,8 @@ class majorpkr_state : public driver_device TILE_GET_INFO_MEMBER(bg_get_tile_info); TILE_GET_INFO_MEMBER(fg_get_tile_info); uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void map(address_map &map); - void portmap(address_map &map); + void map(address_map &map) ATTR_COLD; + void portmap(address_map &map) ATTR_COLD; }; diff --git a/src/mame/misc/malzak.h b/src/mame/misc/malzak.h index 08b61aa232e..a9c9e1e07e8 100644 --- a/src/mame/misc/malzak.h +++ b/src/mame/misc/malzak.h @@ -36,8 +36,8 @@ class malzak_state : public driver_device void malzak2(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: /* devices */ @@ -62,12 +62,12 @@ class malzak_state : public driver_device void palette_init(palette_device &palette) const; uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; - void malzak2_map(address_map &map); - void malzak_data_map(address_map &map); - void malzak_io_map(address_map &map); - void malzak_map(address_map &map); + void malzak2_map(address_map &map) ATTR_COLD; + void malzak_data_map(address_map &map) ATTR_COLD; + void malzak_io_map(address_map &map) ATTR_COLD; + void malzak_map(address_map &map) ATTR_COLD; TILE_GET_INFO_MEMBER(get_tile_info); std::unique_ptr m_trom_bitmap; diff --git a/src/mame/misc/marywu.cpp b/src/mame/misc/marywu.cpp index 7bdd517d5e2..ca664b369e4 100644 --- a/src/mame/misc/marywu.cpp +++ b/src/mame/misc/marywu.cpp @@ -42,7 +42,7 @@ class marywu_state : public driver_device void marywu(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: void display_7seg_data_w(uint8_t data); @@ -52,8 +52,8 @@ class marywu_state : public driver_device void ay2_port_a_w(uint8_t data); void ay2_port_b_w(uint8_t data); uint8_t keyboard_r(); - void io_map(address_map &map); - void program_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void program_map(address_map &map) ATTR_COLD; uint8_t m_selected_7seg_module = 0; diff --git a/src/mame/misc/matrix.cpp b/src/mame/misc/matrix.cpp index d66483a9d37..f6a0aaefe29 100644 --- a/src/mame/misc/matrix.cpp +++ b/src/mame/misc/matrix.cpp @@ -61,7 +61,7 @@ class matrix_state : public driver_device required_device m_rtc; required_device m_kbdc; - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/misc/mcatadv.cpp b/src/mame/misc/mcatadv.cpp index 9512c916cf9..b23df0cabfc 100644 --- a/src/mame/misc/mcatadv.cpp +++ b/src/mame/misc/mcatadv.cpp @@ -190,8 +190,8 @@ class mcatadv_state : public driver_device void mcatadv(machine_config &config); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: // memory pointers @@ -218,11 +218,11 @@ class mcatadv_state : public driver_device void screen_vblank(int state); void draw_sprites(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void draw_tilemap_part(screen_device &screen, int layer, int i, bitmap_ind16 &bitmap, const rectangle &cliprect); - void main_map(address_map &map); - void mcatadv_sound_io_map(address_map &map); - void mcatadv_sound_map(address_map &map); - void nost_sound_io_map(address_map &map); - void nost_sound_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void mcatadv_sound_io_map(address_map &map) ATTR_COLD; + void mcatadv_sound_map(address_map &map) ATTR_COLD; + void nost_sound_io_map(address_map &map) ATTR_COLD; + void nost_sound_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/misc/mcm70.cpp b/src/mame/misc/mcm70.cpp index 48d12bf2c10..3f48af37a9a 100644 --- a/src/mame/misc/mcm70.cpp +++ b/src/mame/misc/mcm70.cpp @@ -46,8 +46,8 @@ class mcm70_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(start); protected: - void machine_start() override; - void machine_reset() override; + void machine_start() override ATTR_COLD; + void machine_reset() override ATTR_COLD; private: uint8_t status_r(offs_t offset); @@ -57,8 +57,8 @@ class mcm70_state : public driver_device uint8_t keyboard_r(offs_t offset); - void io_map(address_map &map); - void mem_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; void mcm70_palette(palette_device &palette) const; uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); diff --git a/src/mame/misc/megaphx.cpp b/src/mame/misc/megaphx.cpp index 9404a4b494e..c4d5dd4046b 100644 --- a/src/mame/misc/megaphx.cpp +++ b/src/mame/misc/megaphx.cpp @@ -194,8 +194,8 @@ class megaphx_state : public driver_device void hamboy(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; @@ -215,7 +215,7 @@ class megaphx_state : public driver_device void ppi_portc_w(uint8_t data); void dsw_w(int state) { m_dsw_data = state; } - void megaphx_68k_map(address_map &map); + void megaphx_68k_map(address_map &map) ATTR_COLD; void install_bootrom(bool enable); TIMER_CALLBACK_MEMBER(disable_bootrom) { install_bootrom(false); } diff --git a/src/mame/misc/menghong.cpp b/src/mame/misc/menghong.cpp index 3d478895151..7e47feb7957 100644 --- a/src/mame/misc/menghong.cpp +++ b/src/mame/misc/menghong.cpp @@ -103,8 +103,8 @@ class menghong_state : public driver_device void menghong(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: // memory pointers @@ -133,8 +133,8 @@ class menghong_state : public driver_device uint32_t key_r(); - void menghong_mem(address_map &map); - void crzyddz2_mem(address_map &map); + void menghong_mem(address_map &map) ATTR_COLD; + void crzyddz2_mem(address_map &map) ATTR_COLD; // pio uint32_t pioldat_r(); diff --git a/src/mame/misc/meyc8080.cpp b/src/mame/misc/meyc8080.cpp index 8fac19fc431..be584dd4033 100644 --- a/src/mame/misc/meyc8080.cpp +++ b/src/mame/misc/meyc8080.cpp @@ -93,7 +93,7 @@ class meyc8080_state : public driver_device void meyc8080_dac_3_w(uint8_t data); void meyc8080_dac_4_w(uint8_t data); uint32_t screen_update_meyc8080(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void meyc8080_map(address_map &map); + void meyc8080_map(address_map &map) ATTR_COLD; virtual void machine_start() override { m_lamps.resolve(); } diff --git a/src/mame/misc/meyc8088.cpp b/src/mame/misc/meyc8088.cpp index 1b2997bcf9e..f33b204df60 100644 --- a/src/mame/misc/meyc8088.cpp +++ b/src/mame/misc/meyc8088.cpp @@ -53,7 +53,7 @@ class meyc8088_state : public driver_device void meyc8088(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_maincpu; @@ -82,7 +82,7 @@ class meyc8088_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void screen_vblank(int state); TIMER_DEVICE_CALLBACK_MEMBER(heartbeat_callback); - void meyc8088_map(address_map &map); + void meyc8088_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/misc/mgavegas.cpp b/src/mame/misc/mgavegas.cpp index 90b5e3e00e1..35d5d020776 100644 --- a/src/mame/misc/mgavegas.cpp +++ b/src/mame/misc/mgavegas.cpp @@ -100,10 +100,10 @@ class mgavegas_state : public driver_device void init_mgavegas133(); private: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; - void mgavegas_map(address_map &map); + void mgavegas_map(address_map &map) ATTR_COLD; uint8_t start_read(); diff --git a/src/mame/misc/micro3d.h b/src/mame/misc/micro3d.h index 79a8e7a916a..47af053ac7a 100644 --- a/src/mame/misc/micro3d.h +++ b/src/mame/misc/micro3d.h @@ -61,10 +61,10 @@ class micro3d_state : public driver_device int botss_hwchk_r(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; - virtual void video_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; + virtual void video_reset() override ATTR_COLD; private: enum planes @@ -193,13 +193,13 @@ class micro3d_state : public driver_device int clip_triangle(micro3d_vtx *v, micro3d_vtx *vout, int num_vertices, enum planes plane); void draw_triangles(uint32_t attr); - void cpu_space_map(address_map &map); - void drmath_data(address_map &map); - void drmath_prg(address_map &map); - void hostmem(address_map &map); - void soundmem_io(address_map &map); - void soundmem_prg(address_map &map); - void vgbmem(address_map &map); + void cpu_space_map(address_map &map) ATTR_COLD; + void drmath_data(address_map &map) ATTR_COLD; + void drmath_prg(address_map &map) ATTR_COLD; + void hostmem(address_map &map) ATTR_COLD; + void soundmem_io(address_map &map) ATTR_COLD; + void soundmem_prg(address_map &map) ATTR_COLD; + void vgbmem(address_map &map) ATTR_COLD; }; #endif // MAME_MISC_MICRO3D_H diff --git a/src/mame/misc/micro3d_a.h b/src/mame/misc/micro3d_a.h index a0976c219b8..c47833cf9b2 100644 --- a/src/mame/misc/micro3d_a.h +++ b/src/mame/misc/micro3d_a.h @@ -20,8 +20,8 @@ class micro3d_sound_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; // sound stream update overrides virtual void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; diff --git a/src/mame/misc/microbox2.cpp b/src/mame/misc/microbox2.cpp index c78d8fafaee..736fc5cb0a7 100644 --- a/src/mame/misc/microbox2.cpp +++ b/src/mame/misc/microbox2.cpp @@ -61,7 +61,7 @@ class microbx2_state : public driver_device void microbx2(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_maincpu; @@ -75,19 +75,19 @@ class microbx2_state : public driver_device required_device m_beeper; required_ioport m_sw1; - void upd7220_map(address_map &map); + void upd7220_map(address_map &map) ATTR_COLD; UPD7220_DISPLAY_PIXELS_MEMBER(display_pixels); - void mem_map(address_map &map); - void ram_map(address_map &map); - void rom0_map(address_map &map); - void rom1_map(address_map &map); - void rom2_map(address_map &map); - void io0_map(address_map &map); - void io1_map(address_map &map); - void io2_map(address_map &map); - void boot_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void ram_map(address_map &map) ATTR_COLD; + void rom0_map(address_map &map) ATTR_COLD; + void rom1_map(address_map &map) ATTR_COLD; + void rom2_map(address_map &map) ATTR_COLD; + void io0_map(address_map &map) ATTR_COLD; + void io1_map(address_map &map) ATTR_COLD; + void io2_map(address_map &map) ATTR_COLD; + void boot_map(address_map &map) ATTR_COLD; static void floppy_formats(format_registration &fr); diff --git a/src/mame/misc/microdar.cpp b/src/mame/misc/microdar.cpp index b068e1c01d5..9c1dde3fd19 100644 --- a/src/mame/misc/microdar.cpp +++ b/src/mame/misc/microdar.cpp @@ -105,8 +105,8 @@ class microdar_state : public driver_device void covidarts(machine_config &config); private: - void prog_map(address_map &map); - void ext_map(address_map &map); + void prog_map(address_map &map) ATTR_COLD; + void ext_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_eeprom; diff --git a/src/mame/misc/mil4000.cpp b/src/mame/misc/mil4000.cpp index 09a9a8b46b2..bc6a48eb1e6 100644 --- a/src/mame/misc/mil4000.cpp +++ b/src/mame/misc/mil4000.cpp @@ -145,8 +145,8 @@ class mil4000_state : public driver_device void mil4000(machine_config &config); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_shared_ptr m_sc0_vram; @@ -184,8 +184,8 @@ class mil4000_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void chewheel_map(address_map &map); - void mil4000_map(address_map &map); + void chewheel_map(address_map &map) ATTR_COLD; + void mil4000_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/misc/miniboy7.cpp b/src/mame/misc/miniboy7.cpp index 2e93b7cbc68..70702432a78 100644 --- a/src/mame/misc/miniboy7.cpp +++ b/src/mame/misc/miniboy7.cpp @@ -253,8 +253,8 @@ class miniboy7_state : public driver_device void miniboy7(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: void ay_pa_w(uint8_t data); @@ -267,7 +267,7 @@ class miniboy7_state : public driver_device MC6845_UPDATE_ROW(crtc_update_row); void miniboy7_palette(palette_device &palette) const; - void miniboy7_map(address_map &map); + void miniboy7_map(address_map &map) ATTR_COLD; required_shared_ptr m_videoram_a; required_shared_ptr m_colorram_a; diff --git a/src/mame/misc/minivideo.cpp b/src/mame/misc/minivideo.cpp index 57d8d331754..5c85adfb3c5 100644 --- a/src/mame/misc/minivideo.cpp +++ b/src/mame/misc/minivideo.cpp @@ -45,9 +45,9 @@ class minivideo_state : public driver_device void minivideo(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; diff --git a/src/mame/misc/mirax.cpp b/src/mame/misc/mirax.cpp index 7fc7092e5f9..77b965b56da 100644 --- a/src/mame/misc/mirax.cpp +++ b/src/mame/misc/mirax.cpp @@ -133,7 +133,7 @@ class mirax_state : public driver_device void init_mirax(); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_maincpu; @@ -169,8 +169,8 @@ class mirax_state : public driver_device void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); void vblank_irq(int state); - void mirax_main_map(address_map &map); - void mirax_sound_map(address_map &map); + void mirax_main_map(address_map &map) ATTR_COLD; + void mirax_sound_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/misc/mirderby.cpp b/src/mame/misc/mirderby.cpp index ea77e56c62f..78583c0bffb 100644 --- a/src/mame/misc/mirderby.cpp +++ b/src/mame/misc/mirderby.cpp @@ -127,11 +127,11 @@ class mirderby_state : public driver_device required_device m_coin_ppi; required_device m_coin_pit; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; void screen_vblank(int state); - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; uint8_t prot_r(); void prot_w(uint8_t data); @@ -141,13 +141,13 @@ class mirderby_state : public driver_device TILE_GET_INFO_MEMBER(get_bg_tile_info); void videoram_w(offs_t offset, u8 data); - void main_map(address_map &map); - void sub_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sub_map(address_map &map) ATTR_COLD; - void shared_map(address_map &map); + void shared_map(address_map &map) ATTR_COLD; - void x70coin_map(address_map &map); - void x70coin_io(address_map &map); + void x70coin_map(address_map &map) ATTR_COLD; + void x70coin_io(address_map &map) ATTR_COLD; tilemap_t *m_bg_tilemap{}; // int m_visible_page = 0; diff --git a/src/mame/misc/mjsenpu.cpp b/src/mame/misc/mjsenpu.cpp index 14714516cc9..474348933db 100644 --- a/src/mame/misc/mjsenpu.cpp +++ b/src/mame/misc/mjsenpu.cpp @@ -75,9 +75,9 @@ class mjsenpu_state : public driver_device void init_mjsenpu(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: /* devices */ @@ -112,8 +112,8 @@ class mjsenpu_state : public driver_device uint32_t screen_update_mjsenpu(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); required_device m_palette; - void mjsenpu_32bit_map(address_map &map); - void mjsenpu_io(address_map &map); + void mjsenpu_32bit_map(address_map &map) ATTR_COLD; + void mjsenpu_io(address_map &map) ATTR_COLD; }; diff --git a/src/mame/misc/mole.cpp b/src/mame/misc/mole.cpp index 32886042653..016834683a1 100644 --- a/src/mame/misc/mole.cpp +++ b/src/mame/misc/mole.cpp @@ -88,11 +88,11 @@ class mole_state : public driver_device void mole_flipscreen_w(uint8_t data); uint8_t mole_protection_r(offs_t offset); TILE_GET_INFO_MEMBER(get_bg_tile_info); - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; uint32_t screen_update_mole(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void mole_map(address_map &map); + void mole_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/misc/monon_color.cpp b/src/mame/misc/monon_color.cpp index b7e574b828d..3ab93a882de 100644 --- a/src/mame/misc/monon_color.cpp +++ b/src/mame/misc/monon_color.cpp @@ -94,8 +94,8 @@ class monon_color_state : public driver_device void monon_color(machine_config &config); protected: // driver_device overrides - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; // screen updates uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); @@ -129,7 +129,7 @@ class monon_color_state : public driver_device uint8_t m_curpal[0x800 * 3]; - void music_mem(address_map &map); + void music_mem(address_map &map) ATTR_COLD; uint8_t music_rts_r(); uint8_t in0_r(); diff --git a/src/mame/misc/mosaic.cpp b/src/mame/misc/mosaic.cpp index 8ec5ec0062c..887a287548f 100644 --- a/src/mame/misc/mosaic.cpp +++ b/src/mame/misc/mosaic.cpp @@ -80,9 +80,9 @@ class mosaic_state : public driver_device void gfire2(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: // devices @@ -111,10 +111,10 @@ class mosaic_state : public driver_device TILE_GET_INFO_MEMBER(get_bg_tile_info); uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void gfire2_io_map(address_map &map); - void gfire2_map(address_map &map); - void mosaic_io_map(address_map &map); - void mosaic_map(address_map &map); + void gfire2_io_map(address_map &map) ATTR_COLD; + void gfire2_map(address_map &map) ATTR_COLD; + void mosaic_io_map(address_map &map) ATTR_COLD; + void mosaic_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/misc/mpu12wbk.cpp b/src/mame/misc/mpu12wbk.cpp index 1c9875b17a2..2ae7dd16e5a 100644 --- a/src/mame/misc/mpu12wbk.cpp +++ b/src/mame/misc/mpu12wbk.cpp @@ -469,7 +469,7 @@ class mpu12wbk_state : public driver_device void init_mpu12wbk(); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; virtual void machine_start() override { m_lamps.resolve(); } private: @@ -489,7 +489,7 @@ class mpu12wbk_state : public driver_device void crtc_vs(int state); uint32_t screen_update_mpu12wbk(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void mpu12wbk_map(address_map &map); + void mpu12wbk_map(address_map &map) ATTR_COLD; uint32_t m_frames = 0; }; diff --git a/src/mame/misc/mtu130.cpp b/src/mame/misc/mtu130.cpp index 913f560c178..8d1c7c21f44 100644 --- a/src/mame/misc/mtu130.cpp +++ b/src/mame/misc/mtu130.cpp @@ -53,7 +53,7 @@ class mtu130_rom_device : public device_t, public device_rom_image_interface { virtual const char *file_extensions() const noexcept override { return "rom,bin"; } protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual std::pair call_load() override; virtual void call_unload() override; @@ -108,9 +108,9 @@ class mtu130_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(break_w); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: class memory_interface : public m6502_device::memory_interface { @@ -188,7 +188,7 @@ class mtu130_state : public driver_device bool m_fdc_irq_enabled; static void floppies(device_slot_interface &device); - void map(address_map &map); + void map(address_map &map) ATTR_COLD; void extension_board(machine_config &config, int slot_id, const char *tag, const char *def); uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); diff --git a/src/mame/misc/multfish.h b/src/mame/misc/multfish.h index e93865610be..038e2d36758 100644 --- a/src/mame/misc/multfish.h +++ b/src/mame/misc/multfish.h @@ -79,13 +79,13 @@ class igrosoft_gamble_state : public driver_device TILE_GET_INFO_MEMBER(get_igrosoft_gamble_tile_info); TILE_GET_INFO_MEMBER(get_igrosoft_gamble_reel_tile_info); uint32_t screen_update_igrosoft_gamble(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void igrosoft_gamble_map(address_map &map); - void igrosoft_gamble_portmap(address_map &map); - void rollfr_portmap(address_map &map); + void igrosoft_gamble_map(address_map &map) ATTR_COLD; + void igrosoft_gamble_portmap(address_map &map) ATTR_COLD; + void rollfr_portmap(address_map &map) ATTR_COLD; - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; /* Video related */ diff --git a/src/mame/misc/murogem.cpp b/src/mame/misc/murogem.cpp index 388f6323a5b..f4c5daa9a48 100644 --- a/src/mame/misc/murogem.cpp +++ b/src/mame/misc/murogem.cpp @@ -143,7 +143,7 @@ class murogem_state : public driver_device void murogem_palette(palette_device &palette) const; uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void murogem_map(address_map &map); + void murogem_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/misc/murogmbl.cpp b/src/mame/misc/murogmbl.cpp index 894c6989c49..c6a46054d12 100644 --- a/src/mame/misc/murogmbl.cpp +++ b/src/mame/misc/murogmbl.cpp @@ -60,7 +60,7 @@ class murogmbl_state : public driver_device void murogmbl(machine_config &config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -72,7 +72,7 @@ class murogmbl_state : public driver_device void murogmbl_palette(palette_device &palette) const; uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void murogmbl_map(address_map &map); + void murogmbl_map(address_map &map) ATTR_COLD; }; class slotunbl_state : public driver_device @@ -89,7 +89,7 @@ class slotunbl_state : public driver_device void slotunbl(machine_config &config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -101,7 +101,7 @@ class slotunbl_state : public driver_device void slotunbl_palette(palette_device &palette) const; uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void slotunbl_map(address_map &map); + void slotunbl_map(address_map &map) ATTR_COLD; }; void murogmbl_state::murogmbl_palette(palette_device &palette) const diff --git a/src/mame/misc/musclem.cpp b/src/mame/misc/musclem.cpp index 5a17bed5367..c58b3388bda 100644 --- a/src/mame/misc/musclem.cpp +++ b/src/mame/misc/musclem.cpp @@ -45,7 +45,7 @@ class musclem_state : public driver_device void musclem(machine_config &config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -67,7 +67,7 @@ class musclem_state : public driver_device void oki1_bank_w(uint16_t data); void lamps_w(uint16_t data); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/misc/nabupc.cpp b/src/mame/misc/nabupc.cpp index c9d7a69162a..58c6dd3b2b2 100644 --- a/src/mame/misc/nabupc.cpp +++ b/src/mame/misc/nabupc.cpp @@ -196,12 +196,12 @@ class nabupc_state : public driver_device void nabupc(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: - void memory_map(address_map &map); - void io_map(address_map &map); + void memory_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; uint8_t read_mem(offs_t offset); uint8_t psg_portb_r(); diff --git a/src/mame/misc/nabupc_kbd.h b/src/mame/misc/nabupc_kbd.h index b7a5c631bee..23b6067b5f7 100644 --- a/src/mame/misc/nabupc_kbd.h +++ b/src/mame/misc/nabupc_kbd.h @@ -29,14 +29,14 @@ class nabupc_keyboard_device: public device_t protected: // device_t implementation - virtual void device_start() override; - virtual void device_reset() override; - virtual void device_add_mconfig(machine_config &config) override; - virtual tiny_rom_entry const *device_rom_region() const override; - virtual ioport_constructor device_input_ports() 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 tiny_rom_entry const *device_rom_region() const override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; private: - void nabu_kb_mem(address_map &map); + void nabu_kb_mem(address_map &map) ATTR_COLD; uint8_t port1_r(); void port1_w(uint8_t data); diff --git a/src/mame/misc/neomania.cpp b/src/mame/misc/neomania.cpp index 4d01b094639..b9efc597eb2 100644 --- a/src/mame/misc/neomania.cpp +++ b/src/mame/misc/neomania.cpp @@ -63,7 +63,7 @@ class neomania_state : public driver_device private: required_device m_maincpu; - void neomania_map(address_map &map); + void neomania_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/misc/neoprint.cpp b/src/mame/misc/neoprint.cpp index 9e3a184c439..506f4963a0f 100644 --- a/src/mame/misc/neoprint.cpp +++ b/src/mame/misc/neoprint.cpp @@ -71,8 +71,8 @@ class neoprint_state : public driver_device void init_unkneo(); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: uint8_t calendar_r(); @@ -90,10 +90,10 @@ class neoprint_state : public driver_device uint32_t screen_update_neoprint(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); uint32_t screen_update_nprsp(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void audio_io_map(address_map &map); - void audio_map(address_map &map); - void neoprint_map(address_map &map); - void nprsp_map(address_map &map); + void audio_io_map(address_map &map) ATTR_COLD; + void audio_map(address_map &map) ATTR_COLD; + void neoprint_map(address_map &map) ATTR_COLD; + void nprsp_map(address_map &map) ATTR_COLD; required_shared_ptr m_npvidram; required_shared_ptr m_npvidregs; diff --git a/src/mame/misc/news.cpp b/src/mame/misc/news.cpp index 285853c9cba..9ca04e0de58 100644 --- a/src/mame/misc/news.cpp +++ b/src/mame/misc/news.cpp @@ -42,9 +42,9 @@ class news_state : public driver_device void news(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: // memory pointers @@ -65,7 +65,7 @@ class news_state : public driver_device TILE_GET_INFO_MEMBER(get_fg_tile_info); TILE_GET_INFO_MEMBER(get_bg_tile_info); uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void prg_map(address_map &map); + void prg_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/misc/nexus3d.cpp b/src/mame/misc/nexus3d.cpp index 8c4573a0318..922d43c33f4 100644 --- a/src/mame/misc/nexus3d.cpp +++ b/src/mame/misc/nexus3d.cpp @@ -56,12 +56,12 @@ class nexus3d_state : public driver_device // void nexus3d_unk2_w(uint32_t data); // void nexus3d_unk3_w(uint32_t data); - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void screen_vblank(int state); - void nexus3d_map(address_map &map); + void nexus3d_map(address_map &map) ATTR_COLD; uint32_t m_intpend = 0, m_intmask = 0, m_intlevel = 0; uint32_t int_pending_r(); diff --git a/src/mame/misc/nibble.cpp b/src/mame/misc/nibble.cpp index 0890dc6045f..b7fc3dffc44 100644 --- a/src/mame/misc/nibble.cpp +++ b/src/mame/misc/nibble.cpp @@ -75,9 +75,9 @@ class nibble_state : public driver_device void nibble(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_shared_ptr m_videoram; @@ -92,9 +92,9 @@ class nibble_state : public driver_device uint32_t screen_update_nibble(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); [[maybe_unused]] INTERRUPT_GEN_MEMBER(nibble_interrupt); - void nibble_map(address_map &map); - void ramdac1_map(address_map &map); - void ramdac2_map(address_map &map); + void nibble_map(address_map &map) ATTR_COLD; + void ramdac1_map(address_map &map) ATTR_COLD; + void ramdac2_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/misc/norautp.h b/src/mame/misc/norautp.h index bf69f1a7c9c..dc2338a0f62 100644 --- a/src/mame/misc/norautp.h +++ b/src/mame/misc/norautp.h @@ -56,7 +56,7 @@ class norautp_state : public driver_device protected: virtual void machine_start() override { m_lamps.resolve(); } - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: void ppi2_obf_w(int state); @@ -67,26 +67,26 @@ class norautp_state : public driver_device void counterlamps_w(uint8_t data); void norautp_palette(palette_device &palette) const; uint32_t screen_update_norautp(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void cgidjp_map(address_map &map); - void cgidjp_opcodes_map(address_map &map); - void decrypted_opcodes_map(address_map &map); - void dphl_map(address_map &map); - void dphla_map(address_map &map); - void dphltest_map(address_map &map); - void drhl_map(address_map &map); - void kimbldhl_map(address_map &map); - void kimble_map(address_map &map); - void newhilop_map(address_map &map); - void noraut3_map(address_map &map); - void noraut3_decrypted_opcodes_map(address_map &map); - void norautp_map(address_map &map); - void norautp_portmap(address_map &map); - void norautx4_map(address_map &map); - void norautx8_map(address_map &map); - void norautxp_map(address_map &map); - void norautxp_portmap(address_map &map); - void nortest1_map(address_map &map); - void ssjkrpkr_map(address_map &map); + void cgidjp_map(address_map &map) ATTR_COLD; + void cgidjp_opcodes_map(address_map &map) ATTR_COLD; + void decrypted_opcodes_map(address_map &map) ATTR_COLD; + void dphl_map(address_map &map) ATTR_COLD; + void dphla_map(address_map &map) ATTR_COLD; + void dphltest_map(address_map &map) ATTR_COLD; + void drhl_map(address_map &map) ATTR_COLD; + void kimbldhl_map(address_map &map) ATTR_COLD; + void kimble_map(address_map &map) ATTR_COLD; + void newhilop_map(address_map &map) ATTR_COLD; + void noraut3_map(address_map &map) ATTR_COLD; + void noraut3_decrypted_opcodes_map(address_map &map) ATTR_COLD; + void norautp_map(address_map &map) ATTR_COLD; + void norautp_portmap(address_map &map) ATTR_COLD; + void norautx4_map(address_map &map) ATTR_COLD; + void norautx8_map(address_map &map) ATTR_COLD; + void norautxp_map(address_map &map) ATTR_COLD; + void norautxp_portmap(address_map &map) ATTR_COLD; + void nortest1_map(address_map &map) ATTR_COLD; + void ssjkrpkr_map(address_map &map) ATTR_COLD; std::unique_ptr m_np_vram; required_device m_maincpu; diff --git a/src/mame/misc/notechan.cpp b/src/mame/misc/notechan.cpp index 936e7fa3b40..c4aa6bc8aea 100644 --- a/src/mame/misc/notechan.cpp +++ b/src/mame/misc/notechan.cpp @@ -318,8 +318,8 @@ class notechan_state : public driver_device void out_f9_w(uint8_t data); void out_fa_w(uint8_t data); void out_ff_w(uint8_t data); - void notechan_map(address_map &map); - void notechan_port_map(address_map &map); + void notechan_map(address_map &map) ATTR_COLD; + void notechan_port_map(address_map &map) ATTR_COLD; virtual void machine_start() override { m_lamps.resolve(); } diff --git a/src/mame/misc/nsg6809.cpp b/src/mame/misc/nsg6809.cpp index 6a579fe9bf9..3b9d900b24f 100644 --- a/src/mame/misc/nsg6809.cpp +++ b/src/mame/misc/nsg6809.cpp @@ -55,7 +55,7 @@ class nsg6809_state : public driver_device void pitchhit(machine_config &config); private: - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; required_device m_maincpu; }; diff --git a/src/mame/misc/nsmpoker.cpp b/src/mame/misc/nsmpoker.cpp index e3bee7928ea..c3556f3cfe3 100644 --- a/src/mame/misc/nsmpoker.cpp +++ b/src/mame/misc/nsmpoker.cpp @@ -86,8 +86,8 @@ class nsmpoker_state : public driver_device void nsmpoker(machine_config &config); protected: - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_shared_ptr m_videoram; required_shared_ptr m_colorram; @@ -102,8 +102,8 @@ class nsmpoker_state : public driver_device void nsmpoker_palette(palette_device &palette) const; uint32_t screen_update_nsmpoker(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); INTERRUPT_GEN_MEMBER(nsmpoker_interrupt); - void nsmpoker_map(address_map &map); - void nsmpoker_portmap(address_map &map); + void nsmpoker_map(address_map &map) ATTR_COLD; + void nsmpoker_portmap(address_map &map) ATTR_COLD; }; diff --git a/src/mame/misc/odyssey.cpp b/src/mame/misc/odyssey.cpp index ceef1467c5e..45738e1bed6 100644 --- a/src/mame/misc/odyssey.cpp +++ b/src/mame/misc/odyssey.cpp @@ -104,8 +104,8 @@ class odyssey_state : public driver_device private: required_device m_maincpu; - void odyssey_map(address_map &map); - void odyssey_io(address_map &map); + void odyssey_map(address_map &map) ATTR_COLD; + void odyssey_io(address_map &map) ATTR_COLD; static void national_superio_config(device_t *device); }; diff --git a/src/mame/misc/oneshot.cpp b/src/mame/misc/oneshot.cpp index 9f8fd05802e..55f40b021c0 100644 --- a/src/mame/misc/oneshot.cpp +++ b/src/mame/misc/oneshot.cpp @@ -172,7 +172,7 @@ class maddonna_state : public driver_device void komocomo(machine_config &config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; required_device m_maincpu; required_device m_palette; @@ -186,7 +186,7 @@ class maddonna_state : public driver_device void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; private: // devices @@ -208,7 +208,7 @@ class maddonna_state : public driver_device TILE_GET_INFO_MEMBER(get_fg_tile_info); u32 screen_update_maddonna(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); u32 screen_update_komocomo(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void sound_map(address_map &map); + void sound_map(address_map &map) ATTR_COLD; }; class oneshot_state : public maddonna_state @@ -224,8 +224,8 @@ class oneshot_state : public maddonna_state void oneshot(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_ioport m_io_dsw1; @@ -245,7 +245,7 @@ class oneshot_state : public maddonna_state u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void draw_crosshairs(); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/misc/onetwo.cpp b/src/mame/misc/onetwo.cpp index 8c3cc7ee79c..f1c70597da9 100644 --- a/src/mame/misc/onetwo.cpp +++ b/src/mame/misc/onetwo.cpp @@ -73,8 +73,8 @@ class onetwo_state : public driver_device void onetwo(machine_config &config); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: // memory pointers @@ -98,10 +98,10 @@ class onetwo_state : public driver_device TILE_GET_INFO_MEMBER(get_fg_tile_info); uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); static rgb_t BBBGGGGGxBBRRRRR(uint32_t raw); - void main_cpu(address_map &map); - void main_cpu_io(address_map &map); - void sound_cpu(address_map &map); - void sound_cpu_io(address_map &map); + void main_cpu(address_map &map) ATTR_COLD; + void main_cpu_io(address_map &map) ATTR_COLD; + void sound_cpu(address_map &map) ATTR_COLD; + void sound_cpu_io(address_map &map) ATTR_COLD; }; diff --git a/src/mame/misc/opercoin.cpp b/src/mame/misc/opercoin.cpp index 6e393f3945c..4c8dca21ca3 100644 --- a/src/mame/misc/opercoin.cpp +++ b/src/mame/misc/opercoin.cpp @@ -58,7 +58,7 @@ class multibaby_state : public driver_device private: required_device m_maincpu; - void prg_map(address_map &map); + void prg_map(address_map &map) ATTR_COLD; }; void multibaby_state::prg_map(address_map &map) diff --git a/src/mame/misc/othello.cpp b/src/mame/misc/othello.cpp index 79ab2b0c65e..b101ce75134 100644 --- a/src/mame/misc/othello.cpp +++ b/src/mame/misc/othello.cpp @@ -73,8 +73,8 @@ class othello_state : public driver_device void othello(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: /* memory pointers */ @@ -122,10 +122,10 @@ class othello_state : public driver_device void othello_palette(palette_device &palette) const; MC6845_UPDATE_ROW(crtc_update_row); - void audio_map(address_map &map); - void audio_portmap(address_map &map); - void main_map(address_map &map); - void main_portmap(address_map &map); + void audio_map(address_map &map) ATTR_COLD; + void audio_portmap(address_map &map) ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; + void main_portmap(address_map &map) ATTR_COLD; }; diff --git a/src/mame/misc/pachifev.cpp b/src/mame/misc/pachifev.cpp index c976f27a695..a40febbc46a 100644 --- a/src/mame/misc/pachifev.cpp +++ b/src/mame/misc/pachifev.cpp @@ -117,12 +117,12 @@ class pachifev_state : public driver_device #endif void controls_w(uint8_t data); uint8_t controls_r(); - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; void vblank_w(int state); required_device m_maincpu; - void pachifev_cru(address_map &map); - void pachifev_map(address_map &map); + void pachifev_cru(address_map &map) ATTR_COLD; + void pachifev_map(address_map &map) ATTR_COLD; }; void pachifev_state::controls_w(uint8_t data) diff --git a/src/mame/misc/pasha2.cpp b/src/mame/misc/pasha2.cpp index e67a5e33835..4b917acfeef 100644 --- a/src/mame/misc/pasha2.cpp +++ b/src/mame/misc/pasha2.cpp @@ -115,9 +115,9 @@ class pasha2_state : public driver_device void init_pasha2(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: // memory pointers @@ -157,9 +157,9 @@ class pasha2_state : public driver_device u16 pasha2_speedup_r(offs_t offset); // address maps - void pasha2_io(address_map &map); - void pasha2_map(address_map &map); - void zdrum_audio_map(address_map &map); + void pasha2_io(address_map &map) ATTR_COLD; + void pasha2_map(address_map &map) ATTR_COLD; + void zdrum_audio_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/misc/pass.cpp b/src/mame/misc/pass.cpp index c04ceca00e3..74d3c1ee248 100644 --- a/src/mame/misc/pass.cpp +++ b/src/mame/misc/pass.cpp @@ -134,7 +134,7 @@ class pass_state : public driver_device void pass(machine_config &config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: void bg_videoram_w(offs_t offset, uint16_t data); @@ -144,9 +144,9 @@ class pass_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void main_map(address_map &map); - void sound_io_map(address_map &map); - void sound_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_io_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; tilemap_t *m_bg_tilemap = nullptr; tilemap_t *m_fg_tilemap = nullptr; diff --git a/src/mame/misc/photon.cpp b/src/mame/misc/photon.cpp index f58e56c2143..dd28ddb75bf 100644 --- a/src/mame/misc/photon.cpp +++ b/src/mame/misc/photon.cpp @@ -44,8 +44,8 @@ class photon_state : public pk8000_base_state void photon(machine_config &config); protected: - virtual void machine_reset() override; - virtual void machine_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; private: uint8_t _80_portb_r(); @@ -57,8 +57,8 @@ class photon_state : public pk8000_base_state IRQ_CALLBACK_MEMBER(irq_callback); void set_bank(uint8_t data); - void pk8000_io(address_map &map); - void pk8000_mem(address_map &map); + void pk8000_io(address_map &map) ATTR_COLD; + void pk8000_mem(address_map &map) ATTR_COLD; required_device m_speaker; required_memory_bank_array<8> m_banks; diff --git a/src/mame/misc/photon2.cpp b/src/mame/misc/photon2.cpp index 0fc481caead..93b41c8a1d4 100644 --- a/src/mame/misc/photon2.cpp +++ b/src/mame/misc/photon2.cpp @@ -47,8 +47,8 @@ class photon2_state : public driver_device void photon2(machine_config &config); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -73,8 +73,8 @@ class photon2_state : public driver_device void screen_vblank_spectrum(int state); TIMER_DEVICE_CALLBACK_MEMBER(spec_interrupt_hack); - void spectrum_io(address_map &map); - void spectrum_mem(address_map &map); + void spectrum_io(address_map &map) ATTR_COLD; + void spectrum_mem(address_map &map) ATTR_COLD; }; diff --git a/src/mame/misc/piggypas.cpp b/src/mame/misc/piggypas.cpp index 8e420e7861c..1aaa218926e 100644 --- a/src/mame/misc/piggypas.cpp +++ b/src/mame/misc/piggypas.cpp @@ -42,8 +42,8 @@ class piggypas_state : public driver_device private: void output_digits(); - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; void ctrl_w(uint8_t data); void port3_w(uint8_t data); void led_strobe_w(uint8_t data); @@ -58,9 +58,9 @@ class piggypas_state : public driver_device uint8_t m_ctrl = 0; uint8_t m_lcd_latch = 0; uint32_t m_digit_latch = 0; - void piggypas_io(address_map &map); - void piggypas_map(address_map &map); - void fidlstix_io(address_map &map); + void piggypas_io(address_map &map) ATTR_COLD; + void piggypas_map(address_map &map) ATTR_COLD; + void fidlstix_io(address_map &map) ATTR_COLD; }; diff --git a/src/mame/misc/pipeline.cpp b/src/mame/misc/pipeline.cpp index d2b5d10c39a..f7f9775a31a 100644 --- a/src/mame/misc/pipeline.cpp +++ b/src/mame/misc/pipeline.cpp @@ -105,8 +105,8 @@ class pipeline_state : public driver_device void pipeline(machine_config &config); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: void vram2_w(offs_t offset, u8 data); @@ -128,9 +128,9 @@ class pipeline_state : public driver_device TIMER_CALLBACK_MEMBER(vidctrl_deferred_w); TIMER_CALLBACK_MEMBER(protection_deferred_w); - void cpu0_mem(address_map &map); - void cpu1_mem(address_map &map); - void sound_port(address_map &map); + void cpu0_mem(address_map &map) ATTR_COLD; + void cpu1_mem(address_map &map) ATTR_COLD; + void sound_port(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_mcu; diff --git a/src/mame/misc/pkscram.cpp b/src/mame/misc/pkscram.cpp index d43896b7167..bdf60296d68 100644 --- a/src/mame/misc/pkscram.cpp +++ b/src/mame/misc/pkscram.cpp @@ -43,11 +43,11 @@ class pkscram_state : public driver_device void pkscramble(machine_config &config); private: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; - void pkscramble_map(address_map &map); + void pkscramble_map(address_map &map) ATTR_COLD; void pkscramble_fgtilemap_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); void pkscramble_mdtilemap_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); diff --git a/src/mame/misc/playcenter.cpp b/src/mame/misc/playcenter.cpp index 65e042fdb8a..2d741de9822 100644 --- a/src/mame/misc/playcenter.cpp +++ b/src/mame/misc/playcenter.cpp @@ -71,7 +71,7 @@ class playcenter_state : public driver_device void playcenter(machine_config &config); private: - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; }; diff --git a/src/mame/misc/plsonic4.cpp b/src/mame/misc/plsonic4.cpp index 051b526aa20..c9b4d69f0be 100644 --- a/src/mame/misc/plsonic4.cpp +++ b/src/mame/misc/plsonic4.cpp @@ -44,7 +44,7 @@ class plsonic4_state : public driver_device void plsonic4(machine_config &config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -56,8 +56,8 @@ class plsonic4_state : public driver_device TILE_GET_INFO_MEMBER(tile_info); uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void prg_map(address_map &map); - void io_map(address_map &map); + void prg_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/misc/pmc.cpp b/src/mame/misc/pmc.cpp index 181cf680f64..8e6ee3ac904 100644 --- a/src/mame/misc/pmc.cpp +++ b/src/mame/misc/pmc.cpp @@ -43,10 +43,10 @@ class pmc_state : public driver_device void pmc(machine_config &config); private: - void rom_map(address_map &map); - void rom_ports_map(address_map &map); - void ram_map(address_map &map); - void ram_status_map(address_map &map); + void rom_map(address_map &map) ATTR_COLD; + void rom_ports_map(address_map &map) ATTR_COLD; + void ram_map(address_map &map) ATTR_COLD; + void ram_status_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/misc/pntnpuzl.cpp b/src/mame/misc/pntnpuzl.cpp index 03cd9aa04c4..b0cc8a0cfbc 100644 --- a/src/mame/misc/pntnpuzl.cpp +++ b/src/mame/misc/pntnpuzl.cpp @@ -195,8 +195,8 @@ class pntnpuzl_state : public driver_device uint16_t irq1_ack_r(); uint16_t irq2_ack_r(); uint16_t irq4_ack_r(); - void mcu_map(address_map &map); - void pntnpuzl_map(address_map &map); + void mcu_map(address_map &map) ATTR_COLD; + void pntnpuzl_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/misc/poker72.cpp b/src/mame/misc/poker72.cpp index ed3e9650ad9..4fcc7840e6a 100644 --- a/src/mame/misc/poker72.cpp +++ b/src/mame/misc/poker72.cpp @@ -60,8 +60,8 @@ class poker72_state : public driver_device void init_poker72(); protected: - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_shared_ptr m_vram; @@ -77,7 +77,7 @@ class poker72_state : public driver_device void output_w(uint8_t data); void tile_bank_w(uint8_t data); uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void prg_map(address_map &map); + void prg_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/misc/pokerout.cpp b/src/mame/misc/pokerout.cpp index f4da8d2b0c0..da4d64e91b4 100644 --- a/src/mame/misc/pokerout.cpp +++ b/src/mame/misc/pokerout.cpp @@ -216,12 +216,12 @@ class pokerout_state : public driver_device void pokerout(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: - void mem_map(address_map &map); - void io_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/misc/policetr.h b/src/mame/misc/policetr.h index 94681624301..03c8cd1722f 100644 --- a/src/mame/misc/policetr.h +++ b/src/mame/misc/policetr.h @@ -46,12 +46,12 @@ class policetr_state : public driver_device m_speedup_addr(speedup_addr) { } virtual void driver_start() override; - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; - void mem(address_map &map); + void mem(address_map &map) ATTR_COLD; - void ramdac_map(address_map& map); + void ramdac_map(address_map &map) ATTR_COLD; void control_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0); void speedup_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0); @@ -128,7 +128,7 @@ class sshooter_state : public policetr_state : policetr_state(mconfig, type, tag, speedup_pc, speedup_addr) { } - void mem(address_map &map); + void mem(address_map &map) ATTR_COLD; }; class sshoot17_state : public sshooter_state diff --git a/src/mame/misc/potgoldu.cpp b/src/mame/misc/potgoldu.cpp index cbdf809fc2d..4c3979df4ae 100644 --- a/src/mame/misc/potgoldu.cpp +++ b/src/mame/misc/potgoldu.cpp @@ -39,12 +39,12 @@ class potgold_state : public driver_device void potgold580(machine_config &config); private: - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; TMS340X0_SCANLINE_RGB32_CB_MEMBER(scanline_update); - void potgold_map(address_map &map); + void potgold_map(address_map &map) ATTR_COLD; required_device m_maincpu; }; diff --git a/src/mame/misc/proconn.cpp b/src/mame/misc/proconn.cpp index fee6d4ed4dd..45ec00624d5 100644 --- a/src/mame/misc/proconn.cpp +++ b/src/mame/misc/proconn.cpp @@ -62,7 +62,7 @@ class proconn_state : public driver_device void init_proconn(); protected: - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; private: template void ay_w(uint8_t data) { m_ay->address_data_w(N, data); } @@ -133,8 +133,8 @@ class proconn_state : public driver_device void pio_5_m_out_pb_w(uint8_t data) { logerror("pio_5_m_out_pb_w %02x (LAMPS1)\n", data); } void pio_5_m_out_brdy_w(int state) { logerror("pio_5_m_out_brdy_w %02x\n", state); } - void proconn_map(address_map &map); - void proconn_portmap(address_map &map); + void proconn_map(address_map &map) ATTR_COLD; + void proconn_portmap(address_map &map) ATTR_COLD; // devices optional_device m_vfd; diff --git a/src/mame/misc/psattack.cpp b/src/mame/misc/psattack.cpp index de276be2eb7..c54d77bfbcb 100644 --- a/src/mame/misc/psattack.cpp +++ b/src/mame/misc/psattack.cpp @@ -161,9 +161,9 @@ class psattack_state : public driver_device required_device m_vr0soc; required_device m_ata; - virtual void machine_start() override; - virtual void machine_reset() override; - void psattack_mem(address_map &map); + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + void psattack_mem(address_map &map) ATTR_COLD; uint16_t cfcard_data_r(); uint8_t cfcard_regs_r(offs_t offset); diff --git a/src/mame/misc/pse.cpp b/src/mame/misc/pse.cpp index ea1aff8a338..802e371b9db 100644 --- a/src/mame/misc/pse.cpp +++ b/src/mame/misc/pse.cpp @@ -62,9 +62,9 @@ class pse_state : public driver_device void pse(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; diff --git a/src/mame/misc/quizo.cpp b/src/mame/misc/quizo.cpp index 828dd6ba9e6..115b20af312 100644 --- a/src/mame/misc/quizo.cpp +++ b/src/mame/misc/quizo.cpp @@ -49,7 +49,7 @@ class quizo_state : public driver_device void quizo(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_maincpu; @@ -66,8 +66,8 @@ class quizo_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void memmap(address_map &map); - void portmap(address_map &map); + void memmap(address_map &map) ATTR_COLD; + void portmap(address_map &map) ATTR_COLD; }; void quizo_state::quizo_palette(palette_device &palette) const diff --git a/src/mame/misc/quizpun2.cpp b/src/mame/misc/quizpun2.cpp index 1e33e6f199b..5df0cb83bf3 100644 --- a/src/mame/misc/quizpun2.cpp +++ b/src/mame/misc/quizpun2.cpp @@ -132,9 +132,9 @@ class quizpun2_state : public driver_device void quizpun2(machine_config &config); protected: - virtual void machine_reset() override; - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -187,11 +187,11 @@ class quizpun2_state : public driver_device uint8_t quizpun_68705_port_c_r(); void quizpun_68705_port_c_w(uint8_t data); - void quizpun2_cop_map(address_map &map); - void io_map(address_map &map); - void main_map(address_map &map); - void sound_io_map(address_map &map); - void sound_map(address_map &map); + void quizpun2_cop_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; + void sound_io_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; }; /*************************************************************************** diff --git a/src/mame/misc/rawthrillspc.cpp b/src/mame/misc/rawthrillspc.cpp index 708fc4dd68c..234302773d6 100644 --- a/src/mame/misc/rawthrillspc.cpp +++ b/src/mame/misc/rawthrillspc.cpp @@ -41,7 +41,7 @@ class rawthrillspc_state : public driver_device private: required_device m_maincpu; - void rawthrillspc_map(address_map &map); + void rawthrillspc_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/misc/rcorsair.cpp b/src/mame/misc/rcorsair.cpp index a6aa6be8efc..052b6fd656f 100644 --- a/src/mame/misc/rcorsair.cpp +++ b/src/mame/misc/rcorsair.cpp @@ -83,7 +83,7 @@ class rcorsair_state : public driver_device protected: // driver_device overrides - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: // devices @@ -92,9 +92,9 @@ class rcorsair_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void rcorsair_main_map(address_map &map); - void rcorsair_sub_io_map(address_map &map); - void rcorsair_sub_map(address_map &map); + void rcorsair_main_map(address_map &map) ATTR_COLD; + void rcorsair_sub_io_map(address_map &map) ATTR_COLD; + void rcorsair_sub_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/misc/re900.cpp b/src/mame/misc/re900.cpp index 7ec02992b9c..0cc11c8712d 100644 --- a/src/mame/misc/re900.cpp +++ b/src/mame/misc/re900.cpp @@ -119,8 +119,8 @@ class re900_state : public driver_device void re_mux_port_A_w(uint8_t data); void re_mux_port_B_w(uint8_t data); - void mem_io(address_map &map); - void mem_prg(address_map &map); + void mem_io(address_map &map) ATTR_COLD; + void mem_prg(address_map &map) ATTR_COLD; required_device m_maincpu; diff --git a/src/mame/misc/rgum.cpp b/src/mame/misc/rgum.cpp index 52f40ac3ba4..649ceabd8b2 100644 --- a/src/mame/misc/rgum.cpp +++ b/src/mame/misc/rgum.cpp @@ -54,8 +54,8 @@ class rgum_state : public driver_device int heartbeat_r(); protected: - virtual void video_start() override; - virtual void machine_reset() override; + virtual void video_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_shared_ptr m_vram; @@ -77,7 +77,7 @@ class rgum_state : public driver_device uint8_t upd_reset_r(); uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/misc/roul.cpp b/src/mame/misc/roul.cpp index 804d4576e72..c463324c84a 100644 --- a/src/mame/misc/roul.cpp +++ b/src/mame/misc/roul.cpp @@ -91,7 +91,7 @@ class roul_state : public driver_device protected: virtual void machine_start() override { m_lamps.resolve(); } - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: uint8_t blitter_status_r(); @@ -102,10 +102,10 @@ class roul_state : public driver_device void roul_palette(palette_device &palette) const; uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void roul_cpu_io_map(address_map &map); - void roul_map(address_map &map); - void sound_cpu_io_map(address_map &map); - void sound_map(address_map &map); + void roul_cpu_io_map(address_map &map) ATTR_COLD; + void roul_map(address_map &map) ATTR_COLD; + void sound_cpu_io_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_soundcpu; diff --git a/src/mame/misc/rulechan.cpp b/src/mame/misc/rulechan.cpp index 2b0081297ae..a57aa7c15ae 100644 --- a/src/mame/misc/rulechan.cpp +++ b/src/mame/misc/rulechan.cpp @@ -219,7 +219,7 @@ class rulechan_state : public driver_device void rulechan_init(); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: void port0_w(uint8_t data); @@ -257,8 +257,8 @@ class rulechan_state : public driver_device required_ioport m_dsw; required_ioport_array<6> m_keymx; - void main_io(address_map &map); - void main_map(address_map &map); + void main_io(address_map &map) ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; void sound_sort(); void sound_off(); diff --git a/src/mame/misc/sanremmg.cpp b/src/mame/misc/sanremmg.cpp index 6330bb750f5..6515f9e268c 100644 --- a/src/mame/misc/sanremmg.cpp +++ b/src/mame/misc/sanremmg.cpp @@ -50,14 +50,14 @@ class sanremmg_state : public driver_device void sanremmg(machine_config &config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; uint32_t screen_update_sanremmg(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void sanremmg_map(address_map &map); + void sanremmg_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/misc/sanremo.cpp b/src/mame/misc/sanremo.cpp index 6924977212c..b4d5259306e 100644 --- a/src/mame/misc/sanremo.cpp +++ b/src/mame/misc/sanremo.cpp @@ -127,7 +127,7 @@ class sanremo_state : public driver_device void sanremo(machine_config &config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: required_shared_ptr m_videoram; @@ -145,9 +145,9 @@ class sanremo_state : public driver_device void lamps_w(uint8_t data); void sanremo_palette(palette_device &palette) const; uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void number1_map(address_map &map); - void roadstar_map(address_map &map); - void sanremo_portmap(address_map &map); + void number1_map(address_map &map) ATTR_COLD; + void roadstar_map(address_map &map) ATTR_COLD; + void sanremo_portmap(address_map &map) ATTR_COLD; }; diff --git a/src/mame/misc/savquest.cpp b/src/mame/misc/savquest.cpp index a59d87baa97..438a8101a52 100644 --- a/src/mame/misc/savquest.cpp +++ b/src/mame/misc/savquest.cpp @@ -100,8 +100,8 @@ class savquest_state : public pcat_base_state // driver_device overrides // virtual void video_start(); - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: std::unique_ptr m_bios_f0000_ram; @@ -148,8 +148,8 @@ class savquest_state : public pcat_base_state uint8_t smram_r(offs_t offset); void smram_w(offs_t offset, uint8_t data); - void savquest_io(address_map &map); - void savquest_map(address_map &map); + void savquest_io(address_map &map) ATTR_COLD; + void savquest_map(address_map &map) ATTR_COLD; void intel82439tx_init(); void vid_3dfx_init(); diff --git a/src/mame/misc/scm_500.cpp b/src/mame/misc/scm_500.cpp index f99d0d9af65..a4e90bc60ad 100644 --- a/src/mame/misc/scm_500.cpp +++ b/src/mame/misc/scm_500.cpp @@ -28,10 +28,10 @@ class scm_500_state : public driver_device void scm_500(machine_config &config); private: - void prog_map(address_map &map); + void prog_map(address_map &map) ATTR_COLD; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; required_device m_maincpu; }; diff --git a/src/mame/misc/sfbonus.cpp b/src/mame/misc/sfbonus.cpp index 2183d4d1914..2ab50fb8b3f 100644 --- a/src/mame/misc/sfbonus.cpp +++ b/src/mame/misc/sfbonus.cpp @@ -453,12 +453,12 @@ class sfbonus_state : public driver_device void draw_reel_layer(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, int category); uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void ramdac_map(address_map &map); - void sfbonus_io(address_map &map); - void sfbonus_map(address_map &map); + void ramdac_map(address_map &map) ATTR_COLD; + void sfbonus_io(address_map &map) ATTR_COLD; + void sfbonus_map(address_map &map) ATTR_COLD; - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; required_device m_maincpu; required_device m_gfxdecode; diff --git a/src/mame/misc/shangkid.h b/src/mame/misc/shangkid.h index 6976208e235..d97786cf18c 100644 --- a/src/mame/misc/shangkid.h +++ b/src/mame/misc/shangkid.h @@ -23,7 +23,7 @@ class dynamski_state : public driver_device void dynamski(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; required_device m_maincpu; required_device m_gfxdecode; @@ -42,8 +42,8 @@ class dynamski_state : public driver_device void draw_background(bitmap_ind16 &bitmap, const rectangle &cliprect, int pri); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprec ); - void prgmap(address_map &map); - void portmap(address_map &map); + void prgmap(address_map &map) ATTR_COLD; + void portmap(address_map &map) ATTR_COLD; }; class chinhero_state : public dynamski_state @@ -60,8 +60,8 @@ class chinhero_state : public dynamski_state void chinhero(machine_config &config); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; required_device m_audiocpu; required_device m_bbx; @@ -95,11 +95,11 @@ class chinhero_state : public dynamski_state void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); void draw_sprite(const uint8_t *source, bitmap_ind16 &bitmap, const rectangle &cliprect); - void bbx_map(address_map &map); - void bbx_portmap(address_map &map); - void main_map(address_map &map); - void sound_map(address_map &map); - void sound_portmap(address_map &map); + void bbx_map(address_map &map) ATTR_COLD; + void bbx_portmap(address_map &map) ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; + void sound_portmap(address_map &map) ATTR_COLD; }; class shangkid_state : public chinhero_state @@ -113,18 +113,18 @@ class shangkid_state : public chinhero_state void shangkid(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_memory_bank m_soundbank; void ay8910_porta_w(uint8_t data); - void bbx_map(address_map &map); - void bbx_portmap(address_map &map); - void main_map(address_map &map); - void sound_map(address_map &map); + void bbx_map(address_map &map) ATTR_COLD; + void bbx_portmap(address_map &map) ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; }; #endif // MAME_MISC_SHANGKID_H diff --git a/src/mame/misc/silverball.cpp b/src/mame/misc/silverball.cpp index f221153835a..07ee8c5caa9 100644 --- a/src/mame/misc/silverball.cpp +++ b/src/mame/misc/silverball.cpp @@ -62,8 +62,8 @@ class silverball_state : public driver_device void silverball_i440zx(machine_config &config); private: - void silverball_map(address_map &map); - void silverball_io(address_map &map); + void silverball_map(address_map &map) ATTR_COLD; + void silverball_io(address_map &map) ATTR_COLD; required_device m_maincpu; diff --git a/src/mame/misc/skeetsht.cpp b/src/mame/misc/skeetsht.cpp index effa081c743..52b990a92d0 100644 --- a/src/mame/misc/skeetsht.cpp +++ b/src/mame/misc/skeetsht.cpp @@ -59,13 +59,13 @@ class skeetsht_state : public driver_device void ay8910_w(uint8_t data); void tms_irq(int state); TMS340X0_SCANLINE_RGB32_CB_MEMBER(scanline_update); - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; required_device m_68hc11; required_device m_ay; required_device m_tms; - void hc11_pgm_map(address_map &map); - void tms_program_map(address_map &map); + void hc11_pgm_map(address_map &map) ATTR_COLD; + void tms_program_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/misc/skimaxx.cpp b/src/mame/misc/skimaxx.cpp index 4f907a1cdce..c5ef1f693e9 100644 --- a/src/mame/misc/skimaxx.cpp +++ b/src/mame/misc/skimaxx.cpp @@ -67,8 +67,8 @@ class skimaxx_state : public driver_device protected: virtual void device_post_load() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -105,9 +105,9 @@ class skimaxx_state : public driver_device TMS340X0_FROM_SHIFTREG_CB_MEMBER(from_shiftreg); TMS340X0_SCANLINE_IND16_CB_MEMBER(scanline_update); - void m68030_1_map(address_map &map); - void m68030_2_map(address_map &map); - void tms_program_map(address_map &map); + void m68030_1_map(address_map &map) ATTR_COLD; + void m68030_2_map(address_map &map) ATTR_COLD; + void tms_program_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/misc/skopro.cpp b/src/mame/misc/skopro.cpp index 7842dea5f3b..53746e36b95 100644 --- a/src/mame/misc/skopro.cpp +++ b/src/mame/misc/skopro.cpp @@ -42,7 +42,7 @@ class skopro_state : public driver_device private: required_device m_maincpu; - void skopro_map(address_map &map); + void skopro_map(address_map &map) ATTR_COLD; }; void skopro_state::skopro_map(address_map &map) diff --git a/src/mame/misc/skyarmy.cpp b/src/mame/misc/skyarmy.cpp index 0d9d414f33d..1be842bb29e 100644 --- a/src/mame/misc/skyarmy.cpp +++ b/src/mame/misc/skyarmy.cpp @@ -53,8 +53,8 @@ class skyarmy_state : public driver_device void skyarmy(machine_config &config); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -81,8 +81,8 @@ class skyarmy_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); INTERRUPT_GEN_MEMBER(nmi_source); - void skyarmy_io_map(address_map &map); - void skyarmy_map(address_map &map); + void skyarmy_io_map(address_map &map) ATTR_COLD; + void skyarmy_map(address_map &map) ATTR_COLD; }; void skyarmy_state::machine_start() diff --git a/src/mame/misc/skylncr.cpp b/src/mame/misc/skylncr.cpp index adb00ceb027..42f8f9a1441 100644 --- a/src/mame/misc/skylncr.cpp +++ b/src/mame/misc/skylncr.cpp @@ -173,8 +173,8 @@ class skylncr_state : public driver_device int mbutrfly_prot_r(); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: void videoram_w(offs_t offset, uint8_t data); @@ -193,13 +193,13 @@ class skylncr_state : public driver_device template TILE_GET_INFO_MEMBER(get_reel_tile_info); uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); INTERRUPT_GEN_MEMBER(vblank_interrupt); - void bdream97_opcode_map(address_map &map); - void olymp_opcode_map(address_map &map); - void io_map_mbutrfly(address_map &map); - void io_map_skylncr(address_map &map); - void mem_map(address_map &map); - void ramdac2_map(address_map &map); - void ramdac_map(address_map &map); + void bdream97_opcode_map(address_map &map) ATTR_COLD; + void olymp_opcode_map(address_map &map) ATTR_COLD; + void io_map_mbutrfly(address_map &map) ATTR_COLD; + void io_map_skylncr(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; + void ramdac2_map(address_map &map) ATTR_COLD; + void ramdac_map(address_map &map) ATTR_COLD; tilemap_t *m_tmap = nullptr; required_shared_ptr m_videoram; diff --git a/src/mame/misc/sliver.cpp b/src/mame/misc/sliver.cpp index 648573e3482..9da1302e082 100644 --- a/src/mame/misc/sliver.cpp +++ b/src/mame/misc/sliver.cpp @@ -101,8 +101,8 @@ class sliver_state : public driver_device void sliver(machine_config &config); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; virtual void device_post_load() override; private: @@ -145,11 +145,11 @@ class sliver_state : public driver_device void blit_gfx(); void render_jpeg(); - void oki_map(address_map &map); - void ramdac_map(address_map &map); - void sliver_map(address_map &map); - void soundmem_io(address_map &map); - void soundmem_prg(address_map &map); + void oki_map(address_map &map) ATTR_COLD; + void ramdac_map(address_map &map) ATTR_COLD; + void sliver_map(address_map &map) ATTR_COLD; + void soundmem_io(address_map &map) ATTR_COLD; + void soundmem_prg(address_map &map) ATTR_COLD; }; void sliver_state::machine_start() diff --git a/src/mame/misc/smd2144c.cpp b/src/mame/misc/smd2144c.cpp index 101ddd9a84e..fa14b004f00 100644 --- a/src/mame/misc/smd2144c.cpp +++ b/src/mame/misc/smd2144c.cpp @@ -45,7 +45,7 @@ class smd2144c_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void program_map(address_map &map); + void program_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/misc/smotor.cpp b/src/mame/misc/smotor.cpp index 1c63e793caf..a8f84a81f86 100644 --- a/src/mame/misc/smotor.cpp +++ b/src/mame/misc/smotor.cpp @@ -158,8 +158,8 @@ class smotor_state : public driver_device void smotor(machine_config &config); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -181,8 +181,8 @@ class smotor_state : public driver_device void smotor_palette(palette_device &palette) const; uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void smotor_cpu_map(address_map &map); - void smotor_cpu_io(address_map &map); + void smotor_cpu_map(address_map &map) ATTR_COLD; + void smotor_cpu_io(address_map &map) ATTR_COLD; }; diff --git a/src/mame/misc/smsmcorp.cpp b/src/mame/misc/smsmcorp.cpp index 078e8db9f3f..c07afb06a1b 100644 --- a/src/mame/misc/smsmcorp.cpp +++ b/src/mame/misc/smsmcorp.cpp @@ -253,13 +253,13 @@ class smsmfg_state : public driver_device void ppi0_b_w(uint8_t data); DECLARE_MACHINE_START(sureshot); uint32_t screen_update_sms(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void sms_map(address_map &map); - void sub_map(address_map &map); - void sureshot_map(address_map &map); + void sms_map(address_map &map) ATTR_COLD; + void sub_map(address_map &map) ATTR_COLD; + void sureshot_map(address_map &map) ATTR_COLD; - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; uint8_t m_communication_port[4]{}; uint8_t m_communication_port_status = 0; diff --git a/src/mame/misc/sothello.cpp b/src/mame/misc/sothello.cpp index a581e6980e4..02c34634d96 100644 --- a/src/mame/misc/sothello.cpp +++ b/src/mame/misc/sothello.cpp @@ -63,8 +63,8 @@ class sothello_state : public driver_device void sothello(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: void bank_w(uint8_t data); @@ -80,11 +80,11 @@ class sothello_state : public driver_device void msm_cfg_w(uint8_t data); void adpcm_int_w(int state); - void maincpu_io_map(address_map &map); - void maincpu_mem_map(address_map &map); - void soundcpu_io_map(address_map &map); - void soundcpu_mem_map(address_map &map); - void subcpu_mem_map(address_map &map); + void maincpu_io_map(address_map &map) ATTR_COLD; + void maincpu_mem_map(address_map &map) ATTR_COLD; + void soundcpu_io_map(address_map &map) ATTR_COLD; + void soundcpu_mem_map(address_map &map) ATTR_COLD; + void subcpu_mem_map(address_map &map) ATTR_COLD; int m_subcpu_status; int m_soundcpu_busy; diff --git a/src/mame/misc/spdamjes.cpp b/src/mame/misc/spdamjes.cpp index ea7137364fa..95058b22145 100644 --- a/src/mame/misc/spdamjes.cpp +++ b/src/mame/misc/spdamjes.cpp @@ -87,7 +87,7 @@ class spdamjes_state : public driver_device void spdamjes(machine_config &config); private: - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; }; diff --git a/src/mame/misc/spool99.cpp b/src/mame/misc/spool99.cpp index 716a97dc834..5875f3529bb 100644 --- a/src/mame/misc/spool99.cpp +++ b/src/mame/misc/spool99.cpp @@ -123,7 +123,7 @@ class spool99_state : public driver_device void init_spool99(); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -147,8 +147,8 @@ class spool99_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); TILE_GET_INFO_MEMBER(get_tile_info); - void spool99_map(address_map &map); - void vcarn_map(address_map &map); + void spool99_map(address_map &map) ATTR_COLD; + void vcarn_map(address_map &map) ATTR_COLD; }; TILE_GET_INFO_MEMBER(spool99_state::get_tile_info) diff --git a/src/mame/misc/sprcros2.cpp b/src/mame/misc/sprcros2.cpp index 9abb61d8904..10cd782a4a2 100644 --- a/src/mame/misc/sprcros2.cpp +++ b/src/mame/misc/sprcros2.cpp @@ -84,10 +84,10 @@ class sprcros2_state : public driver_device protected: // driver_device overrides - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: // devices @@ -118,10 +118,10 @@ class sprcros2_state : public driver_device INTERRUPT_GEN_MEMBER(slave_vblank_irq); TIMER_DEVICE_CALLBACK_MEMBER(master_scanline); - void master_io(address_map &map); - void master_map(address_map &map); - void slave_io(address_map &map); - void slave_map(address_map &map); + void master_io(address_map &map) ATTR_COLD; + void master_map(address_map &map) ATTR_COLD; + void slave_io(address_map &map) ATTR_COLD; + void slave_map(address_map &map) ATTR_COLD; void legacy_bg_draw(bitmap_ind16 &bitmap,const rectangle &cliprect); void legacy_fg_draw(bitmap_ind16 &bitmap,const rectangle &cliprect); diff --git a/src/mame/misc/ssingles.cpp b/src/mame/misc/ssingles.cpp index c0a4f95eeb3..a8d42396e7e 100644 --- a/src/mame/misc/ssingles.cpp +++ b/src/mame/misc/ssingles.cpp @@ -190,7 +190,7 @@ class ssingles_state : public driver_device ioport_value controls_r(); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -222,10 +222,10 @@ class ssingles_state : public driver_device MC6845_UPDATE_ROW(ssingles_update_row); MC6845_UPDATE_ROW(atamanot_update_row); - void atamanot_io_map(address_map &map); - void atamanot_map(address_map &map); - void ssingles_io_map(address_map &map); - void ssingles_map(address_map &map); + void atamanot_io_map(address_map &map) ATTR_COLD; + void atamanot_map(address_map &map) ATTR_COLD; + void ssingles_io_map(address_map &map) ATTR_COLD; + void ssingles_map(address_map &map) ATTR_COLD; }; //fake palette diff --git a/src/mame/misc/sstrangr.cpp b/src/mame/misc/sstrangr.cpp index faf496ab0e9..0c2d6e40778 100644 --- a/src/mame/misc/sstrangr.cpp +++ b/src/mame/misc/sstrangr.cpp @@ -351,7 +351,7 @@ class sstrangr_state : public driver_device void sstrangr(machine_config &config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -369,8 +369,8 @@ class sstrangr_state : public driver_device uint32_t screen_update_sstrangr(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); uint32_t screen_update_sstrngr2(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void sstrangr_io_map(address_map &map); - void sstrangr_map(address_map &map); + void sstrangr_io_map(address_map &map) ATTR_COLD; + void sstrangr_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/misc/startouch.cpp b/src/mame/misc/startouch.cpp index 3ae48616f2a..c3fef78e8c7 100644 --- a/src/mame/misc/startouch.cpp +++ b/src/mame/misc/startouch.cpp @@ -53,7 +53,7 @@ class startouch_state : public driver_device void europl01(machine_config &config); private: - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; }; diff --git a/src/mame/misc/statriv2.cpp b/src/mame/misc/statriv2.cpp index ca792ccb9c4..f1414e06927 100644 --- a/src/mame/misc/statriv2.cpp +++ b/src/mame/misc/statriv2.cpp @@ -131,7 +131,7 @@ class statriv2_state : public driver_device TILE_GET_INFO_MEMBER(horizontal_tile_info); TILE_GET_INFO_MEMBER(vertical_tile_info); - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; void statriv2_palette(palette_device &palette) const; void check_coin_status(); DECLARE_VIDEO_START(vertical); @@ -139,9 +139,9 @@ class statriv2_state : public driver_device INTERRUPT_GEN_MEMBER(statriv2_interrupt); INTERRUPT_GEN_MEMBER(tripdraw_interrupt); - void statriv2_map(address_map &map); - void statusbj_io_map(address_map &map); - void statriv2_io_map(address_map &map); + void statriv2_map(address_map &map) ATTR_COLD; + void statusbj_io_map(address_map &map) ATTR_COLD; + void statriv2_io_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/misc/strkzn.cpp b/src/mame/misc/strkzn.cpp index 2c6f8a7ad48..c527a1ffa42 100644 --- a/src/mame/misc/strkzn.cpp +++ b/src/mame/misc/strkzn.cpp @@ -28,10 +28,10 @@ class strkzn_state : public driver_device void strkzn(machine_config &config); private: - void light_io(address_map &map); - void light_mem(address_map &map); - void main_io(address_map &map); - void main_mem(address_map &map); + void light_io(address_map &map) ATTR_COLD; + void light_mem(address_map &map) ATTR_COLD; + void main_io(address_map &map) ATTR_COLD; + void main_mem(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_lightcpu; diff --git a/src/mame/misc/stuntair.cpp b/src/mame/misc/stuntair.cpp index 1f8f2cece94..b7924dd9bb6 100644 --- a/src/mame/misc/stuntair.cpp +++ b/src/mame/misc/stuntair.cpp @@ -113,9 +113,9 @@ class stuntair_state : public driver_device void stuntair(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -152,9 +152,9 @@ class stuntair_state : public driver_device void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); uint32_t screen_update_stuntair(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void stuntair_palette(palette_device &palette) const; - void stuntair_map(address_map &map); - void stuntair_sound_map(address_map &map); - void stuntair_sound_portmap(address_map &map); + void stuntair_map(address_map &map) ATTR_COLD; + void stuntair_sound_map(address_map &map) ATTR_COLD; + void stuntair_sound_portmap(address_map &map) ATTR_COLD; }; diff --git a/src/mame/misc/su2000.cpp b/src/mame/misc/su2000.cpp index 886e57a0a8f..5a20d8030d0 100644 --- a/src/mame/misc/su2000.cpp +++ b/src/mame/misc/su2000.cpp @@ -87,8 +87,8 @@ class su2000_state : public pcat_base_state void su2000(machine_config &config); private: - void pcat_io(address_map &map); - void pcat_map(address_map &map); + void pcat_io(address_map &map) ATTR_COLD; + void pcat_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/misc/summit.cpp b/src/mame/misc/summit.cpp index 1c02e10f23a..822470eb20d 100644 --- a/src/mame/misc/summit.cpp +++ b/src/mame/misc/summit.cpp @@ -54,7 +54,7 @@ class summit_state : public driver_device void summit(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_maincpu; @@ -65,7 +65,7 @@ class summit_state : public driver_device output_finder<16> m_lamps; - void mainmap(address_map &map); + void mainmap(address_map &map) ATTR_COLD; void sound_w(uint8_t data); void out2_w(uint8_t data); diff --git a/src/mame/misc/sumt8035.cpp b/src/mame/misc/sumt8035.cpp index c74f385f72f..0bcdd333d4b 100644 --- a/src/mame/misc/sumt8035.cpp +++ b/src/mame/misc/sumt8035.cpp @@ -29,8 +29,8 @@ class sumt8035_state : public driver_device void summit(machine_config &config); private: - void sumt_map(address_map &map); - void sumt_portmap(address_map &map); + void sumt_map(address_map &map) ATTR_COLD; + void sumt_portmap(address_map &map) ATTR_COLD; // devices required_device m_maincpu; diff --git a/src/mame/misc/supertnk.cpp b/src/mame/misc/supertnk.cpp index dbf2777946f..8094547be05 100644 --- a/src/mame/misc/supertnk.cpp +++ b/src/mame/misc/supertnk.cpp @@ -128,8 +128,8 @@ class supertnk_state : public driver_device void init_supertnk(); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: void bankswitch_0_w(int state); @@ -142,8 +142,8 @@ class supertnk_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); void vblank_interrupt(int state); - void io_map(address_map &map); - void prg_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void prg_map(address_map &map) ATTR_COLD; // the color PROM is 32 bytes, but it is repeating every 8 bytes static constexpr uint8_t NUM_PENS = 8; diff --git a/src/mame/misc/tapatune.cpp b/src/mame/misc/tapatune.cpp index 113879c45af..9591fdf9cb1 100644 --- a/src/mame/misc/tapatune.cpp +++ b/src/mame/misc/tapatune.cpp @@ -73,8 +73,8 @@ class tapatune_state : public driver_device void tapatune_base(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; @@ -120,9 +120,9 @@ class tapatune_state : public driver_device MC6845_BEGIN_UPDATE(crtc_begin_update); MC6845_UPDATE_ROW(crtc_update_row); - void maincpu_io_map(address_map &map); - void maincpu_map(address_map &map); - void video_map(address_map &map); + void maincpu_io_map(address_map &map) ATTR_COLD; + void maincpu_map(address_map &map) ATTR_COLD; + void video_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/misc/tattack.cpp b/src/mame/misc/tattack.cpp index 24a470cfe7a..258bb5d28b5 100644 --- a/src/mame/misc/tattack.cpp +++ b/src/mame/misc/tattack.cpp @@ -85,7 +85,7 @@ class tattack_state : public driver_device void init_tattack(); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: void paddle_w(uint8_t data); @@ -97,7 +97,7 @@ class tattack_state : public driver_device void palette(palette_device &palette) const; uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void prg_map(address_map &map); + void prg_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_shared_ptr m_ram; diff --git a/src/mame/misc/taxidriv.cpp b/src/mame/misc/taxidriv.cpp index bb5297f847a..1762c85fec6 100644 --- a/src/mame/misc/taxidriv.cpp +++ b/src/mame/misc/taxidriv.cpp @@ -40,7 +40,7 @@ class taxidriv_state : public driver_device void taxidriv(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_maincpu; @@ -77,10 +77,10 @@ class taxidriv_state : public driver_device void taxidriv_palette(palette_device &palette) const; uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void cpu2_map(address_map &map); - void cpu3_map(address_map &map); - void cpu3_port_map(address_map &map); - void main_map(address_map &map); + void cpu2_map(address_map &map) ATTR_COLD; + void cpu3_map(address_map &map) ATTR_COLD; + void cpu3_port_map(address_map &map) ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/misc/tecnodar.cpp b/src/mame/misc/tecnodar.cpp index 58cadfeea42..80845131970 100644 --- a/src/mame/misc/tecnodar.cpp +++ b/src/mame/misc/tecnodar.cpp @@ -67,7 +67,7 @@ class tecnodar_state : public driver_device void tecnodar(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: void bank_w(offs_t offset, u8 data); @@ -78,8 +78,8 @@ class tecnodar_state : public driver_device void ppi_pb_w(u8 data); void ppi_pc_w(u8 data); - void mem_map(address_map &map); - void io_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_ppi; diff --git a/src/mame/misc/thayers.cpp b/src/mame/misc/thayers.cpp index 10c32e887aa..23a310678ff 100644 --- a/src/mame/misc/thayers.cpp +++ b/src/mame/misc/thayers.cpp @@ -53,11 +53,11 @@ class thayers_state : public driver_device void thayers(machine_config &config); private: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; - void thayers_map(address_map &map); - void thayers_io_map(address_map &map); + void thayers_map(address_map &map) ATTR_COLD; + void thayers_io_map(address_map &map) ATTR_COLD; TIMER_CALLBACK_MEMBER(firstirq_tick); TIMER_CALLBACK_MEMBER(intrq_tick); diff --git a/src/mame/misc/tickee.cpp b/src/mame/misc/tickee.cpp index 7320d2481b2..e472a041b88 100644 --- a/src/mame/misc/tickee.cpp +++ b/src/mame/misc/tickee.cpp @@ -57,7 +57,7 @@ class tickee_state : public driver_device void mouseatk(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; required_shared_ptr m_vram; @@ -78,7 +78,7 @@ class tickee_state : public driver_device private: // Memory maps - void mouseatk_map(address_map &map); + void mouseatk_map(address_map &map) ATTR_COLD; }; @@ -99,8 +99,8 @@ class tickee_gun_state : public tickee_state void maletmad(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_ioport_array<2> m_gun_axis_x; @@ -140,9 +140,9 @@ class tickee_gun_state : public tickee_state void sound_bank_w(uint8_t data); // Memory maps - void tickee_map(address_map &map); - void ghoshunt_map(address_map &map); - void rapidfir_map(address_map &map); + void tickee_map(address_map &map) ATTR_COLD; + void ghoshunt_map(address_map &map) ATTR_COLD; + void rapidfir_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/misc/tmspoker.cpp b/src/mame/misc/tmspoker.cpp index 929854b3341..74703b60ddc 100644 --- a/src/mame/misc/tmspoker.cpp +++ b/src/mame/misc/tmspoker.cpp @@ -236,9 +236,9 @@ class tmspoker_state : public driver_device void init_bus(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_shared_ptr m_videoram; @@ -257,8 +257,8 @@ class tmspoker_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); INTERRUPT_GEN_MEMBER(interrupt); - void cru_map(address_map &map); - void prg_map(address_map &map); + void cru_map(address_map &map) ATTR_COLD; + void prg_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/misc/toratora.cpp b/src/mame/misc/toratora.cpp index 63e84439707..dec861dd571 100644 --- a/src/mame/misc/toratora.cpp +++ b/src/mame/misc/toratora.cpp @@ -79,8 +79,8 @@ class toratora_state : public driver_device void toratora(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; @@ -109,7 +109,7 @@ class toratora_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); TIMER_CALLBACK_MEMBER(toratora_timer); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/misc/triton.cpp b/src/mame/misc/triton.cpp index fe40a2af89b..3ef13efcd8e 100644 --- a/src/mame/misc/triton.cpp +++ b/src/mame/misc/triton.cpp @@ -66,8 +66,8 @@ class triton_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(charset_changed); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; @@ -89,8 +89,8 @@ class triton_state : public driver_device required_ioport m_modifiers; required_ioport m_config; - void mem_map(address_map &map); - void io_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; IRQ_CALLBACK_MEMBER(inta_cb); diff --git a/src/mame/misc/triviaquiz.cpp b/src/mame/misc/triviaquiz.cpp index 7caf207be38..7b7eae44dcb 100644 --- a/src/mame/misc/triviaquiz.cpp +++ b/src/mame/misc/triviaquiz.cpp @@ -52,15 +52,15 @@ class triviaquiz_state : public driver_device void triviaquiz(machine_config &config); protected: - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; required_device m_bankdev; - void prg_map(address_map &map); - void romboard_map(address_map &map); - void io_map(address_map &map); + void prg_map(address_map &map) ATTR_COLD; + void romboard_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/misc/trivrus.cpp b/src/mame/misc/trivrus.cpp index e41a8d92948..dc408b5a807 100644 --- a/src/mame/misc/trivrus.cpp +++ b/src/mame/misc/trivrus.cpp @@ -50,8 +50,8 @@ class trivrus_state : public driver_device void trivrus(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: // memory pointers @@ -76,7 +76,7 @@ class trivrus_state : public driver_device void flashcmd_w(uint32_t data); void banksw_w(uint32_t data); - void trivrus_mem(address_map &map); + void trivrus_mem(address_map &map) ATTR_COLD; // pio uint32_t pioldat_r(); diff --git a/src/mame/misc/truco.cpp b/src/mame/misc/truco.cpp index 420978cb849..12f39aae585 100644 --- a/src/mame/misc/truco.cpp +++ b/src/mame/misc/truco.cpp @@ -236,8 +236,8 @@ class truco_state : public driver_device void truco(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; @@ -263,7 +263,7 @@ class truco_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); INTERRUPT_GEN_MEMBER(interrupt); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/misc/trucocl.cpp b/src/mame/misc/trucocl.cpp index 6a438d2a61a..ac4cc7c9d06 100644 --- a/src/mame/misc/trucocl.cpp +++ b/src/mame/misc/trucocl.cpp @@ -66,9 +66,9 @@ class trucocl_state : public driver_device void init_trucocl(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_shared_ptr m_videoram; @@ -86,8 +86,8 @@ class trucocl_state : public driver_device uint8_t m_irq_mask = 0; emu_timer *m_dac_irq_timer = nullptr; - void main_map(address_map &map); - void main_io(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void main_io(address_map &map) ATTR_COLD; void irq_enable_w(uint8_t data); void videoram_w(offs_t offset, uint8_t data); diff --git a/src/mame/misc/truesys.cpp b/src/mame/misc/truesys.cpp index d049b38108e..3bb9eccb8df 100644 --- a/src/mame/misc/truesys.cpp +++ b/src/mame/misc/truesys.cpp @@ -45,7 +45,7 @@ class truesys_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; }; uint32_t truesys_state::screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect) diff --git a/src/mame/misc/trvmadns.cpp b/src/mame/misc/trvmadns.cpp index 3898d555ef6..cbde533ef57 100644 --- a/src/mame/misc/trvmadns.cpp +++ b/src/mame/misc/trvmadns.cpp @@ -113,7 +113,7 @@ class trvmadns_state : public driver_device void trvmadns(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_maincpu; @@ -126,9 +126,9 @@ class trvmadns_state : public driver_device required_shared_ptr m_tileram; required_shared_ptr m_paletteram; - void cpu_map(address_map &map); - void romboard_map(address_map &map); - void io_map(address_map &map); + void cpu_map(address_map &map) ATTR_COLD; + void romboard_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; void unknown_w(uint8_t data); void lamps_w(uint8_t data); diff --git a/src/mame/misc/ttchamp.cpp b/src/mame/misc/ttchamp.cpp index db8268c0b13..07145316ed9 100644 --- a/src/mame/misc/ttchamp.cpp +++ b/src/mame/misc/ttchamp.cpp @@ -139,14 +139,14 @@ class ttchamp_state : public driver_device uint16_t mem_r(offs_t offset); void mem_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); INTERRUPT_GEN_MEMBER(irq); - void ttchamp_io(address_map &map); - void ttchamp_map(address_map &map); + void ttchamp_io(address_map &map) ATTR_COLD; + void ttchamp_map(address_map &map) ATTR_COLD; }; ALLOW_SAVE_TYPE(ttchamp_state::picmode); diff --git a/src/mame/misc/tugboat.cpp b/src/mame/misc/tugboat.cpp index c1842a97a9e..db7be526b08 100644 --- a/src/mame/misc/tugboat.cpp +++ b/src/mame/misc/tugboat.cpp @@ -89,8 +89,8 @@ class tugboat_state : public driver_device void noahsark(machine_config &config); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -120,7 +120,7 @@ class tugboat_state : public driver_device u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void draw_tilemap(bitmap_ind16 &bitmap, const rectangle &cliprect, int layer); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/misc/tvg01.cpp b/src/mame/misc/tvg01.cpp index 06509067896..58b228bddad 100644 --- a/src/mame/misc/tvg01.cpp +++ b/src/mame/misc/tvg01.cpp @@ -79,7 +79,7 @@ class tvg01_state : public driver_device void theboat(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: template void input_select_w(u8 data); @@ -87,8 +87,8 @@ class tvg01_state : public driver_device void bank_select_w(u8 data); u8 bank_r(offs_t offset); - void mem_map(address_map &map); - void io_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; required_ioport_array<6> m_player_inputs[2]; required_region_ptr m_banked_rom; diff --git a/src/mame/misc/umipoker.cpp b/src/mame/misc/umipoker.cpp index 172a4a45b07..2b264d9ca7a 100644 --- a/src/mame/misc/umipoker.cpp +++ b/src/mame/misc/umipoker.cpp @@ -55,11 +55,11 @@ class umipoker_state : public driver_device void umipoker(machine_config &config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; required_device m_maincpu; - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; private: required_device m_gfxdecode; @@ -81,8 +81,8 @@ class umipoker_state : public driver_device template TILE_GET_INFO_MEMBER(get_tile_info); uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void audio_io_map(address_map &map); - void audio_map(address_map &map); + void audio_io_map(address_map &map) ATTR_COLD; + void audio_map(address_map &map) ATTR_COLD; }; class saiyukip_state : public umipoker_state @@ -97,13 +97,13 @@ class saiyukip_state : public umipoker_state void saiyukip(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: void lamps_w(uint16_t data); void saiyu_counters_w(uint16_t data); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; output_finder<6> m_lamps; }; diff --git a/src/mame/misc/unkhorse.cpp b/src/mame/misc/unkhorse.cpp index d56402274cc..9458aa82ae1 100644 --- a/src/mame/misc/unkhorse.cpp +++ b/src/mame/misc/unkhorse.cpp @@ -48,7 +48,7 @@ class horse_state : public driver_device void horse(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_maincpu; @@ -66,8 +66,8 @@ class horse_state : public driver_device void output_w(u8 data); u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void horse_io_map(address_map &map); - void horse_map(address_map &map); + void horse_io_map(address_map &map) ATTR_COLD; + void horse_map(address_map &map) ATTR_COLD; }; void horse_state::machine_start() diff --git a/src/mame/misc/unkpoker.cpp b/src/mame/misc/unkpoker.cpp index 8d0332b44be..67ac0a1e946 100644 --- a/src/mame/misc/unkpoker.cpp +++ b/src/mame/misc/unkpoker.cpp @@ -56,8 +56,8 @@ class unkpoker_state : public driver_device private: uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void mem_map(address_map &map); - void io_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_shared_ptr m_videoram; diff --git a/src/mame/misc/unktop.cpp b/src/mame/misc/unktop.cpp index 15831eddc9a..65cd653dccd 100644 --- a/src/mame/misc/unktop.cpp +++ b/src/mame/misc/unktop.cpp @@ -40,7 +40,7 @@ class unktop_state : public driver_device private: required_device m_maincpu; - void program_map(address_map &map); + void program_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/misc/usbilliards.cpp b/src/mame/misc/usbilliards.cpp index 5471bbf27f0..f21a9bba03f 100644 --- a/src/mame/misc/usbilliards.cpp +++ b/src/mame/misc/usbilliards.cpp @@ -58,10 +58,10 @@ class usbilliards_state : public driver_device required_device m_video; // driver_device overrides - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; }; diff --git a/src/mame/misc/usgames.cpp b/src/mame/misc/usgames.cpp index 96346ad4d40..6e5a94caaa4 100644 --- a/src/mame/misc/usgames.cpp +++ b/src/mame/misc/usgames.cpp @@ -57,8 +57,8 @@ class usgames_state : public driver_device void usg185(machine_config &config); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -79,8 +79,8 @@ class usgames_state : public driver_device void palette(palette_device &palette) const; - void usg185_map(address_map &map); - void usgames_map(address_map &map); + void usg185_map(address_map &map) ATTR_COLD; + void usgames_map(address_map &map) ATTR_COLD; MC6845_UPDATE_ROW(update_row); }; diff --git a/src/mame/misc/v0bowl.cpp b/src/mame/misc/v0bowl.cpp index 3cea1ed2976..ba788bde95c 100644 --- a/src/mame/misc/v0bowl.cpp +++ b/src/mame/misc/v0bowl.cpp @@ -34,11 +34,11 @@ class v0bowl_state : public driver_device protected: // driver_device overrides - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: - void v0bowl_map(address_map &map); + void v0bowl_map(address_map &map) ATTR_COLD; // devices required_device m_maincpu; diff --git a/src/mame/misc/vamphalf.cpp b/src/mame/misc/vamphalf.cpp index 47a9fb4e432..796d5bff3e9 100644 --- a/src/mame/misc/vamphalf.cpp +++ b/src/mame/misc/vamphalf.cpp @@ -151,11 +151,11 @@ class vamphalf_state : public driver_device void banked_oki(int chip); - void common_map(address_map &map); - void common_32bit_map(address_map &map); + void common_map(address_map &map) ATTR_COLD; + void common_32bit_map(address_map &map) ATTR_COLD; protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; u32 m_flip_bit; u8 m_palshift; @@ -212,18 +212,18 @@ class vamphalf_state : public driver_device void draw_sprites(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void draw_sprites_aoh(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void handle_flipped_visible_area(screen_device &screen); - void aoh_io(address_map &map); - void aoh_map(address_map &map); - void banked_oki_map(address_map &map); - void boonggab_io(address_map &map); - void coolmini_io(address_map &map); - void jmpbreak_io(address_map &map); - void worldadv_io(address_map &map); - void mrdig_io(address_map &map); - void mrkicker_io(address_map &map); - void solitaire_io(address_map &map); - void suplup_io(address_map &map); - void vamphalf_io(address_map &map); + void aoh_io(address_map &map) ATTR_COLD; + void aoh_map(address_map &map) ATTR_COLD; + void banked_oki_map(address_map &map) ATTR_COLD; + void boonggab_io(address_map &map) ATTR_COLD; + void coolmini_io(address_map &map) ATTR_COLD; + void jmpbreak_io(address_map &map) ATTR_COLD; + void worldadv_io(address_map &map) ATTR_COLD; + void mrdig_io(address_map &map) ATTR_COLD; + void mrkicker_io(address_map &map) ATTR_COLD; + void solitaire_io(address_map &map) ATTR_COLD; + void suplup_io(address_map &map) ATTR_COLD; + void vamphalf_io(address_map &map) ATTR_COLD; }; class vamphalf_qdsp_state : public vamphalf_state @@ -251,10 +251,10 @@ class vamphalf_qdsp_state : public vamphalf_state void yorijori_eeprom_w(u32 data); - void misncrft_io(address_map &map); - void wyvernwg_io(address_map &map); - void yorijori_32bit_map(address_map &map); - void yorijori_io(address_map &map); + void misncrft_io(address_map &map) ATTR_COLD; + void wyvernwg_io(address_map &map) ATTR_COLD; + void yorijori_32bit_map(address_map &map) ATTR_COLD; + void yorijori_io(address_map &map) ATTR_COLD; }; class vamphalf_nvram_state : public vamphalf_state @@ -274,8 +274,8 @@ class vamphalf_nvram_state : public vamphalf_state private: - void finalgdr_io(address_map &map); - void mrkickera_io(address_map &map); + void finalgdr_io(address_map &map) ATTR_COLD; + void mrkickera_io(address_map &map) ATTR_COLD; required_device m_nvram; diff --git a/src/mame/misc/vampire.cpp b/src/mame/misc/vampire.cpp index a929c668d1e..ebce328a06c 100644 --- a/src/mame/misc/vampire.cpp +++ b/src/mame/misc/vampire.cpp @@ -254,7 +254,7 @@ class vampire_state : public driver_device void init_vampire(); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_maincpu; @@ -287,8 +287,8 @@ class vampire_state : public driver_device void blitter_w(offs_t offset, u8 data); void blit_trigger(offs_t offset); - void vampire_memory(address_map &map); - void vampire_audio(address_map &map); + void vampire_memory(address_map &map) ATTR_COLD; + void vampire_audio(address_map &map) ATTR_COLD; void pit_out_w0(int state); void pit_out_w1(int state); diff --git a/src/mame/misc/vcombat.cpp b/src/mame/misc/vcombat.cpp index 1472cdd798a..f6a2df10477 100644 --- a/src/mame/misc/vcombat.cpp +++ b/src/mame/misc/vcombat.cpp @@ -126,7 +126,7 @@ class vcombat_state : public driver_device void vcombat(machine_config &config); protected: - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; private: required_device m_tlc34076; @@ -166,11 +166,11 @@ class vcombat_state : public driver_device uint32_t screen_update_vcombat_main(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); uint32_t screen_update_vcombat_aux(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void single_i860_map(address_map &map); - void dual_i860_map(address_map &map); - void sound_map(address_map &map); - void vid_0_map(address_map &map); - void vid_1_map(address_map &map); + void single_i860_map(address_map &map) ATTR_COLD; + void dual_i860_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; + void vid_0_map(address_map &map) ATTR_COLD; + void vid_1_map(address_map &map) ATTR_COLD; uint16_t m_c_r(offs_t offset, uint64_t *v); void m_c_w(offs_t offset, uint16_t data, uint16_t mem_mask, uint64_t *v); diff --git a/src/mame/misc/video21.cpp b/src/mame/misc/video21.cpp index d4260b5e16d..d9a98d615c0 100644 --- a/src/mame/misc/video21.cpp +++ b/src/mame/misc/video21.cpp @@ -51,7 +51,7 @@ class video21_state : public driver_device int hopper_coinout_r(); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_maincpu; @@ -64,8 +64,8 @@ class video21_state : public driver_device int m_hopper_coin = 0; emu_timer *m_hopper_timer = nullptr; - void mem_map(address_map &map); - void io_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void sound_w(uint8_t data); diff --git a/src/mame/misc/videoart.cpp b/src/mame/misc/videoart.cpp index 2cfa7c45772..7178aedebb1 100644 --- a/src/mame/misc/videoart.cpp +++ b/src/mame/misc/videoart.cpp @@ -65,7 +65,7 @@ class videoart_state : public driver_device void videoart(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_maincpu; @@ -92,7 +92,7 @@ class videoart_state : public driver_device u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void palette(palette_device &palette) const; - void vram_map(address_map &map); + void vram_map(address_map &map) ATTR_COLD; void vram_w(offs_t offset, u8 data); u8 vram_r(offs_t offset); void msl_w(u8 data) { m_pixel_offset = data & 7; } diff --git a/src/mame/misc/videosaa.cpp b/src/mame/misc/videosaa.cpp index 9f60fc03c64..380fa799434 100644 --- a/src/mame/misc/videosaa.cpp +++ b/src/mame/misc/videosaa.cpp @@ -74,8 +74,8 @@ class videosaa_state : public driver_device void videosaa(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; diff --git a/src/mame/misc/vlc.cpp b/src/mame/misc/vlc.cpp index 7a8dd6abdd1..e87951ee66b 100644 --- a/src/mame/misc/vlc.cpp +++ b/src/mame/misc/vlc.cpp @@ -176,8 +176,8 @@ class nevada_state : public driver_device void init_nevada(); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device_array m_duart; @@ -216,7 +216,7 @@ class nevada_state : public driver_device TILE_GET_INFO_MEMBER(get_bg_tile_info); - void nevada_map(address_map &map); + void nevada_map(address_map &map) ATTR_COLD; }; /* diff --git a/src/mame/misc/vlc34010.cpp b/src/mame/misc/vlc34010.cpp index 037c98b00dd..359d7b6fa76 100644 --- a/src/mame/misc/vlc34010.cpp +++ b/src/mame/misc/vlc34010.cpp @@ -70,7 +70,7 @@ class vlc34010_state : public driver_device void base(machine_config &config); protected: - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; private: void switch_w(u8 data); @@ -87,8 +87,8 @@ class vlc34010_state : public driver_device required_device_array m_duart; memory_view m_boot_view; - void main_map(address_map &map); - void tms_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void tms_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/misc/vocalizer.cpp b/src/mame/misc/vocalizer.cpp index 9499ba2f8db..7b8d73a1455 100644 --- a/src/mame/misc/vocalizer.cpp +++ b/src/mame/misc/vocalizer.cpp @@ -63,7 +63,7 @@ class vocalizer_uart_device : public device_t, public device_serial_interface protected: virtual void device_start() override {} - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; virtual void tra_callback() override { m_tx_cb(transmit_register_get_data_bit()); } virtual void tra_complete() override { m_tx_irq_cb(1); } @@ -115,8 +115,8 @@ class vocalizer_state : public driver_device HD44780_PIXEL_UPDATE(lcd_pixel_update); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: enum @@ -127,8 +127,8 @@ class vocalizer_state : public driver_device FIRQ_TX1 = (1<<3) // UART 1 Tx (MIDI) }; - void maincpu_map(address_map &map); - void sound_map(address_map &map); + void maincpu_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; template u8 time_r(); diff --git a/src/mame/misc/voyager.cpp b/src/mame/misc/voyager.cpp index c4ee9bec216..387ee8ba5de 100644 --- a/src/mame/misc/voyager.cpp +++ b/src/mame/misc/voyager.cpp @@ -46,7 +46,7 @@ class voyager_state : public driver_device void voyager(machine_config &config); private: - void voyager_map(address_map &map); + void voyager_map(address_map &map) ATTR_COLD; required_device m_maincpu; }; diff --git a/src/mame/misc/vpoker.cpp b/src/mame/misc/vpoker.cpp index 360cc943135..45a26931e14 100644 --- a/src/mame/misc/vpoker.cpp +++ b/src/mame/misc/vpoker.cpp @@ -122,7 +122,7 @@ class vpoker_state : public driver_device void vpoker(machine_config &config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: std::unique_ptr m_videoram; @@ -135,7 +135,7 @@ class vpoker_state : public driver_device required_device m_gfxdecode; required_device m_palette; required_ioport m_in0; - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/misc/vroulet.cpp b/src/mame/misc/vroulet.cpp index 036798a74cb..5344c1b2f38 100644 --- a/src/mame/misc/vroulet.cpp +++ b/src/mame/misc/vroulet.cpp @@ -85,11 +85,11 @@ class vroulet_state : public driver_device TILE_GET_INFO_MEMBER(get_bg_tile_info); - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void vroulet_io_map(address_map &map); - void vroulet_map(address_map &map); + void vroulet_io_map(address_map &map) ATTR_COLD; + void vroulet_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/misc/wildpkr.cpp b/src/mame/misc/wildpkr.cpp index 978d3997f95..9d4fe0395c5 100644 --- a/src/mame/misc/wildpkr.cpp +++ b/src/mame/misc/wildpkr.cpp @@ -199,8 +199,8 @@ class wildpkr_state : public driver_device void init_wildpkr(); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -226,11 +226,11 @@ class wildpkr_state : public driver_device void clock_rate_w(u16 data); void unknown_trigger_w(u16 data); u16 tabpkr_irq_ack(offs_t offset); - void cpu_space_map(address_map &map); - void hd63484_map(address_map &map); - void ramdac_map(address_map &map); - void tabpkr_map(address_map &map); - void wildpkr_map(address_map &map); + void cpu_space_map(address_map &map) ATTR_COLD; + void hd63484_map(address_map &map) ATTR_COLD; + void ramdac_map(address_map &map) ATTR_COLD; + void tabpkr_map(address_map &map) ATTR_COLD; + void wildpkr_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/misc/wms.cpp b/src/mame/misc/wms.cpp index e4a661f45af..24f71c06342 100644 --- a/src/mame/misc/wms.cpp +++ b/src/mame/misc/wms.cpp @@ -108,10 +108,10 @@ class wms_state : public driver_device uint8_t test_r(); uint32_t screen_update_wms(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void adsp_data_map(address_map &map); - void adsp_program_map(address_map &map); - void wms_io(address_map &map); - void wms_map(address_map &map); + void adsp_data_map(address_map &map) ATTR_COLD; + void adsp_program_map(address_map &map) ATTR_COLD; + void wms_io(address_map &map) ATTR_COLD; + void wms_map(address_map &map) ATTR_COLD; // devices required_device m_maincpu; diff --git a/src/mame/misc/xtom3d.cpp b/src/mame/misc/xtom3d.cpp index d8dc7aa8608..d6c9560150d 100644 --- a/src/mame/misc/xtom3d.cpp +++ b/src/mame/misc/xtom3d.cpp @@ -177,8 +177,8 @@ class isa16_oksan_rom_disk : public device_t, public device_isa16_card_interface template void set_rom_tag(T &&tag) { m_flash_rom.set_tag(std::forward(tag)); } protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: required_memory_region m_flash_rom; @@ -309,11 +309,11 @@ class isa16_xtom3d_io_sound : public device_t, public device_isa16_card_interfac protected: isa16_xtom3d_io_sound(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 ioport_constructor device_input_ports() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: required_device m_ymz; required_device m_eeprom; @@ -323,7 +323,7 @@ class isa16_xtom3d_io_sound : public device_t, public device_isa16_card_interfac required_ioport m_in2; void remap(int space_id, offs_t start, offs_t end) override; - void io_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; }; class isa16_pumpitup_io_sound : public isa16_xtom3d_io_sound @@ -332,7 +332,7 @@ class isa16_pumpitup_io_sound : public isa16_xtom3d_io_sound isa16_pumpitup_io_sound(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; }; DEFINE_DEVICE_TYPE(ISA16_XTOM3D_IO_SOUND, isa16_xtom3d_io_sound, "isa16_xtom3d_io_sound", "ISA16 X-Tom 3d I/O & Sound board") @@ -539,14 +539,14 @@ class isa16_oksan_lpc : public device_t, public device_isa16_card_interface required_device m_kbdc; protected: - 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; private: void remap(int space_id, offs_t start, offs_t end) override; - void device_map(address_map &map); + void device_map(address_map &map) ATTR_COLD; }; DEFINE_DEVICE_TYPE(ISA16_OKSAN_LPC, isa16_oksan_lpc, "isa16_oksan_lpc", "ISA16 Oksan Virtual LPC") @@ -630,8 +630,8 @@ class xtom3d_state : public driver_device required_device m_pci_isa; required_device m_pci_ide; - void xtom3d_map(address_map &map); -// void xtom3d_io(address_map &map); + void xtom3d_map(address_map &map) ATTR_COLD; +// void xtom3d_io(address_map &map) ATTR_COLD; // void vblank_assert(int state); diff --git a/src/mame/misc/xtom3d_piu10.h b/src/mame/misc/xtom3d_piu10.h index af482831642..54ac2d7918a 100644 --- a/src/mame/misc/xtom3d_piu10.h +++ b/src/mame/misc/xtom3d_piu10.h @@ -20,10 +20,10 @@ class isa16_piu10 : public device_t, public device_isa16_card_interface template void add_route(T &&... args) { m_dac3350a.lookup()->add_route(std::forward(args)...); } protected: - 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 device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: void remap(int space_id, offs_t start, offs_t end) override; diff --git a/src/mame/misc/xyonix.cpp b/src/mame/misc/xyonix.cpp index 27defbfc7bc..552fe63fbc4 100644 --- a/src/mame/misc/xyonix.cpp +++ b/src/mame/misc/xyonix.cpp @@ -63,9 +63,9 @@ class xyonix_state : public driver_device void xyonix(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -99,8 +99,8 @@ class xyonix_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void handle_coins(int coin); - void main_map(address_map &map); - void port_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void port_map(address_map &map) ATTR_COLD; [[maybe_unused]] MC6845_UPDATE_ROW(crtc_update_row); }; diff --git a/src/mame/misc/yuvomz80.cpp b/src/mame/misc/yuvomz80.cpp index 99828628c60..368a0b53692 100644 --- a/src/mame/misc/yuvomz80.cpp +++ b/src/mame/misc/yuvomz80.cpp @@ -55,11 +55,11 @@ class yuvomz80_state : public driver_device void hexaprsz(machine_config &config); private: - void audio_mem_map(address_map &map); - void audio_io_map(address_map &map); - void hexaprsz_audio_io_map(address_map &map); - void io_map(address_map &map); - void mem_map(address_map &map); + void audio_mem_map(address_map &map) ATTR_COLD; + void audio_io_map(address_map &map) ATTR_COLD; + void hexaprsz_audio_io_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; }; diff --git a/src/mame/misc/z80ne.cpp b/src/mame/misc/z80ne.cpp index c354c96d7be..af4a46c1ec7 100644 --- a/src/mame/misc/z80ne.cpp +++ b/src/mame/misc/z80ne.cpp @@ -224,8 +224,8 @@ class z80ne_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(z80ne_reset); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; void base_reset(); void save_state_vars(); @@ -275,8 +275,8 @@ class z80ne_state : public driver_device cassette_image_device *cassette_device_image(); private: - void mem_map(address_map &map); - void io_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; }; class z80net_state : public z80ne_state @@ -298,7 +298,7 @@ class z80net_state : public z80ne_state DECLARE_INPUT_CHANGED_MEMBER(z80net_nmi); protected: - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; int lx387_shift_r(); int lx387_control_r(); @@ -314,10 +314,10 @@ class z80net_state : public z80ne_state void reset_lx387(); - void io_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; private: - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; }; class z80netb_state : public z80net_state @@ -331,10 +331,10 @@ class z80netb_state : public z80net_state void z80netb(machine_config &config); protected: - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; private: - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; }; class z80netf_state : public z80netb_state @@ -352,8 +352,8 @@ class z80netf_state : public z80netb_state void z80netf(machine_config &config); private: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; virtual void driver_start() override; struct wd17xx_state_t @@ -364,8 +364,8 @@ class z80netf_state : public z80netb_state uint8_t head = 0; /* current head */ }; - void mem_map(address_map &map); - void io_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; void lx390_motor_w(uint8_t data); uint8_t lx390_fdc_r(offs_t offset); diff --git a/src/mame/mit/tx0.cpp b/src/mame/mit/tx0.cpp index 946983a8264..19af64f3140 100644 --- a/src/mame/mit/tx0.cpp +++ b/src/mame/mit/tx0.cpp @@ -470,7 +470,7 @@ class tx0_magtape_image_device : public magtape_image_device protected: // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: required_device m_tx0; diff --git a/src/mame/mit/tx0.h b/src/mame/mit/tx0.h index 8eb5d376410..d81277ee268 100644 --- a/src/mame/mit/tx0.h +++ b/src/mame/mit/tx0.h @@ -170,9 +170,9 @@ class tx0_state : public driver_device bitmap_ind16 m_typewriter_bitmap; int m_pos = 0; int m_case_shift = 0; - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; void tx0_palette(palette_device &palette) const; uint32_t screen_update_tx0(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void screen_vblank_tx0(int state); @@ -213,8 +213,8 @@ class tx0_state : public driver_device void tx0_io_reset_callback(int state); void magtape_callback(); - void tx0_64kw_map(address_map &map); - void tx0_8kw_map(address_map &map); + void tx0_64kw_map(address_map &map) ATTR_COLD; + void tx0_8kw_map(address_map &map) ATTR_COLD; required_device m_gfxdecode; required_device m_palette; diff --git a/src/mame/mits/altair.cpp b/src/mame/mits/altair.cpp index 930700af90d..d50a1832f25 100644 --- a/src/mame/mits/altair.cpp +++ b/src/mame/mits/altair.cpp @@ -47,9 +47,9 @@ class altair_state : public driver_device private: DECLARE_QUICKLOAD_LOAD_MEMBER(quickload_cb); - virtual void machine_reset() override; - void io_map(address_map &map); - void mem_map(address_map &map); + virtual void machine_reset() override ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_shared_ptr m_ram; diff --git a/src/mame/mits/mits680b.cpp b/src/mame/mits/mits680b.cpp index eeb26d6ced0..12a4304edce 100644 --- a/src/mame/mits/mits680b.cpp +++ b/src/mame/mits/mits680b.cpp @@ -41,7 +41,7 @@ class mits680b_state : public driver_device private: uint8_t status_check_r(); - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; }; diff --git a/src/mame/mitsubishi/multi16.cpp b/src/mame/mitsubishi/multi16.cpp index edfe26632ad..15b7aafea96 100644 --- a/src/mame/mitsubishi/multi16.cpp +++ b/src/mame/mitsubishi/multi16.cpp @@ -63,8 +63,8 @@ class multi16_state : public driver_device void multi16(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; @@ -78,8 +78,8 @@ class multi16_state : public driver_device MC6845_UPDATE_ROW(crtc_update_row); - void multi16_io(address_map &map); - void multi16_map(address_map &map); + void multi16_io(address_map &map) ATTR_COLD; + void multi16_map(address_map &map) ATTR_COLD; }; MC6845_UPDATE_ROW(multi16_state::crtc_update_row) diff --git a/src/mame/mitsubishi/multi8.cpp b/src/mame/mitsubishi/multi8.cpp index b64932689d6..7e747f63b35 100644 --- a/src/mame/mitsubishi/multi8.cpp +++ b/src/mame/mitsubishi/multi8.cpp @@ -74,8 +74,8 @@ class multi8_state : public driver_device void kansas_w(int state); MC6845_UPDATE_ROW(crtc_update_row); - void io_map(address_map &map); - void mem_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; uint8_t *m_p_vram = nullptr; uint8_t *m_p_wram = nullptr; @@ -91,9 +91,9 @@ class multi8_state : public driver_device uint16_t m_knj_addr = 0; u8 m_cass_data[4]{}; bool m_cassbit = 0, m_cassold = 0; - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; required_device m_maincpu; required_region_ptr m_p_chargen; required_device m_ppi; diff --git a/src/mame/mitsubishi/trium.cpp b/src/mame/mitsubishi/trium.cpp index 54babef4f01..8865356ae2e 100644 --- a/src/mame/mitsubishi/trium.cpp +++ b/src/mame/mitsubishi/trium.cpp @@ -33,7 +33,7 @@ class trium_state : public driver_device private: u16 one_r(); - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; }; diff --git a/src/mame/morrow/microdec.cpp b/src/mame/morrow/microdec.cpp index 0b2e4bec550..57d40695ddc 100644 --- a/src/mame/morrow/microdec.cpp +++ b/src/mame/morrow/microdec.cpp @@ -55,8 +55,8 @@ class microdec_state : public driver_device void init_microdec(); protected: - virtual void machine_reset() override; - virtual void machine_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; private: uint8_t portf5_r(); @@ -66,8 +66,8 @@ class microdec_state : public driver_device void portf7_w(uint8_t data); void portf8_w(uint8_t data); - void microdec_io(address_map &map); - void microdec_mem(address_map &map); + void microdec_io(address_map &map) ATTR_COLD; + void microdec_mem(address_map &map) ATTR_COLD; uint8_t m_portf8 = 0U; bool m_fdc_rdy = 0; diff --git a/src/mame/morrow/mpz80.h b/src/mame/morrow/mpz80.h index 33d88d70cbf..624b4d89b05 100644 --- a/src/mame/morrow/mpz80.h +++ b/src/mame/morrow/mpz80.h @@ -40,8 +40,8 @@ class mpz80_state : public driver_device void mpz80(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; @@ -96,8 +96,8 @@ class mpz80_state : public driver_device int m_trap_stop; int m_trap_aux; void init_mpz80(); - void mpz80_io(address_map &map); - void mpz80_mem(address_map &map); + void mpz80_io(address_map &map) ATTR_COLD; + void mpz80_mem(address_map &map) ATTR_COLD; }; #endif // MAME_MORROW_MPZ80_H diff --git a/src/mame/morrow/tricep.cpp b/src/mame/morrow/tricep.cpp index 1913f2b14cf..0fc4410736d 100644 --- a/src/mame/morrow/tricep.cpp +++ b/src/mame/morrow/tricep.cpp @@ -38,10 +38,10 @@ class tricep_state : public driver_device uint8_t usart_r(offs_t offset); void usart_w(offs_t offset, uint8_t data); - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; - void machine_reset() override; - void machine_start() override; + void machine_reset() override ATTR_COLD; + void machine_start() override ATTR_COLD; required_device m_maincpu; required_device_array m_usart; diff --git a/src/mame/motorola/ampscarp.cpp b/src/mame/motorola/ampscarp.cpp index 3870f9786a1..a49666ca57a 100644 --- a/src/mame/motorola/ampscarp.cpp +++ b/src/mame/motorola/ampscarp.cpp @@ -28,7 +28,7 @@ class ampscarp_state : public driver_device void ampscarp(machine_config &config); private: - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; }; diff --git a/src/mame/motorola/exorciser.cpp b/src/mame/motorola/exorciser.cpp index 258e13cb453..bfa1c2d2327 100644 --- a/src/mame/motorola/exorciser.cpp +++ b/src/mame/motorola/exorciser.cpp @@ -178,12 +178,12 @@ class exorciser_state : public driver_device void abort_key_w(int state); protected: - virtual void machine_reset() override; - virtual void machine_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; private: - void dbg_map(address_map &map); - void mem_map(address_map &map); + void dbg_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; void irq_line_w(int state); u8 m_irq; diff --git a/src/mame/motorola/m6805evs.cpp b/src/mame/motorola/m6805evs.cpp index 5db6a895bed..b616376d7a9 100644 --- a/src/mame/motorola/m6805evs.cpp +++ b/src/mame/motorola/m6805evs.cpp @@ -77,10 +77,10 @@ class m6805evs_state : public driver_device void m6805evs(machine_config &config); private: - [[maybe_unused]] void mem_map(address_map &map); + [[maybe_unused]] void mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; }; diff --git a/src/mame/motorola/mekd1.cpp b/src/mame/motorola/mekd1.cpp index c3f0c135442..a64c0ebf23b 100644 --- a/src/mame/motorola/mekd1.cpp +++ b/src/mame/motorola/mekd1.cpp @@ -115,10 +115,10 @@ class mekd1_state : public driver_device void mekd1(machine_config &config); private: - virtual void machine_reset() override; - virtual void machine_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_pia0; diff --git a/src/mame/motorola/mekd2.cpp b/src/mame/motorola/mekd2.cpp index 96184c2baa7..2e4516d9d80 100644 --- a/src/mame/motorola/mekd2.cpp +++ b/src/mame/motorola/mekd2.cpp @@ -117,7 +117,7 @@ class mekd2_state : public driver_device TIMER_DEVICE_CALLBACK_MEMBER(kansas_r); TIMER_DEVICE_CALLBACK_MEMBER(trace_timer); - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; uint8_t m_cass_data[4]{}; uint8_t m_segment = 0U; @@ -125,7 +125,7 @@ class mekd2_state : public driver_device uint8_t m_keydata = 0U; bool m_cassbit = 0; bool m_cassold = 0; - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; required_device m_maincpu; required_device m_pia_s; required_device m_pia_u; diff --git a/src/mame/motorola/mekd3.cpp b/src/mame/motorola/mekd3.cpp index 703c41da5a0..4482c6beb36 100644 --- a/src/mame/motorola/mekd3.cpp +++ b/src/mame/motorola/mekd3.cpp @@ -204,9 +204,9 @@ class mekd3_state : public driver_device bool keypad_key_pressed(); - void mekd3_mem(address_map &map); - virtual void machine_start() override; - virtual void machine_reset() override; + void mekd3_mem(address_map &map) ATTR_COLD; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); diff --git a/src/mame/motorola/mekd4.cpp b/src/mame/motorola/mekd4.cpp index ff21c717114..4dd65f750e6 100644 --- a/src/mame/motorola/mekd4.cpp +++ b/src/mame/motorola/mekd4.cpp @@ -338,8 +338,8 @@ class mekd4_state : public driver_device int stop_pia_cb1_r(); void stop_pia_cb2_w(int state); - void mekd4_stop_mem(address_map &map); - void mekd4_mem(address_map &map); + void mekd4_stop_mem(address_map &map) ATTR_COLD; + void mekd4_mem(address_map &map) ATTR_COLD; address_space *m_banked_space; @@ -351,8 +351,8 @@ class mekd4_state : public driver_device uint8_t m_ram_page; // aka RAP0, RAP1, RAP2 uint8_t m_segment; uint8_t m_digit; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; required_device m_maincpu; required_device m_bankdev; required_device m_stop_pia; diff --git a/src/mame/motorola/mekd5.cpp b/src/mame/motorola/mekd5.cpp index 63f5b5e8014..b3f19921fef 100644 --- a/src/mame/motorola/mekd5.cpp +++ b/src/mame/motorola/mekd5.cpp @@ -116,8 +116,8 @@ class mekd5_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(keypad_changed); private: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; void trace_timer_clear_w(int state); @@ -135,7 +135,7 @@ class mekd5_state : public driver_device void write_f9_clock(int state); void write_f13_clock(int state); - void mekd5_mem(address_map &map); + void mekd5_mem(address_map &map) ATTR_COLD; bool keypad_key_pressed(); diff --git a/src/mame/motorola/mvme162.cpp b/src/mame/motorola/mvme162.cpp index 3374175f61f..69b59127a77 100644 --- a/src/mame/motorola/mvme162.cpp +++ b/src/mame/motorola/mvme162.cpp @@ -209,7 +209,7 @@ mvme162_state(const machine_config &mconfig, device_type type, const char *tag) void bootvect_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0); virtual void machine_start () override; virtual void machine_reset () override; - void mvme162_mem(address_map &map); + void mvme162_mem(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_sccterm; diff --git a/src/mame/motorola/uchroma68.cpp b/src/mame/motorola/uchroma68.cpp index 56e692c842f..726c751bb38 100644 --- a/src/mame/motorola/uchroma68.cpp +++ b/src/mame/motorola/uchroma68.cpp @@ -157,10 +157,10 @@ class uchroma68_state : public driver_device void uchroma68(machine_config &config); private: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; - void uchroma68_mem(address_map &map); + void uchroma68_mem(address_map &map) ATTR_COLD; TIMER_CALLBACK_MEMBER(kbd_strobe); diff --git a/src/mame/mr/dribling.cpp b/src/mame/mr/dribling.cpp index 96f1069b2d9..bd070476f64 100644 --- a/src/mame/mr/dribling.cpp +++ b/src/mame/mr/dribling.cpp @@ -89,8 +89,8 @@ class dribling_state : public driver_device void dribling(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: // devices @@ -138,8 +138,8 @@ class dribling_state : public driver_device void palette(palette_device &palette) const; uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); INTERRUPT_GEN_MEMBER(irq_gen); - void prg_map(address_map &map); - void io_map(address_map &map); + void prg_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/mr/sshot.cpp b/src/mame/mr/sshot.cpp index f2f9e59b7bf..ffb15e2575b 100644 --- a/src/mame/mr/sshot.cpp +++ b/src/mame/mr/sshot.cpp @@ -192,11 +192,11 @@ class supershot_state : public driver_device void supershot_output0_w(uint8_t data); void supershot_output1_w(uint8_t data); TILE_GET_INFO_MEMBER(get_supershot_text_tile_info); - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; uint32_t screen_update_supershot(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); required_device m_maincpu; required_device m_gfxdecode; - void supershot_map(address_map &map); + void supershot_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/mr/subhuntr.cpp b/src/mame/mr/subhuntr.cpp index 2a784eb392d..5c7b3f6cf53 100644 --- a/src/mame/mr/subhuntr.cpp +++ b/src/mame/mr/subhuntr.cpp @@ -58,8 +58,8 @@ class subhuntr_state : public driver_device void subhuntr(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: void txtram_w(offs_t offset, u8 data); @@ -77,7 +77,7 @@ class subhuntr_state : public driver_device void set_intreq(unsigned bit, u8 mask); void clr_intreq(unsigned bit); - void subhuntr_map(address_map &map); + void subhuntr_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_screen; diff --git a/src/mame/msx/big10.cpp b/src/mame/msx/big10.cpp index 1cad47601fc..cf7d794497e 100644 --- a/src/mame/msx/big10.cpp +++ b/src/mame/msx/big10.cpp @@ -87,8 +87,8 @@ class big10_state : public driver_device required_ioport_array<6> m_in; output_finder<> m_lamp; - void main_io(address_map &map); - void main_map(address_map &map); + void main_io(address_map &map) ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; uint8_t mux_r(); void mux_w(uint8_t data); diff --git a/src/mame/msx/forte2.cpp b/src/mame/msx/forte2.cpp index d1a85ede01b..a385095a9ea 100644 --- a/src/mame/msx/forte2.cpp +++ b/src/mame/msx/forte2.cpp @@ -63,7 +63,7 @@ class forte2_state : public driver_device void pesadelo(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_maincpu; @@ -74,8 +74,8 @@ class forte2_state : public driver_device u8 input_r(); void input_mask_w(u8 data); - void io_mem(address_map &map); - void program_mem(address_map &map); + void io_mem(address_map &map) ATTR_COLD; + void program_mem(address_map &map) ATTR_COLD; }; diff --git a/src/mame/msx/msx.cpp b/src/mame/msx/msx.cpp index 7b2113e55d9..dd8ea1e6c21 100644 --- a/src/mame/msx/msx.cpp +++ b/src/mame/msx/msx.cpp @@ -278,7 +278,7 @@ void msx_state::machine_start() void msx_state::driver_start() { m_maincpu->set_input_line_vector(0, 0xff); // Z80 - m_maincpu->z80_set_m1_cycles(5); + m_maincpu->z80_set_m1_cycles(4+1); // 1 WAIT CLK per M1 save_item(NAME(m_psg_b)); save_item(NAME(m_kanji_latch)); diff --git a/src/mame/msx/msx.h b/src/mame/msx/msx.h index 1f4f22cde00..ebb2dad88e6 100644 --- a/src/mame/msx/msx.h +++ b/src/mame/msx/msx.h @@ -156,8 +156,8 @@ class msx_state : public driver_device return add_cartridge_slot(config, prim, false, 0, xtal); } virtual void driver_start() override; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; void expanded_slot_w(u8 data); u8 expanded_slot_r(); @@ -173,9 +173,9 @@ class msx_state : public driver_device void psg_port_a_w(u8 data); void psg_port_b_w(u8 data); - void msx_base_io_map(address_map &map); - void msx1_io_map(address_map &map); - void memory_map(address_map &map); + void msx_base_io_map(address_map &map) ATTR_COLD; + void msx1_io_map(address_map &map) ATTR_COLD; + void memory_map(address_map &map) ATTR_COLD; void memory_expand_slot(int slot); memory_view::memory_view_entry *get_view(int page, int prim, int sec); @@ -314,7 +314,7 @@ class msx2_base_state : public msx_state protected: msx2_base_state(const machine_config &mconfig, device_type type, const char *tag, XTAL main_xtal, int cpu_xtal_divider); - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; void msx2_base(ay8910_type ay8910_type, machine_config &config, const internal_layout &layout); void msx2(ay8910_type ay8910_type, machine_config &config, const internal_layout &layout); @@ -328,9 +328,9 @@ class msx2_base_state : public msx_state void rtc_latch_w(u8 data); u8 switched_r(offs_t offset); void switched_w(offs_t offset, u8 data); - void msx2_base_io_map(address_map &map); - void msx2_io_map(address_map &map); - void msx2_v9958_io_map(address_map &map); + void msx2_base_io_map(address_map &map) ATTR_COLD; + void msx2_io_map(address_map &map) ATTR_COLD; + void msx2_v9958_io_map(address_map &map) ATTR_COLD; std::vector m_switched; @@ -350,14 +350,14 @@ class msx2p_base_state : public msx2_base_state void set_cold_boot_flags(u8 cold_boot_flags) { m_cold_boot_flags = cold_boot_flags; } - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; void msx2plus_base(ay8910_type ay8910_type, machine_config &config, const internal_layout &layout); void msx2plus_pal_base(ay8910_type ay8910_type, machine_config &config, const internal_layout &layout); void msx2plus(ay8910_type ay8910_type, machine_config &config, const internal_layout &layout); void msx2plus_pal(ay8910_type ay8910_type, machine_config &config, const internal_layout &layout); - void msx2plus_io_map(address_map &map); + void msx2plus_io_map(address_map &map) ATTR_COLD; void msx2plus_add_softlists(machine_config &config); void turbor_add_softlists(machine_config &config); void turbor(ay8910_type ay8910_type, machine_config &config, const internal_layout &layout); diff --git a/src/mame/msx/msx1_bruc100.cpp b/src/mame/msx/msx1_bruc100.cpp index 111efb0970e..d6762ed89f0 100644 --- a/src/mame/msx/msx1_bruc100.cpp +++ b/src/mame/msx/msx1_bruc100.cpp @@ -31,7 +31,7 @@ class bruc100_state : public msx_state private: required_device m_bruc100_firm; - void io_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; void port90_w(u8 data); }; diff --git a/src/mame/msx/msx1_v9938.cpp b/src/mame/msx/msx1_v9938.cpp index 5d2cd901f4b..b5e62279666 100644 --- a/src/mame/msx/msx1_v9938.cpp +++ b/src/mame/msx/msx1_v9938.cpp @@ -68,7 +68,7 @@ class msx1_v9938_state : public msx_state void msx1_v9938_pal(ay8910_type ay8910_type, machine_config &config, const internal_layout &layout); void svi738_base(machine_config &config, const internal_layout &layout); - void io_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; required_device m_v9938; }; diff --git a/src/mame/msx/msx_kanji12.h b/src/mame/msx/msx_kanji12.h index ea8c1ae6477..15184756b17 100644 --- a/src/mame/msx/msx_kanji12.h +++ b/src/mame/msx/msx_kanji12.h @@ -26,7 +26,7 @@ class msx_kanji12_device : public device_t, protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: static constexpr u8 MANUFACTURER_ID = 0xf7; diff --git a/src/mame/msx/msx_matsushita.h b/src/mame/msx/msx_matsushita.h index 0a898f7ba00..b10240b7bf5 100644 --- a/src/mame/msx/msx_matsushita.h +++ b/src/mame/msx/msx_matsushita.h @@ -25,8 +25,8 @@ class msx_matsushita_device : public device_t, protected: // device-level overrides - 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; // device_nvram_interface overrides virtual void nvram_default() override; diff --git a/src/mame/msx/msx_s1985.h b/src/mame/msx/msx_s1985.h index eb0fa0d417f..db3a36d7030 100644 --- a/src/mame/msx/msx_s1985.h +++ b/src/mame/msx/msx_s1985.h @@ -24,7 +24,7 @@ class msx_s1985_device : public device_t, protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_nvram_interface overrides virtual void nvram_default() override; diff --git a/src/mame/msx/msx_s1990.h b/src/mame/msx/msx_s1990.h index 3a8c7587d35..7e378e759ca 100644 --- a/src/mame/msx/msx_s1990.h +++ b/src/mame/msx/msx_s1990.h @@ -53,8 +53,8 @@ class msx_s1990_device : public device_t, DECLARE_INPUT_CHANGED_MEMBER(pause_callback); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; // device_memory_interface implementation virtual space_config_vector memory_space_config() const override; diff --git a/src/mame/msx/msx_systemflags.h b/src/mame/msx/msx_systemflags.h index c05da5e1892..ccebcf28cfc 100644 --- a/src/mame/msx/msx_systemflags.h +++ b/src/mame/msx/msx_systemflags.h @@ -34,7 +34,7 @@ class msx_systemflags_device : public device_t void write(u8 data); protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: u8 m_initial_value; diff --git a/src/mame/msx/msxtr.cpp b/src/mame/msx/msxtr.cpp index eb684081dbb..8d6b0502291 100644 --- a/src/mame/msx/msxtr.cpp +++ b/src/mame/msx/msxtr.cpp @@ -58,15 +58,15 @@ class msxtr_state : public msx2p_base_state void fsa1st(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; void turbor(ay8910_type ay8910_type, machine_config &config, const internal_layout &layout); void turbor_add_softlists(machine_config &config); - void s1990_mem_map(address_map &map); - void s1990_io_map(address_map &map); - void cpu_mem_map(address_map &map); - void cpu_io_map(address_map &map); + void s1990_mem_map(address_map &map) ATTR_COLD; + void s1990_io_map(address_map &map) ATTR_COLD; + void cpu_mem_map(address_map &map) ATTR_COLD; + void cpu_io_map(address_map &map) ATTR_COLD; virtual void setup_slot_spaces(msx_internal_slot_interface &device) override; virtual address_space& get_io_space() override; @@ -120,7 +120,7 @@ class fsa1gt_state : public msxtr_state bool m_rxrdy; bool m_timer2_ff; - void s1990_io_map(address_map &map); + void s1990_io_map(address_map &map) ATTR_COLD; void dtr_w(int state); void rts_w(int state); void rxrdy_w(int state); diff --git a/src/mame/msx/pengadvb.cpp b/src/mame/msx/pengadvb.cpp index 96128167d16..ec9c84e43e7 100644 --- a/src/mame/msx/pengadvb.cpp +++ b/src/mame/msx/pengadvb.cpp @@ -65,8 +65,8 @@ class pengadvb_state : public driver_device void init_pengadvb2(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: uint8_t mem_r(offs_t offset); @@ -80,9 +80,9 @@ class pengadvb_state : public driver_device void ppi_port_c_w(uint8_t data); void pengadvb_decrypt(const char* region); - void bank_mem(address_map &map); - void io_mem(address_map &map); - void program_mem(address_map &map); + void bank_mem(address_map &map) ATTR_COLD; + void io_mem(address_map &map) ATTR_COLD; + void program_mem(address_map &map) ATTR_COLD; required_device m_maincpu; required_device_array m_page; diff --git a/src/mame/msx/sangho.cpp b/src/mame/msx/sangho.cpp index 3df25be6ec6..65c18bf9b20 100644 --- a/src/mame/msx/sangho.cpp +++ b/src/mame/msx/sangho.cpp @@ -67,9 +67,9 @@ class sangho_state : public driver_device { } protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; - void sangho_map(address_map &map); + void sangho_map(address_map &map) ATTR_COLD; std::unique_ptr m_ram; required_device m_maincpu; @@ -93,11 +93,11 @@ class pzlestar_state : public sangho_state uint8_t sec_slot_r(); void sec_slot_w(uint8_t data); - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; void pzlestar_map_banks(); - void pzlestar_io_map(address_map &map); + void pzlestar_io_map(address_map &map) ATTR_COLD; private: uint8_t m_pzlestar_mem_bank = 0; @@ -115,11 +115,11 @@ class sexyboom_state : public sangho_state protected: void sexyboom_bank_w(offs_t offset, uint8_t data); - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; void sexyboom_map_bank(int bank); - void sexyboom_io_map(address_map &map); + void sexyboom_io_map(address_map &map) ATTR_COLD; private: uint8_t m_sexyboom_bank[8]; diff --git a/src/mame/msx/sfkick.cpp b/src/mame/msx/sfkick.cpp index 1903008163f..f6e4a3bc414 100644 --- a/src/mame/msx/sfkick.cpp +++ b/src/mame/msx/sfkick.cpp @@ -186,8 +186,8 @@ class sfkick_state : public driver_device void sfkick(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: uint8_t mem_r(offs_t offset); @@ -197,11 +197,11 @@ class sfkick_state : public driver_device void ppi_port_a_w(uint8_t data); void ppi_port_c_w(uint8_t data); void irqhandler(int state); - void sfkick_io_map(address_map &map); - void sfkick_map(address_map &map); - void sfkick_sound_io_map(address_map &map); - void sfkick_sound_map(address_map &map); - void bank_mem(address_map &map); + void sfkick_io_map(address_map &map) ATTR_COLD; + void sfkick_map(address_map &map) ATTR_COLD; + void sfkick_sound_io_map(address_map &map) ATTR_COLD; + void sfkick_sound_map(address_map &map) ATTR_COLD; + void bank_mem(address_map &map) ATTR_COLD; uint8_t m_primary_slot_reg = 0; uint8_t m_input_mux = 0; diff --git a/src/mame/multitech/mkit09.cpp b/src/mame/multitech/mkit09.cpp index 10170716154..bfc87fd8f1e 100644 --- a/src/mame/multitech/mkit09.cpp +++ b/src/mame/multitech/mkit09.cpp @@ -70,8 +70,8 @@ class mkit09_state : public driver_device u8 pb_r(); u8 m_digit = 0U; u8 m_seg = 0U; - void machine_reset() override; - void machine_start() override; + void machine_reset() override ATTR_COLD; + void machine_start() override ATTR_COLD; required_device m_pia; required_device m_cass; required_device m_maincpu; @@ -81,7 +81,7 @@ class mkit09_state : public driver_device private: void pa_w(u8 data); void pb_w(u8 data); - void mkit09_mem(address_map &map); + void mkit09_mem(address_map &map) ATTR_COLD; }; class mkit09a_state : public mkit09_state @@ -94,7 +94,7 @@ class mkit09a_state : public mkit09_state private: void pa_w(u8 data); void pb_w(u8 data); - void mkit09a_mem(address_map &map); + void mkit09a_mem(address_map &map) ATTR_COLD; }; diff --git a/src/mame/multitech/mpf1.cpp b/src/mame/multitech/mpf1.cpp index 681bec6a4eb..f8cc132d4a3 100644 --- a/src/mame/multitech/mpf1.cpp +++ b/src/mame/multitech/mpf1.cpp @@ -89,8 +89,8 @@ class mpf1_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER( trigger_special ); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; @@ -103,9 +103,9 @@ class mpf1_state : public driver_device required_ioport m_special; output_finder<2> m_leds; - void mpf1_io_map(address_map &map); - void mpf1_map(address_map &map); - void mpf1_step(address_map &map); + void mpf1_io_map(address_map &map) ATTR_COLD; + void mpf1_map(address_map &map) ATTR_COLD; + void mpf1_step(address_map &map) ATTR_COLD; uint8_t rom_r(offs_t offset); uint8_t step_r(offs_t offset); diff --git a/src/mame/multitech/mpf1_88.cpp b/src/mame/multitech/mpf1_88.cpp index e60e04e1c7c..c47dc9336e5 100644 --- a/src/mame/multitech/mpf1_88.cpp +++ b/src/mame/multitech/mpf1_88.cpp @@ -55,8 +55,8 @@ class mpf1_88_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER( trigger_res ); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; @@ -76,8 +76,8 @@ class mpf1_88_state : public driver_device void lcd_palette(palette_device &palette) const; - void io_map(address_map &map); - void mem_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; uint8_t ipd_port_r(); void opd_port1_w(uint8_t data); diff --git a/src/mame/multitech/mpf1p.cpp b/src/mame/multitech/mpf1p.cpp index 766338fc8db..4d55ce63731 100644 --- a/src/mame/multitech/mpf1p.cpp +++ b/src/mame/multitech/mpf1p.cpp @@ -50,7 +50,7 @@ class mpf1p_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER( trigger_res ); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_maincpu; @@ -61,9 +61,9 @@ class mpf1p_state : public driver_device required_ioport m_special; output_finder<2> m_leds; - void mpf1_step(address_map &map); - void mpf1p_io_map(address_map &map); - void mpf1p_map(address_map &map); + void mpf1_step(address_map &map) ATTR_COLD; + void mpf1p_io_map(address_map &map) ATTR_COLD; + void mpf1p_map(address_map &map) ATTR_COLD; uint8_t step_r(offs_t offset); diff --git a/src/mame/mupid/mdisk.cpp b/src/mame/mupid/mdisk.cpp index a447a2af52a..d2ee0322881 100644 --- a/src/mame/mupid/mdisk.cpp +++ b/src/mame/mupid/mdisk.cpp @@ -48,8 +48,8 @@ class mdisk_state : public driver_device void mdisk(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: TIMER_CALLBACK_MEMBER(rom_timer_callback); @@ -66,8 +66,8 @@ class mdisk_state : public driver_device required_device m_fdc; required_device_array m_floppy; - void mdisk_mem(address_map &map); - void mdisk_io(address_map &map); + void mdisk_mem(address_map &map) ATTR_COLD; + void mdisk_io(address_map &map) ATTR_COLD; emu_timer *m_rom_timer; diff --git a/src/mame/mupid/mupid2.cpp b/src/mame/mupid/mupid2.cpp index c27344c28ed..59d0aaa8d7b 100644 --- a/src/mame/mupid/mupid2.cpp +++ b/src/mame/mupid/mupid2.cpp @@ -46,7 +46,7 @@ class mupid2_state : public driver_device void c2a2(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: TIMER_DEVICE_CALLBACK_MEMBER(nmi); @@ -67,9 +67,9 @@ class mupid2_state : public driver_device required_memory_bank m_rambank; required_device m_palette; - void maincpu_mem(address_map &map); - void maincpu_io(address_map &map); - void kbdcpu_mem(address_map &map); + void maincpu_mem(address_map &map) ATTR_COLD; + void maincpu_io(address_map &map) ATTR_COLD; + void kbdcpu_mem(address_map &map) ATTR_COLD; std::unique_ptr[]> m_color_ram; bool m_nmi_enabled; diff --git a/src/mame/nakajima/nakajies.cpp b/src/mame/nakajima/nakajies.cpp index cab490eb365..918ae9ac1c6 100644 --- a/src/mame/nakajima/nakajies.cpp +++ b/src/mame/nakajima/nakajies.cpp @@ -325,8 +325,8 @@ class nakajies_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(trigger_irq); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); @@ -343,8 +343,8 @@ class nakajies_state : public driver_device void nakajies_palette(palette_device &palette) const; TIMER_DEVICE_CALLBACK_MEMBER(kb_timer); - void nakajies_io_map(address_map &map); - void nakajies_map(address_map &map); + void nakajies_io_map(address_map &map) ATTR_COLD; + void nakajies_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_rtc; diff --git a/src/mame/namco/20pacgal.h b/src/mame/namco/20pacgal.h index 60052a51088..3a144ce6b41 100644 --- a/src/mame/namco/20pacgal.h +++ b/src/mame/namco/20pacgal.h @@ -85,8 +85,8 @@ class _20pacgal_state : public driver_device void sprite_ram_w(offs_t offset, uint8_t data); void sprite_lookup_w(offs_t offset, uint8_t data); - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; uint32_t screen_update_20pacgal(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); void vblank_irq(int state); void starpal_init(palette_device &palette) const; @@ -99,8 +99,8 @@ class _20pacgal_state : public driver_device uint8_t code, uint8_t color, int flip_y, int flip_x); void common_save_state(); - void _20pacgal_io_map(address_map &map); - void _20pacgal_map(address_map &map); + void _20pacgal_io_map(address_map &map) ATTR_COLD; + void _20pacgal_map(address_map &map) ATTR_COLD; }; @@ -116,10 +116,10 @@ class _25pacman_state : public _20pacgal_state private: uint8_t _25pacman_io_87_r(); - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; - void _25pacman_io_map(address_map &map); - void _25pacman_map(address_map &map); + void _25pacman_io_map(address_map &map) ATTR_COLD; + void _25pacman_map(address_map &map) ATTR_COLD; }; #endif // MAME_NAMCO_20PACGAL_H diff --git a/src/mame/namco/30test.cpp b/src/mame/namco/30test.cpp index b94de2f9ee2..286319126ef 100644 --- a/src/mame/namco/30test.cpp +++ b/src/mame/namco/30test.cpp @@ -67,7 +67,7 @@ class namco_30test_state : public driver_device void namco_30test(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_maincpu; @@ -76,7 +76,7 @@ class namco_30test_state : public driver_device output_finder<72> m_digits; output_finder<8> m_lamps; - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; void output_digit(int i, u8 data); void led_w(offs_t offset, u8 data); diff --git a/src/mame/namco/baraduke.cpp b/src/mame/namco/baraduke.cpp index 5057e8a3232..e24782b5635 100644 --- a/src/mame/namco/baraduke.cpp +++ b/src/mame/namco/baraduke.cpp @@ -146,8 +146,8 @@ class baraduke_state : public driver_device void baraduke(machine_config &config); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: void inputport_select_w(uint8_t data); @@ -168,8 +168,8 @@ class baraduke_state : public driver_device void screen_vblank(int state); void draw_sprites(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void set_scroll(int layer); - void main_map(address_map &map); - void mcu_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void mcu_map(address_map &map) ATTR_COLD; required_shared_ptr m_spriteram; required_shared_ptr m_videoram; diff --git a/src/mame/namco/bosco.h b/src/mame/namco/bosco.h index 8293cf12e2e..ba1c3bd7bbe 100644 --- a/src/mame/namco/bosco.h +++ b/src/mame/namco/bosco.h @@ -21,7 +21,7 @@ class bosco_state : public galaga_state void bosco(machine_config &config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: required_shared_ptr m_bosco_radarattr; @@ -51,7 +51,7 @@ class bosco_state : public galaga_state void bosco_scrollx_w(uint8_t data); void bosco_scrolly_w(uint8_t data); void bosco_starclr_w(uint8_t data); - void bosco_map(address_map &map); + void bosco_map(address_map &map) ATTR_COLD; }; #endif // MAME_NAMCO_BOSCO_H diff --git a/src/mame/namco/c117.h b/src/mame/namco/c117.h index 30b40d5706e..dc58778b2f8 100644 --- a/src/mame/namco/c117.h +++ b/src/mame/namco/c117.h @@ -41,9 +41,9 @@ class namco_c117_device : protected: // device-level overrides - 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; // device_memory_interface overrides virtual space_config_vector memory_space_config() const override; diff --git a/src/mame/namco/cgang.cpp b/src/mame/namco/cgang.cpp index fc73e87c59e..9e133342311 100644 --- a/src/mame/namco/cgang.cpp +++ b/src/mame/namco/cgang.cpp @@ -117,8 +117,8 @@ class cgang_state : public driver_device void cgang(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: // devices/pointers @@ -165,8 +165,8 @@ class cgang_state : public driver_device TIMER_CALLBACK_MEMBER(output_sol) { m_en_sol[param >> 1] = param & 1; } // address maps - void main_map(address_map &map); - void sound_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; // I/O handlers void main_irq_w(int state); diff --git a/src/mame/namco/cswat.cpp b/src/mame/namco/cswat.cpp index d546b74982d..bda1fed7fc9 100644 --- a/src/mame/namco/cswat.cpp +++ b/src/mame/namco/cswat.cpp @@ -63,11 +63,11 @@ class cswat_state : public driver_device TILE_GET_INFO_MEMBER(get_tile_info); uint32_t screen_update_cswat(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - virtual void video_start() override; - virtual void machine_reset() override; - virtual void machine_start() override; + virtual void video_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; void cswat(machine_config &config); - void cswat_map(address_map &map); + void cswat_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/namco/dangbar.cpp b/src/mame/namco/dangbar.cpp index 99f5d90724c..518b503d4cd 100644 --- a/src/mame/namco/dangbar.cpp +++ b/src/mame/namco/dangbar.cpp @@ -48,13 +48,13 @@ class dangbar_state : public driver_device void dangbar(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_maincpu; - void main_map(address_map &map); - void audio_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void audio_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/namco/digdug.h b/src/mame/namco/digdug.h index 5cd40624ab6..575d4b64bb8 100644 --- a/src/mame/namco/digdug.h +++ b/src/mame/namco/digdug.h @@ -23,8 +23,8 @@ class digdug_state : public galaga_state void digdug(machine_config &config); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_earom; @@ -52,7 +52,7 @@ class digdug_state : public galaga_state void earom_write(offs_t offset, uint8_t data); void earom_control_w(uint8_t data); - void digdug_map(address_map &map); + void digdug_map(address_map &map) ATTR_COLD; }; #endif // MAME_NAMCO_DIGDUG_H diff --git a/src/mame/namco/dkmb.cpp b/src/mame/namco/dkmb.cpp index 55481b8a602..5f798753193 100644 --- a/src/mame/namco/dkmb.cpp +++ b/src/mame/namco/dkmb.cpp @@ -49,7 +49,7 @@ class dkmb_state : public driver_device u64 unk_20c0010_r(); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_maincpu; @@ -57,7 +57,7 @@ class dkmb_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/namco/gal3.cpp b/src/mame/namco/gal3.cpp index 295cf6cfa89..b946491b57b 100644 --- a/src/mame/namco/gal3.cpp +++ b/src/mame/namco/gal3.cpp @@ -160,8 +160,8 @@ class gal3_state : public driver_device void gal3(machine_config &config); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device_array m_c355spr; @@ -189,11 +189,11 @@ class gal3_state : public driver_device // using ind16 for now because namco_c355spr_device::zdrawgfxzoom does not support rgb32, will probably need to be improved for LD use uint32_t screen_update_left(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); uint32_t screen_update_right(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void cpu_mst_map(address_map &map); - void cpu_slv_map(address_map &map); - void psn_b1_cpu_map(address_map &map); - void rs_cpu_map(address_map &map); - void sound_cpu_map(address_map &map); + void cpu_mst_map(address_map &map) ATTR_COLD; + void cpu_slv_map(address_map &map) ATTR_COLD; + void psn_b1_cpu_map(address_map &map) ATTR_COLD; + void rs_cpu_map(address_map &map) ATTR_COLD; + void sound_cpu_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/namco/galaga.h b/src/mame/namco/galaga.h index 1478a0cc9ed..a2450fd3516 100644 --- a/src/mame/namco/galaga.h +++ b/src/mame/namco/galaga.h @@ -65,15 +65,15 @@ class galaga_state : public driver_device void galaga(machine_config &config); void gatsbee(machine_config &config); void galagab(machine_config &config); - void dzigzag_mem4(address_map &map); - void galaga_map(address_map &map); - void galaga_mem4(address_map &map); - void gatsbee_main_map(address_map &map); + void dzigzag_mem4(address_map &map) ATTR_COLD; + void galaga_map(address_map &map) ATTR_COLD; + void galaga_mem4(address_map &map) ATTR_COLD; + void gatsbee_main_map(address_map &map) ATTR_COLD; protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; /* memory pointers, devices */ optional_shared_ptr m_videoram; diff --git a/src/mame/namco/gaplus.h b/src/mame/namco/gaplus.h index fc261ac3a92..267019c0e27 100644 --- a/src/mame/namco/gaplus.h +++ b/src/mame/namco/gaplus.h @@ -68,16 +68,16 @@ class gaplus_base_state : public driver_device void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect ) const; void gaplus_base(machine_config &config); - void cpu1_map(address_map &map); - void cpu2_map(address_map &map); - void cpu3_map(address_map &map); + void cpu1_map(address_map &map) ATTR_COLD; + void cpu2_map(address_map &map) ATTR_COLD; + void cpu3_map(address_map &map) ATTR_COLD; void driver_init(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; required_device m_maincpu; required_device m_subcpu; @@ -145,7 +145,7 @@ class gaplus_state : public gaplus_base_state { void gaplus(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; void out_lamps0(uint8_t data); void out_lamps1(uint8_t data); diff --git a/src/mame/namco/geebee.h b/src/mame/namco/geebee.h index f927e10177f..7ec36b3bf69 100644 --- a/src/mame/namco/geebee.h +++ b/src/mame/namco/geebee.h @@ -14,7 +14,7 @@ class geebee_sound_device : public device_t, public device_sound_interface protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // sound stream update overrides virtual void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; diff --git a/src/mame/namco/kungfur.cpp b/src/mame/namco/kungfur.cpp index 408bf2143fe..a9d9670e559 100644 --- a/src/mame/namco/kungfur.cpp +++ b/src/mame/namco/kungfur.cpp @@ -90,8 +90,8 @@ class kungfur_state : public driver_device void kungfur(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: // devices/pointers @@ -103,7 +103,7 @@ class kungfur_state : public driver_device output_finder<8> m_lamps; // address maps - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; // I/O handlers INTERRUPT_GEN_MEMBER(interrupt); diff --git a/src/mame/namco/mappy.h b/src/mame/namco/mappy.h index b4c3525540a..4f14d1b640d 100644 --- a/src/mame/namco/mappy.h +++ b/src/mame/namco/mappy.h @@ -43,7 +43,7 @@ class mappy_state : public driver_device void init_digdug2(); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_shared_ptr m_videoram; @@ -99,13 +99,13 @@ class mappy_state : public driver_device void mappy_draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect, uint8_t *spriteram_base); void phozon_draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect, uint8_t *spriteram_base); - void mappy_cpu1_map(address_map &map); - void mappy_cpu2_map(address_map &map); - void phozon_cpu1_map(address_map &map); - void phozon_cpu2_map(address_map &map); - void phozon_cpu3_map(address_map &map); - void superpac_cpu1_map(address_map &map); - void superpac_cpu2_map(address_map &map); + void mappy_cpu1_map(address_map &map) ATTR_COLD; + void mappy_cpu2_map(address_map &map) ATTR_COLD; + void phozon_cpu1_map(address_map &map) ATTR_COLD; + void phozon_cpu2_map(address_map &map) ATTR_COLD; + void phozon_cpu3_map(address_map &map) ATTR_COLD; + void superpac_cpu1_map(address_map &map) ATTR_COLD; + void superpac_cpu2_map(address_map &map) ATTR_COLD; }; #endif // MAME_NAMCO_MAPPY_H diff --git a/src/mame/namco/namco06.h b/src/mame/namco/namco06.h index d3e50d7c598..ecb3dbcf81f 100644 --- a/src/mame/namco/namco06.h +++ b/src/mame/namco/namco06.h @@ -25,8 +25,8 @@ class namco_06xx_device : public device_t 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; private: void set_nmi(int state); diff --git a/src/mame/namco/namco50.h b/src/mame/namco/namco50.h index 00ec415f8cd..27ce81bd2c9 100644 --- a/src/mame/namco/namco50.h +++ b/src/mame/namco/namco50.h @@ -21,9 +21,9 @@ class namco_50xx_device : public device_t protected: // device-level overrides - virtual void device_start() 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 const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: // internal state diff --git a/src/mame/namco/namco51.h b/src/mame/namco/namco51.h index 34d2a8a1328..e8edbbc1cd0 100644 --- a/src/mame/namco/namco51.h +++ b/src/mame/namco/namco51.h @@ -26,9 +26,9 @@ class namco_51xx_device : public device_t protected: // device-level overrides - virtual void device_start() 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 const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: // internal state diff --git a/src/mame/namco/namco52.h b/src/mame/namco/namco52.h index 063af1eeaf3..98efad63dab 100644 --- a/src/mame/namco/namco52.h +++ b/src/mame/namco/namco52.h @@ -23,9 +23,9 @@ class namco_52xx_device : public device_t protected: // device-level overrides - virtual void device_start() 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 const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; TIMER_CALLBACK_MEMBER( write_sync ); TIMER_CALLBACK_MEMBER( external_clock_pulse ); diff --git a/src/mame/namco/namco53.h b/src/mame/namco/namco53.h index e7509760889..735614fe001 100644 --- a/src/mame/namco/namco53.h +++ b/src/mame/namco/namco53.h @@ -23,9 +23,9 @@ class namco_53xx_device : public device_t protected: // device-level overrides - virtual void device_start() 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 const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: // internal state diff --git a/src/mame/namco/namco54.h b/src/mame/namco/namco54.h index 5edfbf12e6e..48b291b2552 100644 --- a/src/mame/namco/namco54.h +++ b/src/mame/namco/namco54.h @@ -21,9 +21,9 @@ class namco_54xx_device : public device_t protected: // device-level overrides - virtual void device_start() 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 const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: // internal state diff --git a/src/mame/namco/namco62.h b/src/mame/namco/namco62.h index 54d58c4654c..e1bffe7be55 100644 --- a/src/mame/namco/namco62.h +++ b/src/mame/namco/namco62.h @@ -16,9 +16,9 @@ class namco_62xx_device : public device_t protected: // device-level overrides - virtual void device_start() 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 const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: // internal state diff --git a/src/mame/namco/namco65.h b/src/mame/namco/namco65.h index f5e79646ede..9526018e3f1 100644 --- a/src/mame/namco/namco65.h +++ b/src/mame/namco/namco65.h @@ -42,12 +42,12 @@ class namcoc65_device : public device_t void ext_reset(int state) { m_mcu->set_input_line(INPUT_LINE_RESET, state); } protected: - void mcu_map(address_map &map); + void mcu_map(address_map &map) ATTR_COLD; - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: required_device m_mcu; diff --git a/src/mame/namco/namco68.h b/src/mame/namco/namco68.h index e0338824859..8efdaa5f471 100644 --- a/src/mame/namco/namco68.h +++ b/src/mame/namco/namco68.h @@ -43,12 +43,12 @@ class namcoc68_device : public device_t void ext_reset(int state) { m_mcu->set_input_line(INPUT_LINE_RESET, state); } protected: - void c68_default_am(address_map &map); + void c68_default_am(address_map &map) ATTR_COLD; - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: required_device m_mcu; diff --git a/src/mame/namco/namco_c116.h b/src/mame/namco/namco_c116.h index cefb4f97665..b49bc77cfac 100644 --- a/src/mame/namco/namco_c116.h +++ b/src/mame/namco/namco_c116.h @@ -31,7 +31,7 @@ class namco_c116_device : protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_palette_interface overrides virtual uint32_t palette_entries() const noexcept override { return 0x2000; } diff --git a/src/mame/namco/namco_c123tmap.h b/src/mame/namco/namco_c123tmap.h index 7da23d3f264..578f8f4f7d5 100644 --- a/src/mame/namco/namco_c123tmap.h +++ b/src/mame/namco/namco_c123tmap.h @@ -44,7 +44,7 @@ class namco_c123tmap_device : public device_t, public device_gfx_interface protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: template TILE_GET_INFO_MEMBER(get_tile_info); diff --git a/src/mame/namco/namco_c139.h b/src/mame/namco/namco_c139.h index 47f191cf20a..1e3e6a19962 100644 --- a/src/mame/namco/namco_c139.h +++ b/src/mame/namco/namco_c139.h @@ -31,19 +31,19 @@ class namco_c139_device : public device_t, namco_c139_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // I/O operations - void regs_map(address_map &map); + void regs_map(address_map &map) ATTR_COLD; uint16_t status_r(); uint16_t ram_r(offs_t offset); void ram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); - void data_map(address_map &map); + void data_map(address_map &map) ATTR_COLD; protected: // device-level overrides // virtual void device_validity_check(validity_checker &valid) const; - 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 space_config_vector memory_space_config() const override; private: const address_space_config m_space_config; diff --git a/src/mame/namco/namco_c148.h b/src/mame/namco/namco_c148.h index 3b8d3cf29aa..8f38c9a080a 100644 --- a/src/mame/namco/namco_c148.h +++ b/src/mame/namco/namco_c148.h @@ -29,7 +29,7 @@ class namco_c148_device : public device_t } namco_c148_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - void map(address_map &map); + void map(address_map &map) ATTR_COLD; template void set_hostcpu(T &&tag, bool is_master) { @@ -87,8 +87,8 @@ class namco_c148_device : public device_t void cpu_irq_trigger(); // device-level overrides virtual void device_validity_check(validity_checker &valid) const override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: devcb_write8 m_out_ext1_cb; diff --git a/src/mame/namco/namco_c169roz.h b/src/mame/namco/namco_c169roz.h index 185bb57afab..82d77757cab 100644 --- a/src/mame/namco/namco_c169roz.h +++ b/src/mame/namco/namco_c169roz.h @@ -32,7 +32,7 @@ class namco_c169roz_device : public device_t, public device_gfx_interface protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: diff --git a/src/mame/namco/namco_c45road.h b/src/mame/namco/namco_c45road.h index 03187de35fe..59626213145 100644 --- a/src/mame/namco/namco_c45road.h +++ b/src/mame/namco/namco_c45road.h @@ -21,7 +21,7 @@ class namco_c45_road_device : public device_t, public device_gfx_interface, publ // construction/destruction namco_c45_road_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 0); - void map(address_map &map); + void map(address_map &map) ATTR_COLD; // read/write handlers uint16_t read(offs_t offset); @@ -35,7 +35,7 @@ class namco_c45_road_device : public device_t, public device_gfx_interface, publ protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual space_config_vector memory_space_config() const override; private: diff --git a/src/mame/namco/namco_c67.h b/src/mame/namco/namco_c67.h index ef288379978..d89789fa784 100644 --- a/src/mame/namco/namco_c67.h +++ b/src/mame/namco/namco_c67.h @@ -14,7 +14,7 @@ class namco_c67_device : public tms32025_device namco_c67_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; }; diff --git a/src/mame/namco/namco_settings.h b/src/mame/namco/namco_settings.h index 496e2efe2f3..3a74d2ad4df 100644 --- a/src/mame/namco/namco_settings.h +++ b/src/mame/namco/namco_settings.h @@ -17,8 +17,8 @@ class namco_settings_device : public device_t { void data_w(int state); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: int ce = 0, clk = 0, data = 0; diff --git a/src/mame/namco/namcofl.cpp b/src/mame/namco/namcofl.cpp index eb0e4890cda..01776473ae3 100644 --- a/src/mame/namco/namcofl.cpp +++ b/src/mame/namco/namcofl.cpp @@ -211,8 +211,8 @@ class namcofl_state : public driver_device void namcofl(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; @@ -262,8 +262,8 @@ class namcofl_state : public driver_device int objcode2tile(int code); void tilemap_cb(uint16_t code, int *tile, int *mask); void roz_cb(uint16_t code, int *tile, int *mask, int which); - void namcoc75_am(address_map &map); - void main_map(address_map &map); + void namcoc75_am(address_map &map) ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/namco/namcoio.h b/src/mame/namco/namcoio.h index a2126ef6fcc..d117ba4c53d 100644 --- a/src/mame/namco/namcoio.h +++ b/src/mame/namco/namcoio.h @@ -26,8 +26,8 @@ class namcoio_device : public device_t namcoio_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, int device_type); // 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; enum { TYPE_NAMCO56XX, @@ -60,7 +60,7 @@ class namco56xx_device : public namcoio_device public: namco56xx_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; virtual void customio_run() override; }; @@ -70,7 +70,7 @@ class namco58xx_device : public namcoio_device public: namco58xx_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; virtual void customio_run() override; }; @@ -80,7 +80,7 @@ class namco59xx_device : public namcoio_device public: namco59xx_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; virtual void customio_run() override; }; diff --git a/src/mame/namco/namcoio_gearbox.h b/src/mame/namco/namcoio_gearbox.h index dc88ca88e63..fcbb8832f6a 100644 --- a/src/mame/namco/namcoio_gearbox.h +++ b/src/mame/namco/namcoio_gearbox.h @@ -27,13 +27,13 @@ class namcoio_gearbox_device : public device_t ioport_value in_r(); int clutch_r(); uint8_t m_gearbox_state = 0; - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; protected: // device-level overrides // virtual void device_validity_check(validity_checker &valid) const; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; }; diff --git a/src/mame/namco/namcomcu.h b/src/mame/namco/namcomcu.h index 907da50e3f8..9b7cb081b62 100644 --- a/src/mame/namco/namcomcu.h +++ b/src/mame/namco/namcomcu.h @@ -13,7 +13,7 @@ class namco_c69_device : public m37702m2_device public: namco_c69_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; }; @@ -22,7 +22,7 @@ class namco_c70_device : public m37702m2_device public: namco_c70_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; }; @@ -31,7 +31,7 @@ class namco_c74_device : public m37702m2_device public: namco_c74_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; }; @@ -40,7 +40,7 @@ class namco_c75_device : public m37702m2_device public: namco_c75_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; }; @@ -49,7 +49,7 @@ class namco_c76_device : public m37702m2_device public: namco_c76_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; }; diff --git a/src/mame/namco/namcona1.h b/src/mame/namco/namcona1.h index 2a976cbb33d..e8d492171e2 100644 --- a/src/mame/namco/namcona1.h +++ b/src/mame/namco/namcona1.h @@ -58,12 +58,12 @@ class namcona1_state : public driver_device void init_emeraldj(); void init_swcourtb(); - void namcona1_mcu_map(address_map &map); + void namcona1_mcu_map(address_map &map) ATTR_COLD; protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; virtual void device_post_load() override; TIMER_CALLBACK_MEMBER(set_scanline_interrupt); @@ -95,8 +95,8 @@ class namcona1_state : public driver_device u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void namcona1_main_map(address_map &map); - void namcona1_c219_map(address_map &map); + void namcona1_main_map(address_map &map) ATTR_COLD; + void namcona1_c219_map(address_map &map) ATTR_COLD; enum { @@ -194,7 +194,7 @@ class namcona2_state : public namcona1_state u16 m_zelos_ctrl = 0; void zelos_ctrl_w(u16 data); - void zelos_main_map(address_map &map); + void zelos_main_map(address_map &map) ATTR_COLD; }; class xday2_namcona2_state : public namcona2_state @@ -217,7 +217,7 @@ class xday2_namcona2_state : public namcona2_state u8 printer_r(); void printer_w(u8 data); - void xday2_main_map(address_map &map); + void xday2_main_map(address_map &map) ATTR_COLD; }; #endif // MAME_NAMCO_NAMCONA1_H diff --git a/src/mame/namco/namconb1.h b/src/mame/namco/namconb1.h index 98b1b23075f..4785739624f 100644 --- a/src/mame/namco/namconb1.h +++ b/src/mame/namco/namconb1.h @@ -67,9 +67,9 @@ class namconb1_state : public driver_device void init_gslgr94u(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: int m_gametype = 0; @@ -155,9 +155,9 @@ class namconb1_state : public driver_device void NB2TilemapCB_outfxies(u16 code, int *tile, int *mask); void NB2RozCB_machbrkr(u16 code, int *tile, int *mask, int which); void NB2RozCB_outfxies(u16 code, int *tile, int *mask, int which); - void namcoc75_am(address_map &map); - void namconb1_am(address_map &map); - void namconb2_am(address_map &map); + void namcoc75_am(address_map &map) ATTR_COLD; + void namconb1_am(address_map &map) ATTR_COLD; + void namconb2_am(address_map &map) ATTR_COLD; }; #endif // MAME_NAMCO_NAMCONB1_H diff --git a/src/mame/namco/namcond1.cpp b/src/mame/namco/namcond1.cpp index 1b9a92c51a9..c60ad3300c4 100644 --- a/src/mame/namco/namcond1.cpp +++ b/src/mame/namco/namcond1.cpp @@ -231,8 +231,8 @@ class namcond1_state : public driver_device void namcond1(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; @@ -252,9 +252,9 @@ class namcond1_state : public driver_device uint16_t printer_r(); INTERRUPT_GEN_MEMBER(mcu_interrupt); - void abcheck_main_map(address_map &map); - void main_map(address_map &map); - void h8rwmap(address_map &map); + void abcheck_main_map(address_map &map) ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; + void h8rwmap(address_map &map) ATTR_COLD; }; diff --git a/src/mame/namco/namcops2.cpp b/src/mame/namco/namcops2.cpp index 6def294c6e7..72d98615325 100644 --- a/src/mame/namco/namcops2.cpp +++ b/src/mame/namco/namcops2.cpp @@ -906,14 +906,14 @@ class namcops2_state : public driver_device void system256(machine_config &config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void ps2_map(address_map &map); + void ps2_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/namco/namcos1.h b/src/mame/namco/namcos1.h index aefcc5fa53b..9b7009da5f5 100644 --- a/src/mame/namco/namcos1.h +++ b/src/mame/namco/namcos1.h @@ -67,9 +67,9 @@ class namcos1_state : public driver_device void init_pistoldm(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; void driver_init(); private: @@ -149,11 +149,11 @@ class namcos1_state : public driver_device u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void screen_vblank(int state); - void main_map(address_map &map); - void mcu_map(address_map &map); - void sound_map(address_map &map); - void sub_map(address_map &map); - void virtual_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void mcu_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; + void sub_map(address_map &map) ATTR_COLD; + void virtual_map(address_map &map) ATTR_COLD; }; #endif // MAME_NAMCO_NAMCOS1_H diff --git a/src/mame/namco/namcos10.cpp b/src/mame/namco/namcos10.cpp index ac934de1cf5..5b715adba0b 100644 --- a/src/mame/namco/namcos10.cpp +++ b/src/mame/namco/namcos10.cpp @@ -702,23 +702,23 @@ class namcos10_state : public driver_device protected: using unscramble_func = uint16_t (*)(uint16_t); - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void device_resolve_objects() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void device_resolve_objects() override ATTR_COLD; void namcos10_base(machine_config &config); void namcos10_exio(machine_config &config); void namcos10_mgexio(machine_config &config); void namcos10_exfinalio(machine_config &config); - void namcos10_map_inner(address_map &map); - void namcos10_map(address_map &map); + void namcos10_map_inner(address_map &map) ATTR_COLD; + void namcos10_map(address_map &map) ATTR_COLD; - void namcos10_map_exio_inner(address_map &map); - void namcos10_map_exio(address_map &map); + void namcos10_map_exio_inner(address_map &map) ATTR_COLD; + void namcos10_map_exio(address_map &map) ATTR_COLD; - void namcos10_map_mgexio_inner(address_map &map); - void namcos10_map_mgexio(address_map &map); + void namcos10_map_mgexio_inner(address_map &map) ATTR_COLD; + void namcos10_map_mgexio(address_map &map) ATTR_COLD; required_device m_maincpu; optional_device m_decrypter; @@ -806,14 +806,14 @@ class namcos10_memm_state : public namcos10_state void init_mrdrilr2(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: void namcos10_memm(machine_config &config); - void namcos10_memm_map_inner(address_map &map); - void namcos10_memm_map(address_map &map); + void namcos10_memm_map_inner(address_map &map) ATTR_COLD; + void namcos10_memm_map(address_map &map) ATTR_COLD; void memm_driver_init(); @@ -873,13 +873,13 @@ class namcos10_memn_state : public namcos10_state void memn_driver_init(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; void namcos10_memn_base(machine_config &config); void namcos10_memn(machine_config &config); - void namcos10_memn_map(address_map &map); + void namcos10_memn_map(address_map &map) ATTR_COLD; void namcos10_nand_k9f2808u0b(machine_config &config, int nand_count); void namcos10_nand_k9f5608u0d(machine_config &config, int nand_count); @@ -893,7 +893,7 @@ class namcos10_memn_state : public namcos10_state uint8_t m_nand_rnb_state[16]; private: - void namcos10_memn_map_inner(address_map &map); + void namcos10_memn_map_inner(address_map &map) ATTR_COLD; void nand_copy(uint8_t *nand_base, uint16_t *dst, uint32_t address, int len); @@ -932,15 +932,15 @@ class namcos10_memp3_state : public namcos10_memn_state void ns10_squizchs(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: void namcos10_memp3_base(machine_config &config); - void namcos10_memp3_map_inner(address_map &map); - void namcos10_memp3_map(address_map &map); - void mcu_map(address_map &map); + void namcos10_memp3_map_inner(address_map &map) ATTR_COLD; + void namcos10_memp3_map(address_map &map) ATTR_COLD; + void mcu_map(address_map &map) ATTR_COLD; template uint8_t port_read(offs_t offset); template void port_write(offs_t offset, uint8_t data); @@ -1005,12 +1005,12 @@ class namcos10_memio_state : public namcos10_memn_state void ns10_ippo2(machine_config &config); protected: - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; private: void namcos10_memio_base(machine_config &config); - void namcos10_memio_map(address_map &map); - void namcos10_memio_map_inner(address_map &map); + void namcos10_memio_map(address_map &map) ATTR_COLD; + void namcos10_memio_map_inner(address_map &map) ATTR_COLD; void namcos10_nand_tc58256aft(machine_config &config, int nand_count); diff --git a/src/mame/namco/namcos10_exio.h b/src/mame/namco/namcos10_exio.h index f43547cbfd8..4bd11ca4277 100644 --- a/src/mame/namco/namcos10_exio.h +++ b/src/mame/namco/namcos10_exio.h @@ -30,7 +30,7 @@ class namcos10_exio_base_device : public device_t protected: namcos10_exio_base_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, uint8_t ident_code); - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; const uint8_t m_ident_code; }; @@ -54,12 +54,12 @@ class namcos10_exio_device : public namcos10_exio_base_device virtual void ram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0) override; protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void device_reset_after_children() override; - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: - void map(address_map &map); + void map(address_map &map) ATTR_COLD; template uint8_t port_read(offs_t offset); template void port_write(offs_t offset, uint8_t data); @@ -109,12 +109,12 @@ class namcos10_mgexio_device : public namcos10_exio_base_device virtual void ram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0) override; protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void device_reset_after_children() override; - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: - void map(address_map &map); + void map(address_map &map) ATTR_COLD; template uint8_t port_r(); template void port_w(uint8_t data); diff --git a/src/mame/namco/namcos11.cpp b/src/mame/namco/namcos11.cpp index 2a827980116..be8856df52d 100644 --- a/src/mame/namco/namcos11.cpp +++ b/src/mame/namco/namcos11.cpp @@ -503,11 +503,11 @@ class namcos11_state : public driver_device TIMER_DEVICE_CALLBACK_MEMBER(mcu_irq0_cb); TIMER_DEVICE_CALLBACK_MEMBER(mcu_irq2_cb); - void c76_map(address_map &map); - void namcos11_map(address_map &map); - void ptblank2ua_map(address_map &map); - void rom8_64_map(address_map &map); - void rom8_map(address_map &map); + void c76_map(address_map &map) ATTR_COLD; + void namcos11_map(address_map &map) ATTR_COLD; + void ptblank2ua_map(address_map &map) ATTR_COLD; + void rom8_64_map(address_map &map) ATTR_COLD; + void rom8_map(address_map &map) ATTR_COLD; virtual void driver_start() override; diff --git a/src/mame/namco/namcos12.cpp b/src/mame/namco/namcos12.cpp index 17d61c7de27..7a75bc45103 100644 --- a/src/mame/namco/namcos12.cpp +++ b/src/mame/namco/namcos12.cpp @@ -1157,17 +1157,17 @@ class namcos12_state : public driver_device void init_alt_bank1(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - - void jvsmap(address_map &map); - void namcos12_map(address_map &map); - void plarailjvsmap(address_map &map); - void ptblank2_map(address_map &map); - void s12h8rwjvsmap(address_map &map); - void s12h8rwmap(address_map &map); - void tdjvsmap(address_map &map); - void tektagt_map(address_map &map); + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + + void jvsmap(address_map &map) ATTR_COLD; + void namcos12_map(address_map &map) ATTR_COLD; + void plarailjvsmap(address_map &map) ATTR_COLD; + void ptblank2_map(address_map &map) ATTR_COLD; + void s12h8rwjvsmap(address_map &map) ATTR_COLD; + void s12h8rwmap(address_map &map) ATTR_COLD; + void tdjvsmap(address_map &map) ATTR_COLD; + void tektagt_map(address_map &map) ATTR_COLD; uint16_t s12_mcu_gun_h_r(); uint16_t s12_mcu_gun_v_r(); @@ -1245,7 +1245,7 @@ class namcos12_boothack_state : public namcos12_state void kartduel(machine_config &config); private: - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; }; @@ -1265,7 +1265,7 @@ class namcos12_cdxa_state : public namcos12_boothack_state void init_truckk(); private: - void cdxa_psx_map(address_map &map); + void cdxa_psx_map(address_map &map) ATTR_COLD; required_device m_cdxa_pcb; }; diff --git a/src/mame/namco/namcos12_cdxa.h b/src/mame/namco/namcos12_cdxa.h index ef999cd477e..3c471501272 100644 --- a/src/mame/namco/namcos12_cdxa.h +++ b/src/mame/namco/namcos12_cdxa.h @@ -27,7 +27,7 @@ class namcos12_cdxa_device : public device_t auto psx_int10_callback() { return m_psx_int10_cb.bind(); } - void psx_map(address_map &map); + void psx_map(address_map &map) ATTR_COLD; uint32_t sh2_ram_r(offs_t offset); void sh2_ram_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0); @@ -50,12 +50,12 @@ class namcos12_cdxa_device : public device_t void cdrom_cs0_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); protected: - 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; private: - void sh7014_map(address_map &map); + void sh7014_map(address_map &map) ATTR_COLD; void audio_dac_w(int state); diff --git a/src/mame/namco/namcos1b.cpp b/src/mame/namco/namcos1b.cpp index eba968e0346..d2fd8815d00 100644 --- a/src/mame/namco/namcos1b.cpp +++ b/src/mame/namco/namcos1b.cpp @@ -37,10 +37,10 @@ class namcos1b_state : public driver_device private: uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void main_prg_map(address_map &map); - void sub_prg_map(address_map &map); + void main_prg_map(address_map &map) ATTR_COLD; + void sub_prg_map(address_map &map) ATTR_COLD; - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; }; uint32_t namcos1b_state::screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect) diff --git a/src/mame/namco/namcos2.h b/src/mame/namco/namcos2.h index b60a2f0bd78..28ba2e8b8c3 100644 --- a/src/mame/namco/namcos2.h +++ b/src/mame/namco/namcos2.h @@ -128,9 +128,9 @@ class namcos2_state : public driver_device void init_rthun2(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; enum { @@ -249,31 +249,31 @@ enum void RozCB_luckywld(uint16_t code, int *tile, int *mask, int which); void RozCB_metlhawk(uint16_t code, int *tile, int *mask, int which); - void c140_default_am(address_map &map); - void common_default_am(address_map &map); - void common_finallap_am(address_map &map); - void common_suzuka8h_am(address_map &map); - void common_suzuka8h_roz_am(address_map &map); - void common_luckywld_roz_am(address_map &map); - void common_metlhawk_am(address_map &map); - void common_sgunner_am(address_map &map); - void master_common_am(address_map &map); - void master_default_am(address_map &map); - void master_finallap_am(address_map &map); - void master_suzuka8h_am(address_map &map); - void master_luckywld_am(address_map &map); - void master_metlhawk_am(address_map &map); - void master_sgunner_am(address_map &map); - - void namcos2_68k_default_cpu_board_am(address_map &map); - void slave_common_am(address_map &map); - void slave_default_am(address_map &map); - void slave_finallap_am(address_map &map); - void slave_suzuka8h_am(address_map &map); - void slave_luckywld_am(address_map &map); - void slave_metlhawk_am(address_map &map); - void slave_sgunner_am(address_map &map); - void sound_default_am(address_map &map); + void c140_default_am(address_map &map) ATTR_COLD; + void common_default_am(address_map &map) ATTR_COLD; + void common_finallap_am(address_map &map) ATTR_COLD; + void common_suzuka8h_am(address_map &map) ATTR_COLD; + void common_suzuka8h_roz_am(address_map &map) ATTR_COLD; + void common_luckywld_roz_am(address_map &map) ATTR_COLD; + void common_metlhawk_am(address_map &map) ATTR_COLD; + void common_sgunner_am(address_map &map) ATTR_COLD; + void master_common_am(address_map &map) ATTR_COLD; + void master_default_am(address_map &map) ATTR_COLD; + void master_finallap_am(address_map &map) ATTR_COLD; + void master_suzuka8h_am(address_map &map) ATTR_COLD; + void master_luckywld_am(address_map &map) ATTR_COLD; + void master_metlhawk_am(address_map &map) ATTR_COLD; + void master_sgunner_am(address_map &map) ATTR_COLD; + + void namcos2_68k_default_cpu_board_am(address_map &map) ATTR_COLD; + void slave_common_am(address_map &map) ATTR_COLD; + void slave_default_am(address_map &map) ATTR_COLD; + void slave_finallap_am(address_map &map) ATTR_COLD; + void slave_suzuka8h_am(address_map &map) ATTR_COLD; + void slave_luckywld_am(address_map &map) ATTR_COLD; + void slave_metlhawk_am(address_map &map) ATTR_COLD; + void slave_sgunner_am(address_map &map) ATTR_COLD; + void sound_default_am(address_map &map) ATTR_COLD; }; class gollygho_state : public namcos2_state @@ -287,7 +287,7 @@ class gollygho_state : public namcos2_state { } protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; virtual void dpram_word_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0) override; diff --git a/src/mame/namco/namcos21.cpp b/src/mame/namco/namcos21.cpp index fca06602484..f54550b1d28 100644 --- a/src/mame/namco/namcos21.cpp +++ b/src/mame/namco/namcos21.cpp @@ -329,9 +329,9 @@ class namcos21_state : public driver_device void winrun(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -392,12 +392,12 @@ class namcos21_state : public driver_device void configure_c65_namcos21(machine_config &config); - void winrun_master_map(address_map &map); - void winrun_slave_map(address_map &map); - void winrun_gpu_map(address_map &map); + void winrun_master_map(address_map &map) ATTR_COLD; + void winrun_slave_map(address_map &map) ATTR_COLD; + void winrun_gpu_map(address_map &map) ATTR_COLD; - void sound_map(address_map &map); - void c140_map(address_map &map); + void sound_map(address_map &map) ATTR_COLD; + void c140_map(address_map &map) ATTR_COLD; }; void namcos21_state::video_start() diff --git a/src/mame/namco/namcos21_3d.h b/src/mame/namco/namcos21_3d.h index c37aec5532c..0920c40a366 100644 --- a/src/mame/namco/namcos21_3d.h +++ b/src/mame/namco/namcos21_3d.h @@ -32,8 +32,8 @@ class namcos21_3d_device : public device_t 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; private: struct n21_vertex diff --git a/src/mame/namco/namcos21_c67.cpp b/src/mame/namco/namcos21_c67.cpp index b0dc280156b..2bf73329107 100644 --- a/src/mame/namco/namcos21_c67.cpp +++ b/src/mame/namco/namcos21_c67.cpp @@ -309,8 +309,8 @@ class namcos21_c67_state : public driver_device void init_solvalou(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; @@ -359,12 +359,12 @@ class namcos21_c67_state : public driver_device void configure_c68_namcos21(machine_config &config); - void common_map(address_map &map); - void master_map(address_map &map); - void slave_map(address_map &map); + void common_map(address_map &map) ATTR_COLD; + void master_map(address_map &map) ATTR_COLD; + void slave_map(address_map &map) ATTR_COLD; - void sound_map(address_map &map); - void c140_map(address_map &map); + void sound_map(address_map &map) ATTR_COLD; + void c140_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/namco/namcos21_de.cpp b/src/mame/namco/namcos21_de.cpp index 1df18f70736..e9f4febfb0e 100644 --- a/src/mame/namco/namcos21_de.cpp +++ b/src/mame/namco/namcos21_de.cpp @@ -63,9 +63,9 @@ class namco_de_pcbstack_device : public device_t void configure_c148_standard(machine_config &config); protected: - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: @@ -116,12 +116,12 @@ class namco_de_pcbstack_device : public device_t void configure_c68_namcos21(machine_config &config); - void driveyes_common_map(address_map &map); - void driveyes_master_map(address_map &map); - void driveyes_slave_map(address_map &map); + void driveyes_common_map(address_map &map) ATTR_COLD; + void driveyes_master_map(address_map &map) ATTR_COLD; + void driveyes_slave_map(address_map &map) ATTR_COLD; - void sound_map(address_map &map); - void c140_map(address_map &map); + void sound_map(address_map &map) ATTR_COLD; + void c140_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/namco/namcos21_dsp.h b/src/mame/namco/namcos21_dsp.h index 1040f89e54e..5d6dfebfa1d 100644 --- a/src/mame/namco/namcos21_dsp.h +++ b/src/mame/namco/namcos21_dsp.h @@ -32,14 +32,14 @@ class namcos21_dsp_device : public device_t 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 device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; - void winrun_dsp_data(address_map &map); - void winrun_dsp_io(address_map &map); - void winrun_dsp_program(address_map &map); + void winrun_dsp_data(address_map &map) ATTR_COLD; + void winrun_dsp_io(address_map &map) ATTR_COLD; + void winrun_dsp_program(address_map &map) ATTR_COLD; private: required_device m_dsp; diff --git a/src/mame/namco/namcos21_dsp_c67.h b/src/mame/namco/namcos21_dsp_c67.h index bbacaa4f337..95ac4c5ebb6 100644 --- a/src/mame/namco/namcos21_dsp_c67.h +++ b/src/mame/namco/namcos21_dsp_c67.h @@ -49,10 +49,10 @@ class namcos21_dsp_c67_device : public device_t 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 device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: static constexpr unsigned DSP_BUF_MAX = 4096*12; @@ -143,13 +143,13 @@ class namcos21_dsp_c67_device : public device_t void slave_XF_output_w(uint16_t data); uint16_t slave_portf_r(); - void master_dsp_data(address_map &map); - void master_dsp_io(address_map &map); - void master_dsp_program(address_map &map); + void master_dsp_data(address_map &map) ATTR_COLD; + void master_dsp_io(address_map &map) ATTR_COLD; + void master_dsp_program(address_map &map) ATTR_COLD; - void slave_dsp_data(address_map &map); - void slave_dsp_io(address_map &map); - void slave_dsp_program(address_map &map); + void slave_dsp_data(address_map &map) ATTR_COLD; + void slave_dsp_io(address_map &map) ATTR_COLD; + void slave_dsp_program(address_map &map) ATTR_COLD; }; DECLARE_DEVICE_TYPE(NAMCOS21_DSP_C67, namcos21_dsp_c67_device) diff --git a/src/mame/namco/namcos22.h b/src/mame/namco/namcos22.h index ae74bf7beab..873df77a2ea 100644 --- a/src/mame/namco/namcos22.h +++ b/src/mame/namco/namcos22.h @@ -272,9 +272,9 @@ class namcos22_state : public driver_device required_device m_gfxdecode; protected: - virtual void machine_reset() override; - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; virtual void device_post_load() override; void namcos22_textram_w(offs_t offset, u32 data, u32 mem_mask = ~0); @@ -403,15 +403,15 @@ class namcos22_state : public driver_device INTERRUPT_GEN_MEMBER(dsp_vblank_irq); TIMER_DEVICE_CALLBACK_MEMBER(dsp_serial_pulse); - void iomcu_s22_program(address_map &map); - void master_dsp_data(address_map &map); - void master_dsp_io(address_map &map); - void master_dsp_program(address_map &map); - void mcu_s22_program(address_map &map); - void namcos22_am(address_map &map); - void slave_dsp_data(address_map &map); - void slave_dsp_io(address_map &map); - void slave_dsp_program(address_map &map); + void iomcu_s22_program(address_map &map) ATTR_COLD; + void master_dsp_data(address_map &map) ATTR_COLD; + void master_dsp_io(address_map &map) ATTR_COLD; + void master_dsp_program(address_map &map) ATTR_COLD; + void mcu_s22_program(address_map &map) ATTR_COLD; + void namcos22_am(address_map &map) ATTR_COLD; + void slave_dsp_data(address_map &map) ATTR_COLD; + void slave_dsp_io(address_map &map) ATTR_COLD; + void slave_dsp_program(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_master; @@ -534,7 +534,7 @@ class namcos22s_state : public namcos22_state void init_airco22(); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; virtual void init_tables() override; virtual void draw_text_layer(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect) override; @@ -571,8 +571,8 @@ class namcos22s_state : public namcos22_state INTERRUPT_GEN_MEMBER(namcos22s_interrupt); TIMER_DEVICE_CALLBACK_MEMBER(mcu_irq); - void mcu_program(address_map &map); - void namcos22s_am(address_map &map); + void mcu_program(address_map &map) ATTR_COLD; + void namcos22s_am(address_map &map) ATTR_COLD; int m_spotram_enable = 0; int m_spotram_address = 0; @@ -602,7 +602,7 @@ class alpine_state : public namcos22s_state protected: required_device m_motor_timer; - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; void alpine_mcu_port4_w(u8 data); TIMER_DEVICE_CALLBACK_MEMBER(alpine_steplock_callback); @@ -625,7 +625,7 @@ class alpines_state : public alpine_state required_memory_bank m_rombank; void rombank_w(u32 data); - void alpines_am(address_map &map); + void alpines_am(address_map &map) ATTR_COLD; }; class timecris_state : public namcos22s_state @@ -640,7 +640,7 @@ class timecris_state : public namcos22s_state private: u16 gun_r(offs_t offset); - void timecris_am(address_map &map); + void timecris_am(address_map &map) ATTR_COLD; }; class propcycl_state : public namcos22s_state @@ -675,7 +675,7 @@ class adillor_state : public namcos22s_state void init_adillor(); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device_array m_trackball_interrupt; diff --git a/src/mame/namco/namcos23.cpp b/src/mame/namco/namcos23.cpp index 927d82f8a74..2ebb6c9ab9a 100644 --- a/src/mame/namco/namcos23.cpp +++ b/src/mame/namco/namcos23.cpp @@ -1650,9 +1650,9 @@ class namcos23_state : public driver_device uint32_t m_tile_mask; protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: void update_main_interrupts(uint32_t cause); @@ -1743,14 +1743,14 @@ class namcos23_state : public driver_device void render_one_model(const namcos23_render_entry *re); void render_run(bitmap_rgb32 &bitmap); - void gmen_mips_map(address_map &map); - void gmen_sh2_map(address_map &map); - void gorgon_map(address_map &map); - void s23_map(address_map &map); - void s23h8rwmap(address_map &map); - void s23iobrdmap(address_map &map); - void motoxgo_exio_map(address_map &map); - void timecrs2iobrdmap(address_map &map); + void gmen_mips_map(address_map &map) ATTR_COLD; + void gmen_sh2_map(address_map &map) ATTR_COLD; + void gorgon_map(address_map &map) ATTR_COLD; + void s23_map(address_map &map) ATTR_COLD; + void s23h8rwmap(address_map &map) ATTR_COLD; + void s23iobrdmap(address_map &map) ATTR_COLD; + void motoxgo_exio_map(address_map &map) ATTR_COLD; + void timecrs2iobrdmap(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_subcpu; diff --git a/src/mame/namco/namcos2_roz.h b/src/mame/namco/namcos2_roz.h index 1168b05eb4b..2e6ebcf1760 100644 --- a/src/mame/namco/namcos2_roz.h +++ b/src/mame/namco/namcos2_roz.h @@ -25,7 +25,7 @@ class namcos2_roz_device : public device_t, public device_gfx_interface protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: // general diff --git a/src/mame/namco/namcos2_sprite.h b/src/mame/namco/namcos2_sprite.h index b02f5d961ae..e56333f69df 100644 --- a/src/mame/namco/namcos2_sprite.h +++ b/src/mame/namco/namcos2_sprite.h @@ -24,7 +24,7 @@ class namcos2_sprite_device : public device_t namcos2_sprite_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // general void zdrawgfxzoom(screen_device &screen, bitmap_ind16 &dest_bmp, const rectangle &clip, gfx_element *gfx, u32 code, u32 color, bool flipx, bool flipy, int sx, int sy, int scalex, int scaley, int zpos); diff --git a/src/mame/namco/namcos86.h b/src/mame/namco/namcos86.h index 1bc38b89f4a..72b90a3fc2e 100644 --- a/src/mame/namco/namcos86.h +++ b/src/mame/namco/namcos86.h @@ -41,8 +41,8 @@ class namcos86_state : public driver_device void init_namco86(); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: void bankswitch1_w(uint8_t data); @@ -79,18 +79,18 @@ class namcos86_state : public driver_device void draw_sprites(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void scroll_w(offs_t offset, int data, int layer); - void common_mcu_map(address_map &map); - void cpu1_map(address_map &map); - void genpeitd_cpu2_map(address_map &map); - void genpeitd_mcu_map(address_map &map); - void hopmappy_cpu2_map(address_map &map); - void hopmappy_mcu_map(address_map &map); - void roishtar_cpu2_map(address_map &map); - void roishtar_mcu_map(address_map &map); - void rthunder_cpu2_map(address_map &map); - void rthunder_mcu_map(address_map &map); - void wndrmomo_cpu2_map(address_map &map); - void wndrmomo_mcu_map(address_map &map); + void common_mcu_map(address_map &map) ATTR_COLD; + void cpu1_map(address_map &map) ATTR_COLD; + void genpeitd_cpu2_map(address_map &map) ATTR_COLD; + void genpeitd_mcu_map(address_map &map) ATTR_COLD; + void hopmappy_cpu2_map(address_map &map) ATTR_COLD; + void hopmappy_mcu_map(address_map &map) ATTR_COLD; + void roishtar_cpu2_map(address_map &map) ATTR_COLD; + void roishtar_mcu_map(address_map &map) ATTR_COLD; + void rthunder_cpu2_map(address_map &map) ATTR_COLD; + void rthunder_mcu_map(address_map &map) ATTR_COLD; + void wndrmomo_cpu2_map(address_map &map) ATTR_COLD; + void wndrmomo_mcu_map(address_map &map) ATTR_COLD; required_device m_cpu1; required_device m_cpu2; diff --git a/src/mame/namco/ns10crypt.h b/src/mame/namco/ns10crypt.h index 1d48cc056c7..54ce77a5c75 100644 --- a/src/mame/namco/ns10crypt.h +++ b/src/mame/namco/ns10crypt.h @@ -24,8 +24,8 @@ class ns10_decrypter_device : public device_t protected: ns10_decrypter_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 void init(int iv) = 0; @@ -42,8 +42,8 @@ class ns10_type1_decrypter_device : public ns10_decrypter_device protected: ns10_type1_decrypter_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; private: static const int INIT_SBOX[16]; @@ -80,8 +80,8 @@ class ns10_type2_decrypter_device : public ns10_decrypter_device } protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: static const int INIT_SBOX[16]; @@ -123,8 +123,8 @@ class ns10_type2_decrypter_nonlinear_device : public ns10_decrypter_device } protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: static const int INIT_SBOX[16]; diff --git a/src/mame/namco/ns11prot.h b/src/mame/namco/ns11prot.h index 93e5dfe2b0f..6751b8f50d1 100644 --- a/src/mame/namco/ns11prot.h +++ b/src/mame/namco/ns11prot.h @@ -15,8 +15,8 @@ class ns11_keycus_device : public device_t protected: ns11_keycus_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; uint16_t m_p1 = 0; uint16_t m_p2 = 0; diff --git a/src/mame/namco/pacland.cpp b/src/mame/namco/pacland.cpp index 129d403eca9..2003ad8bbe9 100644 --- a/src/mame/namco/pacland.cpp +++ b/src/mame/namco/pacland.cpp @@ -227,8 +227,8 @@ class pacland_state : public driver_device void pacland(machine_config &config); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -279,8 +279,8 @@ class pacland_state : public driver_device void draw_sprites(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, int flip, int whichmask); void draw_fg(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, int priority); - void main_map(address_map &map); - void mcu_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void mcu_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/namco/polepos.h b/src/mame/namco/polepos.h index 71cf12ed402..23b45e808ec 100644 --- a/src/mame/namco/polepos.h +++ b/src/mame/namco/polepos.h @@ -51,9 +51,9 @@ class polepos_state : public driver_device void polepos(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -124,14 +124,14 @@ class polepos_state : public driver_device void draw_road(bitmap_ind16 &bitmap); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect ); void zoom_sprite(bitmap_ind16 &bitmap,int big,uint32_t code,uint32_t color,int flipx,int sx,int sy,int sizex,int sizey); - void sound_z80_bootleg_iomap(address_map &map); - void sound_z80_bootleg_map(address_map &map); - void topracern_io(address_map &map); - void z8002_map(address_map &map); - void z8002_map_1(address_map &map); - void z8002_map_2(address_map &map); - void z80_io(address_map &map); - void z80_map(address_map &map); + void sound_z80_bootleg_iomap(address_map &map) ATTR_COLD; + void sound_z80_bootleg_map(address_map &map) ATTR_COLD; + void topracern_io(address_map &map) ATTR_COLD; + void z8002_map(address_map &map) ATTR_COLD; + void z8002_map_1(address_map &map) ATTR_COLD; + void z8002_map_2(address_map &map) ATTR_COLD; + void z80_io(address_map &map) ATTR_COLD; + void z80_map(address_map &map) ATTR_COLD; }; #endif // MAME_NAMCO_POLEPOS_H diff --git a/src/mame/namco/polepos_a.h b/src/mame/namco/polepos_a.h index 558b418ceaa..069a1d796c5 100644 --- a/src/mame/namco/polepos_a.h +++ b/src/mame/namco/polepos_a.h @@ -15,8 +15,8 @@ class polepos_sound_device : public device_t, 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; // sound stream update overrides virtual void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; diff --git a/src/mame/namco/rallyx.h b/src/mame/namco/rallyx.h index 31bd9ab971a..aa93260a84e 100644 --- a/src/mame/namco/rallyx.h +++ b/src/mame/namco/rallyx.h @@ -37,7 +37,7 @@ class rallyx_state : public driver_device void tactcian(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: // memory pointers @@ -123,9 +123,9 @@ class rallyx_state : public driver_device void jungler_draw_bullets( bitmap_ind16 &bitmap, const rectangle &cliprect, bool transpen ); void locomotn_draw_bullets( bitmap_ind16 &bitmap, const rectangle &cliprect, bool transpen ); - void io_map(address_map &map); - void jungler_map(address_map &map); - void rallyx_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void jungler_map(address_map &map) ATTR_COLD; + void rallyx_map(address_map &map) ATTR_COLD; }; #endif // MAME_NAMCO_RALLYX_H diff --git a/src/mame/namco/rbowlorama.cpp b/src/mame/namco/rbowlorama.cpp index a63e3eb8075..aa5d7bf2ce7 100644 --- a/src/mame/namco/rbowlorama.cpp +++ b/src/mame/namco/rbowlorama.cpp @@ -52,7 +52,7 @@ class rbowlorama_state : public driver_device private: required_device m_maincpu; - void rbowlorama_map(address_map &map); + void rbowlorama_map(address_map &map) ATTR_COLD; }; void rbowlorama_state::rbowlorama_map(address_map &map) diff --git a/src/mame/namco/shootaway2.cpp b/src/mame/namco/shootaway2.cpp index 6295d9e8460..bf8f4a073d3 100644 --- a/src/mame/namco/shootaway2.cpp +++ b/src/mame/namco/shootaway2.cpp @@ -41,9 +41,9 @@ class m74_state : public driver_device void m74(machine_config &config); protected: - virtual void machine_reset() override; - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -51,8 +51,8 @@ class m74_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void c68_map(address_map &map); - void sub_map(address_map &map); + void c68_map(address_map &map) ATTR_COLD; + void sub_map(address_map &map) ATTR_COLD; }; void m74_state::machine_reset() diff --git a/src/mame/namco/skykid.cpp b/src/mame/namco/skykid.cpp index 5916a86ccd8..5b12db5ee44 100644 --- a/src/mame/namco/skykid.cpp +++ b/src/mame/namco/skykid.cpp @@ -56,8 +56,8 @@ class skykid_state : public driver_device void init_skykid(); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_shared_ptr m_videoram; @@ -106,8 +106,8 @@ class skykid_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void vblank_irq(int state); void draw_sprites(bitmap_ind16 &bitmap,const rectangle &cliprect); - void mcu_map(address_map &map); - void main_map(address_map &map); + void mcu_map(address_map &map) ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/namco/starfield_05xx.h b/src/mame/namco/starfield_05xx.h index 5a8db088fb9..ec11cf9e997 100644 --- a/src/mame/namco/starfield_05xx.h +++ b/src/mame/namco/starfield_05xx.h @@ -16,8 +16,8 @@ class starfield_05xx_device : public device_t void draw_starfield(bitmap_ind16 &bitmap, const rectangle &cliprect, int flip); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: uint16_t get_next_lfsr_state(uint16_t lfsr); diff --git a/src/mame/namco/sweetland.cpp b/src/mame/namco/sweetland.cpp index 40b84c9208c..70cfb432d03 100644 --- a/src/mame/namco/sweetland.cpp +++ b/src/mame/namco/sweetland.cpp @@ -98,7 +98,7 @@ class sweetland_state : public driver_device void sweetland(machine_config &config); private: - void program_map(address_map &map); + void program_map(address_map &map) ATTR_COLD; }; void sweetland_state::program_map(address_map &map) diff --git a/src/mame/namco/sweetland4.cpp b/src/mame/namco/sweetland4.cpp index 0377316226e..786cd7038e8 100644 --- a/src/mame/namco/sweetland4.cpp +++ b/src/mame/namco/sweetland4.cpp @@ -55,7 +55,7 @@ class sweetland4_state : public driver_device void lcdc_w(u8 data); - void program_map(address_map &map); + void program_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/namco/tankbatt.cpp b/src/mame/namco/tankbatt.cpp index 137ddd8c43a..968f9384ac0 100644 --- a/src/mame/namco/tankbatt.cpp +++ b/src/mame/namco/tankbatt.cpp @@ -117,7 +117,7 @@ class tankbatt_state : public driver_device void tankbatt(machine_config &config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -154,7 +154,7 @@ class tankbatt_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void draw_bullets(bitmap_ind16 &bitmap, const rectangle &cliprect); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/namco/tceptor.h b/src/mame/namco/tceptor.h index 7ec072953ef..4384dd9aaf1 100644 --- a/src/mame/namco/tceptor.h +++ b/src/mame/namco/tceptor.h @@ -38,9 +38,9 @@ class tceptor_state : public driver_device void tceptor(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -116,12 +116,12 @@ class tceptor_state : public driver_device inline uint8_t fix_input0(uint8_t in1, uint8_t in2); inline uint8_t fix_input1(uint8_t in1, uint8_t in2); - void m6502_a_map(address_map &map); - void m6502_b_map(address_map &map); - void m6809_map(address_map &map); - void m68k_map(address_map &map); - void mcu_io_map(address_map &map); - void mcu_map(address_map &map); + void m6502_a_map(address_map &map) ATTR_COLD; + void m6502_b_map(address_map &map) ATTR_COLD; + void m6809_map(address_map &map) ATTR_COLD; + void m68k_map(address_map &map) ATTR_COLD; + void mcu_io_map(address_map &map) ATTR_COLD; + void mcu_map(address_map &map) ATTR_COLD; }; #endif // MAME_NAMCO_TCEPTOR_H diff --git a/src/mame/namco/toypop.cpp b/src/mame/namco/toypop.cpp index 3577c4f663d..de7107d4cf8 100644 --- a/src/mame/namco/toypop.cpp +++ b/src/mame/namco/toypop.cpp @@ -110,17 +110,17 @@ class namcos16_state : public driver_device uint8_t bg_rmw_r(offs_t offset); void bg_rmw_w(offs_t offset, uint8_t data); - void master_liblrabl_map(address_map &map); - void master_toypop_map(address_map &map); - void namcos16_master_base_map(address_map &map); - void slave_map(address_map &map); - void sound_map(address_map &map); + void master_liblrabl_map(address_map &map) ATTR_COLD; + void master_toypop_map(address_map &map) ATTR_COLD; + void namcos16_master_base_map(address_map &map) ATTR_COLD; + void slave_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; // driver_device overrides -// virtual void machine_start() override; - virtual void machine_reset() override; +// virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; -// virtual void video_start() override; +// virtual void video_start() override ATTR_COLD; bool m_master_irq_enable = false; bool m_slave_irq_enable = false; diff --git a/src/mame/namco/turrett.h b/src/mame/namco/turrett.h index cf706179bdc..78fc37228a2 100644 --- a/src/mame/namco/turrett.h +++ b/src/mame/namco/turrett.h @@ -93,12 +93,12 @@ class turrett_state : public driver_device uint8_t m_frame = 0; uint8_t m_adc = 0; - void cpu_map(address_map &map); - void turrett_sound_map(address_map &map); + void cpu_map(address_map &map) ATTR_COLD; + void turrett_sound_map(address_map &map) ATTR_COLD; // driver_device overrides - virtual void machine_reset() override; - virtual void machine_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; }; @@ -117,8 +117,8 @@ class turrett_device : public device_t, 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; // device_sound_interface overrides virtual void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; diff --git a/src/mame/namco/wacky_gator.cpp b/src/mame/namco/wacky_gator.cpp index 88d4ee2498c..b22174bb563 100644 --- a/src/mame/namco/wacky_gator.cpp +++ b/src/mame/namco/wacky_gator.cpp @@ -53,8 +53,8 @@ class wackygtr_state : public driver_device void wackygtr(machine_config &config); private: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; void adpcm_int(int state); void sample_ctrl_w(uint8_t data); @@ -76,7 +76,7 @@ class wackygtr_state : public driver_device TIMER_DEVICE_CALLBACK_MEMBER(nmi_timer) { m_maincpu->pulse_input_line(INPUT_LINE_NMI, attotime::zero); } - void program_map(address_map &map); + void program_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_msm; diff --git a/src/mame/namco/warpwarp.h b/src/mame/namco/warpwarp.h index 1fa656f723f..52994c32a4d 100644 --- a/src/mame/namco/warpwarp.h +++ b/src/mame/namco/warpwarp.h @@ -97,7 +97,7 @@ class warpwarp_state : public driver_device void ball_on_w(int state); void geebee_videoram_w(offs_t offset, uint8_t data); - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; DECLARE_MACHINE_RESET(kaitei); DECLARE_VIDEO_START(geebee); @@ -119,10 +119,10 @@ class warpwarp_state : public driver_device void vblank_irq(int state); - void bombbee_map(address_map &map); - void geebee_map(address_map &map); - void geebee_port_map(address_map &map); - void warpwarp_map(address_map &map); + void bombbee_map(address_map &map) ATTR_COLD; + void geebee_map(address_map &map) ATTR_COLD; + void geebee_port_map(address_map &map) ATTR_COLD; + void warpwarp_map(address_map &map) ATTR_COLD; }; #endif // MAME_NAMCO_WARPWARP_H diff --git a/src/mame/namco/warpwarp_a.h b/src/mame/namco/warpwarp_a.h index aefcfb3b8bf..9a944828908 100644 --- a/src/mame/namco/warpwarp_a.h +++ b/src/mame/namco/warpwarp_a.h @@ -17,7 +17,7 @@ class warpwarp_sound_device : public device_t, public device_sound_interface protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // sound stream update overrides virtual void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; diff --git a/src/mame/namco/xevious.h b/src/mame/namco/xevious.h index fc3a344a19c..e0573644e83 100644 --- a/src/mame/namco/xevious.h +++ b/src/mame/namco/xevious.h @@ -31,7 +31,7 @@ class xevious_state : public galaga_state void init_xevios(); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; required_shared_ptr m_xevious_sr1; required_shared_ptr m_xevious_sr2; @@ -58,7 +58,7 @@ class xevious_state : public galaga_state void xevious_bs_w(offs_t offset, uint8_t data); uint8_t xevious_bb_r(offs_t offset); - void xevious_map(address_map &map); + void xevious_map(address_map &map) ATTR_COLD; }; class battles_state : public xevious_state @@ -74,13 +74,13 @@ class battles_state : public xevious_state protected: virtual void driver_start() override; - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; private: void interrupt_4(int state); TIMER_DEVICE_CALLBACK_MEMBER(nmi_generate); - void battles_mem4(address_map &map); + void battles_mem4(address_map &map) ATTR_COLD; // Custom I/O uint8_t customio0_r(); diff --git a/src/mame/namco/ygv608.h b/src/mame/namco/ygv608.h index f489019aca4..9fe5c17eb55 100644 --- a/src/mame/namco/ygv608.h +++ b/src/mame/namco/ygv608.h @@ -23,7 +23,7 @@ class ygv608_device : public device_t, // construction/destruction ygv608_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - void port_map(address_map &map); + void port_map(address_map &map) ATTR_COLD; // ports section uint8_t pattern_name_table_r(); @@ -92,11 +92,11 @@ class ygv608_device : public device_t, auto vblank_callback() { return m_vblank_handler.bind(); } auto raster_callback() { return m_raster_handler.bind(); } - void regs_map(address_map &map); + void regs_map(address_map &map) ATTR_COLD; protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void device_post_load() override; virtual space_config_vector memory_space_config() const override; diff --git a/src/mame/nasco/crgolf.cpp b/src/mame/nasco/crgolf.cpp index f99f496258f..e6c335d7616 100644 --- a/src/mame/nasco/crgolf.cpp +++ b/src/mame/nasco/crgolf.cpp @@ -124,15 +124,15 @@ class crgolf_state : public driver_device void crgolf(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; // devices required_device m_maincpu; required_device m_audiocpu; required_device m_palette; - void sound_map(address_map &map); + void sound_map(address_map &map) ATTR_COLD; private: // memory pointers @@ -160,7 +160,7 @@ class crgolf_state : public driver_device template void screen_enable_w(int state); void palette(palette_device &palette) const; uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; }; class crgolfhi_state : public crgolf_state @@ -175,8 +175,8 @@ class crgolfhi_state : public crgolf_state void crgolfhi(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: // memory pointers @@ -192,7 +192,7 @@ class crgolfhi_state : public crgolf_state void sample_w(offs_t offset, uint8_t data); void vck_callback(int state); - void sound_map(address_map &map); + void sound_map(address_map &map) ATTR_COLD; }; class mastrglf_state : public crgolfhi_state @@ -210,10 +210,10 @@ class mastrglf_state : public crgolfhi_state uint8_t unk_sound_07_r(); void unk_sound_0c_w(uint8_t data); void palette(palette_device &palette) const; - void main_io_map(address_map &map); - void main_prg_map(address_map &map); - void sound_io_map(address_map &map); - void sound_prg_map(address_map &map); + void main_io_map(address_map &map) ATTR_COLD; + void main_prg_map(address_map &map) ATTR_COLD; + void sound_io_map(address_map &map) ATTR_COLD; + void sound_prg_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/nasco/himesiki.cpp b/src/mame/nasco/himesiki.cpp index 3babbd997a7..201ac5d2f30 100644 --- a/src/mame/nasco/himesiki.cpp +++ b/src/mame/nasco/himesiki.cpp @@ -125,9 +125,9 @@ class himesiki_state : public driver_device void himesiki(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: // memory pointers @@ -157,10 +157,10 @@ class himesiki_state : public driver_device TILE_GET_INFO_MEMBER(get_bg_tile_info); uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); - void main_io_map(address_map &map); - void sound_io_map(address_map &map); - void main_prg_map(address_map &map); - void sound_prg_map(address_map &map); + void main_io_map(address_map &map) ATTR_COLD; + void sound_io_map(address_map &map) ATTR_COLD; + void main_prg_map(address_map &map) ATTR_COLD; + void sound_prg_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/nasco/suprgolf.cpp b/src/mame/nasco/suprgolf.cpp index cd28a469310..dd0f6caf2e3 100644 --- a/src/mame/nasco/suprgolf.cpp +++ b/src/mame/nasco/suprgolf.cpp @@ -62,9 +62,9 @@ class suprgolf_state : public driver_device void init_suprgolfj(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -105,8 +105,8 @@ class suprgolf_state : public driver_device TILE_GET_INFO_MEMBER(get_tile_info); uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void io_map(address_map &map); - void suprgolf_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void suprgolf_map(address_map &map) ATTR_COLD; }; TILE_GET_INFO_MEMBER(suprgolf_state::get_tile_info) diff --git a/src/mame/nascom/nascom1.cpp b/src/mame/nascom/nascom1.cpp index a0f31ba6a4a..0027bb344b9 100644 --- a/src/mame/nascom/nascom1.cpp +++ b/src/mame/nascom/nascom1.cpp @@ -78,7 +78,7 @@ class nascom_state : public driver_device required_device m_maincpu; required_device m_ram; - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; uint8_t nascom1_port_00_r(); void nascom1_port_00_w(uint8_t data); @@ -118,8 +118,8 @@ class nascom1_state : public nascom_state uint32_t screen_update_nascom(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); private: - void nascom1_io(address_map &map); - void nascom1_mem(address_map &map); + void nascom1_io(address_map &map) ATTR_COLD; + void nascom1_mem(address_map &map) ATTR_COLD; TIMER_DEVICE_CALLBACK_MEMBER(nascom1_kansas_r); void nascom1_kansas_w(int state); u16 m_cass_cnt[2]; @@ -145,7 +145,7 @@ class nascom2_state : public nascom_state DECLARE_INPUT_CHANGED_MEMBER(cass_speed); protected: - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; private: TIMER_DEVICE_CALLBACK_MEMBER(nascom2_kansas_r); @@ -158,9 +158,9 @@ class nascom2_state : public nascom_state DECLARE_DEVICE_IMAGE_LOAD_MEMBER(socket1_load) { return load_cart(image, m_socket1, 1); } DECLARE_DEVICE_IMAGE_LOAD_MEMBER(socket2_load) { return load_cart(image, m_socket2, 2); } - void nascom2_io(address_map &map); - void nascom2_mem(address_map &map); - void nascom2c_mem(address_map &map); + void nascom2_io(address_map &map) ATTR_COLD; + void nascom2_mem(address_map &map) ATTR_COLD; + void nascom2c_mem(address_map &map) ATTR_COLD; required_device m_clock; required_device m_nasbus; diff --git a/src/mame/natsemi/icm3216.cpp b/src/mame/natsemi/icm3216.cpp index 8cd01c054be..d810bc96ae3 100644 --- a/src/mame/natsemi/icm3216.cpp +++ b/src/mame/natsemi/icm3216.cpp @@ -70,13 +70,13 @@ class icm3216_state : public driver_device void icm3216(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; // address maps - template void cpu_map(address_map &map); - void iop_mem_map(address_map &map); - void iop_pio_map(address_map &map); + template void cpu_map(address_map &map) ATTR_COLD; + void iop_mem_map(address_map &map) ATTR_COLD; + void iop_pio_map(address_map &map) ATTR_COLD; // register read handlers u8 iop_r(); diff --git a/src/mame/natsemi/ns32kdb.cpp b/src/mame/natsemi/ns32kdb.cpp index fdde4a89547..87f0a2304f9 100644 --- a/src/mame/natsemi/ns32kdb.cpp +++ b/src/mame/natsemi/ns32kdb.cpp @@ -63,11 +63,11 @@ class ns32kdb_state : public driver_device protected: // driver_device overrides - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; // address maps - template void cpu_map(address_map &map); + template void cpu_map(address_map &map) ATTR_COLD; public: // machine config diff --git a/src/mame/natsemi/ns5652.cpp b/src/mame/natsemi/ns5652.cpp index e62c6bc01e0..68dc2fcb25e 100644 --- a/src/mame/natsemi/ns5652.cpp +++ b/src/mame/natsemi/ns5652.cpp @@ -26,7 +26,7 @@ class ns5652_state : public driver_device void ns5652(machine_config &config); private: - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_region_ptr m_ecprom; diff --git a/src/mame/natsemi/sys16.cpp b/src/mame/natsemi/sys16.cpp index bacf2917986..88ac96f0972 100644 --- a/src/mame/natsemi/sys16.cpp +++ b/src/mame/natsemi/sys16.cpp @@ -96,11 +96,11 @@ class sys16_state : public driver_device void init(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; - template void cpu_map(address_map &map); - void hdc_mem(address_map &map); + template void cpu_map(address_map &map) ATTR_COLD; + void hdc_mem(address_map &map) ATTR_COLD; required_device m_cpu; required_device m_fpu; diff --git a/src/mame/ncd/bert_m.h b/src/mame/ncd/bert_m.h index 92acc4d7bc0..93c39d303f2 100644 --- a/src/mame/ncd/bert_m.h +++ b/src/mame/ncd/bert_m.h @@ -14,12 +14,12 @@ class bert_device : public device_t bert_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); - void map(address_map &map); + void map(address_map &map) ATTR_COLD; void set_qlc_mode(bool state); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; u16 read(offs_t offset); void write(offs_t offset, u16 data, u16 mem_mask); diff --git a/src/mame/ncd/ncd68k.cpp b/src/mame/ncd/ncd68k.cpp index bca60c9b159..daa9ee5f5f8 100644 --- a/src/mame/ncd/ncd68k.cpp +++ b/src/mame/ncd/ncd68k.cpp @@ -104,7 +104,7 @@ class ncd68k_state : public driver_device } protected: - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; void common(machine_config &config); u8 mcu_r(); @@ -146,7 +146,7 @@ class ncd16_state : public ncd68k_state void initialise(); private: - void map(address_map &map); + void map(address_map &map) ATTR_COLD; u32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, rectangle const &cliprect); @@ -169,7 +169,7 @@ class ncd17c_state : public ncd68k_state void initialise(); private: - void map(address_map &map); + void map(address_map &map) ATTR_COLD; u32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, rectangle const &cliprect); @@ -194,7 +194,7 @@ class ncd19_state : public ncd68k_state void initialise(); private: - void map(address_map &map); + void map(address_map &map) ATTR_COLD; u32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, rectangle const &cliprect); diff --git a/src/mame/ncd/ncd88k.cpp b/src/mame/ncd/ncd88k.cpp index 6d7c31c12fd..80755004f4c 100644 --- a/src/mame/ncd/ncd88k.cpp +++ b/src/mame/ncd/ncd88k.cpp @@ -86,8 +86,8 @@ class ncd88k_state : public driver_device private: u32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void code_map(address_map &map); - void data_map(address_map &map); + void code_map(address_map &map) ATTR_COLD; + void data_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_screen; @@ -182,12 +182,12 @@ class ncdmcx_state : public driver_device void ncdmcx(machine_config &config); private: - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; u32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, rectangle const &cliprect); - void code_map(address_map &map); - void data_map(address_map &map); + void code_map(address_map &map) ATTR_COLD; + void data_map(address_map &map) ATTR_COLD; template void irq_w(int state); diff --git a/src/mame/ncd/ncdmips.cpp b/src/mame/ncd/ncdmips.cpp index 724d57f77b8..d117af6736e 100644 --- a/src/mame/ncd/ncdmips.cpp +++ b/src/mame/ncd/ncdmips.cpp @@ -36,7 +36,7 @@ class ncd_mips_state : public driver_device } void hmxpro(machine_config &config); - void hmxpro_map(address_map &map); + void hmxpro_map(address_map &map) ATTR_COLD; uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); @@ -44,7 +44,7 @@ class ncd_mips_state : public driver_device INTERRUPT_GEN_MEMBER(vblank); private: - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; required_device m_maincpu; required_device m_screen; diff --git a/src/mame/ncd/ncdppc.cpp b/src/mame/ncd/ncdppc.cpp index 0d90f90b0a4..6d26f64fa1a 100644 --- a/src/mame/ncd/ncdppc.cpp +++ b/src/mame/ncd/ncdppc.cpp @@ -35,12 +35,12 @@ class ncd_ppc_state : public driver_device } void explorapro(machine_config &config); - void explorapro_map(address_map &map); + void explorapro_map(address_map &map) ATTR_COLD; uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); private: - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; required_device m_maincpu; required_device m_screen; diff --git a/src/mame/ncr/dmv.cpp b/src/mame/ncr/dmv.cpp index 924849184d3..8af74ccec42 100644 --- a/src/mame/ncr/dmv.cpp +++ b/src/mame/ncr/dmv.cpp @@ -151,12 +151,12 @@ class dmv_state : public driver_device UPD7220_DISPLAY_PIXELS_MEMBER( hgdc_display_pixels ); UPD7220_DRAW_TEXT_LINE_MEMBER( hgdc_draw_text ); - void dmv_io(address_map &map); - void dmv_mem(address_map &map); - void upd7220_map(address_map &map); + void dmv_io(address_map &map) ATTR_COLD; + void dmv_mem(address_map &map) ATTR_COLD; + void upd7220_map(address_map &map) ATTR_COLD; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; required_device m_maincpu; required_device m_screen; diff --git a/src/mame/ncr/dmv_keyb.h b/src/mame/ncr/dmv_keyb.h index b21a6e229d2..d319bb5e725 100644 --- a/src/mame/ncr/dmv_keyb.h +++ b/src/mame/ncr/dmv_keyb.h @@ -30,11 +30,11 @@ class dmv_keyboard_device : public device_t protected: // device_t implementation - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; - virtual void device_reset() override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: required_device m_maincpu; diff --git a/src/mame/nec/apc.cpp b/src/mame/nec/apc.cpp index b8dd3a74930..d9fb2546016 100644 --- a/src/mame/nec/apc.cpp +++ b/src/mame/nec/apc.cpp @@ -173,16 +173,16 @@ class apc_state : public driver_device UPD7220_DISPLAY_PIXELS_MEMBER( hgdc_display_pixels ); UPD7220_DRAW_TEXT_LINE_MEMBER( hgdc_draw_text ); - void apc_io(address_map &map); - void apc_map(address_map &map); - void upd7220_1_map(address_map &map); - void upd7220_2_map(address_map &map); + void apc_io(address_map &map) ATTR_COLD; + void apc_map(address_map &map) ATTR_COLD; + void upd7220_1_map(address_map &map) ATTR_COLD; + void upd7220_2_map(address_map &map) ATTR_COLD; // driver_device overrides - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; inline void set_dma_channel(int channel, int state); }; diff --git a/src/mame/nec/bungo.h b/src/mame/nec/bungo.h index 2f15d145ce2..f0af4b8f2aa 100644 --- a/src/mame/nec/bungo.h +++ b/src/mame/nec/bungo.h @@ -27,10 +27,10 @@ class bungo_mini5sx_state : public pc98_base_state void mini5sx_config(machine_config &config); protected: - void mini5sx_map(address_map &map); - void mini5sx_io(address_map &map); + void mini5sx_map(address_map &map) ATTR_COLD; + void mini5sx_io(address_map &map) ATTR_COLD; - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_maincpu; required_device m_fdc; diff --git a/src/mame/nec/ews4800.cpp b/src/mame/nec/ews4800.cpp index 67649532cc1..a07aade2ab0 100644 --- a/src/mame/nec/ews4800.cpp +++ b/src/mame/nec/ews4800.cpp @@ -59,11 +59,11 @@ class ews4800_state : public driver_device protected: // driver_device overrides - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; // address maps - void cpu_map(address_map &map); + void cpu_map(address_map &map) ATTR_COLD; u16 lance_r(offs_t offset, u16 mem_mask = 0xffff); void lance_w(offs_t offset, u16 data, u16 mem_mask = 0xffff); diff --git a/src/mame/nec/pc100.cpp b/src/mame/nec/pc100.cpp index 39798218e1e..90389c70d03 100644 --- a/src/mame/nec/pc100.cpp +++ b/src/mame/nec/pc100.cpp @@ -94,9 +94,9 @@ class pc100_state : public driver_device void pc100(machine_config &config); DECLARE_INPUT_CHANGED_MEMBER(key_stroke); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; required_device m_beeper; @@ -156,8 +156,8 @@ class pc100_state : public driver_device void rtc_portc_2_w(int state) { m_rtc_portc = (m_rtc_portc & ~(1 << 2)) | ((state & 1) << 2); } void rtc_portc_3_w(int state) { m_rtc_portc = (m_rtc_portc & ~(1 << 3)) | ((state & 1) << 3); } uint8_t m_rtc_portc; - void pc100_io(address_map &map); - void pc100_map(address_map &map); + void pc100_io(address_map &map) ATTR_COLD; + void pc100_map(address_map &map) ATTR_COLD; }; void pc100_state::video_start() diff --git a/src/mame/nec/pc6001.h b/src/mame/nec/pc6001.h index 41b5ccfba91..0aaea466a3d 100644 --- a/src/mame/nec/pc6001.h +++ b/src/mame/nec/pc6001.h @@ -109,18 +109,18 @@ class pc6001_state : public driver_device uint8_t m_timer_irq_vector = 0; uint16_t m_timer_hz_div = 0; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; void default_cartridge_reset(); void default_cassette_hack_reset(); void default_keyboard_hle_reset(); void irq_reset(u8 timer_default_setting); - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; - void pc6001_map(address_map &map); - void pc6001_io(address_map &map); + void pc6001_map(address_map &map) ATTR_COLD; + void pc6001_io(address_map &map) ATTR_COLD; // i/o functions uint8_t check_joy_press(); @@ -234,8 +234,8 @@ class pc6001mk2_state : public pc6001_state virtual uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect) override; protected: - void pc6001mk2_map(address_map &map); - void pc6001mk2_io(address_map &map); + void pc6001mk2_map(address_map &map) ATTR_COLD; + void pc6001mk2_io(address_map &map) ATTR_COLD; uint8_t m_bgcol_bank = 0; uint8_t m_gfx_bank_on = 0; @@ -248,8 +248,8 @@ class pc6001mk2_state : public pc6001_state optional_memory_bank m_bank8; virtual void refresh_crtc_params(); - virtual void video_start() override; - virtual void machine_reset() override; + virtual void video_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; virtual u8 vrtc_ack() override; @@ -280,11 +280,11 @@ class pc6601_state : public pc6001mk2_state void pc6601(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; - void pc6601_io(address_map &map); + void pc6601_io(address_map &map) ATTR_COLD; - void pc6601_fdc_io(address_map &map); + void pc6601_fdc_io(address_map &map) ATTR_COLD; void pc6601_fdc_config(machine_config &config); static void floppy_formats(format_registration &fr); @@ -314,12 +314,12 @@ class pc6001mk2sr_state : public pc6601_state void pc6001mk2sr(machine_config &config); protected: - virtual void video_start() override; - virtual void machine_reset() override; + virtual void video_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; - void pc6001mk2sr_map(address_map &map); - void sr_banked_map(address_map &map); - void pc6001mk2sr_io(address_map &map); + void pc6001mk2sr_map(address_map &map) ATTR_COLD; + void sr_banked_map(address_map &map) ATTR_COLD; + void pc6001mk2sr_io(address_map &map) ATTR_COLD; virtual u8 vrtc_ack() override; virtual u8 get_timer_base_divider() override; diff --git a/src/mame/nec/pc8001.h b/src/mame/nec/pc8001.h index 8eab710f4cb..40432f32ef7 100644 --- a/src/mame/nec/pc8001.h +++ b/src/mame/nec/pc8001.h @@ -66,7 +66,7 @@ class pc8001_base_state : public driver_device void port10_w(uint8_t data); void port30_w(u8 data); - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; void set_screen_frequency(bool is_24KHz) { m_screen_is_24KHz = is_24KHz; } bool get_screen_frequency() { return m_screen_is_24KHz; } @@ -106,11 +106,11 @@ class pc8001_state : public pc8001_base_state void pc8001(machine_config &config); protected: - void pc8001_io(address_map &map); - void pc8001_map(address_map &map); + void pc8001_io(address_map &map) ATTR_COLD; + void pc8001_map(address_map &map) ATTR_COLD; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); @@ -137,8 +137,8 @@ class pc8001mk2_state : public pc8001_state void pc8001mk2(machine_config &config); protected: - void pc8001mk2_io(address_map &map); - void pc8001mk2_map(address_map &map); + void pc8001mk2_io(address_map &map) ATTR_COLD; + void pc8001mk2_map(address_map &map) ATTR_COLD; required_memory_region m_kanji_rom; required_ioport_array<2> m_dsw; @@ -157,9 +157,9 @@ class pc8001mk2sr_state : public pc8001mk2_state void pc8001mk2sr(machine_config &config); private: - virtual void machine_start() override; - virtual void machine_reset() override; - void pc8001mk2sr_io(address_map &map); + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + void pc8001mk2sr_io(address_map &map) ATTR_COLD; required_memory_region m_n80sr_rom; diff --git a/src/mame/nec/pc80s31k.h b/src/mame/nec/pc80s31k.h index 71a81b39d8f..29193ee0316 100644 --- a/src/mame/nec/pc80s31k.h +++ b/src/mame/nec/pc80s31k.h @@ -27,19 +27,19 @@ class pc80s31_device : public device_t // construction/destruction pc80s31_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - void host_map(address_map &map); + void host_map(address_map &map) ATTR_COLD; protected: pc80s31_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // device-level overrides //virtual void device_validity_check(validity_checker &valid) const override; - virtual void device_add_mconfig(machine_config &config) override; - 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 ATTR_COLD; + 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 fdc_io(address_map &map); + virtual void fdc_io(address_map &map) ATTR_COLD; TIMER_CALLBACK_MEMBER(tc_zero_tick); @@ -54,7 +54,7 @@ class pc80s31_device : public device_t required_device m_ppi_fdc; required_device_array m_latch; - void fdc_map(address_map &map); + void fdc_map(address_map &map) ATTR_COLD; template u8 latch_r(); template void latch_w(u8 data); @@ -75,8 +75,8 @@ class pc80s31k_device : public pc80s31_device protected: pc80s31k_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void fdc_io(address_map &map) override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void fdc_io(address_map &map) override ATTR_COLD; private: void drive_mode_w(u8 data); @@ -90,17 +90,17 @@ class pc88va2_fd_if_device : public pc80s31k_device auto int_wr_callback() { return m_write_irq.bind(); } auto drq_wr_callback() { return m_write_drq.bind(); } - void host_io(address_map &map); + void host_io(address_map &map) ATTR_COLD; void tc_w(int state) { m_fdc->tc_w(state); } u8 dack_r() { return m_fdc->dma_r(); } void dack_w(u8 data) { m_fdc->dma_w(data); } protected: - virtual const tiny_rom_entry *device_rom_region() const override; - 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 ATTR_COLD; + 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; private: devcb_write_line m_write_irq; diff --git a/src/mame/nec/pc8401a.cpp b/src/mame/nec/pc8401a.cpp index 005c2d6c0dc..bb8cda27c92 100644 --- a/src/mame/nec/pc8401a.cpp +++ b/src/mame/nec/pc8401a.cpp @@ -340,8 +340,8 @@ class pc8401a_state : public driver_device void pc8500(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; @@ -389,12 +389,12 @@ class pc8401a_state : public driver_device uint8_t m_key_latch = 0; bool m_key_irq_enable = false; TIMER_DEVICE_CALLBACK_MEMBER(keyboard_tick); - void pc8401a_lcdc(address_map &map); - void pc8401a_mem(address_map &map); - void pc8500_io(address_map &map); + void pc8401a_lcdc(address_map &map) ATTR_COLD; + void pc8401a_mem(address_map &map) ATTR_COLD; + void pc8500_io(address_map &map) ATTR_COLD; - void bankdev0_map(address_map &map); - void bankdev8_map(address_map &map); + void bankdev0_map(address_map &map) ATTR_COLD; + void bankdev8_map(address_map &map) ATTR_COLD; template uint8_t ram_r(address_space &space, offs_t offset) { diff --git a/src/mame/nec/pc8801.h b/src/mame/nec/pc8801.h index b4f4c0782a2..7b9d5114426 100644 --- a/src/mame/nec/pc8801.h +++ b/src/mame/nec/pc8801.h @@ -65,9 +65,9 @@ class pc8801_state : public pc8001_base_state void pc8801(machine_config &config); protected: - virtual void video_start() override; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void video_start() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; uint8_t mem_r(offs_t offset); void mem_w(offs_t offset, uint8_t data); @@ -81,7 +81,7 @@ class pc8801_state : public pc8001_base_state virtual uint8_t cdbios_rom_r(offs_t offset); virtual bool cdbios_rom_enable(); - virtual void main_io(address_map &map); + virtual void main_io(address_map &map) ATTR_COLD; // required_device m_maincpu; required_device m_screen; @@ -107,7 +107,7 @@ class pc8801_state : public pc8001_base_state uint8_t m_gfx_ctrl = 0; private: - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; std::unique_ptr m_work_ram; std::unique_ptr m_hi_work_ram; @@ -228,7 +228,7 @@ class pc8801mk2sr_state : public pc8801_state void pc8801mk2mr(machine_config &config); protected: - virtual void main_io(address_map &map) override; + virtual void main_io(address_map &map) override ATTR_COLD; uint8_t opn_porta_r(); uint8_t opn_portb_r(); @@ -250,13 +250,13 @@ class pc8801fh_state : public pc8801mk2sr_state void pc8801fh(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void main_io(address_map &map) override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void main_io(address_map &map) override ATTR_COLD; private: required_device m_opna; - void opna_map(address_map &map); + void opna_map(address_map &map) ATTR_COLD; uint8_t cpuclock_r(); uint8_t baudrate_r(); @@ -277,10 +277,10 @@ class pc8801ma_state : public pc8801fh_state void pc8801ma(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; - virtual void main_io(address_map &map) override; + virtual void main_io(address_map &map) override ATTR_COLD; virtual uint8_t dictionary_rom_r(offs_t offset) override; virtual bool dictionary_rom_enable() override; @@ -306,10 +306,10 @@ class pc8801mc_state : public pc8801ma_state void pc8801mc(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; - virtual void main_io(address_map &map) override; + virtual void main_io(address_map &map) override ATTR_COLD; private: virtual uint8_t cdbios_rom_r(offs_t offset) override; diff --git a/src/mame/nec/pc88va.h b/src/mame/nec/pc88va.h index 54953cc840d..a9214be388c 100644 --- a/src/mame/nec/pc88va.h +++ b/src/mame/nec/pc88va.h @@ -92,9 +92,9 @@ class pc88va_state : public driver_device }; keyb_t m_keyb; - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; void palette_init(palette_device &palette) const; private: @@ -249,12 +249,12 @@ class pc88va_state : public driver_device void execute_sprsw_cmd(); void execute_spwr_cmd(u8 data); - void main_map(address_map &map); - void io_map(address_map &map); - void sysbank_map(address_map &map); - void opna_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; + void sysbank_map(address_map &map) ATTR_COLD; + void opna_map(address_map &map) ATTR_COLD; - void sgp_map(address_map &map); + void sgp_map(address_map &map) ATTR_COLD; protected: required_device m_gfxdecode; diff --git a/src/mame/nec/pc88va_sgp.h b/src/mame/nec/pc88va_sgp.h index 7a0b2029225..1ef011f72b0 100644 --- a/src/mame/nec/pc88va_sgp.h +++ b/src/mame/nec/pc88va_sgp.h @@ -15,11 +15,11 @@ class pc88va_sgp_device : template pc88va_sgp_device& set_map(T &&... args) { set_addrmap(AS_DATA, std::forward(args)...); return *this; } - void sgp_io(address_map &map); + void sgp_io(address_map &map) ATTR_COLD; protected: - 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 device_config_complete() override; virtual space_config_vector memory_space_config() const override; diff --git a/src/mame/nec/pc9801.h b/src/mame/nec/pc9801.h index 0649027eef8..74e66948fe2 100644 --- a/src/mame/nec/pc9801.h +++ b/src/mame/nec/pc9801.h @@ -196,8 +196,8 @@ class pc9801_state : public pc98_base_state void pit_clock_config(machine_config &config, const XTAL clock); - void pc9801_common_io(address_map &map); - void ipl_bank(address_map &map); + void pc9801_common_io(address_map &map) ATTR_COLD; + void ipl_bank(address_map &map) ATTR_COLD; uint8_t pc9801_a0_r(offs_t offset); void pc9801_a0_w(offs_t offset, uint8_t data); @@ -209,8 +209,8 @@ class pc9801_state : public pc98_base_state virtual u8 ppi_prn_portb_r(); private: - void pc9801_io(address_map &map); - void pc9801_map(address_map &map); + void pc9801_io(address_map &map) ATTR_COLD; + void pc9801_map(address_map &map) ATTR_COLD; void nmi_ctrl_w(offs_t offset, uint8_t data); @@ -277,12 +277,12 @@ class pc9801_state : public pc98_base_state // Video protected: - void upd7220_1_map(address_map &map); - void upd7220_2_map(address_map &map); + void upd7220_1_map(address_map &map) ATTR_COLD; + void upd7220_2_map(address_map &map) ATTR_COLD; UPD7220_DISPLAY_PIXELS_MEMBER( hgdc_display_pixels ); - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; void pc9801_palette(palette_device &palette) const; uint8_t *m_char_rom = nullptr; @@ -382,10 +382,10 @@ class pc9801vm_state : public pc9801_state protected: TIMER_CALLBACK_MEMBER(fdc_trigger); - void pc9801rs_io(address_map &map); - void pc9801rs_map(address_map &map); - void pc9801ux_io(address_map &map); - void pc9801ux_map(address_map &map); + void pc9801rs_io(address_map &map) ATTR_COLD; + void pc9801rs_map(address_map &map) ATTR_COLD; + void pc9801ux_io(address_map &map) ATTR_COLD; + void pc9801ux_map(address_map &map) ATTR_COLD; uint16_t grcg_gvram_r(offs_t offset, uint16_t mem_mask = ~0); void grcg_gvram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); @@ -395,7 +395,7 @@ class pc9801vm_state : public pc9801_state uint16_t upd7220_grcg_r(offs_t offset, uint16_t mem_mask = ~0); void upd7220_grcg_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); - void upd7220_grcg_2_map(address_map &map); + void upd7220_grcg_2_map(address_map &map) ATTR_COLD; void pc9801_ide(machine_config &config); static void cdrom_headphones(device_t *device); @@ -509,7 +509,7 @@ class pc9801us_state : public pc9801vm_state void pc9801us(machine_config &config); protected: - void pc9801us_io(address_map &map); + void pc9801us_io(address_map &map) ATTR_COLD; DECLARE_MACHINE_START(pc9801us); @@ -541,8 +541,8 @@ class pc9801bx_state : public pc9801us_state void pc9801bx2(machine_config &config); protected: - void pc9801bx2_io(address_map &map); - void pc9801bx2_map(address_map &map); + void pc9801bx2_io(address_map &map) ATTR_COLD; + void pc9801bx2_map(address_map &map) ATTR_COLD; DECLARE_MACHINE_START(pc9801bx2); DECLARE_MACHINE_RESET(pc9801bx2); diff --git a/src/mame/nec/pc9801_epson.h b/src/mame/nec/pc9801_epson.h index 4a352de177d..aba062339d3 100644 --- a/src/mame/nec/pc9801_epson.h +++ b/src/mame/nec/pc9801_epson.h @@ -30,19 +30,19 @@ class pc98_epson_state : public pc9801vm_state protected: void config_base_epson(machine_config &config); - void pc386m_ipl_bank(address_map &map); + void pc386m_ipl_bank(address_map &map) ATTR_COLD; - void epson_base_io(address_map &map); + void epson_base_io(address_map &map) ATTR_COLD; - void pc286vs_io(address_map &map); - void pc286vs_map(address_map &map); - void pc386m_io(address_map &map); - void pc386m_map(address_map &map); - void pc486se_io(address_map &map); - void pc486se_map(address_map &map); + void pc286vs_io(address_map &map) ATTR_COLD; + void pc286vs_map(address_map &map) ATTR_COLD; + void pc386m_io(address_map &map) ATTR_COLD; + void pc386m_map(address_map &map) ATTR_COLD; + void pc486se_io(address_map &map) ATTR_COLD; + void pc486se_map(address_map &map) ATTR_COLD; -// virtual void machine_start() override; -// virtual void machine_reset() override; +// virtual void machine_start() override ATTR_COLD; +// virtual void machine_reset() override ATTR_COLD; DECLARE_MACHINE_START(pc98_epson); DECLARE_MACHINE_RESET(pc98_epson); diff --git a/src/mame/nec/pc9801_kbd.h b/src/mame/nec/pc9801_kbd.h index de8c4c6927b..f5b6ab059fa 100644 --- a/src/mame/nec/pc9801_kbd.h +++ b/src/mame/nec/pc9801_kbd.h @@ -25,7 +25,7 @@ class pc9801_kbd_device : public device_t auto irq_wr_callback() { return m_write_irq.bind(); } - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; // I/O operations void tx_w(uint8_t data); @@ -35,8 +35,8 @@ class pc9801_kbd_device : public device_t protected: // device-level overrides virtual void device_validity_check(validity_checker &valid) const override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; TIMER_CALLBACK_MEMBER(rx_timer_tick); diff --git a/src/mame/nec/pc9801_memsw.h b/src/mame/nec/pc9801_memsw.h index 1dd7dca7002..e376cbae5a4 100644 --- a/src/mame/nec/pc9801_memsw.h +++ b/src/mame/nec/pc9801_memsw.h @@ -38,8 +38,8 @@ class pc9801_memsw_device : public device_t, 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 nvram_default() override; virtual bool nvram_read(util::read_stream &file) override; virtual bool nvram_write(util::write_stream &file) override; diff --git a/src/mame/nec/pc9821.h b/src/mame/nec/pc9821.h index ebf0e8f7445..6c1b334ff14 100644 --- a/src/mame/nec/pc9821.h +++ b/src/mame/nec/pc9821.h @@ -25,8 +25,8 @@ class pc9821_state : public pc9801bx_state void pc9821(machine_config &config); protected: - void pc9821_io(address_map &map); - void pc9821_map(address_map &map); + void pc9821_io(address_map &map) ATTR_COLD; + void pc9821_map(address_map &map) ATTR_COLD; DECLARE_MACHINE_START(pc9821); DECLARE_MACHINE_RESET(pc9821); @@ -77,7 +77,7 @@ class pc9821_mate_a_state : public pc9821_state void pc9821ap2(machine_config &config); protected: - void pc9821as_io(address_map &map); + void pc9821as_io(address_map &map) ATTR_COLD; private: DECLARE_MACHINE_START(pc9821ap2); @@ -105,8 +105,8 @@ class pc9821_canbe_state : public pc9821_state void pc9821cx3(machine_config &config); protected: - void pc9821cx3_map(address_map &map); - void pc9821cx3_io(address_map &map); + void pc9821cx3_map(address_map &map) ATTR_COLD; + void pc9821cx3_io(address_map &map) ATTR_COLD; private: void remote_addr_w(offs_t offset, u8 data); diff --git a/src/mame/nec/pc98ha.h b/src/mame/nec/pc98ha.h index a0cc016dbb2..63b1cb1477a 100644 --- a/src/mame/nec/pc98ha.h +++ b/src/mame/nec/pc98ha.h @@ -31,13 +31,13 @@ class pc98lt_state : public pc98_base_state void lt_config(machine_config &config); protected: - void lt_map(address_map &map); - void lt_io(address_map &map); + void lt_map(address_map &map) ATTR_COLD; + void lt_io(address_map &map) ATTR_COLD; required_device m_maincpu; - virtual void machine_start() override; -// virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; +// virtual void machine_reset() override ATTR_COLD; private: required_device m_fdc; required_shared_ptr m_gvram; @@ -81,10 +81,10 @@ class pc98ha_state : public pc98lt_state void ha_config(machine_config &config); protected: - void ha_map(address_map &map); - void ha_io(address_map &map); + void ha_map(address_map &map) ATTR_COLD; + void ha_io(address_map &map) ATTR_COLD; - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_memory_bank_array<4> m_ems_banks; memory_view m_ext_view; diff --git a/src/mame/nec/pc_h98.cpp b/src/mame/nec/pc_h98.cpp index aa4539da71e..001912b1904 100644 --- a/src/mame/nec/pc_h98.cpp +++ b/src/mame/nec/pc_h98.cpp @@ -26,8 +26,8 @@ class pc_hyper98_state : public pc9801bx_state DECLARE_MACHINE_START(pc_h98); DECLARE_MACHINE_RESET(pc_h98); - void pc_h98_map(address_map &map); - void pc_h98_io(address_map &map); + void pc_h98_map(address_map &map) ATTR_COLD; + void pc_h98_io(address_map &map) ATTR_COLD; }; void pc_hyper98_state::pc_h98_map(address_map &map) diff --git a/src/mame/nec/pce.h b/src/mame/nec/pce.h index 1ce4d9e32a6..651a787cd5f 100644 --- a/src/mame/nec/pce.h +++ b/src/mame/nec/pce.h @@ -42,8 +42,8 @@ class pce_state : public driver_device void sgx(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; @@ -58,10 +58,10 @@ class pce_state : public driver_device void cd_intf_w(offs_t offset, u8 data); u8 cd_intf_r(offs_t offset); uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void pce_io(address_map &map); - void pce_mem(address_map &map); - void sgx_io(address_map &map); - void sgx_mem(address_map &map); + void pce_io(address_map &map) ATTR_COLD; + void pce_mem(address_map &map) ATTR_COLD; + void sgx_io(address_map &map) ATTR_COLD; + void sgx_mem(address_map &map) ATTR_COLD; }; #endif // MAME_NEC_PCE_H diff --git a/src/mame/nec/pce_cd.h b/src/mame/nec/pce_cd.h index 3c6c9ed470a..097f1ffc7a9 100644 --- a/src/mame/nec/pce_cd.h +++ b/src/mame/nec/pce_cd.h @@ -41,9 +41,9 @@ class pce_cd_device : public device_t, protected: // device-level overrides - virtual void device_start() override; - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; virtual space_config_vector memory_space_config() const override; private: @@ -107,7 +107,7 @@ class pce_cd_device : public device_t, uint8_t m_adpcm_dma_reg = 0; uint8_t m_fader_ctrl = 0; - void regs_map(address_map &map); + void regs_map(address_map &map) ATTR_COLD; void adpcm_stop(uint8_t irq_flag); void adpcm_play(); void reply_status_byte(uint8_t status); diff --git a/src/mame/nec/pcfx.cpp b/src/mame/nec/pcfx.cpp index 62cd4cb0580..4c2d7b0c5c2 100644 --- a/src/mame/nec/pcfx.cpp +++ b/src/mame/nec/pcfx.cpp @@ -36,8 +36,8 @@ class pcfx_state : public driver_device void pcfx(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); @@ -59,8 +59,8 @@ class pcfx_state : public driver_device [[maybe_unused]] void irq15_w(int state); template TIMER_CALLBACK_MEMBER(pad_func); - void pcfx_io(address_map &map); - void pcfx_mem(address_map &map); + void pcfx_io(address_map &map) ATTR_COLD; + void pcfx_mem(address_map &map) ATTR_COLD; // Interrupt controller (component unknown) uint16_t m_irq_mask = 0; diff --git a/src/mame/nec/tk80bs.cpp b/src/mame/nec/tk80bs.cpp index f8c8174d82d..884f67187b2 100644 --- a/src/mame/nec/tk80bs.cpp +++ b/src/mame/nec/tk80bs.cpp @@ -47,7 +47,7 @@ class tk80bs_state : public driver_device void tk80bs(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: uint8_t ppi_custom_r(offs_t offse); @@ -56,7 +56,7 @@ class tk80bs_state : public driver_device uint8_t port_a_r(); uint8_t port_b_r(); uint32_t screen_update_tk80bs(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; uint8_t m_term_data = 0U; required_shared_ptr m_p_videoram; required_device m_maincpu; diff --git a/src/mame/neogeo/midas.cpp b/src/mame/neogeo/midas.cpp index c68983ed45b..662756dedbd 100644 --- a/src/mame/neogeo/midas.cpp +++ b/src/mame/neogeo/midas.cpp @@ -92,9 +92,9 @@ class midas_state : public driver_device void init_livequiz(); protected: - virtual void video_start() override; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void video_start() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: uint16_t ret_ffff(); @@ -120,8 +120,8 @@ class midas_state : public driver_device void screen_vblank(int state); - void hammer_map(address_map &map); - void livequiz_map(address_map &map); + void hammer_map(address_map &map) ATTR_COLD; + void livequiz_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/neogeo/neogeo.cpp b/src/mame/neogeo/neogeo.cpp index 87de6d74d89..2b1ef8066e8 100644 --- a/src/mame/neogeo/neogeo.cpp +++ b/src/mame/neogeo/neogeo.cpp @@ -584,7 +584,7 @@ class mvs_state : public ngarcade_base_state void irrmaze(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; virtual void device_post_load() override; virtual void output_strobe(uint8_t bits, uint8_t data) { } @@ -679,7 +679,7 @@ class mvs_led_state : public mvs_state void sbp(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; virtual void output_strobe(uint8_t bits, uint8_t data) override; virtual void set_outputs() override; @@ -709,7 +709,7 @@ class mvs_led_el_state : public mvs_led_state void mv6f(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; virtual void output_strobe(uint8_t bits, uint8_t data) override; virtual void set_outputs() override; @@ -732,11 +732,11 @@ class aes_state : public aes_base_state void aes_ntsc(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; virtual void device_post_load() override; - void aes_main_map(address_map &map); + void aes_main_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/neogeo/neogeo.h b/src/mame/neogeo/neogeo.h index 741f4e40781..ba37a98e790 100644 --- a/src/mame/neogeo/neogeo.h +++ b/src/mame/neogeo/neogeo.h @@ -112,13 +112,13 @@ class neogeo_base_state : public driver_device void neogeo_stereo(machine_config &config); void neogeo_memcard(machine_config &config); - void base_main_map(address_map &map); - void audio_io_map(address_map &map); - void audio_map(address_map &map); + void base_main_map(address_map &map) ATTR_COLD; + void audio_io_map(address_map &map) ATTR_COLD; + void audio_map(address_map &map) ATTR_COLD; // device overrides - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; virtual void device_post_load() override; @@ -155,8 +155,8 @@ class neogeo_base_state : public driver_device // video hardware, including maincpu interrupts // TODO: make into a device - virtual void video_start() override; - virtual void video_reset() override; + virtual void video_start() override ATTR_COLD; + virtual void video_reset() override ATTR_COLD; const pen_t *m_bg_pen = nullptr; uint8_t m_vblank_level = 0; @@ -233,8 +233,8 @@ class ngarcade_base_state : public neogeo_base_state { } - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; virtual void io_control_w(offs_t offset, uint8_t data) override; void set_save_ram_unlock(int state); @@ -247,7 +247,7 @@ class ngarcade_base_state : public neogeo_base_state void neogeo_arcade(machine_config &config); void neogeo_mono(machine_config &config); - void neogeo_main_map(address_map &map); + void neogeo_main_map(address_map &map) ATTR_COLD; private: required_shared_ptr m_save_ram; @@ -272,9 +272,9 @@ class aes_base_state : public neogeo_base_state uint16_t aes_in2_r(); - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; - void aes_base_main_map(address_map &map); + void aes_base_main_map(address_map &map) ATTR_COLD; private: required_ioport m_io_in2; diff --git a/src/mame/neogeo/neogeo_spr.h b/src/mame/neogeo/neogeo_spr.h index 0c32479ebf7..c7791ca7851 100644 --- a/src/mame/neogeo/neogeo_spr.h +++ b/src/mame/neogeo/neogeo_spr.h @@ -78,8 +78,8 @@ class neosprite_base_device : public device_t, public device_video_interface 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; uint32_t get_region_mask(uint8_t* rgn, uint32_t rgn_size); uint8_t* m_region_sprites = nullptr; uint32_t m_region_sprites_size = 0; uint8_t* m_region_fixed = nullptr; uint32_t m_region_fixed_size = 0; @@ -132,7 +132,7 @@ class neosprite_midas_device : public neosprite_base_device virtual void set_sprite_region(uint8_t* region_sprites, uint32_t region_sprites_size) override; protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; }; diff --git a/src/mame/neogeo/neogeocd.cpp b/src/mame/neogeo/neogeocd.cpp index 1c2c7222778..d856c6ada8b 100644 --- a/src/mame/neogeo/neogeocd.cpp +++ b/src/mame/neogeo/neogeocd.cpp @@ -130,15 +130,15 @@ class ngcd_state : public aes_base_state std::unique_ptr m_fix_ram; void neocd_ntsc(machine_config &config); - void neocd_audio_io_map(address_map &map); - void neocd_audio_map(address_map &map); - void neocd_main_map(address_map &map); - void neocd_vector_map(address_map &map); - void neocd_ym_map(address_map &map); + void neocd_audio_io_map(address_map &map) ATTR_COLD; + void neocd_audio_map(address_map &map) ATTR_COLD; + void neocd_main_map(address_map &map) ATTR_COLD; + void neocd_vector_map(address_map &map) ATTR_COLD; + void neocd_ym_map(address_map &map) ATTR_COLD; protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; int32_t SekIdle(int32_t nCycles); }; diff --git a/src/mame/neogeo/neopcb.cpp b/src/mame/neogeo/neopcb.cpp index 9a378cbd17f..7faf2715cc9 100644 --- a/src/mame/neogeo/neopcb.cpp +++ b/src/mame/neogeo/neopcb.cpp @@ -36,7 +36,7 @@ class neopcb_state : public ngarcade_base_state protected: // device overrides - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; virtual void device_post_load() override; diff --git a/src/mame/neogeo/ng_memcard.h b/src/mame/neogeo/ng_memcard.h index f1faa8d9386..7abbf70d8b5 100644 --- a/src/mame/neogeo/ng_memcard.h +++ b/src/mame/neogeo/ng_memcard.h @@ -40,7 +40,7 @@ class ng_memcard_device : public device_t, public device_memcard_image_interface protected: // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: uint8_t m_memcard_data[0x800]; diff --git a/src/mame/netronics/elf.h b/src/mame/netronics/elf.h index 857b40093ea..fa417950b85 100644 --- a/src/mame/netronics/elf.h +++ b/src/mame/netronics/elf.h @@ -58,10 +58,10 @@ class elf2_state : public driver_device template void digit_w(uint8_t data) { m_7segs[N] = data; } DECLARE_QUICKLOAD_LOAD_MEMBER( quickload_cb ); - void elf2_io(address_map &map); - void elf2_mem(address_map &map); + void elf2_io(address_map &map) ATTR_COLD; + void elf2_mem(address_map &map) ATTR_COLD; - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; required_device m_maincpu; required_device m_vdc; diff --git a/src/mame/netronics/exp85.cpp b/src/mame/netronics/exp85.cpp index 2543294ea4b..66c5c5f9237 100644 --- a/src/mame/netronics/exp85.cpp +++ b/src/mame/netronics/exp85.cpp @@ -85,7 +85,7 @@ class exp85_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER( trigger_rst75 ); private: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; uint8_t i8355_a_r(); void i8355_a_w(uint8_t data); @@ -94,8 +94,8 @@ class exp85_state : public driver_device void status_out(u8 status); - void exp85_io(address_map &map); - void exp85_mem(address_map &map); + void exp85_io(address_map &map) ATTR_COLD; + void exp85_mem(address_map &map) ATTR_COLD; void to_change(int to); diff --git a/src/mame/next/next.h b/src/mame/next/next.h index f3c9d966618..be5bef74d0f 100644 --- a/src/mame/next/next.h +++ b/src/mame/next/next.h @@ -74,8 +74,8 @@ class next_state : public driver_device optional_device fdc; // 040 only optional_device floppy0; // 040 only - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); @@ -147,17 +147,17 @@ class next_state : public driver_device void vblank_w(int state); void ncr53c90(device_t *device); - void next_0b_m_mem(address_map &map); - void next_0b_m_mo_mem(address_map &map); - void next_0b_m_nofdc_mem(address_map &map); - void next_0c_c_mem(address_map &map); - void next_0c_m_mem(address_map &map); - void next_0c_c_mo_mem(address_map &map); - void next_0c_m_mo_mem(address_map &map); - void next_2c_c_mem(address_map &map); - void next_fdc_mem(address_map &map); - void next_mo_mem(address_map &map); - void next_mem(address_map &map); + void next_0b_m_mem(address_map &map) ATTR_COLD; + void next_0b_m_mo_mem(address_map &map) ATTR_COLD; + void next_0b_m_nofdc_mem(address_map &map) ATTR_COLD; + void next_0c_c_mem(address_map &map) ATTR_COLD; + void next_0c_m_mem(address_map &map) ATTR_COLD; + void next_0c_c_mo_mem(address_map &map) ATTR_COLD; + void next_0c_m_mo_mem(address_map &map) ATTR_COLD; + void next_2c_c_mem(address_map &map) ATTR_COLD; + void next_fdc_mem(address_map &map) ATTR_COLD; + void next_mo_mem(address_map &map) ATTR_COLD; + void next_mem(address_map &map) ATTR_COLD; struct dma_slot { uint32_t start = 0; diff --git a/src/mame/next/nextkbd.h b/src/mame/next/nextkbd.h index 308779772e0..8585209b7cf 100644 --- a/src/mame/next/nextkbd.h +++ b/src/mame/next/nextkbd.h @@ -14,7 +14,7 @@ class nextkbd_device : public device_t { auto int_power_wr_callback() { return int_power_cb.bind(); } auto int_nmi_wr_callback() { return int_nmi_cb.bind(); } - void amap(address_map &map); + void amap(address_map &map) ATTR_COLD; uint8_t status_snd_r(); uint8_t status_kms_r(); @@ -33,9 +33,9 @@ class nextkbd_device : public device_t { DECLARE_INPUT_CHANGED_MEMBER(update); protected: - virtual void device_start() override; - virtual void device_reset() override; - virtual ioport_constructor device_input_ports() const override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; TIMER_CALLBACK_MEMBER(update_tick); diff --git a/src/mame/next/nextmo.h b/src/mame/next/nextmo.h index d60cf5c05ef..84e9e3affb8 100644 --- a/src/mame/next/nextmo.h +++ b/src/mame/next/nextmo.h @@ -14,7 +14,7 @@ class nextmo_device : public device_t auto irq_wr_callback() { return irq_cb.bind(); } auto drq_wr_callback() { return drq_cb.bind(); } - void map(address_map &map); + void map(address_map &map) ATTR_COLD; uint8_t r4_r(); void r4_w(uint8_t data); @@ -39,8 +39,8 @@ class nextmo_device : public device_t void dma_w(uint8_t data); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: uint8_t sector[0x510]; diff --git a/src/mame/nichibutsu/armedf.h b/src/mame/nichibutsu/armedf.h index e2b04bf03b3..af58ed18c35 100644 --- a/src/mame/nichibutsu/armedf.h +++ b/src/mame/nichibutsu/armedf.h @@ -57,8 +57,8 @@ class armedf_state : public driver_device void kozure(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; void legion_common(machine_config &config); void video_config(machine_config &config, int hchar_start, int vstart, int vend); @@ -149,24 +149,24 @@ class armedf_state : public driver_device void armedf_drawgfx(bitmap_ind16 &dest_bmp, const rectangle &clip, gfx_element *gfx, u32 code, u32 color, u32 clut, int flipx, int flipy, int offsx, int offsy, bitmap_ind8 &primap, u32 pmask, int transparent_color); - void common_map(address_map &map); - void armedf_map(address_map &map); - void cclimbr2_map(address_map &map); - void cclimbr2_soundmap(address_map &map); - void kozure_map(address_map &map); - void legion_common_map(address_map &map); - void legion_map(address_map &map); - void legionjb_map(address_map &map); - void legionjb2_map(address_map &map); - void sound_3526_portmap(address_map &map); - void sound_map(address_map &map); - void sound_portmap(address_map &map); - void terraf_common_map(address_map &map); - void terraf_map(address_map &map); - void terrafb_map(address_map &map); - void terrafjb_map(address_map &map); - void terrafjb_extraz80_map(address_map &map); - void terrafjb_extraz80_portmap(address_map &map); + void common_map(address_map &map) ATTR_COLD; + void armedf_map(address_map &map) ATTR_COLD; + void cclimbr2_map(address_map &map) ATTR_COLD; + void cclimbr2_soundmap(address_map &map) ATTR_COLD; + void kozure_map(address_map &map) ATTR_COLD; + void legion_common_map(address_map &map) ATTR_COLD; + void legion_map(address_map &map) ATTR_COLD; + void legionjb_map(address_map &map) ATTR_COLD; + void legionjb2_map(address_map &map) ATTR_COLD; + void sound_3526_portmap(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; + void sound_portmap(address_map &map) ATTR_COLD; + void terraf_common_map(address_map &map) ATTR_COLD; + void terraf_map(address_map &map) ATTR_COLD; + void terrafb_map(address_map &map) ATTR_COLD; + void terrafjb_map(address_map &map) ATTR_COLD; + void terrafjb_extraz80_map(address_map &map) ATTR_COLD; + void terrafjb_extraz80_portmap(address_map &map) ATTR_COLD; }; class bigfghtr_state : public armedf_state @@ -190,9 +190,9 @@ class bigfghtr_state : public armedf_state u8 main_sharedram_r(offs_t offset); void mcu_spritelist_w(offs_t offset, u8 data); - void bigfghtr_map(address_map &map); - void bigfghtr_mcu_io_map(address_map &map); - void bigfghtr_mcu_map(address_map &map); + void bigfghtr_map(address_map &map) ATTR_COLD; + void bigfghtr_mcu_io_map(address_map &map) ATTR_COLD; + void bigfghtr_mcu_map(address_map &map) ATTR_COLD; }; #endif // MAME_NICHIBUTSU_ARMEDF_H diff --git a/src/mame/nichibutsu/cclimber.h b/src/mame/nichibutsu/cclimber.h index f01eba63959..d03748a10cf 100644 --- a/src/mame/nichibutsu/cclimber.h +++ b/src/mame/nichibutsu/cclimber.h @@ -50,9 +50,9 @@ class cclimber_state : public driver_device void rpatrol(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; virtual void machine_reset() override { m_maincpu->pulse_input_line(INPUT_LINE_RESET, attotime::zero); } - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; required_device m_maincpu; optional_device m_audiocpu; @@ -73,7 +73,7 @@ class cclimber_state : public driver_device void flip_screen_x_w(int state); void flip_screen_y_w(int state); - void cclimber_portmap(address_map &map); + void cclimber_portmap(address_map &map) ATTR_COLD; void vblank_irq(int state); @@ -106,12 +106,12 @@ class cclimber_state : public driver_device void cclimber_draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect, gfx_element *gfx); void cclimber_decode(const uint8_t convtable[8][16]); - void bagmanf_map(address_map &map); - void cannonb_map(address_map &map); - void cclimber_map(address_map &map); - void decrypted_opcodes_map(address_map &map); - void rpatrol_map(address_map &map); - void rpatrol_portmap(address_map &map); + void bagmanf_map(address_map &map) ATTR_COLD; + void cannonb_map(address_map &map) ATTR_COLD; + void cclimber_map(address_map &map) ATTR_COLD; + void decrypted_opcodes_map(address_map &map) ATTR_COLD; + void rpatrol_map(address_map &map) ATTR_COLD; + void rpatrol_portmap(address_map &map) ATTR_COLD; }; class swimmer_state : public cclimber_state @@ -128,7 +128,7 @@ class swimmer_state : public cclimber_state void guzzler(machine_config &config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: optional_shared_ptr m_swimmer_background_color; @@ -139,12 +139,12 @@ class swimmer_state : public cclimber_state void sidebg_enable_w(int state); void palette_bank_w(int state); - void swimmer_root_map(address_map &map); - void swimmer_map(address_map &map); - void swimmer_audio_map(address_map &map); - void swimmer_audio_portmap(address_map &map); - void au_map(address_map &map); - void guzzler_map(address_map &map); + void swimmer_root_map(address_map &map) ATTR_COLD; + void swimmer_map(address_map &map) ATTR_COLD; + void swimmer_audio_map(address_map &map) ATTR_COLD; + void swimmer_audio_portmap(address_map &map) ATTR_COLD; + void au_map(address_map &map) ATTR_COLD; + void guzzler_map(address_map &map) ATTR_COLD; void swimmer_palette(palette_device &palette) const; void swimmer_draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect, gfx_element* gfx); @@ -176,7 +176,7 @@ class toprollr_state : public cclimber_state void init_toprollr(); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: optional_shared_ptr m_toprollr_bg_videoram; @@ -184,8 +184,8 @@ class toprollr_state : public cclimber_state required_memory_bank m_bank1; required_memory_bank m_bank1d; - void toprollr_decrypted_opcodes_map(address_map &map); - void toprollr_map(address_map &map); + void toprollr_decrypted_opcodes_map(address_map &map) ATTR_COLD; + void toprollr_map(address_map &map) ATTR_COLD; void toprollr_palette(palette_device &palette) const; void toprollr_draw_bigsprite(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); @@ -216,11 +216,11 @@ class yamato_state : public cclimber_state uint8_t yamato_p0_r(); uint8_t yamato_p1_r(); - void yamato_map(address_map &map); - void yamato_decrypted_opcodes_map(address_map &map); - void yamato_portmap(address_map &map); - void yamato_audio_map(address_map &map); - void yamato_audio_portmap(address_map &map); + void yamato_map(address_map &map) ATTR_COLD; + void yamato_decrypted_opcodes_map(address_map &map) ATTR_COLD; + void yamato_portmap(address_map &map) ATTR_COLD; + void yamato_audio_map(address_map &map) ATTR_COLD; + void yamato_audio_portmap(address_map &map) ATTR_COLD; void yamato_palette(palette_device &palette) const; uint32_t screen_update_yamato(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); diff --git a/src/mame/nichibutsu/clshroad.cpp b/src/mame/nichibutsu/clshroad.cpp index adc7c84493e..6c8c7478d4e 100644 --- a/src/mame/nichibutsu/clshroad.cpp +++ b/src/mame/nichibutsu/clshroad.cpp @@ -85,9 +85,9 @@ class clshroad_state : public driver_device void clshroad(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; required_device m_maincpu; required_device m_audiocpu; @@ -130,8 +130,8 @@ class clshroad_state : public driver_device INTERRUPT_GEN_MEMBER(vblank_irq); INTERRUPT_GEN_MEMBER(half_vblank_irq); INTERRUPT_GEN_MEMBER(sound_timer_irq); - void main_map(address_map &map); - void sound_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; }; class firebatl_state : public clshroad_state @@ -146,7 +146,7 @@ class firebatl_state : public clshroad_state void init_firebatl(); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: TILE_GET_INFO_MEMBER(get_tile_info_1); diff --git a/src/mame/nichibutsu/cop01.cpp b/src/mame/nichibutsu/cop01.cpp index 29f1d505ac3..728e4a5d45e 100644 --- a/src/mame/nichibutsu/cop01.cpp +++ b/src/mame/nichibutsu/cop01.cpp @@ -92,9 +92,9 @@ class cop01_state : public driver_device void cop01(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; uint8_t sound_command_r(); @@ -133,10 +133,10 @@ class cop01_state : public driver_device void palette(palette_device &palette) const; uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); - void audio_io_map(address_map &map); - void main_map(address_map &map); - void io_map(address_map &map); - void sound_map(address_map &map); + void audio_io_map(address_map &map) ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; }; class mightguy_state : public cop01_state @@ -155,7 +155,7 @@ class mightguy_state : public cop01_state void init_mightguy(); private: - void audio_io_map(address_map &map); + void audio_io_map(address_map &map) ATTR_COLD; required_device m_prot; diff --git a/src/mame/nichibutsu/dacholer.cpp b/src/mame/nichibutsu/dacholer.cpp index 36acbec34a8..03b7b8bae3d 100644 --- a/src/mame/nichibutsu/dacholer.cpp +++ b/src/mame/nichibutsu/dacholer.cpp @@ -87,17 +87,17 @@ class dacholer_state : public driver_device INTERRUPT_GEN_MEMBER(sound_irq); void draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect ); void adpcm_int(int state); - void itaten_main_map(address_map &map); - void itaten_snd_io_map(address_map &map); - void itaten_snd_map(address_map &map); - void main_io_map(address_map &map); - void main_map(address_map &map); - void snd_io_map(address_map &map); - void snd_map(address_map &map); - - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + void itaten_main_map(address_map &map) ATTR_COLD; + void itaten_snd_io_map(address_map &map) ATTR_COLD; + void itaten_snd_map(address_map &map) ATTR_COLD; + void main_io_map(address_map &map) ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; + void snd_io_map(address_map &map) ATTR_COLD; + void snd_map(address_map &map) ATTR_COLD; + + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; /* devices */ required_device m_maincpu; diff --git a/src/mame/nichibutsu/galivan.h b/src/mame/nichibutsu/galivan.h index 59a48dc0bf2..4209bd46d70 100644 --- a/src/mame/nichibutsu/galivan.h +++ b/src/mame/nichibutsu/galivan.h @@ -48,7 +48,7 @@ class galivan_state : public driver_device void init_youmab(); protected: - void io_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; void galivan_common(machine_config &config); void video_config(machine_config &config); @@ -112,11 +112,11 @@ class galivan_state : public driver_device required_device m_ymfilter; memory_bank_creator m_rombank; - void galivan_map(address_map &map); - void ninjemak_io_map(address_map &map); - void ninjemak_map(address_map &map); - void sound_io_map(address_map &map); - void sound_map(address_map &map); + void galivan_map(address_map &map) ATTR_COLD; + void ninjemak_io_map(address_map &map) ATTR_COLD; + void ninjemak_map(address_map &map) ATTR_COLD; + void sound_io_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; }; class dangarj_state : public galivan_state @@ -132,7 +132,7 @@ class dangarj_state : public galivan_state private: required_device m_prot; - void dangarj_io_map(address_map &map); + void dangarj_io_map(address_map &map) ATTR_COLD; }; #endif // MAME_NICHIBUTSU_GALIVAN_H diff --git a/src/mame/nichibutsu/gomoku.cpp b/src/mame/nichibutsu/gomoku.cpp index 88a40417763..b7db2c69707 100644 --- a/src/mame/nichibutsu/gomoku.cpp +++ b/src/mame/nichibutsu/gomoku.cpp @@ -51,7 +51,7 @@ class gomoku_state : public driver_device void gomoku(machine_config &config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: required_shared_ptr m_videoram; @@ -78,7 +78,7 @@ class gomoku_state : public driver_device TILE_GET_INFO_MEMBER(get_fg_tile_info); void palette(palette_device &palette) const; uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void prg_map(address_map &map); + void prg_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/nichibutsu/gomoku_a.h b/src/mame/nichibutsu/gomoku_a.h index 2236ea6ad75..87497169cf8 100644 --- a/src/mame/nichibutsu/gomoku_a.h +++ b/src/mame/nichibutsu/gomoku_a.h @@ -20,7 +20,7 @@ class gomoku_sound_device : public device_t, protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // sound stream update overrides virtual void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; diff --git a/src/mame/nichibutsu/hrdvd.cpp b/src/mame/nichibutsu/hrdvd.cpp index 0b040071fff..e06c98f887d 100644 --- a/src/mame/nichibutsu/hrdvd.cpp +++ b/src/mame/nichibutsu/hrdvd.cpp @@ -124,13 +124,13 @@ class hrdvd_state : public driver_device void ata_irq(int state); void ata_drq(int state); - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; void general_init(int patchaddress, int patchvalue); void hrdvd(machine_config &config); - void hrdvd_map(address_map &map); - void hrdvd_sub_map(address_map &map); + void hrdvd_map(address_map &map) ATTR_COLD; + void hrdvd_sub_map(address_map &map) ATTR_COLD; static void dvdrom_config(device_t *device); }; diff --git a/src/mame/nichibutsu/hyhoo.cpp b/src/mame/nichibutsu/hyhoo.cpp index 9825589791a..6d9cb318def 100644 --- a/src/mame/nichibutsu/hyhoo.cpp +++ b/src/mame/nichibutsu/hyhoo.cpp @@ -68,7 +68,7 @@ class hyhoo_state : public driver_device void hyhoo2(machine_config &config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -97,8 +97,8 @@ class hyhoo_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); void gfxdraw(); - void io_map(address_map &map); - void program_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void program_map(address_map &map) ATTR_COLD; TIMER_CALLBACK_MEMBER(clear_busy_flag); }; diff --git a/src/mame/nichibutsu/jangou.cpp b/src/mame/nichibutsu/jangou.cpp index d2a6c11acea..303e6a9667f 100644 --- a/src/mame/nichibutsu/jangou.cpp +++ b/src/mame/nichibutsu/jangou.cpp @@ -184,10 +184,10 @@ class jngolady_state : public jangou_state_base void vclk_cb(int state); - void jngolady_cpu0_map(address_map &map); - void jngolady_cpu1_io(address_map &map); - void jngolady_cpu1_map(address_map &map); - void nsc_map(address_map &map); + void jngolady_cpu0_map(address_map &map) ATTR_COLD; + void jngolady_cpu1_io(address_map &map) ATTR_COLD; + void jngolady_cpu1_map(address_map &map) ATTR_COLD; + void nsc_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/nichibutsu/magmax.cpp b/src/mame/nichibutsu/magmax.cpp index 075248e06f0..72f78b7bc0f 100644 --- a/src/mame/nichibutsu/magmax.cpp +++ b/src/mame/nichibutsu/magmax.cpp @@ -78,9 +78,9 @@ class magmax_state : public driver_device void magmax(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_shared_ptr m_videoram; @@ -117,9 +117,9 @@ class magmax_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); TIMER_CALLBACK_MEMBER(scanline_callback); - void main_map(address_map &map); - void sound_io_map(address_map &map); - void sound_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_io_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/nichibutsu/myvision.cpp b/src/mame/nichibutsu/myvision.cpp index 06ff7967428..b8be6ed0ac6 100644 --- a/src/mame/nichibutsu/myvision.cpp +++ b/src/mame/nichibutsu/myvision.cpp @@ -60,11 +60,11 @@ class myvision_state : public driver_device void ay_port_a_w(uint8_t data); void ay_port_b_w(uint8_t data); - void myvision_io(address_map &map); - void myvision_mem(address_map &map); + void myvision_io(address_map &map) ATTR_COLD; + void myvision_mem(address_map &map) ATTR_COLD; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; required_device m_maincpu; required_device m_cart; uint8_t m_column; diff --git a/src/mame/nichibutsu/nb1412m2.h b/src/mame/nichibutsu/nb1412m2.h index bfec1041986..b99d2ddc5c3 100644 --- a/src/mame/nichibutsu/nb1412m2.h +++ b/src/mame/nichibutsu/nb1412m2.h @@ -31,14 +31,14 @@ class nb1412m2_device : public device_t, public device_memory_interface auto dac_callback() { return m_dac_cb.bind(); } - void nb1412m2_map(address_map &map); + void nb1412m2_map(address_map &map) ATTR_COLD; protected: // device-level overrides // virtual void device_validity_check(validity_checker &valid) const override; -// virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; +// virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; virtual space_config_vector memory_space_config() const override; TIMER_CALLBACK_MEMBER(main_timer_tick); diff --git a/src/mame/nichibutsu/nb1413m3.h b/src/mame/nichibutsu/nb1413m3.h index d259cc852e0..4564b27d761 100644 --- a/src/mame/nichibutsu/nb1413m3.h +++ b/src/mame/nichibutsu/nb1413m3.h @@ -176,8 +176,8 @@ class nb1413m3_device : public device_t 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; private: required_region_ptr m_blitter_rom; diff --git a/src/mame/nichibutsu/nb1414m4.h b/src/mame/nichibutsu/nb1414m4.h index c7193dc3a78..262268e560b 100644 --- a/src/mame/nichibutsu/nb1414m4.h +++ b/src/mame/nichibutsu/nb1414m4.h @@ -17,8 +17,8 @@ class nb1414m4_device : public device_t, public device_video_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; private: void dma(uint16_t src, uint16_t dst, uint16_t size, uint8_t condition, uint8_t *vram); diff --git a/src/mame/nichibutsu/nbmj8688.h b/src/mame/nichibutsu/nbmj8688.h index 6e70eff389e..ffda81a31f2 100644 --- a/src/mame/nichibutsu/nbmj8688.h +++ b/src/mame/nichibutsu/nbmj8688.h @@ -136,22 +136,22 @@ class nbmj8688_state : public driver_device void common_video_start(); void postload(); - void barline_io_map(address_map &map); - void bikkuri_map(address_map &map); - void bikkuri_io_map(address_map &map); - void crystalg_io_map(address_map &map); - void iemoto_io_map(address_map &map); - void kaguya_io_map(address_map &map); - void mjgaiden_io_map(address_map &map); - void mjsikaku_io_map(address_map &map); - void mjsikaku_map(address_map &map); - void mmsikaku_io_map(address_map &map); - void ojousan_map(address_map &map); - void otonano_io_map(address_map &map); - void p16bit_LCD_io_map(address_map &map); - void secolove_io_map(address_map &map); - void secolove_map(address_map &map); - void seiha_io_map(address_map &map); + void barline_io_map(address_map &map) ATTR_COLD; + void bikkuri_map(address_map &map) ATTR_COLD; + void bikkuri_io_map(address_map &map) ATTR_COLD; + void crystalg_io_map(address_map &map) ATTR_COLD; + void iemoto_io_map(address_map &map) ATTR_COLD; + void kaguya_io_map(address_map &map) ATTR_COLD; + void mjgaiden_io_map(address_map &map) ATTR_COLD; + void mjsikaku_io_map(address_map &map) ATTR_COLD; + void mjsikaku_map(address_map &map) ATTR_COLD; + void mmsikaku_io_map(address_map &map) ATTR_COLD; + void ojousan_map(address_map &map) ATTR_COLD; + void otonano_io_map(address_map &map) ATTR_COLD; + void p16bit_LCD_io_map(address_map &map) ATTR_COLD; + void secolove_io_map(address_map &map) ATTR_COLD; + void secolove_map(address_map &map) ATTR_COLD; + void seiha_io_map(address_map &map) ATTR_COLD; TIMER_CALLBACK_MEMBER(clear_busy_flag); }; diff --git a/src/mame/nichibutsu/nbmj8891.h b/src/mame/nichibutsu/nbmj8891.h index 6405eedb4fe..1f34521b346 100644 --- a/src/mame/nichibutsu/nbmj8891.h +++ b/src/mame/nichibutsu/nbmj8891.h @@ -113,7 +113,7 @@ class nbmj8891_state : public driver_device void taiwanmb_gfxflag_w(uint8_t data); void taiwanmb_mcu_w(uint8_t data); - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; DECLARE_VIDEO_START(_1layer); uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); @@ -125,30 +125,30 @@ class nbmj8891_state : public driver_device void common_save_state(); void postload(); - void bananadr_io_map(address_map &map); - void club90s_map(address_map &map); - void gionbana_io_map(address_map &map); - void gionbana_map(address_map &map); - void hanamomo_io_map(address_map &map); - void hanamomo_map(address_map &map); - void hanaoji_map(address_map &map); - void hnageman_map(address_map &map); - void hnxmasev_map(address_map &map); - void lovehous_io_map(address_map &map); - void lovehous_map(address_map &map); - void maiko_io_map(address_map &map); - void maiko_map(address_map &map); - void mgion_io_map(address_map &map); - void mgion_map(address_map &map); - void mmaiko_map(address_map &map); - void msjiken_io_map(address_map &map); - void omotesnd_io_map(address_map &map); - void omotesnd_map(address_map &map); - void scandal_io_map(address_map &map); - void scandalm_io_map(address_map &map); - void scandalm_map(address_map &map); - void taiwanmb_io_map(address_map &map); - void taiwanmb_map(address_map &map); + void bananadr_io_map(address_map &map) ATTR_COLD; + void club90s_map(address_map &map) ATTR_COLD; + void gionbana_io_map(address_map &map) ATTR_COLD; + void gionbana_map(address_map &map) ATTR_COLD; + void hanamomo_io_map(address_map &map) ATTR_COLD; + void hanamomo_map(address_map &map) ATTR_COLD; + void hanaoji_map(address_map &map) ATTR_COLD; + void hnageman_map(address_map &map) ATTR_COLD; + void hnxmasev_map(address_map &map) ATTR_COLD; + void lovehous_io_map(address_map &map) ATTR_COLD; + void lovehous_map(address_map &map) ATTR_COLD; + void maiko_io_map(address_map &map) ATTR_COLD; + void maiko_map(address_map &map) ATTR_COLD; + void mgion_io_map(address_map &map) ATTR_COLD; + void mgion_map(address_map &map) ATTR_COLD; + void mmaiko_map(address_map &map) ATTR_COLD; + void msjiken_io_map(address_map &map) ATTR_COLD; + void omotesnd_io_map(address_map &map) ATTR_COLD; + void omotesnd_map(address_map &map) ATTR_COLD; + void scandal_io_map(address_map &map) ATTR_COLD; + void scandalm_io_map(address_map &map) ATTR_COLD; + void scandalm_map(address_map &map) ATTR_COLD; + void taiwanmb_io_map(address_map &map) ATTR_COLD; + void taiwanmb_map(address_map &map) ATTR_COLD; TIMER_CALLBACK_MEMBER(clear_busy_flag); }; diff --git a/src/mame/nichibutsu/nbmj8900.h b/src/mame/nichibutsu/nbmj8900.h index 1f09eacd707..087ed7328e0 100644 --- a/src/mame/nichibutsu/nbmj8900.h +++ b/src/mame/nichibutsu/nbmj8900.h @@ -72,7 +72,7 @@ class nbmj8900_state : public driver_device void vramsel_w(uint8_t data); void romsel_w(uint8_t data); - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void vramflip(int vram); @@ -81,9 +81,9 @@ class nbmj8900_state : public driver_device void gfxdraw(); void postload(); - void ohpaipee_io_map(address_map &map); - void ohpaipee_map(address_map &map); - void togenkyo_map(address_map &map); + void ohpaipee_io_map(address_map &map) ATTR_COLD; + void ohpaipee_map(address_map &map) ATTR_COLD; + void togenkyo_map(address_map &map) ATTR_COLD; TIMER_CALLBACK_MEMBER(clear_busy_flag); }; diff --git a/src/mame/nichibutsu/nbmj8991.h b/src/mame/nichibutsu/nbmj8991.h index 6df7ee152e2..b56165ec642 100644 --- a/src/mame/nichibutsu/nbmj8991.h +++ b/src/mame/nichibutsu/nbmj8991.h @@ -84,8 +84,8 @@ class nbmj8991_state : public driver_device uint8_t clut_r(offs_t offset); void clut_w(offs_t offset, uint8_t data); - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; uint32_t screen_update_type1(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); uint32_t screen_update_type2(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); @@ -95,21 +95,21 @@ class nbmj8991_state : public driver_device void postload(); - void av2mj1bb_io_map(address_map &map); - void av2mj1bb_map(address_map &map); - void av2mj2rg_map(address_map &map); - void galkaika_map(address_map &map); - void galkoku_io_map(address_map &map); - void galkoku_map(address_map &map); - void hyouban_io_map(address_map &map); - void mjlstory_map(address_map &map); - void nbmj8991_sound_io_map(address_map &map); - void nbmj8991_sound_map(address_map &map); - void pstadium_io_map(address_map &map); - void pstadium_map(address_map &map); - void tokyogal_map(address_map &map); - void triplew1_map(address_map &map); - void triplew2_map(address_map &map); + void av2mj1bb_io_map(address_map &map) ATTR_COLD; + void av2mj1bb_map(address_map &map) ATTR_COLD; + void av2mj2rg_map(address_map &map) ATTR_COLD; + void galkaika_map(address_map &map) ATTR_COLD; + void galkoku_io_map(address_map &map) ATTR_COLD; + void galkoku_map(address_map &map) ATTR_COLD; + void hyouban_io_map(address_map &map) ATTR_COLD; + void mjlstory_map(address_map &map) ATTR_COLD; + void nbmj8991_sound_io_map(address_map &map) ATTR_COLD; + void nbmj8991_sound_map(address_map &map) ATTR_COLD; + void pstadium_io_map(address_map &map) ATTR_COLD; + void pstadium_map(address_map &map) ATTR_COLD; + void tokyogal_map(address_map &map) ATTR_COLD; + void triplew1_map(address_map &map) ATTR_COLD; + void triplew2_map(address_map &map) ATTR_COLD; TIMER_CALLBACK_MEMBER(clear_busy_flag); }; diff --git a/src/mame/nichibutsu/nbmj9195.h b/src/mame/nichibutsu/nbmj9195.h index f07800276b2..65e8ff45c55 100644 --- a/src/mame/nichibutsu/nbmj9195.h +++ b/src/mame/nichibutsu/nbmj9195.h @@ -77,9 +77,9 @@ class nbmj9195_state : public driver_device void otatidai(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; TIMER_CALLBACK_MEMBER(clear_busy_flag); @@ -159,37 +159,37 @@ class nbmj9195_state : public driver_device void gfxdraw(int vram); void postload(); - void cmehyou_io_map(address_map &map); - void gal10ren_io_map(address_map &map); - void imekura_io_map(address_map &map); - void jituroku_io_map(address_map &map); - void koinomp_io_map(address_map &map); - void koinomp_map(address_map &map); - void mjegolf_io_map(address_map &map); - void mjegolf_map(address_map &map); - void mjgottsu_io_map(address_map &map); - void mjkoiura_io_map(address_map &map); - void mjlaman_io_map(address_map &map); - void mjuraden_io_map(address_map &map); - void mjuraden_map(address_map &map); - void mkeibaou_io_map(address_map &map); - void mkoiuraa_io_map(address_map &map); - void mmehyou_io_map(address_map &map); - void mscoutm_io_map(address_map &map); - void mscoutm_map(address_map &map); - void ngpgal_io_map(address_map &map); - void ngpgal_map(address_map &map); - void otatidai_io_map(address_map &map); - void pachiten_io_map(address_map &map); - void patimono_io_map(address_map &map); - void psailor1_io_map(address_map &map); - void psailor2_io_map(address_map &map); - void renaiclb_io_map(address_map &map); - void sailorwr_io_map(address_map &map); - void sailorws_io_map(address_map &map); - void sailorws_map(address_map &map); - void yosimotm_io_map(address_map &map); - void yosimoto_io_map(address_map &map); + void cmehyou_io_map(address_map &map) ATTR_COLD; + void gal10ren_io_map(address_map &map) ATTR_COLD; + void imekura_io_map(address_map &map) ATTR_COLD; + void jituroku_io_map(address_map &map) ATTR_COLD; + void koinomp_io_map(address_map &map) ATTR_COLD; + void koinomp_map(address_map &map) ATTR_COLD; + void mjegolf_io_map(address_map &map) ATTR_COLD; + void mjegolf_map(address_map &map) ATTR_COLD; + void mjgottsu_io_map(address_map &map) ATTR_COLD; + void mjkoiura_io_map(address_map &map) ATTR_COLD; + void mjlaman_io_map(address_map &map) ATTR_COLD; + void mjuraden_io_map(address_map &map) ATTR_COLD; + void mjuraden_map(address_map &map) ATTR_COLD; + void mkeibaou_io_map(address_map &map) ATTR_COLD; + void mkoiuraa_io_map(address_map &map) ATTR_COLD; + void mmehyou_io_map(address_map &map) ATTR_COLD; + void mscoutm_io_map(address_map &map) ATTR_COLD; + void mscoutm_map(address_map &map) ATTR_COLD; + void ngpgal_io_map(address_map &map) ATTR_COLD; + void ngpgal_map(address_map &map) ATTR_COLD; + void otatidai_io_map(address_map &map) ATTR_COLD; + void pachiten_io_map(address_map &map) ATTR_COLD; + void patimono_io_map(address_map &map) ATTR_COLD; + void psailor1_io_map(address_map &map) ATTR_COLD; + void psailor2_io_map(address_map &map) ATTR_COLD; + void renaiclb_io_map(address_map &map) ATTR_COLD; + void sailorwr_io_map(address_map &map) ATTR_COLD; + void sailorws_io_map(address_map &map) ATTR_COLD; + void sailorws_map(address_map &map) ATTR_COLD; + void yosimotm_io_map(address_map &map) ATTR_COLD; + void yosimoto_io_map(address_map &map) ATTR_COLD; }; #endif // MAME_NICHIBUTSU_NBMJ9195_H diff --git a/src/mame/nichibutsu/nichild.cpp b/src/mame/nichibutsu/nichild.cpp index a110995841d..efe9c3c680b 100644 --- a/src/mame/nichibutsu/nichild.cpp +++ b/src/mame/nichibutsu/nichild.cpp @@ -106,17 +106,17 @@ class nichild_state : public driver_device void porta_w(uint8_t data); void gfxbank_w(uint8_t data); - void main_map(address_map &map); - void main_io(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void main_io(address_map &map) ATTR_COLD; void soundbank_w(uint8_t data); - void audio_map(address_map &map); - void audio_io(address_map &map); + void audio_map(address_map &map) ATTR_COLD; + void audio_io(address_map &map) ATTR_COLD; // driver_device overrides - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; uint32_t m_gfx_bank = 0; uint8_t m_key_select = 0; diff --git a/src/mame/nichibutsu/nichisnd.h b/src/mame/nichibutsu/nichisnd.h index 31f972dfa08..0a6040660b8 100644 --- a/src/mame/nichibutsu/nichisnd.h +++ b/src/mame/nichibutsu/nichisnd.h @@ -29,14 +29,14 @@ class nichisnd_device : public device_t // I/O operations void sound_host_command_w(uint8_t data); - void nichisnd_io_map(address_map &map); - void nichisnd_map(address_map &map); + void nichisnd_io_map(address_map &map) ATTR_COLD; + void nichisnd_map(address_map &map) ATTR_COLD; protected: // device_t implementation - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: required_device m_soundlatch; diff --git a/src/mame/nichibutsu/nightgal.cpp b/src/mame/nichibutsu/nightgal.cpp index 0821c8da9ce..10dd0c3fa03 100644 --- a/src/mame/nichibutsu/nightgal.cpp +++ b/src/mame/nichibutsu/nightgal.cpp @@ -101,24 +101,24 @@ class nightgal_state : public driver_device void ngalsumr_prot_latch_w(uint8_t data); uint8_t ngalsumr_prot_value_r(); - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; void nightgal_palette(palette_device &palette) const; uint32_t screen_update_nightgal(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void common_nsc_map(address_map &map); - void common_sexygal_io(address_map &map); - void royalqn_io(address_map &map); - void royalqn_map(address_map &map); - void royalqn_nsc_map(address_map &map); - void sexygal_audio_map(address_map &map); - void sexygal_io(address_map &map); - void sexygal_map(address_map &map); - void sexygal_nsc_map(address_map &map); - void sgaltrop_io(address_map &map); - void sgaltrop_nsc_map(address_map &map); - void sweetgal_map(address_map &map); + void common_nsc_map(address_map &map) ATTR_COLD; + void common_sexygal_io(address_map &map) ATTR_COLD; + void royalqn_io(address_map &map) ATTR_COLD; + void royalqn_map(address_map &map) ATTR_COLD; + void royalqn_nsc_map(address_map &map) ATTR_COLD; + void sexygal_audio_map(address_map &map) ATTR_COLD; + void sexygal_io(address_map &map) ATTR_COLD; + void sexygal_map(address_map &map) ATTR_COLD; + void sexygal_nsc_map(address_map &map) ATTR_COLD; + void sgaltrop_io(address_map &map) ATTR_COLD; + void sgaltrop_nsc_map(address_map &map) ATTR_COLD; + void sweetgal_map(address_map &map) ATTR_COLD; required_ioport m_io_cr_clear; required_ioport m_io_coins; diff --git a/src/mame/nichibutsu/niyanpai.h b/src/mame/nichibutsu/niyanpai.h index 5894dffbb80..24592461aab 100644 --- a/src/mame/nichibutsu/niyanpai.h +++ b/src/mame/nichibutsu/niyanpai.h @@ -85,7 +85,7 @@ class niyanpai_state : public driver_device uint16_t musobana_inputport_0_r(); void musobana_inputport_w(uint16_t data); - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; DECLARE_MACHINE_START(musobana); uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); @@ -99,10 +99,10 @@ class niyanpai_state : public driver_device void vblank_irq(int state); - void mhhonban_map(address_map &map); - void musobana_map(address_map &map); - void niyanpai_map(address_map &map); - void zokumahj_map(address_map &map); + void mhhonban_map(address_map &map) ATTR_COLD; + void musobana_map(address_map &map) ATTR_COLD; + void niyanpai_map(address_map &map) ATTR_COLD; + void zokumahj_map(address_map &map) ATTR_COLD; TIMER_CALLBACK_MEMBER(clear_busy_flag); }; diff --git a/src/mame/nichibutsu/pastelg.cpp b/src/mame/nichibutsu/pastelg.cpp index 14799f4863a..21fed858181 100644 --- a/src/mame/nichibutsu/pastelg.cpp +++ b/src/mame/nichibutsu/pastelg.cpp @@ -66,7 +66,7 @@ class pastelg_common_state : public driver_device { } protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; required_device m_maincpu; required_device m_nb1413m3; @@ -83,7 +83,7 @@ class pastelg_common_state : public driver_device void palette(palette_device &palette) const; uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void prg_map(address_map &map); + void prg_map(address_map &map) ATTR_COLD; private: uint8_t m_blitter_destx = 0; @@ -121,7 +121,7 @@ class pastelg_state : public pastelg_common_state void romsel_w(uint8_t data); uint16_t blitter_src_addr_r(); - void io_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; }; class threeds_state : public pastelg_common_state @@ -136,7 +136,7 @@ class threeds_state : public pastelg_common_state void threeds(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_ioport_array<5> m_p1_keys; @@ -151,7 +151,7 @@ class threeds_state : public pastelg_common_state void output_w(uint8_t data); uint8_t rom_readback_r(); - void io_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/nichibutsu/seicross.cpp b/src/mame/nichibutsu/seicross.cpp index b85563df9ed..0e1395df6b4 100644 --- a/src/mame/nichibutsu/seicross.cpp +++ b/src/mame/nichibutsu/seicross.cpp @@ -92,9 +92,9 @@ class seicross_state : public driver_device void sectznt(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -133,10 +133,10 @@ class seicross_state : public driver_device void dac_w(uint8_t data); - void main_map(address_map &map); - void main_portmap(address_map &map); - void mcu_no_nvram_map(address_map &map); - void mcu_nvram_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void main_portmap(address_map &map) ATTR_COLD; + void mcu_no_nvram_map(address_map &map) ATTR_COLD; + void mcu_nvram_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/nichibutsu/shettle.cpp b/src/mame/nichibutsu/shettle.cpp index 8a5508ef6a5..3a4864ab9e5 100644 --- a/src/mame/nichibutsu/shettle.cpp +++ b/src/mame/nichibutsu/shettle.cpp @@ -57,8 +57,8 @@ class shettle_state : public driver_device void shettle(machine_config &config); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -92,8 +92,8 @@ class shettle_state : public driver_device INTERRUPT_GEN_MEMBER(vblank_irq); INTERRUPT_GEN_MEMBER(sound_timer_irq); - void main_map(address_map &map); - void sound_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/nichibutsu/terracre.cpp b/src/mame/nichibutsu/terracre.cpp index 63abd4e3579..463d71312d2 100644 --- a/src/mame/nichibutsu/terracre.cpp +++ b/src/mame/nichibutsu/terracre.cpp @@ -134,12 +134,12 @@ class terracre_state : public driver_device void ym3526(machine_config &config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; required_device m_maincpu; required_device m_audiocpu; - void amazon_base_map(address_map &map); + void amazon_base_map(address_map &map) ATTR_COLD; private: required_device m_gfxdecode; @@ -176,11 +176,11 @@ class terracre_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); - void horekidb2_map(address_map &map); - void sound_2203_io_map(address_map &map); - void sound_3526_io_map(address_map &map); - void sound_map(address_map &map); - void terracre_map(address_map &map); + void horekidb2_map(address_map &map) ATTR_COLD; + void sound_2203_io_map(address_map &map) ATTR_COLD; + void sound_3526_io_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; + void terracre_map(address_map &map) ATTR_COLD; }; class amazon_state : public terracre_state @@ -196,7 +196,7 @@ class amazon_state : public terracre_state private: required_device m_prot; - void amazon_1412m2_map(address_map &map); + void amazon_1412m2_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/nichibutsu/tubep.h b/src/mame/nichibutsu/tubep.h index 302113076f4..b1e844a50a5 100644 --- a/src/mame/nichibutsu/tubep.h +++ b/src/mame/nichibutsu/tubep.h @@ -35,19 +35,19 @@ class tubep_state : public driver_device void tubep(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; TIMER_CALLBACK_MEMBER(assert_sprite_int); - void tubep_main_map(address_map &map); - void tubep_main_portmap(address_map &map); - void tubep_second_map(address_map &map); - void tubep_second_portmap(address_map &map); - void tubep_sound_map(address_map &map); - void tubep_sound_portmap(address_map &map); + void tubep_main_map(address_map &map) ATTR_COLD; + void tubep_main_portmap(address_map &map) ATTR_COLD; + void tubep_second_map(address_map &map) ATTR_COLD; + void tubep_second_portmap(address_map &map) ATTR_COLD; + void tubep_sound_map(address_map &map) ATTR_COLD; + void tubep_sound_portmap(address_map &map) ATTR_COLD; - void nsc_map(address_map &map); + void nsc_map(address_map &map) ATTR_COLD; void coin1_counter_w(int state); void coin2_counter_w(int state); @@ -69,8 +69,8 @@ class tubep_state : public driver_device void ay8910_portB_1_w(uint8_t data); void ay8910_portA_2_w(uint8_t data); void ay8910_portB_2_w(uint8_t data); - virtual void video_start() override; - virtual void video_reset() override; + virtual void video_start() override ATTR_COLD; + virtual void video_reset() override ATTR_COLD; void palette_init(palette_device &palette); uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); virtual TIMER_CALLBACK_MEMBER(scanline_callback); @@ -131,8 +131,8 @@ class rjammer_state : public tubep_state void rjammer(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: virtual TIMER_CALLBACK_MEMBER(scanline_callback) override; @@ -153,12 +153,12 @@ class rjammer_state : public tubep_state void palette_init(palette_device &palette) const; - void rjammer_main_map(address_map &map); - void rjammer_main_portmap(address_map &map); - void rjammer_second_map(address_map &map); - void rjammer_second_portmap(address_map &map); - void rjammer_sound_map(address_map &map); - void rjammer_sound_portmap(address_map &map); + void rjammer_main_map(address_map &map) ATTR_COLD; + void rjammer_main_portmap(address_map &map) ATTR_COLD; + void rjammer_second_map(address_map &map) ATTR_COLD; + void rjammer_second_portmap(address_map &map) ATTR_COLD; + void rjammer_sound_map(address_map &map) ATTR_COLD; + void rjammer_sound_portmap(address_map &map) ATTR_COLD; required_device m_msm; required_device m_adpcm_mux; diff --git a/src/mame/nichibutsu/wiping.cpp b/src/mame/nichibutsu/wiping.cpp index 435b6d388a9..cf2d48e27d9 100644 --- a/src/mame/nichibutsu/wiping.cpp +++ b/src/mame/nichibutsu/wiping.cpp @@ -75,7 +75,7 @@ class wiping_state : public driver_device void wiping(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_maincpu; @@ -105,8 +105,8 @@ class wiping_state : public driver_device INTERRUPT_GEN_MEMBER(vblank_irq); INTERRUPT_GEN_MEMBER(sound_timer_irq); - void main_map(address_map &map); - void sound_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/nichibutsu/wiping_a.h b/src/mame/nichibutsu/wiping_a.h index 4594aecf266..7794f7884bc 100644 --- a/src/mame/nichibutsu/wiping_a.h +++ b/src/mame/nichibutsu/wiping_a.h @@ -14,7 +14,7 @@ class wiping_sound_device : public device_t, public device_sound_interface protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // sound stream update overrides virtual void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; diff --git a/src/mame/nintendo/aleck64.cpp b/src/mame/nintendo/aleck64.cpp index 0c7a7043c9b..94935040290 100644 --- a/src/mame/nintendo/aleck64.cpp +++ b/src/mame/nintendo/aleck64.cpp @@ -208,10 +208,10 @@ class aleck64_state : public n64_state uint32_t screen_update_e90(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void e90_map(address_map &map); - void n64_map(address_map &map); - void rsp_imem_map(address_map &map); - void rsp_dmem_map(address_map &map); + void e90_map(address_map &map) ATTR_COLD; + void n64_map(address_map &map) ATTR_COLD; + void rsp_imem_map(address_map &map) ATTR_COLD; + void rsp_dmem_map(address_map &map) ATTR_COLD; optional_shared_ptr m_e90_vram; optional_shared_ptr m_e90_pal; diff --git a/src/mame/nintendo/cham24.cpp b/src/mame/nintendo/cham24.cpp index 76d479c89ed..2cc295cfe8c 100644 --- a/src/mame/nintendo/cham24.cpp +++ b/src/mame/nintendo/cham24.cpp @@ -83,8 +83,8 @@ class cham24_state : public driver_device void cham24(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; @@ -105,8 +105,8 @@ class cham24_state : public driver_device void cham24_in0_w(u8 data); void cham24_mapper_w(offs_t offset, u8 data); void cham24_set_mirroring(int mirroring); - void cham24_map(address_map &map); - void cham24_ppu_map(address_map &map); + void cham24_map(address_map &map) ATTR_COLD; + void cham24_ppu_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/nintendo/compmahj.cpp b/src/mame/nintendo/compmahj.cpp index ca72e43314b..324b69c6db1 100644 --- a/src/mame/nintendo/compmahj.cpp +++ b/src/mame/nintendo/compmahj.cpp @@ -54,8 +54,8 @@ class compmahj_state : public driver_device private: required_device m_maincpu; - void main_map(address_map &map); - void io_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; u8 ita_r(); }; diff --git a/src/mame/nintendo/cothello.cpp b/src/mame/nintendo/cothello.cpp index c63b40357f4..3348a9c6c07 100644 --- a/src/mame/nintendo/cothello.cpp +++ b/src/mame/nintendo/cothello.cpp @@ -67,7 +67,7 @@ class cothello_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(insert_coin); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_maincpu; @@ -82,7 +82,7 @@ class cothello_state : public driver_device emu_timer *m_counter_timer; emu_timer *m_beeper_off; - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; u32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); diff --git a/src/mame/nintendo/dkong.h b/src/mame/nintendo/dkong.h index 5ce9d5b305c..871f29c412b 100644 --- a/src/mame/nintendo/dkong.h +++ b/src/mame/nintendo/dkong.h @@ -321,22 +321,22 @@ class dkong_state : public driver_device void memory_write_byte(offs_t offset, uint8_t data); double CD4049(double x); - void dkong3_io_map(address_map &map); - void dkong3_map(address_map &map); - void dkong3_sound1_map(address_map &map); - void dkong3_sound2_map(address_map &map); - void dkong_map(address_map &map); - void dkong_sound_io_map(address_map &map); - void dkong_sound_map(address_map &map); - void dkongjr_map(address_map &map); - void dkongjr_sound_io_map(address_map &map); - void epos_readport(address_map &map); - void radarscp1_sound_io_map(address_map &map); - - void s2650_map(address_map &map); - void s2650_io_map(address_map &map); - void s2650_data_map(address_map &map); - void spclforc_data_map(address_map &map); + void dkong3_io_map(address_map &map) ATTR_COLD; + void dkong3_map(address_map &map) ATTR_COLD; + void dkong3_sound1_map(address_map &map) ATTR_COLD; + void dkong3_sound2_map(address_map &map) ATTR_COLD; + void dkong_map(address_map &map) ATTR_COLD; + void dkong_sound_io_map(address_map &map) ATTR_COLD; + void dkong_sound_map(address_map &map) ATTR_COLD; + void dkongjr_map(address_map &map) ATTR_COLD; + void dkongjr_sound_io_map(address_map &map) ATTR_COLD; + void epos_readport(address_map &map) ATTR_COLD; + void radarscp1_sound_io_map(address_map &map) ATTR_COLD; + + void s2650_map(address_map &map) ATTR_COLD; + void s2650_io_map(address_map &map) ATTR_COLD; + void s2650_data_map(address_map &map) ATTR_COLD; + void spclforc_data_map(address_map &map) ATTR_COLD; // video/dkong.c void radarscp_step(int line_cnt); diff --git a/src/mame/nintendo/famibox.cpp b/src/mame/nintendo/famibox.cpp index 38f2ee91126..7c46068f699 100644 --- a/src/mame/nintendo/famibox.cpp +++ b/src/mame/nintendo/famibox.cpp @@ -96,8 +96,8 @@ class famibox_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(coin_inserted); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; @@ -135,8 +135,8 @@ class famibox_state : public driver_device TIMER_CALLBACK_MEMBER(famicombox_gameplay_timer_callback); void famibox_cartswitch(u8 data); void famibox_reset(); - void famibox_map(address_map &map); - void famibox_ppu_map(address_map &map); + void famibox_map(address_map &map) ATTR_COLD; + void famibox_ppu_map(address_map &map) ATTR_COLD; }; /****************************************************** diff --git a/src/mame/nintendo/gamecube.cpp b/src/mame/nintendo/gamecube.cpp index 73b5a4a54e0..b02e30c2d4f 100644 --- a/src/mame/nintendo/gamecube.cpp +++ b/src/mame/nintendo/gamecube.cpp @@ -28,10 +28,10 @@ class gamecube_state : public driver_device { } void gc(machine_config &config); - void ppc_mem(address_map &map); + void ppc_mem(address_map &map) ATTR_COLD; protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: void decrypt(uint8_t *data, unsigned size); diff --git a/src/mame/nintendo/gb.cpp b/src/mame/nintendo/gb.cpp index 704df9789ad..878bb83c878 100644 --- a/src/mame/nintendo/gb.cpp +++ b/src/mame/nintendo/gb.cpp @@ -68,8 +68,8 @@ class base_state : public driver_device static constexpr XTAL MASTER_CLOCK = 4.194304_MHz_XTAL; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; void gb_io_w(offs_t offset, uint8_t data); uint8_t gb_ie_r(); @@ -123,8 +123,8 @@ class gb_state : public base_state void gbpocket(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; void disable_boot(); @@ -139,7 +139,7 @@ class gb_state : public base_state void gb_palette(palette_device &palette) const; void gbp_palette(palette_device &palette) const; - void gameboy_map(address_map &map); + void gameboy_map(address_map &map) ATTR_COLD; required_ioport m_bios_hack; }; @@ -156,15 +156,15 @@ class sgb_state : public gb_state void supergb2(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: void sgb_palette(palette_device &palette) const; void sgb_io_w(offs_t offset, uint8_t data); - void sgb_map(address_map &map); + void sgb_map(address_map &map) ATTR_COLD; int8_t m_sgb_packets = 0; uint8_t m_sgb_bitcount = 0; @@ -189,8 +189,8 @@ class gbc_state : public gb_state void gbcolor(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: static constexpr XTAL GBC_CLOCK = 8.388_MHz_XTAL; @@ -199,7 +199,7 @@ class gbc_state : public gb_state void gbc_io2_w(offs_t offset, uint8_t data); uint8_t gbc_io2_r(offs_t offset); - void gbc_map(address_map &map); + void gbc_map(address_map &map) ATTR_COLD; required_memory_bank m_rambank; memory_share_creator m_bankedram; @@ -225,7 +225,7 @@ class megaduck_state : public base_state void megaduck_sound_w2(offs_t offset, uint8_t data); uint8_t megaduck_sound_r2(offs_t offset); void megaduck_palette(palette_device &palette) const; - void megaduck_map(address_map &map); + void megaduck_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/nintendo/gba.h b/src/mame/nintendo/gba.h index d78db749fdb..2e9e6e8754a 100644 --- a/src/mame/nintendo/gba.h +++ b/src/mame/nintendo/gba.h @@ -28,12 +28,12 @@ class gba_state : public driver_device, protected gba_registers<(0x400 - 0x060) void gbadv(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; required_device m_maincpu; - void gba_map(address_map &map); + void gba_map(address_map &map) ATTR_COLD; private: required_device m_ldaca; @@ -98,9 +98,9 @@ class gba_cons_state : public gba_state void gbadv_cons(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; - void gba_cons_map(address_map &map); + void gba_cons_map(address_map &map) ATTR_COLD; uint32_t gba_bios_r(offs_t offset, uint32_t mem_mask = ~0); @@ -121,7 +121,7 @@ class gba_robotech_state : public gba_state protected: - void gba_robotech_map(address_map &map); + void gba_robotech_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/nintendo/m6502_swap_op_d2_d7.h b/src/mame/nintendo/m6502_swap_op_d2_d7.h index 7521ae8fff7..b66a9eac842 100644 --- a/src/mame/nintendo/m6502_swap_op_d2_d7.h +++ b/src/mame/nintendo/m6502_swap_op_d2_d7.h @@ -43,8 +43,8 @@ class m6502_swap_op_d2_d7 : public m6502_device { virtual u8 decrypt8(u8 value, offs_t pc, bool opcode) const override; }; - virtual void device_reset() override; - virtual void device_start() override; + virtual void device_reset() override ATTR_COLD; + virtual void device_start() override ATTR_COLD; virtual std::unique_ptr create_disassembler() override; }; diff --git a/src/mame/nintendo/m6502_swap_op_d5_d6.h b/src/mame/nintendo/m6502_swap_op_d5_d6.h index 92061680950..c9cc33bacd0 100644 --- a/src/mame/nintendo/m6502_swap_op_d5_d6.h +++ b/src/mame/nintendo/m6502_swap_op_d5_d6.h @@ -43,8 +43,8 @@ class m6502_swap_op_d5_d6 : public m6502_device { virtual u8 decrypt8(u8 value, offs_t pc, bool opcode) const override; }; - virtual void device_reset() override; - virtual void device_start() override; + virtual void device_reset() override ATTR_COLD; + virtual void device_start() override ATTR_COLD; virtual std::unique_ptr create_disassembler() override; }; @@ -75,8 +75,8 @@ class rp2a03_core_swap_op_d5_d6 : public rp2a03_core_device { virtual u8 decrypt8(u8 value, offs_t pc, bool opcode) const override; }; - virtual void device_reset() override; - virtual void device_start() override; + virtual void device_reset() override ATTR_COLD; + virtual void device_start() override ATTR_COLD; virtual std::unique_ptr create_disassembler() override; }; diff --git a/src/mame/nintendo/m6502_vtscr.h b/src/mame/nintendo/m6502_vtscr.h index 4dd76ccb0d9..f7c30997e0e 100644 --- a/src/mame/nintendo/m6502_vtscr.h +++ b/src/mame/nintendo/m6502_vtscr.h @@ -48,8 +48,8 @@ class m6502_vtscr : public m6502_device { virtual u8 decrypt8(u8 value, offs_t pc, bool opcode) const override; }; - virtual void device_reset() override; - virtual void device_start() override; + virtual void device_reset() override ATTR_COLD; + virtual void device_start() override ATTR_COLD; virtual std::unique_ptr create_disassembler() override; }; diff --git a/src/mame/nintendo/mario.h b/src/mame/nintendo/mario.h index 601f05d79ca..5c2e6304e58 100644 --- a/src/mame/nintendo/mario.h +++ b/src/mame/nintendo/mario.h @@ -136,7 +136,7 @@ class mario_state : public driver_device void mario_sh_tuneselect_w(uint8_t data); void mario_sh3_w(offs_t offset, uint8_t data); TILE_GET_INFO_MEMBER(get_bg_tile_info); - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; virtual void sound_start() override; virtual void sound_reset() override; void mario_palette(palette_device &palette) const; @@ -149,12 +149,12 @@ class mario_state : public driver_device void memory_write_byte(offs_t offset, uint8_t data); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); void set_ea(int ea); - void mario_io_map(address_map &map); - void mario_map(address_map &map); - void mario_sound_io_map(address_map &map); - void mario_sound_map(address_map &map); - void masao_map(address_map &map); - void masao_sound_map(address_map &map); + void mario_io_map(address_map &map) ATTR_COLD; + void mario_map(address_map &map) ATTR_COLD; + void mario_sound_io_map(address_map &map) ATTR_COLD; + void mario_sound_map(address_map &map) ATTR_COLD; + void masao_map(address_map &map) ATTR_COLD; + void masao_sound_map(address_map &map) ATTR_COLD; }; #endif // MAME_NINTENDO_MARIO_H diff --git a/src/mame/nintendo/mmagic.cpp b/src/mame/nintendo/mmagic.cpp index f16559c24be..3af9bb61aac 100644 --- a/src/mame/nintendo/mmagic.cpp +++ b/src/mame/nintendo/mmagic.cpp @@ -90,7 +90,7 @@ class mmagic_state : public driver_device void mmagic(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_maincpu; @@ -103,8 +103,8 @@ class mmagic_state : public driver_device required_device m_samples; required_region_ptr m_tile_colors; - void mem_map(address_map& map); - void io_map(address_map& map); + void mem_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; uint8_t paddle_r(); uint8_t buttons_r(); diff --git a/src/mame/nintendo/multigam.cpp b/src/mame/nintendo/multigam.cpp index a9b394c80c9..264647156cc 100644 --- a/src/mame/nintendo/multigam.cpp +++ b/src/mame/nintendo/multigam.cpp @@ -144,9 +144,9 @@ class multigam_state : public driver_device int multigam_inputs_r(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -221,11 +221,11 @@ class multigam_state : public driver_device void supergm3_set_bank(); void multigm3_decrypt(uint8_t* mem, int memsize, const uint8_t* decode_nibble); void multigam3_mmc3_scanline_cb(int scanline, bool vblank, bool blanked); - void multigam_map(address_map &map); - void multigm3_map(address_map &map); - void multigmt_map(address_map &map); - void supergm3_map(address_map &map); - void ppu_map(address_map &map); + void multigam_map(address_map &map) ATTR_COLD; + void multigm3_map(address_map &map) ATTR_COLD; + void multigmt_map(address_map &map) ATTR_COLD; + void supergm3_map(address_map &map) ATTR_COLD; + void ppu_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/nintendo/n64.cpp b/src/mame/nintendo/n64.cpp index 7e5fe9de9aa..d6936a46b5c 100644 --- a/src/mame/nintendo/n64.cpp +++ b/src/mame/nintendo/n64.cpp @@ -28,8 +28,8 @@ class n64_console_state : public n64_state private: uint32_t dd_null_r(); - void n64_map(address_map &map); - void n64dd_map(address_map &map); + void n64_map(address_map &map) ATTR_COLD; + void n64dd_map(address_map &map) ATTR_COLD; DECLARE_MACHINE_START(n64dd); INTERRUPT_GEN_MEMBER(n64_reset_poll); @@ -37,8 +37,8 @@ class n64_console_state : public n64_state void mempak_format(uint8_t* pak); std::error_condition disk_load(device_image_interface &image); void disk_unload(device_image_interface &image); - void rsp_imem_map(address_map &map); - void rsp_dmem_map(address_map &map); + void rsp_imem_map(address_map &map) ATTR_COLD; + void rsp_dmem_map(address_map &map) ATTR_COLD; }; uint32_t n64_console_state::dd_null_r() diff --git a/src/mame/nintendo/n64.h b/src/mame/nintendo/n64.h index 547d90cd2cc..619f74039c3 100644 --- a/src/mame/nintendo/n64.h +++ b/src/mame/nintendo/n64.h @@ -37,9 +37,9 @@ class n64_state : public driver_device { } - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; void n64_machine_stop(); uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); @@ -178,8 +178,8 @@ class n64_periphs : public device_t, 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; private: n64_state* m_n64 = nullptr; diff --git a/src/mame/nintendo/n64_gateway.cpp b/src/mame/nintendo/n64_gateway.cpp index 8eb6ab3369c..59974992707 100644 --- a/src/mame/nintendo/n64_gateway.cpp +++ b/src/mame/nintendo/n64_gateway.cpp @@ -73,15 +73,15 @@ class n64_gateway_state : public n64_state n64_state(mconfig, type, tag) { } - void n64_lodgenet_map(address_map &map); + void n64_lodgenet_map(address_map &map) ATTR_COLD; void n64_lodgenet(machine_config &config); private: - void n64_map(address_map &map); + void n64_map(address_map &map) ATTR_COLD; DECLARE_DEVICE_IMAGE_LOAD_MEMBER(cart_load); - void rsp_imem_map(address_map &map); - void rsp_dmem_map(address_map &map); + void rsp_imem_map(address_map &map) ATTR_COLD; + void rsp_dmem_map(address_map &map) ATTR_COLD; }; void n64_gateway_state::n64_lodgenet_map(address_map &map) diff --git a/src/mame/nintendo/nds.h b/src/mame/nintendo/nds.h index 3a483f2273e..bd966f9cf6e 100644 --- a/src/mame/nintendo/nds.h +++ b/src/mame/nintendo/nds.h @@ -25,8 +25,8 @@ class nds_state : public driver_device void nds(machine_config &config); private: - void machine_start() override; - void machine_reset() override; + void machine_start() override ATTR_COLD; + void machine_reset() override ATTR_COLD; // ARM7 uint32_t arm7_io_r(offs_t offset, uint32_t mem_mask = ~0); @@ -43,10 +43,10 @@ class nds_state : public driver_device uint32_t wram_arm7mirror_r(offs_t offset); void wram_arm7mirror_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0); - void nds7_wram_map(address_map &map); - void nds9_wram_map(address_map &map); - void nds_arm7_map(address_map &map); - void nds_arm9_map(address_map &map); + void nds7_wram_map(address_map &map) ATTR_COLD; + void nds9_wram_map(address_map &map) ATTR_COLD; + void nds_arm7_map(address_map &map) ATTR_COLD; + void nds_arm9_map(address_map &map) ATTR_COLD; required_device m_arm7; required_device m_arm9; diff --git a/src/mame/nintendo/nes.h b/src/mame/nintendo/nes.h index dffed1d54b3..3de7ba8c588 100644 --- a/src/mame/nintendo/nes.h +++ b/src/mame/nintendo/nes.h @@ -64,10 +64,10 @@ class nes_state : public nes_base_state uint8_t fc_in0_r(); uint8_t fc_in1_r(); void fc_in0_w(uint8_t data); - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; - virtual void video_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; + virtual void video_reset() override ATTR_COLD; uint32_t screen_update_nes(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); void screen_vblank_nes(int state); @@ -92,7 +92,7 @@ class nes_state : public nes_base_state void nespalc(machine_config &config); void nes(machine_config &config); void fds(machine_config &config); - void nes_map(address_map &map); + void nes_map(address_map &map) ATTR_COLD; private: // video-related diff --git a/src/mame/nintendo/nes_arcade_bl.cpp b/src/mame/nintendo/nes_arcade_bl.cpp index 2efbd0d6daa..4c209d3fda9 100644 --- a/src/mame/nintendo/nes_arcade_bl.cpp +++ b/src/mame/nintendo/nes_arcade_bl.cpp @@ -70,8 +70,8 @@ class nes_arcade_bl_state : public driver_device void smb3bl(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; @@ -94,10 +94,10 @@ class nes_arcade_bl_state : public driver_device void in0_w(u8 data); void set_mirroring(int mirroring); void reg_w(offs_t offset, u8 data); - void nes_cpu_map(address_map &map); - void nes_ppu_map(address_map &map); - void timer_prg_map(address_map &map); - void timer_io_map(address_map &map); + void nes_cpu_map(address_map &map) ATTR_COLD; + void nes_ppu_map(address_map &map) ATTR_COLD; + void timer_prg_map(address_map &map) ATTR_COLD; + void timer_io_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/nintendo/nes_clone.cpp b/src/mame/nintendo/nes_clone.cpp index a0381bfd34a..d7809c3c7f1 100644 --- a/src/mame/nintendo/nes_clone.cpp +++ b/src/mame/nintendo/nes_clone.cpp @@ -34,15 +34,15 @@ class nes_clone_state : public driver_device void init_nes_clone(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; virtual uint8_t in0_r(); virtual uint8_t in1_r(); virtual void in0_w(uint8_t data); - void nes_clone_basemap(address_map &map); + void nes_clone_basemap(address_map &map) ATTR_COLD; uint8_t* m_mainrom; int m_mainromsize; @@ -59,7 +59,7 @@ class nes_clone_state : public driver_device private: - void nes_clone_map(address_map &map); + void nes_clone_map(address_map &map) ATTR_COLD; }; @@ -76,7 +76,7 @@ class nes_clone_dancexpt_state : public nes_clone_state void nes_clone_dancexpt(machine_config &config); private: - void nes_clone_dancexpt_map(address_map &map); + void nes_clone_dancexpt_map(address_map &map) ATTR_COLD; memory_bank_array_creator<4> m_nametables; required_memory_bank m_prgrom; memory_bank_creator m_gfxrom; @@ -84,8 +84,8 @@ class nes_clone_dancexpt_state : public nes_clone_state std::unique_ptr m_nt_ram; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; void mapper_5000_w(offs_t offset, uint8_t data); void mapper_5100_w(offs_t offset, uint8_t data); @@ -112,9 +112,9 @@ class nes_clone_dnce2000_state : public nes_clone_state void nes_clone_dnce2000(machine_config& config); private: - void nes_clone_dnce2000_map(address_map& map); - virtual void machine_start() override; - virtual void machine_reset() override; + void nes_clone_dnce2000_map(address_map &map) ATTR_COLD; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; uint8_t rom_r(offs_t offset); void bank_w(uint8_t data); uint8_t m_rombase = 0; @@ -131,7 +131,7 @@ class nes_clone_vtvppong_state : public nes_clone_state void init_vtvppong(); private: - void nes_clone_vtvppong_map(address_map& map); + void nes_clone_vtvppong_map(address_map &map) ATTR_COLD; }; class nes_clone_sudoku_state : public nes_clone_state @@ -146,9 +146,9 @@ class nes_clone_sudoku_state : public nes_clone_state void nes_clone_sudoku(machine_config& config); private: - void nes_clone_sudoku_map(address_map& map); - virtual void machine_start() override; - virtual void machine_reset() override; + void nes_clone_sudoku_map(address_map &map) ATTR_COLD; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; uint8_t rom_r(offs_t offset); void bank_w(uint8_t data); uint8_t m_rombase = 0; @@ -164,9 +164,9 @@ class nes_clone_vtvsocr_state : public nes_clone_state void nes_clone_vtvsocr(machine_config& config); private: - void nes_clone_vtvsocr_map(address_map& map); - virtual void machine_start() override; - virtual void machine_reset() override; + void nes_clone_vtvsocr_map(address_map &map) ATTR_COLD; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; uint8_t rom_r(offs_t offset); void bank_w(offs_t offset, uint8_t data); uint8_t m_bankregs[4]; @@ -188,14 +188,14 @@ class nes_clone_afbm7800_state : public nes_clone_state void nes_clone_afbm7800(machine_config& config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; protected: // configured at startup uint16_t m_maxchrbank = 0; - void nes_clone_afbm7800_map(address_map &map); + void nes_clone_afbm7800_map(address_map &map) ATTR_COLD; void mapper_6000_w(uint8_t data); void mapper_6001_w(uint8_t data); @@ -239,9 +239,9 @@ class nes_clone_afbm7800_state : public nes_clone_state void update_nt_mirroring(); std::vector m_nt_ram; - void vram_map(address_map &map); - void ntram_map(address_map &map); - void romarea_map(address_map &map); + void vram_map(address_map &map) ATTR_COLD; + void ntram_map(address_map &map) ATTR_COLD; + void romarea_map(address_map &map) ATTR_COLD; required_memory_bank_array<4> m_prgbank; required_memory_bank_array<6> m_cbank; @@ -264,7 +264,7 @@ class nes_clone_taikee_new_state : public nes_clone_afbm7800_state virtual void vram_w(offs_t offset, uint8_t data) override; private: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; }; // Standard NES style inputs (not using bus device as there are no real NES controller ports etc. these are all-in-one units and can be custom diff --git a/src/mame/nintendo/nes_m8.cpp b/src/mame/nintendo/nes_m8.cpp index 428e45b16e0..254321514e9 100644 --- a/src/mame/nintendo/nes_m8.cpp +++ b/src/mame/nintendo/nes_m8.cpp @@ -68,8 +68,8 @@ class m8_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(m8_game_select); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; @@ -99,8 +99,8 @@ class m8_state : public driver_device void m8_set_mirroring(); void m8_romswitch(); void m8_reset(); - void m8_map(address_map &map); - void m8_ppu_map(address_map &map); + void m8_map(address_map &map) ATTR_COLD; + void m8_ppu_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/nintendo/nes_m82.cpp b/src/mame/nintendo/nes_m82.cpp index 90fdb6a7a25..89bcdbca4a1 100644 --- a/src/mame/nintendo/nes_m82.cpp +++ b/src/mame/nintendo/nes_m82.cpp @@ -47,8 +47,8 @@ class m82_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(m82_game_select); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; @@ -69,8 +69,8 @@ class m82_state : public driver_device u8 m82_in0_r(); u8 m82_in1_r(); void m82_in0_w(u8 data); - void m82_map(address_map &map); - void m82_ppu_map(address_map &map); + void m82_map(address_map &map) ATTR_COLD; + void m82_ppu_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/nintendo/nes_sh6578.cpp b/src/mame/nintendo/nes_sh6578.cpp index 0fb438dccc5..386068cc6d5 100644 --- a/src/mame/nintendo/nes_sh6578.cpp +++ b/src/mame/nintendo/nes_sh6578.cpp @@ -54,9 +54,9 @@ class nes_sh6578_state : public driver_device void init_nes_sh6578(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; virtual void io_w(uint8_t data); virtual void extio_w(uint8_t data); @@ -125,8 +125,8 @@ class nes_sh6578_state : public driver_device void do_dma(); - void rom_map(address_map& map); - void nes_sh6578_map(address_map& map); + void rom_map(address_map &map) ATTR_COLD; + void nes_sh6578_map(address_map &map) ATTR_COLD; //uint16_t get_tileaddress(uint8_t x, uint8_t y, bool ishigh); @@ -161,7 +161,7 @@ class nes_sh6578_max10in1_state : public nes_sh6578_state protected: virtual void extio_w(uint8_t data) override; - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; }; uint8_t nes_sh6578_state::bank_r(int bank, uint16_t offset) diff --git a/src/mame/nintendo/nes_vt02_vt03.cpp b/src/mame/nintendo/nes_vt02_vt03.cpp index 90f3e454043..bea091e1438 100644 --- a/src/mame/nintendo/nes_vt02_vt03.cpp +++ b/src/mame/nintendo/nes_vt02_vt03.cpp @@ -33,14 +33,14 @@ class nes_vt_base_state : public driver_device { } protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; virtual uint8_t in0_r(); virtual uint8_t in1_r(); virtual void in0_w(uint8_t data); - void nes_vt_map(address_map& map); + void nes_vt_map(address_map &map) ATTR_COLD; optional_ioport m_io0; optional_ioport m_io1; @@ -91,15 +91,15 @@ class nes_vt_state : public nes_vt_base_state void nes_vt_1mb_majkon(machine_config& config); - void vt_external_space_map_32mbyte(address_map& map); - void vt_external_space_map_16mbyte(address_map& map); - void vt_external_space_map_8mbyte(address_map& map); - void vt_external_space_map_4mbyte(address_map& map); - void vt_external_space_map_2mbyte(address_map& map); - void vt_external_space_map_1mbyte(address_map& map); - void vt_external_space_map_512kbyte(address_map& map); + void vt_external_space_map_32mbyte(address_map &map) ATTR_COLD; + void vt_external_space_map_16mbyte(address_map &map) ATTR_COLD; + void vt_external_space_map_8mbyte(address_map &map) ATTR_COLD; + void vt_external_space_map_4mbyte(address_map &map) ATTR_COLD; + void vt_external_space_map_2mbyte(address_map &map) ATTR_COLD; + void vt_external_space_map_1mbyte(address_map &map) ATTR_COLD; + void vt_external_space_map_512kbyte(address_map &map) ATTR_COLD; - void vt_external_space_map_1mbyte_majkon(address_map& map); + void vt_external_space_map_1mbyte_majkon(address_map &map) ATTR_COLD; void init_protpp(); void init_gamezn2(); @@ -127,7 +127,7 @@ class nes_vt_swap_op_d5_d6_state : public nes_vt_state void nes_vt_senwld_512kb(machine_config& config); protected: - void vt_external_space_map_senwld_512kbyte(address_map& map); + void vt_external_space_map_senwld_512kbyte(address_map &map) ATTR_COLD; }; class nes_vt_pjoy_state : public nes_vt_state @@ -255,8 +255,8 @@ class nes_vt_ablpinb_state : public nes_vt_state void nes_vt_waixing_alt_4mb_sporzpp(machine_config& config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: virtual uint8_t in0_r() override; diff --git a/src/mame/nintendo/nes_vt09.cpp b/src/mame/nintendo/nes_vt09.cpp index 9c2f81baaee..93009cd91cd 100644 --- a/src/mame/nintendo/nes_vt09.cpp +++ b/src/mame/nintendo/nes_vt09.cpp @@ -40,14 +40,14 @@ class nes_vt09_common_base_state : public driver_device { } protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; virtual uint8_t in0_r(); virtual uint8_t in1_r(); virtual void in0_w(uint8_t data); - void nes_vt09_map(address_map& map); + void nes_vt09_map(address_map &map) ATTR_COLD; optional_ioport m_io0; optional_ioport m_io1; @@ -82,13 +82,13 @@ class nes_vt09_common_state : public nes_vt09_common_base_state m_soc(*this, "soc") { } - void vt_external_space_map_32mbyte(address_map& map); - void vt_external_space_map_16mbyte(address_map& map); - void vt_external_space_map_8mbyte(address_map& map); - void vt_external_space_map_4mbyte(address_map& map); - void vt_external_space_map_2mbyte(address_map& map); - void vt_external_space_map_1mbyte(address_map& map); - [[maybe_unused]] void vt_external_space_map_512kbyte(address_map& map); + void vt_external_space_map_32mbyte(address_map &map) ATTR_COLD; + void vt_external_space_map_16mbyte(address_map &map) ATTR_COLD; + void vt_external_space_map_8mbyte(address_map &map) ATTR_COLD; + void vt_external_space_map_4mbyte(address_map &map) ATTR_COLD; + void vt_external_space_map_2mbyte(address_map &map) ATTR_COLD; + void vt_external_space_map_1mbyte(address_map &map) ATTR_COLD; + [[maybe_unused]] void vt_external_space_map_512kbyte(address_map &map) ATTR_COLD; protected: @@ -126,10 +126,10 @@ class nes_vt09_cart_state : public nes_vt09_state void nes_vt09_cart(machine_config& config); protected: - void machine_start() override; + void machine_start() override ATTR_COLD; private: - void vt_external_space_map_cart(address_map& map); + void vt_external_space_map_cart(address_map &map) ATTR_COLD; DECLARE_DEVICE_IMAGE_LOAD_MEMBER(cart_load); diff --git a/src/mame/nintendo/nes_vt09_soc.h b/src/mame/nintendo/nes_vt09_soc.h index 71b53983786..fbaabbca229 100644 --- a/src/mame/nintendo/nes_vt09_soc.h +++ b/src/mame/nintendo/nes_vt09_soc.h @@ -31,7 +31,7 @@ class nes_vt09_soc_device : public nes_vt02_vt03_soc_device virtual void device_add_mconfig(machine_config& config) override; - void nes_vt_4k_ram_map(address_map& map); + void nes_vt_4k_ram_map(address_map &map) ATTR_COLD; // are these even part of vt09, or should they be moved out of here rather than this being treated as a base class for them? devcb_write8 m_upper_write_412c_callback; diff --git a/src/mame/nintendo/nes_vt32.cpp b/src/mame/nintendo/nes_vt32.cpp index f6b4c7d5cc3..9bed633dccd 100644 --- a/src/mame/nintendo/nes_vt32.cpp +++ b/src/mame/nintendo/nes_vt32.cpp @@ -31,14 +31,14 @@ class nes_vt32_base_state : public driver_device { } protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; virtual uint8_t in0_r(); virtual uint8_t in1_r(); virtual void in0_w(uint8_t data); - void nes_vt32_map(address_map& map); + void nes_vt32_map(address_map &map) ATTR_COLD; optional_ioport m_io0; optional_ioport m_io1; @@ -80,7 +80,7 @@ class nes_vt32_state : public nes_vt32_base_state m_soc(*this, "soc") { } - void vt_external_space_map_32mbyte(address_map& map); + void vt_external_space_map_32mbyte(address_map &map) ATTR_COLD; protected: required_device m_soc; @@ -101,7 +101,7 @@ class nes_vt32_unk_state : public nes_vt32_state private: uint8_t vt_rom_banked_r(offs_t offset); - void vt_external_space_map_fp_2x32mbyte(address_map& map); + void vt_external_space_map_fp_2x32mbyte(address_map &map) ATTR_COLD; uint8_t fcpocket_412d_r(); void fcpocket_412c_w(uint8_t data); diff --git a/src/mame/nintendo/nes_vt32_soc.h b/src/mame/nintendo/nes_vt32_soc.h index d77560ef9ec..861a6295487 100644 --- a/src/mame/nintendo/nes_vt32_soc.h +++ b/src/mame/nintendo/nes_vt32_soc.h @@ -24,7 +24,7 @@ class nes_vt32_soc_device : public nes_vt09_soc_device virtual void device_add_mconfig(machine_config& config) override; - void nes_vt_fp_map(address_map& map); + void nes_vt_fp_map(address_map &map) ATTR_COLD; uint8_t vtfp_4119_r(); void vtfp_411e_w(uint8_t data); diff --git a/src/mame/nintendo/nes_vt369_vtunknown.cpp b/src/mame/nintendo/nes_vt369_vtunknown.cpp index 55e8bfe9d42..3dbfef7e51a 100644 --- a/src/mame/nintendo/nes_vt369_vtunknown.cpp +++ b/src/mame/nintendo/nes_vt369_vtunknown.cpp @@ -42,14 +42,14 @@ class nes_vt369_vtunknown_base_state : public driver_device { } protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; virtual uint8_t in0_r(); virtual uint8_t in1_r(); virtual void in0_w(uint8_t data); - void nes_vt369_vtunknown_map(address_map& map); + void nes_vt369_vtunknown_map(address_map &map) ATTR_COLD; optional_ioport m_io0; optional_ioport m_io1; @@ -94,13 +94,13 @@ class nes_vt369_vtunknown_state : public nes_vt369_vtunknown_base_state void nes_vt369_vtunknown_4k_ram(machine_config& config); void nes_vt369_vtunknown_4k_ram_16mb(machine_config& config); - void vt_external_space_map_32mbyte(address_map& map); - void vt_external_space_map_16mbyte(address_map& map); - void vt_external_space_map_8mbyte(address_map& map); - void vt_external_space_map_4mbyte(address_map& map); - [[maybe_unused]] void vt_external_space_map_2mbyte(address_map& map); - void vt_external_space_map_1mbyte(address_map& map); - [[maybe_unused]] void vt_external_space_map_512kbyte(address_map& map); + void vt_external_space_map_32mbyte(address_map &map) ATTR_COLD; + void vt_external_space_map_16mbyte(address_map &map) ATTR_COLD; + void vt_external_space_map_8mbyte(address_map &map) ATTR_COLD; + void vt_external_space_map_4mbyte(address_map &map) ATTR_COLD; + [[maybe_unused]] void vt_external_space_map_2mbyte(address_map &map) ATTR_COLD; + void vt_external_space_map_1mbyte(address_map &map) ATTR_COLD; + [[maybe_unused]] void vt_external_space_map_512kbyte(address_map &map) ATTR_COLD; void init_lxcmcypp(); @@ -120,7 +120,7 @@ class nes_vt369_vtunknown_cy_state : public nes_vt369_vtunknown_state void nes_vt369_vtunknown_bt(machine_config& config); void nes_vt369_vtunknown_bt_2x16mb(machine_config& config); - void vt_external_space_map_bitboy_2x16mbyte(address_map& map); + void vt_external_space_map_bitboy_2x16mbyte(address_map &map) ATTR_COLD; private: @@ -141,11 +141,11 @@ class nes_vt369_vtunknown_dg_fapocket_state : public nes_vt369_vtunknown_state void nes_vt369_vtunknown_fa_4x16mb(machine_config& config); protected: - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; private: uint8_t vt_rom_banked_r(offs_t offset); - void vt_external_space_map_fapocket_4x16mbyte(address_map& map); + void vt_external_space_map_fapocket_4x16mbyte(address_map &map) ATTR_COLD; uint8_t fapocket_412c_r(); void fapocket_412c_w(uint8_t data); @@ -177,7 +177,7 @@ class nes_vt369_vtunknown_unk_state : public nes_vt369_vtunknown_state private: uint8_t vt_rom_banked_r(offs_t offset); - [[maybe_unused]] void vt_external_space_map_fp_2x32mbyte(address_map& map); + [[maybe_unused]] void vt_external_space_map_fp_2x32mbyte(address_map &map) ATTR_COLD; }; uint8_t nes_vt369_vtunknown_base_state::vt_rom_r(offs_t offset) diff --git a/src/mame/nintendo/nes_vt369_vtunknown_soc.h b/src/mame/nintendo/nes_vt369_vtunknown_soc.h index 21a66f96ba2..26599c05d85 100644 --- a/src/mame/nintendo/nes_vt369_vtunknown_soc.h +++ b/src/mame/nintendo/nes_vt369_vtunknown_soc.h @@ -22,10 +22,10 @@ class nes_vt369_soc_device : public nes_vt09_soc_device protected: virtual void device_add_mconfig(machine_config& config) override; - void device_start() override; - void device_reset() override; + void device_start() override ATTR_COLD; + void device_reset() override ATTR_COLD; - void nes_vt369_map(address_map& map); + void nes_vt369_map(address_map &map) ATTR_COLD; uint8_t vt369_41bx_r(offs_t offset); void vt369_41bx_w(offs_t offset, uint8_t data); @@ -45,7 +45,7 @@ class nes_vt369_soc_device : public nes_vt09_soc_device void vt369_relative_w(offs_t offset, uint8_t data); private: - void vt369_sound_map(address_map &map); + void vt369_sound_map(address_map &map) ATTR_COLD; required_device m_alu; required_device m_soundcpu; @@ -63,7 +63,7 @@ class nes_vtunknown_soc_bt_device : public nes_vt09_soc_device protected: virtual void device_add_mconfig(machine_config& config) override; - void nes_vt_bt_map(address_map& map); + void nes_vt_bt_map(address_map &map) ATTR_COLD; void vt03_412c_extbank_w(uint8_t data); }; @@ -78,7 +78,7 @@ class nes_vt369_alt_soc_device : public nes_vt09_soc_device virtual void device_add_mconfig(machine_config& config) override; - void nes_vt_hh_map(address_map& map); + void nes_vt_hh_map(address_map &map) ATTR_COLD; uint8_t extra_rom_r(); uint8_t vthh_414a_r(); @@ -94,7 +94,7 @@ class nes_vt369_alt_swap_d5_d6_soc_device : public nes_vt369_alt_soc_device private: void encryption_4169_w(uint8_t data); - void nes_vt_hh_swap_map(address_map &map); + void nes_vt_hh_swap_map(address_map &map) ATTR_COLD; }; @@ -108,7 +108,7 @@ class nes_vtunknown_soc_dg_device : public nes_vt09_soc_device virtual void device_add_mconfig(machine_config& config) override; - void nes_vt_dg_map(address_map& map); + void nes_vt_dg_map(address_map &map) ATTR_COLD; void vt03_411c_w(uint8_t data); }; @@ -122,7 +122,7 @@ class nes_vtunknown_soc_fa_device : public nes_vtunknown_soc_dg_device virtual void device_add_mconfig(machine_config& config) override; - void nes_vt_fa_map(address_map& map); + void nes_vt_fa_map(address_map &map) ATTR_COLD; uint8_t vtfa_412c_r(); void vtfa_412c_extbank_w(uint8_t data); diff --git a/src/mame/nintendo/nes_vt_soc.h b/src/mame/nintendo/nes_vt_soc.h index 33ccb9ba327..2ba8e52d688 100644 --- a/src/mame/nintendo/nes_vt_soc.h +++ b/src/mame/nintendo/nes_vt_soc.h @@ -18,7 +18,7 @@ class nes_vt02_vt03_soc_device : public device_t, public device_memory_interface public: nes_vt02_vt03_soc_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - void program_map(address_map &map); + void program_map(address_map &map) ATTR_COLD; void vt03_8000_mapper_w(offs_t offset, uint8_t data); @@ -58,18 +58,18 @@ class nes_vt02_vt03_soc_device : public device_t, public device_memory_interface protected: nes_vt02_vt03_soc_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 space_config_vector memory_space_config() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; required_device m_maincpu; required_device m_screen; required_device m_ppu; required_device m_apu; - void nes_vt_map(address_map& map); + void nes_vt_map(address_map &map) ATTR_COLD; uint32_t get_banks(uint8_t bnk); void update_banks(); diff --git a/src/mame/nintendo/nss.cpp b/src/mame/nintendo/nss.cpp index d090e71468a..7f611066600 100644 --- a/src/mame/nintendo/nss.cpp +++ b/src/mame/nintendo/nss.cpp @@ -331,8 +331,8 @@ class nss_state : public snes_state int game_over_flag_r(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_bioscpu; @@ -362,10 +362,10 @@ class nss_state : public snes_state void port_07_w(uint8_t data); void nss_vblank_irq(int state); - void bios_io_map(address_map &map); - void bios_map(address_map &map); - void snes_map(address_map &map); - void spc_map(address_map &map); + void bios_io_map(address_map &map) ATTR_COLD; + void bios_map(address_map &map) ATTR_COLD; + void snes_map(address_map &map) ATTR_COLD; + void spc_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/nintendo/playch10.cpp b/src/mame/nintendo/playch10.cpp index 2ceb80db416..05b0aebf248 100644 --- a/src/mame/nintendo/playch10.cpp +++ b/src/mame/nintendo/playch10.cpp @@ -397,26 +397,26 @@ class playch10_state : public driver_device TILE_GET_INFO_MEMBER(get_bg_tile_info); - void bios_io_map(address_map &map); - void bios_map(address_map &map); - void ppu_map(address_map &map); - void cart_map(address_map &map); - void cart_a_map(address_map &map); - void cart_b_map(address_map &map); - void cart_c_map(address_map &map); - void cart_d_map(address_map &map); - void cart_d2_map(address_map &map); - void cart_e_map(address_map &map); - void cart_f_map(address_map &map); - void cart_f2_map(address_map &map); - void cart_g_map(address_map &map); - void cart_h_map(address_map &map); - void cart_i_map(address_map &map); - void cart_k_map(address_map &map); - - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + void bios_io_map(address_map &map) ATTR_COLD; + void bios_map(address_map &map) ATTR_COLD; + void ppu_map(address_map &map) ATTR_COLD; + void cart_map(address_map &map) ATTR_COLD; + void cart_a_map(address_map &map) ATTR_COLD; + void cart_b_map(address_map &map) ATTR_COLD; + void cart_c_map(address_map &map) ATTR_COLD; + void cart_d_map(address_map &map) ATTR_COLD; + void cart_d2_map(address_map &map) ATTR_COLD; + void cart_e_map(address_map &map) ATTR_COLD; + void cart_f_map(address_map &map) ATTR_COLD; + void cart_f2_map(address_map &map) ATTR_COLD; + void cart_g_map(address_map &map) ATTR_COLD; + void cart_h_map(address_map &map) ATTR_COLD; + void cart_i_map(address_map &map) ATTR_COLD; + void cart_k_map(address_map &map) ATTR_COLD; + + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; struct chr_bank { diff --git a/src/mame/nintendo/pokemini.cpp b/src/mame/nintendo/pokemini.cpp index 5b44119606a..90f27a02536 100644 --- a/src/mame/nintendo/pokemini.cpp +++ b/src/mame/nintendo/pokemini.cpp @@ -40,8 +40,8 @@ class pokemini_state : public driver_device void pokemini(machine_config &config); protected: - virtual void video_start() override; - virtual void machine_start() override; + virtual void video_start() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; private: struct PRC @@ -93,7 +93,7 @@ class pokemini_state : public driver_device uint8_t rom_r(offs_t offset); DECLARE_DEVICE_IMAGE_LOAD_MEMBER(cart_load); - void pokemini_mem_map(address_map &map); + void pokemini_mem_map(address_map &map) ATTR_COLD; void check_irqs(); void update_sound(); diff --git a/src/mame/nintendo/popeye.h b/src/mame/nintendo/popeye.h index 5b285add527..550f847c25b 100644 --- a/src/mame/nintendo/popeye.h +++ b/src/mame/nintendo/popeye.h @@ -95,7 +95,7 @@ class tnx1_state : public driver_device void popeye_portB_w(uint8_t data); TILE_GET_INFO_MEMBER(get_fg_tile_info); virtual void driver_start() override; - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; virtual void tnx1_palette(palette_device &palette); uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); virtual void screen_vblank(int state); @@ -105,9 +105,9 @@ class tnx1_state : public driver_device void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); void draw_field(bitmap_ind16 &bitmap, const rectangle &cliprect); - void maincpu_common_map(address_map &map); - virtual void maincpu_program_map(address_map &map); - void maincpu_io_map(address_map &map); + void maincpu_common_map(address_map &map) ATTR_COLD; + virtual void maincpu_program_map(address_map &map) ATTR_COLD; + void maincpu_io_map(address_map &map) ATTR_COLD; virtual bool bootleg_sprites() const { return false; } }; @@ -136,8 +136,8 @@ class popeyebl_state : public tpp1_state protected: virtual void decrypt_rom() override; - virtual void maincpu_program_map(address_map &map) override; - void decrypted_opcodes_map(address_map& map); + virtual void maincpu_program_map(address_map &map) override ATTR_COLD; + void decrypted_opcodes_map(address_map &map) ATTR_COLD; virtual bool bootleg_sprites() const override { return true; } }; @@ -156,7 +156,7 @@ class tpp2_state : public tpp1_state virtual void driver_start() override; virtual void refresh_w(offs_t offset, uint8_t data) override; virtual void screen_vblank(int state) override; - virtual void maincpu_program_map(address_map &map) override; + virtual void maincpu_program_map(address_map &map) override ATTR_COLD; virtual void decrypt_rom() override; virtual void draw_background(bitmap_ind16 &bitmap, const rectangle &cliprect) override; virtual void background_w(offs_t offset, uint8_t data) override; @@ -167,7 +167,7 @@ class tpp2_noalu_state : public tpp2_state using tpp2_state::tpp2_state; protected: - virtual void maincpu_program_map(address_map &map) override; + virtual void maincpu_program_map(address_map &map) override ATTR_COLD; }; #endif // MAME_NINTENDO_POPEYE_H diff --git a/src/mame/nintendo/punchout.h b/src/mame/nintendo/punchout.h index 9fa59414a1d..bbf0c10dd4c 100644 --- a/src/mame/nintendo/punchout.h +++ b/src/mame/nintendo/punchout.h @@ -88,7 +88,7 @@ class punchout_state : public driver_device TILE_GET_INFO_MEMBER(armwrest_fg_get_info); TILEMAP_MAPPER_MEMBER(armwrest_bs1_scan); TILEMAP_MAPPER_MEMBER(armwrest_bs1_scan_flipx); - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; DECLARE_VIDEO_START(armwrest); DECLARE_MACHINE_RESET(spnchout); uint32_t screen_update_punchout_top(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); @@ -101,12 +101,12 @@ class punchout_state : public driver_device void drawbs2(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void punchout_copy_top_palette(int bank); void punchout_copy_bot_palette(int bank); - void armwrest_map(address_map &map); - void punchout_io_map(address_map &map); - void punchout_map(address_map &map); - void punchout_sound_map(address_map &map); - void punchout_vlm_map(address_map &map); - void spnchout_io_map(address_map &map); + void armwrest_map(address_map &map) ATTR_COLD; + void punchout_io_map(address_map &map) ATTR_COLD; + void punchout_map(address_map &map) ATTR_COLD; + void punchout_sound_map(address_map &map) ATTR_COLD; + void punchout_vlm_map(address_map &map) ATTR_COLD; + void spnchout_io_map(address_map &map) ATTR_COLD; }; #endif // MAME_NINTENDO_PUNCHOUT_H diff --git a/src/mame/nintendo/sfcbox.cpp b/src/mame/nintendo/sfcbox.cpp index 5f5865b824d..375a0c60390 100644 --- a/src/mame/nintendo/sfcbox.cpp +++ b/src/mame/nintendo/sfcbox.cpp @@ -142,8 +142,8 @@ class sfcbox_state : public snes_state void sfcbox(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_bios; @@ -159,10 +159,10 @@ class sfcbox_state : public snes_state void port_83_w(uint8_t data); void snes_map_0_w(uint8_t data); void snes_map_1_w(uint8_t data); - void sfcbox_io(address_map &map); - void sfcbox_map(address_map &map); - void snes_map(address_map &map); - void spc_map(address_map &map); + void sfcbox_io(address_map &map) ATTR_COLD; + void sfcbox_map(address_map &map) ATTR_COLD; + void snes_map(address_map &map) ATTR_COLD; + void spc_map(address_map &map) ATTR_COLD; }; uint32_t sfcbox_state::screen_update( screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect ) diff --git a/src/mame/nintendo/snes.cpp b/src/mame/nintendo/snes.cpp index 32864ceadf9..e7c226c5625 100644 --- a/src/mame/nintendo/snes.cpp +++ b/src/mame/nintendo/snes.cpp @@ -99,15 +99,15 @@ class snes_console_state : public snes_state virtual void write_joy_latch(uint8_t data) override; virtual void wrio_write(uint8_t data) override; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; int m_type = 0; required_device m_ctrl1; required_device m_ctrl2; optional_device m_cartslot; - void snes_map(address_map &map); - void spc_map(address_map &map); + void snes_map(address_map &map) ATTR_COLD; + void spc_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/nintendo/snes.h b/src/mame/nintendo/snes.h index 606bcb4de6a..aefbfacb8df 100644 --- a/src/mame/nintendo/snes.h +++ b/src/mame/nintendo/snes.h @@ -319,8 +319,8 @@ class snes_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; /* misc */ uint16_t m_hblank_offset = 0; diff --git a/src/mame/nintendo/snesb.cpp b/src/mame/nintendo/snesb.cpp index b2cc29faf09..4c9682ce8ef 100644 --- a/src/mame/nintendo/snesb.cpp +++ b/src/mame/nintendo/snesb.cpp @@ -210,16 +210,16 @@ class snesb_state : public snes_state DECLARE_MACHINE_RESET(ffight2b); DECLARE_MACHINE_RESET(wldgunsb); - void snesb_map(address_map &map); - void spc_map(address_map &map); - void endless_map(address_map &map); - void extrainp_map(address_map &map); - void kinstb_map(address_map &map); - void rushbets_map(address_map &map); - void sblast2b_map(address_map &map); - void venom_map(address_map &map); - void wldgunsb_map(address_map &map); - void tmntmwb_map(address_map &map); + void snesb_map(address_map &map) ATTR_COLD; + void spc_map(address_map &map) ATTR_COLD; + void endless_map(address_map &map) ATTR_COLD; + void extrainp_map(address_map &map) ATTR_COLD; + void kinstb_map(address_map &map) ATTR_COLD; + void rushbets_map(address_map &map) ATTR_COLD; + void sblast2b_map(address_map &map) ATTR_COLD; + void venom_map(address_map &map) ATTR_COLD; + void wldgunsb_map(address_map &map) ATTR_COLD; + void tmntmwb_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/nintendo/snesb51.cpp b/src/mame/nintendo/snesb51.cpp index ef8de632f55..331a0d44ece 100644 --- a/src/mame/nintendo/snesb51.cpp +++ b/src/mame/nintendo/snesb51.cpp @@ -85,15 +85,15 @@ class snesb51_state : public snes_state void init_fatfurspb(); protected: - void machine_start() override; + void machine_start() override ATTR_COLD; private: required_device m_mcu; - void mem_map(address_map &map); - void io_map(address_map &map); - void snes_map(address_map &map); - void spc_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; + void snes_map(address_map &map) ATTR_COLD; + void spc_map(address_map &map) ATTR_COLD; void mcu_p1_w(uint8_t data); uint8_t mcu_p3_r(); diff --git a/src/mame/nintendo/spacefb.cpp b/src/mame/nintendo/spacefb.cpp index 77b00c8e85a..f588c812fc7 100644 --- a/src/mame/nintendo/spacefb.cpp +++ b/src/mame/nintendo/spacefb.cpp @@ -143,9 +143,9 @@ class spacefb_state : public driver_device void spacefb_audio(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: // SPACEFB_PIXEL_CLOCK clocks the star generator circuit. The rest of the graphics @@ -166,9 +166,9 @@ class spacefb_state : public driver_device static constexpr int NUM_STARFIELD_PENS = 0x40; static constexpr int NUM_SPRITE_PENS = 0x40; - void spacefb_main_map(address_map &map); - void spacefb_main_io_map(address_map &map); - void spacefb_audio_map(address_map &map); + void spacefb_main_map(address_map &map) ATTR_COLD; + void spacefb_main_io_map(address_map &map) ATTR_COLD; + void spacefb_audio_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_audiocpu; diff --git a/src/mame/nintendo/vboy.cpp b/src/mame/nintendo/vboy.cpp index 7a2f00b329d..0a75ed431bc 100644 --- a/src/mame/nintendo/vboy.cpp +++ b/src/mame/nintendo/vboy.cpp @@ -78,8 +78,8 @@ class vboy_state : public driver_device void vboy(machine_config &config); protected: - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: // FIXME: most if not all of these must be uint8_t @@ -139,13 +139,13 @@ class vboy_state : public driver_device uint8_t m_row_num = 0; attotime m_input_latch_time; - void io_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; u8 timer_control_r(); void timer_control_w(offs_t offset, u8 data); u8 keypad_control_r(); void keypad_control_w(offs_t offset, u8 data); - void vip_map(address_map &map); + void vip_map(address_map &map) ATTR_COLD; uint16_t vip_io_r(offs_t offset); void vip_io_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); void font0_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); @@ -186,7 +186,7 @@ class vboy_state : public driver_device TIMER_DEVICE_CALLBACK_MEMBER(timer_pad_tick); TIMER_DEVICE_CALLBACK_MEMBER(vboy_scanlineL); - void vboy_map(address_map &map); + void vboy_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/nintendo/vsnes.cpp b/src/mame/nintendo/vsnes.cpp index ebaf27d2ba6..714350e8e27 100644 --- a/src/mame/nintendo/vsnes.cpp +++ b/src/mame/nintendo/vsnes.cpp @@ -184,8 +184,8 @@ class vs_base_state : public driver_device { } - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; template void vsnes_coin_counter_w(offs_t offset, u8 data); template u8 vsnes_coin_counter_r(offs_t offset); @@ -193,10 +193,10 @@ class vs_base_state : public driver_device template u8 vsnes_in0_r(); template u8 vsnes_in1_r(); - void vsnes_cpu1_map(address_map &map); - void vsnes_cpu2_map(address_map &map); - void vsnes_ppu1_map(address_map &map); - void vsnes_ppu2_map(address_map &map); + void vsnes_cpu1_map(address_map &map) ATTR_COLD; + void vsnes_cpu2_map(address_map &map) ATTR_COLD; + void vsnes_ppu1_map(address_map &map) ATTR_COLD; + void vsnes_ppu2_map(address_map &map) ATTR_COLD; void init_prg_banking(); void prg32(int bank); @@ -267,7 +267,7 @@ class vs_uni_state : public vs_base_state void init_rbibb(); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: void vsnormal_vrom_banking_w(u8 data); @@ -310,7 +310,7 @@ class vs_dual_state : public vs_base_state void init_vsdual(); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: template void vsdual_vrom_banking_w(u8 data); @@ -329,7 +329,7 @@ class vs_smbbl_state : public vs_base_state void vs_smbbl(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: void smbbl_6502_sn_w(offs_t offset, u8 data); @@ -339,9 +339,9 @@ class vs_smbbl_state : public vs_base_state void smbbl_scanline_cb(int scanline, bool vblank, bool blanked); u8 smbbl_ppu_data_r(); - void smbbl_6502_map(address_map &map); - void smbbl_z80_map(address_map &map); - void smbbl_ppu_map(address_map &map); + void smbbl_6502_map(address_map &map) ATTR_COLD; + void smbbl_z80_map(address_map &map) ATTR_COLD; + void smbbl_ppu_map(address_map &map) ATTR_COLD; required_device m_sn1; required_device m_sn2; diff --git a/src/mame/nintendo/vt1682.cpp b/src/mame/nintendo/vt1682.cpp index 960a0f60f6a..7020ba35798 100644 --- a/src/mame/nintendo/vt1682.cpp +++ b/src/mame/nintendo/vt1682.cpp @@ -132,9 +132,9 @@ class vt_vt1682_state : public driver_device void regular_init(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; required_device m_io; required_device m_uio; @@ -142,8 +142,8 @@ class vt_vt1682_state : public driver_device required_device m_rightdac; required_device m_maincpu; - void vt_vt1682_map(address_map& map); - void vt_vt1682_sound_map(address_map& map); + void vt_vt1682_map(address_map &map) ATTR_COLD; + void vt_vt1682_sound_map(address_map &map) ATTR_COLD; required_device m_fullrom; required_memory_bank m_bank; @@ -177,10 +177,10 @@ class vt_vt1682_state : public driver_device uint32_t screen_update(screen_device& screen, bitmap_rgb32& bitmap, const rectangle& cliprect); - void rom_map(address_map& map); + void rom_map(address_map &map) ATTR_COLD; - void spriteram_map(address_map& map); - void vram_map(address_map& map); + void spriteram_map(address_map &map) ATTR_COLD; + void vram_map(address_map &map) ATTR_COLD; /* Video */ @@ -644,8 +644,8 @@ class intec_interact_state : public vt_vt1682_state void ext_rombank_w(uint8_t data); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: @@ -716,8 +716,8 @@ class vt1682_exsport_state : public vt_vt1682_state void uiob_w(uint8_t data); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; int m_old_portb; int m_portb_shiftpos = 0; diff --git a/src/mame/nintendo/vt1682_alu.h b/src/mame/nintendo/vt1682_alu.h index 89b6a98820d..08c0cf55371 100644 --- a/src/mame/nintendo/vt1682_alu.h +++ b/src/mame/nintendo/vt1682_alu.h @@ -35,8 +35,8 @@ class vrt_vt1682_alu_device : public device_t protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: bool m_is_sound_alu = false; diff --git a/src/mame/nintendo/vt1682_io.h b/src/mame/nintendo/vt1682_io.h index ac6174e2c82..b68036c19db 100644 --- a/src/mame/nintendo/vt1682_io.h +++ b/src/mame/nintendo/vt1682_io.h @@ -35,8 +35,8 @@ class vrt_vt1682_io_device : public device_t protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: uint8_t m_210d_ioconfig; diff --git a/src/mame/nintendo/vt1682_timer.h b/src/mame/nintendo/vt1682_timer.h index 9088929d46b..4e1c6351474 100644 --- a/src/mame/nintendo/vt1682_timer.h +++ b/src/mame/nintendo/vt1682_timer.h @@ -35,9 +35,9 @@ class vrt_vt1682_timer_device : public device_t void change_clock(); protected: - 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; private: bool m_is_sound_timer; diff --git a/src/mame/nintendo/vt1682_uio.h b/src/mame/nintendo/vt1682_uio.h index 3b2b90d319f..89081149418 100644 --- a/src/mame/nintendo/vt1682_uio.h +++ b/src/mame/nintendo/vt1682_uio.h @@ -34,8 +34,8 @@ class vrt_vt1682_uio_device : public device_t void inteact_214b_uio_b_attribute_w(uint8_t data); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: devcb_write8 m_porta_out; diff --git a/src/mame/nintendo/vt_unknown.cpp b/src/mame/nintendo/vt_unknown.cpp index 5ac4f34af0a..4fdd8ec4ae2 100644 --- a/src/mame/nintendo/vt_unknown.cpp +++ b/src/mame/nintendo/vt_unknown.cpp @@ -29,12 +29,12 @@ class vt_unknown_state : public driver_device void vt_unknown(machine_config &config); private: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void vt_unknown_map(address_map &map); + void vt_unknown_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_palette; diff --git a/src/mame/nix/fitfight.h b/src/mame/nix/fitfight.h index 04726d0911f..41d91125dd1 100644 --- a/src/mame/nix/fitfight.h +++ b/src/mame/nix/fitfight.h @@ -56,14 +56,14 @@ class fitfight_state : public driver_device TILE_GET_INFO_MEMBER(get_fof_bak_tile_info); TILE_GET_INFO_MEMBER(get_fof_mid_tile_info); TILE_GET_INFO_MEMBER(get_fof_txt_tile_info); - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; uint32_t screen_update_fitfight(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect, int layer ); - void bbprot_main_map(address_map &map); - void fitfight_main_map(address_map &map); - void snd_mem(address_map &map); + void bbprot_main_map(address_map &map) ATTR_COLD; + void fitfight_main_map(address_map &map) ATTR_COLD; + void snd_mem(address_map &map) ATTR_COLD; // memory pointers required_shared_ptr m_fof_100000; diff --git a/src/mame/nix/pirates.cpp b/src/mame/nix/pirates.cpp index b93a9a37bf4..3a1d038b210 100644 --- a/src/mame/nix/pirates.cpp +++ b/src/mame/nix/pirates.cpp @@ -141,7 +141,7 @@ class pirates_state : public driver_device int prot_r(); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -177,7 +177,7 @@ class pirates_state : public driver_device void decrypt_p(); void decrypt_s(); void decrypt_oki(); - void prg_map(address_map &map); + void prg_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/nmk/cultures.cpp b/src/mame/nmk/cultures.cpp index 8391921cae5..cd12dad9b75 100644 --- a/src/mame/nmk/cultures.cpp +++ b/src/mame/nmk/cultures.cpp @@ -44,9 +44,9 @@ class cultures_state : public driver_device void cultures(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: // devices @@ -76,9 +76,9 @@ class cultures_state : public driver_device TILE_GET_INFO_MEMBER(get_bg0_tile_info); uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); INTERRUPT_GEN_MEMBER(interrupt); - void io_map(address_map &map); - void program_map(address_map &map); - void oki_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void program_map(address_map &map) ATTR_COLD; + void oki_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/nmk/ddealer.cpp b/src/mame/nmk/ddealer.cpp index 54b2513e03f..9aae7195c23 100644 --- a/src/mame/nmk/ddealer.cpp +++ b/src/mame/nmk/ddealer.cpp @@ -68,9 +68,9 @@ class ddealer_state : public driver_device void ddealer(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: void flipscreen_w(u16 data); @@ -91,8 +91,8 @@ class ddealer_state : public driver_device void draw_video_layer(u16* vreg_base, tilemap_t *tmap, screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void ddealer_map(address_map &map); - void prot_map(address_map &map); + void ddealer_map(address_map &map) ATTR_COLD; + void prot_map(address_map &map) ATTR_COLD; TIMER_DEVICE_CALLBACK_MEMBER(ddealer_scanline); diff --git a/src/mame/nmk/macrossp.cpp b/src/mame/nmk/macrossp.cpp index 4f3b5500518..5e6d021e1e4 100644 --- a/src/mame/nmk/macrossp.cpp +++ b/src/mame/nmk/macrossp.cpp @@ -372,19 +372,19 @@ class macrossp_state : public driver_device void text_videoram_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0); template TILE_GET_INFO_MEMBER(get_scr_tile_info); TILE_GET_INFO_MEMBER(get_text_tile_info); - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); void screen_vblank(int state); void draw_sprites(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); void draw_layer(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect, int layer, int line, int pri); void irqhandler(int state); - void es5506_bank1_map(address_map &map); - void es5506_bank3_map(address_map &map); - void main_map(address_map &map); - void sound_map(address_map &map); + void es5506_bank1_map(address_map &map) ATTR_COLD; + void es5506_bank3_map(address_map &map) ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/nmk/nmk004.h b/src/mame/nmk/nmk004.h index 77f3e7c916a..15446354d7b 100644 --- a/src/mame/nmk/nmk004.h +++ b/src/mame/nmk/nmk004.h @@ -28,12 +28,12 @@ class nmk004_device : public device_t void port4_w(uint8_t data); void ym2203_irq_handler(int irq); - void nmk004_sound_mem_map(address_map &map); + void nmk004_sound_mem_map(address_map &map) ATTR_COLD; protected: // device-level overrides - virtual void device_start() 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 const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: // internal state diff --git a/src/mame/nmk/nmk16.h b/src/mame/nmk/nmk16.h index 297e6414386..99501eff27e 100644 --- a/src/mame/nmk/nmk16.h +++ b/src/mame/nmk/nmk16.h @@ -100,8 +100,8 @@ class nmk16_state : public driver_device, public seibu_sound_common void init_acrobatmbl(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; TIMER_DEVICE_CALLBACK_MEMBER(nmk16_scanline); TIMER_DEVICE_CALLBACK_MEMBER(nmk16_hacky_scanline); @@ -220,51 +220,51 @@ class nmk16_state : public driver_device, public seibu_sound_common void decode_tdragonb(); void decode_ssmissin(); - void acrobatm_map(address_map &map); - void acrobatmbl_map(address_map &map); - void bioship_map(address_map &map); - void bjtwin_map(address_map &map); - void gunnail_map(address_map &map); - void gunnailb_map(address_map &map); - void gunnailb_sound_map(address_map &map); - void gunnailb_sound_io_map(address_map &map); - void hachamf_map(address_map &map); - void macross2_map(address_map &map); - void macross2_sound_io_map(address_map &map); - void macross2_sound_map(address_map &map); - void macross_map(address_map &map); - void manybloc_map(address_map &map); - void mustang_map(address_map &map); - void mustangb_map(address_map &map); - void mustangb3_map(address_map &map); - void mustangb3_sound_map(address_map &map); - void oki1_map(address_map &map); - void oki2_map(address_map &map); - void powerins_map(address_map &map); - void powerins_sound_map(address_map &map); - void powerins_bootleg_audio_io_map(address_map &map); - void powerinsa_map(address_map &map); - void powerinsa_oki_map(address_map &map); - void raphero_map(address_map &map); - void raphero_sound_mem_map(address_map &map); - void ssmissin_map(address_map &map); - void ssmissin_sound_map(address_map &map); - void strahl_map(address_map &map); - void strahljbl_map(address_map &map); - void tdragon2_map(address_map &map); - void tdragon3h_map(address_map &map); - void tdragon3h_sound_io_map(address_map &map); - void tdragon_map(address_map &map); - void tdragonb_map(address_map &map); - void tdragonb2_map(address_map &map); - void tdragonb2_oki_map(address_map &map); - void tdragonb3_map(address_map &map); - void tharrier_map(address_map &map); - void tharrier_sound_io_map(address_map &map); - void tharrier_sound_map(address_map &map); - void twinactn_map(address_map &map); - void vandyke_map(address_map &map); - void vandykeb_map(address_map &map); + void acrobatm_map(address_map &map) ATTR_COLD; + void acrobatmbl_map(address_map &map) ATTR_COLD; + void bioship_map(address_map &map) ATTR_COLD; + void bjtwin_map(address_map &map) ATTR_COLD; + void gunnail_map(address_map &map) ATTR_COLD; + void gunnailb_map(address_map &map) ATTR_COLD; + void gunnailb_sound_map(address_map &map) ATTR_COLD; + void gunnailb_sound_io_map(address_map &map) ATTR_COLD; + void hachamf_map(address_map &map) ATTR_COLD; + void macross2_map(address_map &map) ATTR_COLD; + void macross2_sound_io_map(address_map &map) ATTR_COLD; + void macross2_sound_map(address_map &map) ATTR_COLD; + void macross_map(address_map &map) ATTR_COLD; + void manybloc_map(address_map &map) ATTR_COLD; + void mustang_map(address_map &map) ATTR_COLD; + void mustangb_map(address_map &map) ATTR_COLD; + void mustangb3_map(address_map &map) ATTR_COLD; + void mustangb3_sound_map(address_map &map) ATTR_COLD; + void oki1_map(address_map &map) ATTR_COLD; + void oki2_map(address_map &map) ATTR_COLD; + void powerins_map(address_map &map) ATTR_COLD; + void powerins_sound_map(address_map &map) ATTR_COLD; + void powerins_bootleg_audio_io_map(address_map &map) ATTR_COLD; + void powerinsa_map(address_map &map) ATTR_COLD; + void powerinsa_oki_map(address_map &map) ATTR_COLD; + void raphero_map(address_map &map) ATTR_COLD; + void raphero_sound_mem_map(address_map &map) ATTR_COLD; + void ssmissin_map(address_map &map) ATTR_COLD; + void ssmissin_sound_map(address_map &map) ATTR_COLD; + void strahl_map(address_map &map) ATTR_COLD; + void strahljbl_map(address_map &map) ATTR_COLD; + void tdragon2_map(address_map &map) ATTR_COLD; + void tdragon3h_map(address_map &map) ATTR_COLD; + void tdragon3h_sound_io_map(address_map &map) ATTR_COLD; + void tdragon_map(address_map &map) ATTR_COLD; + void tdragonb_map(address_map &map) ATTR_COLD; + void tdragonb2_map(address_map &map) ATTR_COLD; + void tdragonb2_oki_map(address_map &map) ATTR_COLD; + void tdragonb3_map(address_map &map) ATTR_COLD; + void tharrier_map(address_map &map) ATTR_COLD; + void tharrier_sound_io_map(address_map &map) ATTR_COLD; + void tharrier_sound_map(address_map &map) ATTR_COLD; + void twinactn_map(address_map &map) ATTR_COLD; + void vandyke_map(address_map &map) ATTR_COLD; + void vandykeb_map(address_map &map) ATTR_COLD; }; class tdragon_prot_state : public nmk16_state @@ -280,12 +280,12 @@ class tdragon_prot_state : public nmk16_state void hachamf_prot(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; optional_device m_protcpu; - void tdragon_prot_map(address_map &map); + void tdragon_prot_map(address_map &map) ATTR_COLD; void mcu_side_shared_w(offs_t offset, u8 data); u8 mcu_side_shared_r(offs_t offset); @@ -315,7 +315,7 @@ class macross_prot_state : public tdragon_prot_state protected: virtual void device_post_load() override; - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: void base_nmk214_215(machine_config &config); @@ -378,10 +378,10 @@ class afega_state : public nmk16_state void video_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, int dsw_flipscreen, int xoffset, int yoffset, int attr_mask); void redhawki_video_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void afega_map(address_map &map); - void afega_sound_cpu(address_map &map); - void firehawk_map(address_map &map); - void firehawk_sound_cpu(address_map &map); + void afega_map(address_map &map) ATTR_COLD; + void afega_sound_cpu(address_map &map) ATTR_COLD; + void firehawk_map(address_map &map) ATTR_COLD; + void firehawk_sound_cpu(address_map &map) ATTR_COLD; }; class nmk16_tomagic_state : public nmk16_state @@ -396,9 +396,9 @@ class nmk16_tomagic_state : public nmk16_state void init_tomagic(); private: - void tomagic_map(address_map &map); - void tomagic_sound_map(address_map &map); - void tomagic_sound_io_map(address_map &map); + void tomagic_map(address_map &map) ATTR_COLD; + void tomagic_sound_map(address_map &map) ATTR_COLD; + void tomagic_sound_io_map(address_map &map) ATTR_COLD; }; #endif //MAME_NMK_NMK16_H diff --git a/src/mame/nmk/nmk16spr.h b/src/mame/nmk/nmk16spr.h index 288042b6556..2a7f4eacbe7 100644 --- a/src/mame/nmk/nmk16spr.h +++ b/src/mame/nmk/nmk16spr.h @@ -28,8 +28,8 @@ class nmk_16bit_sprite_device : public device_t void set_flip_screen(bool flip) { m_flip_screen = flip; } protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: struct sprite_t diff --git a/src/mame/nmk/nmk214.h b/src/mame/nmk/nmk214.h index 89be9e83c01..053c5322ded 100644 --- a/src/mame/nmk/nmk214.h +++ b/src/mame/nmk/nmk214.h @@ -23,8 +23,8 @@ class nmk214_device : public device_t u8 decode_byte(u32 addr, u8 data) const noexcept; protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: // Operation mode - in practice, only LSB is used. diff --git a/src/mame/nmk/nmkmedal.cpp b/src/mame/nmk/nmkmedal.cpp index 06b885aad7c..8215ceb12b1 100644 --- a/src/mame/nmk/nmkmedal.cpp +++ b/src/mame/nmk/nmkmedal.cpp @@ -164,7 +164,7 @@ class trocana_state : public nmkmedal_state private: void adpcm_control_w(u8 data); - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; required_device m_oki; }; @@ -181,9 +181,9 @@ class hpierrot_state : public nmkmedal_state void sweethrt(machine_config &config); private: - void drail_mem_map(address_map &map); - void mem_map(address_map &map); - void sweethrt_mem_map(address_map &map); + void drail_mem_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; + void sweethrt_mem_map(address_map &map) ATTR_COLD; }; class omatsuri_state : public nmkmedal_state @@ -196,7 +196,7 @@ class omatsuri_state : public nmkmedal_state void omatsuri(machine_config &config); private: - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/nmk/quizdna.cpp b/src/mame/nmk/quizdna.cpp index f31d0ff3c6d..5ad827b6322 100644 --- a/src/mame/nmk/quizdna.cpp +++ b/src/mame/nmk/quizdna.cpp @@ -45,8 +45,8 @@ class quizdna_state : public driver_device void gekiretu(machine_config &config); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -82,11 +82,11 @@ class quizdna_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); - void gakupara_io_map(address_map &map); - void gekiretu_io_map(address_map &map); - void gekiretu_map(address_map &map); - void quizdna_io_map(address_map &map); - void quizdna_map(address_map &map); + void gakupara_io_map(address_map &map) ATTR_COLD; + void gekiretu_io_map(address_map &map) ATTR_COLD; + void gekiretu_map(address_map &map) ATTR_COLD; + void quizdna_io_map(address_map &map) ATTR_COLD; + void quizdna_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/nmk/quizpani.cpp b/src/mame/nmk/quizpani.cpp index ba8b9804446..fe9b7ae2e33 100644 --- a/src/mame/nmk/quizpani.cpp +++ b/src/mame/nmk/quizpani.cpp @@ -77,7 +77,7 @@ class quizpani_state : public driver_device void quizpani(machine_config &config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -101,7 +101,7 @@ class quizpani_state : public driver_device TILE_GET_INFO_MEMBER(txt_tile_info); uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void program_map(address_map &map); + void program_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/nokia/dbox.cpp b/src/mame/nokia/dbox.cpp index 55d1d14ec71..df959b7958b 100644 --- a/src/mame/nokia/dbox.cpp +++ b/src/mame/nokia/dbox.cpp @@ -454,13 +454,13 @@ class dbox_state : public driver_device required_device m_display; required_device m_ip16_74259; - virtual void machine_reset() override; - virtual void machine_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; void sda5708_reset(uint8_t data); void sda5708_clk(uint8_t data); void write_pa(uint8_t data); - void dbox_map(address_map &map); + void dbox_map(address_map &map) ATTR_COLD; #if LOCALFLASH uint16_t sysflash_r(offs_t offset); diff --git a/src/mame/nokia/mikromik.h b/src/mame/nokia/mikromik.h index e967a0c6d71..017a35670d2 100644 --- a/src/mame/nokia/mikromik.h +++ b/src/mame/nokia/mikromik.h @@ -93,7 +93,7 @@ class mm1_state : public driver_device void mm1g_video(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_maincpu; @@ -179,10 +179,10 @@ class mm1_state : public driver_device I8275_DRAW_CHARACTER_MEMBER( crtc_display_pixels ); UPD7220_DISPLAY_PIXELS_MEMBER( hgdc_display_pixels ); void mm1_palette(palette_device &palette) const; - void mm1_map(address_map &map); - void mmu_io_map(address_map &map); - void mm1g_mmu_io_map(address_map &map); - void mm1_upd7220_map(address_map &map); + void mm1_map(address_map &map) ATTR_COLD; + void mmu_io_map(address_map &map) ATTR_COLD; + void mm1g_mmu_io_map(address_map &map) ATTR_COLD; + void mm1_upd7220_map(address_map &map) ATTR_COLD; }; #endif // MAME_NOKIA_MIKROMIK_H diff --git a/src/mame/nokia/mikromikko2.h b/src/mame/nokia/mikromikko2.h index 1d5cbfab77e..0aaae8fe8da 100644 --- a/src/mame/nokia/mikromikko2.h +++ b/src/mame/nokia/mikromikko2.h @@ -59,8 +59,8 @@ class mm2_state : public driver_device void mm2(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; @@ -81,9 +81,9 @@ class mm2_state : public driver_device required_device m_rs232b; required_device m_palette; - void mm2_map(address_map &map); - void mm2_io_map(address_map &map); - void vpac_mem(address_map &map); + void mm2_map(address_map &map) ATTR_COLD; + void mm2_io_map(address_map &map) ATTR_COLD; + void vpac_mem(address_map &map) ATTR_COLD; void palette(palette_device &palette) const; uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); diff --git a/src/mame/nokia/mm1kb.h b/src/mame/nokia/mm1kb.h index 294c1dd989c..6a74120ae75 100644 --- a/src/mame/nokia/mm1kb.h +++ b/src/mame/nokia/mm1kb.h @@ -47,12 +47,12 @@ class mm1_keyboard_device : public device_t protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; TIMER_CALLBACK_MEMBER(scan_keyboard); diff --git a/src/mame/nokia/nokia_3310.cpp b/src/mame/nokia/nokia_3310.cpp index 7c44961006c..69f3c61d8ab 100644 --- a/src/mame/nokia/nokia_3310.cpp +++ b/src/mame/nokia/nokia_3310.cpp @@ -50,8 +50,8 @@ class noki3310_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(key_irq); private: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; PCD8544_SCREEN_UPDATE(pcd8544_screen_update); @@ -72,7 +72,7 @@ class noki3310_state : public driver_device uint16_t dsp_ram_r(offs_t offset); void dsp_ram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); - void noki3310_map(address_map &map); + void noki3310_map(address_map &map) ATTR_COLD; void assert_fiq(int num); void assert_irq(int num); diff --git a/src/mame/northstar/horizon.cpp b/src/mame/northstar/horizon.cpp index 160fd79ff19..950a910189b 100644 --- a/src/mame/northstar/horizon.cpp +++ b/src/mame/northstar/horizon.cpp @@ -78,10 +78,10 @@ class horizon_state : public driver_device private: uint8_t ff_r(); - void horizon_io(address_map &map); - void horizon_mem(address_map &map); + void horizon_io(address_map &map) ATTR_COLD; + void horizon_mem(address_map &map) ATTR_COLD; - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; required_device m_maincpu; required_device m_usart_l; required_device m_usart_r; diff --git a/src/mame/novadesitec/novadesitec_fr002.cpp b/src/mame/novadesitec/novadesitec_fr002.cpp index 1d8113dfb88..361ac0d2ede 100644 --- a/src/mame/novadesitec/novadesitec_fr002.cpp +++ b/src/mame/novadesitec/novadesitec_fr002.cpp @@ -41,7 +41,7 @@ class novadesitec_fr002_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; }; uint32_t novadesitec_fr002_state::screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect) diff --git a/src/mame/novadesitec/novadesitec_fr004.cpp b/src/mame/novadesitec/novadesitec_fr004.cpp index 58204f9691d..b04bc118435 100644 --- a/src/mame/novadesitec/novadesitec_fr004.cpp +++ b/src/mame/novadesitec/novadesitec_fr004.cpp @@ -43,7 +43,7 @@ class novadesitec_fr004_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; }; uint32_t novadesitec_fr004_state::screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect) diff --git a/src/mame/novadesitec/novadesitec_fr009.cpp b/src/mame/novadesitec/novadesitec_fr009.cpp index 20dd6f584da..d05a5692168 100644 --- a/src/mame/novadesitec/novadesitec_fr009.cpp +++ b/src/mame/novadesitec/novadesitec_fr009.cpp @@ -42,7 +42,7 @@ class novadesitec_fr009_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; }; uint32_t novadesitec_fr009_state::screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect) diff --git a/src/mame/novag/accord.cpp b/src/mame/novag/accord.cpp index 8a620fb272e..e5b795ac25b 100644 --- a/src/mame/novag/accord.cpp +++ b/src/mame/novag/accord.cpp @@ -56,8 +56,8 @@ class accord_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(power_off); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: // devices/pointers diff --git a/src/mame/novag/cexpert.cpp b/src/mame/novag/cexpert.cpp index 845d189d480..f46c5176eb4 100644 --- a/src/mame/novag/cexpert.cpp +++ b/src/mame/novag/cexpert.cpp @@ -55,7 +55,7 @@ class cexpert_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(change_cpu_freq); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: // devices/pointers @@ -67,7 +67,7 @@ class cexpert_state : public driver_device u8 m_inp_mux = 0; - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; // I/O handlers void mux_w(u8 data); diff --git a/src/mame/novag/cforte.cpp b/src/mame/novag/cforte.cpp index 029436093f5..aee28951969 100644 --- a/src/mame/novag/cforte.cpp +++ b/src/mame/novag/cforte.cpp @@ -54,7 +54,7 @@ class cforte_state : public driver_device void cforte(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: // devices/pointers @@ -69,7 +69,7 @@ class cforte_state : public driver_device u8 m_led_select = 0; // address maps - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; // I/O handlers void update_display(); diff --git a/src/mame/novag/const.cpp b/src/mame/novag/const.cpp index 6fc09526054..df38a4ebc2c 100644 --- a/src/mame/novag/const.cpp +++ b/src/mame/novag/const.cpp @@ -116,7 +116,7 @@ class const_state : public driver_device void init_const(); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; virtual void machine_reset() override { m_power = true; } private: @@ -131,9 +131,9 @@ class const_state : public driver_device u8 m_inp_mux = 0; // address maps - void const_map(address_map &map); - void ssensor4_map(address_map &map); - void sconst_map(address_map &map); + void const_map(address_map &map) ATTR_COLD; + void ssensor4_map(address_map &map) ATTR_COLD; + void sconst_map(address_map &map) ATTR_COLD; // I/O handlers void mux_w(u8 data); diff --git a/src/mame/novag/constjr.cpp b/src/mame/novag/constjr.cpp index 14dbb850824..a943316c099 100644 --- a/src/mame/novag/constjr.cpp +++ b/src/mame/novag/constjr.cpp @@ -61,8 +61,8 @@ class constjr_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(power_off); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: // devices/pointers diff --git a/src/mame/novag/diablo.cpp b/src/mame/novag/diablo.cpp index 330bcfe1b70..a05757f63bb 100644 --- a/src/mame/novag/diablo.cpp +++ b/src/mame/novag/diablo.cpp @@ -62,7 +62,7 @@ class diablo_state : public driver_device void scorpio68(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: // devices/pointers @@ -81,8 +81,8 @@ class diablo_state : public driver_device u8 m_lcd_data = 0; // address maps - void diablo68_map(address_map &map); - void scorpio68_map(address_map &map); + void diablo68_map(address_map &map) ATTR_COLD; + void scorpio68_map(address_map &map) ATTR_COLD; // I/O handlers void control_w(u8 data); diff --git a/src/mame/novag/diamond.cpp b/src/mame/novag/diamond.cpp index b0b50ec7f70..08310c38f60 100644 --- a/src/mame/novag/diamond.cpp +++ b/src/mame/novag/diamond.cpp @@ -80,7 +80,7 @@ class diamond_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(power_switch); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; virtual void machine_reset() override { set_power(true); } private: @@ -105,8 +105,8 @@ class diamond_state : public driver_device u32 m_lcd_data = 0; u8 m_lcd_segs2 = 0; - void diamond_map(address_map &map); - void diamond2_map(address_map &map); + void diamond_map(address_map &map) ATTR_COLD; + void diamond2_map(address_map &map) ATTR_COLD; // I/O handlers void standby(int state); diff --git a/src/mame/novag/emerclp.cpp b/src/mame/novag/emerclp.cpp index d286d012570..f2ac26fd91b 100644 --- a/src/mame/novag/emerclp.cpp +++ b/src/mame/novag/emerclp.cpp @@ -59,7 +59,7 @@ class emerclp_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(power_switch); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; virtual void machine_reset() override { set_power(true); } private: diff --git a/src/mame/novag/mentor16.cpp b/src/mame/novag/mentor16.cpp index 877f63edd64..ea950ce82b8 100644 --- a/src/mame/novag/mentor16.cpp +++ b/src/mame/novag/mentor16.cpp @@ -59,7 +59,7 @@ class mentor16_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(power_off) { if (newval) m_power = false; } protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; virtual void machine_reset() override { m_power = true; } private: diff --git a/src/mame/novag/micro.cpp b/src/mame/novag/micro.cpp index 64cc6499e63..241a05e3c26 100644 --- a/src/mame/novag/micro.cpp +++ b/src/mame/novag/micro.cpp @@ -50,7 +50,7 @@ class micro_state : public driver_device void micro(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: // devices/pointers @@ -65,8 +65,8 @@ class micro_state : public driver_device u8 m_inp_mux = 0; // address maps - void main_map(address_map &map); - void main_io(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void main_io(address_map &map) ATTR_COLD; // I/O handlers void update_display(); diff --git a/src/mame/novag/micro2.cpp b/src/mame/novag/micro2.cpp index e41ac1c33c3..c1ca8a90417 100644 --- a/src/mame/novag/micro2.cpp +++ b/src/mame/novag/micro2.cpp @@ -77,7 +77,7 @@ class micro2_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(change_cpu_freq) { set_cpu_freq(); } protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; virtual void machine_reset() override { set_cpu_freq(); } private: diff --git a/src/mame/novag/primo.cpp b/src/mame/novag/primo.cpp index f46c76c13ee..a57492d1610 100644 --- a/src/mame/novag/primo.cpp +++ b/src/mame/novag/primo.cpp @@ -113,7 +113,7 @@ class primo_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(snova_power_off); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; virtual void machine_reset() override { m_power = true; } private: @@ -133,9 +133,9 @@ class primo_state : public driver_device u8 m_select = 0; u8 m_led_data = 0; - void primo_map(address_map &map); - void supremo_map(address_map &map); - void snova_map(address_map &map); + void primo_map(address_map &map) ATTR_COLD; + void supremo_map(address_map &map) ATTR_COLD; + void snova_map(address_map &map) ATTR_COLD; // I/O handlers void standby(int state); diff --git a/src/mame/novag/robotadv.cpp b/src/mame/novag/robotadv.cpp index f6f85f68415..fed450a4720 100644 --- a/src/mame/novag/robotadv.cpp +++ b/src/mame/novag/robotadv.cpp @@ -69,8 +69,8 @@ class robotadv_state : public driver_device void robotadv(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; @@ -93,8 +93,8 @@ class robotadv_state : public driver_device attotime m_pwm_last; emu_timer *m_refresh_timer; - void main_map(address_map &map); - void io_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; void control1_w(u8 data); void control2_w(u8 data); diff --git a/src/mame/novag/sapphire.cpp b/src/mame/novag/sapphire.cpp index 6cf2388faa3..b46a1a31bfa 100644 --- a/src/mame/novag/sapphire.cpp +++ b/src/mame/novag/sapphire.cpp @@ -82,7 +82,7 @@ class sapphire_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(power_switch); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; virtual void machine_reset() override { set_power(true); } private: @@ -104,8 +104,8 @@ class sapphire_state : public driver_device u32 m_lcd_data = 0; u8 m_lcd_segs2 = 0; - void sapphire_map(address_map &map); - void sapphire2_map(address_map &map); + void sapphire_map(address_map &map) ATTR_COLD; + void sapphire2_map(address_map &map) ATTR_COLD; // I/O handlers void set_power(bool power); diff --git a/src/mame/novag/savant.cpp b/src/mame/novag/savant.cpp index 67130c72860..71b56baa838 100644 --- a/src/mame/novag/savant.cpp +++ b/src/mame/novag/savant.cpp @@ -64,8 +64,8 @@ class savant_state : public driver_device void savant(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: // devices/pointers @@ -87,10 +87,10 @@ class savant_state : public driver_device u64 m_lcd_data = 0; // address maps - void main_map(address_map &map); - void main_io(address_map &map); - void mcu_map(address_map &map); - void mcu_io(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void main_io(address_map &map) ATTR_COLD; + void mcu_map(address_map &map) ATTR_COLD; + void mcu_io(address_map &map) ATTR_COLD; // I/O handlers void nvram_w(offs_t offset, u8 data); diff --git a/src/mame/novag/sdiamond.cpp b/src/mame/novag/sdiamond.cpp index 1b7edc752ee..d72f7170875 100644 --- a/src/mame/novag/sdiamond.cpp +++ b/src/mame/novag/sdiamond.cpp @@ -68,7 +68,7 @@ class sdiamond_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(power_switch); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; virtual void machine_reset() override { set_power(true); } private: @@ -88,7 +88,7 @@ class sdiamond_state : public driver_device u16 m_lcd_segs = 0; u8 m_lcd_com = 0; - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; // I/O handlers void standby(int state); diff --git a/src/mame/novag/sexpert.cpp b/src/mame/novag/sexpert.cpp index aef7ee01c7c..5a8cd9908f6 100644 --- a/src/mame/novag/sexpert.cpp +++ b/src/mame/novag/sexpert.cpp @@ -87,8 +87,8 @@ class sexpert_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(change_cpu_freq); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; // devices/pointers required_device m_maincpu; @@ -107,7 +107,7 @@ class sexpert_state : public driver_device u8 m_lcd_data = 0; // address maps - void sexpert_map(address_map &map); + void sexpert_map(address_map &map) ATTR_COLD; // I/O handlers virtual void lcd_control_w(u8 data); @@ -160,13 +160,13 @@ class sforte_state : public sexpert_state void sforteb(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: emu_timer *m_beeptimer = nullptr; // address maps - void sforte_map(address_map &map); + void sforte_map(address_map &map) ATTR_COLD; // I/O handlers virtual void lcd_control_w(u8 data) override; diff --git a/src/mame/novag/vip.cpp b/src/mame/novag/vip.cpp index fae8fab2642..f3b8d17746f 100644 --- a/src/mame/novag/vip.cpp +++ b/src/mame/novag/vip.cpp @@ -109,7 +109,7 @@ class vip_state : public driver_device ioport_value power_r() { return m_power ? 1 : 0; } protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; virtual void machine_reset() override { m_power = true; } private: @@ -126,8 +126,8 @@ class vip_state : public driver_device u8 m_inp_mux = 0; u8 m_select = 0; - void vip_map(address_map &map); - void svip_map(address_map &map); + void vip_map(address_map &map) ATTR_COLD; + void svip_map(address_map &map) ATTR_COLD; // I/O handlers void lcd_pwm_w(offs_t offset, u8 data); diff --git a/src/mame/novag/zircon2.cpp b/src/mame/novag/zircon2.cpp index eac13b7c4e5..e7c3a6e1584 100644 --- a/src/mame/novag/zircon2.cpp +++ b/src/mame/novag/zircon2.cpp @@ -64,7 +64,7 @@ class zircon2_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(power_switch); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; virtual void machine_reset() override { set_power(true); } private: diff --git a/src/mame/novation/basssta.cpp b/src/mame/novation/basssta.cpp index 6ac7c887f64..3ad68b53434 100644 --- a/src/mame/novation/basssta.cpp +++ b/src/mame/novation/basssta.cpp @@ -28,16 +28,16 @@ class basssta_state : public driver_device void sbasssta(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: void input_select_w(u8 data); u8 input_r(); - void bassstr_prog(address_map &map); - void sbasssta_prog(address_map &map); - void bassstr_data(address_map &map); - void sbasssta_data(address_map &map); + void bassstr_prog(address_map &map) ATTR_COLD; + void sbasssta_prog(address_map &map) ATTR_COLD; + void bassstr_data(address_map &map) ATTR_COLD; + void sbasssta_data(address_map &map) ATTR_COLD; required_device m_maincpu; required_ioport_array<4> m_inputs; diff --git a/src/mame/novation/drumsta.cpp b/src/mame/novation/drumsta.cpp index a5c0f295d31..802d8c6eff0 100644 --- a/src/mame/novation/drumsta.cpp +++ b/src/mame/novation/drumsta.cpp @@ -27,8 +27,8 @@ class drumsta_state : public driver_device void drumsta(machine_config &config); private: - void drumsta_prog(address_map &map); - void drumsta_data(address_map &map); + void drumsta_prog(address_map &map) ATTR_COLD; + void drumsta_data(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_dsp; diff --git a/src/mame/olivetti/m20.cpp b/src/mame/olivetti/m20.cpp index 077b557ae60..c395ed15454 100644 --- a/src/mame/olivetti/m20.cpp +++ b/src/mame/olivetti/m20.cpp @@ -96,8 +96,8 @@ class m20_state : public driver_device required_device m_palette; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; uint16_t i8259_r(offs_t offset); void i8259_w(offs_t offset, uint16_t data); @@ -109,9 +109,9 @@ class m20_state : public driver_device void int_w(int state); MC6845_UPDATE_ROW(update_row); - void m20_data_mem(address_map &map); - void m20_io(address_map &map); - void m20_program_mem(address_map &map); + void m20_data_mem(address_map &map) ATTR_COLD; + void m20_io(address_map &map) ATTR_COLD; + void m20_program_mem(address_map &map) ATTR_COLD; offs_t m_memsize = 0; uint8_t m_port21 = 0; diff --git a/src/mame/olivetti/m20_8086.h b/src/mame/olivetti/m20_8086.h index cc81ed00afe..4362cd3bd95 100644 --- a/src/mame/olivetti/m20_8086.h +++ b/src/mame/olivetti/m20_8086.h @@ -30,13 +30,13 @@ class m20_8086_device : public device_t void halt() { m_8086->set_input_line(INPUT_LINE_HALT, ASSERT_LINE); } bool halted() const { return m_8086_halt; } - void i86_io(address_map &map); - void i86_prog(address_map &map); + void i86_io(address_map &map) ATTR_COLD; + void i86_prog(address_map &map) ATTR_COLD; protected: - void device_start() override; - void device_reset() override; - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; + void device_start() override ATTR_COLD; + 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; private: required_device m_8086; diff --git a/src/mame/olivetti/m20_kbd.h b/src/mame/olivetti/m20_kbd.h index 9e1d1e64f3a..e4dbe9fa543 100644 --- a/src/mame/olivetti/m20_kbd.h +++ b/src/mame/olivetti/m20_kbd.h @@ -10,10 +10,10 @@ class m20_keyboard_device : public buffered_rs232_device<16U>, protected device_ { public: m20_keyboard_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; protected: - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; virtual void key_make(uint8_t row, uint8_t column) override; private: diff --git a/src/mame/olivetti/m24.cpp b/src/mame/olivetti/m24.cpp index 10eec219795..d586588c0fb 100644 --- a/src/mame/olivetti/m24.cpp +++ b/src/mame/olivetti/m24.cpp @@ -67,8 +67,8 @@ class m24_state : public driver_device void olivetti(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: void dma_segment_w(offs_t offset, u8 data); @@ -134,9 +134,9 @@ class m24_state : public driver_device static void floppy_formats(format_registration &fr); static void cfg_m20_format(device_t *device); - void kbc_map(address_map &map); - void m24_io(address_map &map); - void m24_map(address_map &map); + void kbc_map(address_map &map) ATTR_COLD; + void m24_io(address_map &map) ATTR_COLD; + void m24_map(address_map &map) ATTR_COLD; }; void m24_state::machine_start() diff --git a/src/mame/olivetti/m24_kbd.h b/src/mame/olivetti/m24_kbd.h index 53664e111e3..5d45eddd32b 100644 --- a/src/mame/olivetti/m24_kbd.h +++ b/src/mame/olivetti/m24_kbd.h @@ -19,11 +19,11 @@ class m24_keyboard_device : public device_t void data_w(int state); protected: - 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 ioport_constructor device_input_ports() const 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; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; TIMER_CALLBACK_MEMBER(reset_mcu); diff --git a/src/mame/olivetti/m24_z8000.h b/src/mame/olivetti/m24_z8000.h index cd267caba91..995e7f31ab3 100644 --- a/src/mame/olivetti/m24_z8000.h +++ b/src/mame/olivetti/m24_z8000.h @@ -34,14 +34,14 @@ class m24_z8000_device : public device_t bool halted() const { return m_z8000_halt; } - void z8000_data(address_map &map); - void z8000_io(address_map &map); - void z8000_prog(address_map &map); + void z8000_data(address_map &map) ATTR_COLD; + void z8000_io(address_map &map) ATTR_COLD; + void z8000_prog(address_map &map) ATTR_COLD; protected: - void device_start() override; - void device_reset() override; - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; + void device_start() override ATTR_COLD; + 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; private: required_device m_z8000; diff --git a/src/mame/olivetti/olivpc1.cpp b/src/mame/olivetti/olivpc1.cpp index e97db845525..be3fc92153c 100644 --- a/src/mame/olivetti/olivpc1.cpp +++ b/src/mame/olivetti/olivpc1.cpp @@ -54,11 +54,11 @@ class olivpc1_state : public driver_device m_fdc(*this, "fdc"), m_bank(*this, "bank") { } - void pc8_io(address_map &map); - void pc8_map(address_map &map); - void bank(address_map &map); - void machine_start() override; - void machine_reset() override; + void pc8_io(address_map &map) ATTR_COLD; + void pc8_map(address_map &map) ATTR_COLD; + void bank(address_map &map) ATTR_COLD; + void machine_start() override ATTR_COLD; + void machine_reset() override ATTR_COLD; void olivpc1(machine_config &config); private: u8 port6x_r(offs_t addr); diff --git a/src/mame/olympia/dday.cpp b/src/mame/olympia/dday.cpp index 1b7b006e930..d87e7a8c131 100644 --- a/src/mame/olympia/dday.cpp +++ b/src/mame/olympia/dday.cpp @@ -85,9 +85,9 @@ class dday_state : public driver_device void dday(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_shared_ptr m_textvideoram; @@ -129,7 +129,7 @@ class dday_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); TIMER_CALLBACK_MEMBER(countdown_timer_callback); void start_countdown_timer(); - void program_map(address_map &map); + void program_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/olympia/lbeach.cpp b/src/mame/olympia/lbeach.cpp index 1f2f1e9d166..435c465c981 100644 --- a/src/mame/olympia/lbeach.cpp +++ b/src/mame/olympia/lbeach.cpp @@ -72,8 +72,8 @@ class lbeach_state : public driver_device void lbeach(machine_config &config); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -101,7 +101,7 @@ class lbeach_state : public driver_device void init_palette(palette_device &palette) const; u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; }; void lbeach_state::machine_start() diff --git a/src/mame/olympia/monzagp.cpp b/src/mame/olympia/monzagp.cpp index 5960daf5073..5ac08160600 100644 --- a/src/mame/olympia/monzagp.cpp +++ b/src/mame/olympia/monzagp.cpp @@ -70,7 +70,7 @@ class monzagp_state : public driver_device void monzagp(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: uint8_t port_r(offs_t offset); @@ -82,8 +82,8 @@ class monzagp_state : public driver_device void monzagp_palette(palette_device &palette) const; uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void io_map(address_map &map); - void program_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void program_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_crtc; diff --git a/src/mame/olympia/portrait.cpp b/src/mame/olympia/portrait.cpp index 6d31322ef95..88eb6af433f 100644 --- a/src/mame/olympia/portrait.cpp +++ b/src/mame/olympia/portrait.cpp @@ -136,7 +136,7 @@ class portrait_state : public driver_device protected: virtual void machine_start() override { m_lamps.resolve(); m_photo.resolve(); } - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: void ctrl_w(uint8_t data); @@ -152,8 +152,8 @@ class portrait_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); inline void get_tile_info(tile_data &tileinfo, int tile_index, const uint8_t *source); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect, uint8_t priority); - void main_program_map(address_map &map); - void audio_program_map(address_map &map); + void main_program_map(address_map &map) ATTR_COLD; + void audio_program_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_audiocpu; diff --git a/src/mame/olympia/vega.cpp b/src/mame/olympia/vega.cpp index ceb538272bd..4ec4657614b 100644 --- a/src/mame/olympia/vega.cpp +++ b/src/mame/olympia/vega.cpp @@ -107,8 +107,8 @@ class vega_state : public driver_device void init_vega(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: struct vega_obj @@ -175,8 +175,8 @@ class vega_state : public driver_device void vega_palette(palette_device &palette) const; void draw_tilemap(screen_device& screen, bitmap_ind16& bitmap, const rectangle& cliprect); uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void vega_io_map(address_map &map); - void vega_map(address_map &map); + void vega_io_map(address_map &map) ATTR_COLD; + void vega_map(address_map &map) ATTR_COLD; }; void vega_state::extern_w(offs_t offset, uint8_t data) diff --git a/src/mame/olympiaint/olyboss.cpp b/src/mame/olympiaint/olyboss.cpp index e67a95c5406..32a3c8e59cb 100644 --- a/src/mame/olympiaint/olyboss.cpp +++ b/src/mame/olympiaint/olyboss.cpp @@ -85,8 +85,8 @@ class olyboss_state : public driver_device void olybossd(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; TIMER_CALLBACK_MEMBER(toggle_tim); @@ -112,9 +112,9 @@ class olyboss_state : public driver_device void vchrram_w(offs_t offset, u8 data); void vchrram85_w(offs_t offset, u8 data); void ppic_w(u8 data); - void olyboss_io(address_map &map); - void olyboss_mem(address_map &map); - void olyboss85_io(address_map &map); + void olyboss_io(address_map &map) ATTR_COLD; + void olyboss_mem(address_map &map) ATTR_COLD; + void olyboss85_io(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_dma; diff --git a/src/mame/olympiaint/olytext.cpp b/src/mame/olympiaint/olytext.cpp index c60a321a1ad..98080585989 100644 --- a/src/mame/olympiaint/olytext.cpp +++ b/src/mame/olympiaint/olytext.cpp @@ -51,15 +51,15 @@ class olytext_state : public driver_device void olytext(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); void keyboard_put(u8 data); - void mem_map(address_map &map); - void io_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; required_device m_maincpu; // required_device m_fdd0; diff --git a/src/mame/olympiaint/peoplepc.cpp b/src/mame/olympiaint/peoplepc.cpp index f7b3773c85b..f70bbf3e4ed 100644 --- a/src/mame/olympiaint/peoplepc.cpp +++ b/src/mame/olympiaint/peoplepc.cpp @@ -94,11 +94,11 @@ class peoplepc_state : public driver_device void floppy_unload(floppy_image_device *dev); uint8_t m_dma0pg = 0, m_p7c = 0; - void peoplepc_io(address_map &map); - void peoplepc_map(address_map &map); + void peoplepc_io(address_map &map) ATTR_COLD; + void peoplepc_map(address_map &map) ATTR_COLD; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; }; static const gfx_layout peoplepc_charlayout = diff --git a/src/mame/omnibyte/msbc1.cpp b/src/mame/omnibyte/msbc1.cpp index 37fa07cd3d7..9a5a04c6b7f 100644 --- a/src/mame/omnibyte/msbc1.cpp +++ b/src/mame/omnibyte/msbc1.cpp @@ -74,8 +74,8 @@ class msbc1_state : public driver_device void msbc1(machine_config &config); private: - void mem_map(address_map &map); - virtual void machine_reset() override; + void mem_map(address_map &map) ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; required_device m_maincpu; }; diff --git a/src/mame/omnibyte/ob68k1a.h b/src/mame/omnibyte/ob68k1a.h index 46b2cdabe16..173bf2f9af1 100644 --- a/src/mame/omnibyte/ob68k1a.h +++ b/src/mame/omnibyte/ob68k1a.h @@ -52,12 +52,12 @@ class ob68k1a_state : public driver_device required_device m_rs232b; required_device m_ram; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; uint8_t pia_r(offs_t offset); void pia_w(offs_t offset, uint8_t data); - void ob68k1a_mem(address_map &map); + void ob68k1a_mem(address_map &map) ATTR_COLD; }; #endif // MAME_OMNIBYTE_OB68K1A_H diff --git a/src/mame/omori/battlex.cpp b/src/mame/omori/battlex.cpp index 7d60e93553b..fd9abd47862 100644 --- a/src/mame/omori/battlex.cpp +++ b/src/mame/omori/battlex.cpp @@ -114,9 +114,9 @@ class battlex_state : public driver_device ioport_value in0_b4_r(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; // devices required_device m_maincpu; @@ -129,7 +129,7 @@ class battlex_state : public driver_device tilemap_t *m_bg_tilemap = nullptr; - void io_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; private: // video-related @@ -150,7 +150,7 @@ class battlex_state : public driver_device INTERRUPT_GEN_MEMBER(interrupt); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; }; class dodgeman_state : public battlex_state @@ -161,12 +161,12 @@ class dodgeman_state : public battlex_state void dodgeman(machine_config &config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: TILE_GET_INFO_MEMBER(get_bg_tile_info); - void io_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; }; void battlex_state::palette_w(offs_t offset, uint8_t data) diff --git a/src/mame/omori/carjmbre.cpp b/src/mame/omori/carjmbre.cpp index e1e944fbcc2..90f6953f821 100644 --- a/src/mame/omori/carjmbre.cpp +++ b/src/mame/omori/carjmbre.cpp @@ -91,12 +91,12 @@ class carjmbre_state : public driver_device TILE_GET_INFO_MEMBER(get_tile_info); void carjmbre(machine_config &config); - void main_map(address_map &map); - void sound_io_map(address_map &map); - void sound_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_io_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; }; void carjmbre_state::machine_start() diff --git a/src/mame/omori/popper.cpp b/src/mame/omori/popper.cpp index 28c0a1dd1b1..9e48793ee63 100644 --- a/src/mame/omori/popper.cpp +++ b/src/mame/omori/popper.cpp @@ -77,8 +77,8 @@ class popper_state : public driver_device void popper(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; TIMER_CALLBACK_MEMBER(scanline_tick); @@ -101,8 +101,8 @@ class popper_state : public driver_device int m_back_color; int m_vram_page; - void main_map(address_map &map); - void sub_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sub_map(address_map &map) ATTR_COLD; void popper_palette(palette_device &palette) const; uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); diff --git a/src/mame/omori/spaceg.cpp b/src/mame/omori/spaceg.cpp index 13230c50e82..3f9ecf37a00 100644 --- a/src/mame/omori/spaceg.cpp +++ b/src/mame/omori/spaceg.cpp @@ -228,7 +228,7 @@ class spaceg_state : public driver_device void spaceg_palette(palette_device &palette) const; uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void spaceg_map(address_map &map); + void spaceg_map(address_map &map) ATTR_COLD; }; void spaceg_state::driver_start() diff --git a/src/mame/omron/luna_68k.cpp b/src/mame/omron/luna_68k.cpp index 0d1c432bfaa..d437a03e5ca 100644 --- a/src/mame/omron/luna_68k.cpp +++ b/src/mame/omron/luna_68k.cpp @@ -66,12 +66,12 @@ class luna_68k_state : public driver_device protected: // driver_device overrides - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; // address maps - void cpu_map(address_map &map); - void cpu_autovector_map(address_map &map); + void cpu_map(address_map &map) ATTR_COLD; + void cpu_autovector_map(address_map &map) ATTR_COLD; // machine config void common(machine_config &config); diff --git a/src/mame/omron/luna_88k.cpp b/src/mame/omron/luna_88k.cpp index 75f9db65bf2..35ece5bf8f0 100644 --- a/src/mame/omron/luna_88k.cpp +++ b/src/mame/omron/luna_88k.cpp @@ -85,13 +85,13 @@ class luna_88k_state_base : public driver_device DECLARE_INPUT_CHANGED_MEMBER(abort) { irq(0, 7, newval); } protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; - virtual void cpu_map(address_map &map); + virtual void cpu_map(address_map &map) ATTR_COLD; - void iop_map_mem(address_map &map); - void iop_map_pio(address_map &map); + void iop_map_mem(address_map &map) ATTR_COLD; + void iop_map_pio(address_map &map) ATTR_COLD; u32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, rectangle const &cliprect); @@ -160,7 +160,7 @@ class luna88k_state : public luna_88k_state_base void init(); protected: - virtual void cpu_map(address_map &map) override; + virtual void cpu_map(address_map &map) override ATTR_COLD; required_device m_rtc; required_device m_spc; @@ -185,8 +185,8 @@ class luna88k2_state : public luna_88k_state_base void init(); protected: - virtual void machine_start() override; - virtual void cpu_map(address_map &map) override; + virtual void machine_start() override ATTR_COLD; + virtual void cpu_map(address_map &map) override ATTR_COLD; required_device m_rtc; required_device_array m_spc; diff --git a/src/mame/omron/luna_kbd.h b/src/mame/omron/luna_kbd.h index ccb9c785ed6..83ccc645133 100644 --- a/src/mame/omron/luna_kbd.h +++ b/src/mame/omron/luna_kbd.h @@ -24,10 +24,10 @@ class luna_keyboard_device protected: // device overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; // device_buffered_serial_interface overrides virtual void tra_callback() override; diff --git a/src/mame/openuni/hektor.cpp b/src/mame/openuni/hektor.cpp index bc9517765de..832ab422941 100644 --- a/src/mame/openuni/hektor.cpp +++ b/src/mame/openuni/hektor.cpp @@ -118,8 +118,8 @@ class hektor_base_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(trigger_rst65); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; void i8155_porta_w(uint8_t data); uint8_t i8155_portb_r(); @@ -155,12 +155,12 @@ class hektor_state : public hektor_base_state void hektor2(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: - void hektor_mem(address_map &map); - void hektor_io(address_map &map); - void hektor2_mem(address_map &map); + void hektor_mem(address_map &map) ATTR_COLD; + void hektor_io(address_map &map) ATTR_COLD; + void hektor2_mem(address_map &map) ATTR_COLD; void i8155_portc_w(uint8_t data); @@ -186,11 +186,11 @@ class hektor3_state : public hektor_base_state void hektor3(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: - void hektor3_mem(address_map &map); - void hektor3_io(address_map &map); + void hektor3_mem(address_map &map) ATTR_COLD; + void hektor3_io(address_map &map) ATTR_COLD; void i8155_portc_w(uint8_t data); MC6845_UPDATE_ROW(crtc_update_row); diff --git a/src/mame/orca/akazukin.cpp b/src/mame/orca/akazukin.cpp index 30a42b46d22..c1acf2d0ee9 100644 --- a/src/mame/orca/akazukin.cpp +++ b/src/mame/orca/akazukin.cpp @@ -45,8 +45,8 @@ class akazukin_state : public driver_device void akazukin(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; @@ -66,10 +66,10 @@ class akazukin_state : public driver_device void nmi_sub_mask_w(uint8_t data); INTERRUPT_GEN_MEMBER(sub_irq); - void main_map(address_map &map); - void main_io(address_map &map); - void sub_map(address_map &map); - void sub_io(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void main_io(address_map &map) ATTR_COLD; + void sub_map(address_map &map) ATTR_COLD; + void sub_io(address_map &map) ATTR_COLD; }; /****************** diff --git a/src/mame/orca/espial.cpp b/src/mame/orca/espial.cpp index a3317a2f452..614b4e448a1 100644 --- a/src/mame/orca/espial.cpp +++ b/src/mame/orca/espial.cpp @@ -76,9 +76,9 @@ class espial_state : public driver_device void netwars(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; required_shared_ptr m_videoram; required_shared_ptr m_attributeram; @@ -115,9 +115,9 @@ class espial_state : public driver_device INTERRUPT_GEN_MEMBER(sound_nmi_gen); TIMER_DEVICE_CALLBACK_MEMBER(scanline); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); - void main_map(address_map &map); - void sound_io_map(address_map &map); - void sound_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_io_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; }; class netwars_state : public espial_state @@ -128,10 +128,10 @@ class netwars_state : public espial_state void netwars(machine_config &config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/orca/funkybee.cpp b/src/mame/orca/funkybee.cpp index 76da8ce6a5e..5caa37c0848 100644 --- a/src/mame/orca/funkybee.cpp +++ b/src/mame/orca/funkybee.cpp @@ -108,8 +108,8 @@ class funkybee_state : public driver_device void funkybee(machine_config &config); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: // memory pointers @@ -141,8 +141,8 @@ class funkybee_state : public driver_device void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); void draw_columns(bitmap_ind16 &bitmap, const rectangle &cliprect); - void prg_map(address_map &map); - void io_map(address_map &map); + void prg_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/orca/kyugo.h b/src/mame/orca/kyugo.h index 6e6b3f006fa..72261a255f2 100644 --- a/src/mame/orca/kyugo.h +++ b/src/mame/orca/kyugo.h @@ -37,9 +37,9 @@ class kyugo_state : public driver_device void gyrodine(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: void nmi_mask_w(int state); @@ -55,19 +55,19 @@ class kyugo_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); INTERRUPT_GEN_MEMBER(vblank_irq); - void flashgala_sub_map(address_map &map); - void flashgala_sub_portmap(address_map &map); - void gyrodine_main_map(address_map &map); - void gyrodine_sub_map(address_map &map); - void gyrodine_sub_portmap(address_map &map); - void kyugo_main_map(address_map &map); - void kyugo_main_portmap(address_map &map); - void srdmissn_main_map(address_map &map); - void legend_sub_map(address_map &map); - void repulse_sub_map(address_map &map); - void repulse_sub_portmap(address_map &map); - void srdmissn_sub_map(address_map &map); - void srdmissn_sub_portmap(address_map &map); + void flashgala_sub_map(address_map &map) ATTR_COLD; + void flashgala_sub_portmap(address_map &map) ATTR_COLD; + void gyrodine_main_map(address_map &map) ATTR_COLD; + void gyrodine_sub_map(address_map &map) ATTR_COLD; + void gyrodine_sub_portmap(address_map &map) ATTR_COLD; + void kyugo_main_map(address_map &map) ATTR_COLD; + void kyugo_main_portmap(address_map &map) ATTR_COLD; + void srdmissn_main_map(address_map &map) ATTR_COLD; + void legend_sub_map(address_map &map) ATTR_COLD; + void repulse_sub_map(address_map &map) ATTR_COLD; + void repulse_sub_portmap(address_map &map) ATTR_COLD; + void srdmissn_sub_map(address_map &map) ATTR_COLD; + void srdmissn_sub_portmap(address_map &map) ATTR_COLD; // memory pointers required_shared_ptr m_fgvideoram; diff --git a/src/mame/orca/marineb.cpp b/src/mame/orca/marineb.cpp index 228a1050ba9..1d4c9854348 100644 --- a/src/mame/orca/marineb.cpp +++ b/src/mame/orca/marineb.cpp @@ -78,9 +78,9 @@ class marineb_state : public driver_device void changes(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_shared_ptr m_videoram; @@ -128,14 +128,14 @@ class marineb_state : public driver_device void nmi_mask_w(int state); uint8_t system_watchdog_r(); void marineb_vblank_irq(int state); - void marineb_map(address_map &map); - void marineb_io_map(address_map &map); + void marineb_map(address_map &map) ATTR_COLD; + void marineb_io_map(address_map &map) ATTR_COLD; // wanted, bcruzm12 void irq_mask_w(int state); void wanted_vblank_irq(int state); - void wanted_map(address_map &map); - void wanted_io_map(address_map &map); + void wanted_map(address_map &map) ATTR_COLD; + void wanted_io_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/orca/orca40c.h b/src/mame/orca/orca40c.h index 6bab91ebc44..2e94174ea10 100644 --- a/src/mame/orca/orca40c.h +++ b/src/mame/orca/orca40c.h @@ -39,9 +39,9 @@ class orca_ovg_40c_device : public device_t, public device_gfx_interface, public protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void device_config_complete() override; - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: // shared memory finders diff --git a/src/mame/orca/sub.cpp b/src/mame/orca/sub.cpp index 042f80ede84..6ceb58284b3 100644 --- a/src/mame/orca/sub.cpp +++ b/src/mame/orca/sub.cpp @@ -143,8 +143,8 @@ class sub_state : public driver_device void sub(machine_config &config); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -176,10 +176,10 @@ class sub_state : public driver_device void main_irq(int state); INTERRUPT_GEN_MEMBER(sound_irq); - void main_io_map(address_map &map); - void main_program_map(address_map &map); - void sound_io_map(address_map &map); - void sound_program_map(address_map &map); + void main_io_map(address_map &map) ATTR_COLD; + void main_program_map(address_map &map) ATTR_COLD; + void sound_io_map(address_map &map) ATTR_COLD; + void sound_program_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/orca/vastar.cpp b/src/mame/orca/vastar.cpp index 01f84985d6e..56b1e11bc7b 100644 --- a/src/mame/orca/vastar.cpp +++ b/src/mame/orca/vastar.cpp @@ -144,7 +144,7 @@ class vastar_common_state : public driver_device void common(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; required_device m_maincpu; required_device m_subcpu; @@ -156,9 +156,9 @@ class vastar_common_state : public driver_device void nmi_mask_w(int state); INTERRUPT_GEN_MEMBER(vblank_irq); - void cpu2_map(address_map &map); - void cpu2_port_map(address_map &map); - void main_port_map(address_map &map); + void cpu2_map(address_map &map) ATTR_COLD; + void cpu2_port_map(address_map &map) ATTR_COLD; + void main_port_map(address_map &map) ATTR_COLD; }; class vastar_state : public vastar_common_state @@ -172,12 +172,12 @@ class vastar_state : public vastar_common_state void vastar(machine_config &config); protected: - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; private: required_device m_vasvid; - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; }; class dogfightp_state : public vastar_common_state @@ -190,7 +190,7 @@ class dogfightp_state : public vastar_common_state void dogfightp(machine_config &config); private: - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/orca/vastar_viddev.h b/src/mame/orca/vastar_viddev.h index 4030ff94a91..3338f7bbbd4 100644 --- a/src/mame/orca/vastar_viddev.h +++ b/src/mame/orca/vastar_viddev.h @@ -56,9 +56,9 @@ class vastar_video_device : public device_t, public device_gfx_interface, public protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void device_config_complete() override; - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: // shared memory finders diff --git a/src/mame/orca/zodiack.cpp b/src/mame/orca/zodiack.cpp index 7137dd64a10..4244e2f9278 100644 --- a/src/mame/orca/zodiack.cpp +++ b/src/mame/orca/zodiack.cpp @@ -124,8 +124,8 @@ class zodiack_state : public driver_device void percuss(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: void nmi_mask_w(uint8_t data); @@ -145,9 +145,9 @@ class zodiack_state : public driver_device INTERRUPT_GEN_MEMBER(sound_nmi_gen); void vblank_main_nmi_w(int state); - void io_map(address_map &map); - void main_map(address_map &map); - void sound_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; }; void zodiack_state::nmi_mask_w(uint8_t data) diff --git a/src/mame/orla/hk1000.cpp b/src/mame/orla/hk1000.cpp index 357e03b1900..b53adf3f3c9 100644 --- a/src/mame/orla/hk1000.cpp +++ b/src/mame/orla/hk1000.cpp @@ -31,9 +31,9 @@ class hk1000_state : public driver_device void hk1000(machine_config &config); private: - void main_map(address_map &map); - void sound_map(address_map &map); - void slot_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; + void slot_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_soundcpu; diff --git a/src/mame/orla/xm200.cpp b/src/mame/orla/xm200.cpp index b491b9ed991..693712ba599 100644 --- a/src/mame/orla/xm200.cpp +++ b/src/mame/orla/xm200.cpp @@ -24,7 +24,7 @@ class xm200_state : public driver_device void xm200(machine_config &config); private: - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; }; diff --git a/src/mame/osborne/osbexec.cpp b/src/mame/osborne/osbexec.cpp index 4d757df2397..fa06d524c10 100644 --- a/src/mame/osborne/osbexec.cpp +++ b/src/mame/osborne/osbexec.cpp @@ -68,7 +68,7 @@ class osbexec_state : public driver_device required_device_array m_floppy; required_ioport_array<8> m_kbd_row; - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); @@ -119,7 +119,7 @@ class osbexec_state : public driver_device void osbexec_c000_w(offs_t offset, uint8_t data); uint8_t osbexec_kbd_r(offs_t offset); uint8_t osbexec_rtc_r(); - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; TIMER_CALLBACK_MEMBER(osbexec_video_callback); uint8_t osbexec_pia0_a_r(); void osbexec_pia0_a_w(uint8_t data); @@ -132,8 +132,8 @@ class osbexec_state : public driver_device void modem_dsr_w(int state); void modem_ri_w(int state); void comm_clk_a_w(int state); - void osbexec_io(address_map &map); - void osbexec_mem(address_map &map); + void osbexec_io(address_map &map) ATTR_COLD; + void osbexec_mem(address_map &map) ATTR_COLD; }; diff --git a/src/mame/osborne/osborne1.cpp b/src/mame/osborne/osborne1.cpp index 7a607c22ec0..1af8888e209 100644 --- a/src/mame/osborne/osborne1.cpp +++ b/src/mame/osborne/osborne1.cpp @@ -158,15 +158,15 @@ class osborne1_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(reset_key); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; void osborne1_base(machine_config &config); - void osborne1_mem(address_map &map); - void osborne1_op(address_map &map); - void osborne1_io(address_map &map); + void osborne1_mem(address_map &map) ATTR_COLD; + void osborne1_op(address_map &map) ATTR_COLD; + void osborne1_io(address_map &map) ATTR_COLD; u8 bank2_peripherals_r(offs_t offset); void bank2_peripherals_w(offs_t offset, u8 data); @@ -267,10 +267,10 @@ class osborne1sp_state : public osborne1_state void osborne1sp(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; - void osborne1sp_mem(address_map &map); + void osborne1sp_mem(address_map &map) ATTR_COLD; u8 bank2_peripherals_r(offs_t offset); void bank2_peripherals_w(offs_t offset, u8 data); @@ -297,7 +297,7 @@ class osborne1nv_state : public osborne1_state void osborne1nv(machine_config &config); private: - void osborne1nv_io(address_map &map); + void osborne1nv_io(address_map &map) ATTR_COLD; MC6845_UPDATE_ROW(crtc_update_row); MC6845_ON_UPDATE_ADDR_CHANGED(crtc_update_addr_changed); diff --git a/src/mame/osborne/vixen.cpp b/src/mame/osborne/vixen.cpp index 085914c778c..5bc69f1678a 100644 --- a/src/mame/osborne/vixen.cpp +++ b/src/mame/osborne/vixen.cpp @@ -107,8 +107,8 @@ class vixen_state : public driver_device void init_vixen(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: uint8_t status_r(); @@ -132,9 +132,9 @@ class vixen_state : public driver_device uint8_t oprom_r(offs_t offset); uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void bios_mem(address_map &map); - void vixen_io(address_map &map); - void vixen_mem(address_map &map); + void bios_mem(address_map &map) ATTR_COLD; + void vixen_io(address_map &map) ATTR_COLD; + void vixen_mem(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_fdc; diff --git a/src/mame/osi/osi.h b/src/mame/osi/osi.h index ce0f2c5f413..1f717fc6665 100644 --- a/src/mame/osi/osi.h +++ b/src/mame/osi/osi.h @@ -49,8 +49,8 @@ class sb2m600_state : public driver_device void osi600(machine_config &config); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); uint8_t keyboard_r(); @@ -65,7 +65,7 @@ class sb2m600_state : public driver_device void osi600_video(machine_config &config); void osi630_video(machine_config &config); - void osi600_mem(address_map &map); + void osi600_mem(address_map &map) ATTR_COLD; uint8_t m_cass_data[4]{}; bool m_cassbit = false; @@ -106,10 +106,10 @@ class c1p_state : public sb2m600_state void c1p(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; void osi630_ctrl_w(uint8_t data); void osi630_sound_w(uint8_t data); - void c1p_mem(address_map &map); + void c1p_mem(address_map &map) ATTR_COLD; TIMER_DEVICE_CALLBACK_MEMBER(beep_timer); required_device m_beeper; @@ -127,14 +127,14 @@ class c1pmf_state : public c1p_state void c1pmf(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; uint8_t osi470_pia_pa_r(); void osi470_pia_pa_w(uint8_t data); void osi470_pia_pb_w(uint8_t data); void osi470_pia_cb2_w(int state); - void c1pmf_mem(address_map &map); + void c1pmf_mem(address_map &map) ATTR_COLD; private: required_device_array m_floppy; @@ -154,7 +154,7 @@ class uk101_state : public sb2m600_state void keyboard_w(uint8_t data); void uk101_video(machine_config &config); - void uk101_mem(address_map &map); + void uk101_mem(address_map &map) ATTR_COLD; }; #endif // MAME_OSI_OSI_H diff --git a/src/mame/pacific/mrflea.cpp b/src/mame/pacific/mrflea.cpp index 805b3e04d00..601a5b13033 100644 --- a/src/mame/pacific/mrflea.cpp +++ b/src/mame/pacific/mrflea.cpp @@ -106,8 +106,8 @@ class mrflea_state : public driver_device void mrflea(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: // memory pointers @@ -133,10 +133,10 @@ class mrflea_state : public driver_device TIMER_DEVICE_CALLBACK_MEMBER(slave_interrupt); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); void draw_background(bitmap_ind16 &bitmap, const rectangle &cliprect); - void master_io_map(address_map &map); - void master_map(address_map &map); - void slave_io_map(address_map &map); - void slave_map(address_map &map); + void master_io_map(address_map &map) ATTR_COLD; + void master_map(address_map &map) ATTR_COLD; + void slave_io_map(address_map &map) ATTR_COLD; + void slave_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/pacific/thief.cpp b/src/mame/pacific/thief.cpp index 21917edd5e0..d4fae83d0b5 100644 --- a/src/mame/pacific/thief.cpp +++ b/src/mame/pacific/thief.cpp @@ -59,12 +59,12 @@ class sharkatt_state : public driver_device void slam_w(int state); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; uint8_t videoram_r(offs_t offset); void videoram_w(offs_t offset, uint8_t data); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_samples; @@ -95,7 +95,7 @@ class sharkatt_state : public driver_device void tape_set_audio(int track, int bon); void tape_set_motor(int bon); - void io_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; }; class thief_state : public sharkatt_state @@ -111,7 +111,7 @@ class thief_state : public sharkatt_state void thief(machine_config &config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: required_region_ptr m_blitrom; @@ -142,7 +142,7 @@ class thief_state : public sharkatt_state uint16_t fetch_image_addr(); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/pacman/jrpacman.cpp b/src/mame/pacman/jrpacman.cpp index 27abfb4aee8..8f3f2dd262c 100644 --- a/src/mame/pacman/jrpacman.cpp +++ b/src/mame/pacman/jrpacman.cpp @@ -122,8 +122,8 @@ class jrpacman_state : public pacman_state void init_jrpacman(); private: - void main_map(address_map &map); - void port_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void port_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/pacman/pacman.h b/src/mame/pacman/pacman.h index efa200e4d10..a316824256e 100644 --- a/src/mame/pacman/pacman.h +++ b/src/mame/pacman/pacman.h @@ -40,34 +40,34 @@ class pacman_state : public driver_device { } protected: - void _8bpm_portmap(address_map &map); - void alibaba_map(address_map &map); - void bigbucks_map(address_map &map); - void bigbucks_portmap(address_map &map); - void birdiy_map(address_map &map); - void cannonbp_map(address_map &map); - void crushs_map(address_map &map); - void crushs_portmap(address_map &map); - void dremshpr_map(address_map &map); - void dremshpr_portmap(address_map &map); - void drivfrcp_portmap(address_map &map); - void mspacii_portmap(address_map &map); - void mschamp_map(address_map &map); - void mschamp_portmap(address_map &map); - void mspacman_map(address_map &map); - void nmouse_portmap(address_map &map); - void numcrash_map(address_map &map); - void pacman_map(address_map &map); - void pengojpm_map(address_map &map); - void piranha_portmap(address_map &map); - void porky_portmap(address_map &map); - void rocktrv2_map(address_map &map); - void s2650games_dataport(address_map &map); - void s2650games_map(address_map &map); - void superabc_map(address_map &map); - void vanvan_portmap(address_map &map); - void woodpek_map(address_map &map); - void writeport(address_map &map); + void _8bpm_portmap(address_map &map) ATTR_COLD; + void alibaba_map(address_map &map) ATTR_COLD; + void bigbucks_map(address_map &map) ATTR_COLD; + void bigbucks_portmap(address_map &map) ATTR_COLD; + void birdiy_map(address_map &map) ATTR_COLD; + void cannonbp_map(address_map &map) ATTR_COLD; + void crushs_map(address_map &map) ATTR_COLD; + void crushs_portmap(address_map &map) ATTR_COLD; + void dremshpr_map(address_map &map) ATTR_COLD; + void dremshpr_portmap(address_map &map) ATTR_COLD; + void drivfrcp_portmap(address_map &map) ATTR_COLD; + void mspacii_portmap(address_map &map) ATTR_COLD; + void mschamp_map(address_map &map) ATTR_COLD; + void mschamp_portmap(address_map &map) ATTR_COLD; + void mspacman_map(address_map &map) ATTR_COLD; + void nmouse_portmap(address_map &map) ATTR_COLD; + void numcrash_map(address_map &map) ATTR_COLD; + void pacman_map(address_map &map) ATTR_COLD; + void pengojpm_map(address_map &map) ATTR_COLD; + void piranha_portmap(address_map &map) ATTR_COLD; + void porky_portmap(address_map &map) ATTR_COLD; + void rocktrv2_map(address_map &map) ATTR_COLD; + void s2650games_dataport(address_map &map) ATTR_COLD; + void s2650games_map(address_map &map) ATTR_COLD; + void superabc_map(address_map &map) ATTR_COLD; + void vanvan_portmap(address_map &map) ATTR_COLD; + void woodpek_map(address_map &map) ATTR_COLD; + void writeport(address_map &map) ATTR_COLD; required_device m_maincpu; optional_device m_mainlatch; @@ -272,8 +272,8 @@ class epospm_state : public pacman_state DECLARE_MACHINE_START(acitya); DECLARE_MACHINE_RESET(acitya); - void epos_map(address_map &map); - void epos_portmap(address_map &map); + void epos_map(address_map &map) ATTR_COLD; + void epos_portmap(address_map &map) ATTR_COLD; }; class clubpacm_state : public pacman_state @@ -292,7 +292,7 @@ class clubpacm_state : public pacman_state void init_clubpacma(); protected: - void clubpacm_map(address_map &map); + void clubpacm_map(address_map &map) ATTR_COLD; required_device m_sublatch; required_ioport_array<2> m_players; @@ -318,8 +318,8 @@ class mspactwin_state : public clubpacm_state required_device m_screen; protected: - void mspactwin_map(address_map &map); - void mspactwin_decrypted_map(address_map &map); + void mspactwin_map(address_map &map) ATTR_COLD; + void mspactwin_decrypted_map(address_map &map) ATTR_COLD; void mspactwin_videoram_w(offs_t offset, uint8_t data); diff --git a/src/mame/pacman/pengo.cpp b/src/mame/pacman/pengo.cpp index c436c3771b8..96876606018 100644 --- a/src/mame/pacman/pengo.cpp +++ b/src/mame/pacman/pengo.cpp @@ -101,9 +101,9 @@ class pengo_state : public pacman_state optional_shared_ptr m_decrypted_opcodes; required_device m_latch; - void decrypted_opcodes_map(address_map &map); - void jrpacmbl_map(address_map &map); - void pengo_map(address_map &map); + void decrypted_opcodes_map(address_map &map) ATTR_COLD; + void jrpacmbl_map(address_map &map) ATTR_COLD; + void pengo_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/pacman/schick.cpp b/src/mame/pacman/schick.cpp index f8a9805702e..b37a0ff7801 100644 --- a/src/mame/pacman/schick.cpp +++ b/src/mame/pacman/schick.cpp @@ -54,7 +54,7 @@ class schick_state : public driver_device void init_schick(); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: void coin_counter_1_w(int state); @@ -97,11 +97,11 @@ class schick_state : public driver_device required_device m_palette; required_device_array m_ay; - void schick_portmap(address_map &map); - void schick_decrypted_opcodes_map(address_map &map); - void schick_map(address_map &map); - void schick_audio_map(address_map &map); - void schick_audio_io_map(address_map &map); + void schick_portmap(address_map &map) ATTR_COLD; + void schick_decrypted_opcodes_map(address_map &map) ATTR_COLD; + void schick_map(address_map &map) ATTR_COLD; + void schick_audio_map(address_map &map) ATTR_COLD; + void schick_audio_io_map(address_map &map) ATTR_COLD; uint8_t soundlatch_read_and_clear(); diff --git a/src/mame/palm/palm.cpp b/src/mame/palm/palm.cpp index a5dfff1d35e..8c2e214ef6d 100644 --- a/src/mame/palm/palm.cpp +++ b/src/mame/palm/palm.cpp @@ -45,8 +45,8 @@ class palm_base_state : public driver_device , m_io_penb(*this, "PENB") { } - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; offs_t dasm_override(std::ostream &stream, offs_t pc, const util::disasm_interface::data_buffer &opcodes, const util::disasm_interface::data_buffer ¶ms); @@ -81,12 +81,12 @@ class palm_state : public palm_base_state DECLARE_INPUT_CHANGED_MEMBER(button_check); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; void palm_base(machine_config &config); - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; u32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); @@ -130,12 +130,12 @@ class palmez_base_state : public palm_base_state , m_hardware_id(hardware_id) { } - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; void palmez_base(machine_config &config); - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; void adc_enable_w(int state); @@ -173,7 +173,7 @@ class palmiiic_state : public palmez_base_state void palmiiic(machine_config &config); protected: - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; required_device m_sed1375; }; diff --git a/src/mame/palm/palmz22.cpp b/src/mame/palm/palmz22.cpp index 35e3e68af7f..c4795de9983 100644 --- a/src/mame/palm/palmz22.cpp +++ b/src/mame/palm/palmz22.cpp @@ -95,8 +95,8 @@ class palmz22_state : public driver_device void init_palmz22(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; @@ -115,7 +115,7 @@ class palmz22_state : public driver_device uint32_t s3c2410_core_pin_r(offs_t offset); uint32_t s3c2410_adc_data_r(offs_t offset); - void map(address_map &map); + void map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/pc/asst128.cpp b/src/mame/pc/asst128.cpp index 5242d166a24..737795b5bee 100644 --- a/src/mame/pc/asst128.cpp +++ b/src/mame/pc/asst128.cpp @@ -24,7 +24,7 @@ class asst128_mb_device : public ibm5150_mb_device : ibm5150_mb_device(mconfig, ASST128_MOTHERBOARD, tag, owner, clock) { } - void map(address_map &map); + void map(address_map &map) ATTR_COLD; }; void asst128_mb_device::map(address_map &map) @@ -60,9 +60,9 @@ class asst128_state : public driver_device static void asst128_formats(format_registration &fr); void asst128_fdc_dor_w(uint8_t data); - void machine_start() override; - void asst128_io(address_map &map); - void asst128_map(address_map &map); + void machine_start() override ATTR_COLD; + void asst128_io(address_map &map) ATTR_COLD; + void asst128_map(address_map &map) ATTR_COLD; }; void asst128_state::machine_start() diff --git a/src/mame/pc/at.cpp b/src/mame/pc/at.cpp index 1044e069696..fac8db38374 100644 --- a/src/mame/pc/at.cpp +++ b/src/mame/pc/at.cpp @@ -193,16 +193,16 @@ class at_state : public driver_device static void cfg_single_1200K(device_t *device); static void cfg_single_1440K(device_t *device); static void cfg_dual_1440K(device_t *device); - void at16_io(address_map &map); - void at16_map(address_map &map); - void at16l_map(address_map &map); - void at32_io(address_map &map); - void at32_map(address_map &map); - void at32l_map(address_map &map); - void ficpio_io(address_map &map); - void ficpio_map(address_map &map); - void neat_io(address_map &map); - void ps1_16_io(address_map &map); + void at16_io(address_map &map) ATTR_COLD; + void at16_map(address_map &map) ATTR_COLD; + void at16l_map(address_map &map) ATTR_COLD; + void at32_io(address_map &map) ATTR_COLD; + void at32_map(address_map &map) ATTR_COLD; + void at32l_map(address_map &map) ATTR_COLD; + void ficpio_io(address_map &map) ATTR_COLD; + void ficpio_map(address_map &map) ATTR_COLD; + void neat_io(address_map &map) ATTR_COLD; + void ps1_16_io(address_map &map) ATTR_COLD; }; class at_vrom_fix_state : public at_state @@ -216,7 +216,7 @@ class at_vrom_fix_state : public at_state void megapcpla(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; }; class megapc_state : public driver_device @@ -249,10 +249,10 @@ class megapc_state : public driver_device void wd7600_hold(int state); void wd7600_tc(offs_t offset, uint8_t data) { m_isabus->eop_w(offset, data); } void wd7600_spkr(int state) { m_speaker->level_w(state); } - void megapc_io(address_map &map); - void megapc_map(address_map &map); - void megapcpl_io(address_map &map); - void megapcpl_map(address_map &map); + void megapc_io(address_map &map) ATTR_COLD; + void megapc_map(address_map &map) ATTR_COLD; + void megapcpl_io(address_map &map) ATTR_COLD; + void megapcpl_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/pc/atpci.cpp b/src/mame/pc/atpci.cpp index 369e5863542..a92c3c44b69 100644 --- a/src/mame/pc/atpci.cpp +++ b/src/mame/pc/atpci.cpp @@ -36,8 +36,8 @@ class at586_state : public driver_device void sb_config(device_t *device); void superio_config(device_t *device); - void at586_io(address_map &map); - void at586_map(address_map &map); + void at586_io(address_map &map) ATTR_COLD; + void at586_map(address_map &map) ATTR_COLD; private: required_device m_maincpu; diff --git a/src/mame/pc/calchase.cpp b/src/mame/pc/calchase.cpp index 561972f3869..25b03b739d6 100644 --- a/src/mame/pc/calchase.cpp +++ b/src/mame/pc/calchase.cpp @@ -144,15 +144,15 @@ class isa16_calchase_jamma_if : public device_t, public device_isa16_card_interf public: // construction/destruction isa16_calchase_jamma_if(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; ioport_value heartbeat_r(); protected: - 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 device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; // TODO: implement me once conversion to PCI kicks in // virtual void remap(int space_id, offs_t start, offs_t end) override; @@ -163,7 +163,7 @@ class isa16_calchase_jamma_if : public device_t, public device_isa16_card_interf emu_timer *m_hb_timer = nullptr; bool m_hb_state = false; - void io_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; template uint16_t iocard_r(); uint8_t nvram_r(offs_t offset); @@ -417,8 +417,8 @@ class calchase_state : public pcat_base_state void init_hostinv(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: std::unique_ptr m_bios_ram; @@ -430,8 +430,8 @@ class calchase_state : public pcat_base_state void bios_ram_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0); void intel82439tx_init(); - void calchase_io(address_map &map); - void calchase_map(address_map &map); + void calchase_io(address_map &map) ATTR_COLD; + void calchase_map(address_map &map) ATTR_COLD; uint8_t mtxc_config_r(int function, int reg); void mtxc_config_w(int function, int reg, uint8_t data); diff --git a/src/mame/pc/champ2.cpp b/src/mame/pc/champ2.cpp index 7f93c60e403..466a90b10ad 100644 --- a/src/mame/pc/champ2.cpp +++ b/src/mame/pc/champ2.cpp @@ -43,8 +43,8 @@ class champ2_state : public driver_device void init_at(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; void init_at_common(int xmsbase); private: @@ -52,9 +52,9 @@ class champ2_state : public driver_device required_device m_mb; required_device m_ram; required_device_array m_bank; - void bank_map(address_map &map); - void main_io(address_map &map); - void main_map(address_map &map); + void bank_map(address_map &map) ATTR_COLD; + void main_io(address_map &map) ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/pc/compc.cpp b/src/mame/pc/compc.cpp index b1cd181c821..4a7f4c710cd 100644 --- a/src/mame/pc/compc.cpp +++ b/src/mame/pc/compc.cpp @@ -55,7 +55,7 @@ class compc_state : public driver_device required_device m_mb; required_ioport m_dsw0; - void machine_reset() override; + void machine_reset() override ATTR_COLD; u8 pioiii_portc_r(); void pioiii_portc_w(u8 data); @@ -64,9 +64,9 @@ class compc_state : public driver_device void compc(machine_config &config); void pc10iii(machine_config &config); void compc1(machine_config &config); - void compc_io(address_map &map); - void compc_map(address_map &map); - void compciii_io(address_map &map); + void compc_io(address_map &map) ATTR_COLD; + void compc_map(address_map &map) ATTR_COLD; + void compciii_io(address_map &map) ATTR_COLD; private: u8 m_dips = 0; }; diff --git a/src/mame/pc/conliner.cpp b/src/mame/pc/conliner.cpp index 0017d3c87a2..88170e6cb45 100644 --- a/src/mame/pc/conliner.cpp +++ b/src/mame/pc/conliner.cpp @@ -58,7 +58,7 @@ class conliner_state : public driver_device void conliner(machine_config &config); private: - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; }; diff --git a/src/mame/pc/ct486.cpp b/src/mame/pc/ct486.cpp index 501b5b11882..fe57c22f41e 100644 --- a/src/mame/pc/ct486.cpp +++ b/src/mame/pc/ct486.cpp @@ -47,7 +47,7 @@ class ct486_state : public driver_device required_device m_isabus; required_device m_speaker; - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; uint16_t cs4031_ior(offs_t offset); void cs4031_iow(offs_t offset, uint16_t data); @@ -55,8 +55,8 @@ class ct486_state : public driver_device void cs4031_tc(offs_t offset, uint8_t data) { m_isabus->eop_w(offset, data); } void cs4031_spkr(int state) { m_speaker->level_w(state); } void ct486(machine_config &config); - void ct486_io(address_map &map); - void ct486_map(address_map &map); + void ct486_io(address_map &map) ATTR_COLD; + void ct486_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/pc/cuttherope.cpp b/src/mame/pc/cuttherope.cpp index 2aaa750adc6..c8adc7f5155 100644 --- a/src/mame/pc/cuttherope.cpp +++ b/src/mame/pc/cuttherope.cpp @@ -38,8 +38,8 @@ class cuttherope_state : public driver_device private: required_device m_maincpu; - void cuttherope_io(address_map &map); - void cuttherope_map(address_map &map); + void cuttherope_io(address_map &map) ATTR_COLD; + void cuttherope_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/pc/ec184x.cpp b/src/mame/pc/ec184x.cpp index aac10e26a93..40fcfb06c51 100644 --- a/src/mame/pc/ec184x.cpp +++ b/src/mame/pc/ec184x.cpp @@ -61,10 +61,10 @@ class ec184x_state : public driver_device uint8_t memboard_r(offs_t offset); void memboard_w(offs_t offset, uint8_t data); - void ec1840_io(address_map &map); - void ec1840_map(address_map &map); - void ec1841_io(address_map &map); - void ec1841_map(address_map &map); + void ec1840_io(address_map &map) ATTR_COLD; + void ec1840_map(address_map &map) ATTR_COLD; + void ec1841_io(address_map &map) ATTR_COLD; + void ec1841_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_ram; diff --git a/src/mame/pc/europc.cpp b/src/mame/pc/europc.cpp index cb15139cf2d..9228ac1a731 100644 --- a/src/mame/pc/europc.cpp +++ b/src/mame/pc/europc.cpp @@ -47,11 +47,11 @@ class europc_fdc_device : public isa8_fdc_device europc_fdc_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 void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; private: - void map(address_map &map); + void map(address_map &map) ATTR_COLD; }; DEFINE_DEVICE_TYPE(EUROPC_FDC, europc_fdc_device, "europc_fdc", "EURO PC FDC hookup") @@ -134,8 +134,8 @@ class europc_pc_state : public driver_device uint8_t m_jim_state; isa8_aga_device::mode_t m_jim_mode{}; - void europc_io(address_map &map); - void europc_map(address_map &map); + void europc_io(address_map &map) ATTR_COLD; + void europc_map(address_map &map) ATTR_COLD; }; /* diff --git a/src/mame/pc/europc_kbd.h b/src/mame/pc/europc_kbd.h index dce930982e1..173d2b538dc 100644 --- a/src/mame/pc/europc_kbd.h +++ b/src/mame/pc/europc_kbd.h @@ -30,11 +30,11 @@ class europc_keyboard_device : public device_t protected: // device-level overrides - virtual void device_resolve_objects() override; - virtual void device_start() override; - virtual ioport_constructor device_input_ports() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual const tiny_rom_entry *device_rom_region() const override; + virtual void device_resolve_objects() override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual ioport_constructor device_input_ports() const 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; private: TIMER_CALLBACK_MEMBER(kbdata_sync_w); diff --git a/src/mame/pc/filetto.cpp b/src/mame/pc/filetto.cpp index a3944e9c3e4..3071ccabeca 100644 --- a/src/mame/pc/filetto.cpp +++ b/src/mame/pc/filetto.cpp @@ -59,7 +59,7 @@ class isa8_cga_filetto_device : public isa8_cga_device // construction/destruction isa8_cga_filetto_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; }; DEFINE_DEVICE_TYPE(ISA8_CGA_FILETTO, isa8_cga_filetto_device, "filetto_cga", "ISA8_CGA_FILETTO") @@ -100,8 +100,8 @@ class filetto_state : public driver_device void filetto(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; TIMER_CALLBACK_MEMBER(sample_tick); @@ -132,9 +132,9 @@ class filetto_state : public driver_device required_device m_bank; required_device m_cvsd; required_memory_region m_samples; - void bank_map(address_map &map); - void filetto_io(address_map &map); - void filetto_map(address_map &map); + void bank_map(address_map &map) ATTR_COLD; + void filetto_io(address_map &map) ATTR_COLD; + void filetto_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/pc/fruitpc.cpp b/src/mame/pc/fruitpc.cpp index 5342c1284be..2763131e33d 100644 --- a/src/mame/pc/fruitpc.cpp +++ b/src/mame/pc/fruitpc.cpp @@ -53,8 +53,8 @@ class fruitpc_state : public pcat_base_state uint8_t fruit_inp_r(offs_t offset); void dma8237_1_dack_w(uint8_t data); static void fruitpc_sb_conf(device_t *device); - void fruitpc_io(address_map &map); - void fruitpc_map(address_map &map); + void fruitpc_io(address_map &map) ATTR_COLD; + void fruitpc_map(address_map &map) ATTR_COLD; }; uint8_t fruitpc_state::fruit_inp_r(offs_t offset) diff --git a/src/mame/pc/genpc.cpp b/src/mame/pc/genpc.cpp index 8e2b9414186..fc3447293c5 100644 --- a/src/mame/pc/genpc.cpp +++ b/src/mame/pc/genpc.cpp @@ -32,8 +32,8 @@ class genpc_state : public driver_device void pcherc(machine_config &config); void pcmda(machine_config &config); void pcv20(machine_config &config); - void pc8_io(address_map &map); - void pc8_map(address_map &map); + void pc8_io(address_map &map) ATTR_COLD; + void pc8_map(address_map &map) ATTR_COLD; private: required_device m_maincpu; diff --git a/src/mame/pc/ibmpc.cpp b/src/mame/pc/ibmpc.cpp index 68b27ca2083..5e9349d39e2 100644 --- a/src/mame/pc/ibmpc.cpp +++ b/src/mame/pc/ibmpc.cpp @@ -279,8 +279,8 @@ class ibmpc_state : public driver_device private: required_device m_maincpu; - void pc8_io(address_map &map); - void pc8_map(address_map &map); + void pc8_io(address_map &map) ATTR_COLD; + void pc8_map(address_map &map) ATTR_COLD; }; void ibmpc_state::pc8_map(address_map &map) diff --git a/src/mame/pc/ibmpcjr.cpp b/src/mame/pc/ibmpcjr.cpp index 3e56c77e135..13d65c971e0 100644 --- a/src/mame/pc/ibmpcjr.cpp +++ b/src/mame/pc/ibmpcjr.cpp @@ -52,13 +52,13 @@ class pcjr_state : public driver_device void ibmpcjr(machine_config &config); private: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; - void ibmpcjr_io(address_map &map); - void ibmpcjr_map(address_map &map); - void ibmpcjx_io(address_map &map); - void ibmpcjx_map(address_map &map); + void ibmpcjr_io(address_map &map) ATTR_COLD; + void ibmpcjr_map(address_map &map) ATTR_COLD; + void ibmpcjx_io(address_map &map) ATTR_COLD; + void ibmpcjx_map(address_map &map) ATTR_COLD; TIMER_CALLBACK_MEMBER(delayed_irq); TIMER_CALLBACK_MEMBER(watchdog_expired); diff --git a/src/mame/pc/igspc.cpp b/src/mame/pc/igspc.cpp index bbcc544bd4d..c991778ec1c 100644 --- a/src/mame/pc/igspc.cpp +++ b/src/mame/pc/igspc.cpp @@ -65,7 +65,7 @@ class speeddrv_state : public driver_device void init_speeddrv(); private: - void speeddrv_map(address_map &map); + void speeddrv_map(address_map &map) ATTR_COLD; required_device m_maincpu; }; diff --git a/src/mame/pc/iskr103x.cpp b/src/mame/pc/iskr103x.cpp index 694ac815ce2..50d19b386ee 100644 --- a/src/mame/pc/iskr103x.cpp +++ b/src/mame/pc/iskr103x.cpp @@ -43,8 +43,8 @@ class iskr103x_state : public driver_device private: required_device m_maincpu; - void iskr1031_io(address_map &map); - void iskr1031_map(address_map &map); + void iskr1031_io(address_map &map) ATTR_COLD; + void iskr1031_map(address_map &map) ATTR_COLD; }; void iskr103x_state::iskr1031_map(address_map &map) diff --git a/src/mame/pc/mc1502.cpp b/src/mame/pc/mc1502.cpp index 234f9e67984..24d4b453f09 100644 --- a/src/mame/pc/mc1502.cpp +++ b/src/mame/pc/mc1502.cpp @@ -75,8 +75,8 @@ class mc1502_state : public driver_device void fdc_config(device_t *device); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; @@ -116,8 +116,8 @@ class mc1502_state : public driver_device void mc1502_kppi_portb_w(uint8_t data); void mc1502_kppi_portc_w(uint8_t data); - void mc1502_io(address_map &map); - void mc1502_map(address_map &map); + void mc1502_io(address_map &map) ATTR_COLD; + void mc1502_map(address_map &map) ATTR_COLD; int m_pit_out2 = 0; }; diff --git a/src/mame/pc/nforcepc.cpp b/src/mame/pc/nforcepc.cpp index 21dd4604776..6104f045c96 100644 --- a/src/mame/pc/nforcepc.cpp +++ b/src/mame/pc/nforcepc.cpp @@ -1090,14 +1090,14 @@ class nforcepc_state : public driver_device nforcepc_state(const machine_config &mconfig, device_type type, const char *tag); private: - void nforce_map(address_map &map); - void nforce_map_io(address_map &map); + void nforce_map(address_map &map) ATTR_COLD; + void nforce_map_io(address_map &map) ATTR_COLD; void boot_state_award_w(uint8_t data); IRQ_CALLBACK_MEMBER(irq_callback); void maincpu_interrupt(int state); - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; required_device m_maincpu; required_device isalpc; diff --git a/src/mame/pc/nforcepc.h b/src/mame/pc/nforcepc.h index 30335783d99..a750bee76b3 100644 --- a/src/mame/pc/nforcepc.h +++ b/src/mame/pc/nforcepc.h @@ -35,19 +35,19 @@ class crush11_host_device : public pci_host_device { void set_ram_size(uint32_t size) { ram_size = size; } address_space *get_cpu_space(int spacenum) { return &cpu->space(spacenum); } - void bios_map(address_map &map); + void bios_map(address_map &map) ATTR_COLD; void aperture_map(address_map &map) {} protected: - 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 reset_all_mappings() override; virtual void map_extra(uint64_t memory_window_start, uint64_t memory_window_end, uint64_t memory_offset, address_space *memory_space, uint64_t io_window_start, uint64_t io_window_end, uint64_t io_offset, address_space *io_space) override; - virtual void config_map(address_map &map) override; + virtual void config_map(address_map &map) override ATTR_COLD; private: required_device cpu; @@ -73,13 +73,13 @@ class crush11_memory_device : public pci_device { void set_ram_size(int ram_size); protected: - 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 map_extra(uint64_t memory_window_start, uint64_t memory_window_end, uint64_t memory_offset, address_space *memory_space, uint64_t io_window_start, uint64_t io_window_end, uint64_t io_offset, address_space *io_space) override; - virtual void config_map(address_map &map) override; + virtual void config_map(address_map &map) override ATTR_COLD; private: int ddr_ram_size = 0; @@ -100,8 +100,8 @@ class smbus_logger_device : public device_t, public smbus_interface uint8_t *get_buffer() { return buffer; } protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: uint8_t buffer[0xff]{}; @@ -119,8 +119,8 @@ class smbus_rom_device : public device_t, public smbus_interface virtual int execute_command(int command, int rw, int data) override; protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: const uint8_t *buffer = nullptr; @@ -140,7 +140,7 @@ class as99127f_device : public device_t, public smbus_interface uint8_t *get_buffer() { return buffer; } protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: uint8_t buffer[0xff]{}; @@ -156,7 +156,7 @@ class as99127f_sensor2_device : public device_t, public smbus_interface uint8_t *get_buffer() { return buffer; } protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: uint8_t buffer[0xff]{}; @@ -172,7 +172,7 @@ class as99127f_sensor3_device : public device_t, public smbus_interface uint8_t *get_buffer() { return buffer; } protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: uint8_t buffer[0xff]{}; @@ -189,7 +189,7 @@ class it8703f_device : public device_t, public lpcbus_device_interface virtual void map_extra(address_space *memory_space, address_space *io_space) override; virtual void set_host(int device_index, lpcbus_host_interface *host) override; virtual uint32_t dma_transfer(int channel, dma_operation operation, dma_size size, uint32_t data) override; - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; auto pin_reset() { return pin_reset_callback.bind(); } auto pin_gatea20() { return pin_gatea20_callback.bind(); } @@ -200,10 +200,10 @@ class it8703f_device : public device_t, public lpcbus_device_interface auto ndtr2() { return m_ndtr2_callback.bind(); } auto nrts2() { return m_nrts2_callback.bind(); } - void map_lpt(address_map& map); - void map_serial1(address_map& map); - void map_serial2(address_map& map); - void map_keyboard(address_map &map); + void map_lpt(address_map &map) ATTR_COLD; + void map_serial1(address_map &map) ATTR_COLD; + void map_serial2(address_map &map) ATTR_COLD; + void map_keyboard(address_map &map) ATTR_COLD; // floppy disk controller void irq_floppy_w(int state); @@ -253,7 +253,7 @@ class it8703f_device : public device_t, public lpcbus_device_interface void keybc_command_w(uint8_t data); protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: enum OperatingMode @@ -302,8 +302,8 @@ class it8703f_device : public device_t, public lpcbus_device_interface address_space *memspace = nullptr; address_space *iospace = nullptr; - void internal_memory_map(address_map &map); - void internal_io_map(address_map &map); + void internal_memory_map(address_map &map) ATTR_COLD; + void internal_io_map(address_map &map) ATTR_COLD; uint16_t get_base_address(int logical, int index); void map_fdc_addresses(); void map_lpt_addresses(); diff --git a/src/mame/pc/pangofun.cpp b/src/mame/pc/pangofun.cpp index 2e0712eb67b..601095ec50a 100644 --- a/src/mame/pc/pangofun.cpp +++ b/src/mame/pc/pangofun.cpp @@ -119,9 +119,9 @@ class pangofun_state : public pcat_base_state void init_pangofun(); private: - virtual void machine_start() override; - void pcat_io(address_map &map); - void pcat_map(address_map &map); + virtual void machine_start() override ATTR_COLD; + void pcat_io(address_map &map) ATTR_COLD; + void pcat_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/pc/paokaipc.cpp b/src/mame/pc/paokaipc.cpp index 95863217aba..b497c12c3d1 100644 --- a/src/mame/pc/paokaipc.cpp +++ b/src/mame/pc/paokaipc.cpp @@ -46,8 +46,8 @@ class paokaipc_state : public pcat_base_state required_device m_pciroot; required_device m_isabus; - void main_io(address_map &map); - void main_map(address_map &map); + void main_io(address_map &map) ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; }; void paokaipc_state::main_map(address_map &map) diff --git a/src/mame/pc/pc.cpp b/src/mame/pc/pc.cpp index c3b3a123ed1..6f00b683325 100644 --- a/src/mame/pc/pc.cpp +++ b/src/mame/pc/pc.cpp @@ -91,12 +91,12 @@ class pc_state : public driver_device static void cfg_single_360K(device_t *device); static void cfg_single_720K(device_t *device); - void pc16_io(address_map &map); - void pc16_map(address_map &map); - void pc8_io(address_map &map); - void pc8_map(address_map &map); - void pc8_flash_map(address_map &map); - void zenith_map(address_map &map); + void pc16_io(address_map &map) ATTR_COLD; + void pc16_map(address_map &map) ATTR_COLD; + void pc8_io(address_map &map) ATTR_COLD; + void pc8_map(address_map &map) ATTR_COLD; + void pc8_flash_map(address_map &map) ATTR_COLD; + void zenith_map(address_map &map) ATTR_COLD; }; void pc_state::pc8_map(address_map &map) diff --git a/src/mame/pc/pc_t1t.h b/src/mame/pc/pc_t1t.h index 1bef1d1b267..093c298b0b4 100644 --- a/src/mame/pc/pc_t1t.h +++ b/src/mame/pc/pc_t1t.h @@ -28,7 +28,7 @@ class pc_t1t_device : public device_t, public device_video_interface MC6845_UPDATE_ROW( t1000_gfx_2bpp_tga_update_row ); MC6845_UPDATE_ROW( t1000_gfx_1bpp_update_row ); - void vram_map(address_map &map); + void vram_map(address_map &map) ATTR_COLD; protected: // used in tandy1000hx; used in pcjr??? @@ -104,8 +104,8 @@ class pcvideo_t1000_device : public pc_t1t_device void disable_w(int state); protected: - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; private: void mode_switch(); @@ -132,8 +132,8 @@ class pcvideo_pcjr_device : public pc_t1t_device MC6845_UPDATE_ROW( pcjr_gfx_2bpp_high_update_row ); protected: - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; required_device m_pic8259; uint8_t *m_jxkanji; diff --git a/src/mame/pc/pcat_dyn.cpp b/src/mame/pc/pcat_dyn.cpp index 9808c59b2c7..bd9ca74bfbc 100644 --- a/src/mame/pc/pcat_dyn.cpp +++ b/src/mame/pc/pcat_dyn.cpp @@ -64,11 +64,11 @@ class pcat_dyn_state : public pcat_base_state void bank2_w(uint8_t data); uint8_t audio_r(offs_t offset); void dma8237_1_dack_w(uint8_t data); - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; void nvram_init(nvram_device &nvram, void *base, size_t size); static void pcat_dyn_sb_conf(device_t *device); - void pcat_io(address_map &map); - void pcat_map(address_map &map); + void pcat_io(address_map &map) ATTR_COLD; + void pcat_map(address_map &map) ATTR_COLD; }; void pcat_dyn_state::machine_start() diff --git a/src/mame/pc/pcat_nit.cpp b/src/mame/pc/pcat_nit.cpp index cfe31cb9dd9..2656f3ddcd4 100644 --- a/src/mame/pc/pcat_nit.cpp +++ b/src/mame/pc/pcat_nit.cpp @@ -124,11 +124,11 @@ class pcat_nit_state : public pcat_base_state void pcat_nit_rombank_w(uint8_t data); uint8_t pcat_nit_io_r(offs_t offset); - virtual void machine_start() override; - void bonanza_io_map(address_map &map); - void bonanza_map(address_map &map); - void pcat_map(address_map &map); - void pcat_nit_io(address_map &map); + virtual void machine_start() override ATTR_COLD; + void bonanza_io_map(address_map &map) ATTR_COLD; + void bonanza_map(address_map &map) ATTR_COLD; + void pcat_map(address_map &map) ATTR_COLD; + void pcat_nit_io(address_map &map) ATTR_COLD; }; /************************************* diff --git a/src/mame/pc/pcipc.cpp b/src/mame/pc/pcipc.cpp index 65290b71e6c..c65606f04cf 100644 --- a/src/mame/pc/pcipc.cpp +++ b/src/mame/pc/pcipc.cpp @@ -72,14 +72,14 @@ class pcipc_state : public driver_device void x86_softlists(machine_config &config); private: - void pcipc_map(address_map &map); - void pcipc_map_io(address_map &map); + void pcipc_map(address_map &map) ATTR_COLD; + void pcipc_map_io(address_map &map) ATTR_COLD; [[maybe_unused]] void boot_state_phoenix_w(uint8_t data); void boot_state_phoenix_ver40_rev6_w(uint8_t data); void boot_state_award_w(uint8_t data); - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; static void smc_superio_config(device_t *device); static void winbond_superio_config(device_t *device); diff --git a/src/mame/pc/pcipc_sis.cpp b/src/mame/pc/pcipc_sis.cpp index 8d177a5bcfa..6e3b1c47ec6 100644 --- a/src/mame/pc/pcipc_sis.cpp +++ b/src/mame/pc/pcipc_sis.cpp @@ -43,8 +43,8 @@ class sis496_state : public driver_device required_device m_maincpu; private: - void main_io(address_map &map); - void main_map(address_map &map); + void main_io(address_map &map) ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; static void winbond_superio_config(device_t *device); }; diff --git a/src/mame/pc/poisk1.cpp b/src/mame/pc/poisk1.cpp index b2065bbda07..a20ad099217 100644 --- a/src/mame/pc/poisk1.cpp +++ b/src/mame/pc/poisk1.cpp @@ -91,9 +91,9 @@ class p1_state : public driver_device void fdc_config(device_t *device); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; void vsync_changed(int state); TIMER_DEVICE_CALLBACK_MEMBER(hsync_changed); @@ -157,8 +157,8 @@ class p1_state : public driver_device void p1_ppi2_portb_w(uint8_t data); uint8_t p1_ppi2_portc_r(); - void poisk1_io(address_map &map); - void poisk1_map(address_map &map); + void poisk1_io(address_map &map) ATTR_COLD; + void poisk1_map(address_map &map) ATTR_COLD; }; /* diff --git a/src/mame/pc/przone.cpp b/src/mame/pc/przone.cpp index 21156e1db2f..dd3ac214fd8 100644 --- a/src/mame/pc/przone.cpp +++ b/src/mame/pc/przone.cpp @@ -49,13 +49,13 @@ class isa16_przone_jamma_if : public device_t, public device_isa16_card_interfac public: // construction/destruction isa16_przone_jamma_if(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; protected: - 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 device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual void remap(int space_id, offs_t start, offs_t end) override; @@ -64,8 +64,8 @@ class isa16_przone_jamma_if : public device_t, public device_isa16_card_interfac //required_ioport_array<5> m_iocard; required_ioport m_iocard; - void mem_map(address_map &map); - void io_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; uint16_t iocard_r(); uint8_t nvram_r(offs_t offset); @@ -188,8 +188,8 @@ class przone_state : public driver_device void przone(machine_config &config); private: - void main_io(address_map &map); - void main_map(address_map &map); + void main_io(address_map &map) ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; static void smc_superio_config(device_t *device); }; diff --git a/src/mame/pc/ps2.cpp b/src/mame/pc/ps2.cpp index 25d1a4b9b9c..2ab9028d734 100644 --- a/src/mame/pc/ps2.cpp +++ b/src/mame/pc/ps2.cpp @@ -34,12 +34,12 @@ class ps2_state : public driver_device void ps2386(machine_config &config); void ps2386sx(machine_config &config); void at_softlists(machine_config &config); - void ps2_16_io(address_map &map); - void ps2_16_map(address_map &map); - void ps2_32_io(address_map &map); - void ps2_32_map(address_map &map); + void ps2_16_io(address_map &map) ATTR_COLD; + void ps2_16_map(address_map &map) ATTR_COLD; + void ps2_32_io(address_map &map) ATTR_COLD; + void ps2_32_map(address_map &map) ATTR_COLD; protected: - void machine_start() override; + void machine_start() override ATTR_COLD; }; void ps2_state::at_softlists(machine_config &config) diff --git a/src/mame/pc/quakeat.cpp b/src/mame/pc/quakeat.cpp index e928b6a1823..af62e0c0f07 100644 --- a/src/mame/pc/quakeat.cpp +++ b/src/mame/pc/quakeat.cpp @@ -116,9 +116,9 @@ class quakeat_state : public driver_device required_device m_maincpu; required_device m_voodoo; - void ga6la7_map(address_map &map); - void ga6la7_io(address_map &map); - void quake_map(address_map &map); + void ga6la7_map(address_map &map) ATTR_COLD; + void ga6la7_io(address_map &map) ATTR_COLD; + void quake_map(address_map &map) ATTR_COLD; static void winbond_superio_config(device_t *device); }; diff --git a/src/mame/pc/queen.cpp b/src/mame/pc/queen.cpp index f6915d51910..1cedf1e6645 100644 --- a/src/mame/pc/queen.cpp +++ b/src/mame/pc/queen.cpp @@ -60,11 +60,11 @@ class queen_state : public pcat_base_state void bios_ext_ram_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0); void bios_ram_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0); - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; void intel82439tx_init(); - void queen_io(address_map &map); - void queen_map(address_map &map); + void queen_io(address_map &map) ATTR_COLD; + void queen_map(address_map &map) ATTR_COLD; uint8_t mtxc_config_r(int function, int reg); void mtxc_config_w(int function, int reg, uint8_t data); diff --git a/src/mame/pc/sis630.cpp b/src/mame/pc/sis630.cpp index eb2640baef1..f1b75fe0524 100644 --- a/src/mame/pc/sis630.cpp +++ b/src/mame/pc/sis630.cpp @@ -200,8 +200,8 @@ class sis630_state : public driver_device required_device m_ide_00_1; required_device m_lpc_01_0; -// void main_io(address_map &map); -// void main_map(address_map &map); +// void main_io(address_map &map) ATTR_COLD; +// void main_map(address_map &map) ATTR_COLD; static void ite_superio_config(device_t *device); }; diff --git a/src/mame/pc/tandy1t.cpp b/src/mame/pc/tandy1t.cpp index 011fd551e2e..877dd915e60 100644 --- a/src/mame/pc/tandy1t.cpp +++ b/src/mame/pc/tandy1t.cpp @@ -64,7 +64,7 @@ class t1000_mb_device : public pc_noppi_mb_device : pc_noppi_mb_device(mconfig, T1000_MOTHERBOARD, tag, owner, clock) { } protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; }; void t1000_mb_device::device_start() @@ -98,7 +98,7 @@ class tandy1000_state : public driver_device void t1000tx(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_maincpu; @@ -150,15 +150,15 @@ class tandy1000_state : public driver_device static void cfg_fdc_35(device_t *device); static void cfg_fdc_525(device_t *device); - void biosbank_map(address_map &map); - void tandy1000_16_io(address_map &map); - void tandy1000_286_map(address_map &map); - void tandy1000_286_bank_map(address_map &map); - void tandy1000_bank_io(address_map &map); - void tandy1000_bank_map(address_map &map); - void tandy1000_io(address_map &map); - void tandy1000_map(address_map &map); - void tandy1000tx_io(address_map &map); + void biosbank_map(address_map &map) ATTR_COLD; + void tandy1000_16_io(address_map &map) ATTR_COLD; + void tandy1000_286_map(address_map &map) ATTR_COLD; + void tandy1000_286_bank_map(address_map &map) ATTR_COLD; + void tandy1000_bank_io(address_map &map) ATTR_COLD; + void tandy1000_bank_map(address_map &map) ATTR_COLD; + void tandy1000_io(address_map &map) ATTR_COLD; + void tandy1000_map(address_map &map) ATTR_COLD; + void tandy1000tx_io(address_map &map) ATTR_COLD; }; /* tandy 1000 eeprom @@ -565,7 +565,7 @@ class t1000_keyboard_device : public pc_keyboard_device t1000_keyboard_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 0); protected: - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; }; DEFINE_DEVICE_TYPE(T1000_KEYB, t1000_keyboard_device, "t1000_keyb", "Tandy 1000 Keyboard") diff --git a/src/mame/pc/teradrive.cpp b/src/mame/pc/teradrive.cpp index adbade52c99..42034bd546c 100644 --- a/src/mame/pc/teradrive.cpp +++ b/src/mame/pc/teradrive.cpp @@ -40,11 +40,11 @@ class teradrive_state : public driver_device void teradrive(machine_config &config); void at_softlists(machine_config &config); - void teradrive_io(address_map &map); - void teradrive_map(address_map &map); + void teradrive_io(address_map &map) ATTR_COLD; + void teradrive_map(address_map &map) ATTR_COLD; protected: - void machine_start() override; + void machine_start() override ATTR_COLD; private: u16 m_heartbeat = 0; diff --git a/src/mame/pc/tetriskr.cpp b/src/mame/pc/tetriskr.cpp index f43e543ff1b..9b643f70cd5 100644 --- a/src/mame/pc/tetriskr.cpp +++ b/src/mame/pc/tetriskr.cpp @@ -29,8 +29,8 @@ class isa8_cga_tetriskr_device : public isa8_cga_superimpose_device isa8_cga_tetriskr_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); virtual uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect) override; - 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; uint8_t bg_bank_r(); void bg_bank_w(uint8_t data); @@ -135,8 +135,8 @@ class tetriskr_state : public driver_device void tetriskr(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; TIMER_CALLBACK_MEMBER(sample_tick); @@ -150,8 +150,8 @@ class tetriskr_state : public driver_device required_device m_maincpu; required_device m_mb; - void tetriskr_io(address_map &map); - void tetriskr_map(address_map &map); + void tetriskr_io(address_map &map) ATTR_COLD; + void tetriskr_map(address_map &map) ATTR_COLD; }; uint8_t tetriskr_state::port_a_r() diff --git a/src/mame/pc/tosh1000.cpp b/src/mame/pc/tosh1000.cpp index 83208256188..3505334f30c 100644 --- a/src/mame/pc/tosh1000.cpp +++ b/src/mame/pc/tosh1000.cpp @@ -81,7 +81,7 @@ class tosh1000_state : public driver_device void init_tosh1000(); protected: - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; private: void romdos_bank_w(uint8_t data); @@ -90,9 +90,9 @@ class tosh1000_state : public driver_device uint8_t bram_r(offs_t offset); static void cfg_fdc_35(device_t *device); - void tosh1000_io(address_map &map); - void tosh1000_map(address_map &map); - void tosh1000_romdos(address_map &map); + void tosh1000_io(address_map &map) ATTR_COLD; + void tosh1000_map(address_map &map) ATTR_COLD; + void tosh1000_romdos(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_bankdev; diff --git a/src/mame/pc/tosh1000_bram.h b/src/mame/pc/tosh1000_bram.h index 3a0abf29473..7a4f6d098ae 100644 --- a/src/mame/pc/tosh1000_bram.h +++ b/src/mame/pc/tosh1000_bram.h @@ -27,8 +27,8 @@ class tosh1000_bram_device : public device_t, public device_nvram_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; // device_nvram_interface overrides virtual void nvram_default() override; diff --git a/src/mame/pce/ggconnie.cpp b/src/mame/pce/ggconnie.cpp index 90af2c6c704..c5457c31afc 100644 --- a/src/mame/pce/ggconnie.cpp +++ b/src/mame/pce/ggconnie.cpp @@ -49,15 +49,15 @@ class ggconnie_state : public pce_common_state void ggconnie(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: void lamp_w(uint8_t data); void output_w(uint8_t data); void oki_bank_w(offs_t offset, uint8_t data); - void sgx_io(address_map &map); - void sgx_mem(address_map &map); - void oki_map(address_map &map); + void sgx_io(address_map &map) ATTR_COLD; + void sgx_mem(address_map &map) ATTR_COLD; + void oki_map(address_map &map) ATTR_COLD; required_device m_rtc; required_device m_oki; diff --git a/src/mame/pce/paranoia.cpp b/src/mame/pce/paranoia.cpp index 8b676769a81..2d859ac48b4 100644 --- a/src/mame/pce/paranoia.cpp +++ b/src/mame/pce/paranoia.cpp @@ -68,12 +68,12 @@ class paranoia_state : public pce_common_state void i8155_b_w(uint8_t data); void i8155_c_w(uint8_t data); void i8155_timer_out(int state); - void paranoia_8085_io_map(address_map &map); - void paranoia_8085_map(address_map &map); - void paranoia_z80_io_map(address_map &map); - void paranoia_z80_map(address_map &map); - void pce_io(address_map &map); - void pce_mem(address_map &map); + void paranoia_8085_io_map(address_map &map) ATTR_COLD; + void paranoia_8085_map(address_map &map) ATTR_COLD; + void paranoia_z80_io_map(address_map &map) ATTR_COLD; + void paranoia_z80_map(address_map &map) ATTR_COLD; + void pce_io(address_map &map) ATTR_COLD; + void pce_mem(address_map &map) ATTR_COLD; }; diff --git a/src/mame/pce/tourvis.cpp b/src/mame/pce/tourvis.cpp index c045efce78b..bfd0ea18c4c 100644 --- a/src/mame/pce/tourvis.cpp +++ b/src/mame/pce/tourvis.cpp @@ -214,9 +214,9 @@ class tourvision_state : public pce_common_state DECLARE_DEVICE_IMAGE_LOAD_MEMBER(cart_load); - void pce_io(address_map &map); - void pce_mem(address_map &map); - void tourvision_8085_map(address_map &map); + void pce_io(address_map &map) ATTR_COLD; + void pce_mem(address_map &map) ATTR_COLD; + void tourvision_8085_map(address_map &map) ATTR_COLD; required_device m_subcpu; required_device m_cart; diff --git a/src/mame/pce/uapce.cpp b/src/mame/pce/uapce.cpp index f8779a731ee..e8d84becebc 100644 --- a/src/mame/pce/uapce.cpp +++ b/src/mame/pce/uapce.cpp @@ -140,12 +140,12 @@ class uapce_state : public pce_common_state uint8_t jamma_if_control_latch_r(); uint8_t jamma_if_read_dsw(offs_t offset); virtual uint8_t joy_read() override; - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; required_device m_discrete; - void pce_io(address_map &map); - void pce_mem(address_map &map); - void z80_map(address_map &map); + void pce_io(address_map &map) ATTR_COLD; + void pce_mem(address_map &map) ATTR_COLD; + void z80_map(address_map &map) ATTR_COLD; }; #define UAPCE_SOUND_EN NODE_10 diff --git a/src/mame/philips/cdi.h b/src/mame/philips/cdi.h index e83c18cd687..3d317392eac 100644 --- a/src/mame/philips/cdi.h +++ b/src/mame/philips/cdi.h @@ -61,13 +61,13 @@ class cdi_state : public driver_device required_device_array m_dmadac; uint32_t screen_update_cdimono1_lcd(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; - void cdimono1_mem(address_map &map); + void cdimono1_mem(address_map &map) ATTR_COLD; - void cdi910_mem(address_map &map); - void cdimono2_mem(address_map &map); - void cdi070_cpuspace(address_map &map); + void cdi910_mem(address_map &map) ATTR_COLD; + void cdimono2_mem(address_map &map) ATTR_COLD; + void cdi070_cpuspace(address_map &map) ATTR_COLD; template uint16_t plane_r(offs_t offset, uint16_t mem_mask = ~0); template void plane_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); @@ -94,8 +94,8 @@ class quizard_state : public cdi_state, public device_serial_interface void quizard(machine_config &config); private: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; virtual void tra_callback() override; virtual void rcv_complete() override; diff --git a/src/mame/philips/cdicdic.h b/src/mame/philips/cdicdic.h index 12522857413..cc253fc7091 100644 --- a/src/mame/philips/cdicdic.h +++ b/src/mame/philips/cdicdic.h @@ -61,8 +61,8 @@ class cdicdic_device : public device_t protected: // 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 callbacks TIMER_CALLBACK_MEMBER(sector_tick); diff --git a/src/mame/philips/cdislavehle.h b/src/mame/philips/cdislavehle.h index 3e80d0de5f4..d3c0aa2a260 100644 --- a/src/mame/philips/cdislavehle.h +++ b/src/mame/philips/cdislavehle.h @@ -46,8 +46,8 @@ class cdislave_hle_device : public device_t protected: // 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 callbacks TIMER_CALLBACK_MEMBER( trigger_readback_int ); diff --git a/src/mame/philips/mcd212.h b/src/mame/philips/mcd212.h index 48c22318f2c..fbb385cb0cc 100644 --- a/src/mame/philips/mcd212.h +++ b/src/mame/philips/mcd212.h @@ -49,15 +49,15 @@ class mcd212_device : public device_t, uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void map(address_map &map); + void map(address_map &map) ATTR_COLD; template int ram_dtack_cycle_count(); int rom_dtack_cycle_count(); protected: // 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; TIMER_CALLBACK_MEMBER(ica_tick); TIMER_CALLBACK_MEMBER(dca_tick); diff --git a/src/mame/philips/minitel_2_rpic.cpp b/src/mame/philips/minitel_2_rpic.cpp index db712aca376..1869c8ed180 100644 --- a/src/mame/philips/minitel_2_rpic.cpp +++ b/src/mame/philips/minitel_2_rpic.cpp @@ -125,7 +125,7 @@ class minitel_state : public driver_device void minitel2(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_maincpu; @@ -164,8 +164,8 @@ class minitel_state : public driver_device uint8_t ts9347_io_r(offs_t offset); void ts9347_io_w(offs_t offset, uint8_t data); - void mem_prg(address_map &map); - void mem_io(address_map &map); + void mem_prg(address_map &map) ATTR_COLD; + void mem_io(address_map &map) ATTR_COLD; }; void minitel_state::machine_start() diff --git a/src/mame/philips/odyssey2.cpp b/src/mame/philips/odyssey2.cpp index 1b4ac2b041a..d9fb7fe29fc 100644 --- a/src/mame/philips/odyssey2.cpp +++ b/src/mame/philips/odyssey2.cpp @@ -165,8 +165,8 @@ class odyssey2_state : public driver_device u8 m_p1 = 0xff; u8 m_p2 = 0xff; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; void adjust_palette(); @@ -178,8 +178,8 @@ class odyssey2_state : public driver_device void p2_write(u8 data); int t1_read(); - void odyssey2_io(address_map &map); - void odyssey2_mem(address_map &map); + void odyssey2_io(address_map &map) ATTR_COLD; + void odyssey2_mem(address_map &map) ATTR_COLD; private: u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); @@ -199,7 +199,7 @@ class vpp_state : public odyssey2_state void odyssey3(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; virtual u8 io_read(offs_t offset) override; virtual void io_write(offs_t offset, u8 data) override; diff --git a/src/mame/philips/p2000t.h b/src/mame/philips/p2000t.h index fe216ac25db..357d0c5371f 100644 --- a/src/mame/philips/p2000t.h +++ b/src/mame/philips/p2000t.h @@ -47,12 +47,12 @@ class p2000t_state : public driver_device void p2000t_port_8c90_w(uint8_t data); void p2000t_port_9494_w(uint8_t data); uint8_t videoram_r(offs_t offset); - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; INTERRUPT_GEN_MEMBER(p2000_interrupt); - void p2000t_mem(address_map &map); - void p2000t_io(address_map &map); + void p2000t_mem(address_map &map) ATTR_COLD; + void p2000t_io(address_map &map) ATTR_COLD; required_shared_ptr m_videoram; @@ -83,11 +83,11 @@ class p2000m_state : public p2000t_state void p2000m(machine_config &config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; void p2000m_palette(palette_device &palette) const; uint32_t screen_update_p2000m(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void p2000m_mem(address_map &map); + void p2000m_mem(address_map &map) ATTR_COLD; private: required_device m_gfxdecode; diff --git a/src/mame/philips/philipsbo.cpp b/src/mame/philips/philipsbo.cpp index 2fbc107ced0..cf9b22de7ba 100644 --- a/src/mame/philips/philipsbo.cpp +++ b/src/mame/philips/philipsbo.cpp @@ -46,11 +46,11 @@ class pbo_state : public driver_device void pbo(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; - void main_map(address_map &map); - void net_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void net_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_netcpu; diff --git a/src/mame/philips/vg5k.cpp b/src/mame/philips/vg5k.cpp index 2375f0ab975..a261d484f66 100644 --- a/src/mame/philips/vg5k.cpp +++ b/src/mame/philips/vg5k.cpp @@ -98,8 +98,8 @@ class vg5k_state : public driver_device uint8_t m_printer_signal = 0; emu_timer *m_z80_irq_clear_timer = nullptr; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; void z80_m1_w(uint8_t data); uint8_t printer_state_r(); @@ -113,8 +113,8 @@ class vg5k_state : public driver_device TIMER_CALLBACK_MEMBER(z80_irq_clear); TIMER_DEVICE_CALLBACK_MEMBER(z80_irq); TIMER_DEVICE_CALLBACK_MEMBER(vg5k_scanline); - void vg5k_io(address_map &map); - void vg5k_mem(address_map &map); + void vg5k_io(address_map &map) ATTR_COLD; + void vg5k_mem(address_map &map) ATTR_COLD; }; void vg5k_state::z80_m1_w(uint8_t data) diff --git a/src/mame/philips/yes.cpp b/src/mame/philips/yes.cpp index fad137f35de..d6ce145135e 100644 --- a/src/mame/philips/yes.cpp +++ b/src/mame/philips/yes.cpp @@ -26,8 +26,8 @@ class yes_state : public driver_device required_device m_maincpu; required_device m_fdc; required_device m_crtc; - void io_map(address_map &map); - void program_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void program_map(address_map &map) ATTR_COLD; MC6845_UPDATE_ROW(crtc_update_row); }; diff --git a/src/mame/phoenix/naughtyb.h b/src/mame/phoenix/naughtyb.h index eeaad012f98..3805186beba 100644 --- a/src/mame/phoenix/naughtyb.h +++ b/src/mame/phoenix/naughtyb.h @@ -35,7 +35,7 @@ class naughtyb_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(coin_inserted); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -71,8 +71,8 @@ class naughtyb_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void naughtyb_map(address_map &map); - void popflame_map(address_map &map); + void naughtyb_map(address_map &map) ATTR_COLD; + void popflame_map(address_map &map) ATTR_COLD; }; #endif // MAME_PHOENIX_NAUGHTYB_H diff --git a/src/mame/phoenix/phoenix.h b/src/mame/phoenix/phoenix.h index 26e59f2b5bf..77aa65ef9a5 100644 --- a/src/mame/phoenix/phoenix.h +++ b/src/mame/phoenix/phoenix.h @@ -36,7 +36,7 @@ class phoenix_state : public driver_device void init_oneprom_coindsw(); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -70,9 +70,9 @@ class phoenix_state : public driver_device uint32_t screen_update_phoenix(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); uint8_t survival_protection_r(); int survival_sid_callback(); - void phoenix_memory_map(address_map &map); - void pleiads_memory_map(address_map &map); - void survival_memory_map(address_map &map); + void phoenix_memory_map(address_map &map) ATTR_COLD; + void pleiads_memory_map(address_map &map) ATTR_COLD; + void survival_memory_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/phoenix/phoenix_a.h b/src/mame/phoenix/phoenix_a.h index 389ec20ca71..7cb6097f487 100644 --- a/src/mame/phoenix/phoenix_a.h +++ b/src/mame/phoenix/phoenix_a.h @@ -19,7 +19,7 @@ class phoenix_sound_device : public device_t, public device_sound_interface protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // sound stream update overrides virtual void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; diff --git a/src/mame/phoenix/pleiads.h b/src/mame/phoenix/pleiads.h index b7853dbb84f..8ae08cb88a2 100644 --- a/src/mame/phoenix/pleiads.h +++ b/src/mame/phoenix/pleiads.h @@ -48,7 +48,7 @@ class pleiads_sound_device : public device_t, public device_sound_interface pleiads_sound_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // sound stream update overrides virtual void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; @@ -102,7 +102,7 @@ class naughtyb_sound_device : public pleiads_sound_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // sound stream update overrides virtual void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; @@ -116,7 +116,7 @@ class popflame_sound_device : public pleiads_sound_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // sound stream update overrides virtual void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; diff --git a/src/mame/phoenix/safarir.cpp b/src/mame/phoenix/safarir.cpp index e34861b20c2..dba84da8355 100644 --- a/src/mame/phoenix/safarir.cpp +++ b/src/mame/phoenix/safarir.cpp @@ -76,8 +76,8 @@ class safarir_state : public driver_device void safarir(machine_config &config); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -100,7 +100,7 @@ class safarir_state : public driver_device void safarir_palette(palette_device &palette) const; uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void safarir_audio(machine_config &config); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/pinball/allied.cpp b/src/mame/pinball/allied.cpp index 436b05d8cb1..aadc5e7b93d 100644 --- a/src/mame/pinball/allied.cpp +++ b/src/mame/pinball/allied.cpp @@ -77,8 +77,8 @@ class allied_state : public genpin_class void allied(machine_config &config); protected: - virtual void machine_reset() override; - virtual void machine_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; private: void ic1_b_w(u8 data); @@ -100,7 +100,7 @@ class allied_state : public genpin_class u8 ic7_a_r(); void ic8_cb2_w(int state); TIMER_DEVICE_CALLBACK_MEMBER(timer_a); - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; u32 m_player_score[6]{}; u8 m_display = 0U; diff --git a/src/mame/pinball/alvg.cpp b/src/mame/pinball/alvg.cpp index 4f27edbf249..d0304c881a6 100644 --- a/src/mame/pinball/alvg.cpp +++ b/src/mame/pinball/alvg.cpp @@ -116,14 +116,14 @@ class alvg_state : public genpin_class void pca020(machine_config &config); // DMD controller private: - void main_map(address_map &map); - void pca002_map(address_map &map); - void pca003_map(address_map &map); - void pca008_map(address_map &map); - void pca020_io_map(address_map &map); - void pca020_mem_map(address_map &map); - void machine_start() override; - void machine_reset() override; + void main_map(address_map &map) ATTR_COLD; + void pca002_map(address_map &map) ATTR_COLD; + void pca003_map(address_map &map) ATTR_COLD; + void pca008_map(address_map &map) ATTR_COLD; + void pca020_io_map(address_map &map) ATTR_COLD; + void pca020_mem_map(address_map &map) ATTR_COLD; + void machine_start() override ATTR_COLD; + void machine_reset() override ATTR_COLD; void display_w(offs_t, u8); void ppi0_pa_w(u8 data) { for (u8 i = 0; i < 8; i++) m_io_outputs[i] = BIT(data, i); } void ppi0_pb_w(u8 data) { for (u8 i = 0; i < 8; i++) m_io_outputs[8U+i] = BIT(data, i); } diff --git a/src/mame/pinball/atari_4x4.cpp b/src/mame/pinball/atari_4x4.cpp index 698c269f071..db8166c2400 100644 --- a/src/mame/pinball/atari_4x4.cpp +++ b/src/mame/pinball/atari_4x4.cpp @@ -45,9 +45,9 @@ class atari_4x4_state : public genpin_class void fourx4(machine_config &config); private: - virtual void machine_reset() override; - virtual void machine_start() override; - void mem_map(address_map &map); + virtual void machine_reset() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; output_finder<68> m_digits; // don't know how many output_finder<80> m_io_outputs; // ?? solenoids + ?? lamps diff --git a/src/mame/pinball/atari_s1.cpp b/src/mame/pinball/atari_s1.cpp index 58fb15850b7..7147652607b 100644 --- a/src/mame/pinball/atari_s1.cpp +++ b/src/mame/pinball/atari_s1.cpp @@ -87,8 +87,8 @@ class atari_s1_state : public genpin_class void atarians(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: u8 m1080_r(); @@ -107,10 +107,10 @@ class atari_s1_state : public genpin_class void midearth_w(offs_t offset, u8 data); TIMER_DEVICE_CALLBACK_MEMBER(nmi); TIMER_DEVICE_CALLBACK_MEMBER(timer_s); - void common_map(address_map &map); - void mem_map(address_map &map); - void atarians_map(address_map &map); - void midearth_map(address_map &map); + void common_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; + void atarians_map(address_map &map) ATTR_COLD; + void midearth_map(address_map &map) ATTR_COLD; bool m_audio_en = false; u8 m_timer_s[3]{}; diff --git a/src/mame/pinball/atari_s2.cpp b/src/mame/pinball/atari_s2.cpp index 4b4d82f0059..a8b0c75be4d 100644 --- a/src/mame/pinball/atari_s2.cpp +++ b/src/mame/pinball/atari_s2.cpp @@ -51,8 +51,8 @@ class atari_s2_state : public genpin_class void atari_s3(machine_config &config); protected: - virtual void machine_reset() override; - virtual void machine_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; private: void sound0_w(u8 data); @@ -65,8 +65,8 @@ class atari_s2_state : public genpin_class TIMER_DEVICE_CALLBACK_MEMBER(irq); TIMER_DEVICE_CALLBACK_MEMBER(timer_s); - void atari_s2_map(address_map &map); - void atari_s3_map(address_map &map); + void atari_s2_map(address_map &map) ATTR_COLD; + void atari_s3_map(address_map &map) ATTR_COLD; bool m_timer_sb = false; u8 m_timer_s[5]{}; diff --git a/src/mame/pinball/barni.cpp b/src/mame/pinball/barni.cpp index 5e3430989e7..2254c72f8ff 100644 --- a/src/mame/pinball/barni.cpp +++ b/src/mame/pinball/barni.cpp @@ -69,9 +69,9 @@ class barni_state : public genpin_class { } void barni(machine_config &config); - void audiocpu_map(address_map &map); - void maincpu_map(address_map &map); - void subcpu_map(address_map &map); + void audiocpu_map(address_map &map) ATTR_COLD; + void maincpu_map(address_map &map) ATTR_COLD; + void subcpu_map(address_map &map) ATTR_COLD; private: u8 soundcmd_r(); u8 set_firq(); @@ -84,7 +84,7 @@ class barni_state : public genpin_class u8 m_via_pa = 0U; u8 m_bitcount = 0U; u8 m_soundcmd = 0U; - //void machine_reset() override; + //void machine_reset() override ATTR_COLD; void machine_start() override { m_digits.resolve(); } required_device m_maincpu; required_device m_subcpu; diff --git a/src/mame/pinball/bingo.cpp b/src/mame/pinball/bingo.cpp index e94b72910ed..39cded702d3 100644 --- a/src/mame/pinball/bingo.cpp +++ b/src/mame/pinball/bingo.cpp @@ -18,14 +18,14 @@ class bingo_state : public driver_device { } void bingo(machine_config &config); - void bingo_map(address_map &map); + void bingo_map(address_map &map) ATTR_COLD; protected: // devices required_device m_maincpu; // driver_device overrides - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; public: void init_bingo(); }; @@ -65,14 +65,14 @@ class seeben_state : public driver_device { } void seeben(machine_config &config); - void seeben_map(address_map &map); + void seeben_map(address_map &map) ATTR_COLD; protected: // devices required_device m_maincpu; // driver_device overrides - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; public: void init_seeben(); }; @@ -109,14 +109,14 @@ class splin_state : public driver_device { } void splin(machine_config &config); - void splin_map(address_map &map); + void splin_map(address_map &map) ATTR_COLD; protected: // devices required_device m_maincpu; // driver_device overrides - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; public: void init_splin(); }; diff --git a/src/mame/pinball/by17.cpp b/src/mame/pinball/by17.cpp index eb1c99a2992..6b1cccb8139 100644 --- a/src/mame/pinball/by17.cpp +++ b/src/mame/pinball/by17.cpp @@ -85,8 +85,8 @@ class by17_state : public genpin_class void by17(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: uint8_t m_u10a = 0U; @@ -139,7 +139,7 @@ class by17_state : public genpin_class TIMER_DEVICE_CALLBACK_MEMBER(u11_timer); TIMER_DEVICE_CALLBACK_MEMBER(timer_d_pulse); - void by17_map(address_map &map); + void by17_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/pinball/by35.cpp b/src/mame/pinball/by35.cpp index 1426dfcc9dc..7601dd06b79 100644 --- a/src/mame/pinball/by35.cpp +++ b/src/mame/pinball/by35.cpp @@ -221,15 +221,15 @@ class by35_state : public genpin_class void u10_ca2_w(int state); void u10_cb2_w(int state); void u11_cb2_w(int state); - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; TIMER_DEVICE_CALLBACK_MEMBER(timer_z_freq); TIMER_DEVICE_CALLBACK_MEMBER(timer_z_pulse); TIMER_DEVICE_CALLBACK_MEMBER(u11_timer); TIMER_DEVICE_CALLBACK_MEMBER(timer_d_pulse); - void by35_map(address_map &map); - void nuovo_map(address_map &map); + void by35_map(address_map &map) ATTR_COLD; + void nuovo_map(address_map &map) ATTR_COLD; uint8_t m_u10a = 0U; uint8_t m_u10b = 0U; diff --git a/src/mame/pinball/by6803.cpp b/src/mame/pinball/by6803.cpp index 8183e8a33d7..301a85714d2 100644 --- a/src/mame/pinball/by6803.cpp +++ b/src/mame/pinball/by6803.cpp @@ -105,8 +105,8 @@ class by6803_state : public genpin_class DECLARE_INPUT_CHANGED_MEMBER(self_test); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: u8 port1_r(); @@ -128,7 +128,7 @@ class by6803_state : public genpin_class void pia1_cb2_w(int state); TIMER_DEVICE_CALLBACK_MEMBER(pia0_timer); - void by6803_map(address_map &map); + void by6803_map(address_map &map) ATTR_COLD; u8 m_pia0_a = 0U; u8 m_pia0_b = 0U; diff --git a/src/mame/pinball/by68701.cpp b/src/mame/pinball/by68701.cpp index 57abf95466d..5f33cf504ce 100644 --- a/src/mame/pinball/by68701.cpp +++ b/src/mame/pinball/by68701.cpp @@ -29,14 +29,14 @@ class by68701_state : public driver_device { } void by68701(machine_config &config); - void by68701_map(address_map &map); + void by68701_map(address_map &map) ATTR_COLD; protected: // devices required_device m_maincpu; // driver_device overrides - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; public: void init_by68701(); }; diff --git a/src/mame/pinball/byvid.cpp b/src/mame/pinball/byvid.cpp index 137bad8c3c6..b1fb7002bac 100644 --- a/src/mame/pinball/byvid.cpp +++ b/src/mame/pinball/byvid.cpp @@ -105,8 +105,8 @@ class by133_state : public genpin_class void granny(machine_config &config); private: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; u8 m_mpu_to_vid = 0U; u8 m_vid_to_mpu = 0U; u8 m_u7a = 0U; @@ -167,9 +167,9 @@ class by133_state : public genpin_class TIMER_DEVICE_CALLBACK_MEMBER(u11_timer); void granny_crtc_w(offs_t offset, u8 data); uint32_t screen_update_granny(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void granny_map(address_map &map); - void main_map(address_map &map); - void video_map(address_map &map); + void granny_map(address_map &map) ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; + void video_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/pinball/capcom.cpp b/src/mame/pinball/capcom.cpp index 787c753a5c7..c36ab5f72de 100644 --- a/src/mame/pinball/capcom.cpp +++ b/src/mame/pinball/capcom.cpp @@ -54,12 +54,12 @@ class capcom_state : public driver_device void capcom(machine_config &config); protected: - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; - void capcom_map(address_map &map); + void capcom_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/pinball/de_2.cpp b/src/mame/pinball/de_2.cpp index e914773a6c7..20771ac3570 100644 --- a/src/mame/pinball/de_2.cpp +++ b/src/mame/pinball/de_2.cpp @@ -84,12 +84,12 @@ class de_2_state : public genpin_class void de_type3(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: void de_bg_audio(machine_config &config); - void audio_map(address_map &map); + void audio_map(address_map &map) ATTR_COLD; void sample_w(uint8_t data); void pia34_pa_w(uint8_t data) { } diff --git a/src/mame/pinball/de_3.cpp b/src/mame/pinball/de_3.cpp index 49bea758fb2..e0a4ec10f4d 100644 --- a/src/mame/pinball/de_3.cpp +++ b/src/mame/pinball/de_3.cpp @@ -97,12 +97,12 @@ class de_3_state : public genpin_class protected: // driver_device overrides - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: void de_bg_audio(machine_config &config); - void audio_map(address_map &map); + void audio_map(address_map &map) ATTR_COLD; void ym2151_irq_w(int state); void msm5205_irq_w(int state); uint8_t sound_latch_r(); diff --git a/src/mame/pinball/decodmd1.h b/src/mame/pinball/decodmd1.h index f2904353ef3..084c3b93457 100644 --- a/src/mame/pinball/decodmd1.h +++ b/src/mame/pinball/decodmd1.h @@ -25,9 +25,9 @@ class decodmd_type1_device : public device_t uint8_t status_r(); protected: - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: static constexpr unsigned B_CLR = 0x01; @@ -74,8 +74,8 @@ class decodmd_type1_device : public device_t uint32_t screen_update( screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect ); TIMER_DEVICE_CALLBACK_MEMBER(dmd_nmi); - void decodmd1_map(address_map &map); - void decodmd1_io_map(address_map &map); + void decodmd1_map(address_map &map) ATTR_COLD; + void decodmd1_io_map(address_map &map) ATTR_COLD; }; DECLARE_DEVICE_TYPE(DECODMD1, decodmd_type1_device) diff --git a/src/mame/pinball/decodmd2.h b/src/mame/pinball/decodmd2.h index f0c42f96bac..7239d8c0748 100644 --- a/src/mame/pinball/decodmd2.h +++ b/src/mame/pinball/decodmd2.h @@ -26,9 +26,9 @@ class decodmd_type2_device : public device_t uint8_t status_r(); protected: - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; uint16_t start_address() const { return ((m_crtc_reg[0x0c] << 8) & 0x3f00) | (m_crtc_reg[0x0d] & 0xff); } @@ -57,7 +57,7 @@ class decodmd_type2_device : public device_t TIMER_DEVICE_CALLBACK_MEMBER(dmd_firq); MC6845_UPDATE_ROW(crtc_update_row); - void decodmd2_map(address_map &map); + void decodmd2_map(address_map &map) ATTR_COLD; }; DECLARE_DEVICE_TYPE(DECODMD2, decodmd_type2_device) diff --git a/src/mame/pinball/decodmd3.h b/src/mame/pinball/decodmd3.h index 4b80c23e37e..8cfc62a397e 100644 --- a/src/mame/pinball/decodmd3.h +++ b/src/mame/pinball/decodmd3.h @@ -25,9 +25,9 @@ class decodmd_type3_device : public device_t uint16_t status_r(); protected: - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: required_device m_cpu; @@ -51,7 +51,7 @@ class decodmd_type3_device : public device_t void crtc_register_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); uint16_t crtc_status_r(offs_t offset, uint16_t mem_mask = ~0); - void decodmd3_map(address_map &map); + void decodmd3_map(address_map &map) ATTR_COLD; }; DECLARE_DEVICE_TYPE(DECODMD3, decodmd_type3_device) diff --git a/src/mame/pinball/decopincpu.h b/src/mame/pinball/decopincpu.h index 5c1d9aed3cb..8b77aa4d8ff 100644 --- a/src/mame/pinball/decopincpu.h +++ b/src/mame/pinball/decopincpu.h @@ -57,13 +57,13 @@ class decocpu_type1_device : public device_t decocpu_type1_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); // overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual ioport_constructor device_input_ports() const override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; TIMER_CALLBACK_MEMBER(irq_trigger); - void decocpu1_map(address_map &map); + void decocpu1_map(address_map &map) ATTR_COLD; required_device m_cpu; required_device m_pia21; @@ -127,13 +127,13 @@ class decocpu_type2_device : public decocpu_type1_device decocpu_type2_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); - void decocpu2_map(address_map &map); + void decocpu2_map(address_map &map) ATTR_COLD; protected: decocpu_type2_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); // overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; }; class decocpu_type3_device : public decocpu_type2_device @@ -152,7 +152,7 @@ class decocpu_type3_device : public decocpu_type2_device decocpu_type3_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); // overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; }; class decocpu_type3b_device : public decocpu_type3_device @@ -169,7 +169,7 @@ class decocpu_type3b_device : public decocpu_type3_device protected: // overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; }; DECLARE_DEVICE_TYPE(DECOCPU1, decocpu_type1_device) diff --git a/src/mame/pinball/flicker.cpp b/src/mame/pinball/flicker.cpp index 2d6c547811d..8bcf234db4f 100644 --- a/src/mame/pinball/flicker.cpp +++ b/src/mame/pinball/flicker.cpp @@ -78,11 +78,11 @@ class flicker_state : public genpin_class void cm_ram1_w(int state); void cm_ram2_w(int state); - void flicker_memory(address_map &map); - void flicker_ram_ports(address_map &map); - void flicker_rom(address_map &map); - void flicker_rom_ports(address_map &map); - void flicker_status(address_map &map); + void flicker_memory(address_map &map) ATTR_COLD; + void flicker_ram_ports(address_map &map) ATTR_COLD; + void flicker_rom(address_map &map) ATTR_COLD; + void flicker_rom_ports(address_map &map) ATTR_COLD; + void flicker_status(address_map &map) ATTR_COLD; required_device m_maincpu; required_ioport m_testport; diff --git a/src/mame/pinball/g627.cpp b/src/mame/pinball/g627.cpp index 4c6736d42a4..8b044b84c32 100644 --- a/src/mame/pinball/g627.cpp +++ b/src/mame/pinball/g627.cpp @@ -74,15 +74,15 @@ class g627_state : public genpin_class void portc_w(u8 data); void disp_w(offs_t offset, u8 data); void lamp_w(offs_t offset, u8 data); - void io_map(address_map &map); - void mem_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; u8 m_seg[6]{}; u8 m_portc = 0U; u8 m_motor = 0U; u8 m_last_solenoid = 0U; bool m_type = false; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; required_device m_maincpu; required_ioport_array<7> m_io_keyboard; required_ioport_array<6> m_testipt; diff --git a/src/mame/pinball/gp_1.cpp b/src/mame/pinball/gp_1.cpp index 289d5a26436..c07f0bd1b77 100644 --- a/src/mame/pinball/gp_1.cpp +++ b/src/mame/pinball/gp_1.cpp @@ -65,14 +65,14 @@ class gp_1_state : public genpin_class void portas_w(u8 data); void portc_w(u8 data); u8 portb_r(); - void io_map(address_map &map); - void mem_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; u8 m_u14 = 0U; u8 m_digit = 0U; u8 m_segment[16]{}; u8 m_last_solenoid = 15U; - virtual void machine_reset() override; - virtual void machine_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; required_device m_maincpu; required_device m_ppi; required_device m_ctc; diff --git a/src/mame/pinball/gp_2.cpp b/src/mame/pinball/gp_2.cpp index e505906f721..91d2b8f1d43 100644 --- a/src/mame/pinball/gp_2.cpp +++ b/src/mame/pinball/gp_2.cpp @@ -80,14 +80,14 @@ class gp_2_state : public genpin_class void porta_w(u8 data); void portc_w(u8 data); u8 portb_r(); - void io_map(address_map &map); - void mem_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; u8 m_u14 = 0U; u8 m_digit = 0U; u8 m_segment[16]{}; u8 m_last_solenoid = 15U; - virtual void machine_reset() override; - virtual void machine_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; required_device m_maincpu; required_device m_ppi; required_device m_ctc; diff --git a/src/mame/pinball/gts1.cpp b/src/mame/pinball/gts1.cpp index 6c965a03057..7e8df9111a9 100644 --- a/src/mame/pinball/gts1.cpp +++ b/src/mame/pinball/gts1.cpp @@ -125,8 +125,8 @@ class gts1_state : public genpin_class void p2(machine_config &config); // multi-mode sound card protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: u8 gts1_solenoid_r(offs_t offset); @@ -143,9 +143,9 @@ class gts1_state : public genpin_class void gts1_do_w(u8 data); void nvram_w(); - void gts1_map(address_map &map); - void gts1_data(address_map &map); - void gts1_io(address_map &map); + void gts1_map(address_map &map) ATTR_COLD; + void gts1_data(address_map &map) ATTR_COLD; + void gts1_io(address_map &map) ATTR_COLD; required_device m_maincpu; required_region_ptr m_pm; diff --git a/src/mame/pinball/gts3.cpp b/src/mame/pinball/gts3.cpp index 2d47c5de3d8..f65744eee8c 100644 --- a/src/mame/pinball/gts3.cpp +++ b/src/mame/pinball/gts3.cpp @@ -94,8 +94,8 @@ class gts3_state : public genpin_class DECLARE_INPUT_CHANGED_MEMBER(test_inp); protected: - virtual void machine_reset() override; - virtual void machine_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; private: void segbank_w(offs_t offset, u8 data); @@ -106,7 +106,7 @@ class gts3_state : public genpin_class void u4b_w(u8 data); void u5a_w(u8 data); void nmi_w(int state); - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; bool m_dispclk = false; bool m_lampclk = false; diff --git a/src/mame/pinball/gts3a.cpp b/src/mame/pinball/gts3a.cpp index ab12348d920..af855fc4bac 100644 --- a/src/mame/pinball/gts3a.cpp +++ b/src/mame/pinball/gts3a.cpp @@ -88,8 +88,8 @@ class gts3a_state : public genpin_class DECLARE_INPUT_CHANGED_MEMBER(test_inp); protected: - virtual void machine_reset() override; - virtual void machine_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; private: void segbank_w(u8 data); @@ -106,8 +106,8 @@ class gts3a_state : public genpin_class MC6845_UPDATE_ROW(crtc_update_row); void palette_init(palette_device &palette); required_device m_palette; - void dmd_map(address_map &map); - void mem_map(address_map &map); + void dmd_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; u8 m_row = 0U; // for lamps and switches u8 m_segment = 0U; diff --git a/src/mame/pinball/gts80.cpp b/src/mame/pinball/gts80.cpp index 0c7bb5bf031..f133290fa60 100644 --- a/src/mame/pinball/gts80.cpp +++ b/src/mame/pinball/gts80.cpp @@ -82,8 +82,8 @@ class gts80_state : public genpin_class DECLARE_INPUT_CHANGED_MEMBER(slam_w); protected: - virtual void machine_reset() override; - virtual void machine_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; private: u8 port1a_r(); @@ -93,7 +93,7 @@ class gts80_state : public genpin_class void port2b_w(u8 data); void port3a_w(u8 data); void port3b_w(u8 data); - void gts80_map(address_map &map); + void gts80_map(address_map &map) ATTR_COLD; u8 m_segment = 0U; u8 m_lamprow = 0U; diff --git a/src/mame/pinball/gts80a.cpp b/src/mame/pinball/gts80a.cpp index b26ee2676ea..a4d4d6bc5bc 100644 --- a/src/mame/pinball/gts80a.cpp +++ b/src/mame/pinball/gts80a.cpp @@ -93,8 +93,8 @@ class gts80a_state : public genpin_class DECLARE_INPUT_CHANGED_MEMBER(slam_w); protected: - virtual void machine_reset() override; - virtual void machine_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; private: u8 port1a_r(); @@ -104,7 +104,7 @@ class gts80a_state : public genpin_class void port2b_w(u8 data); void port3a_w(u8 data); void port3b_w(u8 data); - void gts80a_map(address_map &map); + void gts80a_map(address_map &map) ATTR_COLD; u8 m_segment = 0U; u8 m_lamprow = 0U; @@ -596,8 +596,8 @@ class caveman_state : public gts80a_state private: uint32_t screen_update_caveman(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void video_io_map(address_map &map); - void video_map(address_map &map); + void video_io_map(address_map &map) ATTR_COLD; + void video_map(address_map &map) ATTR_COLD; required_device m_videocpu; required_shared_ptr m_vram; }; diff --git a/src/mame/pinball/gts80b.cpp b/src/mame/pinball/gts80b.cpp index 8f2642e67ad..c61b11b14b3 100644 --- a/src/mame/pinball/gts80b.cpp +++ b/src/mame/pinball/gts80b.cpp @@ -107,8 +107,8 @@ class gts80b_state : public genpin_class void init_s80c() { m_slam_low = true; } protected: - virtual void machine_reset() override; - virtual void machine_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; private: u8 port1a_r(); @@ -118,8 +118,8 @@ class gts80b_state : public genpin_class void port2b_w(u8 data); void port3a_w(u8 data); void port3b_w(u8 data); - void gts80b_map(address_map &map); - void master_map(address_map &map); + void gts80b_map(address_map &map) ATTR_COLD; + void master_map(address_map &map) ATTR_COLD; u8 m_segment = 0U; u8 m_lamprow = 0U; diff --git a/src/mame/pinball/hankin.cpp b/src/mame/pinball/hankin.cpp index b58e1f4f1d4..2a0a5467ba2 100644 --- a/src/mame/pinball/hankin.cpp +++ b/src/mame/pinball/hankin.cpp @@ -56,8 +56,8 @@ class hankin_state : public genpin_class void hankin(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: void ic10_ca2_w(int state); @@ -76,8 +76,8 @@ class hankin_state : public genpin_class u8 ic2_a_r(); TIMER_DEVICE_CALLBACK_MEMBER(timer_s); - void main_map(address_map &map); - void audio_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void audio_map(address_map &map) ATTR_COLD; bool m_timer_sb = false; u8 m_timer_s[3]{}; diff --git a/src/mame/pinball/icecold.cpp b/src/mame/pinball/icecold.cpp index 820ffe02250..cb8e0759b1e 100644 --- a/src/mame/pinball/icecold.cpp +++ b/src/mame/pinball/icecold.cpp @@ -54,8 +54,8 @@ class icecold_state : public driver_device ioport_value motors_limit_r(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: void scanlines_w(uint8_t data); @@ -98,7 +98,7 @@ class icecold_state : public driver_device int m_lmotor = 0; // left motor position (0-100) TIMER_DEVICE_CALLBACK_MEMBER(icecold_sint_timer); TIMER_DEVICE_CALLBACK_MEMBER(icecold_motors_timer); - void icecold_map(address_map &map); + void icecold_map(address_map &map) ATTR_COLD; }; void icecold_state::icecold_map(address_map &map) diff --git a/src/mame/pinball/idsa.cpp b/src/mame/pinball/idsa.cpp index 4b62c6c222b..7df7f81a668 100644 --- a/src/mame/pinball/idsa.cpp +++ b/src/mame/pinball/idsa.cpp @@ -76,10 +76,10 @@ class idsa_state : public genpin_class void ay2_a_w(uint8_t data); void ay2_b_w(uint8_t data); - void maincpu_io_map(address_map &map); - void maincpu_map(address_map &map); + void maincpu_io_map(address_map &map) ATTR_COLD; + void maincpu_map(address_map &map) ATTR_COLD; - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; uint16_t m_irqcnt = 0U; uint8_t m_ppi_data = 0U; diff --git a/src/mame/pinball/inder.cpp b/src/mame/pinball/inder.cpp index ce33f7f313d..186d60fab08 100644 --- a/src/mame/pinball/inder.cpp +++ b/src/mame/pinball/inder.cpp @@ -82,8 +82,8 @@ class inder_state : public genpin_class void init_1(); private: - virtual void machine_reset() override; - virtual void machine_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; u8 ppic_r(); void ppia_w(u8 data); void ppib_w(u8 data); @@ -114,12 +114,12 @@ class inder_state : public genpin_class void q9a_w(int state); void qc9b_w(int state); void update_mus(); - void brvteam_map(address_map &map); - void canasta_map(address_map &map); - void main_map(address_map &map); - void audio_map(address_map &map); - void lapbylap_main_map(address_map &map); - void lapbylap_audio_map(address_map &map); + void brvteam_map(address_map &map) ATTR_COLD; + void canasta_map(address_map &map) ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; + void audio_map(address_map &map) ATTR_COLD; + void lapbylap_main_map(address_map &map) ATTR_COLD; + void lapbylap_audio_map(address_map &map) ATTR_COLD; bool m_pc0 = false; u8 m_game = 0U; diff --git a/src/mame/pinball/inderp.cpp b/src/mame/pinball/inderp.cpp index 7ad05b7fbe9..1f6c6e0ad1e 100644 --- a/src/mame/pinball/inderp.cpp +++ b/src/mame/pinball/inderp.cpp @@ -66,9 +66,9 @@ class inderp_state : public genpin_class void lamps_w(offs_t, u8); void display_w(offs_t, u8); u16 seg8to14(u16 data); - void mem_map(address_map &map); - virtual void machine_start() override; - virtual void machine_reset() override; + void mem_map(address_map &map) ATTR_COLD; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; required_device m_maincpu; required_ioport_array<11> m_io_keyboard; output_finder<48> m_digits; diff --git a/src/mame/pinball/jeutel.cpp b/src/mame/pinball/jeutel.cpp index 459851393f6..71c4310176c 100644 --- a/src/mame/pinball/jeutel.cpp +++ b/src/mame/pinball/jeutel.cpp @@ -61,8 +61,8 @@ class jeutel_state : public genpin_class void jeutel(machine_config &config); private: - virtual void machine_reset() override; - virtual void machine_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; u8 portb_r(); void porta_w(u8 data); void ppi0a_w(u8 data) { m_row = data; } @@ -79,10 +79,10 @@ class jeutel_state : public genpin_class void tminc_w(u8); u8 tmdata_r(); void clock_w(int state); - void cpu2_map(address_map &map); - void audio_main_map(address_map &map); - void audio_io_map(address_map &map); - void main_map(address_map &map); + void cpu2_map(address_map &map) ATTR_COLD; + void audio_main_map(address_map &map) ATTR_COLD; + void audio_io_map(address_map &map) ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; u8 m_sndcmd = 0U; u8 m_digit = 0U; diff --git a/src/mame/pinball/joctronic.cpp b/src/mame/pinball/joctronic.cpp index eaf11880fa3..acb948866d7 100644 --- a/src/mame/pinball/joctronic.cpp +++ b/src/mame/pinball/joctronic.cpp @@ -76,17 +76,17 @@ class joctronic_state : public driver_device void slalom03_oki_bank_w(uint8_t data); void vck_w(int state); - virtual void machine_start() override; - virtual void machine_reset() override; - - void bldyrolr_maincpu_map(address_map &map); - void joctronic_sound_io_map(address_map &map); - void joctronic_sound_map(address_map &map); - void maincpu_io_map(address_map &map); - void maincpu_map(address_map &map); - void slalom03_maincpu_map(address_map &map); - void slalom03_sound_io_map(address_map &map); - void slalom03_sound_map(address_map &map); + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + + void bldyrolr_maincpu_map(address_map &map) ATTR_COLD; + void joctronic_sound_io_map(address_map &map) ATTR_COLD; + void joctronic_sound_map(address_map &map) ATTR_COLD; + void maincpu_io_map(address_map &map) ATTR_COLD; + void maincpu_map(address_map &map) ATTR_COLD; + void slalom03_maincpu_map(address_map &map) ATTR_COLD; + void slalom03_sound_io_map(address_map &map) ATTR_COLD; + void slalom03_sound_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_mainlatch; diff --git a/src/mame/pinball/jp.cpp b/src/mame/pinball/jp.cpp index 95bf1416ce0..c23e2c3a1ae 100644 --- a/src/mame/pinball/jp.cpp +++ b/src/mame/pinball/jp.cpp @@ -77,8 +77,8 @@ class jp_state : public genpin_class void jps(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: u8 porta_r(); @@ -94,8 +94,8 @@ class jp_state : public genpin_class void vck_w(int state); IRQ_CALLBACK_MEMBER(sound_int_cb); - void main_map(address_map &map); - void audio_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void audio_map(address_map &map) ATTR_COLD; void update_display(); diff --git a/src/mame/pinball/jvh.cpp b/src/mame/pinball/jvh.cpp index 5b0e3f31a89..49dddd598d6 100644 --- a/src/mame/pinball/jvh.cpp +++ b/src/mame/pinball/jvh.cpp @@ -48,13 +48,13 @@ class jvh_state : public genpin_class void jvh3(machine_config &config); private: - void escape_io(address_map &map); - void main_map(address_map &map); - void audio_map(address_map &map); - void movmastr_io(address_map &map); + void escape_io(address_map &map) ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; + void audio_map(address_map &map) ATTR_COLD; + void movmastr_io(address_map &map) ATTR_COLD; required_device m_maincpu; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; output_finder<50> m_digits; output_finder<80> m_io_outputs; // ?? solenoids + ?? lamps }; diff --git a/src/mame/pinball/kissproto.cpp b/src/mame/pinball/kissproto.cpp index 85d723369ed..3863610b581 100644 --- a/src/mame/pinball/kissproto.cpp +++ b/src/mame/pinball/kissproto.cpp @@ -27,14 +27,14 @@ class kissp_state : public driver_device void init_kissp(); private: - void mem_map(address_map &map); - void io_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; // devices required_device m_maincpu; // driver_device overrides - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; }; diff --git a/src/mame/pinball/lancelot.cpp b/src/mame/pinball/lancelot.cpp index 64a5239497c..4fe51c6b2e4 100644 --- a/src/mame/pinball/lancelot.cpp +++ b/src/mame/pinball/lancelot.cpp @@ -53,11 +53,11 @@ class lancelot_state : public genpin_class void lancelot(machine_config &config); private: - virtual void machine_start() override; - virtual void machine_reset() override; - void mem_map(address_map &map); - void io_map(address_map &map); - void audio_map(address_map &map); + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; + void audio_map(address_map &map) ATTR_COLD; void p3_w(u8) { } void p4_w(u8) { } void p6_w(u8) { } diff --git a/src/mame/pinball/lckydraw.cpp b/src/mame/pinball/lckydraw.cpp index 2b7de735c3f..0636d816a8d 100644 --- a/src/mame/pinball/lckydraw.cpp +++ b/src/mame/pinball/lckydraw.cpp @@ -48,8 +48,8 @@ class lckydraw_state : public genpin_class void lckydraw(machine_config &config); private: - void mem_map(address_map &map); - void io_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; void p1_w(u8); void p2_w(u8); u8 bus_r(offs_t); @@ -60,8 +60,8 @@ class lckydraw_state : public genpin_class u8 m_segment[3]{}; u8 m_p1 = 0U; u8 m_p2 = 0U; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; required_device m_maincpu; required_ioport_array<4> m_io_dips; required_ioport_array<8> m_io_keyboard; diff --git a/src/mame/pinball/ltd.cpp b/src/mame/pinball/ltd.cpp index b220bb55123..c9e7dad4bff 100644 --- a/src/mame/pinball/ltd.cpp +++ b/src/mame/pinball/ltd.cpp @@ -104,13 +104,13 @@ class ltd3_state : public ltd_state void init_3() { m_game = 3; } private: - virtual void machine_reset() override; - virtual void machine_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; u8 ram_r(offs_t); void ram_w(offs_t, u8); u8 sw_r(offs_t offset); void irq_w(int state); - void ltd3_map(address_map &map); + void ltd3_map(address_map &map) ATTR_COLD; u8 m_game = 0; u8 m_ram[0x80]{}; u8 m_segment = 0; @@ -131,9 +131,9 @@ class ltd4_state : public ltd_state void ltd4(machine_config &config); private: - virtual void machine_reset() override; - virtual void machine_start() override; - void ltd4_map(address_map &map); + virtual void machine_reset() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; + void ltd4_map(address_map &map) ATTR_COLD; u8 port1_r(); void port1_w(u8 data); u8 port2_r(); diff --git a/src/mame/pinball/macp.cpp b/src/mame/pinball/macp.cpp index 233076b02aa..459bef77bc7 100644 --- a/src/mame/pinball/macp.cpp +++ b/src/mame/pinball/macp.cpp @@ -52,10 +52,10 @@ class macp_state : public genpin_class void mac16k(machine_config &config); void mac32k(machine_config &config); - void mem16k_map(address_map &map); - void io16k_map(address_map &map); - void mem32k_map(address_map &map); - void io32k_map(address_map &map); + void mem16k_map(address_map &map) ATTR_COLD; + void io16k_map(address_map &map) ATTR_COLD; + void mem32k_map(address_map &map) ATTR_COLD; + void io32k_map(address_map &map) ATTR_COLD; private: void clock_tick(int state); @@ -73,8 +73,8 @@ class macp_state : public genpin_class u8 m_ay1_b = 0U; u8 m_ay1_a = 0U; u8 m_relay_ctrl = 0U; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; required_device m_maincpu; required_device_array m_ay8910; required_ioport_array<8> m_io_keyboard; diff --git a/src/mame/pinball/mephistp.cpp b/src/mame/pinball/mephistp.cpp index 49f51c907a5..0c5a5a2ba21 100644 --- a/src/mame/pinball/mephistp.cpp +++ b/src/mame/pinball/mephistp.cpp @@ -63,18 +63,18 @@ class mephisto_state : public genpin_class u8 ay8910_inputs_r(); void sound_rombank_w(u8 data); - void mephisto_8051_io(address_map &map); - void mephisto_8051_map(address_map &map); - void mephisto_map(address_map &map); - void sport2k_map(address_map &map); - void sport2k_8051_io(address_map &map); + void mephisto_8051_io(address_map &map) ATTR_COLD; + void mephisto_8051_map(address_map &map) ATTR_COLD; + void mephisto_map(address_map &map) ATTR_COLD; + void sport2k_map(address_map &map) ATTR_COLD; + void sport2k_8051_io(address_map &map) ATTR_COLD; u8 m_ay8910_data = 0U; bool m_ay8910_bdir = false; bool m_ay8910_bc1 = false; void ay8910_update(); - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; required_device m_maincpu; required_device m_aysnd; required_memory_bank m_soundbank; diff --git a/src/mame/pinball/micropin.cpp b/src/mame/pinball/micropin.cpp index 4f218e6c494..8517f223233 100644 --- a/src/mame/pinball/micropin.cpp +++ b/src/mame/pinball/micropin.cpp @@ -90,12 +90,12 @@ class pent6800_state : public micropin_state void p50b_w(u8 data); void p51a_w(u8 data); void p51b_w(u8 data) { }; // volume control - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; u8 m_row = 0U; u8 m_counter = 0U; - virtual void machine_reset() override; - virtual void machine_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; required_device m_v1cpu; required_device m_pia51; required_device m_beep; @@ -114,10 +114,10 @@ class pent8085_state : public micropin_state private: void clock_w(int state); void disp_w(offs_t, u8); - void io_map(address_map &map); - void mem_map(address_map &map); - virtual void machine_reset() override; - virtual void machine_start() override; + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; required_device m_v2cpu; }; diff --git a/src/mame/pinball/missamer.cpp b/src/mame/pinball/missamer.cpp index 73c04ef3464..5105af47992 100644 --- a/src/mame/pinball/missamer.cpp +++ b/src/mame/pinball/missamer.cpp @@ -64,7 +64,7 @@ class missamer_state : public driver_device void missamer(machine_config &config); protected: - void machine_start() override; + void machine_start() override ATTR_COLD; private: required_device m_maincpu; @@ -74,8 +74,8 @@ class missamer_state : public driver_device output_finder<8, 18> m_lamps; output_finder<4> m_digits; - void mem_map(address_map &map); - void io_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; void ramio0_pa_w(uint8_t data); void ramio0_pb_w(uint8_t data); diff --git a/src/mame/pinball/mrgame.cpp b/src/mame/pinball/mrgame.cpp index e7a29a866cd..c130e938581 100644 --- a/src/mame/pinball/mrgame.cpp +++ b/src/mame/pinball/mrgame.cpp @@ -97,8 +97,8 @@ class mrgame_state : public genpin_class void wcup90(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: void mrgame_palette(palette_device &palette) const; @@ -128,15 +128,15 @@ class mrgame_state : public genpin_class TILE_GET_INFO_MEMBER(get_tile_info); uint32_t screen_update_mrgame(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void audio1_io(address_map &map); - void audio1_map(address_map &map); - void audio2_io(address_map &map); - void audio2_map(address_map &map); - void main_map(address_map &map); - void video_map(address_map &map); - void macattck_video_map(address_map &map); - void macattck_audio1_map(address_map &map); - void wcup90_audio2_map(address_map &map); + void audio1_io(address_map &map) ATTR_COLD; + void audio1_map(address_map &map) ATTR_COLD; + void audio2_io(address_map &map) ATTR_COLD; + void audio2_map(address_map &map) ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; + void video_map(address_map &map) ATTR_COLD; + void macattck_video_map(address_map &map) ATTR_COLD; + void macattck_audio1_map(address_map &map) ATTR_COLD; + void wcup90_audio2_map(address_map &map) ATTR_COLD; required_device m_palette; required_shared_ptr m_p_videoram; diff --git a/src/mame/pinball/newcanasta.cpp b/src/mame/pinball/newcanasta.cpp index e3719d0e15e..53e786547c5 100644 --- a/src/mame/pinball/newcanasta.cpp +++ b/src/mame/pinball/newcanasta.cpp @@ -27,7 +27,7 @@ class newcanasta_state : public driver_device private: required_device m_maincpu; - void newcanasta_map(address_map &map); + void newcanasta_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/pinball/nsm.cpp b/src/mame/pinball/nsm.cpp index 128fed485e8..35216a25a33 100644 --- a/src/mame/pinball/nsm.cpp +++ b/src/mame/pinball/nsm.cpp @@ -79,8 +79,8 @@ class nsm_state : public genpin_class u8 diag6_r(); void ay1a_w(u8); void ay2a_w(u8); - void io_map(address_map &map); - void mem_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; u8 m_cru_out[9]{}; u8 m_cru_in[3]{}; @@ -90,8 +90,8 @@ class nsm_state : public genpin_class u8 m_np_cru = 0U; u8 m_np_sel = 0U; bool m_e600_locked = false; - virtual void machine_reset() override; - virtual void machine_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; required_device m_maincpu; required_shared_ptr m_nvram; required_ioport_array<13> m_io_keyboard; diff --git a/src/mame/pinball/peyper.cpp b/src/mame/pinball/peyper.cpp index 3170395ec56..bdc22aae004 100644 --- a/src/mame/pinball/peyper.cpp +++ b/src/mame/pinball/peyper.cpp @@ -73,8 +73,8 @@ class peyper_state : public genpin_class void petaco(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: u8 sw_r(); @@ -88,10 +88,10 @@ class peyper_state : public genpin_class void p2a_w(u8 data) { for (u8 i = 0; i < 8; i++) m_io_outputs[56U+i] = BIT(data, i); } void p2b_w(u8 data) { for (u8 i = 0; i < 8; i++) m_io_outputs[64U+i] = BIT(data, i); } - void io_map(address_map &map); - void mem_map(address_map &map); - void petaco_map(address_map &map); - void petaco_io_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; + void petaco_map(address_map &map) ATTR_COLD; + void petaco_io_map(address_map &map) ATTR_COLD; void petaco_sol0(u8 data) {} void petaco_sol1(u8 data) {} diff --git a/src/mame/pinball/pinsnd88.h b/src/mame/pinball/pinsnd88.h index 4825831d26c..399eaca2d95 100644 --- a/src/mame/pinball/pinsnd88.h +++ b/src/mame/pinball/pinsnd88.h @@ -23,7 +23,7 @@ class pinsnd88_device : public device_t, public device_mixer_interface pinsnd88_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 0); // overrides - virtual void device_reset() override; // power up reset + virtual void device_reset() override ATTR_COLD; // power up reset // note to keep synchronization working, the host machine should have synchronization timer expired delegates // if possible, before writing to the following things: @@ -34,15 +34,15 @@ class pinsnd88_device : public device_t, public device_mixer_interface // callbacks auto syncq_cb() { return m_syncq_cb.bind(); } - void pinsnd88_map(address_map &map); + void pinsnd88_map(address_map &map) ATTR_COLD; protected: // constructor with overridable type for subclass, in case we want to put NARC's sound board in here eventually //pinsnd88_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock = 0); // overrides - 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; TIMER_CALLBACK_MEMBER(deferred_sync_w); diff --git a/src/mame/pinball/play_1.cpp b/src/mame/pinball/play_1.cpp index f79f88b9ef9..c79729823a3 100644 --- a/src/mame/pinball/play_1.cpp +++ b/src/mame/pinball/play_1.cpp @@ -52,8 +52,8 @@ class play_1_state : public genpin_class void play_1(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: u8 port07_r(); @@ -70,9 +70,9 @@ class play_1_state : public genpin_class int ef4_r(); void clock_w(int state); - void chance_map(address_map &map); - void io_map(address_map &map); - void mem_map(address_map &map); + void chance_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; u8 m_resetcnt = 0U; u16 m_clockcnt = 0U; diff --git a/src/mame/pinball/play_2.cpp b/src/mame/pinball/play_2.cpp index 4bbbbed3a04..8bfad73d8f1 100644 --- a/src/mame/pinball/play_2.cpp +++ b/src/mame/pinball/play_2.cpp @@ -90,8 +90,8 @@ class play_2_state : public genpin_class void clock2_w(int state); TIMER_DEVICE_CALLBACK_MEMBER(snd_off_callback) { m_1863->set_output_gain(0, 0.00); } - void play_2_io(address_map &map); - void play_2_map(address_map &map); + void play_2_io(address_map &map) ATTR_COLD; + void play_2_map(address_map &map) ATTR_COLD; u8 m_resetcnt = 0U; u8 m_kbdrow = 0U; @@ -101,8 +101,8 @@ class play_2_state : public genpin_class u8 m_old_solenoids[8]{}; u8 m_soundlatch = 0U; bool m_snd_on = false; - virtual void machine_reset() override; - virtual void machine_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; required_device m_maincpu; required_device m_4013a; required_device m_4013b; @@ -126,7 +126,7 @@ class zira_state : public play_2_state void init_zira(); private: - void zira_sound_map(address_map &map); + void zira_sound_map(address_map &map) ATTR_COLD; void sound_d_w(u8 data); void sound_g_w(u8 data); u8 psg_r(); diff --git a/src/mame/pinball/play_3.cpp b/src/mame/pinball/play_3.cpp index 0c410f805ad..ed575652ae1 100644 --- a/src/mame/pinball/play_3.cpp +++ b/src/mame/pinball/play_3.cpp @@ -120,13 +120,13 @@ class play_3_state : public genpin_class u8 port02_a_r(); int clear_a_r(); - void terrlake_io(address_map &map); - void audio_io_map(address_map &map); - void audio_mem_map(address_map &map); - void io_map(address_map &map); - void mem_map(address_map &map); - void flashman_io(address_map &map); - void sklflite_io(address_map &map); + void terrlake_io(address_map &map) ATTR_COLD; + void audio_io_map(address_map &map) ATTR_COLD; + void audio_mem_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; + void flashman_io(address_map &map) ATTR_COLD; + void sklflite_io(address_map &map) ATTR_COLD; u8 m_resetcnt = 0U; u8 m_resetcnt_a = 0U; @@ -137,8 +137,8 @@ class play_3_state : public genpin_class u8 m_kbdrow = 0U; u8 m_segment[5]{}; bool m_disp_sw = false; - virtual void machine_reset() override; - virtual void machine_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; required_device m_maincpu; optional_device m_audiocpu; required_device m_4013a; diff --git a/src/mame/pinball/recel.cpp b/src/mame/pinball/recel.cpp index 51a221d3ba5..1878af71aaa 100644 --- a/src/mame/pinball/recel.cpp +++ b/src/mame/pinball/recel.cpp @@ -78,12 +78,12 @@ class recel_state : public genpin_class [[maybe_unused]]u8 bic_r(offs_t offset); [[maybe_unused]]void bic_w(offs_t offset, u8 data); - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; - void recel_map(address_map &map); - void recel_data(address_map &map); - void recel_io(address_map &map); + void recel_map(address_map &map) ATTR_COLD; + void recel_data(address_map &map) ATTR_COLD; + void recel_io(address_map &map) ATTR_COLD; required_device m_maincpu; required_region_ptr m_pm; diff --git a/src/mame/pinball/rowamet.cpp b/src/mame/pinball/rowamet.cpp index 0865c22331b..618a1cac07c 100644 --- a/src/mame/pinball/rowamet.cpp +++ b/src/mame/pinball/rowamet.cpp @@ -53,14 +53,14 @@ class rowamet_state : public genpin_class void mute_w(u8 data); u8 io_r(offs_t offset); void io_w(offs_t offset, u8 data); - void main_mem_map(address_map &map); - void audio_mem_map(address_map &map); - void audio_io_map(address_map &map); + void main_mem_map(address_map &map) ATTR_COLD; + void audio_mem_map(address_map &map) ATTR_COLD; + void audio_io_map(address_map &map) ATTR_COLD; u8 m_sndcmd = 0xffU; u8 m_io[32]{}; - virtual void machine_reset() override; - virtual void machine_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; required_device m_maincpu; required_device m_audiocpu; output_finder<32> m_digits; diff --git a/src/mame/pinball/s11.h b/src/mame/pinball/s11.h index 7742bf8b524..de4e51f0654 100644 --- a/src/mame/pinball/s11.h +++ b/src/mame/pinball/s11.h @@ -75,11 +75,11 @@ class s11_state : public genpin_class DECLARE_INPUT_CHANGED_MEMBER(audio_nmi); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; - void s11_main_map(address_map &map); - void s11_audio_map(address_map &map); + void s11_main_map(address_map &map) ATTR_COLD; + void s11_audio_map(address_map &map) ATTR_COLD; TIMER_CALLBACK_MEMBER(irq_timer); @@ -210,8 +210,8 @@ class s11b_state : public s11a_state void init_s11bi7(); // invert and 7seg34 protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; bool m_invert = false; // later System 11B games expect inverted data to the display LED segments. void set_invert(bool i) { m_invert = i; } bool m_is7seg34 = false; // some games use 7-segment displays for players 3 and 4 @@ -237,7 +237,7 @@ class s11c_state : public s11b_state void init_s11c7(); protected: - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; }; diff --git a/src/mame/pinball/s3.cpp b/src/mame/pinball/s3.cpp index 7119795d903..713a091bc9e 100644 --- a/src/mame/pinball/s3.cpp +++ b/src/mame/pinball/s3.cpp @@ -85,8 +85,8 @@ class s3_state : public genpin_class void init_4() { m_game = 4; } // lucky protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; void dig0_w(u8 data); @@ -112,7 +112,7 @@ class s3_state : public genpin_class void pia30_ca2_w(int state) { m_io_outputs[19] = state; } //ST4 void pia30_cb2_w(int state) { m_io_outputs[18] = state; } //ST3 TIMER_DEVICE_CALLBACK_MEMBER(irq); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_mainirq; diff --git a/src/mame/pinball/s4.cpp b/src/mame/pinball/s4.cpp index d2eff744c2e..0ad1c743a7f 100644 --- a/src/mame/pinball/s4.cpp +++ b/src/mame/pinball/s4.cpp @@ -74,8 +74,8 @@ class s4_state : public genpin_class DECLARE_INPUT_CHANGED_MEMBER(main_nmi); private: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; void dig0_w(u8 data); void dig1_w(u8 data); @@ -102,7 +102,7 @@ class s4_state : public genpin_class void pia30_ca2_w(int state) { m_io_outputs[19] = state; } //ST4 void pia30_cb2_w(int state) { m_io_outputs[18] = state; } //ST3 void irq_w(int state); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_mainirq; diff --git a/src/mame/pinball/s6.cpp b/src/mame/pinball/s6.cpp index 92e10578587..599faa50995 100644 --- a/src/mame/pinball/s6.cpp +++ b/src/mame/pinball/s6.cpp @@ -94,8 +94,8 @@ class s6_state : public genpin_class DECLARE_INPUT_CHANGED_MEMBER(main_nmi); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; TIMER_CALLBACK_MEMBER(irq_timer); @@ -119,7 +119,7 @@ class s6_state : public genpin_class void pia30_cb2_w(int state) { m_io_outputs[18] = state; } //ST3 void pia_irq(int state); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; u8 m_strobe = 0; u8 m_row = 0; diff --git a/src/mame/pinball/s7.cpp b/src/mame/pinball/s7.cpp index 6a84067ed8d..3fe1a21313d 100644 --- a/src/mame/pinball/s7.cpp +++ b/src/mame/pinball/s7.cpp @@ -114,8 +114,8 @@ class s7_state : public genpin_class DECLARE_INPUT_CHANGED_MEMBER(diag_coin); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; TIMER_CALLBACK_MEMBER(irq_timer); @@ -144,7 +144,7 @@ class s7_state : public genpin_class void pia30_ca2_w(int state) { m_io_outputs[19] = state; } //ST4 void pia30_cb2_w(int state) { m_io_outputs[18] = state; } //ST3 void pia_irq(int state); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; u8 m_strobe = 0U; u8 m_row = 0U; diff --git a/src/mame/pinball/s8.cpp b/src/mame/pinball/s8.cpp index c5ffa822acf..ca5ff51dc8f 100644 --- a/src/mame/pinball/s8.cpp +++ b/src/mame/pinball/s8.cpp @@ -154,8 +154,8 @@ class s8_state : public genpin_class DECLARE_INPUT_CHANGED_MEMBER(audio_nmi); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; TIMER_CALLBACK_MEMBER(irq_timer); @@ -179,9 +179,9 @@ class s8_state : public genpin_class void pia28_cb2_w(int state) { m_comma12 = state; } // comma1&2 void pia_irq(int state); - void audio_map(address_map &map); - void main_map(address_map &map); - void scrzy_map(address_map &map); + void audio_map(address_map &map) ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; + void scrzy_map(address_map &map) ATTR_COLD; u8 m_sound_data = 0U; u8 m_strobe = 0U; diff --git a/src/mame/pinball/s9.cpp b/src/mame/pinball/s9.cpp index 3389d6200ec..a9c63ff03df 100644 --- a/src/mame/pinball/s9.cpp +++ b/src/mame/pinball/s9.cpp @@ -70,8 +70,8 @@ class s9_state : public genpin_class DECLARE_INPUT_CHANGED_MEMBER(main_nmi); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; TIMER_CALLBACK_MEMBER(irq_timer); @@ -90,7 +90,7 @@ class s9_state : public genpin_class void pia28_cb2_w(int state) { m_comma12 = state; } // comma1&2 void pia_irq(int state); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; u8 m_strobe = 0U; u8 m_row = 0U; diff --git a/src/mame/pinball/sam.cpp b/src/mame/pinball/sam.cpp index 6df35362031..fa4c837471c 100644 --- a/src/mame/pinball/sam.cpp +++ b/src/mame/pinball/sam.cpp @@ -66,7 +66,7 @@ class sam_state : public driver_device void sam(machine_config &config); private: - void sam_map(address_map &map); + void sam_map(address_map &map) ATTR_COLD; }; void sam_state::sam_map(address_map &map) diff --git a/src/mame/pinball/sleic.cpp b/src/mame/pinball/sleic.cpp index 14238137c78..c5a1b2495aa 100644 --- a/src/mame/pinball/sleic.cpp +++ b/src/mame/pinball/sleic.cpp @@ -73,12 +73,12 @@ class sleic_state : public genpin_class void sleic(machine_config &config); private: - void main_map(address_map &map); - void cpu2_map(address_map &map); - void cpu2_io(address_map &map); - void cpu3_map(address_map &map); - virtual void machine_start() override; - virtual void machine_reset() override; + void main_map(address_map &map) ATTR_COLD; + void cpu2_map(address_map &map) ATTR_COLD; + void cpu2_io(address_map &map) ATTR_COLD; + void cpu3_map(address_map &map) ATTR_COLD; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; u8 cpu2_in00() { return 0; } // communications + handshake u8 cpu2_in01() { return 0; } // communications + handshake u8 cpu2_in02() { u8 data = 0U; for (u8 i = 0; i < 6; i++) if (BIT(m_row, i)) data |= m_io_keyboard[i]->read(); return data; } // contactors diff --git a/src/mame/pinball/spectra.cpp b/src/mame/pinball/spectra.cpp index 583ca51ca88..f8aa45f891a 100644 --- a/src/mame/pinball/spectra.cpp +++ b/src/mame/pinball/spectra.cpp @@ -67,8 +67,8 @@ class spectra_state : public genpin_class void spectra(machine_config &config); protected: - virtual void machine_reset() override; - virtual void machine_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; private: u8 porta_r(); @@ -77,7 +77,7 @@ class spectra_state : public genpin_class void portb_w(u8 data); TIMER_DEVICE_CALLBACK_MEMBER(nmitimer); TIMER_DEVICE_CALLBACK_MEMBER(outtimer); - void spectra_map(address_map &map); + void spectra_map(address_map &map) ATTR_COLD; u8 m_porta = 0U; u8 m_portb = 0U; diff --git a/src/mame/pinball/spinb.cpp b/src/mame/pinball/spinb.cpp index 9215c150054..eab1929a694 100644 --- a/src/mame/pinball/spinb.cpp +++ b/src/mame/pinball/spinb.cpp @@ -113,8 +113,8 @@ class spinb_state : public genpin_class void init_3() { m_game = 3; } private: - virtual void machine_reset() override; - virtual void machine_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; void p1_w(u8 data); u8 p3_r(); void p3_w(u8 data); @@ -157,12 +157,12 @@ class spinb_state : public genpin_class u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void dmd_io(address_map &map); - void dmd_mem(address_map &map); - void audio_map(address_map &map); - void spinb_map(address_map &map); - void music_map(address_map &map); - void vrnwrld_map(address_map &map); + void dmd_io(address_map &map) ATTR_COLD; + void dmd_mem(address_map &map) ATTR_COLD; + void audio_map(address_map &map) ATTR_COLD; + void spinb_map(address_map &map) ATTR_COLD; + void music_map(address_map &map) ATTR_COLD; + void vrnwrld_map(address_map &map) ATTR_COLD; bool m_pc0a = false; bool m_pc0m = false; diff --git a/src/mame/pinball/spirit76.cpp b/src/mame/pinball/spirit76.cpp index 3d36492efbd..a64d7ec47b7 100644 --- a/src/mame/pinball/spirit76.cpp +++ b/src/mame/pinball/spirit76.cpp @@ -65,14 +65,14 @@ class spirit76_state : public genpin_class void portb_w(u8 data); u8 porta_r(); u8 sw_r(); - void maincpu_map(address_map &map); + void maincpu_map(address_map &map) ATTR_COLD; u8 m_t_c = 0U; u8 m_strobe = 0U; u8 m_segment = 0U; u8 m_last_solenoid[2]{ }; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; required_device m_maincpu; required_ioport_array<16> m_io_keyboard; output_finder<16> m_digits; diff --git a/src/mame/pinball/st_mp100.cpp b/src/mame/pinball/st_mp100.cpp index 7c794cc4711..7336703c2d5 100644 --- a/src/mame/pinball/st_mp100.cpp +++ b/src/mame/pinball/st_mp100.cpp @@ -58,8 +58,8 @@ class st_mp100_state : public genpin_class DECLARE_INPUT_CHANGED_MEMBER(self_test); protected: - virtual void machine_reset() override; - virtual void machine_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; private: u8 u10_a_r(); @@ -73,7 +73,7 @@ class st_mp100_state : public genpin_class void u10_cb2_w(int state); void u11_ca2_w(int state); void u11_cb2_w(int state); - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; u8 m_u10a = 0U; u8 m_u10b = 0U; diff --git a/src/mame/pinball/st_mp200.cpp b/src/mame/pinball/st_mp200.cpp index 5c5338f97bf..cef32b65dc1 100644 --- a/src/mame/pinball/st_mp200.cpp +++ b/src/mame/pinball/st_mp200.cpp @@ -104,8 +104,8 @@ class st_mp200_state : public genpin_class DECLARE_INPUT_CHANGED_MEMBER(self_test); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: u8 u10_a_r(); @@ -120,8 +120,8 @@ class st_mp200_state : public genpin_class void u11_ca2_w(int state); void u11_cb2_w(int state); - void mem_map(address_map &map); - void sam4_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void sam4_map(address_map &map) ATTR_COLD; u8 m_u10a = 0U; u8 m_u10b = 0U; diff --git a/src/mame/pinball/stargame.cpp b/src/mame/pinball/stargame.cpp index cff8bd51a45..307d863b425 100644 --- a/src/mame/pinball/stargame.cpp +++ b/src/mame/pinball/stargame.cpp @@ -64,16 +64,16 @@ class stargame_state : public genpin_class u8 csw1_r(); u8 csw2_r(); - void audiocpu_io(address_map &map); - void audiocpu_map(address_map &map); - void maincpu_io(address_map &map); - void maincpu_map(address_map &map); + void audiocpu_io(address_map &map) ATTR_COLD; + void audiocpu_map(address_map &map) ATTR_COLD; + void maincpu_io(address_map &map) ATTR_COLD; + void maincpu_map(address_map &map) ATTR_COLD; u8 m_segment[5]{}; u8 m_game = 0U; u8 m_row = 0U; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; required_device m_maincpu; required_device m_audiocpu; required_device m_ctc; diff --git a/src/mame/pinball/supstarf.cpp b/src/mame/pinball/supstarf.cpp index b07a8703118..0df406442d8 100644 --- a/src/mame/pinball/supstarf.cpp +++ b/src/mame/pinball/supstarf.cpp @@ -52,12 +52,12 @@ class supstarf_state : public driver_device void lights_a_w(u8 data); void lights_b_w(u8 data); - void main_io_map(address_map &map); - void main_map(address_map &map); - void sound_io_map(address_map &map); - void sound_map(address_map &map); + void main_io_map(address_map &map) ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; + void sound_io_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; required_device m_maincpu; required_device m_soundcpu; diff --git a/src/mame/pinball/taito.cpp b/src/mame/pinball/taito.cpp index e6320d751ec..83c4219a09a 100644 --- a/src/mame/pinball/taito.cpp +++ b/src/mame/pinball/taito.cpp @@ -76,8 +76,8 @@ class taito_state : public genpin_class void mr_common(); void ms_common(); void taito_ay_audio(machine_config &config); - void audio_map(address_map &map); - void audio_map2(address_map &map); + void audio_map(address_map &map) ATTR_COLD; + void audio_map2(address_map &map) ATTR_COLD; u8 pia_pb_r(); u8 m_sndcmd = 0x3eU; required_device m_audiocpu; @@ -103,16 +103,16 @@ class taito_8080 : public taito_state void shock(machine_config &config); private: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; u8 io_r(offs_t offset); void io_w(offs_t offset, u8 data); void pia_pb_w(u8 data); void pia_cb2_w(int state); void votrax_request(int state); - void shock_main_map(address_map &map); - void shock_audio_map(address_map &map); - void main_map(address_map &map); + void shock_main_map(address_map &map) ATTR_COLD; + void shock_audio_map(address_map &map) ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; u8 m_votrax_cmd = 0U; u8 m_io[32]{}; @@ -132,10 +132,10 @@ class mrblkz80_state : public taito_state void taitoz(machine_config &config); private: - virtual void machine_start() override; - virtual void machine_reset() override; - void mrblkz80_mem_map(address_map &map); - void mrblkz80_io_map(address_map &map); + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + void mrblkz80_mem_map(address_map &map) ATTR_COLD; + void mrblkz80_io_map(address_map &map) ATTR_COLD; TIMER_DEVICE_CALLBACK_MEMBER(timer_z); void z80_col_w(u8); void z80_disp_w(u8); diff --git a/src/mame/pinball/techno.cpp b/src/mame/pinball/techno.cpp index 9c05f686f9b..ebc8fa1c07e 100644 --- a/src/mame/pinball/techno.cpp +++ b/src/mame/pinball/techno.cpp @@ -55,12 +55,12 @@ class techno_state : public genpin_class void techno(machine_config &config); private: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; - void mem_map(address_map &map); - void audio_map(address_map &map); - void cpu_space_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void audio_map(address_map &map) ATTR_COLD; + void cpu_space_map(address_map &map) ATTR_COLD; TIMER_CALLBACK_MEMBER(set_irq1); TIMER_CALLBACK_MEMBER(clear_irq1); diff --git a/src/mame/pinball/vd.cpp b/src/mame/pinball/vd.cpp index e82fdfae845..25b2eb66db4 100644 --- a/src/mame/pinball/vd.cpp +++ b/src/mame/pinball/vd.cpp @@ -57,15 +57,15 @@ class vd_state : public genpin_class void lamp_w(offs_t, u8); void sol_w(u8 data); TIMER_DEVICE_CALLBACK_MEMBER(irq); - void io_map(address_map &map); - void mem_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; bool m_ready = false; u8 m_t_c = 0U; u8 m_game = 0U; u8 m_segment[5]{}; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; required_device m_maincpu; output_finder<48> m_digits; output_finder<80> m_io_outputs; // 16 solenoids + 64 lamps diff --git a/src/mame/pinball/whitestar.cpp b/src/mame/pinball/whitestar.cpp index 40e58488226..634039c088a 100644 --- a/src/mame/pinball/whitestar.cpp +++ b/src/mame/pinball/whitestar.cpp @@ -99,8 +99,8 @@ class whitestar_state : public genpin_class void goldcue(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: void bank_w(uint8_t data); @@ -110,10 +110,10 @@ class whitestar_state : public genpin_class void switch_w(uint8_t data); INTERRUPT_GEN_MEMBER(whitestar_firq_interrupt); - void whitestar_base_map(address_map &map); - void whitestar_map(address_map &map); - void whitestarm_map(address_map &map); - void goldcue_map(address_map &map); + void whitestar_base_map(address_map &map) ATTR_COLD; + void whitestar_map(address_map &map) ATTR_COLD; + void whitestarm_map(address_map &map) ATTR_COLD; + void goldcue_map(address_map &map) ATTR_COLD; u8 m_row = 0U; required_device m_maincpu; //required_device m_dmdcpu; diff --git a/src/mame/pinball/wico.cpp b/src/mame/pinball/wico.cpp index 7cf37cafa7d..a2642e16748 100644 --- a/src/mame/pinball/wico.cpp +++ b/src/mame/pinball/wico.cpp @@ -75,8 +75,8 @@ class wico_state : public genpin_class u8 gentmrcl_r(); TIMER_DEVICE_CALLBACK_MEMBER(irq_housekeeping); TIMER_DEVICE_CALLBACK_MEMBER(firq_housekeeping); - void ccpu_map(address_map &map); - void hcpu_map(address_map &map); + void ccpu_map(address_map &map) ATTR_COLD; + void hcpu_map(address_map &map) ATTR_COLD; bool m_zcen = false; bool m_gten = false; @@ -84,8 +84,8 @@ class wico_state : public genpin_class bool m_diag_on = false; u8 m_firqtimer = 0U; u8 m_diag_segments = 0U; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; required_device m_ccpu; required_device m_hcpu; required_shared_ptr m_shared_ram; diff --git a/src/mame/pinball/wms_shuffle.cpp b/src/mame/pinball/wms_shuffle.cpp index 9ee1be72bd8..860ae033670 100644 --- a/src/mame/pinball/wms_shuffle.cpp +++ b/src/mame/pinball/wms_shuffle.cpp @@ -92,8 +92,8 @@ class shuffle_state : public genpin_class DECLARE_INPUT_CHANGED_MEMBER(main_nmi); private: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; void dig0_w(u8 data); void dig1_w(u8 data); @@ -126,9 +126,9 @@ class shuffle_state : public genpin_class void pia30_ca2_w(int state) { } //ST4 void pia30_cb2_w(int state) { } //ST3 void irq_w(int state); - void s4_map(address_map &map); - void s9_map(address_map &map); - void s11_map(address_map &map); + void s4_map(address_map &map) ATTR_COLD; + void s9_map(address_map &map) ATTR_COLD; + void s11_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_mainirq; diff --git a/src/mame/pinball/wpc.h b/src/mame/pinball/wpc.h index 8d47723ea23..f6a21d6343d 100644 --- a/src/mame/pinball/wpc.h +++ b/src/mame/pinball/wpc.h @@ -105,8 +105,8 @@ class wpc_device : public device_t protected: // 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; TIMER_CALLBACK_MEMBER(zerocross_set); diff --git a/src/mame/pinball/wpc_95.cpp b/src/mame/pinball/wpc_95.cpp index 3d12c0845bb..e74c7201655 100644 --- a/src/mame/pinball/wpc_95.cpp +++ b/src/mame/pinball/wpc_95.cpp @@ -90,7 +90,7 @@ class wpc_95_state : public driver_device protected: // driver_device overrides - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; private: void bank_w(uint8_t data); @@ -107,7 +107,7 @@ class wpc_95_state : public driver_device void scanline_irq(int state); TIMER_DEVICE_CALLBACK_MEMBER(zc_timer); - void wpc_95_map(address_map &map); + void wpc_95_map(address_map &map) ATTR_COLD; // devices required_device m_maincpu; diff --git a/src/mame/pinball/wpc_an.cpp b/src/mame/pinball/wpc_an.cpp index 137bbb74d4a..015c0cfb863 100644 --- a/src/mame/pinball/wpc_an.cpp +++ b/src/mame/pinball/wpc_an.cpp @@ -125,10 +125,10 @@ class wpc_an_state : public driver_device private: // driver_device overrides - virtual void machine_reset() override; - virtual void machine_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; - void wpc_an_map(address_map &map); + void wpc_an_map(address_map &map) ATTR_COLD; TIMER_CALLBACK_MEMBER(vblank_tick); TIMER_CALLBACK_MEMBER(trigger_irq); diff --git a/src/mame/pinball/wpc_dcs.cpp b/src/mame/pinball/wpc_dcs.cpp index 7c7946207c8..e4566d039ed 100644 --- a/src/mame/pinball/wpc_dcs.cpp +++ b/src/mame/pinball/wpc_dcs.cpp @@ -83,7 +83,7 @@ class wpc_dcs_state : public driver_device void scanline_irq(int state); TIMER_DEVICE_CALLBACK_MEMBER(zc_timer); - void wpc_dcs_map(address_map &map); + void wpc_dcs_map(address_map &map) ATTR_COLD; // devices required_device m_maincpu; @@ -96,7 +96,7 @@ class wpc_dcs_state : public driver_device required_ioport_array<8> m_io_keyboard; // driver_device overrides - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; uint8_t m_firq_src = 0U, m_zc = 0U, m_row = 0U; uint16_t m_rtc_base_day = 0U; diff --git a/src/mame/pinball/wpc_dmd.h b/src/mame/pinball/wpc_dmd.h index 6a04077a278..abb4058dd34 100644 --- a/src/mame/pinball/wpc_dmd.h +++ b/src/mame/pinball/wpc_dmd.h @@ -16,7 +16,7 @@ class wpc_dmd_device : public device_t wpc_dmd_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); virtual ~wpc_dmd_device(); - void registers(address_map &map); + void registers(address_map &map) ATTR_COLD; void bank0_w(uint8_t data); void bank2_w(uint8_t data); @@ -36,9 +36,9 @@ class wpc_dmd_device : public device_t uint8_t cur_scanline, visible_page, firq_scanline; std::vector ram, screen_buffer, bitcounts; - 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; private: TIMER_DEVICE_CALLBACK_MEMBER(scanline_timer); diff --git a/src/mame/pinball/wpc_dot.h b/src/mame/pinball/wpc_dot.h index 8b79aca167e..9b37922e782 100644 --- a/src/mame/pinball/wpc_dot.h +++ b/src/mame/pinball/wpc_dot.h @@ -34,10 +34,10 @@ class wpc_dot_state : public driver_device protected: // driver_device overrides - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; - void wpc_dot_map(address_map &map); + void wpc_dot_map(address_map &map) ATTR_COLD; TIMER_CALLBACK_MEMBER(vblank_tick); TIMER_CALLBACK_MEMBER(trigger_irq); @@ -81,7 +81,7 @@ class wpc_flip1_state : public wpc_dot_state void wpc_flip1(machine_config &config); protected: - void wpc_flip1_map(address_map &map); + void wpc_flip1_map(address_map &map) ATTR_COLD; }; class wpc_flip2_state : public wpc_flip1_state @@ -95,7 +95,7 @@ class wpc_flip2_state : public wpc_flip1_state void wpc_flip2(machine_config &config); protected: - void wpc_flip2_map(address_map &map); + void wpc_flip2_map(address_map &map) ATTR_COLD; }; #endif // MAME_PINBALL_WPC_DOT_H diff --git a/src/mame/pinball/wpc_lamp.h b/src/mame/pinball/wpc_lamp.h index 7a659fe6e00..8141ae42b1e 100644 --- a/src/mame/pinball/wpc_lamp.h +++ b/src/mame/pinball/wpc_lamp.h @@ -20,8 +20,8 @@ class wpc_lamp_device : public device_t void set_names(const char *const *lamp_names); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; TIMER_CALLBACK_MEMBER(update_lamps); diff --git a/src/mame/pinball/wpc_out.h b/src/mame/pinball/wpc_out.h index 96efe9995ac..2b701433957 100644 --- a/src/mame/pinball/wpc_out.h +++ b/src/mame/pinball/wpc_out.h @@ -32,8 +32,8 @@ class wpc_out_device : public device_t void set_gi_count(int _count); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; TIMER_CALLBACK_MEMBER(update_outputs); diff --git a/src/mame/pinball/wpc_pic.h b/src/mame/pinball/wpc_pic.h index fcc92036c34..389268a3109 100644 --- a/src/mame/pinball/wpc_pic.h +++ b/src/mame/pinball/wpc_pic.h @@ -25,8 +25,8 @@ class wpc_pic_device : public device_t uint8_t mem[16]{}, chk[3]{}, curcmd = 0, scrambler = 0, count = 0, chk_count = 0, cmpchk[3]{}; const char *serial; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; void serial_to_pic(); void check_game_id(); diff --git a/src/mame/pinball/wpc_s.cpp b/src/mame/pinball/wpc_s.cpp index 95f304d850f..2c6db470ea9 100644 --- a/src/mame/pinball/wpc_s.cpp +++ b/src/mame/pinball/wpc_s.cpp @@ -88,7 +88,7 @@ class wpc_s_state : public driver_device protected: // driver_device overrides - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; private: void bank_w(uint8_t data); @@ -105,7 +105,7 @@ class wpc_s_state : public driver_device void scanline_irq(int state); TIMER_DEVICE_CALLBACK_MEMBER(zc_timer); - void wpc_s_map(address_map &map); + void wpc_s_map(address_map &map) ATTR_COLD; // devices required_device m_maincpu; diff --git a/src/mame/pinball/wpc_shift.h b/src/mame/pinball/wpc_shift.h index d979c57289d..aa4746e8d53 100644 --- a/src/mame/pinball/wpc_shift.h +++ b/src/mame/pinball/wpc_shift.h @@ -12,11 +12,11 @@ class wpc_shift_device : public device_t wpc_shift_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); virtual ~wpc_shift_device(); - void registers(address_map &map); + void registers(address_map &map) ATTR_COLD; protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: uint16_t adr = 0; diff --git a/src/mame/pinball/wpcsnd.h b/src/mame/pinball/wpcsnd.h index 5d34b09093a..7fb43f9f089 100644 --- a/src/mame/pinball/wpcsnd.h +++ b/src/mame/pinball/wpcsnd.h @@ -39,12 +39,12 @@ class wpcsnd_device : public device_t, public device_mixer_interface // callbacks auto reply_callback() { return m_reply_cb.bind(); } - void wpcsnd_map(address_map &map); + void wpcsnd_map(address_map &map) ATTR_COLD; protected: // overrides - 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; private: uint8_t m_latch = 0; diff --git a/src/mame/pinball/zac_1.cpp b/src/mame/pinball/zac_1.cpp index 811c52f6f99..451ab1ae376 100644 --- a/src/mame/pinball/zac_1.cpp +++ b/src/mame/pinball/zac_1.cpp @@ -124,19 +124,19 @@ class zac_1_state : public genpin_class void reset_int_w(u8 data); TIMER_DEVICE_CALLBACK_MEMBER(zac_1_inttimer); TIMER_DEVICE_CALLBACK_MEMBER(zac_1_outtimer); - virtual void machine_reset() override; - virtual void machine_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; void audio_command_w(u8 data); u8 audio_command_r(); - void locomotp_data(address_map &map); - void locomotp_io(address_map &map); - void locomotp_map(address_map &map); - void zac_1_data(address_map &map); - void zac_1_io(address_map &map); - void zac_1_map(address_map &map); - void audio_data(address_map &map); - void audio_io(address_map &map); + void locomotp_data(address_map &map) ATTR_COLD; + void locomotp_io(address_map &map) ATTR_COLD; + void locomotp_map(address_map &map) ATTR_COLD; + void zac_1_data(address_map &map) ATTR_COLD; + void zac_1_io(address_map &map) ATTR_COLD; + void zac_1_map(address_map &map) ATTR_COLD; + void audio_data(address_map &map) ATTR_COLD; + void audio_io(address_map &map) ATTR_COLD; u8 m_t_c = 0U; u8 m_out_offs = 0U; diff --git a/src/mame/pinball/zac_2.cpp b/src/mame/pinball/zac_2.cpp index 4c4da36d62b..b14d0c668d9 100644 --- a/src/mame/pinball/zac_2.cpp +++ b/src/mame/pinball/zac_2.cpp @@ -80,16 +80,16 @@ class zac_2_state : public genpin_class void serial_w(int state); TIMER_DEVICE_CALLBACK_MEMBER(zac_2_inttimer); TIMER_DEVICE_CALLBACK_MEMBER(zac_2_outtimer); - void zac_2_data(address_map &map); - void zac_2_io(address_map &map); - void zac_2_map(address_map &map); + void zac_2_data(address_map &map) ATTR_COLD; + void zac_2_io(address_map &map) ATTR_COLD; + void zac_2_map(address_map &map) ATTR_COLD; u8 m_row = 0U; u8 m_t_c = 0U; u8 m_out_offs = 0U; u8 m_game = 0U; - virtual void machine_reset() override; - virtual void machine_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; required_device m_maincpu; required_shared_ptr m_p_ram; required_ioport_array<8> m_io_keyboard; diff --git a/src/mame/pinball/zac_proto.cpp b/src/mame/pinball/zac_proto.cpp index de4914c792c..661abebd7e1 100644 --- a/src/mame/pinball/zac_proto.cpp +++ b/src/mame/pinball/zac_proto.cpp @@ -58,14 +58,14 @@ class zac_proto_state : public genpin_class void sound_w(offs_t offset, uint8_t data); void audio_clock(int state); int slam_r(); - void zac_proto_map(address_map &map); + void zac_proto_map(address_map &map) ATTR_COLD; u8 m_u36 = 0x80U; // preset divider for u44/u45 u8 m_u37 = 0U; // selector for u48 u8 m_u44u45 = 0U; // counters for u44/u45 u8 m_u46u47 = 0U; // counters for u46/u47 - virtual void machine_reset() override; - virtual void machine_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; required_device m_maincpu; required_device m_speaker; output_finder<11> m_digits; diff --git a/src/mame/pinball/zpinball.cpp b/src/mame/pinball/zpinball.cpp index 9f30756441f..690ebd571cd 100644 --- a/src/mame/pinball/zpinball.cpp +++ b/src/mame/pinball/zpinball.cpp @@ -46,8 +46,8 @@ class zpinball_state : public driver_device void eballchps(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: u8 pal_r(); @@ -71,8 +71,8 @@ class zpinball_state : public driver_device void o5_w(u8 data); void o6_w(u8 data); - void zpu_mem(address_map &map); - void zpu_io(address_map &map); + void zpu_mem(address_map &map) ATTR_COLD; + void zpu_io(address_map &map) ATTR_COLD; required_device m_zpumpu; required_device m_zpuctc; diff --git a/src/mame/pitronics/beta.cpp b/src/mame/pitronics/beta.cpp index 50be23a04eb..9b2d5b9b2a4 100644 --- a/src/mame/pitronics/beta.cpp +++ b/src/mame/pitronics/beta.cpp @@ -71,7 +71,7 @@ class beta_state : public driver_device void beta(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; uint8_t riot_pa_r(); void riot_pa_w(uint8_t data); @@ -83,7 +83,7 @@ class beta_state : public driver_device TIMER_CALLBACK_MEMBER(led_refresh); - void beta_mem(address_map &map); + void beta_mem(address_map &map) ATTR_COLD; private: required_device m_maincpu; diff --git a/src/mame/playmark/drtomy.cpp b/src/mame/playmark/drtomy.cpp index 35faa9d7515..dceb1810862 100644 --- a/src/mame/playmark/drtomy.cpp +++ b/src/mame/playmark/drtomy.cpp @@ -77,16 +77,16 @@ class drtomy_state : public driver_device void drtomy_okibank_w(uint16_t data); TILE_GET_INFO_MEMBER(get_tile_info_fg); TILE_GET_INFO_MEMBER(get_tile_info_bg); - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; uint32_t screen_update_drtomy(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect ); required_device m_maincpu; required_device m_oki; required_device m_gfxdecode; required_device m_palette; - void drtomy_map(address_map &map); + void drtomy_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/playmark/playmark.h b/src/mame/playmark/playmark.h index 795c2a3b1eb..ceb8414e165 100644 --- a/src/mame/playmark/playmark.h +++ b/src/mame/playmark/playmark.h @@ -82,8 +82,8 @@ class playmark_state : public playmark_base_state void init_pic_decode(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: // memory pointers @@ -177,15 +177,15 @@ class playmark_state : public playmark_base_state u8 playmark_asciitohex(u8 data); void playmark_decode_pic_hex_dump(void); - void bigtwin_main_map(address_map &map); - void bigtwinb_main_map(address_map &map); - void excelsr_main_map(address_map &map); - void hotmind_main_map(address_map &map); - void hrdtimes_main_map(address_map &map); - void luckboomh_main_map(address_map &map); - void oki_map(address_map &map); - void wbeachvl_main_map(address_map &map); - void wbeachvla_main_map(address_map &map); + void bigtwin_main_map(address_map &map) ATTR_COLD; + void bigtwinb_main_map(address_map &map) ATTR_COLD; + void excelsr_main_map(address_map &map) ATTR_COLD; + void hotmind_main_map(address_map &map) ATTR_COLD; + void hrdtimes_main_map(address_map &map) ATTR_COLD; + void luckboomh_main_map(address_map &map) ATTR_COLD; + void oki_map(address_map &map) ATTR_COLD; + void wbeachvl_main_map(address_map &map) ATTR_COLD; + void wbeachvla_main_map(address_map &map) ATTR_COLD; void wbeachvl_base(machine_config &config); }; diff --git a/src/mame/playmark/powerbal.cpp b/src/mame/playmark/powerbal.cpp index 51caf7d412a..897f42f6dfc 100644 --- a/src/mame/playmark/powerbal.cpp +++ b/src/mame/playmark/powerbal.cpp @@ -40,9 +40,9 @@ class powerbal_state : public playmark_base_state void powerbal(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; u8 m_tilebank = 0; s8 m_bg_yoffset = 0; @@ -53,12 +53,12 @@ class powerbal_state : public playmark_base_state void tile_banking_w(u16 data); void oki_banking(u16 data); - void oki_map(address_map &map); + void oki_map(address_map &map) ATTR_COLD; private: void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; }; class atombjt_state : public powerbal_state @@ -71,12 +71,12 @@ class atombjt_state : public powerbal_state void atombjt(machine_config &config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: void tile_banking_w(u16 data); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; }; class magicstk_state : public powerbal_state @@ -100,7 +100,7 @@ class magicstk_state : public powerbal_state void coin_eeprom_w(u8 data); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; }; void magicstk_state::coin_eeprom_w(u8 data) diff --git a/src/mame/playmark/sderby.cpp b/src/mame/playmark/sderby.cpp index 3b4940d0b7a..6154f7d77fd 100644 --- a/src/mame/playmark/sderby.cpp +++ b/src/mame/playmark/sderby.cpp @@ -120,7 +120,7 @@ class sderby_state : public driver_device protected: virtual void machine_start() override { m_lamps.resolve(); } - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; required_shared_ptr m_bg_videoram; required_shared_ptr m_md_videoram; @@ -160,12 +160,12 @@ class sderby_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); uint32_t screen_update_pmroulet(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); - void luckboom_map(address_map &map); - void roulette_map(address_map &map); - void sderby_map(address_map &map); - void sderbya_map(address_map &map); - void shinygld_map(address_map &map); - void spacewin_map(address_map &map); + void luckboom_map(address_map &map) ATTR_COLD; + void roulette_map(address_map &map) ATTR_COLD; + void sderby_map(address_map &map) ATTR_COLD; + void sderbya_map(address_map &map) ATTR_COLD; + void shinygld_map(address_map &map) ATTR_COLD; + void spacewin_map(address_map &map) ATTR_COLD; }; class zw3_state : public sderby_state @@ -176,12 +176,12 @@ class zw3_state : public sderby_state void zw3(machine_config &config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: TILE_GET_INFO_MEMBER(get_fg_tile_info); - void zw3_map(address_map &map); + void zw3_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/playmark/sslam.h b/src/mame/playmark/sslam.h index cfd0966ef1b..7618e4b2bd7 100644 --- a/src/mame/playmark/sslam.h +++ b/src/mame/playmark/sslam.h @@ -34,8 +34,8 @@ class sslam_state : public driver_device void init_sslam(); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; required_device m_maincpu; required_device m_audiocpu; @@ -87,7 +87,7 @@ class sslam_state : public driver_device void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); void sslam_play(int track, int data); - void sslam_program_map(address_map &map); + void sslam_program_map(address_map &map) ATTR_COLD; }; class powerbls_state : public sslam_state @@ -102,10 +102,10 @@ class powerbls_state : public sslam_state void init_powerbls(); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; - void powerbls_map(address_map &map); + void powerbls_map(address_map &map) ATTR_COLD; TILE_GET_INFO_MEMBER(get_powerbls_bg_tile_info); diff --git a/src/mame/poly88/poly88.h b/src/mame/poly88/poly88.h index 431c1ea26d2..eb083c1bc1f 100644 --- a/src/mame/poly88/poly88.h +++ b/src/mame/poly88/poly88.h @@ -39,8 +39,8 @@ class poly88_state : public driver_device void poly8813(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: bool is_onboard(offs_t offset); @@ -60,12 +60,12 @@ class poly88_state : public driver_device IRQ_CALLBACK_MEMBER(poly88_irq_callback); DECLARE_SNAPSHOT_LOAD_MEMBER(snapshot_cb); - void s100_mem(address_map &map); - void s100_io(address_map &map); - void poly88_mem(address_map &map); - void poly88_io(address_map &map); - void poly8813_mem(address_map &map); - void poly8813_io(address_map &map); + void s100_mem(address_map &map) ATTR_COLD; + void s100_io(address_map &map) ATTR_COLD; + void poly88_mem(address_map &map) ATTR_COLD; + void poly88_io(address_map &map) ATTR_COLD; + void poly8813_mem(address_map &map) ATTR_COLD; + void poly8813_io(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_onboard_io; diff --git a/src/mame/positron/positron.cpp b/src/mame/positron/positron.cpp index 5342979ee2c..94d84fc2912 100644 --- a/src/mame/positron/positron.cpp +++ b/src/mame/positron/positron.cpp @@ -67,8 +67,8 @@ class positron_state : public driver_device void positron(machine_config &config); private: - virtual void machine_reset() override; - virtual void machine_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; TIMER_CALLBACK_MEMBER(fuse_update); // TODO: Does nothing @@ -78,9 +78,9 @@ class positron_state : public driver_device emu_timer *m_fuse_timer = nullptr; bool m_fuse_timer_running = false; - void positron_map(address_map &map); - void positron_fetch(address_map &map); - void mmu_map(address_map &map); + void positron_map(address_map &map) ATTR_COLD; + void positron_fetch(address_map &map) ATTR_COLD; + void mmu_map(address_map &map) ATTR_COLD; uint8_t mmu_r(offs_t offset); void mmu_w(offs_t offset, uint8_t data); diff --git a/src/mame/promat/1945kiii.cpp b/src/mame/promat/1945kiii.cpp index 8c230999e69..b4a8552fb34 100644 --- a/src/mame/promat/1945kiii.cpp +++ b/src/mame/promat/1945kiii.cpp @@ -135,7 +135,7 @@ class k3_state : public driver_device void flagrall_soundbanks_w(offs_t offset, u16 data, u16 mem_mask = ~0); TILE_GET_INFO_MEMBER(get_tile_info); - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; void k3_drawgfx(bitmap_ind16 &dest_bmp,const rectangle &clip,gfx_element *gfx, u32 code,u32 color,bool flipx,bool flipy,int offsx,int offsy, @@ -143,9 +143,9 @@ class k3_state : public driver_device void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void k3_map(address_map &map); - void flagrall_map(address_map &map); - void k3_base_map(address_map &map); + void k3_map(address_map &map) ATTR_COLD; + void flagrall_map(address_map &map) ATTR_COLD; + void k3_base_map(address_map &map) ATTR_COLD; // devices optional_device_array m_oki; diff --git a/src/mame/promat/3x3puzzl.cpp b/src/mame/promat/3x3puzzl.cpp index 6f4ec488817..d9a9f948304 100644 --- a/src/mame/promat/3x3puzzl.cpp +++ b/src/mame/promat/3x3puzzl.cpp @@ -66,9 +66,9 @@ class _3x3puzzle_state : public driver_device void _3x3puzzle(machine_config &config); protected: - virtual void video_start() override; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void video_start() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: // memory pointers @@ -97,7 +97,7 @@ class _3x3puzzle_state : public driver_device void tilemap1_scrollx_w(uint16_t data); void tilemap1_scrolly_w(uint16_t data); - void _3x3puzzle_map(address_map &map); + void _3x3puzzle_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/promat/gstream.cpp b/src/mame/promat/gstream.cpp index ae72a8408ca..87c7aabb769 100644 --- a/src/mame/promat/gstream.cpp +++ b/src/mame/promat/gstream.cpp @@ -196,9 +196,9 @@ class gstream_state : public driver_device uint32_t gstream_speedup_r(); uint32_t x2222_speedup_r(); uint32_t x2222_speedup2_r(); - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); void draw_bg(bitmap_rgb32 &bitmap, const rectangle &cliprect, int map, uint32_t* ram); void drawgfx_transpen_x2222(bitmap_rgb32 &dest, const rectangle &cliprect, gfx_element *gfx,gfx_element *gfx2, @@ -209,10 +209,10 @@ class gstream_state : public driver_device required_device m_gfxdecode; required_device m_palette; - void gstream_32bit_map(address_map &map); - void gstream_io(address_map &map); - void x2222_32bit_map(address_map &map); - void x2222_io(address_map &map); + void gstream_32bit_map(address_map &map) ATTR_COLD; + void gstream_io(address_map &map) ATTR_COLD; + void x2222_32bit_map(address_map &map) ATTR_COLD; + void x2222_io(address_map &map) ATTR_COLD; }; int gstream_state::x2222_toggle_r() // or the game hangs when starting, might be a status flag for the sound? diff --git a/src/mame/psikyo/psikyo.h b/src/mame/psikyo/psikyo.h index e4b67347867..a91c2652aec 100644 --- a/src/mame/psikyo/psikyo.h +++ b/src/mame/psikyo/psikyo.h @@ -129,8 +129,8 @@ class psikyo_state : public driver_device template TILE_GET_INFO_MEMBER(get_tile_info); template TILEMAP_MAPPER_MEMBER(tile_scan); - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; DECLARE_VIDEO_START(sngkace); DECLARE_VIDEO_START(psikyo); u32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); @@ -153,18 +153,18 @@ class psikyo_state : public driver_device required_device m_palette; required_device m_spriteram; - void gunbird_map(address_map &map); - void gunbird_sound_io_map(address_map &map); - void gunbird_sound_map(address_map &map); - void psikyo_bootleg_map(address_map &map); - void psikyo_map(address_map &map); - void s1945_map(address_map &map); - void s1945_sound_io_map(address_map &map); - void s1945bl_oki_map(address_map &map); - void s1945n_map(address_map &map); - void sngkace_map(address_map &map); - void sngkace_sound_io_map(address_map &map); - void sngkace_sound_map(address_map &map); + void gunbird_map(address_map &map) ATTR_COLD; + void gunbird_sound_io_map(address_map &map) ATTR_COLD; + void gunbird_sound_map(address_map &map) ATTR_COLD; + void psikyo_bootleg_map(address_map &map) ATTR_COLD; + void psikyo_map(address_map &map) ATTR_COLD; + void s1945_map(address_map &map) ATTR_COLD; + void s1945_sound_io_map(address_map &map) ATTR_COLD; + void s1945bl_oki_map(address_map &map) ATTR_COLD; + void s1945n_map(address_map &map) ATTR_COLD; + void sngkace_map(address_map &map) ATTR_COLD; + void sngkace_sound_io_map(address_map &map) ATTR_COLD; + void sngkace_sound_map(address_map &map) ATTR_COLD; }; #endif // MAME_PSIKYO_PSIKYO_H diff --git a/src/mame/psikyo/psikyo4.h b/src/mame/psikyo/psikyo4.h index ad146997661..4df3d57dbdc 100644 --- a/src/mame/psikyo/psikyo4.h +++ b/src/mame/psikyo/psikyo4.h @@ -73,12 +73,12 @@ class psikyo4_state : public driver_device void ymf_bank_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); void io_select_w(uint8_t data); void eeprom_w(offs_t offset, uint8_t data, uint8_t mem_mask = ~0); - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; template uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); INTERRUPT_GEN_MEMBER(interrupt); void draw_sprites(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, uint32_t scr); - void ps4_map(address_map &map); - void ps4_ymf_map(address_map &map); + void ps4_map(address_map &map) ATTR_COLD; + void ps4_ymf_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/psikyo/psikyosh.h b/src/mame/psikyo/psikyosh.h index 692170a8ef2..10089c6dd2d 100644 --- a/src/mame/psikyo/psikyosh.h +++ b/src/mame/psikyo/psikyosh.h @@ -49,8 +49,8 @@ class psikyosh_state : public driver_device void init_s1945iiibl(); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: /* memory pointers */ @@ -126,11 +126,11 @@ class psikyosh_state : public driver_device void psikyosh_drawgfxzoom(bitmap_rgb32 &dest_bmp, const rectangle &clip, gfx_element *gfx, u32 const code, u16 const color, u8 const flipx, u8 const flipy, s32 const offsx, s32 const offsy, s16 const alpha, u32 const zoomx, u32 const zoomy, u8 const wide, u8 const high, u16 const z); - void ps3v1_map(address_map &map); - void ps5_map(address_map &map); - void ps5_mahjong_map(address_map &map); - void s1945iiibl_map(address_map &map); - void s1945iiibla_map(address_map &map); + void ps3v1_map(address_map &map) ATTR_COLD; + void ps5_map(address_map &map) ATTR_COLD; + void ps5_mahjong_map(address_map &map) ATTR_COLD; + void s1945iiibl_map(address_map &map) ATTR_COLD; + void s1945iiibla_map(address_map &map) ATTR_COLD; }; #endif // MAME_PSIKYO_PSIKYOSH_H diff --git a/src/mame/psion/etna.h b/src/mame/psion/etna.h index e020c25dcf5..0c153e4835d 100644 --- a/src/mame/psion/etna.h +++ b/src/mame/psion/etna.h @@ -31,8 +31,8 @@ class etna_device : public device_t private: // 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; enum { diff --git a/src/mame/psion/psion.h b/src/mame/psion/psion.h index 42941d87a42..c77f6b134fe 100644 --- a/src/mame/psion/psion.h +++ b/src/mame/psion/psion.h @@ -70,8 +70,8 @@ class psion_state : public driver_device required_ioport_array<7> m_kb_lines; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; void nvram_init(nvram_device &nvram, void *data, size_t size); uint8_t kb_read(); @@ -88,12 +88,12 @@ class psion_state : public driver_device TIMER_DEVICE_CALLBACK_MEMBER(nmi_timer); HD44780_PIXEL_UPDATE(lz_pixel_update); - void psion_int_reg(address_map &map); - void psioncm_mem(address_map &map); - void psionla_mem(address_map &map); - void psionlam_mem(address_map &map); - void psionlz_mem(address_map &map); - void psionp350_mem(address_map &map); + void psion_int_reg(address_map &map) ATTR_COLD; + void psioncm_mem(address_map &map) ATTR_COLD; + void psionla_mem(address_map &map) ATTR_COLD; + void psionlam_mem(address_map &map) ATTR_COLD; + void psionlz_mem(address_map &map) ATTR_COLD; + void psionp350_mem(address_map &map) ATTR_COLD; }; @@ -107,14 +107,14 @@ class psion1_state : public psion_state void psion1(machine_config &config); private: - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; uint8_t reset_kb_counter_r(); uint8_t inc_kb_counter_r(); uint8_t switchoff_r(); HD44780_PIXEL_UPDATE(psion1_pixel_update); - void psion1_mem(address_map &map); + void psion1_mem(address_map &map) ATTR_COLD; }; #endif // MAME_PSION_PSION_H diff --git a/src/mame/psion/psion3.cpp b/src/mame/psion/psion3.cpp index 00d9c1803bc..af4bca25dea 100644 --- a/src/mame/psion/psion3.cpp +++ b/src/mame/psion/psion3.cpp @@ -53,8 +53,8 @@ class psion3_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(key_on); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; @@ -71,9 +71,9 @@ class psion3_state : public driver_device void palette_init(palette_device &palette); - void mem_map(address_map &map); - void io_map(address_map &map); - void asic1_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; + void asic1_map(address_map &map) ATTR_COLD; uint8_t port_data_r(); void port_data_w(uint8_t data); diff --git a/src/mame/psion/psion3a.cpp b/src/mame/psion/psion3a.cpp index d27b3bb17b9..4018d3b7506 100644 --- a/src/mame/psion/psion3a.cpp +++ b/src/mame/psion/psion3a.cpp @@ -38,7 +38,7 @@ class psion3a_codec_device : public device_t, public device_sound_interface void pcm_in(uint8_t data); protected: - void device_start() override; + void device_start() override ATTR_COLD; void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; private: @@ -108,7 +108,7 @@ class psion3a_base_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(wakeup); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; required_device m_asic9; required_device m_ram; @@ -154,7 +154,7 @@ class psion3c_state : public psion3a_base_state void psion3c(machine_config &config); protected: - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; private: required_device m_condor; diff --git a/src/mame/psion/psion5.h b/src/mame/psion/psion5.h index 4ecb68ee59b..b2c81465092 100644 --- a/src/mame/psion/psion5.h +++ b/src/mame/psion/psion5.h @@ -44,8 +44,8 @@ class psion5mx_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(touch_down); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; TIMER_CALLBACK_MEMBER(update_timer1); TIMER_CALLBACK_MEMBER(update_timer2); @@ -169,7 +169,7 @@ class psion5mx_state : public driver_device PORTE }; - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); diff --git a/src/mame/psion/psion_pack.h b/src/mame/psion/psion_pack.h index 49ff7e0fd3d..27e1400de1a 100644 --- a/src/mame/psion/psion_pack.h +++ b/src/mame/psion/psion_pack.h @@ -49,7 +49,7 @@ class datapack_device : public device_t, void update(); // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void device_config_complete() override; // device_image_interface implementation diff --git a/src/mame/psion/psionhc.cpp b/src/mame/psion/psionhc.cpp index a842b7f957d..05e1deed1fb 100644 --- a/src/mame/psion/psionhc.cpp +++ b/src/mame/psion/psionhc.cpp @@ -54,8 +54,8 @@ class psionhc_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(key_on); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; @@ -72,9 +72,9 @@ class psionhc_state : public driver_device void palette_init(palette_device &palette); - void mem_map(address_map &map); - void io_map(address_map &map); - void asic1_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; + void asic1_map(address_map &map) ATTR_COLD; uint8_t port_data_r(); void port_data_w(uint8_t data); diff --git a/src/mame/psion/siena.cpp b/src/mame/psion/siena.cpp index 668309f35f4..6f76729e1d4 100644 --- a/src/mame/psion/siena.cpp +++ b/src/mame/psion/siena.cpp @@ -43,8 +43,8 @@ class siena_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(wakeup); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_asic9; diff --git a/src/mame/psion/workabout.cpp b/src/mame/psion/workabout.cpp index e949320876d..a2b5a1f6694 100644 --- a/src/mame/psion/workabout.cpp +++ b/src/mame/psion/workabout.cpp @@ -48,8 +48,8 @@ class workabout_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(wakeup); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_asic9; diff --git a/src/mame/quantel/dpb7000.cpp b/src/mame/quantel/dpb7000.cpp index ba7b9e22d1f..5b103c50dc4 100644 --- a/src/mame/quantel/dpb7000.cpp +++ b/src/mame/quantel/dpb7000.cpp @@ -142,20 +142,20 @@ class dpb7000_state : public driver_device //DECLARE_INPUT_CHANGED_MEMBER(pen_prox_changed); private: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; template uint32_t store_debug_screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); uint32_t stencil_debug_screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); uint32_t brush_debug_screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); uint32_t combined_screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void main_map(address_map &map); - void fddcpu_map(address_map &map); - void keybcpu_map(address_map &map); - void tds_cpu_map(address_map &map); - void tablet_program_map(address_map &map); - void tablet_data_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void fddcpu_map(address_map &map) ATTR_COLD; + void keybcpu_map(address_map &map) ATTR_COLD; + void tds_cpu_map(address_map &map) ATTR_COLD; + void tablet_program_map(address_map &map) ATTR_COLD; + void tablet_data_map(address_map &map) ATTR_COLD; void csr_w(uint8_t data); uint8_t csr_r(); diff --git a/src/mame/quantel/harriet.cpp b/src/mame/quantel/harriet.cpp index 1b527f2fa44..c6750a01e04 100644 --- a/src/mame/quantel/harriet.cpp +++ b/src/mame/quantel/harriet.cpp @@ -36,10 +36,10 @@ class harriet_state : public driver_device uint8_t zpram_r(offs_t offset); void zpram_w(offs_t offset, uint8_t data); - void harriet_map(address_map &map); + void harriet_map(address_map &map) ATTR_COLD; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; required_device m_maincpu; std::unique_ptr m_zpram_data; diff --git a/src/mame/qume/qvt102.cpp b/src/mame/qume/qvt102.cpp index ac7a919220b..39f40860024 100644 --- a/src/mame/qume/qvt102.cpp +++ b/src/mame/qume/qvt102.cpp @@ -79,8 +79,8 @@ class qvt102_state : public driver_device void qvt102(machine_config &config); protected: - void machine_start() override; - void machine_reset() override; + void machine_start() override ATTR_COLD; + void machine_reset() override ATTR_COLD; private: required_device m_maincpu; @@ -101,7 +101,7 @@ class qvt102_state : public driver_device required_shared_ptr m_vram; required_region_ptr m_char_rom; - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; MC6845_UPDATE_ROW(crtc_update_row); diff --git a/src/mame/qume/qvt103.cpp b/src/mame/qume/qvt103.cpp index cdc57772140..96ce33a2fa4 100644 --- a/src/mame/qume/qvt103.cpp +++ b/src/mame/qume/qvt103.cpp @@ -34,8 +34,8 @@ class qvt103_state : public driver_device private: u32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void io_map(address_map &map); - void mem_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_region_ptr m_p_chargen; diff --git a/src/mame/qume/qvt190.cpp b/src/mame/qume/qvt190.cpp index 03adf47fdd5..7ff15c31e16 100644 --- a/src/mame/qume/qvt190.cpp +++ b/src/mame/qume/qvt190.cpp @@ -45,7 +45,7 @@ class qvt190_state : public driver_device private: MC6845_UPDATE_ROW(update_row); - void qvt190_mem_map(address_map &map); + void qvt190_mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_palette; diff --git a/src/mame/qume/qvt201.cpp b/src/mame/qume/qvt201.cpp index 05f1f7f47ac..b7f3d92a004 100644 --- a/src/mame/qume/qvt201.cpp +++ b/src/mame/qume/qvt201.cpp @@ -43,7 +43,7 @@ class qvt201_state : public driver_device uint8_t keyboard_r(); void duart_out_w(uint8_t data); - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_mainnmi; diff --git a/src/mame/qume/qvt70.cpp b/src/mame/qume/qvt70.cpp index b72ce6e4894..5a8ebe3d8e5 100644 --- a/src/mame/qume/qvt70.cpp +++ b/src/mame/qume/qvt70.cpp @@ -59,8 +59,8 @@ class qvt70_state : public driver_device void qvt70(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; @@ -68,8 +68,8 @@ class qvt70_state : public driver_device required_memory_bank_array<2> m_rambank; required_device m_gfxdecode; - void mem_map(address_map &map); - void io_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); void vblank_w(int state); diff --git a/src/mame/ramtek/hitme.h b/src/mame/ramtek/hitme.h index 66e865a2e9c..e1fa98b17a9 100644 --- a/src/mame/ramtek/hitme.h +++ b/src/mame/ramtek/hitme.h @@ -52,9 +52,9 @@ class hitme_state : public driver_device void output_port_0_w(uint8_t data); void output_port_1_w(uint8_t data); TILE_GET_INFO_MEMBER(get_hitme_tile_info); - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; DECLARE_VIDEO_START(barricad); uint32_t screen_update_hitme(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); uint32_t screen_update_barricad(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); @@ -64,8 +64,8 @@ class hitme_state : public driver_device required_device m_discrete; required_device m_gfxdecode; required_device m_screen; - void hitme_map(address_map &map); - void hitme_portmap(address_map &map); + void hitme_map(address_map &map) ATTR_COLD; + void hitme_portmap(address_map &map) ATTR_COLD; }; diff --git a/src/mame/ramtek/m79amb.cpp b/src/mame/ramtek/m79amb.cpp index ef691325d7b..0c967fc5d7a 100644 --- a/src/mame/ramtek/m79amb.cpp +++ b/src/mame/ramtek/m79amb.cpp @@ -90,7 +90,7 @@ class m79amb_state : public driver_device void init_m79amb(); protected: - void machine_start() override; + void machine_start() override ATTR_COLD; private: required_shared_ptr m_videoram; @@ -115,7 +115,7 @@ class m79amb_state : public driver_device uint8_t inta_r(); uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/ramtek/ramtek.cpp b/src/mame/ramtek/ramtek.cpp index c1d90b33485..d1bec88a444 100644 --- a/src/mame/ramtek/ramtek.cpp +++ b/src/mame/ramtek/ramtek.cpp @@ -79,10 +79,10 @@ class ramtek_state : public driver_device required_device m_video; // driver_device overrides - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; }; diff --git a/src/mame/ramtek/starcrus.h b/src/mame/ramtek/starcrus.h index a227a987588..ebd045002a2 100644 --- a/src/mame/ramtek/starcrus.h +++ b/src/mame/ramtek/starcrus.h @@ -41,8 +41,8 @@ class starcrus_state : public driver_device void proj_parm_2_w(uint8_t data); uint8_t coll_det_r(); - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; required_device m_maincpu; required_device m_gfxdecode; @@ -77,8 +77,8 @@ class starcrus_state : public driver_device int collision_check_s1p1p2(); int collision_check_s2p1p2(); - void starcrus_io_map(address_map &map); - void starcrus_map(address_map &map); + void starcrus_io_map(address_map &map) ATTR_COLD; + void starcrus_map(address_map &map) ATTR_COLD; required_device_array m_explode; required_device_array m_launch; diff --git a/src/mame/rare/btoads.cpp b/src/mame/rare/btoads.cpp index 11d70276292..f27536c7d5a 100644 --- a/src/mame/rare/btoads.cpp +++ b/src/mame/rare/btoads.cpp @@ -47,8 +47,8 @@ class btoads_state : public driver_device protected: // driver_device overrides - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: // shared pointers @@ -113,9 +113,9 @@ class btoads_state : public driver_device TMS340X0_FROM_SHIFTREG_CB_MEMBER(from_shiftreg); TMS340X0_SCANLINE_RGB32_CB_MEMBER(scanline_update); - void main_map(address_map &map); - void sound_io_map(address_map &map); - void sound_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_io_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/rare/kinst.cpp b/src/mame/rare/kinst.cpp index 8238d0c89be..dda8df6c4ee 100644 --- a/src/mame/rare/kinst.cpp +++ b/src/mame/rare/kinst.cpp @@ -227,11 +227,11 @@ class kinst_state : public driver_device required_device m_dcs; required_device m_palette; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; - void kinst_map(address_map &map); - void kinst2_map(address_map &map); + void kinst_map(address_map &map) ATTR_COLD; + void kinst2_map(address_map &map) ATTR_COLD; uint32_t ide_r(offs_t offset, uint32_t mem_mask = ~0); void ide_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0); @@ -270,9 +270,9 @@ class kinst2uk_state : public kinst_state void kinst2uk(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; - void kinst2uk_map(address_map &map); + void kinst2uk_map(address_map &map) ATTR_COLD; uint32_t cpld_r(offs_t offset, uint32_t mem_mask); void cpld_w(offs_t offset, uint32_t data, uint32_t mem_mask); diff --git a/src/mame/rare/xtheball.cpp b/src/mame/rare/xtheball.cpp index 8c1312e3ed0..4d6f04599ba 100644 --- a/src/mame/rare/xtheball.cpp +++ b/src/mame/rare/xtheball.cpp @@ -57,12 +57,12 @@ class xtheball_state : public driver_device uint16_t analogx_r(); uint16_t analogy_watchdog_r(); - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; TMS340X0_TO_SHIFTREG_CB_MEMBER(to_shiftreg); TMS340X0_FROM_SHIFTREG_CB_MEMBER(from_shiftreg); TMS340X0_SCANLINE_RGB32_CB_MEMBER(scanline_update); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/rca/microkit.cpp b/src/mame/rca/microkit.cpp index 8fd767c089e..5acbfe0d9d3 100644 --- a/src/mame/rca/microkit.cpp +++ b/src/mame/rca/microkit.cpp @@ -51,11 +51,11 @@ class microkit_state : public driver_device void ram_w(offs_t offset, uint8_t data); uint8_t ram_r(offs_t offset); - void microkit_io(address_map &map); - void microkit_mem(address_map &map); + void microkit_io(address_map &map) ATTR_COLD; + void microkit_mem(address_map &map) ATTR_COLD; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; std::unique_ptr m_ram; uint8_t m_resetcnt = 0U; bool m_a15 = 1; diff --git a/src/mame/rca/studio2.cpp b/src/mame/rca/studio2.cpp index 0a66079b7ae..290366ae369 100644 --- a/src/mame/rca/studio2.cpp +++ b/src/mame/rca/studio2.cpp @@ -264,8 +264,8 @@ class studio2_state : public driver_device required_ioport m_b; required_device m_screen; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; uint8_t dispon_r(); void keylatch_w(uint8_t data); @@ -279,8 +279,8 @@ class studio2_state : public driver_device /* keyboard state */ uint8_t m_keylatch = 0; - void studio2_io_map(address_map &map); - void studio2_map(address_map &map); + void studio2_io_map(address_map &map) ATTR_COLD; + void studio2_map(address_map &map) ATTR_COLD; }; class visicom_state : public studio2_state @@ -300,11 +300,11 @@ class visicom_state : public studio2_state required_shared_ptr m_color0_ram; required_shared_ptr m_color1_ram; - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; void dma_w(offs_t offset, uint8_t data); - void visicom_io_map(address_map &map); - void visicom_map(address_map &map); + void visicom_io_map(address_map &map) ATTR_COLD; + void visicom_map(address_map &map) ATTR_COLD; }; class mpt02_state : public studio2_state @@ -321,8 +321,8 @@ class mpt02_state : public studio2_state private: required_device m_cti; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; void dma_w(offs_t offset, uint8_t data); int rdata_r(); @@ -332,8 +332,8 @@ class mpt02_state : public studio2_state /* video state */ required_shared_ptr m_color_ram; uint8_t m_color = 0; - void mpt02_io_map(address_map &map); - void mpt02_map(address_map &map); + void mpt02_io_map(address_map &map) ATTR_COLD; + void mpt02_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/rca/vip.h b/src/mame/rca/vip.h index 9bc76a509f3..104e7250823 100644 --- a/src/mame/rca/vip.h +++ b/src/mame/rca/vip.h @@ -88,11 +88,11 @@ class vip_state : public driver_device DECLARE_QUICKLOAD_LOAD_MEMBER(quickload_cb); - void vip_io(address_map &map); - void vip_mem(address_map &map); + void vip_io(address_map &map) ATTR_COLD; + void vip_mem(address_map &map) ATTR_COLD; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; required_device m_maincpu; required_device m_vdc; diff --git a/src/mame/recfranco/rfjailbrk.cpp b/src/mame/recfranco/rfjailbrk.cpp index f5af1ac4f3e..442c548c857 100644 --- a/src/mame/recfranco/rfjailbrk.cpp +++ b/src/mame/recfranco/rfjailbrk.cpp @@ -65,7 +65,7 @@ class rfjailbrk_state : public driver_device void rfjailbrk(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_maincpu; diff --git a/src/mame/recfranco/rfslots8085.cpp b/src/mame/recfranco/rfslots8085.cpp index 25729c8fa5e..aa31ade00b0 100644 --- a/src/mame/recfranco/rfslots8085.cpp +++ b/src/mame/recfranco/rfslots8085.cpp @@ -158,13 +158,13 @@ class rfslots8085_state : public driver_device int reel_opto_r(); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: - void main_io_map(address_map &map); - void main_map(address_map &map); - void sound_io_map(address_map &map); - void sound_map(address_map &map); + void main_io_map(address_map &map) ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; + void sound_io_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; // Main MCU Interface u8 sid_r(); diff --git a/src/mame/recfranco/rfslotsmcs48.cpp b/src/mame/recfranco/rfslotsmcs48.cpp index 40dcd01aa67..7a101d21c84 100644 --- a/src/mame/recfranco/rfslotsmcs48.cpp +++ b/src/mame/recfranco/rfslotsmcs48.cpp @@ -89,7 +89,7 @@ class rfslotsmcs48_state : public driver_device void babyfrts(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; memory_share_creator m_data_ram; required_device m_maincpu; @@ -104,11 +104,11 @@ class rfslotsmcs48_state : public driver_device output_finder<50> m_outbit; private: - void main_program_map(address_map &map); - void main_io_map(address_map &map); - void soundaj_program_map(address_map &map); - void soundbf_program_map(address_map &map); - void sound_io_map(address_map &map); + void main_program_map(address_map &map) ATTR_COLD; + void main_io_map(address_map &map) ATTR_COLD; + void soundaj_program_map(address_map &map) ATTR_COLD; + void soundbf_program_map(address_map &map) ATTR_COLD; + void sound_io_map(address_map &map) ATTR_COLD; // Main MCU Interface u8 main_io_r(offs_t offset); diff --git a/src/mame/recfranco/rfslotspcpent.cpp b/src/mame/recfranco/rfslotspcpent.cpp index 2fbf87fef0e..c93405787d6 100644 --- a/src/mame/recfranco/rfslotspcpent.cpp +++ b/src/mame/recfranco/rfslotspcpent.cpp @@ -213,7 +213,7 @@ class rfslotspcpent_state : public driver_device private: required_device m_maincpu; - void rfslotspcpent_map(address_map &map); + void rfslotspcpent_map(address_map &map) ATTR_COLD; }; void rfslotspcpent_state::rfslotspcpent_map(address_map &map) diff --git a/src/mame/regnecentralen/rc702.cpp b/src/mame/regnecentralen/rc702.cpp index d78e0015911..c8ad580af9a 100644 --- a/src/mame/regnecentralen/rc702.cpp +++ b/src/mame/regnecentralen/rc702.cpp @@ -67,8 +67,8 @@ class rc702_state : public driver_device void rc702(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: uint8_t memory_read_byte(offs_t offset); @@ -86,8 +86,8 @@ class rc702_state : public driver_device void rc702_palette(palette_device &palette) const; void kbd_put(u8 data); - void io_map(address_map &map); - void mem_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; bool m_q_state = false; bool m_qbar_state = false; diff --git a/src/mame/regnecentralen/rc759.cpp b/src/mame/regnecentralen/rc759.cpp index af3ffed5184..ec19b7994c2 100644 --- a/src/mame/regnecentralen/rc759.cpp +++ b/src/mame/regnecentralen/rc759.cpp @@ -77,8 +77,8 @@ class rc759_state : public driver_device void rc759(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; @@ -139,8 +139,8 @@ class rc759_state : public driver_device uint8_t irq_callback(); - void rc759_io(address_map &map); - void rc759_map(address_map &map); + void rc759_io(address_map &map) ATTR_COLD; + void rc759_map(address_map &map) ATTR_COLD; std::vector m_nvram_mem; diff --git a/src/mame/regnecentralen/rc759_kbd.h b/src/mame/regnecentralen/rc759_kbd.h index 9f0586aa2be..98b40a7b786 100644 --- a/src/mame/regnecentralen/rc759_kbd.h +++ b/src/mame/regnecentralen/rc759_kbd.h @@ -34,9 +34,9 @@ class rc759_kbd_hle_device : public device_t, protected device_matrix_keyboard_i protected: // device_t overrides - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; - virtual void device_reset() override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; // device_matrix_keyboard_interface overrides virtual void key_make(uint8_t row, uint8_t column) override; diff --git a/src/mame/rm/rm380z.h b/src/mame/rm/rm380z.h index 12f299e83d0..53fd3b4bea6 100644 --- a/src/mame/rm/rm380z.h +++ b/src/mame/rm/rm380z.h @@ -55,7 +55,7 @@ class rm380z_state : public driver_device void base_configure(machine_config &config); void fds_configure(); - void machine_reset() override; + void machine_reset() override ATTR_COLD; bool ports_enabled_high() const { return bool(m_port0 & 0x80); } bool ports_enabled_low() const { return !(m_port0 & 0x80); } @@ -83,8 +83,8 @@ class rm380z_state : public driver_device virtual void update_screen(bitmap_ind16 &bitmap) const = 0; uint32_t screen_update_rm380z(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void rm380z_io(address_map &map); - void rm380z_mem(address_map &map); + void rm380z_io(address_map &map) ATTR_COLD; + void rm380z_mem(address_map &map) ATTR_COLD; uint8_t m_port0 = 0; uint8_t m_port0_kbd = 0; @@ -115,7 +115,7 @@ class rm380z_state_cos34 : public rm380z_state void rm380z34d(machine_config &config) { rm380z34e(config); fds_configure(); } protected: - void machine_reset() override; + void machine_reset() override ATTR_COLD; void port_write(offs_t offset, uint8_t data) override; uint8_t port_read(offs_t offset) override; @@ -184,7 +184,7 @@ class rm380z_state_cos40 : public rm380z_state static inline constexpr int RM380Z_VIDEOMODE_40COL = 0x01; static inline constexpr int RM380Z_VIDEOMODE_80COL = 0x02; - void machine_reset() override; + void machine_reset() override ATTR_COLD; void port_write(offs_t offset, uint8_t data) override; uint8_t port_read(offs_t offset) override; @@ -227,7 +227,7 @@ class rm380z_state_cos40_hrg : public rm380z_state_cos40 DECLARE_INPUT_CHANGED_MEMBER(monitor_changed); protected: - void machine_reset() override; + void machine_reset() override ATTR_COLD; void port_write(offs_t offset, uint8_t data) override; uint8_t port_read(offs_t offset) override; @@ -277,13 +277,13 @@ class rm480z_state : public rm380z_state_cos40 void rm480za(machine_config &config) { rm480z(config); } protected: - void machine_reset() override; + void machine_reset() override ATTR_COLD; void update_screen(bitmap_ind16 &bitmap) const override; private: - void rm480z_io(address_map &map); - void rm480z_mem(address_map &map); + void rm480z_io(address_map &map) ATTR_COLD; + void rm480z_mem(address_map &map) ATTR_COLD; }; #endif // MAME_RM_RM380Z_H diff --git a/src/mame/rm/rmnimbus.h b/src/mame/rm/rmnimbus.h index 4fdaa599626..df7477797de 100644 --- a/src/mame/rm/rmnimbus.h +++ b/src/mame/rm/rmnimbus.h @@ -158,10 +158,10 @@ class rmnimbus_state : public driver_device void nimbus_mouse_js_w(uint8_t data); uint16_t nimbus_video_io_r(offs_t offset, uint16_t mem_mask = ~0); void nimbus_video_io_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; - virtual void video_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; + virtual void video_reset() override ATTR_COLD; uint32_t screen_update_nimbus(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void sio_interrupt(int state); void nimbus_fdc_intrq_w(int state); @@ -254,10 +254,10 @@ class rmnimbus_state : public driver_device bool m_voice_enabled = false; - void nimbus_io(address_map &map); - void nimbus_iocpu_io(address_map &map); - void nimbus_iocpu_mem(address_map &map); - void nimbus_mem(address_map &map); + void nimbus_io(address_map &map) ATTR_COLD; + void nimbus_iocpu_io(address_map &map) ATTR_COLD; + void nimbus_iocpu_mem(address_map &map) ATTR_COLD; + void nimbus_mem(address_map &map) ATTR_COLD; void decode_dssi_none(uint16_t ds, uint16_t si); void decode_dssi_generic(uint16_t ds, uint16_t si); diff --git a/src/mame/rm/rmnkbd.h b/src/mame/rm/rmnkbd.h index e70946a91fe..703168f9dd6 100644 --- a/src/mame/rm/rmnkbd.h +++ b/src/mame/rm/rmnkbd.h @@ -10,10 +10,10 @@ class rmnimbus_keyboard_device : public buffered_rs232_device<16U>, protected de { public: rmnimbus_keyboard_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; protected: - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; virtual void key_make(uint8_t row, uint8_t column) override; virtual void key_break(uint8_t row, uint8_t column) override; diff --git a/src/mame/robotron/a5105.cpp b/src/mame/robotron/a5105.cpp index cb29ffe9bb6..c44a63112ce 100644 --- a/src/mame/robotron/a5105.cpp +++ b/src/mame/robotron/a5105.cpp @@ -62,8 +62,8 @@ class a5105_state : public driver_device void a5105(machine_config &config); protected: - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: uint8_t a5105_memsel_r(); @@ -81,9 +81,9 @@ class a5105_state : public driver_device UPD7220_DISPLAY_PIXELS_MEMBER( hgdc_display_pixels ); UPD7220_DRAW_TEXT_LINE_MEMBER( hgdc_draw_text ); - void a5105_io(address_map &map); - void a5105_mem(address_map &map); - void upd7220_map(address_map &map); + void a5105_io(address_map &map) ATTR_COLD; + void a5105_mem(address_map &map) ATTR_COLD; + void upd7220_map(address_map &map) ATTR_COLD; uint8_t *m_ram_base = 0; uint8_t *m_rom_base = 0; diff --git a/src/mame/robotron/a51xx.cpp b/src/mame/robotron/a51xx.cpp index 6ab33a6d67d..a96281d6f5e 100644 --- a/src/mame/robotron/a51xx.cpp +++ b/src/mame/robotron/a51xx.cpp @@ -32,17 +32,17 @@ class a51xx_state : public driver_device void a5120(machine_config &config); private: - virtual void machine_reset() override; - virtual void machine_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; DECLARE_MACHINE_RESET(a5130); DECLARE_VIDEO_START(a5130); uint32_t screen_update_a5120(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); uint32_t screen_update_a5130(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); required_device m_maincpu; - void a5120_io(address_map &map); - void a5120_mem(address_map &map); - void a5130_io(address_map &map); - void a5130_mem(address_map &map); + void a5120_io(address_map &map) ATTR_COLD; + void a5120_mem(address_map &map) ATTR_COLD; + void a5130_io(address_map &map) ATTR_COLD; + void a5130_mem(address_map &map) ATTR_COLD; }; diff --git a/src/mame/robotron/a7150.cpp b/src/mame/robotron/a7150.cpp index 448eaaa35a7..796150de72e 100644 --- a/src/mame/robotron/a7150.cpp +++ b/src/mame/robotron/a7150.cpp @@ -64,8 +64,8 @@ class a7150_state : public driver_device void a7150(machine_config &config); protected: - virtual void machine_reset() override; - virtual void machine_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; private: void ppi_c_w(uint8_t data); @@ -79,8 +79,8 @@ class a7150_state : public driver_device required_device m_pic8259; required_device m_rs232; - void io_map(address_map &map); - void mem_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; u8 bus_pio_r(offs_t offset) { return m_bus->space(AS_IO).read_byte(offset); } void bus_pio_w(offs_t offset, u8 data) { m_bus->space(AS_IO).write_byte(offset, data); } diff --git a/src/mame/robotron/k1003.cpp b/src/mame/robotron/k1003.cpp index f8f04af0051..4eae5127689 100644 --- a/src/mame/robotron/k1003.cpp +++ b/src/mame/robotron/k1003.cpp @@ -53,14 +53,14 @@ class k1003_state : public driver_device void disp_2_w(uint8_t data); void seg_w(uint8_t data); - void io_map(address_map &map); - void mem_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; uint8_t m_disp_1 = 0U; uint8_t m_disp_2 = 0U; u8 m_digit = 0U; [[maybe_unused]] uint8_t bit_to_dec(uint8_t val); - void machine_start() override; + void machine_start() override ATTR_COLD; required_device m_maincpu; required_ioport_array<8> m_io_keyboard; output_finder<16> m_digits; diff --git a/src/mame/robotron/k8915.cpp b/src/mame/robotron/k8915.cpp index 378ef76a4f6..5ce10f47782 100644 --- a/src/mame/robotron/k8915.cpp +++ b/src/mame/robotron/k8915.cpp @@ -40,12 +40,12 @@ class k8915_state : public driver_device void k8915_a8_w(u8 data); uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void io_map(address_map &map); - void mem_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; u8 m_framecnt = 0U; - void machine_start() override; - void machine_reset() override; + void machine_start() override ATTR_COLD; + void machine_reset() override ATTR_COLD; required_device m_maincpu; required_region_ptr m_rom; required_shared_ptr m_ram; diff --git a/src/mame/robotron/rt1715.cpp b/src/mame/robotron/rt1715.cpp index a4a2898ba11..9f2ce06be63 100644 --- a/src/mame/robotron/rt1715.cpp +++ b/src/mame/robotron/rt1715.cpp @@ -94,13 +94,13 @@ class rt1715_state : public driver_device I8275_DRAW_CHARACTER_MEMBER(crtc_display_pixels); void crtc_drq_w(int state); - void k7658_io(address_map &map); - void k7658_mem(address_map &map); - void rt1715_base_io(address_map &map); - void rt1715_io(address_map &map); - void rt1715w_io(address_map &map); - void rt1715_mem(address_map &map); - void rt1715w_mem(address_map &map); + void k7658_io(address_map &map) ATTR_COLD; + void k7658_mem(address_map &map) ATTR_COLD; + void rt1715_base_io(address_map &map) ATTR_COLD; + void rt1715_io(address_map &map) ATTR_COLD; + void rt1715w_io(address_map &map) ATTR_COLD; + void rt1715_mem(address_map &map) ATTR_COLD; + void rt1715w_mem(address_map &map) ATTR_COLD; DECLARE_MACHINE_START(rt1715); DECLARE_MACHINE_RESET(rt1715); diff --git a/src/mame/robotron/z1013.cpp b/src/mame/robotron/z1013.cpp index 8546bd17769..67626d0220c 100644 --- a/src/mame/robotron/z1013.cpp +++ b/src/mame/robotron/z1013.cpp @@ -87,8 +87,8 @@ class z1013_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(clock_config_changed); protected: - virtual void machine_reset() override; - virtual void machine_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; private: void z1013_keyboard_w(uint8_t data); @@ -100,8 +100,8 @@ class z1013_state : public driver_device DECLARE_SNAPSHOT_LOAD_MEMBER(snapshot_cb); uint32_t screen_update_z1013(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void io_map(address_map &map); - void mem_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; uint8_t m_keyboard_line = 0U; bool m_keyboard_part = false; diff --git a/src/mame/robotron/z9001.cpp b/src/mame/robotron/z9001.cpp index 33d7230eb7d..fbafb4eb49b 100644 --- a/src/mame/robotron/z9001.cpp +++ b/src/mame/robotron/z9001.cpp @@ -78,13 +78,13 @@ class z9001_state : public driver_device TIMER_DEVICE_CALLBACK_MEMBER(timer_callback); uint32_t screen_update_z9001(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void io_map(address_map &map); - void mem_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; uint8_t m_framecnt = 0U; bool m_cassbit = 0; - virtual void machine_reset() override; - virtual void machine_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; memory_passthrough_handler m_rom_shadow_tap; required_device m_maincpu; required_region_ptr m_rom; diff --git a/src/mame/rockwell/aim65.h b/src/mame/rockwell/aim65.h index 1f5bf08ac60..26f842d6c90 100644 --- a/src/mame/rockwell/aim65.h +++ b/src/mame/rockwell/aim65.h @@ -68,7 +68,7 @@ class aim65_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(reset_button); private: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; void aim65_palette(palette_device &palette) const; void u1_pa_w(u8 data); @@ -94,7 +94,7 @@ class aim65_state : public driver_device std::pair load_cart(device_image_interface &image, generic_slot_device *slot, const char *slot_tag); - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; optional_device m_palette; uint8_t m_riot_port_a = 0U; diff --git a/src/mame/rockwell/aim65_40.cpp b/src/mame/rockwell/aim65_40.cpp index 896eb020e56..3b540cced49 100644 --- a/src/mame/rockwell/aim65_40.cpp +++ b/src/mame/rockwell/aim65_40.cpp @@ -95,7 +95,7 @@ class aim65_40_state : public driver_device void aim65_40(machine_config &config); private: - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/roland/alphajuno.cpp b/src/mame/roland/alphajuno.cpp index 85032d690e8..0d27ee43a12 100644 --- a/src/mame/roland/alphajuno.cpp +++ b/src/mame/roland/alphajuno.cpp @@ -36,17 +36,17 @@ class alphajuno_state : public driver_device void mks50(machine_config &config); protected: - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; private: HD44780_PIXEL_UPDATE(lcd_pixel_update); void lcd_w(offs_t offset, u8 data); - void prog_map(address_map &map); - void ajuno1_ext_map(address_map &map); - void ajuno2_ext_map(address_map &map); - void mks50_ext_map(address_map &map); + void prog_map(address_map &map) ATTR_COLD; + void ajuno1_ext_map(address_map &map) ATTR_COLD; + void ajuno2_ext_map(address_map &map) ATTR_COLD; + void mks50_ext_map(address_map &map) ATTR_COLD; void palette_init(palette_device &palette); diff --git a/src/mame/roland/boss_se70.cpp b/src/mame/roland/boss_se70.cpp index 5f814a7e48c..114228e2703 100644 --- a/src/mame/roland/boss_se70.cpp +++ b/src/mame/roland/boss_se70.cpp @@ -24,7 +24,7 @@ class boss_se70_state : public driver_device void se70(machine_config &config); private: - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; }; diff --git a/src/mame/roland/boss_sx700.cpp b/src/mame/roland/boss_sx700.cpp index c560dc4ee06..2ab0d446f0b 100644 --- a/src/mame/roland/boss_sx700.cpp +++ b/src/mame/roland/boss_sx700.cpp @@ -25,8 +25,8 @@ class boss_sx700_state : public driver_device void gx700(machine_config &config); private: - void sx700_map(address_map &map); - void gx700_map(address_map &map); + void sx700_map(address_map &map) ATTR_COLD; + void gx700_map(address_map &map) ATTR_COLD; required_device m_maincpu; }; diff --git a/src/mame/roland/bu3905.h b/src/mame/roland/bu3905.h index 4781832f7ff..3d4ba5f56ef 100644 --- a/src/mame/roland/bu3905.h +++ b/src/mame/roland/bu3905.h @@ -49,7 +49,7 @@ class bu3905_device : public device_t protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; }; // device type declaration diff --git a/src/mame/roland/juno106.cpp b/src/mame/roland/juno106.cpp index 0ae09334cc0..b351f68bfcc 100644 --- a/src/mame/roland/juno106.cpp +++ b/src/mame/roland/juno106.cpp @@ -32,7 +32,7 @@ class juno106_state : public driver_device void mks7(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: void cpu_latch_w(u8 data); @@ -43,9 +43,9 @@ class juno106_state : public driver_device void dcom_w(u8 data); void rhythm_w(offs_t offset, u8 data); - void main_map(address_map &map); - void mks7_main_map(address_map &map); - void module_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void mks7_main_map(address_map &map) ATTR_COLD; + void module_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_modulecpu; diff --git a/src/mame/roland/juno6.cpp b/src/mame/roland/juno6.cpp index 01ff3f22496..87e24779852 100644 --- a/src/mame/roland/juno6.cpp +++ b/src/mame/roland/juno6.cpp @@ -35,7 +35,7 @@ class juno6_state : public driver_device void juno6(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: u8 keyboard_r(); @@ -43,7 +43,7 @@ class juno6_state : public driver_device void db_w(u8 data); void p2_w(u8 data); - void ext_map(address_map &map); + void ext_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device_array m_pit; diff --git a/src/mame/roland/jx8p_synth.h b/src/mame/roland/jx8p_synth.h index 08aa2ed075c..e6c82534593 100644 --- a/src/mame/roland/jx8p_synth.h +++ b/src/mame/roland/jx8p_synth.h @@ -19,14 +19,14 @@ class jx8p_synth_device : public device_t protected: jx8p_synth_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 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; void prescale_w(u8 data); void adc_w(offs_t offset, u8 data); - void prog_map(address_map &map); - void ext_map(address_map &map); + void prog_map(address_map &map) ATTR_COLD; + void ext_map(address_map &map) ATTR_COLD; required_device m_synthcpu; required_device m_ramio; @@ -39,7 +39,7 @@ class superjx_synth_device : public jx8p_synth_device superjx_synth_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); protected: - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; DECLARE_DEVICE_TYPE(JX8P_SYNTH, jx8p_synth_device) diff --git a/src/mame/roland/mb62h195.h b/src/mame/roland/mb62h195.h index 9970ce4817d..1cb1cabf1a1 100644 --- a/src/mame/roland/mb62h195.h +++ b/src/mame/roland/mb62h195.h @@ -38,7 +38,7 @@ class mb62h195_device : public device_t protected: // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: // callback objects diff --git a/src/mame/roland/mb63h114.h b/src/mame/roland/mb63h114.h index c28abf014b4..b6bd99f4f2e 100644 --- a/src/mame/roland/mb63h114.h +++ b/src/mame/roland/mb63h114.h @@ -28,8 +28,8 @@ class mb63h114_device : public device_t protected: // device-specific 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; private: // TODO diff --git a/src/mame/roland/mb63h149.h b/src/mame/roland/mb63h149.h index 6a651d5d583..80e23823828 100644 --- a/src/mame/roland/mb63h149.h +++ b/src/mame/roland/mb63h149.h @@ -34,8 +34,8 @@ class mb63h149_device : public device_t mb63h149_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 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; private: // callback objects diff --git a/src/mame/roland/mb87013.h b/src/mame/roland/mb87013.h index 9f37dd51061..40b65844a84 100644 --- a/src/mame/roland/mb87013.h +++ b/src/mame/roland/mb87013.h @@ -68,8 +68,8 @@ class mb87013_device : public device_t protected: // 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; private: // callback objects diff --git a/src/mame/roland/pg200.h b/src/mame/roland/pg200.h index d50738cab5d..91fc7b99d25 100644 --- a/src/mame/roland/pg200.h +++ b/src/mame/roland/pg200.h @@ -13,9 +13,9 @@ class pg200_device : public device_t pg200_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock = 0); protected: - virtual void device_start() 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_add_mconfig(machine_config &config) override ATTR_COLD; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; private: required_device m_pgcpu; diff --git a/src/mame/roland/roland_cm32p.cpp b/src/mame/roland/roland_cm32p.cpp index 81f6882cd69..892a0854711 100644 --- a/src/mame/roland/roland_cm32p.cpp +++ b/src/mame/roland/roland_cm32p.cpp @@ -313,8 +313,8 @@ class cm32p_state : public driver_device void init_cm32p(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device cpu; @@ -349,7 +349,7 @@ class cm32p_state : public driver_device DECLARE_DEVICE_IMAGE_LOAD_MEMBER(card_load); DECLARE_DEVICE_IMAGE_UNLOAD_MEMBER(card_unload); - void cm32p_map(address_map &map); + void cm32p_map(address_map &map) ATTR_COLD; void descramble_rom_internal(u8* dst, const u8* src); void descramble_rom_external(u8* dst, const u8* src); diff --git a/src/mame/roland/roland_d10.cpp b/src/mame/roland/roland_d10.cpp index c0151e8162a..4d820338b31 100644 --- a/src/mame/roland/roland_d10.cpp +++ b/src/mame/roland/roland_d10.cpp @@ -73,8 +73,8 @@ class roland_d10_state : public driver_device void d110(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: void bank_w(uint8_t data); @@ -91,10 +91,10 @@ class roland_d10_state : public driver_device void d10_palette(palette_device &palette) const; uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void d10_map(address_map &map); - void d10_bank_map(address_map &map); - void d110_map(address_map &map); - void d110_bank_map(address_map &map); + void d10_map(address_map &map) ATTR_COLD; + void d10_bank_map(address_map &map) ATTR_COLD; + void d110_map(address_map &map) ATTR_COLD; + void d110_bank_map(address_map &map) ATTR_COLD; uint8_t m_lcd_data_buffer[256]{}; int m_lcd_data_buffer_pos = 0; diff --git a/src/mame/roland/roland_d50.cpp b/src/mame/roland/roland_d50.cpp index 3412c714957..89e896ad222 100644 --- a/src/mame/roland/roland_d50.cpp +++ b/src/mame/roland/roland_d50.cpp @@ -29,9 +29,9 @@ class roland_d50_state : public driver_device void d550(machine_config &config); private: - void d50_mem_map(address_map &map); - void d550_mem_map(address_map &map); - void eram_map(address_map &map); + void d50_mem_map(address_map &map) ATTR_COLD; + void d550_mem_map(address_map &map) ATTR_COLD; + void eram_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_eram; diff --git a/src/mame/roland/roland_d70.cpp b/src/mame/roland/roland_d70.cpp index 7f73a6f4813..cc0c1d9f453 100644 --- a/src/mame/roland/roland_d70.cpp +++ b/src/mame/roland/roland_d70.cpp @@ -161,10 +161,10 @@ class roland_d70_state : public driver_device { void init_d70(); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: - void lcd_map(address_map &map); + void lcd_map(address_map &map) ATTR_COLD; void lcd_palette(palette_device &palette) const; void bank_w(u8 data); @@ -191,7 +191,7 @@ class roland_d70_state : public driver_device { void midi_in_w(int state); - void d70_map(address_map &map); + void d70_map(address_map &map) ATTR_COLD; void descramble_rom_internal(u8 *dst, const u8 *src); void descramble_rom_external(u8 *dst, const u8 *src); diff --git a/src/mame/roland/roland_jd800.cpp b/src/mame/roland/roland_jd800.cpp index aa001c4537b..35335f802f3 100644 --- a/src/mame/roland/roland_jd800.cpp +++ b/src/mame/roland/roland_jd800.cpp @@ -28,7 +28,7 @@ class roland_jd800_state : public driver_device void jd800(machine_config &config); private: - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; }; diff --git a/src/mame/roland/roland_jv80.cpp b/src/mame/roland/roland_jv80.cpp index 17055f06876..c34992b73ed 100644 --- a/src/mame/roland/roland_jv80.cpp +++ b/src/mame/roland/roland_jv80.cpp @@ -28,7 +28,7 @@ class roland_jv80_state : public driver_device void jv880(machine_config &config); private: - void jv880_mem_map(address_map &map); + void jv880_mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_pcm; @@ -73,7 +73,7 @@ class roland_rd500_state : public driver_device void rd500(machine_config &config); private: - void rd500_mem_map(address_map &map); + void rd500_mem_map(address_map &map) ATTR_COLD; u8 keyscan_r(offs_t offset); void keyscan_w(offs_t offset, u8 data); diff --git a/src/mame/roland/roland_jx3p.cpp b/src/mame/roland/roland_jx3p.cpp index b38a747bf13..bf869208478 100644 --- a/src/mame/roland/roland_jx3p.cpp +++ b/src/mame/roland/roland_jx3p.cpp @@ -45,12 +45,12 @@ class roland_jx3p_state : public driver_device void if_anlg_mux_w(u8 data); - void prog_map(address_map &map); - void common_ext_map(address_map &map); - void jk3p_ext_map(address_map &map); - void mks30_ext_map(address_map &map); - void if_prog_map(address_map &map); - void if_ext_map(address_map &map); + void prog_map(address_map &map) ATTR_COLD; + void common_ext_map(address_map &map) ATTR_COLD; + void jk3p_ext_map(address_map &map) ATTR_COLD; + void mks30_ext_map(address_map &map) ATTR_COLD; + void if_prog_map(address_map &map) ATTR_COLD; + void if_ext_map(address_map &map) ATTR_COLD; required_device m_maincpu; optional_device m_ifcpu; diff --git a/src/mame/roland/roland_jx8p.cpp b/src/mame/roland/roland_jx8p.cpp index 302ff2087a1..4b964c3743d 100644 --- a/src/mame/roland/roland_jx8p.cpp +++ b/src/mame/roland/roland_jx8p.cpp @@ -41,8 +41,8 @@ class roland_jx8p_state : public driver_device u8 switches_r(offs_t offset); void leds_w(u8 data); - void jx8p_assigner_map(address_map &map); - void superjx_assigner_map(address_map &map); + void jx8p_assigner_map(address_map &map) ATTR_COLD; + void superjx_assigner_map(address_map &map) ATTR_COLD; required_device m_assignercpu; required_ioport_array<8> m_sw_scan; diff --git a/src/mame/roland/roland_mc50.cpp b/src/mame/roland/roland_mc50.cpp index 0db102b6398..3b8482d4a0c 100644 --- a/src/mame/roland/roland_mc50.cpp +++ b/src/mame/roland/roland_mc50.cpp @@ -31,9 +31,9 @@ class roland_mc50_state : public driver_device void mc50mk2(machine_config &config); private: - void mem_map_mc300(address_map &map); - void mem_map_mc50(address_map &map); - void io_map(address_map &map); + void mem_map_mc300(address_map &map) ATTR_COLD; + void mem_map_mc50(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; required_device m_mpu; optional_device m_wdfdc; diff --git a/src/mame/roland/roland_mt32.cpp b/src/mame/roland/roland_mt32.cpp index 062ecd2fab9..4cdef38f8e8 100644 --- a/src/mame/roland/roland_mt32.cpp +++ b/src/mame/roland/roland_mt32.cpp @@ -200,8 +200,8 @@ class mt32_state : public driver_device void mt32(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device cpu; @@ -225,7 +225,7 @@ class mt32_state : public driver_device TIMER_DEVICE_CALLBACK_MEMBER(midi_timer_cb); TIMER_DEVICE_CALLBACK_MEMBER(samples_timer_cb); - void mt32_map(address_map &map); + void mt32_map(address_map &map) ATTR_COLD; uint8_t lcd_data_buffer[256]{}; int lcd_data_buffer_pos = 0; diff --git a/src/mame/roland/roland_mt80s.cpp b/src/mame/roland/roland_mt80s.cpp index 142424bf6b7..6a502c36dcd 100644 --- a/src/mame/roland/roland_mt80s.cpp +++ b/src/mame/roland/roland_mt80s.cpp @@ -27,7 +27,7 @@ class roland_mt80s_state : public driver_device void mt80s(machine_config &config); private: - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; //required_device m_hdfdc; diff --git a/src/mame/roland/roland_pr100.cpp b/src/mame/roland/roland_pr100.cpp index 3f98b40c546..8e27b4f6059 100644 --- a/src/mame/roland/roland_pr100.cpp +++ b/src/mame/roland/roland_pr100.cpp @@ -39,14 +39,14 @@ class roland_pr100_state : public driver_device void pr100(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: u8 port9x_r(offs_t offset); void port9x_w(offs_t offset, u8 data); - void mem_map(address_map &map); - void io_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_eeprom; diff --git a/src/mame/roland/roland_r8.cpp b/src/mame/roland/roland_r8.cpp index 064259cce44..64bbe92bf07 100644 --- a/src/mame/roland/roland_r8.cpp +++ b/src/mame/roland/roland_r8.cpp @@ -115,8 +115,8 @@ class roland_r8_base_state : public driver_device void init_r8(); protected: - void mk1_map(address_map &map); - void mk2_map(address_map &map); + void mk1_map(address_map &map) ATTR_COLD; + void mk2_map(address_map &map) ATTR_COLD; std::pair pcmrom_load(generic_slot_device* pcmcard, int card_id, device_image_interface &image); void pcmrom_unload(int card_id); diff --git a/src/mame/roland/roland_ra30.cpp b/src/mame/roland/roland_ra30.cpp index 3fcf4de2b73..8c911d34824 100644 --- a/src/mame/roland/roland_ra30.cpp +++ b/src/mame/roland/roland_ra30.cpp @@ -24,7 +24,7 @@ class roland_ra30_state : public driver_device void ra30(machine_config &config); private: - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; }; diff --git a/src/mame/roland/roland_s10.cpp b/src/mame/roland/roland_s10.cpp index fcc4660c2e2..bb566a2a178 100644 --- a/src/mame/roland/roland_s10.cpp +++ b/src/mame/roland/roland_s10.cpp @@ -53,9 +53,9 @@ class roland_s10_state : public driver_device void sw_scan_w(offs_t offset, u8 data); void led_latch_w(u8 data); - void prog_map(address_map &map); - void s10_ext_map(address_map &map); - void mks100_ext_map(address_map &map); + void prog_map(address_map &map) ATTR_COLD; + void s10_ext_map(address_map &map) ATTR_COLD; + void mks100_ext_map(address_map &map) ATTR_COLD; void palette_init(palette_device &palette); @@ -84,7 +84,7 @@ class roland_s220_state : public roland_s10_state void led_latch1_w(u8 data); void led_latch2_w(u8 data); - void s220_ext_map(address_map &map); + void s220_ext_map(address_map &map) ATTR_COLD; required_device m_outctrl; }; diff --git a/src/mame/roland/roland_s50.cpp b/src/mame/roland/roland_s50.cpp index f8ceb851e44..4f9724cd5b0 100644 --- a/src/mame/roland/roland_s50.cpp +++ b/src/mame/roland/roland_s50.cpp @@ -54,7 +54,7 @@ class roland_s50_base_state : public driver_device TIMER_DEVICE_CALLBACK_MEMBER(vdp_timer); - void vram_map(address_map &map); + void vram_map(address_map &map) ATTR_COLD; protected: required_device m_maincpu; @@ -82,8 +82,8 @@ class roland_s50_state : public roland_s50_base_state void s50(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; void p2_w(u8 data); void floppy_select_w(u8 data); @@ -91,7 +91,7 @@ class roland_s50_state : public roland_s50_base_state private: void ioga_out_w(u8 data); - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; protected: required_memory_bank m_sram_bank; @@ -113,12 +113,12 @@ class roland_s550_state : public roland_s50_state void s550(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: void sram_bank_w(u8 data); - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; required_memory_bank m_lowram_bank; memory_view m_lowmem_view; @@ -143,8 +143,8 @@ class roland_w30_state : public roland_s50_base_state [[maybe_unused]] void s330(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: u8 psram_bank_r(); @@ -152,10 +152,10 @@ class roland_w30_state : public roland_s50_base_state void floppy_select_w(u8 data); u8 unknown_status_r(); - void w30_mem_map(address_map &map); - [[maybe_unused]] void s330_mem_map(address_map &map); - void psram1_map(address_map &map); - void psram2_map(address_map &map); + void w30_mem_map(address_map &map) ATTR_COLD; + [[maybe_unused]] void s330_mem_map(address_map &map) ATTR_COLD; + void psram1_map(address_map &map) ATTR_COLD; + void psram2_map(address_map &map) ATTR_COLD; memory_view m_bank1_view; memory_view m_bank2_view; diff --git a/src/mame/roland/roland_sc55.cpp b/src/mame/roland/roland_sc55.cpp index ef2451f74e0..aaa9c0233d3 100644 --- a/src/mame/roland/roland_sc55.cpp +++ b/src/mame/roland/roland_sc55.cpp @@ -59,7 +59,7 @@ class sc55_state : public driver_device private: required_device m_maincpu; - void sc55_map(address_map &map); + void sc55_map(address_map &map) ATTR_COLD; }; sc55_state::sc55_state(const machine_config &mconfig, device_type type, const char *tag) : diff --git a/src/mame/roland/roland_sc55mk2.cpp b/src/mame/roland/roland_sc55mk2.cpp index 8173502fdd1..4512619f28f 100644 --- a/src/mame/roland/roland_sc55mk2.cpp +++ b/src/mame/roland/roland_sc55mk2.cpp @@ -55,7 +55,7 @@ class sc55mk2_state : public driver_device private: required_device m_maincpu; - void sc55mk2_map(address_map &map); + void sc55mk2_map(address_map &map) ATTR_COLD; }; sc55mk2_state::sc55mk2_state(const machine_config &mconfig, device_type type, const char *tag) : diff --git a/src/mame/roland/roland_sc88.cpp b/src/mame/roland/roland_sc88.cpp index 88906a6fd37..cb2198c168b 100644 --- a/src/mame/roland/roland_sc88.cpp +++ b/src/mame/roland/roland_sc88.cpp @@ -26,7 +26,7 @@ class roland_sc88_state : public driver_device void sc88vl(machine_config &config); private: - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; required_device m_maincpu; }; diff --git a/src/mame/roland/roland_tb303.cpp b/src/mame/roland/roland_tb303.cpp index 007e3ad723e..32c9e2bd086 100644 --- a/src/mame/roland/roland_tb303.cpp +++ b/src/mame/roland/roland_tb303.cpp @@ -38,7 +38,7 @@ class tb303_state : public driver_device void tb303(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_maincpu; diff --git a/src/mame/roland/roland_tr606.cpp b/src/mame/roland/roland_tr606.cpp index 2bafa9f973d..80ad852da2d 100644 --- a/src/mame/roland/roland_tr606.cpp +++ b/src/mame/roland/roland_tr606.cpp @@ -33,7 +33,7 @@ class tr606_state : public driver_device void tr606(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_maincpu; diff --git a/src/mame/roland/roland_tr707.cpp b/src/mame/roland/roland_tr707.cpp index d66e1a1bf76..1f880be5625 100644 --- a/src/mame/roland/roland_tr707.cpp +++ b/src/mame/roland/roland_tr707.cpp @@ -38,7 +38,7 @@ class roland_tr707_state : public driver_device void tr707(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: void misc_select_w(u8 data); @@ -48,7 +48,7 @@ class roland_tr707_state : public driver_device void ga_trigger_w(offs_t offset, u8 data); void voice_select_w(u8 data); - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_mac; diff --git a/src/mame/roland/roland_tr808.cpp b/src/mame/roland/roland_tr808.cpp index b69e89af80a..02933efcb6a 100644 --- a/src/mame/roland/roland_tr808.cpp +++ b/src/mame/roland/roland_tr808.cpp @@ -33,7 +33,7 @@ class tr808_state : public driver_device void tr808(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_maincpu; diff --git a/src/mame/roland/roland_tr909.cpp b/src/mame/roland/roland_tr909.cpp index a58f64c745a..908f58cd881 100644 --- a/src/mame/roland/roland_tr909.cpp +++ b/src/mame/roland/roland_tr909.cpp @@ -29,8 +29,8 @@ class roland_tr909_state : public driver_device void tr909(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: void dac1_w(u8 data); @@ -49,7 +49,7 @@ class roland_tr909_state : public driver_device u8 switches_r(); u8 cart_sense_r(); - void tr909_mem(address_map &map); + void tr909_mem(address_map &map) ATTR_COLD; required_device m_cartslot; required_ioport_array<5> m_inputs; diff --git a/src/mame/roland/roland_u20.cpp b/src/mame/roland/roland_u20.cpp index 04289961732..979f68b57c8 100644 --- a/src/mame/roland/roland_u20.cpp +++ b/src/mame/roland/roland_u20.cpp @@ -28,7 +28,7 @@ class roland_u20_state : public driver_device void u220(machine_config &config); private: - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_pcm; diff --git a/src/mame/roland/sa16.h b/src/mame/roland/sa16.h index 26f9798ebbd..10c50a05c53 100644 --- a/src/mame/roland/sa16.h +++ b/src/mame/roland/sa16.h @@ -33,8 +33,8 @@ class sa16_base_device : public device_t sa16_base_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 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; private: // line callbacks diff --git a/src/mame/rolm/r9751.cpp b/src/mame/rolm/r9751.cpp index 352de396e84..d361262617c 100644 --- a/src/mame/rolm/r9751.cpp +++ b/src/mame/rolm/r9751.cpp @@ -122,7 +122,7 @@ class r9751_state : public driver_device uint8_t smioc_dma_r(offs_t offset); void smioc_dma_w(offs_t offset, uint8_t data); - void r9751_mem(address_map &map); + void r9751_mem(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_pdc; @@ -151,7 +151,7 @@ class r9751_state : public driver_device uint32_t debug_a5_20(); [[maybe_unused]] void UnifiedTrace(u32 address, u32 data, const char* operation="Read", const char* Device="SMIOC", const char* RegisterName=nullptr, const char* extraText=nullptr); - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; void trace_device(int address, int data, const char* direction); void system_trace_init(); diff --git a/src/mame/sage/sage2.h b/src/mame/sage/sage2.h index eec8621c560..9b26f8481a4 100644 --- a/src/mame/sage/sage2.h +++ b/src/mame/sage/sage2.h @@ -70,10 +70,10 @@ class sage2_state : public driver_device void write_centronics_select(int state); void write_centronics_fault(int state); - void sage2_mem(address_map &map); + void sage2_mem(address_map &map) ATTR_COLD; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; required_device m_maincpu; required_device m_pic; diff --git a/src/mame/saitek/blitz.cpp b/src/mame/saitek/blitz.cpp index 5f9d6ce1518..166c165d8c4 100644 --- a/src/mame/saitek/blitz.cpp +++ b/src/mame/saitek/blitz.cpp @@ -72,7 +72,7 @@ class blitz_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(power_off) { m_power = false; } protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; virtual void machine_reset() override { m_power = true; } private: diff --git a/src/mame/saitek/chessac.cpp b/src/mame/saitek/chessac.cpp index 370ba9b98f9..cd817b15432 100644 --- a/src/mame/saitek/chessac.cpp +++ b/src/mame/saitek/chessac.cpp @@ -63,7 +63,7 @@ class chessac_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(go_button); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: // devices/pointers diff --git a/src/mame/saitek/chesstrv.cpp b/src/mame/saitek/chesstrv.cpp index e0c4f66d162..109d3ee9f8a 100644 --- a/src/mame/saitek/chesstrv.cpp +++ b/src/mame/saitek/chesstrv.cpp @@ -78,7 +78,7 @@ class chesstrv_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(battery) { update_display(); } protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: // devices/pointers @@ -93,8 +93,8 @@ class chesstrv_state : public driver_device u8 m_inp_mux = 0; u8 m_7seg_data = 0; - void chesstrv_mem(address_map &map); - void chesstrv_io(address_map &map); + void chesstrv_mem(address_map &map) ATTR_COLD; + void chesstrv_io(address_map &map) ATTR_COLD; TIMER_DEVICE_CALLBACK_MEMBER(computing) { m_computing = 1; } diff --git a/src/mame/saitek/companion.cpp b/src/mame/saitek/companion.cpp index 5976cb03b54..ff09786f911 100644 --- a/src/mame/saitek/companion.cpp +++ b/src/mame/saitek/companion.cpp @@ -50,7 +50,7 @@ class compan_state : public driver_device void compan(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: // devices/pointers @@ -66,7 +66,7 @@ class compan_state : public driver_device u8 m_led_direct = 0; // address maps - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; // I/O handlers void update_display(); diff --git a/src/mame/saitek/companion2.cpp b/src/mame/saitek/companion2.cpp index 81247281fb5..78b1a500058 100644 --- a/src/mame/saitek/companion2.cpp +++ b/src/mame/saitek/companion2.cpp @@ -109,8 +109,8 @@ class compan2_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(change_cpu_freq); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: // devices/pointers diff --git a/src/mame/saitek/corona.cpp b/src/mame/saitek/corona.cpp index bc170d0607e..310390a62c8 100644 --- a/src/mame/saitek/corona.cpp +++ b/src/mame/saitek/corona.cpp @@ -46,8 +46,8 @@ class corona_state : public stratos_base_state void corona(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: // devices/pointers @@ -63,7 +63,7 @@ class corona_state : public stratos_base_state u8 m_led_data1 = 0; u8 m_led_data2 = 0; - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; // I/O handlers void update_leds(); diff --git a/src/mame/saitek/cp2000.cpp b/src/mame/saitek/cp2000.cpp index f75e74f7e60..d502e65765d 100644 --- a/src/mame/saitek/cp2000.cpp +++ b/src/mame/saitek/cp2000.cpp @@ -58,7 +58,7 @@ class cp2000_state : public driver_device void cp2000(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: // devices/pointers @@ -72,8 +72,8 @@ class cp2000_state : public driver_device u16 m_inp_mux = 0; // address maps - void main_map(address_map &map); - void main_io(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void main_io(address_map &map) ATTR_COLD; // I/O handlers void control_w(u8 data); diff --git a/src/mame/saitek/delta1.cpp b/src/mame/saitek/delta1.cpp index 62ce5615527..b594c228e54 100644 --- a/src/mame/saitek/delta1.cpp +++ b/src/mame/saitek/delta1.cpp @@ -60,7 +60,7 @@ class delta1_state : public driver_device void delta1(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: // devices/pointers @@ -76,8 +76,8 @@ class delta1_state : public driver_device bool m_blink = false; // address maps - void main_map(address_map &map); - void main_io(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void main_io(address_map &map) ATTR_COLD; TIMER_DEVICE_CALLBACK_MEMBER(blink) { m_blink = !m_blink; update_display(); } diff --git a/src/mame/saitek/edames.cpp b/src/mame/saitek/edames.cpp index c3286a68555..9acae96920f 100644 --- a/src/mame/saitek/edames.cpp +++ b/src/mame/saitek/edames.cpp @@ -64,7 +64,7 @@ class edames_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(change_cpu_freq); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: // devices/pointers diff --git a/src/mame/saitek/exechess.cpp b/src/mame/saitek/exechess.cpp index c16c0f0372d..ea0ab725340 100644 --- a/src/mame/saitek/exechess.cpp +++ b/src/mame/saitek/exechess.cpp @@ -47,7 +47,7 @@ class exechess_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(battery) { m_battery = newval; } protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: // devices/pointers @@ -63,8 +63,8 @@ class exechess_state : public driver_device u64 m_lcd_data[2] = { }; // address maps - void main_map(address_map &map); - void main_io(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void main_io(address_map &map) ATTR_COLD; // I/O handlers template void lcd_output_w(u64 data); diff --git a/src/mame/saitek/gk2000.cpp b/src/mame/saitek/gk2000.cpp index 2a829ab3e6e..6c5ea87e515 100644 --- a/src/mame/saitek/gk2000.cpp +++ b/src/mame/saitek/gk2000.cpp @@ -137,7 +137,7 @@ class gk2000_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(centurion_change_cpu_freq); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: // devices/pointers diff --git a/src/mame/saitek/intchess.cpp b/src/mame/saitek/intchess.cpp index 706dd028422..deed450b276 100644 --- a/src/mame/saitek/intchess.cpp +++ b/src/mame/saitek/intchess.cpp @@ -84,7 +84,7 @@ class intchess_state : public driver_device required_device m_palette; required_device m_cass; - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; // I/O handlers void seg_w(u8 data); diff --git a/src/mame/saitek/leonardo.cpp b/src/mame/saitek/leonardo.cpp index b7db663e71c..87e3ef62bb9 100644 --- a/src/mame/saitek/leonardo.cpp +++ b/src/mame/saitek/leonardo.cpp @@ -101,8 +101,8 @@ class leo_state : public driver_device void galileo(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: // devices/pointers @@ -120,7 +120,7 @@ class leo_state : public driver_device u8 m_inp_mux = 0; u8 m_led_data[2] = { }; - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; void update_display(); void mux_w(u8 data); diff --git a/src/mame/saitek/mark5.cpp b/src/mame/saitek/mark5.cpp index 41bd6ea8e33..adef1599b1b 100644 --- a/src/mame/saitek/mark5.cpp +++ b/src/mame/saitek/mark5.cpp @@ -83,8 +83,8 @@ class mark5_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(cb_enable) { if (!newval) m_display[3]->clear(); } protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: // devices/pointers @@ -110,8 +110,8 @@ class mark5_state : public driver_device bool board_active() { return machine().time() > m_board_init_time; } // address maps - void mark5_map(address_map &map); - void mark6_map(address_map &map); + void mark5_map(address_map &map) ATTR_COLD; + void mark6_map(address_map &map) ATTR_COLD; // I/O handlers void nvram_w(offs_t offset, u8 data); diff --git a/src/mame/saitek/minichess.cpp b/src/mame/saitek/minichess.cpp index 248b9cf80d6..4512f00ccdc 100644 --- a/src/mame/saitek/minichess.cpp +++ b/src/mame/saitek/minichess.cpp @@ -60,7 +60,7 @@ class mini_state : public driver_device void smchess(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: // devices/pointers diff --git a/src/mame/saitek/prisma.cpp b/src/mame/saitek/prisma.cpp index fadd9f1911b..757240d4ed7 100644 --- a/src/mame/saitek/prisma.cpp +++ b/src/mame/saitek/prisma.cpp @@ -65,7 +65,7 @@ class prisma_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(change_cpu_freq); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: // devices/pointers diff --git a/src/mame/saitek/prschess.cpp b/src/mame/saitek/prschess.cpp index 3628de1e3e2..919e5c17a83 100644 --- a/src/mame/saitek/prschess.cpp +++ b/src/mame/saitek/prschess.cpp @@ -53,7 +53,7 @@ class prschess_state : public driver_device void prschess(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: // devices/pointers @@ -67,7 +67,7 @@ class prschess_state : public driver_device u8 m_led_data[2] = { }; // address maps - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; // I/O handlers void update_display(); diff --git a/src/mame/saitek/renaissance.cpp b/src/mame/saitek/renaissance.cpp index f8f5a75fbef..df7f31095ac 100644 --- a/src/mame/saitek/renaissance.cpp +++ b/src/mame/saitek/renaissance.cpp @@ -79,8 +79,8 @@ class ren_state : public driver_device void ren(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: // devices/pointers @@ -101,7 +101,7 @@ class ren_state : public driver_device u8 m_inp_mux = 0; u8 m_led_data[2] = { }; - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; void lcd_pwm_w(offs_t offset, u8 data); void lcd_output_w(offs_t offset, u64 data); diff --git a/src/mame/saitek/risc2500.cpp b/src/mame/saitek/risc2500.cpp index 7fa177f40cd..6a573838c80 100644 --- a/src/mame/saitek/risc2500.cpp +++ b/src/mame/saitek/risc2500.cpp @@ -86,8 +86,8 @@ class risc2500_state : public driver_device void montreux(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; @@ -110,7 +110,7 @@ class risc2500_state : public driver_device u32 m_prev_pc = 0; u64 m_prev_cycle = 0; - void risc2500_mem(address_map &map); + void risc2500_mem(address_map &map) ATTR_COLD; void lcd_palette(palette_device &palette) const; SED1520_UPDATE_CB(screen_update_cb); diff --git a/src/mame/saitek/ecbackg.cpp b/src/mame/saitek/sbackgc.cpp similarity index 59% rename from src/mame/saitek/ecbackg.cpp rename to src/mame/saitek/sbackgc.cpp index 07df9b88d20..04299c81869 100644 --- a/src/mame/saitek/ecbackg.cpp +++ b/src/mame/saitek/sbackgc.cpp @@ -3,13 +3,16 @@ // thanks-to:Sean Riddle /******************************************************************************* -Saitek Electronic Champion Backgammon +Saitek Sensory Backgammon Computer / Electronic Champion Backgammon NOTE: Before exiting MAME, change the power switch from GO to STOP. Otherwise, -NVRAM won't save properly. +NVRAM won't save properly. For sbackgc, only turn it off when it's the user's +turn to move. -This program got 3rd place in the first Computer Olympiad in 1989 (backgammon -category). It also includes several game variations like Jacquet or Trictrac. +These were supposedly programmed by Eric van Riet Paap (not sure about Sensory, +but pretty certain about Champion). The Champion program got 3rd place in the +first Computer Olympiad in 1989 (backgammon category). It also includes several +game variations like Jacquet or Trictrac. MAME's sensorboard interface is a bit different compared to chess. Pieces can be stacked up to 3. Pressing the Bear Off button (Del / Backspace) will optionally @@ -17,18 +20,30 @@ remove the currently held piece. Capturing pieces is disabled, except when hitti a blot, in which case the piece in hand is swapped with the one on the board. Hardware notes: -- PCB label: GT4-PE-009 -- Hitachi HD6301Y0P @ ~4MHz (LC osc, no XTAL) + +Sensory Backgammon Computer (model 680): +- PCB label: GT2-PE-018 +- Hitachi HD614085S @ ~5MHz (LC osc, no XTAL) - LCD with custom segments - 24 LEDs, 13*2 buttons sensor board, piezo +Electronic Champion Backgammon (model 681): +- PCB label: GT4-PE-009 +- Hitachi HD6301Y0P @ ~4MHz (LC osc, no XTAL) +- rest is same as Sensory Backgammon Computer + +There's also model 082, it looks nearly identical to model 680, but hardware is +unknown. Handheld Champion Backgammon (model 682) has a HD6301Y0F. + TODO: +- is Sensory Backgammon Computer model 082 on a different MCU? maybe NEC uCOM-75? - if/when MAME supports an exit callback, hook up power-off switch to that *******************************************************************************/ #include "emu.h" +#include "cpu/hmcs400/hmcs400.h" #include "cpu/m6800/m6801.h" #include "machine/sensorboard.h" #include "sound/dac.h" @@ -39,14 +54,17 @@ Hardware notes: // internal artwork #include "saitek_ecbackg.lh" +#include "saitek_sbackgc.lh" namespace { -class ecbackg_state : public driver_device +// shared base class + +class sbackgc_base_state : public driver_device { public: - ecbackg_state(const machine_config &mconfig, device_type type, const char *tag) : + sbackgc_base_state(const machine_config &mconfig, device_type type, const char *tag) : driver_device(mconfig, type, tag), m_maincpu(*this, "maincpu"), m_board(*this, "board"), @@ -57,19 +75,18 @@ class ecbackg_state : public driver_device m_out_lcd(*this, "s%u.%u", 0U, 0U) { } - void ecbackg(machine_config &config); + void shared(machine_config &config); DECLARE_INPUT_CHANGED_MEMBER(init_board); DECLARE_INPUT_CHANGED_MEMBER(bear_off); DECLARE_INPUT_CHANGED_MEMBER(power_off) { if (newval) m_power = false; } protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; virtual void machine_reset() override { m_power = true; } -private: // devices/pointers - required_device m_maincpu; + required_device m_maincpu; required_device m_board; required_device m_led_pwm; required_device m_lcd_pwm; @@ -79,10 +96,11 @@ class ecbackg_state : public driver_device bool m_power = false; u8 m_inp_mux = 0; + u8 m_led_data = 0; u32 m_lcd_segs = 0; u8 m_lcd_com = 0; - // I/O handlers + // sensorboard handlers void init_backgammon(); void init_jacquet(); void init_plakoto(); @@ -92,37 +110,74 @@ class ecbackg_state : public driver_device u8 board_sensor_cb(offs_t offset); u8 board_r(u8 row); - void standby(int state); - + // shared I/O handlers (just the LCD) + void clear_display(); void lcd_pwm_w(offs_t offset, u8 data); void update_lcd(); - template void lcd_segs_w(u8 data); + template void lcd_segs_w(offs_t offset, u8 data, u8 mem_mask); void lcd_com_w(u8 data); - - u8 p2_r(); - void p2_w(u8 data); - u8 p5_r(); - void p6_w(u8 data); }; -void ecbackg_state::machine_start() +void sbackgc_base_state::machine_start() { m_out_lcd.resolve(); // register for savestates save_item(NAME(m_power)); + save_item(NAME(m_led_data)); save_item(NAME(m_inp_mux)); save_item(NAME(m_lcd_segs)); save_item(NAME(m_lcd_com)); } +// Sensory Backgammon Computer + +class sbackgc_state : public sbackgc_base_state +{ +public: + sbackgc_state(const machine_config &mconfig, device_type type, const char *tag) : + sbackgc_base_state(mconfig, type, tag) + { } + + void sbackgc(machine_config &config); + +private: + // I/O handlers + template void leds_w(u8 data); + u8 buttons_r(); + u8 input1_r(); + u16 input2_r(); + void control_w(u16 data); +}; + + +// Electronic Champion Backgammon + +class ecbackg_state : public sbackgc_base_state +{ +public: + ecbackg_state(const machine_config &mconfig, device_type type, const char *tag) : + sbackgc_base_state(mconfig, type, tag) + { } + + void ecbackg(machine_config &config); + +private: + // I/O handlers + u8 p2_r(); + void p2_w(u8 data); + u8 p5_r(); + void p6_w(u8 data); +}; + + /******************************************************************************* Sensorboard *******************************************************************************/ -void ecbackg_state::init_backgammon() +void sbackgc_base_state::init_backgammon() { // initial position for Backgammon (default) for (int i = 0; i < 5; i++) @@ -146,7 +201,7 @@ void ecbackg_state::init_backgammon() } } -void ecbackg_state::init_jacquet() +void sbackgc_base_state::init_jacquet() { // initial position for Jacquet / Trictrac / Moultezim for (int i = 0; i < 5; i++) @@ -156,7 +211,7 @@ void ecbackg_state::init_jacquet() } } -void ecbackg_state::init_plakoto() +void sbackgc_base_state::init_plakoto() { // initial position for Plakoto for (int i = 0; i < 5; i++) @@ -166,7 +221,7 @@ void ecbackg_state::init_plakoto() } } -INPUT_CHANGED_MEMBER(ecbackg_state::init_board) +INPUT_CHANGED_MEMBER(sbackgc_base_state::init_board) { if (!newval) return; @@ -197,18 +252,18 @@ INPUT_CHANGED_MEMBER(ecbackg_state::init_board) m_board->refresh(); } -void ecbackg_state::board_init_cb(u8 data) +void sbackgc_base_state::board_init_cb(u8 data) { if (~data & 1) init_backgammon(); } -u8 ecbackg_state::board_spawn_cb(offs_t offset) +u8 sbackgc_base_state::board_spawn_cb(offs_t offset) { return (offset == 1) ? 1 : 4; } -INPUT_CHANGED_MEMBER(ecbackg_state::bear_off) +INPUT_CHANGED_MEMBER(sbackgc_base_state::bear_off) { if (newval && m_inputs[5]->read() & 1) { @@ -218,7 +273,7 @@ INPUT_CHANGED_MEMBER(ecbackg_state::bear_off) } } -u8 ecbackg_state::board_remove_cb() +u8 sbackgc_base_state::board_remove_cb() { int handpos = m_board->get_handpos(); @@ -241,7 +296,7 @@ u8 ecbackg_state::board_remove_cb() return 1; } -u8 ecbackg_state::board_sensor_cb(offs_t offset) +u8 sbackgc_base_state::board_sensor_cb(offs_t offset) { u8 x = offset & 0xf; u8 y = offset >> 4 & 0xf; @@ -303,17 +358,17 @@ u8 ecbackg_state::board_sensor_cb(offs_t offset) return 3; } -u8 ecbackg_state::board_r(u8 row) +u8 sbackgc_base_state::board_r(u8 row) { u8 data = 0; // inputs to sensorboard translation table (0xff is invalid) static const u8 lut_board[4*7] = { - 0xff, 0x1b, 0x19, 0x17, 0x07, 0x09, 0x0b, - 0x0c, 0x1a, 0x18, 0x16, 0x06, 0x08, 0x0a, - 0x1c, 0x15, 0x13, 0x11, 0x01, 0x03, 0x05, - 0xff, 0x14, 0x12, 0x10, 0x00, 0x02, 0x04 + 0x0c, 0x1a, 0x18, 0x16, 0x06, 0x08, 0x0a, + 0x1c, 0x15, 0x13, 0x11, 0x01, 0x03, 0x05, + 0xff, 0x14, 0x12, 0x10, 0x00, 0x02, 0x04, + 0xff, 0x1b, 0x19, 0x17, 0x07, 0x09, 0x0b }; for (int i = 0; i < 7; i++) @@ -341,12 +396,18 @@ u8 ecbackg_state::board_r(u8 row) // LCD -void ecbackg_state::lcd_pwm_w(offs_t offset, u8 data) +void sbackgc_base_state::clear_display() +{ + m_lcd_pwm->clear(); + m_led_pwm->clear(); +} + +void sbackgc_base_state::lcd_pwm_w(offs_t offset, u8 data) { m_out_lcd[offset & 0x3f][offset >> 6] = data; } -void ecbackg_state::update_lcd() +void sbackgc_base_state::update_lcd() { for (int i = 0; i < 2; i++) { @@ -358,34 +419,91 @@ void ecbackg_state::update_lcd() } template -void ecbackg_state::lcd_segs_w(u8 data) +void sbackgc_base_state::lcd_segs_w(offs_t offset, u8 data, u8 mem_mask) { - // P1x, P3x, P4x: LCD segments - const u8 shift = 8 * N; - m_lcd_segs = (m_lcd_segs & ~(0xff << shift)) | (data << shift); + if (mem_mask == 0) + return; + + // R3x-R8x: LCD segments (P1x,P3x,P4x on ecbackg) + const u8 width = 32 - count_leading_zeros_32(mem_mask); + const u8 mask = (1 << width) - 1; + const u8 shift = width * N; + + m_lcd_segs = (m_lcd_segs & ~(mask << shift)) | ((data & mask) << shift); update_lcd(); } -void ecbackg_state::lcd_com_w(u8 data) +void sbackgc_base_state::lcd_com_w(u8 data) { - // P70-P73: LCD common + // R00-R03: LCD common (P70-P73 on ecbackg) m_lcd_com = data & 0xf; update_lcd(); } -// misc +// sbackgc-specific -void ecbackg_state::standby(int state) +template +void sbackgc_state::leds_w(u8 data) { - // clear display - if (state) - { - m_lcd_pwm->clear(); - m_led_pwm->clear(); - } + // R1x,R2x: LED data + const u8 shift = 4 * N; + m_led_data = (m_led_data & ~(0xf << shift)) | (data << shift); + m_led_pwm->write_mx(m_led_data); } +u8 sbackgc_state::buttons_r() +{ + u8 data = 0xf; + + for (int i = 0; i < 4; i++) + if (m_inp_mux & m_inputs[i]->read()) + data ^= 1 << i; + + return data; +} + +u8 sbackgc_state::input1_r() +{ + // R90-R93: multiplexed inputs + u8 data = 0xf; + + // read board + for (int i = 0; i < 4; i++) + if (m_inp_mux & board_r(i)) + data ^= 1 << i; + + // read buttons (high) + return data & (buttons_r() | 3); +} + +u16 sbackgc_state::input2_r() +{ + // D11,D12: read buttons (low) + u16 data = buttons_r() << 11 & 0x1800; + + // D13: power switch state + data |= m_power ? 0x2000 : 0; + + // D15: freq sel (3MHz or 5MHz) + return data | 0x800f; +} + +void sbackgc_state::control_w(u16 data) +{ + // D0-D2: LED select + m_led_pwm->write_my(~data & 7); + + // D4-D10: input mux + m_inp_mux = ~data >> 4 & 0x7f; + + // D14: speaker out + m_dac->write(BIT(data, 14)); +} + + +// ecbackg-specific + u8 ecbackg_state::p2_r() { // P27: power switch state @@ -398,7 +516,7 @@ u8 ecbackg_state::p2_r() void ecbackg_state::p2_w(u8 data) { - // P20-P22: led select + // P20-P22: LED select m_led_pwm->write_my(data & 7); // P23: speaker out @@ -412,12 +530,12 @@ u8 ecbackg_state::p5_r() // read buttons for (int i = 0; i < 5; i++) - if (BIT(bitswap<5>(m_inp_mux,6,5,4,3,0), i)) + if (BIT(bitswap<5>(m_inp_mux,6,0,3,5,4), i)) data |= m_inputs[i]->read(); // read board for (int i = 0; i < 4; i++) - if (BIT(m_inp_mux, i)) + if (BIT(bitswap<4>(m_inp_mux,0,3,2,1), i)) data |= board_r(i); return ~data; @@ -425,7 +543,7 @@ u8 ecbackg_state::p5_r() void ecbackg_state::p6_w(u8 data) { - // P60-P67: input mux, led data + // P60-P67: input mux, LED data m_inp_mux = ~data; m_led_pwm->write_mx(~data); } @@ -436,14 +554,8 @@ void ecbackg_state::p6_w(u8 data) Input Ports *******************************************************************************/ -static INPUT_PORTS_START( ecbackg ) +static INPUT_PORTS_START( sbackgc ) PORT_START("IN.0") - PORT_BIT(0x40, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_S) PORT_NAME("Statistics") - - PORT_START("IN.1") - PORT_BIT(0x40, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_B) PORT_CODE(KEYCODE_DEL) PORT_CODE(KEYCODE_BACKSPACE) PORT_CHANGED_MEMBER(DEVICE_SELF, ecbackg_state, bear_off, 0) PORT_NAME("Bear Off") - - PORT_START("IN.2") PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_D) PORT_CODE(KEYCODE_A) PORT_NAME("Double / Accept") PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_J) PORT_NAME("Reject") PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_P) PORT_NAME("Play") @@ -452,7 +564,7 @@ static INPUT_PORTS_START( ecbackg ) PORT_BIT(0x20, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_T) PORT_NAME("Take Back") PORT_BIT(0x40, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_V) PORT_NAME("Verify") - PORT_START("IN.3") + PORT_START("IN.1") PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_R) PORT_CODE(KEYCODE_ENTER) PORT_CODE(KEYCODE_ENTER_PAD) PORT_NAME("Roll Dice") PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_1) PORT_CODE(KEYCODE_1_PAD) PORT_NAME("Dice 1") PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_2) PORT_CODE(KEYCODE_2_PAD) PORT_NAME("Dice 2") @@ -461,6 +573,12 @@ static INPUT_PORTS_START( ecbackg ) PORT_BIT(0x20, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_5) PORT_CODE(KEYCODE_5_PAD) PORT_NAME("Dice 5") PORT_BIT(0x40, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_6) PORT_CODE(KEYCODE_6_PAD) PORT_NAME("Dice 6") + PORT_START("IN.2") + PORT_BIT(0x40, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_B) PORT_CODE(KEYCODE_DEL) PORT_CODE(KEYCODE_BACKSPACE) PORT_CHANGED_MEMBER(DEVICE_SELF, sbackgc_base_state, bear_off, 0) PORT_NAME("Bear Off") + + PORT_START("IN.3") + PORT_BIT(0x40, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_S) PORT_NAME("Set Up") + PORT_START("IN.4") PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_N) PORT_NAME("New Game") @@ -470,12 +588,21 @@ static INPUT_PORTS_START( ecbackg ) PORT_CONFSETTING( 0x01, DEF_STR( Yes ) ) PORT_START("POWER") // needs to be triggered for nvram to work - PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_POWER_OFF) PORT_CHANGED_MEMBER(DEVICE_SELF, ecbackg_state, power_off, 0) PORT_NAME("Stop") + PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_POWER_OFF) PORT_CHANGED_MEMBER(DEVICE_SELF, sbackgc_base_state, power_off, 0) PORT_NAME("Stop") PORT_START("BOARD") - PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_OTHER) PORT_CHANGED_MEMBER(DEVICE_SELF, ecbackg_state, init_board, 0) PORT_NAME("Board Reset Backgammon") - PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_OTHER) PORT_CHANGED_MEMBER(DEVICE_SELF, ecbackg_state, init_board, 1) PORT_NAME("Board Reset Jacquet") - PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_OTHER) PORT_CHANGED_MEMBER(DEVICE_SELF, ecbackg_state, init_board, 2) PORT_NAME("Board Reset Plakoto") + PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_OTHER) PORT_CHANGED_MEMBER(DEVICE_SELF, sbackgc_base_state, init_board, 0) PORT_NAME("Board Reset Backgammon") + PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_OTHER) PORT_CHANGED_MEMBER(DEVICE_SELF, sbackgc_base_state, init_board, 1) PORT_NAME("Board Reset Jacquet") +INPUT_PORTS_END + +static INPUT_PORTS_START( ecbackg ) + PORT_INCLUDE( sbackgc ) + + PORT_MODIFY("IN.3") + PORT_BIT(0x40, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_S) PORT_NAME("Statistics") + + PORT_MODIFY("BOARD") + PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_OTHER) PORT_CHANGED_MEMBER(DEVICE_SELF, sbackgc_base_state, init_board, 2) PORT_NAME("Board Reset Plakoto") INPUT_PORTS_END @@ -484,27 +611,14 @@ INPUT_PORTS_END Machine Configs *******************************************************************************/ -void ecbackg_state::ecbackg(machine_config &config) +void sbackgc_base_state::shared(machine_config &config) { // basic machine hardware - HD6301Y0(config, m_maincpu, 4'000'000); // approximation, no XTAL - m_maincpu->nvram_enable_backup(true); - m_maincpu->standby_cb().set(m_maincpu, FUNC(hd6301y0_cpu_device::nvram_set_battery)); - m_maincpu->standby_cb().append(FUNC(ecbackg_state::standby)); - m_maincpu->out_p1_cb().set(FUNC(ecbackg_state::lcd_segs_w<0>)); - m_maincpu->in_p2_cb().set(FUNC(ecbackg_state::p2_r)); - m_maincpu->out_p2_cb().set(FUNC(ecbackg_state::p2_w)); - m_maincpu->out_p3_cb().set(FUNC(ecbackg_state::lcd_segs_w<1>)); - m_maincpu->out_p4_cb().set(FUNC(ecbackg_state::lcd_segs_w<2>)); - m_maincpu->in_p5_cb().set(FUNC(ecbackg_state::p5_r)); - m_maincpu->out_p6_cb().set(FUNC(ecbackg_state::p6_w)); - m_maincpu->out_p7_cb().set(FUNC(ecbackg_state::lcd_com_w)); - SENSORBOARD(config, m_board).set_type(sensorboard_device::BUTTONS); - m_board->init_cb().set(FUNC(ecbackg_state::board_init_cb)); - m_board->spawn_cb().set(FUNC(ecbackg_state::board_spawn_cb)); - m_board->remove_cb().set(FUNC(ecbackg_state::board_remove_cb)); - m_board->sensor_cb().set(FUNC(ecbackg_state::board_sensor_cb)); + m_board->init_cb().set(FUNC(sbackgc_base_state::board_init_cb)); + m_board->spawn_cb().set(FUNC(sbackgc_base_state::board_spawn_cb)); + m_board->remove_cb().set(FUNC(sbackgc_base_state::board_remove_cb)); + m_board->sensor_cb().set(FUNC(sbackgc_base_state::board_sensor_cb)); m_board->set_size(13, 10); m_board->set_spawnpoints(2); m_board->set_max_id(6); @@ -513,7 +627,7 @@ void ecbackg_state::ecbackg(machine_config &config) // video hardware PWM_DISPLAY(config, m_lcd_pwm).set_size(2, 24); - m_lcd_pwm->output_x().set(FUNC(ecbackg_state::lcd_pwm_w)); + m_lcd_pwm->output_x().set(FUNC(sbackgc_base_state::lcd_pwm_w)); screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_SVG)); screen.set_refresh_hz(60); @@ -521,19 +635,74 @@ void ecbackg_state::ecbackg(machine_config &config) screen.set_visarea_full(); PWM_DISPLAY(config, m_led_pwm).set_size(3, 8); - config.set_default_layout(layout_saitek_ecbackg); // sound hardware SPEAKER(config, "speaker").front_center(); DAC_1BIT(config, m_dac).add_route(ALL_OUTPUTS, "speaker", 0.25); } +void sbackgc_state::sbackgc(machine_config &config) +{ + // basic machine hardware + hmcs400_cpu_device &maincpu(HD614085(config, m_maincpu, 5'000'000)); // approximation, no XTAL + maincpu.nvram_enable_backup(true); + maincpu.stop_cb().set(maincpu, FUNC(hmcs400_cpu_device::nvram_set_battery)); + maincpu.stop_cb().append([this](int state) { if (state) clear_display(); }); + maincpu.write_r<0x0>().set(FUNC(sbackgc_state::lcd_com_w)); + maincpu.write_r<0x1>().set(FUNC(sbackgc_state::leds_w<0>)); + maincpu.write_r<0x2>().set(FUNC(sbackgc_state::leds_w<1>)); + maincpu.write_r<0x3>().set(FUNC(sbackgc_state::lcd_segs_w<0>)); + maincpu.write_r<0x4>().set(FUNC(sbackgc_state::lcd_segs_w<1>)); + maincpu.write_r<0x5>().set(FUNC(sbackgc_state::lcd_segs_w<2>)); + maincpu.write_r<0x6>().set(FUNC(sbackgc_state::lcd_segs_w<3>)); + maincpu.write_r<0x7>().set(FUNC(sbackgc_state::lcd_segs_w<4>)); + maincpu.write_r<0x8>().set(FUNC(sbackgc_state::lcd_segs_w<5>)); + maincpu.read_r<0x9>().set(FUNC(sbackgc_state::input1_r)); + maincpu.read_r<0xa>().set_ioport("IN.4").exor(1); + maincpu.write_d().set(FUNC(sbackgc_state::control_w)); + maincpu.read_d().set(FUNC(sbackgc_state::input2_r)); + + shared(config); + + m_lcd_pwm->set_bri_levels(0.05); + config.set_default_layout(layout_saitek_sbackgc); +} + +void ecbackg_state::ecbackg(machine_config &config) +{ + // basic machine hardware + hd6301y0_cpu_device &maincpu(HD6301Y0(config, m_maincpu, 4'000'000)); // approximation, no XTAL + maincpu.nvram_enable_backup(true); + maincpu.standby_cb().set(maincpu, FUNC(hd6301y0_cpu_device::nvram_set_battery)); + maincpu.standby_cb().append([this](int state) { if (state) clear_display(); }); + maincpu.out_p1_cb().set(FUNC(ecbackg_state::lcd_segs_w<0>)); + maincpu.in_p2_cb().set(FUNC(ecbackg_state::p2_r)); + maincpu.out_p2_cb().set(FUNC(ecbackg_state::p2_w)); + maincpu.out_p3_cb().set(FUNC(ecbackg_state::lcd_segs_w<1>)); + maincpu.out_p4_cb().set(FUNC(ecbackg_state::lcd_segs_w<2>)); + maincpu.in_p5_cb().set(FUNC(ecbackg_state::p5_r)); + maincpu.out_p6_cb().set(FUNC(ecbackg_state::p6_w)); + maincpu.out_p7_cb().set(FUNC(ecbackg_state::lcd_com_w)); + + shared(config); + + config.set_default_layout(layout_saitek_ecbackg); +} + /******************************************************************************* ROM Definitions *******************************************************************************/ +ROM_START( sbackgc ) + ROM_REGION( 0x4000, "maincpu", 0 ) + ROM_LOAD("1988_gx2_saitek_614085sc72.u1", 0x0000, 0x4000, CRC(0e91d7a1) SHA1(fa147105fa99d01210b53389b8b70031cff6ad66) ) + + ROM_REGION( 109526, "screen", 0 ) + ROM_LOAD("sbackgc.svg", 0, 109526, CRC(183b12fb) SHA1(5a3682d6ff28086c2ab890eee1403c8c3d7d8527) ) +ROM_END + ROM_START( ecbackg ) ROM_REGION( 0x4000, "maincpu", 0 ) ROM_LOAD("saitek_89_gx4b_c12_31y0rm79p.u1", 0x0000, 0x4000, CRC(d7278545) SHA1(9ece31cdb237067aeec480c066e0917752697a4d) ) @@ -551,4 +720,6 @@ ROM_END *******************************************************************************/ // YEAR NAME PARENT COMPAT MACHINE INPUT CLASS INIT COMPANY, FULLNAME, FLAGS +SYST( 1988, sbackgc, 0, 0, sbackgc, sbackgc, sbackgc_state, empty_init, "Saitek", "Sensory Backgammon Computer", MACHINE_SUPPORTS_SAVE ) + SYST( 1989, ecbackg, 0, 0, ecbackg, ecbackg, ecbackg_state, empty_init, "Saitek", "Electronic Champion Backgammon", MACHINE_SUPPORTS_SAVE ) diff --git a/src/mame/saitek/schess.cpp b/src/mame/saitek/schess.cpp index 2568e501e8c..16c2cfbf602 100644 --- a/src/mame/saitek/schess.cpp +++ b/src/mame/saitek/schess.cpp @@ -66,7 +66,7 @@ class schess_state : public driver_device void schess(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: // devices/pointers @@ -80,7 +80,7 @@ class schess_state : public driver_device u8 m_led_data = 0; // address maps - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; // I/O handlers void update_display(); diff --git a/src/mame/saitek/simultano.cpp b/src/mame/saitek/simultano.cpp index f5a99e86792..10c4f931bcb 100644 --- a/src/mame/saitek/simultano.cpp +++ b/src/mame/saitek/simultano.cpp @@ -71,8 +71,8 @@ class simultano_state : public driver_device void cc2150(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: // devices/pointers @@ -90,8 +90,8 @@ class simultano_state : public driver_device u8 m_select = 0; u8 m_control = 0; - void simultano_map(address_map &map); - void cc2150_map(address_map &map); + void simultano_map(address_map &map) ATTR_COLD; + void cc2150_map(address_map &map) ATTR_COLD; void power_off(); void lcd_pwm_w(offs_t offset, u8 data); diff --git a/src/mame/saitek/ssystem3.cpp b/src/mame/saitek/ssystem3.cpp index b1001a59c0c..708349f125a 100644 --- a/src/mame/saitek/ssystem3.cpp +++ b/src/mame/saitek/ssystem3.cpp @@ -117,7 +117,7 @@ class ssystem3_state : public driver_device void init_ssystem3() { m_xor_kludge = true; } protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: // devices/pointers @@ -143,9 +143,9 @@ class ssystem3_state : public driver_device bool m_xor_kludge = false; // address maps - void ssystem3_map(address_map &map); - void ssystem4_map(address_map &map); - void chessunit_map(address_map &map); + void ssystem3_map(address_map &map) ATTR_COLD; + void ssystem4_map(address_map &map) ATTR_COLD; + void chessunit_map(address_map &map) ATTR_COLD; // I/O handlers void lcd1_output_w(u32 data) { m_lcd1_data = data; } diff --git a/src/mame/saitek/stratos.cpp b/src/mame/saitek/stratos.cpp index fad1c3800de..ee33db79815 100644 --- a/src/mame/saitek/stratos.cpp +++ b/src/mame/saitek/stratos.cpp @@ -91,8 +91,8 @@ class stratos_state : public stratos_base_state void tking2(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: // devices/pointers @@ -108,7 +108,7 @@ class stratos_state : public stratos_base_state u8 m_control = 0; u8 m_led_data = 0; - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; // I/O handlers void update_leds(); diff --git a/src/mame/saitek/stratos.h b/src/mame/saitek/stratos.h index ac760875cce..d7f5cf047d0 100644 --- a/src/mame/saitek/stratos.h +++ b/src/mame/saitek/stratos.h @@ -32,8 +32,8 @@ class stratos_base_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(go_button); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; virtual void device_post_load() override { update_lcd(); } bool m_power = false; diff --git a/src/mame/saitek/superstar.cpp b/src/mame/saitek/superstar.cpp index bcda4daa632..1df185ea3c7 100644 --- a/src/mame/saitek/superstar.cpp +++ b/src/mame/saitek/superstar.cpp @@ -83,7 +83,7 @@ class star_state : public driver_device void tstar432(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: // devices/pointers @@ -97,8 +97,8 @@ class star_state : public driver_device u8 m_inp_mux = 0; // address maps - void sstar28k_map(address_map &map); - void tstar432_map(address_map &map); + void sstar28k_map(address_map &map) ATTR_COLD; + void tstar432_map(address_map &map) ATTR_COLD; // I/O handlers void control_w(u8 data); diff --git a/src/mame/saitek/tatrain.cpp b/src/mame/saitek/tatrain.cpp index 7309376d6c2..bf38a92eccf 100644 --- a/src/mame/saitek/tatrain.cpp +++ b/src/mame/saitek/tatrain.cpp @@ -80,7 +80,7 @@ class tatrain_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(tatraina_change_cpu_freq); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: // devices/pointers diff --git a/src/mame/saitek/tschess.cpp b/src/mame/saitek/tschess.cpp index f8bbec484af..8a6cca35762 100644 --- a/src/mame/saitek/tschess.cpp +++ b/src/mame/saitek/tschess.cpp @@ -58,7 +58,7 @@ class tschess_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(reset_button) { m_maincpu->set_input_line(INPUT_LINE_RESET, newval ? ASSERT_LINE : CLEAR_LINE); } protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: // devices/pointers diff --git a/src/mame/saitek/turbo16k.cpp b/src/mame/saitek/turbo16k.cpp index 727da741372..d09637013cc 100644 --- a/src/mame/saitek/turbo16k.cpp +++ b/src/mame/saitek/turbo16k.cpp @@ -100,7 +100,7 @@ class turbo16k_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(change_cpu_freq); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; // devices/pointers required_device m_maincpu; diff --git a/src/mame/saitek/turbos24k.cpp b/src/mame/saitek/turbos24k.cpp index 0129a419431..c062f9e65f1 100644 --- a/src/mame/saitek/turbos24k.cpp +++ b/src/mame/saitek/turbos24k.cpp @@ -59,7 +59,7 @@ class turbos24k_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(go_button); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: // devices/pointers @@ -76,7 +76,7 @@ class turbos24k_state : public driver_device u8 m_led_data[2] = { }; u16 m_lcd_data[4] = { }; - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; // I/O handlers template void lcd_output_w(offs_t offset, u16 data); diff --git a/src/mame/samcoupe/samcoupe.cpp b/src/mame/samcoupe/samcoupe.cpp index 7a4dd816272..e9b1f870435 100644 --- a/src/mame/samcoupe/samcoupe.cpp +++ b/src/mame/samcoupe/samcoupe.cpp @@ -87,9 +87,9 @@ class samcoupe_state : public driver_device void samcoupe(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -185,10 +185,10 @@ class samcoupe_state : public driver_device uint8_t mem_block_d_r(offs_t offset); void mem_block_d_w(offs_t offset, uint8_t data); - void mem_map_base(address_map &map); - void mem_map(address_map &map); - void io_map_base(address_map &map); - void io_map(address_map &map); + void mem_map_base(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; + void io_map_base(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; int m_pages; // total internal memory pages (16 or 32) }; diff --git a/src/mame/samsung/dvd-n5xx.cpp b/src/mame/samsung/dvd-n5xx.cpp index b9fbc20415f..f65604f5c0d 100644 --- a/src/mame/samsung/dvd-n5xx.cpp +++ b/src/mame/samsung/dvd-n5xx.cpp @@ -245,7 +245,7 @@ class n5xx_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; }; uint32_t n5xx_state::screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect) diff --git a/src/mame/samsung/spc1000.cpp b/src/mame/samsung/spc1000.cpp index ecb8f48fbb1..d569d493d34 100644 --- a/src/mame/samsung/spc1000.cpp +++ b/src/mame/samsung/spc1000.cpp @@ -177,8 +177,8 @@ class spc1000_state : public driver_device return m_p_videoram[0x1000 + (ch & 0x7f) * 16 + line]; } - void io_map(address_map &map); - void mem_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; uint8_t m_IPLK = 0U; uint8_t m_GMODE = 0U; @@ -186,8 +186,8 @@ class spc1000_state : public driver_device std::unique_ptr m_work_ram; attotime m_time; bool m_centronics_busy = false; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; required_device m_maincpu; required_device m_vdg; required_device m_cass; diff --git a/src/mame/samsung/spc1500.cpp b/src/mame/samsung/spc1500.cpp index 52cca33a03d..821b943a1a9 100644 --- a/src/mame/samsung/spc1500.cpp +++ b/src/mame/samsung/spc1500.cpp @@ -269,8 +269,8 @@ class spc1500_state : public driver_device void spc1500(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: @@ -298,8 +298,8 @@ class spc1500_state : public driver_device MC6845_RECONFIGURE(crtc_reconfig); TIMER_DEVICE_CALLBACK_MEMBER(timer); - void spc1500_double_io(address_map &map); - void spc1500_mem(address_map &map); + void spc1500_double_io(address_map &map) ATTR_COLD; + void spc1500_mem(address_map &map) ATTR_COLD; uint8_t *m_p_ram = nullptr; uint8_t m_ipl = 0; diff --git a/src/mame/sanritsu/appoooh.cpp b/src/mame/sanritsu/appoooh.cpp index 7cd04472704..9532fefc8ba 100644 --- a/src/mame/sanritsu/appoooh.cpp +++ b/src/mame/sanritsu/appoooh.cpp @@ -195,9 +195,9 @@ class base_state : public driver_device { } protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; protected: // memory pointers @@ -238,8 +238,8 @@ class base_state : public driver_device void adpcm_int(int state); void common(machine_config &config); - void main_map(address_map &map); - void main_portmap(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void main_portmap(address_map &map) ATTR_COLD; }; class appoooh_state : public base_state @@ -278,7 +278,7 @@ class robowres_state : public base_state void palette(palette_device &palette) const; - void decrypted_opcodes_map(address_map &map); + void decrypted_opcodes_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/sanritsu/bankp.cpp b/src/mame/sanritsu/bankp.cpp index a48f7f3a0bd..a115e6a7a52 100644 --- a/src/mame/sanritsu/bankp.cpp +++ b/src/mame/sanritsu/bankp.cpp @@ -114,9 +114,9 @@ class bankp_state : public driver_device void bankp(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: // memory pointers @@ -147,8 +147,8 @@ class bankp_state : public driver_device void palette(palette_device &palette) const; uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); INTERRUPT_GEN_MEMBER(vblank_interrupt); - void io_map(address_map &map); - void prg_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void prg_map(address_map &map) ATTR_COLD; }; void bankp_state::machine_start() diff --git a/src/mame/sanritsu/chinsan.cpp b/src/mame/sanritsu/chinsan.cpp index a61ee27430c..99cc83d3e4b 100644 --- a/src/mame/sanritsu/chinsan.cpp +++ b/src/mame/sanritsu/chinsan.cpp @@ -74,13 +74,13 @@ class chinsan_state : public driver_device void chinsan(machine_config &config); void mayumi(machine_config &config); - void chinsan_io_map(address_map &map); - void chinsan_map(address_map &map); - void decrypted_opcodes_map(address_map &map); - void mayumi_io_map(address_map &map); + void chinsan_io_map(address_map &map) ATTR_COLD; + void chinsan_map(address_map &map) ATTR_COLD; + void decrypted_opcodes_map(address_map &map) ATTR_COLD; + void mayumi_io_map(address_map &map) ATTR_COLD; protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; diff --git a/src/mame/sanritsu/drmicro.cpp b/src/mame/sanritsu/drmicro.cpp index 5da1472d9e5..b095e1d0abf 100644 --- a/src/mame/sanritsu/drmicro.cpp +++ b/src/mame/sanritsu/drmicro.cpp @@ -41,9 +41,9 @@ class drmicro_state : public driver_device void drmicro(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: // memory pointers @@ -73,8 +73,8 @@ class drmicro_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); INTERRUPT_GEN_MEMBER(interrupt); void pcm_w(int state); - void prg_map(address_map &map); - void io_map(address_map &map); + void prg_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/sanritsu/jantotsu.cpp b/src/mame/sanritsu/jantotsu.cpp index f567e8c9d50..992cf602a1b 100644 --- a/src/mame/sanritsu/jantotsu.cpp +++ b/src/mame/sanritsu/jantotsu.cpp @@ -124,9 +124,9 @@ class jantotsu_state : public driver_device void jantotsu(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -158,8 +158,8 @@ class jantotsu_state : public driver_device void palette(palette_device &palette) const; uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); void adpcm_int(int state); - void io_map(address_map &map); - void prg_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void prg_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/sanritsu/mermaid.h b/src/mame/sanritsu/mermaid.h index e465b0d5f13..5b1b755c283 100644 --- a/src/mame/sanritsu/mermaid.h +++ b/src/mame/sanritsu/mermaid.h @@ -109,9 +109,9 @@ class mermaid_state : public driver_device uint8_t mermaid_collision_r(); TILE_GET_INFO_MEMBER(get_bg_tile_info); TILE_GET_INFO_MEMBER(get_fg_tile_info); - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; void common_palette(palette_device &palette) const; void mermaid_palette(palette_device &palette) const; void rougien_palette(palette_device &palette) const; @@ -121,7 +121,7 @@ class mermaid_state : public driver_device uint8_t collision_check( rectangle& rect ); void collision_update(); void rougien_adpcm_int(int state); - void mermaid_map(address_map &map); + void mermaid_map(address_map &map) ATTR_COLD; }; #endif // MAME_SANRITSU_MERMAID_H diff --git a/src/mame/sanritsu/mjkjidai.cpp b/src/mame/sanritsu/mjkjidai.cpp index 0bd5bf551ac..0009aa80910 100644 --- a/src/mame/sanritsu/mjkjidai.cpp +++ b/src/mame/sanritsu/mjkjidai.cpp @@ -70,9 +70,9 @@ class mjkjidai_state : public driver_device ioport_value keyboard_r(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -104,8 +104,8 @@ class mjkjidai_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void vblank_irq(int state); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); - void io_map(address_map &map); - void prg_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void prg_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/sanritsu/ron.cpp b/src/mame/sanritsu/ron.cpp index da30b4efb0c..5bb520ba65c 100644 --- a/src/mame/sanritsu/ron.cpp +++ b/src/mame/sanritsu/ron.cpp @@ -73,16 +73,16 @@ class ron_state : public driver_device int audio_t1_r(); void ay_pa_w(uint8_t data); - void ron_audio_io(address_map &map); - void ron_audio_map(address_map &map); - void ron_io(address_map &map); - void ron_map(address_map &map); + void ron_audio_io(address_map &map) ATTR_COLD; + void ron_audio_map(address_map &map) ATTR_COLD; + void ron_io(address_map &map) ATTR_COLD; + void ron_map(address_map &map) ATTR_COLD; // driver_device overrides - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; // devices required_device m_maincpu; diff --git a/src/mame/sanyo/mbc55x.h b/src/mame/sanyo/mbc55x.h index dceced9628f..770605f5ad8 100644 --- a/src/mame/sanyo/mbc55x.h +++ b/src/mame/sanyo/mbc55x.h @@ -92,10 +92,10 @@ class mbc55x_state : public driver_device required_device m_iodecode; protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; - virtual void video_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; + virtual void video_reset() override ATTR_COLD; private: uint8_t iodecode_r(offs_t offset); @@ -117,9 +117,9 @@ class mbc55x_state : public driver_device MC6845_UPDATE_ROW(crtc_update_row); void mbc55x_palette(palette_device &palette) const; - void mbc55x_io(address_map &map); - void mbc55x_mem(address_map &map); - void mbc55x_iodecode(address_map &map); + void mbc55x_io(address_map &map) ATTR_COLD; + void mbc55x_mem(address_map &map) ATTR_COLD; + void mbc55x_iodecode(address_map &map) ATTR_COLD; void set_ram_size(); diff --git a/src/mame/sanyo/mbc55x_kbd.h b/src/mame/sanyo/mbc55x_kbd.h index 4574680f97a..1555383045b 100644 --- a/src/mame/sanyo/mbc55x_kbd.h +++ b/src/mame/sanyo/mbc55x_kbd.h @@ -32,11 +32,11 @@ class mbc55x_keyboard_device : public device_t, public device_matrix_keyboard_in protected: // device_t implementation - virtual ioport_constructor device_input_ports() const override; - 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 ioport_constructor device_input_ports() const override ATTR_COLD; + 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; // device_matrix_keyboard_interface implementation virtual void key_make(u8 row, u8 column) override; diff --git a/src/mame/sanyo/phc20.cpp b/src/mame/sanyo/phc20.cpp index 3f14fed1e86..53af9985f28 100644 --- a/src/mame/sanyo/phc20.cpp +++ b/src/mame/sanyo/phc20.cpp @@ -41,7 +41,7 @@ class phc20_state : public driver_device required_shared_ptr m_vram; required_device m_cassette; - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; uint8_t system_r(); void system_w(uint8_t data); diff --git a/src/mame/sanyo/phc25.cpp b/src/mame/sanyo/phc25.cpp index 6aa95766014..a7e8c2de948 100644 --- a/src/mame/sanyo/phc25.cpp +++ b/src/mame/sanyo/phc25.cpp @@ -77,8 +77,8 @@ class phc25_state : public driver_device void phc25j(machine_config &config); protected: - void machine_start() override; - void machine_reset() override; + void machine_start() override ATTR_COLD; + void machine_reset() override ATTR_COLD; virtual void port00_w(uint8_t data); virtual uint8_t port40_r(); @@ -93,8 +93,8 @@ class phc25_state : public driver_device required_device m_cassette; private: - void phc25_mem(address_map &map); - void phc25_io(address_map &map); + void phc25_mem(address_map &map) ATTR_COLD; + void phc25_io(address_map &map) ATTR_COLD; uint8_t video_ram_r(offs_t offset); MC6847_GET_CHARROM_MEMBER(char_rom_r); @@ -121,7 +121,7 @@ class map1010_state : public phc25_state DECLARE_INPUT_CHANGED_MEMBER(rts_changed); protected: - void machine_start() override; + void machine_start() override ATTR_COLD; virtual void port00_w(uint8_t data) override; virtual uint8_t port40_r() override; @@ -137,8 +137,8 @@ class map1010_state : public phc25_state void port20_w(uint8_t data); - void map1010_mem(address_map &map); - void map1010_io(address_map &map); + void map1010_mem(address_map &map) ATTR_COLD; + void map1010_io(address_map &map) ATTR_COLD; }; /* Read/Write Handlers */ diff --git a/src/mame/saturn/st17xx.cpp b/src/mame/saturn/st17xx.cpp index b461d00b8e6..ead86b93655 100644 --- a/src/mame/saturn/st17xx.cpp +++ b/src/mame/saturn/st17xx.cpp @@ -54,11 +54,11 @@ class st17xx_state : public driver_device void st17xx(machine_config &config); private: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void cpu_map(address_map &map); + void cpu_map(address_map &map) ATTR_COLD; }; /* Memory Maps */ diff --git a/src/mame/sealy/sealy.cpp b/src/mame/sealy/sealy.cpp index 32292b784c9..0fa86ee76bf 100644 --- a/src/mame/sealy/sealy.cpp +++ b/src/mame/sealy/sealy.cpp @@ -59,7 +59,7 @@ class sealy_state : public driver_device // screen updates void sealy_palette(palette_device &palette) const; uint32_t screen_update_sealy(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void sealy_map(address_map &map); + void sealy_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/sega/315-5838_317-0229_comp.h b/src/mame/sega/315-5838_317-0229_comp.h index c76272f5314..179cbf1f142 100644 --- a/src/mame/sega/315-5838_317-0229_comp.h +++ b/src/mame/sega/315-5838_317-0229_comp.h @@ -36,8 +36,8 @@ class sega_315_5838_comp_device : public device_t, void set_hack_mode(int mode) { m_hackmode = mode; } protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: uint16_t source_word_r(); diff --git a/src/mame/sega/315-5881_crypt.h b/src/mame/sega/315-5881_crypt.h index 950a06c7232..f70e23a2c15 100644 --- a/src/mame/sega/315-5881_crypt.h +++ b/src/mame/sega/315-5881_crypt.h @@ -25,8 +25,8 @@ class sega_315_5881_crypt_device : public device_t uint16_t decrypt_le_r(); uint16_t decrypt_be_r(); - void iomap_64be(address_map &map); - void iomap_le(address_map &map); + void iomap_64be(address_map &map) ATTR_COLD; + void iomap_le(address_map &map) ATTR_COLD; uint16_t do_decrypt(uint8_t *&base); void set_addr_low(uint16_t data); @@ -38,8 +38,8 @@ class sega_315_5881_crypt_device : public device_t template void set_read_cb(T &&... args) { m_read.set(std::forward(args)...); } protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: diff --git a/src/mame/sega/315-6154.h b/src/mame/sega/315-6154.h index 0f036be5636..acf3e451cc4 100644 --- a/src/mame/sega/315-6154.h +++ b/src/mame/sega/315-6154.h @@ -27,8 +27,8 @@ class sega_315_6154_device : public pci_host_device }; protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; // device_memory_interface overrides virtual space_config_vector memory_space_config() const override; diff --git a/src/mame/sega/315_5195.h b/src/mame/sega/315_5195.h index cb91ea5d12b..5e3ca65c12a 100644 --- a/src/mame/sega/315_5195.h +++ b/src/mame/sega/315_5195.h @@ -68,8 +68,8 @@ class sega_315_5195_mapper_device : public device_t 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; private: TIMER_CALLBACK_MEMBER(write_to_sound); diff --git a/src/mame/sega/315_5296.h b/src/mame/sega/315_5296.h index 377c53c7124..64e38051f2c 100644 --- a/src/mame/sega/315_5296.h +++ b/src/mame/sega/315_5296.h @@ -50,8 +50,8 @@ class sega_315_5296_device : public device_t 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; private: devcb_read8::array<8> m_in_port_cb; diff --git a/src/mame/sega/315_5338a.h b/src/mame/sega/315_5338a.h index 500bad694a0..c6e2458e162 100644 --- a/src/mame/sega/315_5338a.h +++ b/src/mame/sega/315_5338a.h @@ -60,7 +60,7 @@ class sega_315_5338a_device : public device_t protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: // callbacks diff --git a/src/mame/sega/315_5649.h b/src/mame/sega/315_5649.h index d04ffdce3e5..a2cb497146c 100644 --- a/src/mame/sega/315_5649.h +++ b/src/mame/sega/315_5649.h @@ -56,8 +56,8 @@ class sega_315_5649_device : public device_t 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; private: // callbacks diff --git a/src/mame/sega/angelkds.cpp b/src/mame/sega/angelkds.cpp index 3309097a950..779df4121a8 100644 --- a/src/mame/sega/angelkds.cpp +++ b/src/mame/sega/angelkds.cpp @@ -160,9 +160,9 @@ class angelkds_state : public driver_device void spcpostn(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: // memory pointers @@ -202,11 +202,11 @@ class angelkds_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect, int enable_n); - void decrypted_opcodes_map(address_map &map); - void main_map(address_map &map); - void main_portmap(address_map &map); - void sound_map(address_map &map); - void sound_portmap(address_map &map); + void decrypted_opcodes_map(address_map &map) ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; + void main_portmap(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; + void sound_portmap(address_map &map) ATTR_COLD; }; diff --git a/src/mame/sega/awboard.h b/src/mame/sega/awboard.h index 766d634120b..022b16c5453 100644 --- a/src/mame/sega/awboard.h +++ b/src/mame/sega/awboard.h @@ -13,7 +13,7 @@ class aw_rom_board : public naomi_g1_device public: aw_rom_board(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - virtual void submap(address_map &map) override; + virtual void submap(address_map &map) override ATTR_COLD; void epr_offsetl_w(uint16_t data); // 5f7000 void epr_offseth_w(uint16_t data); // 5f7004 @@ -25,8 +25,8 @@ class aw_rom_board : public naomi_g1_device void pio_w(uint16_t data); // 5f7080 protected: - 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 dma_get_position(uint8_t *&base, uint32_t &limit, bool to_mainram) override; virtual void dma_advance(uint32_t size) override; diff --git a/src/mame/sega/bingoc.cpp b/src/mame/sega/bingoc.cpp index e42518ced26..8eb8c130f81 100644 --- a/src/mame/sega/bingoc.cpp +++ b/src/mame/sega/bingoc.cpp @@ -70,7 +70,7 @@ class bingoc_state : public driver_device void bingoc(machine_config &config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: //uint8_t m_x; @@ -81,9 +81,9 @@ class bingoc_state : public driver_device required_device m_soundcpu; required_device m_upd7759; required_device m_soundlatch; - void main_map(address_map &map); - void sound_io(address_map &map); - void sound_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_io(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; }; #define SOUND_TEST 0 diff --git a/src/mame/sega/bingoct.h b/src/mame/sega/bingoct.h index 6f6af0b8f36..f8ee31961bf 100644 --- a/src/mame/sega/bingoct.h +++ b/src/mame/sega/bingoct.h @@ -32,11 +32,11 @@ class bingoct_device : public device_t protected: // device-level overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual ioport_constructor device_input_ports() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: required_device m_maincpu; @@ -45,11 +45,11 @@ class bingoct_device : public device_t required_memory_bank m_gfxbank; required_memory_bank m_soundbank; - void main_mem_map(address_map &map); - void main_io_map(address_map &map); - void sound_mem_map(address_map &map); - void sound_io_map(address_map &map); - void pcm_map(address_map &map); + void main_mem_map(address_map &map) ATTR_COLD; + void main_io_map(address_map &map) ATTR_COLD; + void sound_mem_map(address_map &map) ATTR_COLD; + void sound_io_map(address_map &map) ATTR_COLD; + void pcm_map(address_map &map) ATTR_COLD; IRQ_CALLBACK_MEMBER(soundcpu_irq_ack); void output_w(offs_t offset, uint8_t data); diff --git a/src/mame/sega/blockade.cpp b/src/mame/sega/blockade.cpp index 193ef81ea16..4b574cf1adf 100644 --- a/src/mame/sega/blockade.cpp +++ b/src/mame/sega/blockade.cpp @@ -59,11 +59,11 @@ class blockade_state : public driver_device void env_off_w(uint8_t data); void blockade(machine_config &config); - void main_io_map(address_map &map); - void main_map(address_map &map); + void main_io_map(address_map &map) ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; TIMER_CALLBACK_MEMBER(vblank_tick); diff --git a/src/mame/sega/calcune.cpp b/src/mame/sega/calcune.cpp index b6d93f5e9cb..bf1628f9f69 100644 --- a/src/mame/sega/calcune.cpp +++ b/src/mame/sega/calcune.cpp @@ -42,8 +42,8 @@ class calcune_state : public driver_device void calcune(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; @@ -63,7 +63,7 @@ class calcune_state : public driver_device void cal_vdp_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); uint32_t screen_update_calcune(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void calcune_map(address_map &map); + void calcune_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/sega/chihiro.cpp b/src/mame/sega/chihiro.cpp index 0107649192b..6e421e3e4fd 100644 --- a/src/mame/sega/chihiro.cpp +++ b/src/mame/sega/chihiro.cpp @@ -527,7 +527,7 @@ class ohci_hlean2131qc_device : public device_t, public device_usb_ohci_function void set_region(const char *_region_tag, int _region_offset); protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: void process_jvs_packet(); @@ -585,7 +585,7 @@ class ohci_hlean2131sc_device : public device_t, public device_usb_ohci_function void set_region(const char *_region_tag, int _region_offset); protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: void process_packet(); @@ -641,7 +641,7 @@ class chihiro_state : public xbox_base_state uint32_t mediaboard_r(offs_t offset, uint32_t mem_mask = ~0); void mediaboard_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0); - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; void baseboard_ide_event(int type, uint8_t *read, uint8_t *write); uint8_t *baseboard_ide_dimmboard(uint32_t lba); void dword_write_le(uint8_t *addr, uint32_t d); @@ -660,8 +660,8 @@ class chihiro_state : public xbox_base_state static void an2131qc_configuration(device_t *device); static void an2131sc_configuration(device_t *device); - void chihiro_map(address_map &map); - void chihiro_map_io(address_map &map); + void chihiro_map(address_map &map) ATTR_COLD; + void chihiro_map_io(address_map &map) ATTR_COLD; void jamtable_disasm(address_space &space, uint32_t address, uint32_t size); void jamtable_disasm_command(const std::vector ¶ms); @@ -1532,8 +1532,8 @@ class ide_baseboard_device : public ata_mass_storage_device_base, public device_ protected: // 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; uint8_t read_buffer[0x20]{}; uint8_t write_buffer[0x20]{}; @@ -1866,10 +1866,10 @@ class sega_network_board : public device_t public: sega_network_board(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: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; }; DEFINE_DEVICE_TYPE(SEGA_NETWORK_BOARD, sega_network_board, "seganetw", "Sega Network Board") diff --git a/src/mame/sega/coolridr.cpp b/src/mame/sega/coolridr.cpp index 21985ac7295..ab0a6da0180 100644 --- a/src/mame/sega/coolridr.cpp +++ b/src/mame/sega/coolridr.cpp @@ -400,9 +400,9 @@ class coolridr_state : public driver_device void sound_to_sh1_w(uint8_t data); void init_coolridr(); void init_aquastge(); - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; uint32_t m_colbase; @@ -510,14 +510,14 @@ class coolridr_state : public driver_device objcachemanager m_decode[2]; void aquastge(machine_config &config); void coolridr(machine_config &config); - void coolridr_h1_map(address_map &map); - void aquastge_h1_map(address_map &map); - void aquastge_submap(address_map &map); - void coolridr_submap(address_map &map); - void system_h1_map(address_map &map); - void system_h1_submap(address_map &map); - void system_h1_sound_map(address_map &map); - template void scsp_map(address_map &map); + void coolridr_h1_map(address_map &map) ATTR_COLD; + void aquastge_h1_map(address_map &map) ATTR_COLD; + void aquastge_submap(address_map &map) ATTR_COLD; + void coolridr_submap(address_map &map) ATTR_COLD; + void system_h1_map(address_map &map) ATTR_COLD; + void system_h1_submap(address_map &map) ATTR_COLD; + void system_h1_sound_map(address_map &map) ATTR_COLD; + template void scsp_map(address_map &map) ATTR_COLD; }; #define PRINT_BLIT_STUFF \ diff --git a/src/mame/sega/dc-ctrl.h b/src/mame/sega/dc-ctrl.h index e7ccb034f4a..43d3574d6a8 100644 --- a/src/mame/sega/dc-ctrl.h +++ b/src/mame/sega/dc-ctrl.h @@ -34,7 +34,7 @@ class dc_common_device : public maple_device template void set_port_tags() { } // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; const char *model = nullptr, *license = nullptr, *versions = nullptr; uint32_t id = 0; diff --git a/src/mame/sega/dc.h b/src/mame/sega/dc.h index 6e84f024afb..e7dd3a7be13 100644 --- a/src/mame/sega/dc.h +++ b/src/mame/sega/dc.h @@ -45,8 +45,8 @@ class dc_state : public driver_device uint8_t m_armrst = 0U; emu_timer *m_ch2_dma_irq_timer = nullptr; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; void g2_dma_end_w(offs_t channel, u8 state); void g2_dma_error_ia_w(offs_t channel, u8 state); void g2_dma_error_ov_w(offs_t channel, u8 state); @@ -89,8 +89,8 @@ class dc_state : public driver_device DECLARE_MACHINE_RESET(dc_console); void naomi_aw_base(machine_config &config); - void aica_map(address_map &map); - void dc_audio_map(address_map &map); + void aica_map(address_map &map) ATTR_COLD; + void dc_audio_map(address_map &map) ATTR_COLD; protected: void system_bus_config(machine_config &config, const char *cpu_tag); diff --git a/src/mame/sega/dc_atomiswave.h b/src/mame/sega/dc_atomiswave.h index cb42e189858..e035a008279 100644 --- a/src/mame/sega/dc_atomiswave.h +++ b/src/mame/sega/dc_atomiswave.h @@ -38,8 +38,8 @@ class atomiswave_state : public dc_state void init_atomiswave(); protected: - virtual void aw_map(address_map &map); - void aw_port(address_map &map); + virtual void aw_map(address_map &map) ATTR_COLD; + void aw_port(address_map &map) ATTR_COLD; private: required_device m_awflash; @@ -61,7 +61,7 @@ class atomiswave_xtrmhnt2_state : public atomiswave_state { } protected: - virtual void aw_map(address_map &map) override; + virtual void aw_map(address_map &map) override ATTR_COLD; private: uint64_t allnet_hack_r(offs_t offset, uint64_t mem_mask = ~0); }; diff --git a/src/mame/sega/dc_g2if.h b/src/mame/sega/dc_g2if.h index 7d4e459372c..1de4996ed81 100644 --- a/src/mame/sega/dc_g2if.h +++ b/src/mame/sega/dc_g2if.h @@ -25,16 +25,16 @@ class dc_g2if_device : public device_t auto error_ia_cb() { return m_error_ia_w.bind(); } auto error_ov_cb() { return m_error_ov_w.bind(); } - void amap(address_map &map); + void amap(address_map &map) ATTR_COLD; void hw_irq_trigger_hs(u32 normal_ist, u32 ext_ist); protected: // device-level overrides //virtual void device_validity_check(validity_checker &valid) const override; - //virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + //virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; TIMER_CALLBACK_MEMBER(dma_end_tick); @@ -64,7 +64,7 @@ class dc_g2if_device : public device_t u32 top_addr; } m_g2apro; - template void channel_map(address_map &map); + template void channel_map(address_map &map) ATTR_COLD; template u32 stag_r(); template void stag_w(offs_t offset, u32 data, u32 mem_mask = ~0); diff --git a/src/mame/sega/dccons.h b/src/mame/sega/dccons.h index 29de14fd65f..e71dbaff4dd 100644 --- a/src/mame/sega/dccons.h +++ b/src/mame/sega/dccons.h @@ -45,10 +45,10 @@ class dc_cons_state : public dc_state void dc_base(machine_config &config); void dc(machine_config &config); void dc_fish(machine_config &config); - void aica_map(address_map &map); - void dc_audio_map(address_map &map); - void dc_map(address_map &map); - void dc_port(address_map &map); + void aica_map(address_map &map) ATTR_COLD; + void dc_audio_map(address_map &map) ATTR_COLD; + void dc_map(address_map &map) ATTR_COLD; + void dc_port(address_map &map) ATTR_COLD; private: uint32_t g1bus_regs[0x100/4]{}; // DC-only diff --git a/src/mame/sega/deniam.cpp b/src/mame/sega/deniam.cpp index 0da7350f9cc..7c03db728ec 100644 --- a/src/mame/sega/deniam.cpp +++ b/src/mame/sega/deniam.cpp @@ -80,9 +80,9 @@ class deniamc_state : public driver_device void init_logicpro(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; // devices required_device m_maincpu; @@ -101,7 +101,7 @@ class deniamc_state : public driver_device u8 m_fg_page_reg = 0; void common_init(); - void base_main_map(address_map &map); + void base_main_map(address_map &map) ATTR_COLD; private: // devices @@ -138,7 +138,7 @@ class deniamc_state : public driver_device void draw_sprites(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void set_bg_page(int page, int value); void set_fg_page(int page, int value); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; }; class deniamb_state : public deniamc_state @@ -161,9 +161,9 @@ class deniamb_state : public deniamc_state void oki_rom_bank_w(u8 data); - void main_map(address_map &map); - void sound_io_map(address_map &map); - void sound_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_io_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/sega/digamart.cpp b/src/mame/sega/digamart.cpp index 58702a54f5d..d1a1e0bd465 100644 --- a/src/mame/sega/digamart.cpp +++ b/src/mame/sega/digamart.cpp @@ -47,7 +47,7 @@ class digamart_state : public driver_device private: required_device m_maincpu; - void program_map(address_map &map); + void program_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/sega/dotrikun.cpp b/src/mame/sega/dotrikun.cpp index 1a7ad1e8902..b99864e7e59 100644 --- a/src/mame/sega/dotrikun.cpp +++ b/src/mame/sega/dotrikun.cpp @@ -69,10 +69,10 @@ class dotrikun_state : public driver_device TIMER_DEVICE_CALLBACK_MEMBER(scanline_off); TIMER_DEVICE_CALLBACK_MEMBER(scanline_on); - virtual void machine_start() override; - virtual void machine_reset() override; - void dotrikun_map(address_map &map); - void io_map(address_map &map); + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + void dotrikun_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; }; TIMER_DEVICE_CALLBACK_MEMBER(dotrikun_state::interrupt) diff --git a/src/mame/sega/dsbz80.h b/src/mame/sega/dsbz80.h index e646bc79326..1d2813aef32 100644 --- a/src/mame/sega/dsbz80.h +++ b/src/mame/sega/dsbz80.h @@ -29,10 +29,10 @@ class dsbz80_device : public device_t, public device_sound_interface protected: // device_t implementation - virtual void device_start() override; - virtual void device_reset() override; - virtual void device_stop() 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_stop() override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; // device_sound_interface implementation virtual void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; @@ -58,8 +58,8 @@ class dsbz80_device : public device_t, public device_sound_interface void mpeg_stereo_w(uint8_t data); uint8_t mpeg_pos_r(offs_t offset); - void dsbz80_map(address_map &map); - void dsbz80io_map(address_map &map); + void dsbz80_map(address_map &map) ATTR_COLD; + void dsbz80io_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/sega/eshockey.cpp b/src/mame/sega/eshockey.cpp index f168d2bde27..bd072722d8f 100644 --- a/src/mame/sega/eshockey.cpp +++ b/src/mame/sega/eshockey.cpp @@ -50,8 +50,8 @@ class eshockey_state : public driver_device void pit_out1(int state); void pit_out2(int state); - void prg_map(address_map &map); - void io_map(address_map &map); + void prg_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/sega/fd1089.h b/src/mame/sega/fd1089.h index d89450fa7e7..595b48dcc84 100644 --- a/src/mame/sega/fd1089.h +++ b/src/mame/sega/fd1089.h @@ -43,14 +43,14 @@ class fd1089_base_device : public m68000_device // explicit decryption helpers void decrypt(offs_t baseaddr, uint32_t size, offs_t regionoffs, uint16_t *opcodesptr, uint16_t *dataptr) { decrypt(baseaddr, size, &m_plaintext[regionoffs/2], opcodesptr, dataptr); } - void decrypted_opcodes_map(address_map &map); + void decrypted_opcodes_map(address_map &map) ATTR_COLD; protected: // construction/destruction fd1089_base_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // device overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // internal helpers uint8_t rearrange_key(uint8_t table, bool opcode); diff --git a/src/mame/sega/fd1094.h b/src/mame/sega/fd1094.h index 1508c474f24..d122a3701e0 100644 --- a/src/mame/sega/fd1094.h +++ b/src/mame/sega/fd1094.h @@ -86,13 +86,13 @@ class fd1094_device : public m68000_device STATE_RTE = 0x300 }; - void decrypted_opcodes_map(address_map &map); + void decrypted_opcodes_map(address_map &map) ATTR_COLD; protected: required_memory_bank m_decrypted_opcodes_bank; // device 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 device_postload(); // internal helpers diff --git a/src/mame/sega/flashbeats.cpp b/src/mame/sega/flashbeats.cpp index 19b3ea80886..6b58033e564 100644 --- a/src/mame/sega/flashbeats.cpp +++ b/src/mame/sega/flashbeats.cpp @@ -46,14 +46,14 @@ class flashbeats_state : public driver_device } void flashbeats(machine_config &config); - void flashbeats_map(address_map &map); - void main_scsp_map(address_map &map); - void scsp_mem(address_map &map); + void flashbeats_map(address_map &map) ATTR_COLD; + void main_scsp_map(address_map &map) ATTR_COLD; + void scsp_mem(address_map &map) ATTR_COLD; [[maybe_unused]] uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); private: - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; void scsp_irq(offs_t offset, uint8_t data); uint8_t p6_r(); diff --git a/src/mame/sega/fwheel.cpp b/src/mame/sega/fwheel.cpp index fc2c79c7e63..0ece38cf8ab 100644 --- a/src/mame/sega/fwheel.cpp +++ b/src/mame/sega/fwheel.cpp @@ -59,8 +59,8 @@ class fwheel_state : public driver_device void fwheel(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; @@ -69,11 +69,11 @@ class fwheel_state : public driver_device required_memory_region m_ipl; required_device m_vdp; - void main_io_map(address_map &map); - void main_prg_map(address_map &map); - void sound_prg_map(address_map &map); - void sound_io_map(address_map &map); - void wheel_prg_map(address_map &map); + void main_io_map(address_map &map) ATTR_COLD; + void main_prg_map(address_map &map) ATTR_COLD; + void sound_prg_map(address_map &map) ATTR_COLD; + void sound_io_map(address_map &map) ATTR_COLD; + void wheel_prg_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/sega/gpworld.cpp b/src/mame/sega/gpworld.cpp index 3707a8bee25..888378c8cf1 100644 --- a/src/mame/sega/gpworld.cpp +++ b/src/mame/sega/gpworld.cpp @@ -68,11 +68,11 @@ class gpworld_state : public driver_device void gpworld(machine_config &config); private: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; virtual void driver_start() override; - void mainmem(address_map &map); - void mainport(address_map &map); + void mainmem(address_map &map) ATTR_COLD; + void mainport(address_map &map) ATTR_COLD; TIMER_CALLBACK_MEMBER(irq_stop); diff --git a/src/mame/sega/gunsense.h b/src/mame/sega/gunsense.h index e1b5bfe232d..8ea647007d5 100644 --- a/src/mame/sega/gunsense.h +++ b/src/mame/sega/gunsense.h @@ -10,12 +10,12 @@ class sega_gunsense_board_device : public device_t sega_gunsense_board_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock = 0); protected: - virtual void device_start() 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_add_mconfig(machine_config &config) override ATTR_COLD; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; private: - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; }; // device type declaration diff --git a/src/mame/sega/hikaru.cpp b/src/mame/sega/hikaru.cpp index 20a29bfb519..1a8120043c7 100644 --- a/src/mame/sega/hikaru.cpp +++ b/src/mame/sega/hikaru.cpp @@ -414,10 +414,10 @@ class hikaru_state : public driver_device void hikaru(machine_config &config); private: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; - void hikaru_map(address_map &map); - void hikaru_map_slave(address_map &map); + void hikaru_map(address_map &map) ATTR_COLD; + void hikaru_map_slave(address_map &map) ATTR_COLD; uint32_t screen_update_hikaru(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); diff --git a/src/mame/sega/jvs13551.h b/src/mame/sega/jvs13551.h index b3aee16ea41..0870b3d5c13 100644 --- a/src/mame/sega/jvs13551.h +++ b/src/mame/sega/jvs13551.h @@ -31,7 +31,7 @@ class sega_837_13551_device : public jvs_device set_port_tags(std::forward(other_tags)...); } - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; void jvs13551_coin_1_w(int state); void jvs13551_coin_2_w(int state); @@ -41,10 +41,10 @@ class sega_837_13551_device : public jvs_device template void set_port_tags() { } // device-level overrides - virtual void device_start() override; - virtual void device_reset() override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() 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 ioport_constructor device_input_ports() const override ATTR_COLD; // JVS device overrides virtual const char *device_id() override; diff --git a/src/mame/sega/kopunch.cpp b/src/mame/sega/kopunch.cpp index c74ae457a3d..d5dc207e77f 100644 --- a/src/mame/sega/kopunch.cpp +++ b/src/mame/sega/kopunch.cpp @@ -73,8 +73,8 @@ class kopunch_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(right_coin_inserted); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: uint8_t sensors1_r(); @@ -92,8 +92,8 @@ class kopunch_state : public driver_device void palette(palette_device &palette) const; uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void io_map(address_map &map); - void prg_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void prg_map(address_map &map) ATTR_COLD; // devices required_device m_maincpu; diff --git a/src/mame/sega/lindbergh.cpp b/src/mame/sega/lindbergh.cpp index c5215de11e6..a5c62987973 100644 --- a/src/mame/sega/lindbergh.cpp +++ b/src/mame/sega/lindbergh.cpp @@ -391,8 +391,8 @@ class lindbergh_state : public driver_device void lindbergh(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; }; lindbergh_state::lindbergh_state(const machine_config &mconfig, device_type type, const char *tag) : driver_device(mconfig, type, tag) diff --git a/src/mame/sega/m1comm.h b/src/mame/sega/m1comm.h index 939d0375598..a0ee2fdd831 100644 --- a/src/mame/sega/m1comm.h +++ b/src/mame/sega/m1comm.h @@ -41,18 +41,18 @@ class m1comm_device : public device_t // IRQ logic - 5 = VINT, 7 = DLC void check_vint_irq(); - void m1comm_io(address_map &map); - void m1comm_mem(address_map &map); + void m1comm_io(address_map &map) ATTR_COLD; + void m1comm_mem(address_map &map) ATTR_COLD; 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 device_reset_after_children() override; - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: required_device m_cpu; diff --git a/src/mame/sega/m2comm.h b/src/mame/sega/m2comm.h index 3e44c216c90..3fe67883ec9 100644 --- a/src/mame/sega/m2comm.h +++ b/src/mame/sega/m2comm.h @@ -46,9 +46,9 @@ class m2comm_device : public device_t protected: // device-level overrides - 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; private: uint8_t m_shared[0x4000]{}; // 16k shared memory diff --git a/src/mame/sega/m3comm.h b/src/mame/sega/m3comm.h index 74bb9c4fc1b..cc80b1fc7a8 100644 --- a/src/mame/sega/m3comm.h +++ b/src/mame/sega/m3comm.h @@ -21,7 +21,7 @@ class m3comm_device : public device_t // construction/destruction m3comm_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - void m3_map(address_map &map); + void m3_map(address_map &map) ATTR_COLD; uint16_t ctrl_r(offs_t offset, uint16_t mem_mask = ~0); void ctrl_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); @@ -39,13 +39,13 @@ class m3comm_device : public device_t uint16_t naomi_r(offs_t offset); void naomi_w(offs_t offset, uint16_t data); - void m3comm_mem(address_map &map); + void m3comm_mem(address_map &map) ATTR_COLD; 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 device_reset_after_children() override; - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; TIMER_CALLBACK_MEMBER(trigger_irq5); diff --git a/src/mame/sega/maple-dc.h b/src/mame/sega/maple-dc.h index 352a9a3f887..6ae8d0e40fc 100644 --- a/src/mame/sega/maple-dc.h +++ b/src/mame/sega/maple-dc.h @@ -39,7 +39,7 @@ class maple_dc_device : public device_t void sb_msys_w(uint32_t data); void sb_mdapro_w(uint32_t data); // 5f6c8c - void amap(address_map &map); + void amap(address_map &map) ATTR_COLD; void end_of_reply(); void register_port(int port, maple_device *device); @@ -47,8 +47,8 @@ class maple_dc_device : public device_t 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; TIMER_CALLBACK_MEMBER(dma_timer_tick); diff --git a/src/mame/sega/mapledev.h b/src/mame/sega/mapledev.h index 6492248f92d..4b7e7147fd6 100644 --- a/src/mame/sega/mapledev.h +++ b/src/mame/sega/mapledev.h @@ -23,7 +23,7 @@ class maple_device : public device_t uint32_t reply_buffer[256]{}; // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; TIMER_CALLBACK_MEMBER(reply_ready); void reply_ready_with_delay(); diff --git a/src/mame/sega/mdconsole.h b/src/mame/sega/mdconsole.h index 4c08ad6d74a..11dc9952cd5 100644 --- a/src/mame/sega/mdconsole.h +++ b/src/mame/sega/mdconsole.h @@ -38,8 +38,8 @@ class md_cons_state : public md_base_state void dcat16_megadriv(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; void screen_vblank_console(int state); @@ -67,7 +67,7 @@ class md_cons_state : public md_base_state void dcat16_megadriv_base(machine_config &config); - void dcat16_megadriv_map(address_map &map); + void dcat16_megadriv_map(address_map &map) ATTR_COLD; }; @@ -89,7 +89,7 @@ class md_cons_slot_state : public md_cons_state protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; }; @@ -112,7 +112,7 @@ class md_cons_cd_state : public md_cons_state void md_32x_scd(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; }; #endif // MAME_SEGACONS_MDCONSOLE_H diff --git a/src/mame/sega/megacd.h b/src/mame/sega/megacd.h index f4bf7d5faa8..22e680fe4a5 100644 --- a/src/mame/sega/megacd.h +++ b/src/mame/sega/megacd.h @@ -101,13 +101,13 @@ class sega_segacd_device : public device_t, public device_gfx_interface, public void font_color_w(uint8_t data); uint16_t font_converted_r(offs_t offset); - void segacd_map(address_map &map); - void segacd_pcm_map(address_map &map); + void segacd_map(address_map &map) ATTR_COLD; + void segacd_pcm_map(address_map &map) ATTR_COLD; protected: sega_segacd_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; required_device m_scdcpu; required_device m_hostcpu; @@ -190,8 +190,8 @@ class sega_segacd_device : public device_t, public device_gfx_interface, public uint8_t read_pixel_from_stampmap(bitmap_ind16* srcbitmap, int x, int y); - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; TIMER_DEVICE_CALLBACK_MEMBER( dma_timer_callback ); IRQ_CALLBACK_MEMBER(segacd_sub_int_callback); diff --git a/src/mame/sega/megadriv.h b/src/mame/sega/megadriv.h index aed465004a4..b273170e3c6 100644 --- a/src/mame/sega/megadriv.h +++ b/src/mame/sega/megadriv.h @@ -36,7 +36,7 @@ class md_core_state : public driver_device { } - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; void md_core_ntsc(machine_config &config); void md_core_pal(machine_config &config); @@ -118,13 +118,13 @@ class md_base_state : public md_core_state void md2_pal(machine_config &config); void md_bootleg(machine_config &config); - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; - void megadriv_68k_base_map(address_map &map); - void megadriv_68k_map(address_map &map); - void megadriv_z80_io_map(address_map &map); - void megadriv_z80_map(address_map &map); + void megadriv_68k_base_map(address_map &map) ATTR_COLD; + void megadriv_68k_map(address_map &map) ATTR_COLD; + void megadriv_z80_io_map(address_map &map) ATTR_COLD; + void megadriv_z80_map(address_map &map) ATTR_COLD; required_device m_z80snd; required_device m_ymsnd; @@ -166,7 +166,7 @@ class md_ctrl_state : public md_base_state void ctrl1_6button(machine_config &config); void ctrl2_6button(machine_config &config); - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: template uint8_t ioport_in_3button(); diff --git a/src/mame/sega/megadriv_acbl.cpp b/src/mame/sega/megadriv_acbl.cpp index d92d4b12706..db0fc731fba 100644 --- a/src/mame/sega/megadriv_acbl.cpp +++ b/src/mame/sega/megadriv_acbl.cpp @@ -144,6 +144,12 @@ Sunset Riders info - title raster effect is broken (bug in Mega Drive code, happens with normal set too) + + TODO (barek2mb): + - Unknown inputs to Port B of the emulated PIC + - MCU clock frequency + - There is only a 50 MHz XTAL on the PCB, are the other clocks correct? + ****************************************************************************/ #include "emu.h" @@ -161,6 +167,14 @@ void md_boot_state::md_bootleg_map(address_map &map) map(0x200000, 0x2023ff).ram(); // Tested } +void md_boot_mcu_state::md_boot_mcu_map(address_map &map) +{ + md_bootleg_map(map); + + map(0x220000, 0x220001).w(FUNC(md_boot_mcu_state::mcu_w)); + map(0x330000, 0x330001).r(FUNC(md_boot_mcu_state::mcu_r)); +} + void md_boot_6button_state::ssf2mdb_68k_map(address_map &map) { megadriv_68k_map(map); @@ -171,24 +185,6 @@ void md_boot_6button_state::ssf2mdb_68k_map(address_map &map) } -void md_boot_state::megadrvb(machine_config &config) -{ - md_ntsc(config); - - ctrl1_3button(config); - ctrl2_3button(config); - - m_ioports[2]->set_in_handler(NAME([this] () { return m_io_exp.read_safe(0x3f); })); -} - -void md_boot_state::md_bootleg(machine_config &config) -{ - megadrvb(config); - - m_maincpu->set_addrmap(AS_PROGRAM, &md_boot_state::md_bootleg_map); -} - - /************************************* * * Games memory handlers @@ -250,18 +246,6 @@ uint16_t md_boot_state::jparkmb_r() return 0x0000; } -uint16_t md_boot_state::barek2mb_r() -{ - if (m_maincpu->pc() == 0xfa40) - return 0x0400; // TODO: what's this? Needed or the game doesn't boot - - if (m_maincpu->pc() == 0xfa88) - return 0x0ff0; // TODO: fix this, should probably read coin inputs, as is gives 9 credits at start up - - logerror("barek2mb_r : %06x\n", m_maincpu->pc()); - return 0x0000; -} - uint16_t md_boot_state::barek3mba_r() // missing PIC dump, simulated for now { if (m_maincpu->pc() == 0x4dbc6) @@ -315,6 +299,83 @@ uint16_t md_boot_state::dsw_r(offs_t offset) } +/************************************* + * + * PIC MCU Emulation + * + *************************************/ + +uint16_t md_boot_mcu_state::mcu_r() +{ + return (m_mcu_out_latch_msb << 8) | m_mcu_out_latch_lsb; +} + +void md_boot_mcu_state::mcu_w(uint16_t data) +{ + m_mcu_in_latch_lsb = data >> 0; + m_mcu_in_latch_msb = data >> 8; +} + +void md_boot_mcu_state::mcu_porta_w(uint8_t data) +{ + // 3--- select dsw (0) or latches (1) + // -2-- latch enable + // --1- select input (0) or output (1) latches + // ---0 select lsb or msb latches + + if (BIT(data, 2) == 0) + { + if (BIT(data, 1) == 1) + { + if (BIT(data, 0) == 0) + m_mcu_out_latch_lsb = m_mcu_portc; + else + m_mcu_out_latch_msb = m_mcu_portc; + } + } + + m_mcu_porta = data; +} + +void md_boot_mcu_state::mcu_portb_w(uint8_t data) +{ + // 7------- unused + // -6------ cleared on reset + // --5----- toggled on input to b3 + // ---4---- toggled on input to b2 + // ----3--- unknown (input) + // -----2-- unknown (input) + // ------1- unused (input) + // -------0 coin (input) +} + +uint8_t md_boot_mcu_state::mcu_portc_r() +{ + // read dip switches + if (BIT(m_mcu_porta, 3) == 0) + return m_dsw->read(); + + // read from latch + if (BIT(m_mcu_porta, 1) == 0) + { + if (BIT(m_mcu_porta, 0) == 0) + return m_mcu_in_latch_lsb; + else + return m_mcu_in_latch_msb; + } + + // should never go here + logerror("mcu: read from output latch!\n"); + + return 0xff; +} + +void md_boot_mcu_state::mcu_portc_w(uint8_t data) +{ + m_mcu_portc = data; +} + + /************************************* * * Game-specific port definitions @@ -623,7 +684,7 @@ INPUT_PORTS_START( srmdb ) PORT_DIPSETTING( 0x00, "6" ) INPUT_PORTS_END -INPUT_PORTS_START( barekch ) // TODO: identify dips. PCB has 3 x 8-dip banks, but probably most unused +INPUT_PORTS_START( barekch ) // TODO: identify DIP switches. PCB has 3 x 8-switch banks, but probably most unused PORT_INCLUDE( md_common ) PORT_MODIFY("PAD1") @@ -743,8 +804,43 @@ INPUT_PORTS_START( barek2ch ) INPUT_PORTS_END INPUT_PORTS_START( barek2 ) - PORT_INCLUDE( aladmdb ) - // TODO! + PORT_INCLUDE( md_common ) + + PORT_START("DSW") + PORT_DIPNAME(0x0f, 0x0f, DEF_STR( Coinage )) + PORT_DIPSETTING( 0x05, DEF_STR( 6C_1C )) + PORT_DIPSETTING( 0x06, DEF_STR( 5C_1C )) + PORT_DIPSETTING( 0x07, DEF_STR( 4C_1C )) + PORT_DIPSETTING( 0x08, DEF_STR( 3C_1C )) + PORT_DIPSETTING( 0x01, DEF_STR( 8C_3C )) + PORT_DIPSETTING( 0x09, DEF_STR( 2C_1C )) + PORT_DIPSETTING( 0x02, DEF_STR( 5C_3C )) + PORT_DIPSETTING( 0x03, DEF_STR( 3C_2C )) + PORT_DIPSETTING( 0x0f, DEF_STR( 1C_1C )) + PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C )) // duplicate + PORT_DIPSETTING( 0x04, DEF_STR( 2C_3C )) + PORT_DIPSETTING( 0x0e, DEF_STR( 1C_2C )) + PORT_DIPSETTING( 0x0d, DEF_STR( 1C_3C )) + PORT_DIPSETTING( 0x0c, DEF_STR( 1C_4C )) + PORT_DIPSETTING( 0x0b, DEF_STR( 1C_5C )) + PORT_DIPSETTING( 0x0a, DEF_STR( 1C_6C )) + PORT_DIPNAME(0x30, 0x30, DEF_STR( Lives )) + PORT_DIPSETTING( 0x30, "1" ) + PORT_DIPSETTING( 0x20, "2" ) + PORT_DIPSETTING( 0x10, "3" ) + PORT_DIPSETTING( 0x00, "4" ) + PORT_DIPNAME(0xc0, 0xc0, DEF_STR( Difficulty )) + PORT_DIPSETTING( 0xc0, DEF_STR( Easy )) + PORT_DIPSETTING( 0x80, DEF_STR( Medium )) + PORT_DIPSETTING( 0x40, DEF_STR( Hard )) + PORT_DIPSETTING( 0x00, DEF_STR( Hardest )) + + PORT_START("IN0") + PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_COIN1) + PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_UNUSED) + PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_UNKNOWN) + PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_UNKNOWN) + PORT_BIT(0xf0, IP_ACTIVE_LOW, IPT_UNUSED) INPUT_PORTS_END INPUT_PORTS_START( barek3 ) @@ -847,6 +943,37 @@ INPUT_PORTS_END * *************************************/ +void md_boot_state::megadrvb(machine_config &config) +{ + md_ntsc(config); + + ctrl1_3button(config); + ctrl2_3button(config); + + m_ioports[2]->set_in_handler(NAME([this] () { return m_io_exp.read_safe(0x3f); })); +} + +void md_boot_state::md_bootleg(machine_config &config) +{ + megadrvb(config); + + m_maincpu->set_addrmap(AS_PROGRAM, &md_boot_state::md_bootleg_map); +} + +void md_boot_mcu_state::md_boot_mcu(machine_config &config) +{ + megadrvb(config); + + m_maincpu->set_addrmap(AS_PROGRAM, &md_boot_mcu_state::md_boot_mcu_map); + + PIC16C57(config, m_mcu, 4'000'000); // unknown clock + m_mcu->write_a().set(FUNC(md_boot_mcu_state::mcu_porta_w)); + m_mcu->read_b().set_ioport("IN0"); + m_mcu->write_b().set(FUNC(md_boot_mcu_state::mcu_portb_w)); + m_mcu->read_c().set(FUNC(md_boot_mcu_state::mcu_portc_r)); + m_mcu->write_c().set(FUNC(md_boot_mcu_state::mcu_portc_w)); +} + void md_boot_6button_state::machine_start() { md_boot_state::machine_start(); @@ -869,7 +996,6 @@ void md_boot_6button_state::ssf2mdb(machine_config &config) } - /************************************* * * Game-specific driver inits @@ -969,15 +1095,6 @@ void md_boot_state::init_srmdb() init_megadriv(); } - -void md_boot_state::init_barek2() -{ - m_maincpu->space(AS_PROGRAM).install_write_handler(0x220000, 0x220001, write16smo_delegate(*this, FUNC(md_boot_state::aladmdb_w))); - m_maincpu->space(AS_PROGRAM).install_read_handler(0x330000, 0x330001, read16smo_delegate(*this, FUNC(md_boot_state::barek2mb_r))); - - init_megadrij(); -} - void md_boot_6button_state::init_barekch() { uint16_t *src = (uint16_t *)memregion("maincpu")->base(); @@ -1181,8 +1298,7 @@ ROM_START( barek2mb ) ROM_LOAD16_BYTE( "m3.bin", 0x100001, 0x080000, CRC(6ec5af5d) SHA1(9088a2d4cff5e7eb439ebaa91ad3bfff11366127) ) ROM_LOAD16_BYTE( "m4.bin", 0x100000, 0x080000, CRC(d8c61e0d) SHA1(3d06e656f6621bb0741211f80c1ecff1669475ee) ) - // Not hooked up yet - ROM_REGION( 0x1000, "pic", ROMREGION_ERASE00 ) + ROM_REGION( 0x1000, "mcu", 0 ) ROM_LOAD( "bk_pic16c57rcp.bin", 0x0000, 0x1000, CRC(434ad1b7) SHA1(9241554793c7375cf58239e762481a4b80a51df6) ) // Unprotected ROM_END @@ -1270,7 +1386,7 @@ GAME( 1994, ssf2mdb, 0, ssf2mdb, ssf2mdb, md_boot_6button_state, GAME( 1993, srmdb, 0, megadrvb, srmdb, md_boot_state, init_srmdb, ROT0, "bootleg / Konami", "Sunset Riders (bootleg of Mega Drive version)", 0 ) GAME( 1993, sonic2mb, 0, md_bootleg, sonic2mb, md_boot_state, init_sonic2mb, ROT0, "bootleg / Sega", "Sonic The Hedgehog 2 (bootleg of Mega Drive version)", 0 ) // Flying wires going through the empty PIC space aren't completely understood GAME( 1993, sonic3mb, 0, md_bootleg, sonic3mb, md_sonic3bl_state, init_sonic3mb, ROT0, "bootleg / Sega", "Sonic The Hedgehog 3 (bootleg of Mega Drive version)", MACHINE_UNEMULATED_PROTECTION | MACHINE_NOT_WORKING ) // undumped PIC -GAME( 1994, barek2mb, 0, md_bootleg, barek2, md_boot_state, init_barek2, ROT0, "bootleg / Sega", "Bare Knuckle II (bootleg of Mega Drive version)", MACHINE_UNEMULATED_PROTECTION | MACHINE_NOT_WORKING ) // Needs PIC hook up +GAME( 1994, barek2mb, 0, md_boot_mcu, barek2, md_boot_mcu_state, init_megadrij, ROT0, "bootleg / Sega", "Bare Knuckle II (bootleg of Mega Drive version)", 0 ) // PCB labeled "BK-059" GAME( 1994, barek3mb, 0, megadrvb, barek3, md_boot_state, init_barek3, ROT0, "bootleg / Sega", "Bare Knuckle III (bootleg of Mega Drive version)", 0 ) GAME( 1994, barek3mba, barek3mb, megadrvb, barek3, md_boot_state, init_barek3a, ROT0, "bootleg / Sega", "Bare Knuckle III (bootleg of Mega Drive version, protected)", MACHINE_UNEMULATED_PROTECTION | MACHINE_NOT_WORKING ) // undumped PIC GAME( 1994, bk3ssrmb, 0, megadrvb_6b, bk3ssrmb, md_boot_6button_state, init_bk3ssrmb, ROT0, "bootleg / Sega", "Bare Knuckle III / Sunset Riders (bootleg of Mega Drive versions)", MACHINE_NOT_WORKING ) // Currently boots as Bare Knuckle III, mechanism to switch game not found yet diff --git a/src/mame/sega/megadriv_acbl.h b/src/mame/sega/megadriv_acbl.h index 23446bb09e0..fdb028c6910 100644 --- a/src/mame/sega/megadriv_acbl.h +++ b/src/mame/sega/megadriv_acbl.h @@ -4,6 +4,7 @@ #define MAME_SEGA_MEGADRIV_ACBL_H #include "megadriv.h" +#include "cpu/pic16c5x/pic16c5x.h" class md_boot_state : public md_ctrl_state @@ -19,7 +20,6 @@ class md_boot_state : public md_ctrl_state void init_aladmdb(); void init_srmdb(); - void init_barek2(); void init_barek2ch(); void init_barek3(); void init_barek3a(); @@ -30,12 +30,11 @@ class md_boot_state : public md_ctrl_state protected: uint16_t dsw_r(offs_t offset); - void md_bootleg_map(address_map &map); + void md_bootleg_map(address_map &map) ATTR_COLD; private: void aladmdb_w(uint16_t data); uint16_t aladmdb_r(); - uint16_t barek2mb_r(); uint16_t barek3mba_r(); uint16_t jparkmb_r(); uint16_t twinktmb_r(); @@ -46,6 +45,40 @@ class md_boot_state : public md_ctrl_state int m_aladmdb_mcu_port = 0; }; +// for games with emulated PIC microcontroller +class md_boot_mcu_state : public md_boot_state +{ +public: + md_boot_mcu_state(const machine_config &mconfig, device_type type, const char *tag) : + md_boot_state(mconfig, type, tag), + m_mcu(*this, "mcu"), + m_dsw(*this, "DSW") + { } + + void md_boot_mcu(machine_config &config); + +private: + void md_boot_mcu_map(address_map &map) ATTR_COLD; + + uint16_t mcu_r(); + void mcu_w(uint16_t data); + + void mcu_porta_w(uint8_t data); + uint8_t mcu_portc_r(); + void mcu_portb_w(uint8_t data); + void mcu_portc_w(uint8_t data); + + required_device m_mcu; + required_ioport m_dsw; + + uint8_t m_mcu_porta = 0; + uint8_t m_mcu_portc = 0; + uint8_t m_mcu_in_latch_msb = 0; + uint8_t m_mcu_in_latch_lsb = 0; + uint8_t m_mcu_out_latch_msb = 0; + uint8_t m_mcu_out_latch_lsb = 0; +}; + class md_sonic3bl_state : public md_boot_state { public: @@ -83,10 +116,10 @@ class md_boot_6button_state : public md_boot_state void init_barekch(); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: - void ssf2mdb_68k_map(address_map &map); + void ssf2mdb_68k_map(address_map &map) ATTR_COLD; }; #endif // MAME_SEGA_MEGADRIV_ACBL_H diff --git a/src/mame/sega/megadriv_rad.cpp b/src/mame/sega/megadriv_rad.cpp index a5d4f1f5d75..272500dfea3 100644 --- a/src/mame/sega/megadriv_rad.cpp +++ b/src/mame/sega/megadriv_rad.cpp @@ -39,9 +39,9 @@ class megadriv_radica_state_base : public md_ctrl_state uint16_t read(offs_t offset); uint16_t read_a13(offs_t offset); - void megadriv_radica_map(address_map &map); + void megadriv_radica_map(address_map &map) ATTR_COLD; - void radica_base_map(address_map &map); + void radica_base_map(address_map &map) ATTR_COLD; int m_bank; int m_romsize; @@ -65,8 +65,8 @@ class megadriv_radica_state : public megadriv_radica_state_base void megadriv_radica_6button_pal(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; }; @@ -82,7 +82,7 @@ class megadriv_dgunl_state : public megadriv_radica_state void init_dgunl3227(); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; uint16_t m_a1630a = 0; @@ -91,7 +91,7 @@ class megadriv_dgunl_state : public megadriv_radica_state uint16_t read_a16302(offs_t offset, uint16_t mem_mask); virtual void write_a1630a(offs_t offset, uint16_t data, uint16_t mem_mask); - void megadriv_dgunl_map(address_map &map); + void megadriv_dgunl_map(address_map &map) ATTR_COLD; }; @@ -107,7 +107,7 @@ class megadriv_ra145_state : public megadriv_dgunl_state void init_ra145(); protected: - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; private: virtual void write_a1630a(offs_t offset, uint16_t data, uint16_t mem_mask) override; diff --git a/src/mame/sega/megadriv_sunmix.cpp b/src/mame/sega/megadriv_sunmix.cpp index 87c3a3cdcae..94752c2f942 100644 --- a/src/mame/sega/megadriv_sunmix.cpp +++ b/src/mame/sega/megadriv_sunmix.cpp @@ -137,8 +137,8 @@ class md_sunmixing_state : public md_base_state void sbubsm(machine_config &config); private: - void topshoot_68k_map(address_map &map); - void sbubsm_68k_map(address_map &map); + void topshoot_68k_map(address_map &map) ATTR_COLD; + void sbubsm_68k_map(address_map &map) ATTR_COLD; uint16_t topshoot_200051_r(); uint16_t sbubsm_400000_r(); diff --git a/src/mame/sega/megadriv_sunplus_hybrid.cpp b/src/mame/sega/megadriv_sunplus_hybrid.cpp index 76bc0a7c527..f3c77d0abc4 100644 --- a/src/mame/sega/megadriv_sunplus_hybrid.cpp +++ b/src/mame/sega/megadriv_sunplus_hybrid.cpp @@ -36,8 +36,8 @@ class megadriv_sunplus_state : public md_ctrl_state void init_reactmd(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: bool m_md_is_running; @@ -49,7 +49,7 @@ class megadriv_sunplus_state : public md_ctrl_state uint32_t screen_update_hybrid(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); void screen_vblank_hybrid(int state); - void megadriv_sunplus_map(address_map &map); + void megadriv_sunplus_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/sega/megadriv_vt_hybrid.cpp b/src/mame/sega/megadriv_vt_hybrid.cpp index 10d26772f6c..6ceccf51976 100644 --- a/src/mame/sega/megadriv_vt_hybrid.cpp +++ b/src/mame/sega/megadriv_vt_hybrid.cpp @@ -33,8 +33,8 @@ class megadriv_vt0203_state : public md_ctrl_state void megadriv_vt0203_pal(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: bool m_md_is_running; @@ -46,7 +46,7 @@ class megadriv_vt0203_state : public md_ctrl_state uint32_t screen_update_hybrid(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); void screen_vblank_hybrid(int state); - void megadriv_vt0203_map(address_map &map); + void megadriv_vt0203_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/sega/megaplay.cpp b/src/mame/sega/megaplay.cpp index 7b20606f2f0..e83b50ca88e 100644 --- a/src/mame/sega/megaplay.cpp +++ b/src/mame/sega/megaplay.cpp @@ -63,7 +63,7 @@ class mplay_state : public md_ctrl_state int start2_r(); protected: - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; private: @@ -88,8 +88,8 @@ class mplay_state : public md_ctrl_state uint32_t screen_update_megplay(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void megaplay_bios_io_map(address_map &map); - void megaplay_bios_map(address_map &map); + void megaplay_bios_io_map(address_map &map) ATTR_COLD; + void megaplay_bios_map(address_map &map) ATTR_COLD; uint32_t m_bios_mode = 0; // determines whether ROM banks or Game data is to read from 0x8000-0xffff diff --git a/src/mame/sega/megatech.cpp b/src/mame/sega/megatech.cpp index 72572e6a6e5..12291378237 100644 --- a/src/mame/sega/megatech.cpp +++ b/src/mame/sega/megatech.cpp @@ -122,8 +122,8 @@ class mtech_state : public md_ctrl_state void init_mt_slot(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: void megatech(machine_config &config); @@ -161,8 +161,8 @@ class mtech_state : public md_ctrl_state uint32_t screen_update_menu(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); void screen_vblank_main(int state); - void megatech_bios_map(address_map &map); - void megatech_bios_portmap(address_map &map); + void megatech_bios_map(address_map &map) ATTR_COLD; + void megatech_bios_portmap(address_map &map) ATTR_COLD; uint8_t m_mt_cart_select_reg = 0; uint32_t m_bios_port_ctrl = 0; diff --git a/src/mame/sega/mie.h b/src/mame/sega/mie.h index 22e09abd3b0..66406749e92 100644 --- a/src/mame/sega/mie.h +++ b/src/mame/sega/mie.h @@ -74,19 +74,19 @@ class mie_device : public maple_device void maple_w(const uint32_t *data, uint32_t in_size) override; virtual void maple_reset() override; - void mie_map(address_map &map); - void mie_port(address_map &map); + void mie_map(address_map &map) ATTR_COLD; + void mie_port(address_map &map) ATTR_COLD; protected: template void set_gpio_names() { } // 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; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; TIMER_CALLBACK_MEMBER(update_irq_reply); diff --git a/src/mame/sega/model1.h b/src/mame/sega/model1.h index 420949ca45c..cfaa1b0d664 100644 --- a/src/mame/sega/model1.h +++ b/src/mame/sega/model1.h @@ -96,8 +96,8 @@ class model1_state : public driver_device private: // Machine - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; void bank_w(offs_t offset, u16 data, u16 mem_mask = ~0); @@ -143,7 +143,7 @@ class model1_state : public driver_device void r360_w(uint8_t data); // Rendering - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; u16 model1_listctl_r(offs_t offset); void model1_listctl_w(offs_t offset, u16 data, u16 mem_mask = ~0); @@ -193,17 +193,17 @@ class model1_state : public driver_device lightparam_t lightparams[32]; }; - void model1_io(address_map &map); - void model1_mem(address_map &map); - void model1_comm_mem(address_map &map); + void model1_io(address_map &map) ATTR_COLD; + void model1_mem(address_map &map) ATTR_COLD; + void model1_comm_mem(address_map &map) ATTR_COLD; - void copro_prog_map(address_map &map); - void copro_data_map(address_map &map); - void copro_external_map(address_map &map); - void copro_io_map(address_map &map); - void copro_rf_map(address_map &map); + void copro_prog_map(address_map &map) ATTR_COLD; + void copro_data_map(address_map &map) ATTR_COLD; + void copro_external_map(address_map &map) ATTR_COLD; + void copro_io_map(address_map &map) ATTR_COLD; + void copro_rf_map(address_map &map) ATTR_COLD; - void polhemus_map(address_map &map); + void polhemus_map(address_map &map) ATTR_COLD; // Machine void irq_raise(int level); diff --git a/src/mame/sega/model1io.h b/src/mame/sega/model1io.h index 162f7380462..111a8a119e8 100644 --- a/src/mame/sega/model1io.h +++ b/src/mame/sega/model1io.h @@ -37,14 +37,14 @@ class model1io_device : public device_t template auto an_callback() { return m_an_cb[N].bind(); } auto output_callback() { return m_output_cb.bind(); } - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; protected: // device-level overrides - virtual void device_start() override; - virtual const tiny_rom_entry *device_rom_region() const override; - virtual ioport_constructor device_input_ports() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_start() override ATTR_COLD; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: required_device m_eeprom; diff --git a/src/mame/sega/model1io2.h b/src/mame/sega/model1io2.h index 6983f51e182..566323c2b23 100644 --- a/src/mame/sega/model1io2.h +++ b/src/mame/sega/model1io2.h @@ -42,18 +42,18 @@ class model1io2_device : public device_t template void set_lightgun_p2x_tag(T && tag) { m_lightgun_ports[3].set_tag(std::forward(tag)); } protected: - void mem_map(address_map &map); - void io_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; void lcd_palette(palette_device &palette) const; HD44780_PIXEL_UPDATE(lcd_pixel_update); // device-level overrides - virtual void device_start() override; - virtual void device_reset() override; - virtual ioport_constructor device_input_ports() const 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 ioport_constructor device_input_ports() const 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; private: required_device m_eeprom; diff --git a/src/mame/sega/model2.h b/src/mame/sega/model2.h index 36ea35deb9a..1ef438cf5f6 100644 --- a/src/mame/sega/model2.h +++ b/src/mame/sega/model2.h @@ -103,8 +103,8 @@ class model2_state : public driver_device void init_powsledm(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; required_shared_ptr m_workram; required_shared_ptr m_bufferram; @@ -197,7 +197,7 @@ class model2_state : public driver_device void vertical_sync_w(u16 data); u32 doa_prot_r(offs_t offset, u32 mem_mask = ~0); u32 doa_unk_r(); - void sega_0229_map(address_map &map); + void sega_0229_map(address_map &map) ATTR_COLD; int m_prot_a = 0; void raster_init(memory_region *texture_rom); @@ -238,14 +238,14 @@ class model2_state : public driver_device void sj25_0207_01(machine_config &config); - void drive_io_map(address_map &map); - void drive_map(address_map &map); - void geo_sharc_map(address_map &map); - void model2_base_mem(address_map &map); - void model2_5881_mem(address_map &map); - void model2_0229_mem(address_map &map); - void model2_snd(address_map &map); - void scsp_map(address_map &map); + void drive_io_map(address_map &map) ATTR_COLD; + void drive_map(address_map &map) ATTR_COLD; + void geo_sharc_map(address_map &map) ATTR_COLD; + void model2_base_mem(address_map &map) ATTR_COLD; + void model2_5881_mem(address_map &map) ATTR_COLD; + void model2_0229_mem(address_map &map) ATTR_COLD; + void model2_snd(address_map &map) ATTR_COLD; + void scsp_map(address_map &map) ATTR_COLD; void debug_init(); void debug_commands(const std::vector ¶ms); @@ -253,7 +253,7 @@ class model2_state : public driver_device void debug_tri_dump_command(const std::vector ¶ms); void debug_help_command(const std::vector ¶ms); - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; u32 m_intreq = 0; u32 m_intena = 0; @@ -335,8 +335,8 @@ class model2_tgp_state : public model2_state {} protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; required_device m_copro_tgp; required_shared_ptr m_copro_tgp_program; @@ -368,12 +368,12 @@ class model2_tgp_state : public model2_state void copro_atan_w(offs_t offset, u32 data, u32 mem_mask = ~0); u32 copro_atan_r(); - void model2_tgp_mem(address_map &map); + void model2_tgp_mem(address_map &map) ATTR_COLD; - void copro_tgp_prog_map(address_map &map); - void copro_tgp_data_map(address_map &map); - void copro_tgp_io_map(address_map &map); - void copro_tgp_rf_map(address_map &map); + void copro_tgp_prog_map(address_map &map) ATTR_COLD; + void copro_tgp_data_map(address_map &map) ATTR_COLD; + void copro_tgp_io_map(address_map &map) ATTR_COLD; + void copro_tgp_rf_map(address_map &map) ATTR_COLD; virtual void copro_halt() override; virtual void copro_boot() override; @@ -403,7 +403,7 @@ class model2o_state : public model2_tgp_state void desert_output_w(u8 data); void vcop_output_w(u8 data); - void model2o_mem(address_map &map); + void model2o_mem(address_map &map) ATTR_COLD; }; /***************************** @@ -421,7 +421,7 @@ class model2o_maxx_state : public model2o_state u32 maxx_r(offs_t offset, u32 mem_mask = ~0); void daytona_maxx(machine_config &config); - void model2o_maxx_mem(address_map &map); + void model2o_maxx_mem(address_map &map) ATTR_COLD; private: int m_maxxstate = 0; @@ -443,13 +443,13 @@ class model2o_gtx_state : public model2o_state void daytona_gtx(machine_config &config); protected: - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; private: int m_gtx_state = 0; u8 gtx_r(offs_t offset); - void model2o_gtx_mem(address_map &map); + void model2o_gtx_mem(address_map &map) ATTR_COLD; }; /***************************** @@ -477,11 +477,11 @@ class model2a_state : public model2_tgp_state void zeroguna(machine_config &config); protected: - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; - void model2a_crx_mem(address_map &map); - void model2a_5881_mem(address_map &map); - void model2a_0229_mem(address_map &map); + void model2a_crx_mem(address_map &map) ATTR_COLD; + void model2a_5881_mem(address_map &map) ATTR_COLD; + void model2a_0229_mem(address_map &map) ATTR_COLD; private: required_device m_billboard; @@ -514,8 +514,8 @@ class model2b_state : public model2_state void zerogun(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; required_device m_copro_adsp; @@ -526,14 +526,14 @@ class model2b_state : public model2_state u32 copro_sharc_buffer_r(offs_t offset); void copro_sharc_buffer_w(offs_t offset, u32 data); - void model2b_crx_mem(address_map &map); - void model2b_5881_mem(address_map &map); - void model2b_0229_mem(address_map &map); + void model2b_crx_mem(address_map &map) ATTR_COLD; + void model2b_5881_mem(address_map &map) ATTR_COLD; + void model2b_0229_mem(address_map &map) ATTR_COLD; // TODO: split into own class - void rchase2_iocpu_map(address_map &map); - void rchase2_ioport_map(address_map &map); + void rchase2_iocpu_map(address_map &map) ATTR_COLD; + void rchase2_ioport_map(address_map &map) ATTR_COLD; - void copro_sharc_map(address_map &map); + void copro_sharc_map(address_map &map) ATTR_COLD; virtual void copro_halt() override; virtual void copro_boot() override; @@ -569,8 +569,8 @@ class model2c_state : public model2_state void topskatr(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; required_device m_copro_tgpx4; required_shared_ptr m_copro_tgpx4_program; @@ -581,10 +581,10 @@ class model2c_state : public model2_state TIMER_DEVICE_CALLBACK_MEMBER(model2c_interrupt); - void model2c_crx_mem(address_map &map); - void model2c_5881_mem(address_map &map); - void copro_tgpx4_map(address_map &map); - void copro_tgpx4_data_map(address_map &map); + void model2c_crx_mem(address_map &map) ATTR_COLD; + void model2c_5881_mem(address_map &map) ATTR_COLD; + void copro_tgpx4_map(address_map &map) ATTR_COLD; + void copro_tgpx4_data_map(address_map &map) ATTR_COLD; virtual void copro_halt() override; virtual void copro_boot() override; diff --git a/src/mame/sega/model3.h b/src/mame/sega/model3.h index 35a8d714ef7..1cbd504c4ed 100644 --- a/src/mame/sega/model3.h +++ b/src/mame/sega/model3.h @@ -190,7 +190,7 @@ class model3_state : public driver_device void init_model3_15(); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -428,14 +428,14 @@ class model3_state : public driver_device uint16_t crypt_read_callback(uint32_t addr); - void model3_5881_mem(address_map &map); - void model3_10_mem(address_map &map); - void model3_mem(address_map &map); - void model3_snd(address_map &map); - void scsp1_map(address_map &map); - void scsp2_map(address_map &map); - void getbass_iocpu_mem(address_map &map); - void getbass_iocpu_io(address_map &map); + void model3_5881_mem(address_map &map) ATTR_COLD; + void model3_10_mem(address_map &map) ATTR_COLD; + void model3_mem(address_map &map) ATTR_COLD; + void model3_snd(address_map &map) ATTR_COLD; + void scsp1_map(address_map &map) ATTR_COLD; + void scsp2_map(address_map &map) ATTR_COLD; + void getbass_iocpu_mem(address_map &map) ATTR_COLD; + void getbass_iocpu_io(address_map &map) ATTR_COLD; }; #endif // MAME_SEGA_MODEL3_H diff --git a/src/mame/sega/monacogp.cpp b/src/mame/sega/monacogp.cpp index 7440560148f..4612e3e798a 100644 --- a/src/mame/sega/monacogp.cpp +++ b/src/mame/sega/monacogp.cpp @@ -152,10 +152,10 @@ class monacogp_state : public driver_device required_device m_video; // driver_device overrides - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; }; diff --git a/src/mame/sega/naomi.h b/src/mame/sega/naomi.h index 4020c8564a8..6bddbcd1cbc 100644 --- a/src/mame/sega/naomi.h +++ b/src/mame/sega/naomi.h @@ -84,8 +84,8 @@ class naomi_state : public dc_state uint8_t asciihex_to_dec(uint8_t in); void create_pic_from_retdat(); - void naomi_map(address_map &map); - void naomi_port(address_map &map); + void naomi_map(address_map &map) ATTR_COLD; + void naomi_port(address_map &map) ATTR_COLD; void set_drc_options(); }; @@ -114,7 +114,7 @@ class naomi2_state : public naomi_state required_shared_ptr m_elan_ram; required_device m_powervr2_slave; - void naomi2_map(address_map &map); + void naomi2_map(address_map &map) ATTR_COLD; void both_pvr2_ta_w(address_space &space, offs_t offset, uint32_t data, uint32_t mem_mask = ~0); diff --git a/src/mame/sega/naomibd.h b/src/mame/sega/naomibd.h index ab0904e549e..64f94fb8662 100644 --- a/src/mame/sega/naomibd.h +++ b/src/mame/sega/naomibd.h @@ -12,7 +12,7 @@ class naomi_board : public naomi_g1_device { public: // Can be patched in the underlying class - virtual void submap(address_map &map) override; + virtual void submap(address_map &map) override ATTR_COLD; void rom_offseth_w(uint16_t data); // 5f7000 void rom_offsetl_w(uint16_t data); // 5f7004 @@ -30,8 +30,8 @@ class naomi_board : public naomi_g1_device protected: naomi_board(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 void dma_get_position(uint8_t *&base, uint32_t &limit, bool to_mainram) override; virtual void dma_advance(uint32_t size) override; diff --git a/src/mame/sega/naomig1.h b/src/mame/sega/naomig1.h index a6f8d91302b..266e5798498 100644 --- a/src/mame/sega/naomig1.h +++ b/src/mame/sega/naomig1.h @@ -21,7 +21,7 @@ class naomi_g1_device : public device_t auto reset_out_callback() { return reset_out_cb.bind(); } void set_dma_cb(dma_cb cb) { _dma_cb = cb; } - void amap(address_map &map); // for range 0x005f7400-0x005f74ff + void amap(address_map &map) ATTR_COLD; // for range 0x005f7400-0x005f74ff virtual void submap(address_map &map) = 0; // for range 0x005f7000-0x005f70ff uint32_t sb_gdstar_r(); // 5f7404 @@ -53,8 +53,8 @@ class naomi_g1_device : public device_t protected: naomi_g1_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 void dma_get_position(uint8_t *&base, uint32_t &limit, bool to_maincpu) = 0; virtual void dma_advance(uint32_t size) = 0; diff --git a/src/mame/sega/naomigd.h b/src/mame/sega/naomigd.h index aa46a60ac34..ee7e907c640 100644 --- a/src/mame/sega/naomigd.h +++ b/src/mame/sega/naomigd.h @@ -21,11 +21,11 @@ class idegdrom_device : public pci_device { auto irq_callback() { return irq_cb.bind(); } - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; - void map_command(address_map &map); - void map_control(address_map &map); - void map_dma(address_map &map); + void map_command(address_map &map) ATTR_COLD; + void map_control(address_map &map) ATTR_COLD; + void map_dma(address_map &map) ATTR_COLD; uint32_t ide_cs0_r(offs_t offset, uint32_t mem_mask = ~0); uint32_t ide_cs1_r(offs_t offset, uint32_t mem_mask = ~0); @@ -34,8 +34,8 @@ class idegdrom_device : public pci_device { void ide_irq(int state); protected: - 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 map_extra(uint64_t memory_window_start, uint64_t memory_window_end, uint64_t memory_offset, address_space *memory_space, uint64_t io_window_start, uint64_t io_window_end, uint64_t io_offset, address_space *io_space) override; @@ -71,12 +71,12 @@ class naomi_gdrom_board : public naomi_board naomi_gdrom_board(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - virtual void device_add_mconfig(machine_config &config) override; - virtual void submap(address_map &map) override; - void sh4_map(address_map &map); - void sh4_io_map(address_map &map); - void pci_map(address_map &map); - void pci_config_map(address_map &map); + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void submap(address_map &map) override ATTR_COLD; + void sh4_map(address_map &map) ATTR_COLD; + void sh4_io_map(address_map &map) ATTR_COLD; + void pci_map(address_map &map) ATTR_COLD; + void pci_config_map(address_map &map) ATTR_COLD; void set_image_tag(const char *_image_tag) { @@ -85,7 +85,7 @@ class naomi_gdrom_board : public naomi_board uint8_t *memory(uint32_t &size) { size = dimm_data_size; return dimm_data.get(); } - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; void dimm_command_w(uint16_t data); // 5f703c uint16_t dimm_command_r(); @@ -128,9 +128,9 @@ class naomi_gdrom_board : public naomi_board void pic_dimm_w(offs_t offset, uint8_t data, uint8_t mem_mask); protected: - virtual void device_start() override; - virtual void device_reset() override; - virtual ioport_constructor device_input_ports() const override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; virtual void board_setup_address(uint32_t address, bool is_dma) override; virtual void board_get_buffer(uint8_t *&base, uint32_t &limit) override; diff --git a/src/mame/sega/naomim1.h b/src/mame/sega/naomim1.h index 9872f0bebb5..51be50b9536 100644 --- a/src/mame/sega/naomim1.h +++ b/src/mame/sega/naomim1.h @@ -20,13 +20,13 @@ class naomi_m1_board : public naomi_board naomi_m1_board(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - virtual void submap(address_map &map) override; + virtual void submap(address_map &map) override ATTR_COLD; uint16_t actel_id_r(); protected: - 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 board_setup_address(uint32_t address, bool is_dma) override; virtual void board_get_buffer(uint8_t *&base, uint32_t &limit) override; diff --git a/src/mame/sega/naomim2.h b/src/mame/sega/naomim2.h index 0e8fc6116d2..e6448c34097 100644 --- a/src/mame/sega/naomim2.h +++ b/src/mame/sega/naomim2.h @@ -25,9 +25,9 @@ class naomi_m2_board : public naomi_board std::unique_ptr ram; protected: - 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; virtual void board_setup_address(uint32_t address, bool is_dma) override; virtual void board_get_buffer(uint8_t *&base, uint32_t &limit) override; diff --git a/src/mame/sega/naomim4.h b/src/mame/sega/naomim4.h index da759f50dc4..cb5b79c2f46 100644 --- a/src/mame/sega/naomim4.h +++ b/src/mame/sega/naomim4.h @@ -19,12 +19,12 @@ class naomi_m4_board : public naomi_board naomi_m4_board(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - virtual void submap(address_map &map) override; + virtual void submap(address_map &map) override ATTR_COLD; uint16_t m4_id_r(); protected: - 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 board_setup_address(uint32_t address, bool is_dma) override; virtual void board_get_buffer(uint8_t *&base, uint32_t &limit) override; diff --git a/src/mame/sega/naomirom.h b/src/mame/sega/naomirom.h index 4c0282c7493..d50d25e55ae 100644 --- a/src/mame/sega/naomirom.h +++ b/src/mame/sega/naomirom.h @@ -18,8 +18,8 @@ class naomi_rom_board : public naomi_board naomi_rom_board(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - 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 board_setup_address(uint32_t address, bool is_dma) override; virtual void board_get_buffer(uint8_t *&base, uint32_t &limit) override; diff --git a/src/mame/sega/powervr2.h b/src/mame/sega/powervr2.h index a2afbf4c7f9..863d0f44205 100644 --- a/src/mame/sega/powervr2.h +++ b/src/mame/sega/powervr2.h @@ -32,8 +32,8 @@ class powervr2_device : public device_t, ERR_PVRIF_ILL_ADDR_IRQ }; - void ta_map(address_map &map); - void pd_dma_map(address_map &map); + void ta_map(address_map &map) ATTR_COLD; + void pd_dma_map(address_map &map) ATTR_COLD; struct { uint32_t pvr_addr; @@ -338,8 +338,8 @@ class powervr2_device : public device_t, inline uint32_t sample_textured(texinfo *ti, float u, float v, uint32_t offset_color, uint32_t base_color); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; ioport_constructor device_input_ports() const override; private: diff --git a/src/mame/sega/s32comm.h b/src/mame/sega/s32comm.h index 2dc3f1fd72d..9c60a44b422 100644 --- a/src/mame/sega/s32comm.h +++ b/src/mame/sega/s32comm.h @@ -48,10 +48,10 @@ class s32comm_device : public device_t 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; // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: uint8_t m_shared[0x800]{}; // 2k shared memory diff --git a/src/mame/sega/saturn.cpp b/src/mame/sega/saturn.cpp index d0559e71ede..646fd644596 100644 --- a/src/mame/sega/saturn.cpp +++ b/src/mame/sega/saturn.cpp @@ -522,9 +522,9 @@ class sat_console_state : public saturn_state required_device m_ctrl1; required_device m_ctrl2; - void saturn_mem(address_map &map); - void sound_mem(address_map &map); - void scsp_mem(address_map &map); + void saturn_mem(address_map &map) ATTR_COLD; + void sound_mem(address_map &map) ATTR_COLD; + void scsp_mem(address_map &map) ATTR_COLD; }; diff --git a/src/mame/sega/saturn_cdb.h b/src/mame/sega/saturn_cdb.h index 73e9ceb9c1e..f43d05ccd1a 100644 --- a/src/mame/sega/saturn_cdb.h +++ b/src/mame/sega/saturn_cdb.h @@ -16,11 +16,11 @@ class saturn_cdb_device : public device_t // construction/destruction saturn_cdb_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - void saturn_cdb_map(address_map &map); + void saturn_cdb_map(address_map &map) ATTR_COLD; protected: - virtual void device_start() 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 const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: diff --git a/src/mame/sega/sderby2.cpp b/src/mame/sega/sderby2.cpp index 7a84fc81e18..558aba218d6 100644 --- a/src/mame/sega/sderby2.cpp +++ b/src/mame/sega/sderby2.cpp @@ -60,9 +60,9 @@ class sderby2_state : public driver_device void init_sderby2(); private: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; void sderby2_palette(palette_device &palette) const; uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); @@ -86,10 +86,10 @@ class sderby2_state : public driver_device uint8_t sub_data = 0; uint8_t main_data = 0; uint8_t host_io_40 = 0; - void main_io_map(address_map &map); - void main_program_map(address_map &map); - void sub_io_map(address_map &map); - void sub_program_map(address_map &map); + void main_io_map(address_map &map) ATTR_COLD; + void main_program_map(address_map &map) ATTR_COLD; + void sub_io_map(address_map &map) ATTR_COLD; + void sub_program_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/sega/sega16sp.h b/src/mame/sega/sega16sp.h index eb9c6cd49a2..78ef187af80 100644 --- a/src/mame/sega/sega16sp.h +++ b/src/mame/sega/sega16sp.h @@ -64,7 +64,7 @@ class sega_16bit_sprite_device : public sprite16_device_ind16 protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // internal state bool m_flip; // screen flip? diff --git a/src/mame/sega/sega_beena.cpp b/src/mame/sega/sega_beena.cpp index 184cc6c8997..ed5a422a67c 100644 --- a/src/mame/sega/sega_beena.cpp +++ b/src/mame/sega/sega_beena.cpp @@ -192,14 +192,14 @@ class sega_9h0_0008_state : public driver_device void sega_9h0_0008(machine_config &config); virtual void device_post_load() override; - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; virtual void install_game_rom(); virtual void update_sensors(offs_t offset); - void beena_arm7_map(address_map &map); + void beena_arm7_map(address_map &map) ATTR_COLD; void request_irq(); void request_fiq(); @@ -2009,8 +2009,8 @@ class tvochken_state : public sega_9h0_0008_state WRITE_DATA, }; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; virtual void install_game_rom() override; diff --git a/src/mame/sega/sega_sawatte.cpp b/src/mame/sega/sega_sawatte.cpp index f933bb02427..723d1cad02c 100644 --- a/src/mame/sega/sega_sawatte.cpp +++ b/src/mame/sega/sega_sawatte.cpp @@ -52,8 +52,8 @@ class sawatte_state : public driver_device void sawatte(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: TIMER_CALLBACK_MEMBER(irq3_timer); @@ -70,7 +70,7 @@ class sawatte_state : public driver_device u8 data_bank_r(offs_t offset); u8 prog_bank_r(offs_t offset); - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_cartslot; diff --git a/src/mame/sega/segaai.cpp b/src/mame/sega/segaai.cpp index 6f5b318762d..9f23bac3313 100644 --- a/src/mame/sega/segaai.cpp +++ b/src/mame/sega/segaai.cpp @@ -160,7 +160,7 @@ class segaai_state : public driver_device void segaai(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: static constexpr u8 VECTOR_V9938 = 0xf8; @@ -178,8 +178,8 @@ class segaai_state : public driver_device static constexpr u8 UPD7759_MODE = 0x01; static constexpr u8 UPD7759_BANK = 0x02; - void mem_map(address_map &map); - void io_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; void update_irq_state(); u32 get_vector() { return m_vector; } void vdp_interrupt(int state); diff --git a/src/mame/sega/segaatom.cpp b/src/mame/sega/segaatom.cpp index 40fa1719268..d5f5d4475f8 100644 --- a/src/mame/sega/segaatom.cpp +++ b/src/mame/sega/segaatom.cpp @@ -55,16 +55,16 @@ class atom2_state : public driver_device protected: // driver_device overrides - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: // screen updates uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void atom2_map(address_map &map); + void atom2_map(address_map &map) ATTR_COLD; // devices required_device m_maincpu; diff --git a/src/mame/sega/segabb.h b/src/mame/sega/segabb.h index 9605203390d..6341fe29582 100644 --- a/src/mame/sega/segabb.h +++ b/src/mame/sega/segabb.h @@ -14,13 +14,13 @@ class sega_lindbergh_baseboard_device : public pci_device { sega_lindbergh_baseboard_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: - void map1(address_map &map); - void map2(address_map &map); - void map3(address_map &map); + void map1(address_map &map) ATTR_COLD; + void map2(address_map &map) ATTR_COLD; + void map3(address_map &map) ATTR_COLD; }; DECLARE_DEVICE_TYPE(SEGA_LINDBERGH_BASEBOARD, sega_lindbergh_baseboard_device) diff --git a/src/mame/sega/segabill.h b/src/mame/sega/segabill.h index 515b8174232..f621193982d 100644 --- a/src/mame/sega/segabill.h +++ b/src/mame/sega/segabill.h @@ -24,18 +24,18 @@ class sega_billboard_device : public device_t // construction/destruction sega_billboard_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - void mem_map(address_map &map); - void io_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; void write(uint8_t data); protected: // device-level overrides - virtual void device_start() override; - virtual void device_reset() override; - virtual const tiny_rom_entry *device_rom_region() const override; - virtual ioport_constructor device_input_ports() 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 ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: required_device m_billcpu; diff --git a/src/mame/sega/segac2.cpp b/src/mame/sega/segac2.cpp index 1d125995c37..14e9472f6a3 100644 --- a/src/mame/sega/segac2.cpp +++ b/src/mame/sega/segac2.cpp @@ -232,8 +232,8 @@ class segac2_state : public driver_device void init_zunkyou(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; int m_segac2_enable_display; @@ -306,8 +306,8 @@ class segac2_state : public driver_device int prot_func_puyopuy2(int in); int prot_func_zunkyou(int in); - void segac_map(address_map &map); - void segac2_map(address_map &map); + void segac_map(address_map &map) ATTR_COLD; + void segac2_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/sega/segacoin.cpp b/src/mame/sega/segacoin.cpp index b8c39677dac..43dfb686320 100644 --- a/src/mame/sega/segacoin.cpp +++ b/src/mame/sega/segacoin.cpp @@ -41,10 +41,10 @@ class segacoin_state : public driver_device private: required_device m_maincpu; required_device m_audiocpu; - void main_map(address_map &map); - void main_portmap(address_map &map); - void sound_map(address_map &map); - void sound_portmap(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void main_portmap(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; + void sound_portmap(address_map &map) ATTR_COLD; }; diff --git a/src/mame/sega/segae.cpp b/src/mame/sega/segae.cpp index 8019d4095cb..3a8c536f420 100644 --- a/src/mame/sega/segae.cpp +++ b/src/mame/sega/segae.cpp @@ -347,14 +347,14 @@ class systeme_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void banked_decrypted_opcodes_map(address_map &map); - void decrypted_opcodes_map(address_map &map); - void io_map(address_map &map); - void systeme_map(address_map &map); - void vdp1_map(address_map &map); - void vdp2_map(address_map &map); - - virtual void machine_start() override; + void banked_decrypted_opcodes_map(address_map &map) ATTR_COLD; + void decrypted_opcodes_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; + void systeme_map(address_map &map) ATTR_COLD; + void vdp1_map(address_map &map) ATTR_COLD; + void vdp2_map(address_map &map) ATTR_COLD; + + virtual void machine_start() override ATTR_COLD; // Devices required_device m_maincpu; diff --git a/src/mame/sega/segag80.h b/src/mame/sega/segag80.h index 46bfe4f04f4..0ad9653c839 100644 --- a/src/mame/sega/segag80.h +++ b/src/mame/sega/segag80.h @@ -21,8 +21,8 @@ class segag80_audio_device_base : public device_t, public device_mixer_interface protected: segag80_audio_device_base(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, u8 lomask, u8 himask, bool haspsg, netlist_ptr netlist, double output_scale); - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; optional_device_array m_lo_input; optional_device_array m_hi_input; diff --git a/src/mame/sega/segag80r.h b/src/mame/sega/segag80r.h index 574313157da..d8d16b1dfd8 100644 --- a/src/mame/sega/segag80r.h +++ b/src/mame/sega/segag80r.h @@ -158,8 +158,8 @@ class segag80r_state : public driver_device TILE_GET_INFO_MEMBER(spaceod_get_tile_info); TILEMAP_MAPPER_MEMBER(spaceod_scan_rows); TILE_GET_INFO_MEMBER(bg_get_tile_info); - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; uint32_t screen_update_segag80r(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); INTERRUPT_GEN_MEMBER(segag80r_vblank_start); IRQ_CALLBACK_MEMBER(segag80r_irq_ack); @@ -179,13 +179,13 @@ class segag80r_state : public driver_device inline uint8_t demangle(uint8_t d7d6, uint8_t d5d4, uint8_t d3d2, uint8_t d1d0); void monsterb_expand_gfx(const char *region); - void g80r_opcodes_map(address_map &map); - void main_map(address_map &map); - void main_portmap(address_map &map); - void main_ppi8255_portmap(address_map &map); - void sega_315_opcodes_map(address_map &map); - void sindbadm_portmap(address_map &map); - void sindbadm_sound_map(address_map &map); + void g80r_opcodes_map(address_map &map) ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; + void main_portmap(address_map &map) ATTR_COLD; + void main_ppi8255_portmap(address_map &map) ATTR_COLD; + void sega_315_opcodes_map(address_map &map) ATTR_COLD; + void sindbadm_portmap(address_map &map) ATTR_COLD; + void sindbadm_sound_map(address_map &map) ATTR_COLD; emu_timer *m_vblank_latch_clear_timer = nullptr; }; @@ -205,7 +205,7 @@ class sega005_sound_device : public device_t, protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // sound stream update overrides virtual void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; diff --git a/src/mame/sega/segag80r_a.h b/src/mame/sega/segag80r_a.h index e8751ce2c4c..2fb9b24270a 100644 --- a/src/mame/sega/segag80r_a.h +++ b/src/mame/sega/segag80r_a.h @@ -40,8 +40,8 @@ class monsterb_sound_device : public device_t protected: // device-level overrides - 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; uint8_t upd7751_command_r(); void upd7751_p2_w(uint8_t data); diff --git a/src/mame/sega/segag80v.h b/src/mame/sega/segag80v.h index 65c139e9723..0a3ecfa6321 100644 --- a/src/mame/sega/segag80v.h +++ b/src/mame/sega/segag80v.h @@ -157,19 +157,19 @@ class segag80v_state : public driver_device void usb_ram_w(offs_t offset, u8 data); - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; uint32_t screen_update_segag80v(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); inline bool adjust_xy(int rawx, int rawy, int &outx, int &outy); void sega_generate_vector_list(); offs_t decrypt_offset(offs_t offset); inline u8 demangle(u8 d7d6, u8 d5d4, u8 d3d2, u8 d1d0); - void main_map(address_map &map); - void opcodes_map(address_map &map); - void main_portmap(address_map &map); - void spacfurybl_speech_prg_map(address_map &map); - void spacfurybl_speech_io_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void opcodes_map(address_map &map) ATTR_COLD; + void main_portmap(address_map &map) ATTR_COLD; + void spacfurybl_speech_prg_map(address_map &map) ATTR_COLD; + void spacfurybl_speech_io_map(address_map &map) ATTR_COLD; }; #endif // MAME_SEGA_SEGAG80V_H diff --git a/src/mame/sega/segahang.h b/src/mame/sega/segahang.h index 15841067e08..e1159de1f1e 100644 --- a/src/mame/sega/segahang.h +++ b/src/mame/sega/segahang.h @@ -72,9 +72,9 @@ class segahang_state : public sega_16bit_common_base private: // driver overrides - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; TIMER_CALLBACK_MEMBER(i8751_sync); TIMER_CALLBACK_MEMBER(ppi_sync); @@ -105,17 +105,17 @@ class segahang_state : public sega_16bit_common_base // video updates uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void decrypted_opcodes_map(address_map &map); - void fd1094_decrypted_opcodes_map(address_map &map); - void hangon_map(address_map &map); - void mcu_io_map(address_map &map); - void sharrier_map(address_map &map); - void sound_map_2151(address_map &map); - void sound_map_2203(address_map &map); - void sound_portmap_2151(address_map &map); - void sound_portmap_2203(address_map &map); - void sound_portmap_2203x2(address_map &map); - void sub_map(address_map &map); + void decrypted_opcodes_map(address_map &map) ATTR_COLD; + void fd1094_decrypted_opcodes_map(address_map &map) ATTR_COLD; + void hangon_map(address_map &map) ATTR_COLD; + void mcu_io_map(address_map &map) ATTR_COLD; + void sharrier_map(address_map &map) ATTR_COLD; + void sound_map_2151(address_map &map) ATTR_COLD; + void sound_map_2203(address_map &map) ATTR_COLD; + void sound_portmap_2151(address_map &map) ATTR_COLD; + void sound_portmap_2203(address_map &map) ATTR_COLD; + void sound_portmap_2203x2(address_map &map) ATTR_COLD; + void sub_map(address_map &map) ATTR_COLD; // devices required_device m_maincpu; diff --git a/src/mame/sega/segaic16.h b/src/mame/sega/segaic16.h index fc98c27099b..1eeea9b8a2d 100644 --- a/src/mame/sega/segaic16.h +++ b/src/mame/sega/segaic16.h @@ -176,8 +176,8 @@ class segaic16_video_device : public device_t, 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; private: // internal state diff --git a/src/mame/sega/segaic16_m.h b/src/mame/sega/segaic16_m.h index f7f84c65938..13bc68f72ce 100644 --- a/src/mame/sega/segaic16_m.h +++ b/src/mame/sega/segaic16_m.h @@ -31,8 +31,8 @@ class sega_315_5248_multiplier_device : public device_t 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; private: // internal state @@ -54,8 +54,8 @@ class sega_315_5249_divider_device : public device_t 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; private: // internal helpers @@ -86,8 +86,8 @@ class sega_315_5250_compare_timer_device : public device_t 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; private: // internal helpers diff --git a/src/mame/sega/segaic16_road.h b/src/mame/sega/segaic16_road.h index e5f174623db..b6b65429204 100644 --- a/src/mame/sega/segaic16_road.h +++ b/src/mame/sega/segaic16_road.h @@ -57,8 +57,8 @@ class segaic16_road_device : public device_t 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; private: // internal state diff --git a/src/mame/sega/segaic24.h b/src/mame/sega/segaic24.h index e7d412d103a..b4dc1f20f04 100644 --- a/src/mame/sega/segaic24.h +++ b/src/mame/sega/segaic24.h @@ -43,7 +43,7 @@ class segas24_tile_device : public device_t, public device_gfx_interface auto xvout_write_callback() { return m_xvout_write_cb.bind(); } protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: enum { @@ -89,7 +89,7 @@ class segas24_sprite_device : public device_t void draw(bitmap_ind16 &bitmap, const rectangle &cliprect, bitmap_ind8 &priority_bitmap, const int *spri); protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: std::unique_ptr sprite_ram; @@ -109,7 +109,7 @@ class segas24_mixer_device : public device_t uint16_t get_reg(int reg); protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: uint16_t mixer_reg[16]; diff --git a/src/mame/sega/segajw.cpp b/src/mame/sega/segajw.cpp index 6c0e488cc45..b70b160b66b 100644 --- a/src/mame/sega/segajw.cpp +++ b/src/mame/sega/segajw.cpp @@ -63,8 +63,8 @@ class segajw_state : public driver_device protected: // driver_device overrides - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: uint8_t coin_counter_r(); @@ -74,11 +74,11 @@ class segajw_state : public driver_device void lamps2_w(uint8_t data); void coinlockout_w(uint8_t data); - void ramdac_map(address_map &map); - void segajw_audiocpu_io_map(address_map &map); - void segajw_audiocpu_map(address_map &map); - void segajw_hd63484_map(address_map &map); - void segajw_map(address_map &map); + void ramdac_map(address_map &map) ATTR_COLD; + void segajw_audiocpu_io_map(address_map &map) ATTR_COLD; + void segajw_audiocpu_map(address_map &map) ATTR_COLD; + void segajw_hd63484_map(address_map &map) ATTR_COLD; + void segajw_map(address_map &map) ATTR_COLD; // devices required_device m_maincpu; diff --git a/src/mame/sega/segald.cpp b/src/mame/sega/segald.cpp index 9386e4cc29d..a557f4e8067 100644 --- a/src/mame/sega/segald.cpp +++ b/src/mame/sega/segald.cpp @@ -71,15 +71,15 @@ class segald_state : public driver_device void astron_COLOR_write(offs_t offset, uint8_t data); void astron_FIX_write(offs_t offset, uint8_t data); void astron_io_bankswitch_w(uint8_t data); - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; uint32_t screen_update_astron(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); void astron_draw_characters(bitmap_rgb32 &bitmap,const rectangle &cliprect); void astron_draw_sprites(bitmap_rgb32 &bitmap, const rectangle &cliprect); required_device m_maincpu; required_device m_gfxdecode; required_device m_palette; - void mainmem(address_map &map); - void mainport(address_map &map); + void mainmem(address_map &map) ATTR_COLD; + void mainport(address_map &map) ATTR_COLD; }; /* VIDEO GOODS */ diff --git a/src/mame/sega/segaorun.h b/src/mame/sega/segaorun.h index 7375fa4f404..f0b77f80023 100644 --- a/src/mame/sega/segaorun.h +++ b/src/mame/sega/segaorun.h @@ -108,16 +108,16 @@ class segaorun_state : public sega_16bit_common_base TIMER_DEVICE_CALLBACK_MEMBER(bankmotor_update); - void decrypted_opcodes_map(address_map &map); - void outrun_map(address_map &map); - void sound_map(address_map &map); - void sound_portmap(address_map &map); - void sub_map(address_map &map); + void decrypted_opcodes_map(address_map &map) ATTR_COLD; + void outrun_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; + void sound_portmap(address_map &map) ATTR_COLD; + void sub_map(address_map &map) ATTR_COLD; // device overrides - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; TIMER_CALLBACK_MEMBER(irq2_gen_tick); TIMER_CALLBACK_MEMBER(scanline_tick); diff --git a/src/mame/sega/segapico.cpp b/src/mame/sega/segapico.cpp index 11f7d15649f..a97a3ca06cd 100644 --- a/src/mame/sega/segapico.cpp +++ b/src/mame/sega/segapico.cpp @@ -167,7 +167,7 @@ class pico_base_state : public md_core_state void pico_68k_io_write(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); void sound_cause_irq(int state); - void pico_mem(address_map &map); + void pico_mem(address_map &map) ATTR_COLD; }; class pico_state : public pico_base_state @@ -182,7 +182,7 @@ class pico_state : public pico_base_state void pico_pal(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_picocart; @@ -587,8 +587,8 @@ class copera_state : public pico_base_state void copera(machine_config &config); protected: - virtual void machine_reset() override; - virtual void machine_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; void copera_pcm_cb(int state); uint16_t copera_io_read(offs_t offset); @@ -597,7 +597,7 @@ class copera_state : public pico_base_state TIMER_CALLBACK_MEMBER(process_ext_timer); private: - void copera_mem(address_map &map); + void copera_mem(address_map &map) ATTR_COLD; required_device m_picocart; diff --git a/src/mame/sega/segapm.cpp b/src/mame/sega/segapm.cpp index 5d9490521b5..fb6d8392a4e 100644 --- a/src/mame/sega/segapm.cpp +++ b/src/mame/sega/segapm.cpp @@ -26,10 +26,10 @@ class segapm_state : public driver_device void segapm(machine_config &config); private: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; uint32_t screen_update_segapm(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); required_device m_maincpu; - void segapm_map(address_map &map); + void segapm_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/sega/segas16a.h b/src/mame/sega/segas16a.h index 2fcd4580f57..b3976f3cdc1 100644 --- a/src/mame/sega/segas16a.h +++ b/src/mame/sega/segas16a.h @@ -115,22 +115,22 @@ class segas16a_state : public sega_16bit_common_base // video updates uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void decrypted_opcodes_map(address_map &map); - void mcu_io_map(address_map &map); - void sound_decrypted_opcodes_map(address_map &map); - void sound_map(address_map &map); - void sound_no7751_portmap(address_map &map); - void sound_portmap(address_map &map); - void system16a_map(address_map &map); + void decrypted_opcodes_map(address_map &map) ATTR_COLD; + void mcu_io_map(address_map &map) ATTR_COLD; + void sound_decrypted_opcodes_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; + void sound_no7751_portmap(address_map &map) ATTR_COLD; + void sound_portmap(address_map &map) ATTR_COLD; + void system16a_map(address_map &map) ATTR_COLD; // internal types typedef delegate i8751_sim_delegate; typedef delegate lamp_changed_delegate; // driver overrides - virtual void video_start() override; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void video_start() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; // I8751 simulations void dumpmtmt_i8751_sim(); diff --git a/src/mame/sega/segas16b.h b/src/mame/sega/segas16b.h index 998796ea8d5..81c596de1e0 100644 --- a/src/mame/sega/segas16b.h +++ b/src/mame/sega/segas16b.h @@ -172,24 +172,24 @@ class segas16b_state : public sega_16bit_common_base // bootleg stuff void tilemap_16b_fpointbl_fill_latch(int i, uint16_t* latched_pageselect, uint16_t* latched_yscroll, uint16_t* latched_xscroll, uint16_t* textram); - void decrypted_opcodes_map(address_map &map); - void decrypted_opcodes_map_fpointbla(address_map &map); - void decrypted_opcodes_map_x(address_map &map); - void fpointbl_map(address_map &map); - void fpointbl_sound_map(address_map &map); - void lockonph_map(address_map &map); - void lockonph_sound_iomap(address_map &map); - void lockonph_sound_map(address_map &map); - void map_fpointbla(address_map &map); - void mcu_io_map(address_map &map); - void sound_decrypted_opcodes_map(address_map &map); - void sound_map(address_map &map); - void sound_portmap(address_map &map); - void bootleg_sound_map(address_map &map); - void bootleg_sound_portmap(address_map &map); - void system16b_bootleg_map(address_map &map); - void system16b_map(address_map &map); - void system16c_map(address_map &map); + void decrypted_opcodes_map(address_map &map) ATTR_COLD; + void decrypted_opcodes_map_fpointbla(address_map &map) ATTR_COLD; + void decrypted_opcodes_map_x(address_map &map) ATTR_COLD; + void fpointbl_map(address_map &map) ATTR_COLD; + void fpointbl_sound_map(address_map &map) ATTR_COLD; + void lockonph_map(address_map &map) ATTR_COLD; + void lockonph_sound_iomap(address_map &map) ATTR_COLD; + void lockonph_sound_map(address_map &map) ATTR_COLD; + void map_fpointbla(address_map &map) ATTR_COLD; + void mcu_io_map(address_map &map) ATTR_COLD; + void sound_decrypted_opcodes_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; + void sound_portmap(address_map &map) ATTR_COLD; + void bootleg_sound_map(address_map &map) ATTR_COLD; + void bootleg_sound_portmap(address_map &map) ATTR_COLD; + void system16b_bootleg_map(address_map &map) ATTR_COLD; + void system16b_map(address_map &map) ATTR_COLD; + void system16c_map(address_map &map) ATTR_COLD; // internal types typedef delegate i8751_sim_delegate; @@ -207,9 +207,9 @@ class segas16b_state : public sega_16bit_common_base }; // device overrides - virtual void video_start() override; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void video_start() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; TIMER_CALLBACK_MEMBER(i8751_sync); TIMER_CALLBACK_MEMBER(atomicp_sound_irq); @@ -305,11 +305,11 @@ class dfjail_state : public segas16b_state bool m_nmi_enable; uint16_t m_dac_data; - void dfjail_map(address_map &map); - void dfjail_sound_iomap(address_map &map); + void dfjail_map(address_map &map) ATTR_COLD; + void dfjail_sound_iomap(address_map &map) ATTR_COLD; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; required_device m_dac; }; diff --git a/src/mame/sega/segas16b_isgsm.cpp b/src/mame/sega/segas16b_isgsm.cpp index eae80840810..79dfb7d40ba 100644 --- a/src/mame/sega/segas16b_isgsm.cpp +++ b/src/mame/sega/segas16b_isgsm.cpp @@ -60,8 +60,8 @@ class isgsm_state : public segas16b_state void init_tetrbx(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: // read/write handlers @@ -101,7 +101,7 @@ class isgsm_state : public segas16b_state uint8_t m_rle_control_byte; bool m_rle_latched; uint8_t m_rle_byte; - void isgsm_map(address_map &map); + void isgsm_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/sega/segas18.h b/src/mame/sega/segas18.h index 89f717e5996..fc5683d47d1 100644 --- a/src/mame/sega/segas18.h +++ b/src/mame/sega/segas18.h @@ -128,12 +128,12 @@ class segas18_state : public sega_16bit_common_base void set_grayscale(int state); void set_vdp_enable(int state); - void decrypted_opcodes_map(address_map &map); - void mcu_io_map(address_map &map); - void pcm_map(address_map &map); - void sound_map(address_map &map); - void sound_portmap(address_map &map); - void system18_map(address_map &map); + void decrypted_opcodes_map(address_map &map) ATTR_COLD; + void mcu_io_map(address_map &map) ATTR_COLD; + void pcm_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; + void sound_portmap(address_map &map) ATTR_COLD; + void system18_map(address_map &map) ATTR_COLD; // rom board types enum segas18_rom_board @@ -146,9 +146,9 @@ class segas18_state : public sega_16bit_common_base }; // device overrides - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; // internal helpers TIMER_CALLBACK_MEMBER(initial_boost); diff --git a/src/mame/sega/segas18_astormbl.cpp b/src/mame/sega/segas18_astormbl.cpp index 6ae3019748d..cae37eed57c 100644 --- a/src/mame/sega/segas18_astormbl.cpp +++ b/src/mame/sega/segas18_astormbl.cpp @@ -77,12 +77,12 @@ class segas18_astormbl_state : public sega_16bit_common_base { } uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; virtual void sound_w(offs_t offset, uint16_t data, uint16_t mem_mask) = 0; void astormbl_video(machine_config &config); - void astormbl_map(address_map &map); + void astormbl_map(address_map &map) ATTR_COLD; required_device m_maincpu; @@ -117,14 +117,14 @@ class segas18_astormbl_s18snd_state : public segas18_astormbl_state void astormbl(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; virtual void sound_w(offs_t offset, uint16_t data, uint16_t mem_mask) override; private: - void sound_map(address_map &map); - void sound_portmap(address_map &map); - void pcm_map(address_map &map); + void sound_map(address_map &map) ATTR_COLD; + void sound_portmap(address_map &map) ATTR_COLD; + void pcm_map(address_map &map) ATTR_COLD; void soundbank_w(uint8_t data); void astormbl_sound(machine_config &config); @@ -146,14 +146,14 @@ class segas18_astormbl_bootsnd_state : public segas18_astormbl_state void astormb2(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; virtual void sound_w(offs_t offset, uint16_t data, uint16_t mem_mask) override; private: void sys18bl_okibank_w(uint8_t data); - void sys18bl_sound_map(address_map &map); - void sys18bl_oki_map(address_map &map); + void sys18bl_sound_map(address_map &map) ATTR_COLD; + void sys18bl_oki_map(address_map &map) ATTR_COLD; void astormb2_sound(machine_config &config); diff --git a/src/mame/sega/segas24.h b/src/mame/sega/segas24.h index c35e1d346d6..b64de7be3be 100644 --- a/src/mame/sega/segas24.h +++ b/src/mame/sega/segas24.h @@ -167,8 +167,8 @@ class segas24_state : public driver_device void irq_timer_sync(); void irq_timer_start(int old_tmode); void cnt1(int state); - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); TIMER_DEVICE_CALLBACK_MEMBER(irq_timer_cb); TIMER_DEVICE_CALLBACK_MEMBER(irq_timer_clear_cb); @@ -184,21 +184,21 @@ class segas24_state : public driver_device optional_ioport m_paddle; optional_ioport_array<8> m_mj_inputs; - void common_map(address_map &map); - void cpu1_map(address_map &map); - void cpu2_map(address_map &map); - void decrypted_opcodes_map(address_map &map); - void hotrod_common_map(address_map &map); - void hotrod_cpu1_map(address_map &map); - void hotrod_cpu2_map(address_map &map); - void rombd_common_map(address_map &map); - void rombd_cpu1_map(address_map &map); - void rombd_cpu2_map(address_map &map); - void roughrac_common_map(address_map &map); - void roughrac_cpu1_map(address_map &map); - void roughrac_cpu2_map(address_map &map); - void dcclubj_cpu1_map(address_map &map); - void dcclubj_cpu2_map(address_map &map); + void common_map(address_map &map) ATTR_COLD; + void cpu1_map(address_map &map) ATTR_COLD; + void cpu2_map(address_map &map) ATTR_COLD; + void decrypted_opcodes_map(address_map &map) ATTR_COLD; + void hotrod_common_map(address_map &map) ATTR_COLD; + void hotrod_cpu1_map(address_map &map) ATTR_COLD; + void hotrod_cpu2_map(address_map &map) ATTR_COLD; + void rombd_common_map(address_map &map) ATTR_COLD; + void rombd_cpu1_map(address_map &map) ATTR_COLD; + void rombd_cpu2_map(address_map &map) ATTR_COLD; + void roughrac_common_map(address_map &map) ATTR_COLD; + void roughrac_cpu1_map(address_map &map) ATTR_COLD; + void roughrac_cpu2_map(address_map &map) ATTR_COLD; + void dcclubj_cpu1_map(address_map &map) ATTR_COLD; + void dcclubj_cpu2_map(address_map &map) ATTR_COLD; }; #endif // MAME_SEGA_SEGAS24_H diff --git a/src/mame/sega/segas32.cpp b/src/mame/sega/segas32.cpp index ece2dbd14bd..a6883272512 100644 --- a/src/mame/sega/segas32.cpp +++ b/src/mame/sega/segas32.cpp @@ -5044,7 +5044,7 @@ ROM_START( scross ) ROM_LOAD( "mpr-15031.ic1", 0x000000, 0x100000, CRC(6af139dc) SHA1(2378c2ad0c52c114eb93206a6fbee723c038d030) ) ROM_LOAD( "mpr-15032.ic2", 0x200000, 0x100000, CRC(915d6096) SHA1(e1f670949b1254f5a3c3131993ca9b3baa4d9f6b) ) - ROM_REGION( 0x20000, "user2", 0 ) /* comms board? - might not belong to this game, just going based on epr number */ + ROM_REGION( 0x20000, "user2", 0 ) /* comms board confirmed */ ROM_LOAD( "epr-15033.ic17", 0x00000, 0x20000, CRC(dc19ac00) SHA1(16bbb5af034e5419673e637be30283b73ab7b290) ) ROM_END @@ -5113,6 +5113,9 @@ ROM_START( scrossu ) ROM_REGION( 0x400000, "mainpcb:sega", 0 ) /* Sega PCM sound data */ ROM_LOAD( "mpr-15031.ic1", 0x000000, 0x100000, CRC(6af139dc) SHA1(2378c2ad0c52c114eb93206a6fbee723c038d030) ) ROM_LOAD( "mpr-15032.ic2", 0x200000, 0x100000, CRC(915d6096) SHA1(e1f670949b1254f5a3c3131993ca9b3baa4d9f6b) ) + + ROM_REGION( 0x20000, "user2", 0 ) /* comms board confirmed */ + ROM_LOAD( "epr-15033.ic17", 0x00000, 0x20000, CRC(dc19ac00) SHA1(16bbb5af034e5419673e637be30283b73ab7b290) ) ROM_END diff --git a/src/mame/sega/segas32.h b/src/mame/sega/segas32.h index c062d828395..26d3a74c45a 100644 --- a/src/mame/sega/segas32.h +++ b/src/mame/sega/segas32.h @@ -184,26 +184,26 @@ class segas32_state : public device_t void darkedge_fd1149_vblank(); void f1lap_fd1149_vblank(); - void ga2_main_map(address_map &map); - void multi32_6player_map(address_map &map); - void multi32_map(address_map &map); - void multi32_sound_map(address_map &map); - void multi32_sound_portmap(address_map &map); - void multipcm_map(address_map &map); - void rf5c68_map(address_map &map); - void system32_4player_map(address_map &map); - void system32_analog_map(address_map &map); - void system32_cd_map(address_map &map); - void system32_map(address_map &map); - void system32_sound_map(address_map &map); - void system32_sound_portmap(address_map &map); - void upd7725_data_map(address_map &map); - void upd7725_prg_map(address_map &map); - void v25_map(address_map &map); - - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + void ga2_main_map(address_map &map) ATTR_COLD; + void multi32_6player_map(address_map &map) ATTR_COLD; + void multi32_map(address_map &map) ATTR_COLD; + void multi32_sound_map(address_map &map) ATTR_COLD; + void multi32_sound_portmap(address_map &map) ATTR_COLD; + void multipcm_map(address_map &map) ATTR_COLD; + void rf5c68_map(address_map &map) ATTR_COLD; + void system32_4player_map(address_map &map) ATTR_COLD; + void system32_analog_map(address_map &map) ATTR_COLD; + void system32_cd_map(address_map &map) ATTR_COLD; + void system32_map(address_map &map) ATTR_COLD; + void system32_sound_map(address_map &map) ATTR_COLD; + void system32_sound_portmap(address_map &map) ATTR_COLD; + void upd7725_data_map(address_map &map) ATTR_COLD; + void upd7725_prg_map(address_map &map) ATTR_COLD; + void v25_map(address_map &map) ATTR_COLD; + + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; required_shared_ptr m_z80_shared_ram; optional_shared_ptr m_system32_workram; @@ -283,7 +283,7 @@ class segas32_analog_state : public segas32_state protected: segas32_analog_state(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; class segas32_trackball_state : public segas32_state @@ -291,9 +291,9 @@ class segas32_trackball_state : public segas32_state public: segas32_trackball_state(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - void system32_trackball_map(address_map &map); + void system32_trackball_map(address_map &map) ATTR_COLD; protected: - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; class segas32_4player_state : public segas32_state @@ -304,7 +304,7 @@ class segas32_4player_state : public segas32_state protected: segas32_4player_state(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; class segas32_v25_state : public segas32_4player_state @@ -316,8 +316,8 @@ class segas32_v25_state : public segas32_4player_state static const uint8_t ga2_opcode_table[256]; protected: - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; private: void decrypt_protrom(); @@ -329,7 +329,7 @@ class segas32_upd7725_state : public segas32_analog_state segas32_upd7725_state(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; class segas32_cd_state : public segas32_state @@ -344,8 +344,8 @@ class segas32_cd_state : public segas32_state static void cdrom_config(device_t *device); protected: - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; private: output_finder<16> m_lamps; @@ -359,7 +359,7 @@ class sega_multi32_state : public segas32_state protected: sega_multi32_state(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; class sega_multi32_analog_state : public sega_multi32_state @@ -371,10 +371,10 @@ class sega_multi32_analog_state : public sega_multi32_state ioport_value in3_analog_read(); void analog_bank_w(uint8_t data); - void multi32_analog_map(address_map &map); + void multi32_analog_map(address_map &map) ATTR_COLD; protected: - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; private: optional_ioport_array<8> m_analog_ports; @@ -387,7 +387,7 @@ class sega_multi32_6player_state : public sega_multi32_state sega_multi32_6player_state(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; DECLARE_DEVICE_TYPE(SEGA_S32_PCB, segas32_state) diff --git a/src/mame/sega/segashiobd.h b/src/mame/sega/segashiobd.h index e0f9d3e596d..a6981135493 100644 --- a/src/mame/sega/segashiobd.h +++ b/src/mame/sega/segashiobd.h @@ -14,13 +14,13 @@ class sega_837_14438_device : public device_t public: // construction/destruction sega_837_14438_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: - virtual void device_start() override; - virtual void device_reset() override; - virtual void device_add_mconfig(machine_config &config) override; - void sh4_map(address_map &map); + 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; + void sh4_map(address_map &map) ATTR_COLD; private: required_device m_maincpu; diff --git a/src/mame/sega/segasm1.cpp b/src/mame/sega/segasm1.cpp index 44cbf7f65b2..1559c4cb9f1 100644 --- a/src/mame/sega/segasm1.cpp +++ b/src/mame/sega/segasm1.cpp @@ -85,16 +85,16 @@ class systemm1_state : public driver_device void m1comm(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: u32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void mem_map(address_map &map); - void mem_comm_map(address_map &map); - void z80_map(address_map &map); - void z80_io_map(address_map &map); - void comm_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void mem_comm_map(address_map &map) ATTR_COLD; + void z80_map(address_map &map) ATTR_COLD; + void z80_io_map(address_map &map) ATTR_COLD; + void comm_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_soundcpu; diff --git a/src/mame/sega/segasp.cpp b/src/mame/sega/segasp.cpp index b2025fbe357..8a4b8dc83f5 100644 --- a/src/mame/sega/segasp.cpp +++ b/src/mame/sega/segasp.cpp @@ -145,8 +145,8 @@ class segasp_state : public naomi_state void sp_bank_w(offs_t offset, uint64_t data, uint64_t mem_mask = ~0); uint16_t m_sp_bank = 0; - void onchip_port(address_map &map); - void segasp_map(address_map &map); + void onchip_port(address_map &map) ATTR_COLD; + void segasp_map(address_map &map) ATTR_COLD; }; uint64_t segasp_state::sp_bank_r(offs_t offset, uint64_t mem_mask) diff --git a/src/mame/sega/segaspeech.h b/src/mame/sega/segaspeech.h index 524f3d91d7d..9babc3616cb 100644 --- a/src/mame/sega/segaspeech.h +++ b/src/mame/sega/segaspeech.h @@ -26,8 +26,8 @@ class sega_speech_device : public device_t, public device_mixer_interface protected: // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; int t0_r(); int t1_r(); @@ -39,8 +39,8 @@ class sega_speech_device : public device_t, public device_mixer_interface void drq_w(int state); private: - void speech_map(address_map &map); - void speech_portmap(address_map &map); + void speech_map(address_map &map) ATTR_COLD; + void speech_portmap(address_map &map) ATTR_COLD; required_memory_region m_speech; required_device m_cpu; diff --git a/src/mame/sega/segattl.cpp b/src/mame/sega/segattl.cpp index daf234eefa0..f6a35453ebe 100644 --- a/src/mame/sega/segattl.cpp +++ b/src/mame/sega/segattl.cpp @@ -95,10 +95,10 @@ class segattl_state : public driver_device protected: // driver_device overrides - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: // devices diff --git a/src/mame/sega/segaufo.cpp b/src/mame/sega/segaufo.cpp index 4c06d17779d..ed98ad9eee7 100644 --- a/src/mame/sega/segaufo.cpp +++ b/src/mame/sega/segaufo.cpp @@ -114,7 +114,7 @@ class ufo_state : public driver_device void ufo800(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; virtual void machine_reset() override { m_nmi_enable = false; } private: @@ -148,9 +148,9 @@ class ufo_state : public driver_device TIMER_CALLBACK_MEMBER(simulate_xyz); // address maps - void ufo_map(address_map &map); - void ufo_portmap(address_map &map); - void ex_ufo21_portmap(address_map &map); + void ufo_map(address_map &map) ATTR_COLD; + void ufo_portmap(address_map &map) ATTR_COLD; + void ex_ufo21_portmap(address_map &map) ATTR_COLD; // I/O handlers void pit_out0(int state); diff --git a/src/mame/sega/segaufoh8.cpp b/src/mame/sega/segaufoh8.cpp index ed55c380c36..6dc66be5b07 100644 --- a/src/mame/sega/segaufoh8.cpp +++ b/src/mame/sega/segaufoh8.cpp @@ -47,7 +47,7 @@ class segaufoh8_state : public driver_device private: required_device m_maincpu; - void program_map(address_map &map); + void program_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/sega/segausb.h b/src/mame/sega/segausb.h index 19a2cfcb1f5..598fb9a96d4 100644 --- a/src/mame/sega/segausb.h +++ b/src/mame/sega/segausb.h @@ -43,9 +43,9 @@ class usb_sound_device : public device_t, public device_mixer_interface TIMER_DEVICE_CALLBACK_MEMBER( increment_t1_clock_timer_cb ); - void usb_map(address_map &map); - void usb_map_rom(address_map &map); - void usb_portmap(address_map &map); + void usb_map(address_map &map) ATTR_COLD; + void usb_map_rom(address_map &map) ATTR_COLD; + void usb_portmap(address_map &map) ATTR_COLD; #if (ENABLE_SEGAUSB_NETLIST) TIMER_DEVICE_CALLBACK_MEMBER( gos_timer ); @@ -56,9 +56,9 @@ class usb_sound_device : public device_t, public device_mixer_interface usb_sound_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; #if (!ENABLE_SEGAUSB_NETLIST) // sound stream update overrides @@ -184,7 +184,7 @@ class usb_rom_sound_device : public usb_sound_device protected: // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; DECLARE_DEVICE_TYPE(SEGAUSBROM, usb_rom_sound_device) diff --git a/src/mame/sega/segaxbd.h b/src/mame/sega/segaxbd.h index 768983ead96..52dd5e0eb8c 100644 --- a/src/mame/sega/segaxbd.h +++ b/src/mame/sega/segaxbd.h @@ -69,17 +69,17 @@ class segaxbd_state : public device_t // palette helpers void paletteram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); - void decrypted_opcodes_map(address_map &map); - void main_map(address_map &map); - void smgp_airdrive_map(address_map &map); - void smgp_airdrive_portmap(address_map &map); - void smgp_comm_map(address_map &map); - void smgp_comm_portmap(address_map &map); - void smgp_sound2_map(address_map &map); - void smgp_sound2_portmap(address_map &map); - void sound_map(address_map &map); - void sound_portmap(address_map &map); - void sub_map(address_map &map); + void decrypted_opcodes_map(address_map &map) ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; + void smgp_airdrive_map(address_map &map) ATTR_COLD; + void smgp_airdrive_portmap(address_map &map) ATTR_COLD; + void smgp_comm_map(address_map &map) ATTR_COLD; + void smgp_comm_portmap(address_map &map) ATTR_COLD; + void smgp_sound2_map(address_map &map) ATTR_COLD; + void smgp_sound2_portmap(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; + void sound_portmap(address_map &map) ATTR_COLD; + void sub_map(address_map &map) ATTR_COLD; segaxbd_state(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); @@ -143,8 +143,8 @@ class segaxbd_state : public device_t optional_ioport_array<4> m_mux_ports; output_finder<4> m_lamps; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; }; @@ -154,7 +154,7 @@ class segaxbd_regular_state : public segaxbd_state segaxbd_regular_state(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; @@ -165,7 +165,7 @@ class segaxbd_fd1094_state : public segaxbd_state segaxbd_fd1094_state(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; class segaxbd_aburner2_state : public segaxbd_state @@ -174,7 +174,7 @@ class segaxbd_aburner2_state : public segaxbd_state segaxbd_aburner2_state(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; // virtual void device_start(); // virtual void device_reset(); }; @@ -185,7 +185,7 @@ class segaxbd_lastsurv_fd1094_state : public segaxbd_state segaxbd_lastsurv_fd1094_state(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; class segaxbd_lastsurv_state : public segaxbd_state @@ -194,7 +194,7 @@ class segaxbd_lastsurv_state : public segaxbd_state segaxbd_lastsurv_state(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; @@ -204,7 +204,7 @@ class segaxbd_smgp_fd1094_state : public segaxbd_state segaxbd_smgp_fd1094_state(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; @@ -214,7 +214,7 @@ class segaxbd_smgp_state : public segaxbd_state segaxbd_smgp_state(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; @@ -224,16 +224,16 @@ class segaxbd_rascot_state : public segaxbd_state segaxbd_rascot_state(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; private: uint8_t commram_r(offs_t offset); void commram_w(offs_t offset, uint8_t data); void commram_bank_w(uint8_t data); - void sub_map(address_map &map); - void comm_map(address_map &map); + void sub_map(address_map &map) ATTR_COLD; + void comm_map(address_map &map) ATTR_COLD; required_device m_commram; required_device m_usart; diff --git a/src/mame/sega/segaybd.h b/src/mame/sega/segaybd.h index c38b74558c2..8f43a4827ca 100644 --- a/src/mame/sega/segaybd.h +++ b/src/mame/sega/segaybd.h @@ -71,9 +71,9 @@ class segaybd_state : public sega_16bit_common_base protected: // device overrides - virtual void device_resolve_objects() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void device_resolve_objects() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: // main CPU read/write handlers @@ -105,15 +105,15 @@ class segaybd_state : public sega_16bit_common_base // video updates uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void link_map(address_map &map); - void link_portmap(address_map &map); - void main_map(address_map &map); - void main_map_link(address_map &map); - void motor_map(address_map &map); - void sound_map(address_map &map); - void sound_portmap(address_map &map); - void subx_map(address_map &map); - void suby_map(address_map &map); + void link_map(address_map &map) ATTR_COLD; + void link_portmap(address_map &map) ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; + void main_map_link(address_map &map) ATTR_COLD; + void motor_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; + void sound_portmap(address_map &map) ATTR_COLD; + void subx_map(address_map &map) ATTR_COLD; + void suby_map(address_map &map) ATTR_COLD; // internal types typedef delegate output_delegate; diff --git a/src/mame/sega/sg1000.cpp b/src/mame/sega/sg1000.cpp index 6698d052eef..ce032bd7975 100644 --- a/src/mame/sega/sg1000.cpp +++ b/src/mame/sega/sg1000.cpp @@ -136,15 +136,15 @@ class sg1000_state : public sg1000_state_base protected: required_device_array m_ctrlports; - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; uint8_t peripheral_r(offs_t offset); void peripheral_w(offs_t offset, uint8_t data); - void sg1000_map(address_map &map); - void sg1000_io_map(address_map &map); - void sc3000_map(address_map &map); - void sc3000_io_map(address_map &map); + void sg1000_map(address_map &map) ATTR_COLD; + void sg1000_io_map(address_map &map) ATTR_COLD; + void sc3000_map(address_map &map) ATTR_COLD; + void sc3000_io_map(address_map &map) ATTR_COLD; }; class omv_state : public sg1000_state_base @@ -160,8 +160,8 @@ class omv_state : public sg1000_state_base uint8_t omv_r(offs_t offset); void omv_w(offs_t offset, uint8_t data); - void omv_map(address_map &map); - void omv_io_map(address_map &map); + void omv_map(address_map &map) ATTR_COLD; + void omv_io_map(address_map &map) ATTR_COLD; }; class omv2000_state : public omv_state @@ -179,7 +179,7 @@ class omv2000_state : public omv_state private: required_device m_ctrl2; - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; }; class sc3000_state : public sg1000_state @@ -192,7 +192,7 @@ class sc3000_state : public sg1000_state void sc3000(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; void sc3000_base(machine_config &config); }; @@ -216,15 +216,15 @@ class sf7000_state : public sc3000_state int m_centronics_busy = 0; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; void write_centronics_busy(int state); uint8_t ppi_pa_r(); void ppi_pc_w(uint8_t data); - void sf7000_io_map(address_map &map); - void sf7000_map(address_map &map); + void sf7000_io_map(address_map &map) ATTR_COLD; + void sf7000_map(address_map &map) ATTR_COLD; static void floppy_formats(format_registration &fr); }; diff --git a/src/mame/sega/sg1000a.cpp b/src/mame/sega/sg1000a.cpp index 17bd6185a89..0f1c7f2d94f 100644 --- a/src/mame/sega/sg1000a.cpp +++ b/src/mame/sega/sg1000a.cpp @@ -302,10 +302,10 @@ class sg1000a_state : public driver_device void sg1000a_coin_counter_w(uint8_t data); required_device m_maincpu; optional_shared_ptr m_decrypted_opcodes; - void decrypted_opcodes_map(address_map &map); - void io_map(address_map &map); - void program_map(address_map &map); - void sderby_io_map(address_map &map); + void decrypted_opcodes_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; + void program_map(address_map &map) ATTR_COLD; + void sderby_io_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/sega/shtzone.cpp b/src/mame/sega/shtzone.cpp index 32e022bae71..3e8f88a4250 100644 --- a/src/mame/sega/shtzone.cpp +++ b/src/mame/sega/shtzone.cpp @@ -88,8 +88,8 @@ class shtzone_state : public sms_state ioport_value gun_tl_p2_r(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; virtual void device_post_load() override; private: @@ -108,7 +108,7 @@ class shtzone_state : public sms_state uint8_t cart_r(offs_t offset); void int_callback(int state); - void prg_map(address_map &map); + void prg_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/sega/sms.h b/src/mame/sega/sms.h index 373faef3c2c..2d766224503 100644 --- a/src/mame/sega/sms.h +++ b/src/mame/sega/sms.h @@ -97,13 +97,13 @@ class sms_state : public driver_device void sms_ctrl1_th_input(int state); void sms_ctrl2_th_input(int state); - void sms_io(address_map &map); - void sms_mem(address_map &map); - void smsj_io(address_map &map); - void smskr_io(address_map &map); + void sms_io(address_map &map) ATTR_COLD; + void sms_mem(address_map &map) ATTR_COLD; + void smsj_io(address_map &map) ATTR_COLD; + void smskr_io(address_map &map) ATTR_COLD; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; uint8_t read_bus(unsigned int bank, uint16_t base_addr, uint16_t offset); void setup_bios(); void setup_media_slots(); @@ -203,8 +203,8 @@ class sms1_state : public sms_state void smsj(machine_config &config); protected: - virtual void video_start() override; - virtual void video_reset() override; + virtual void video_start() override ATTR_COLD; + virtual void video_reset() override ATTR_COLD; private: uint8_t sscope_r(offs_t offset); @@ -214,7 +214,7 @@ class sms1_state : public sms_state uint32_t screen_update_left(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); uint32_t screen_update_right(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void sms1_mem(address_map &map); + void sms1_mem(address_map &map) ATTR_COLD; // for 3D glass binocular hack required_device m_left_lcd; @@ -244,8 +244,8 @@ class smssdisp_state : public sms1_state void sms_sdisp(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; virtual void device_post_load() override; private: @@ -257,7 +257,7 @@ class smssdisp_state : public sms1_state uint8_t store_cart_peek(offs_t offset); void sms_store_int_callback(int state); - void sms_store_mem(address_map &map); + void sms_store_mem(address_map &map) ATTR_COLD; required_device m_control_cpu; required_device_array m_slots; @@ -279,13 +279,13 @@ class sg1000m3_state : public sms1_state void sg1000m3(machine_config &config); protected: - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; private: uint8_t sg1000m3_peripheral_r(offs_t offset); void sg1000m3_peripheral_w(offs_t offset, uint8_t data); - void sg1000m3_io(address_map &map); + void sg1000m3_io(address_map &map) ATTR_COLD; required_device m_sgexpslot; }; @@ -306,10 +306,10 @@ class gamegear_state : public sms_state void gamegeaj(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; - virtual void video_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; + virtual void video_reset() override ATTR_COLD; private: template static void screen_gg_raw_params(screen_device &screen, X &&pixelclock); @@ -326,7 +326,7 @@ class gamegear_state : public sms_state uint32_t screen_update_gamegear(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); void screen_gg_sms_mode_scaling(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void gg_io(address_map &map); + void gg_io(address_map &map) ATTR_COLD; memory_view m_io_view; diff --git a/src/mame/sega/sms_bootleg.cpp b/src/mame/sega/sms_bootleg.cpp index f9f9722b302..cde570cbf00 100644 --- a/src/mame/sega/sms_bootleg.cpp +++ b/src/mame/sega/sms_bootleg.cpp @@ -271,8 +271,8 @@ class smsbootleg_state : public sms_state void init_sms_supergame(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; virtual void refresh_banks(); required_memory_bank_array<3> m_game_bank; @@ -287,8 +287,8 @@ class smsbootleg_state : public sms_state void port08_w(uint8_t data); void port18_w(uint8_t data); - void sms_supergame_io(address_map &map); - void sms_supergame_map(address_map &map); + void sms_supergame_io(address_map &map) ATTR_COLD; + void sms_supergame_map(address_map &map) ATTR_COLD; }; class smsbootleg_a_state : public smsbootleg_state diff --git a/src/mame/sega/speedbsk.cpp b/src/mame/sega/speedbsk.cpp index d7a9353951a..0e6d80ac831 100644 --- a/src/mame/sega/speedbsk.cpp +++ b/src/mame/sega/speedbsk.cpp @@ -110,7 +110,7 @@ class speedbsk_state : public driver_device void speedbsk(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_maincpu; @@ -123,10 +123,10 @@ class speedbsk_state : public driver_device output_finder<24> m_lamps; output_finder<> m_start_lamp; - void main_map(address_map &map); - void audio_map(address_map &map); - void audio_io_map(address_map &map); - void pcm_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void audio_map(address_map &map) ATTR_COLD; + void audio_io_map(address_map &map) ATTR_COLD; + void pcm_map(address_map &map) ATTR_COLD; void lcd_palette(palette_device &palette) const; HD44780_PIXEL_UPDATE(lcd_pixel_update); diff --git a/src/mame/sega/stactics.cpp b/src/mame/sega/stactics.cpp index 81675e5a301..446afe56dd0 100644 --- a/src/mame/sega/stactics.cpp +++ b/src/mame/sega/stactics.cpp @@ -92,8 +92,8 @@ class stactics_state : public driver_device ioport_value get_rng(); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: uint8_t vert_pos_r(); @@ -122,7 +122,7 @@ class stactics_state : public driver_device void update_artwork(); void move_motor(); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_outlatch; diff --git a/src/mame/sega/stv.h b/src/mame/sega/stv.h index e0f7f5edf3e..f9b74969a55 100644 --- a/src/mame/sega/stv.h +++ b/src/mame/sega/stv.h @@ -98,8 +98,8 @@ class stv_state : public saturn_state void init_stv_us(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: uint8_t stv_ioga_r(offs_t offset); @@ -141,7 +141,7 @@ class stv_state : public saturn_state uint32_t m_abus_protkey = 0; uint32_t decathlt_prot_r(offs_t offset, uint32_t mem_mask = ~0); - void sega5838_map(address_map &map); + void sega5838_map(address_map &map) ATTR_COLD; optional_memory_bank m_protbank; bool m_newprotection_element; // debug helper only, doesn't need saving int m_protbankval; // debug helper only, doesn't need saving @@ -174,14 +174,14 @@ class stv_state : public saturn_state void stv_select_game(int gameno); uint8_t m_prev_gamebank_select = 0; - void sound_mem(address_map &map); - void scsp_mem(address_map &map); - void stv_mem(address_map &map); - void critcrsh_mem(address_map &map); - void magzun_mem(address_map &map); - void stvmp_mem(address_map &map); - void hopper_mem(address_map &map); - void stvcd_mem(address_map &map); + void sound_mem(address_map &map) ATTR_COLD; + void scsp_mem(address_map &map) ATTR_COLD; + void stv_mem(address_map &map) ATTR_COLD; + void critcrsh_mem(address_map &map) ATTR_COLD; + void magzun_mem(address_map &map) ATTR_COLD; + void stvmp_mem(address_map &map) ATTR_COLD; + void hopper_mem(address_map &map) ATTR_COLD; + void stvcd_mem(address_map &map) ATTR_COLD; }; class stvpc_state : public stv_state diff --git a/src/mame/sega/stvdev.cpp b/src/mame/sega/stvdev.cpp index 8c3d1993e73..f24115a5df9 100644 --- a/src/mame/sega/stvdev.cpp +++ b/src/mame/sega/stvdev.cpp @@ -36,8 +36,8 @@ class stvdev_state : public driver_device private: required_device m_maincpu; - void stvdev_io(address_map &map); - void stvdev_map(address_map &map); + void stvdev_io(address_map &map) ATTR_COLD; + void stvdev_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/sega/suprloco.cpp b/src/mame/sega/suprloco.cpp index 06ee11b8a74..0b49e085285 100644 --- a/src/mame/sega/suprloco.cpp +++ b/src/mame/sega/suprloco.cpp @@ -67,7 +67,7 @@ class suprloco_state : public driver_device void init_suprloco(); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -107,9 +107,9 @@ class suprloco_state : public driver_device inline void draw_pixel(bitmap_ind16 &bitmap, const rectangle &cliprect, int x, int y, int color, int flip); void draw_sprite(bitmap_ind16 &bitmap, const rectangle &cliprect, int spr_number); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); - void decrypted_opcodes_map(address_map &map); - void main_map(address_map &map); - void sound_map(address_map &map); + void decrypted_opcodes_map(address_map &map) ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/sega/svmu.cpp b/src/mame/sega/svmu.cpp index 4b75f8671ce..8c8d127f85c 100644 --- a/src/mame/sega/svmu.cpp +++ b/src/mame/sega/svmu.cpp @@ -49,8 +49,8 @@ class svmu_state : public driver_device void svmu(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: LC8670_LCD_UPDATE(svmu_lcd_update); @@ -63,8 +63,8 @@ class svmu_state : public driver_device uint8_t p7_r(); DECLARE_QUICKLOAD_LOAD_MEMBER(quickload_cb); - void svmu_io_mem(address_map &map); - void svmu_mem(address_map &map); + void svmu_io_mem(address_map &map) ATTR_COLD; + void svmu_mem(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_flash; diff --git a/src/mame/sega/system1.h b/src/mame/sega/system1.h index 140d390eee7..91076beecc0 100644 --- a/src/mame/sega/system1.h +++ b/src/mame/sega/system1.h @@ -117,9 +117,9 @@ class system1_state : public driver_device ioport_value dakkochn_mux_status_r(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: // video related @@ -236,18 +236,18 @@ class system1_state : public driver_device std::unique_ptr m_banked_decrypted_opcodes; // address maps - void banked_decrypted_opcodes_map(address_map &map); - void decrypted_opcodes_map(address_map &map); + void banked_decrypted_opcodes_map(address_map &map) ATTR_COLD; + void decrypted_opcodes_map(address_map &map) ATTR_COLD; void encrypted_sys1ppi_maps(machine_config &config); void encrypted_sys1pio_maps(machine_config &config); void encrypted_sys2_mc8123_maps(machine_config &config); - void mcu_io_map(address_map &map); - void nobo_map(address_map &map); - void sound_map(address_map &map); - void system1_map(address_map &map); - void blockgal_pio_io_map(address_map &map); - void system1_pio_io_map(address_map &map); - void system1_ppi_io_map(address_map &map); + void mcu_io_map(address_map &map) ATTR_COLD; + void nobo_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; + void system1_map(address_map &map) ATTR_COLD; + void blockgal_pio_io_map(address_map &map) ATTR_COLD; + void system1_pio_io_map(address_map &map) ATTR_COLD; + void system1_ppi_io_map(address_map &map) ATTR_COLD; }; #endif // MAME_SEGA_SYSTEM1_H diff --git a/src/mame/sega/system16.h b/src/mame/sega/system16.h index cc0c7ce966f..3cee8428f22 100644 --- a/src/mame/sega/system16.h +++ b/src/mame/sega/system16.h @@ -174,43 +174,43 @@ class segas1x_bootleg_state : public sega_16bit_common_base void shdancbl_msm5205_callback(int state); void sound_cause_nmi(int state); - void bayrouteb1_map(address_map &map); - void bayrouteb2_map(address_map &map); - void beautyb_map(address_map &map); - void bloxeedbl_map(address_map &map); - void ddcrewbl_map(address_map &map); - void dduxbl_map(address_map &map); - void decrypted_opcodes_map(address_map &map); - void eswatbl2_map(address_map &map); - void eswatbl_map(address_map &map); - void goldnaxeb1_map(address_map &map); - void goldnaxeb2_map(address_map &map); - void mwalkbl_map(address_map &map); - void passht4b_map(address_map &map); - void passshtb_map(address_map &map); - void pcm_map(address_map &map); - void shdancbl_map(address_map &map); - void shdancbl_sound_io_map(address_map &map); - void shdancbl_sound_map(address_map &map); - void shdancbla_map(address_map &map); - void shdancbla_sound_map(address_map &map); - void shinobi_datsu_sound_map(address_map &map); - void shinobib_map(address_map &map); - void sound_18_io_map(address_map &map); - void sound_18_map(address_map &map); - void sound_7759_io_map(address_map &map); - void sound_7759_map(address_map &map); - void sound_io_map(address_map &map); - void sound_map(address_map &map); - void sys18bl_oki_map(address_map &map); - void sys18bl_sound_map(address_map &map); - void tetrisbl_map(address_map &map); - void tturfbl_map(address_map &map); - void tturfbl_sound_io_map(address_map &map); - void tturfbl_sound_map(address_map &map); - void wb3bbl_map(address_map &map); - void wb3bble_map(address_map &map); - void wb3bble_decrypted_opcodes_map(address_map &map); + void bayrouteb1_map(address_map &map) ATTR_COLD; + void bayrouteb2_map(address_map &map) ATTR_COLD; + void beautyb_map(address_map &map) ATTR_COLD; + void bloxeedbl_map(address_map &map) ATTR_COLD; + void ddcrewbl_map(address_map &map) ATTR_COLD; + void dduxbl_map(address_map &map) ATTR_COLD; + void decrypted_opcodes_map(address_map &map) ATTR_COLD; + void eswatbl2_map(address_map &map) ATTR_COLD; + void eswatbl_map(address_map &map) ATTR_COLD; + void goldnaxeb1_map(address_map &map) ATTR_COLD; + void goldnaxeb2_map(address_map &map) ATTR_COLD; + void mwalkbl_map(address_map &map) ATTR_COLD; + void passht4b_map(address_map &map) ATTR_COLD; + void passshtb_map(address_map &map) ATTR_COLD; + void pcm_map(address_map &map) ATTR_COLD; + void shdancbl_map(address_map &map) ATTR_COLD; + void shdancbl_sound_io_map(address_map &map) ATTR_COLD; + void shdancbl_sound_map(address_map &map) ATTR_COLD; + void shdancbla_map(address_map &map) ATTR_COLD; + void shdancbla_sound_map(address_map &map) ATTR_COLD; + void shinobi_datsu_sound_map(address_map &map) ATTR_COLD; + void shinobib_map(address_map &map) ATTR_COLD; + void sound_18_io_map(address_map &map) ATTR_COLD; + void sound_18_map(address_map &map) ATTR_COLD; + void sound_7759_io_map(address_map &map) ATTR_COLD; + void sound_7759_map(address_map &map) ATTR_COLD; + void sound_io_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; + void sys18bl_oki_map(address_map &map) ATTR_COLD; + void sys18bl_sound_map(address_map &map) ATTR_COLD; + void tetrisbl_map(address_map &map) ATTR_COLD; + void tturfbl_map(address_map &map) ATTR_COLD; + void tturfbl_sound_io_map(address_map &map) ATTR_COLD; + void tturfbl_sound_map(address_map &map) ATTR_COLD; + void wb3bbl_map(address_map &map) ATTR_COLD; + void wb3bble_map(address_map &map) ATTR_COLD; + void wb3bble_decrypted_opcodes_map(address_map &map) ATTR_COLD; virtual void machine_start() override { m_leds.resolve(); } diff --git a/src/mame/sega/timetrv.cpp b/src/mame/sega/timetrv.cpp index ea67523bb1e..22a03722565 100644 --- a/src/mame/sega/timetrv.cpp +++ b/src/mame/sega/timetrv.cpp @@ -57,10 +57,10 @@ class timetrv_state : public driver_device void timetrv(machine_config &config); private: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; - void timetrv_map(address_map &map); - void timetrv_io(address_map &map); + void timetrv_map(address_map &map) ATTR_COLD; + void timetrv_io(address_map &map) ATTR_COLD; void ppi1_pc_w(uint8_t data); diff --git a/src/mame/sega/triforce.cpp b/src/mame/sega/triforce.cpp index 7b12f351536..6b2e943d50f 100644 --- a/src/mame/sega/triforce.cpp +++ b/src/mame/sega/triforce.cpp @@ -479,11 +479,11 @@ class triforce_state : public driver_device void gc_pi_w(uint64_t data); uint64_t gc_exi_r(); void gc_exi_w(uint64_t data); - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; uint32_t screen_update_triforce(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); required_device m_maincpu; - void gc_map(address_map &map); + void gc_map(address_map &map) ATTR_COLD; }; uint64_t triforce_state::gc_pi_r() diff --git a/src/mame/sega/turbo.h b/src/mame/sega/turbo.h index 08e2adab253..e6026206096 100644 --- a/src/mame/sega/turbo.h +++ b/src/mame/sega/turbo.h @@ -47,8 +47,8 @@ class turbo_base_state : public driver_device ioport_value pedal_r(); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; // device / memory pointers required_device m_maincpu; @@ -117,8 +117,8 @@ class buckrog_state : public turbo_base_state void buckrog_samples(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_subcpu; @@ -152,10 +152,10 @@ class buckrog_state : public turbo_base_state uint32_t get_sprite_bits(uint8_t *plb); void update_samples(); - void decrypted_opcodes_map(address_map &map); - void main_prg_map(address_map &map); - void sub_prg_map(address_map &map); - void sub_portmap(address_map &map); + void decrypted_opcodes_map(address_map &map) ATTR_COLD; + void main_prg_map(address_map &map) ATTR_COLD; + void sub_prg_map(address_map &map) ATTR_COLD; + void sub_portmap(address_map &map) ATTR_COLD; }; class subroc3d_state : public turbo_base_state @@ -171,7 +171,7 @@ class subroc3d_state : public turbo_base_state void subroc3d_samples(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_shared_ptr m_spriteram; @@ -201,7 +201,7 @@ class subroc3d_state : public turbo_base_state uint32_t get_sprite_bits(uint8_t *plb); inline void update_volume(int leftchan, uint8_t dis, uint8_t dir); - void prg_map(address_map &map); + void prg_map(address_map &map) ATTR_COLD; }; class turbo_state : public turbo_base_state @@ -223,7 +223,7 @@ class turbo_state : public turbo_base_state void init_turbo_enc(); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_region_ptr m_roadroms; @@ -274,7 +274,7 @@ class turbo_state : public turbo_base_state void update_samples(); TIMER_CALLBACK_MEMBER(update_sound_a); - void prg_map(address_map &map); + void prg_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/sega/unkhockey.cpp b/src/mame/sega/unkhockey.cpp index 5f644c8876a..2b4a575508b 100644 --- a/src/mame/sega/unkhockey.cpp +++ b/src/mame/sega/unkhockey.cpp @@ -57,7 +57,7 @@ class unkhockey_state : public driver_device required_device m_maincpu; required_device m_upd7759; - void program_map(address_map &map); + void program_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/sega/vicdual-97269pb.h b/src/mame/sega/vicdual-97269pb.h index ae998fc76fe..4d512dc75fc 100644 --- a/src/mame/sega/vicdual-97269pb.h +++ b/src/mame/sega/vicdual-97269pb.h @@ -21,9 +21,9 @@ class s97269pb_device : public device_t protected: // device-level overrides - virtual void device_start() override; - virtual void device_reset() 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 const tiny_rom_entry *device_rom_region() const override ATTR_COLD; private: required_region_ptr m_prom_ptr; diff --git a/src/mame/sega/vicdual-97271p.h b/src/mame/sega/vicdual-97271p.h index 72fb2398518..befa2980071 100644 --- a/src/mame/sega/vicdual-97271p.h +++ b/src/mame/sega/vicdual-97271p.h @@ -22,9 +22,9 @@ class s97271p_device : public device_t protected: // device-level overrides - 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; private: required_device m_samples; diff --git a/src/mame/sega/vicdual.h b/src/mame/sega/vicdual.h index 1293f1b669a..beb873672bf 100644 --- a/src/mame/sega/vicdual.h +++ b/src/mame/sega/vicdual.h @@ -160,7 +160,7 @@ class vicdual_state : public driver_device DECLARE_MACHINE_START(samurai); - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; uint32_t screen_update_bw(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); uint32_t screen_update_bw_or_color(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); @@ -169,34 +169,34 @@ class vicdual_state : public driver_device int is_cabinet_color(); virtual pen_t choose_pen(uint8_t x, uint8_t y, pen_t back_pen); - void alphaho_io_map(address_map &map); - void brdrline_io_map(address_map &map); - void carhntds_dualgame_map(address_map &map); - void carhntds_io_map(address_map &map); - void depthch_io_map(address_map &map); - void depthch_map(address_map &map); - void digger_io_map(address_map &map); - void frogs_io_map(address_map &map); - void frogs_map(address_map &map); - void headon2_io_map(address_map &map); - void headon2_map(address_map &map); - void headon_io_map(address_map &map); - void headon_map(address_map &map); - void headonn_io_map(address_map &map); - void heiankyo_io_map(address_map &map); - void invds_io_map(address_map &map); - void invho2_io_map(address_map &map); - void invinco_io_map(address_map &map); - void invinco_map(address_map &map); - void pulsar_io_map(address_map &map); - void safari_io_map(address_map &map); - void safari_map(address_map &map); - void samurai_io_map(address_map &map); - void samurai_map(address_map &map); - void spacetrk_io_map(address_map &map); - void sspacaho_io_map(address_map &map); - void sspaceat_io_map(address_map &map); - void vicdual_dualgame_map(address_map &map); + void alphaho_io_map(address_map &map) ATTR_COLD; + void brdrline_io_map(address_map &map) ATTR_COLD; + void carhntds_dualgame_map(address_map &map) ATTR_COLD; + void carhntds_io_map(address_map &map) ATTR_COLD; + void depthch_io_map(address_map &map) ATTR_COLD; + void depthch_map(address_map &map) ATTR_COLD; + void digger_io_map(address_map &map) ATTR_COLD; + void frogs_io_map(address_map &map) ATTR_COLD; + void frogs_map(address_map &map) ATTR_COLD; + void headon2_io_map(address_map &map) ATTR_COLD; + void headon2_map(address_map &map) ATTR_COLD; + void headon_io_map(address_map &map) ATTR_COLD; + void headon_map(address_map &map) ATTR_COLD; + void headonn_io_map(address_map &map) ATTR_COLD; + void heiankyo_io_map(address_map &map) ATTR_COLD; + void invds_io_map(address_map &map) ATTR_COLD; + void invho2_io_map(address_map &map) ATTR_COLD; + void invinco_io_map(address_map &map) ATTR_COLD; + void invinco_map(address_map &map) ATTR_COLD; + void pulsar_io_map(address_map &map) ATTR_COLD; + void safari_io_map(address_map &map) ATTR_COLD; + void safari_map(address_map &map) ATTR_COLD; + void samurai_io_map(address_map &map) ATTR_COLD; + void samurai_map(address_map &map) ATTR_COLD; + void spacetrk_io_map(address_map &map) ATTR_COLD; + void sspacaho_io_map(address_map &map) ATTR_COLD; + void sspaceat_io_map(address_map &map) ATTR_COLD; + void vicdual_dualgame_map(address_map &map) ATTR_COLD; }; class tranqgun_state : public vicdual_state @@ -210,17 +210,17 @@ class tranqgun_state : public vicdual_state void tranqgun(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: - void tranqgun_io_map(address_map &map); + void tranqgun_io_map(address_map &map) ATTR_COLD; void tranqgun_io_w(offs_t offset, uint8_t data); uint8_t tranqgun_prot_r(offs_t offset); void tranqgun_prot_w(offs_t offset, uint8_t data); - void brdrlinet_dualgame_map(address_map &map); - void tranqgun_dualgame_map(address_map &map); + void brdrlinet_dualgame_map(address_map &map) ATTR_COLD; + void tranqgun_dualgame_map(address_map &map) ATTR_COLD; uint8_t m_tranqgun_prot_return = 0; @@ -257,8 +257,8 @@ class nsub_state : public vicdual_state DECLARE_MACHINE_RESET(nsub); virtual pen_t choose_pen(uint8_t x, uint8_t y, pen_t back_pen) override; - void nsub_io_map(address_map &map); - void nsub_map(address_map &map); + void nsub_io_map(address_map &map) ATTR_COLD; + void nsub_map(address_map &map) ATTR_COLD; }; class carnival_state : public vicdual_state @@ -279,15 +279,15 @@ class carnival_state : public vicdual_state void carnivalb_audio(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; required_device m_audiocpu; optional_device m_psg; optional_device m_pit; optional_device_array m_dac; - void carnival_io_map(address_map &map); - void mboard_map(address_map &map); + void carnival_io_map(address_map &map) ATTR_COLD; + void mboard_map(address_map &map) ATTR_COLD; int m_musicData = 0; int m_musicBus = 0; @@ -315,13 +315,13 @@ class carnivalh_state : public carnival_state void carnivalh(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: uint8_t carnivalh_prot_r(offs_t offset); void carnivalh_prot_w(offs_t offset, uint8_t data); - void carnivalh_dualgame_map(address_map &map); + void carnivalh_dualgame_map(address_map &map) ATTR_COLD; uint16_t m_previousaddress = 0; uint8_t m_previousvalue = 0; diff --git a/src/mame/sega/vicdual_a.h b/src/mame/sega/vicdual_a.h index e41e7713ff1..138f1fc0c34 100644 --- a/src/mame/sega/vicdual_a.h +++ b/src/mame/sega/vicdual_a.h @@ -14,8 +14,8 @@ class vicdual_audio_device_base : public device_t, public device_mixer_interface protected: vicdual_audio_device_base(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, u8 inputs_mask, void (*netlist)(netlist::nlparse_t &), double output_scale); - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; public: void write(u8 data); diff --git a/src/mame/sega/winclub.cpp b/src/mame/sega/winclub.cpp index b3ef1cafe2f..d07803aed60 100644 --- a/src/mame/sega/winclub.cpp +++ b/src/mame/sega/winclub.cpp @@ -59,7 +59,7 @@ class winclub_state : public driver_device private: uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void prg_map(address_map &map); + void prg_map(address_map &map) ATTR_COLD; }; uint32_t winclub_state::screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect) diff --git a/src/mame/sega/y2.cpp b/src/mame/sega/y2.cpp index cc63702f0c1..d4a6f86fd70 100644 --- a/src/mame/sega/y2.cpp +++ b/src/mame/sega/y2.cpp @@ -39,7 +39,7 @@ class system_board_y2_state : public driver_device void system_board_y2(machine_config &config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: uint32_t screen_update_system_board_y2(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); diff --git a/src/mame/sega/zaxxon.h b/src/mame/sega/zaxxon.h index cb9f7f2e03c..c6a23d0a70b 100644 --- a/src/mame/sega/zaxxon.h +++ b/src/mame/sega/zaxxon.h @@ -109,8 +109,8 @@ class zaxxon_state : public driver_device TILE_GET_INFO_MEMBER(zaxxon_get_fg_tile_info); TILE_GET_INFO_MEMBER(razmataz_get_fg_tile_info); TILE_GET_INFO_MEMBER(congo_get_fg_tile_info); - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; void zaxxon_palette(palette_device &palette); DECLARE_VIDEO_START(razmataz); DECLARE_VIDEO_START(congo); @@ -131,11 +131,11 @@ class zaxxon_state : public driver_device inline int find_minimum_x(uint8_t value, int flip); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect, uint16_t flipxmask, uint16_t flipymask); - void congo_map(address_map &map); - void congo_sound_map(address_map &map); - void decrypted_opcodes_map(address_map &map); - void ixion_map(address_map &map); - void zaxxon_map(address_map &map); + void congo_map(address_map &map) ATTR_COLD; + void congo_sound_map(address_map &map) ATTR_COLD; + void decrypted_opcodes_map(address_map &map) ATTR_COLD; + void ixion_map(address_map &map) ATTR_COLD; + void zaxxon_map(address_map &map) ATTR_COLD; }; #endif // MAME_SEGA_ZAXXON_H diff --git a/src/mame/seibu/airraid.cpp b/src/mame/seibu/airraid.cpp index e81cd6756f0..351fb2157b6 100644 --- a/src/mame/seibu/airraid.cpp +++ b/src/mame/seibu/airraid.cpp @@ -191,10 +191,10 @@ class airraid_state : public driver_device void bank_w(uint8_t data); TIMER_DEVICE_CALLBACK_MEMBER(scanline); - void main_map(address_map &map); - void sound_decrypted_opcodes_map(address_map &map); - void sound_map(address_map &map); - void decrypted_opcodes_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_decrypted_opcodes_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; + void decrypted_opcodes_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/seibu/airraid_dev.h b/src/mame/seibu/airraid_dev.h index 5780f4a7dea..9442fe59961 100644 --- a/src/mame/seibu/airraid_dev.h +++ b/src/mame/seibu/airraid_dev.h @@ -24,9 +24,9 @@ class airraid_video_device : public device_t void layer_enable_w(uint8_t enable); protected: - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: // devices diff --git a/src/mame/seibu/banprestoms.cpp b/src/mame/seibu/banprestoms.cpp index f32d5eff5b4..e6da7bd3983 100644 --- a/src/mame/seibu/banprestoms.cpp +++ b/src/mame/seibu/banprestoms.cpp @@ -77,8 +77,8 @@ class banprestoms_state : public driver_device void init_oki(); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -109,8 +109,8 @@ class banprestoms_state : public driver_device uint32_t pri_cb(uint8_t pri, uint8_t ext); uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void prg_map(address_map &map); - void oki_map(address_map &map); + void prg_map(address_map &map) ATTR_COLD; + void oki_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/seibu/bloodbro.cpp b/src/mame/seibu/bloodbro.cpp index 86ee984e454..58688edb1f1 100644 --- a/src/mame/seibu/bloodbro.cpp +++ b/src/mame/seibu/bloodbro.cpp @@ -175,7 +175,7 @@ class bloodbro_state : public driver_device, public seibu_sound_common void skysmash(machine_config &config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; required_device m_maincpu; required_device m_audiocpu; @@ -211,9 +211,9 @@ class bloodbro_state : public driver_device, public seibu_sound_common uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); uint32_t pri_cb(uint8_t pri, uint8_t ext); - void bloodbro_map(address_map &map); - void common_map(address_map &map); - void skysmash_map(address_map &map); + void bloodbro_map(address_map &map) ATTR_COLD; + void common_map(address_map &map) ATTR_COLD; + void skysmash_map(address_map &map) ATTR_COLD; }; class weststry_state : public bloodbro_state @@ -241,8 +241,8 @@ class weststry_state : public bloodbro_state uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void draw_sprites(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void main_map(address_map &map); - void sound_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/seibu/bloodbro_ms.cpp b/src/mame/seibu/bloodbro_ms.cpp index f61a8843110..b2d5d4926c6 100644 --- a/src/mame/seibu/bloodbro_ms.cpp +++ b/src/mame/seibu/bloodbro_ms.cpp @@ -51,7 +51,7 @@ class bloodbro_ms_state : public driver_device void init_bloodbrom(); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_maincpu; @@ -62,7 +62,7 @@ class bloodbro_ms_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void bloodbrom_map(address_map &map); + void bloodbrom_map(address_map &map) ATTR_COLD; void descramble_16x16tiles(uint8_t* src, int len); }; diff --git a/src/mame/seibu/cabal.cpp b/src/mame/seibu/cabal.cpp index 91ab85a58d2..d78e2f30c88 100644 --- a/src/mame/seibu/cabal.cpp +++ b/src/mame/seibu/cabal.cpp @@ -198,7 +198,7 @@ class cabal_base_state : public driver_device { } protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; required_device m_maincpu; required_device m_audiocpu; @@ -247,12 +247,12 @@ class cabal_state : public cabal_base_state void sound_irq_trigger_word_w(offs_t offset, uint16_t data, uint16_t mem_mask); - void main_map(address_map &map); - void sound_decrypted_opcodes_map(address_map &map); - void sound_map(address_map &map); - void trackball_main_map(address_map &map); - void cabalbl2_predecrypted_opcodes_map(address_map &map); - void cabalbl2_sound_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_decrypted_opcodes_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; + void trackball_main_map(address_map &map) ATTR_COLD; + void cabalbl2_predecrypted_opcodes_map(address_map &map) ATTR_COLD; + void cabalbl2_sound_map(address_map &map) ATTR_COLD; }; class cabalbl_state : public cabal_base_state @@ -265,8 +265,8 @@ class cabalbl_state : public cabal_base_state void cabalbl(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: int m_sound_command[2]{}; @@ -277,12 +277,12 @@ class cabalbl_state : public cabal_base_state void coin_w(uint8_t data); template void adpcm_w(uint8_t data); - void main_map(address_map &map); - void sound_map(address_map &map); - void talk1_map(address_map &map); - void talk1_portmap(address_map &map); - void talk2_map(address_map &map); - void talk2_portmap(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; + void talk1_map(address_map &map) ATTR_COLD; + void talk1_portmap(address_map &map) ATTR_COLD; + void talk2_map(address_map &map) ATTR_COLD; + void talk2_portmap(address_map &map) ATTR_COLD; }; diff --git a/src/mame/seibu/darkmist.cpp b/src/mame/seibu/darkmist.cpp index 000b4954e4e..35e5bc824db 100644 --- a/src/mame/seibu/darkmist.cpp +++ b/src/mame/seibu/darkmist.cpp @@ -73,8 +73,8 @@ class darkmist_state : public driver_device void init_darkmist(); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: void hw_w(uint8_t data); @@ -95,8 +95,8 @@ class darkmist_state : public driver_device void decrypt_snd(); TIMER_DEVICE_CALLBACK_MEMBER(scanline); - void decrypted_opcodes_map(address_map &map); - void memmap(address_map &map); + void decrypted_opcodes_map(address_map &map) ATTR_COLD; + void memmap(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_t5182; diff --git a/src/mame/seibu/dcon.cpp b/src/mame/seibu/dcon.cpp index 8aa088f03b9..1f1a00ebe67 100644 --- a/src/mame/seibu/dcon.cpp +++ b/src/mame/seibu/dcon.cpp @@ -53,7 +53,7 @@ class dcon_state : public driver_device, public seibu_sound_common void sdgndmps(machine_config &config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -96,8 +96,8 @@ class dcon_state : public driver_device, public seibu_sound_common uint32_t screen_update_dcon(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); uint32_t screen_update_sdgndmps(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); uint32_t pri_cb(uint8_t pri, uint8_t ext); - void dcon_map(address_map &map); - void sdgndmps_map(address_map &map); + void dcon_map(address_map &map) ATTR_COLD; + void sdgndmps_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/seibu/deadang.cpp b/src/mame/seibu/deadang.cpp index 09bcd38c37a..6775e285958 100644 --- a/src/mame/seibu/deadang.cpp +++ b/src/mame/seibu/deadang.cpp @@ -90,7 +90,7 @@ class deadang_state : public driver_device void init_ghunter(); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; required_shared_ptr m_scroll_ram; required_shared_ptr m_videoram; @@ -133,11 +133,11 @@ class deadang_state : public driver_device TIMER_DEVICE_CALLBACK_MEMBER(main_scanline); TIMER_DEVICE_CALLBACK_MEMBER(sub_scanline); - void main_map(address_map &map); - void ghunter_main_map(address_map &map); - void sound_decrypted_opcodes_map(address_map &map); - void sound_map(address_map &map); - void sub_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void ghunter_main_map(address_map &map) ATTR_COLD; + void sound_decrypted_opcodes_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; + void sub_map(address_map &map) ATTR_COLD; }; class popnrun_state : public deadang_state @@ -150,14 +150,14 @@ class popnrun_state : public deadang_state void popnrun(machine_config &config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: TILE_GET_INFO_MEMBER(get_text_tile_info); void text_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); - void main_map(address_map &map); - void sub_map(address_map &map); - void sound_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sub_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void draw_sprites(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); diff --git a/src/mame/seibu/dynduke.cpp b/src/mame/seibu/dynduke.cpp index c94ad96c8c0..19a0dd0aea0 100644 --- a/src/mame/seibu/dynduke.cpp +++ b/src/mame/seibu/dynduke.cpp @@ -107,7 +107,7 @@ class dynduke_state : public driver_device void dbldyn(machine_config &config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -149,12 +149,12 @@ class dynduke_state : public driver_device void draw_background(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, int pri, uint32_t pri_mask); void vblank_irq(int state); - void master_map(address_map &map); - void masterj_map(address_map &map); - void sei80bu_encrypted_full_map(address_map &map); - void slave_map(address_map &map); - void sound_decrypted_opcodes_map(address_map &map); - void sound_map(address_map &map); + void master_map(address_map &map) ATTR_COLD; + void masterj_map(address_map &map) ATTR_COLD; + void sei80bu_encrypted_full_map(address_map &map) ATTR_COLD; + void slave_map(address_map &map) ATTR_COLD; + void sound_decrypted_opcodes_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/seibu/feversoc.cpp b/src/mame/seibu/feversoc.cpp index 0355b31e4d4..6747fd2f216 100644 --- a/src/mame/seibu/feversoc.cpp +++ b/src/mame/seibu/feversoc.cpp @@ -113,11 +113,11 @@ class feversoc_state : public driver_device uint16_t in_r(offs_t offset); void output_w(uint16_t data); void output2_w(uint16_t data); - void feversoc_map(address_map &map); + void feversoc_map(address_map &map) ATTR_COLD; uint32_t screen_update_feversoc(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void feversoc_irq(int state); void feversoc_irq_ack(uint16_t data); - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; required_shared_ptr m_mainram1; required_shared_ptr m_mainram2; diff --git a/src/mame/seibu/goal92.cpp b/src/mame/seibu/goal92.cpp index 4361204b9ca..21742d2a9f1 100644 --- a/src/mame/seibu/goal92.cpp +++ b/src/mame/seibu/goal92.cpp @@ -50,9 +50,9 @@ class goal92_state : public driver_device void goal92(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: // memory pointers @@ -97,8 +97,8 @@ class goal92_state : public driver_device void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect, int pri); void irqhandler(int state); void adpcm_int(int state); - void main_map(address_map &map); - void sound_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/seibu/goodejan.cpp b/src/mame/seibu/goodejan.cpp index dcbd6b218d7..77b2d5381b7 100644 --- a/src/mame/seibu/goodejan.cpp +++ b/src/mame/seibu/goodejan.cpp @@ -112,7 +112,7 @@ class goodejan_state : public driver_device, public seibu_sound_common void goodejan(machine_config &config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -160,10 +160,10 @@ class goodejan_state : public driver_device, public seibu_sound_common uint32_t pri_cb(uint8_t pri, uint8_t ext); uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void common_io_map(address_map &map); - void goodejan_io_map(address_map &map); - void goodejan_map(address_map &map); - void totmejan_io_map(address_map &map); + void common_io_map(address_map &map) ATTR_COLD; + void goodejan_io_map(address_map &map) ATTR_COLD; + void goodejan_map(address_map &map) ATTR_COLD; + void totmejan_io_map(address_map &map) ATTR_COLD; }; /******************************* diff --git a/src/mame/seibu/kncljoe.cpp b/src/mame/seibu/kncljoe.cpp index 84d254d99c2..38edea58df3 100644 --- a/src/mame/seibu/kncljoe.cpp +++ b/src/mame/seibu/kncljoe.cpp @@ -64,9 +64,9 @@ class kncljoe_state : public driver_device void kncljoe(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_shared_ptr m_videoram; @@ -106,8 +106,8 @@ class kncljoe_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); INTERRUPT_GEN_MEMBER(sound_nmi); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); - void main_map(address_map &map); - void sound_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/seibu/legionna.h b/src/mame/seibu/legionna.h index e866d98defe..d1400a6b56d 100644 --- a/src/mame/seibu/legionna.h +++ b/src/mame/seibu/legionna.h @@ -97,15 +97,15 @@ class legionna_state : public driver_device, public seibu_sound_common void common_video_start(bool split); void common_video_allocate_ptr(); - void cupsoc_map(address_map &map); - void cupsocs_map(address_map &map); - void denjinmk_map(address_map &map); - void godzilla_map(address_map &map); - void grainbow_map(address_map &map); - void heatbrl_map(address_map &map); - void legionna_cop_map(address_map &map); - void legionna_map(address_map &map); - void godzilla_sound_io_map(address_map &map); + void cupsoc_map(address_map &map) ATTR_COLD; + void cupsocs_map(address_map &map) ATTR_COLD; + void denjinmk_map(address_map &map) ATTR_COLD; + void godzilla_map(address_map &map) ATTR_COLD; + void grainbow_map(address_map &map) ATTR_COLD; + void heatbrl_map(address_map &map) ATTR_COLD; + void legionna_cop_map(address_map &map) ATTR_COLD; + void legionna_map(address_map &map) ATTR_COLD; + void godzilla_sound_io_map(address_map &map) ATTR_COLD; required_shared_ptr m_spriteram; optional_shared_ptr m_swappal; diff --git a/src/mame/seibu/metlfrzr.cpp b/src/mame/seibu/metlfrzr.cpp index 9af9f0a9f40..04b79f1aa6e 100644 --- a/src/mame/seibu/metlfrzr.cpp +++ b/src/mame/seibu/metlfrzr.cpp @@ -52,9 +52,9 @@ class metlfrzr_state : public driver_device void init_metlfrzr(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: void legacy_bg_draw(bitmap_ind16 &bitmap, const rectangle &cliprect); @@ -63,8 +63,8 @@ class metlfrzr_state : public driver_device uint32_t screen_update_metlfrzr(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void output_w(uint8_t data); TIMER_DEVICE_CALLBACK_MEMBER(scanline); - void decrypted_opcodes_map(address_map &map); - void metlfrzr_map(address_map &map); + void decrypted_opcodes_map(address_map &map) ATTR_COLD; + void metlfrzr_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_shared_ptr m_decrypted_opcodes; diff --git a/src/mame/seibu/mustache.cpp b/src/mame/seibu/mustache.cpp index 1699d27aa91..a876d2c84df 100644 --- a/src/mame/seibu/mustache.cpp +++ b/src/mame/seibu/mustache.cpp @@ -65,7 +65,7 @@ class mustache_state : public driver_device void init_mustache(); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -90,8 +90,8 @@ class mustache_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); - void decrypted_opcodes_map(address_map &map); - void memmap(address_map &map); + void decrypted_opcodes_map(address_map &map) ATTR_COLD; + void memmap(address_map &map) ATTR_COLD; }; diff --git a/src/mame/seibu/panicr.cpp b/src/mame/seibu/panicr.cpp index c26bcd60442..8550b8bbab9 100644 --- a/src/mame/seibu/panicr.cpp +++ b/src/mame/seibu/panicr.cpp @@ -109,14 +109,14 @@ class panicr_state : public driver_device TILE_GET_INFO_MEMBER(get_infotile_info_2); TILE_GET_INFO_MEMBER(get_txttile_info); - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; void panicr_palette(palette_device &palette) const; uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); TIMER_DEVICE_CALLBACK_MEMBER(scanline); - void panicr_map(address_map &map); + void panicr_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_t5182; diff --git a/src/mame/seibu/r2dx_v33.cpp b/src/mame/seibu/r2dx_v33.cpp index d367e5c103e..d09d36196bf 100644 --- a/src/mame/seibu/r2dx_v33.cpp +++ b/src/mame/seibu/r2dx_v33.cpp @@ -130,13 +130,13 @@ class r2dx_v33_state : public raiden2_state DECLARE_MACHINE_RESET(r2dx_v33); DECLARE_MACHINE_RESET(nzeroteam); - void nzerotea_map(address_map &map); - void nzeroteam_base_map(address_map &map); - void r2dx_oki_map(address_map &map); - void rdx_v33_map(address_map &map); - void zerotm2k_map(address_map &map); + void nzerotea_map(address_map &map) ATTR_COLD; + void nzeroteam_base_map(address_map &map) ATTR_COLD; + void r2dx_oki_map(address_map &map) ATTR_COLD; + void rdx_v33_map(address_map &map) ATTR_COLD; + void zerotm2k_map(address_map &map) ATTR_COLD; - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; void r2dx_setbanking(); diff --git a/src/mame/seibu/raiden.cpp b/src/mame/seibu/raiden.cpp index 6ff7b1cff9d..70b71a4b246 100644 --- a/src/mame/seibu/raiden.cpp +++ b/src/mame/seibu/raiden.cpp @@ -145,7 +145,7 @@ class raiden_state : public driver_device, public seibu_sound_common bool m_sp_layer_enabled = 0; bool m_flipscreen = 0; - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; u32 screen_update_common(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, u16 *scrollregs); @@ -182,13 +182,13 @@ class raiden_state : public driver_device, public seibu_sound_common void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect, bitmap_ind8 &primap); - void main_map(address_map &map); - void sub_map(address_map &map); - void raiden_sound_map(address_map &map); - void raiden_sound_decrypted_opcodes_map(address_map &map); - void raidenu_main_map(address_map &map); - void raidenu_sub_map(address_map &map); - void sei80bu_encrypted_full_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sub_map(address_map &map) ATTR_COLD; + void raiden_sound_map(address_map &map) ATTR_COLD; + void raiden_sound_decrypted_opcodes_map(address_map &map) ATTR_COLD; + void raidenu_main_map(address_map &map) ATTR_COLD; + void raidenu_sub_map(address_map &map) ATTR_COLD; + void sei80bu_encrypted_full_map(address_map &map) ATTR_COLD; }; @@ -200,7 +200,7 @@ class raidenb_state : public raiden_state void raidenb(machine_config &config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: u16 m_scroll_ram[6]; @@ -211,7 +211,7 @@ class raidenb_state : public raiden_state void layer_enable_w(u16 data); void layer_scroll_w(offs_t offset, u16 data, u16 mem_mask = ~0); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/seibu/raiden2.h b/src/mame/seibu/raiden2.h index 51fb046c6c2..2aa5d28a643 100644 --- a/src/mame/seibu/raiden2.h +++ b/src/mame/seibu/raiden2.h @@ -93,7 +93,7 @@ class raiden2_state : public driver_device INTERRUPT_GEN_MEMBER(interrupt); void common_save_state(); - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; void tilemap_enable_w(offs_t offset, u16 data, u16 mem_mask = ~0); void tile_scroll_w(offs_t offset, u16 data, u16 mem_mask = ~0); @@ -139,7 +139,7 @@ class raiden2_state : public driver_device bitmap_ind16 m_tile_bitmap, m_sprite_bitmap; - void zeroteam_sound_map(address_map &map); + void zeroteam_sound_map(address_map &map) ATTR_COLD; private: void raiden2_bank_w(u8 data); @@ -167,7 +167,7 @@ class raiden2_state : public driver_device u16 m_sprcpt_flags2 = 0; u32 m_sprcpt_data_1[0x100], m_sprcpt_data_2[0x40], m_sprcpt_data_3[6], m_sprcpt_data_4[4]; - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; DECLARE_MACHINE_RESET(raiden2); DECLARE_MACHINE_RESET(zeroteam); DECLARE_MACHINE_RESET(xsedae); @@ -175,12 +175,12 @@ class raiden2_state : public driver_device void combine32(u32 *val, offs_t offset, u16 data, u16 mem_mask); void sprcpt_init(); - void raiden2_cop_mem(address_map &map); - void raiden2_mem(address_map &map); - void raiden2_sound_map(address_map &map); - void raidendx_mem(address_map &map); - void xsedae_mem(address_map &map); - void zeroteam_mem(address_map &map); + void raiden2_cop_mem(address_map &map) ATTR_COLD; + void raiden2_mem(address_map &map) ATTR_COLD; + void raiden2_sound_map(address_map &map) ATTR_COLD; + void raidendx_mem(address_map &map) ATTR_COLD; + void xsedae_mem(address_map &map) ATTR_COLD; + void zeroteam_mem(address_map &map) ATTR_COLD; }; #endif // MAME_SEIBU_RAIDEN2_H diff --git a/src/mame/seibu/raiden_ms.cpp b/src/mame/seibu/raiden_ms.cpp index f27084faa0a..003a28884ec 100644 --- a/src/mame/seibu/raiden_ms.cpp +++ b/src/mame/seibu/raiden_ms.cpp @@ -239,8 +239,8 @@ class raiden_ms_state : public driver_device void init_raidenm(); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -268,13 +268,13 @@ class raiden_ms_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void raidenm_map(address_map &map); - void raidenm_sub_map(address_map &map); + void raidenm_map(address_map &map) ATTR_COLD; + void raidenm_sub_map(address_map &map) ATTR_COLD; u8 sound_status_r(); void adpcm_w(u8 data); void ym_w(offs_t offset, u8 data); - void audio_map(address_map& map); + void audio_map(address_map &map) ATTR_COLD; void adpcm_int(int state); bool m_audio_select; u8 m_adpcm_data; diff --git a/src/mame/seibu/sei021x_sei0220_spr.h b/src/mame/seibu/sei021x_sei0220_spr.h index 043178c3be9..293ef2e8c73 100644 --- a/src/mame/seibu/sei021x_sei0220_spr.h +++ b/src/mame/seibu/sei021x_sei0220_spr.h @@ -35,8 +35,8 @@ class sei0210_device : public device_t, public device_gfx_interface protected: sei0210_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 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 s32 get_coordinate(s32 coordinate) { diff --git a/src/mame/seibu/seibu_crtc.h b/src/mame/seibu/seibu_crtc.h index ac27043a06f..d5fc77084be 100644 --- a/src/mame/seibu/seibu_crtc.h +++ b/src/mame/seibu/seibu_crtc.h @@ -44,12 +44,12 @@ class seibu_crtc_device : public device_t, void layer_scroll_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); void layer_scroll_base_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); - void seibu_crtc_vregs(address_map &map); + void seibu_crtc_vregs(address_map &map) ATTR_COLD; protected: // device-level overrides virtual void device_validity_check(validity_checker &valid) const override; - 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 space_config_vector memory_space_config() const override; private: diff --git a/src/mame/seibu/seibucats.cpp b/src/mame/seibu/seibucats.cpp index ab28e0836d6..434cb59b44b 100644 --- a/src/mame/seibu/seibucats.cpp +++ b/src/mame/seibu/seibucats.cpp @@ -119,12 +119,12 @@ class seibucats_state : public seibuspi_state void output_latch_w(u16 data); void aux_rtc_w(u16 data); - void seibucats_map(address_map &map); + void seibucats_map(address_map &map) ATTR_COLD; // driver_device overrides - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; u16 m_input_select = 0; diff --git a/src/mame/seibu/seibucop.h b/src/mame/seibu/seibucop.h index b3f83ebde07..2ec5da952d6 100644 --- a/src/mame/seibu/seibucop.h +++ b/src/mame/seibu/seibucop.h @@ -180,7 +180,7 @@ class raiden2cop_device : public device_t protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: // device callbacks diff --git a/src/mame/seibu/seibuspi.h b/src/mame/seibu/seibuspi.h index c25c8c697f8..fe74584f644 100644 --- a/src/mame/seibu/seibuspi.h +++ b/src/mame/seibu/seibuspi.h @@ -157,8 +157,8 @@ class seibuspi_state : public driver_device void draw_sprites(bitmap_rgb32 &bitmap, const rectangle &cliprect, bitmap_ind8 &primap, int priority); void combine_tilemap(bitmap_rgb32 &bitmap, const rectangle &cliprect, tilemap_t *tile, int sx, int sy, int opaque, s16 *rowscroll); - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; DECLARE_MACHINE_RESET(spi); DECLARE_MACHINE_RESET(sxx2e); DECLARE_VIDEO_START(ejanhs); @@ -181,16 +181,16 @@ class seibuspi_state : public driver_device void rfjet_text_decrypt(u8 *rom); void rfjet_bg_decrypt(u8 *rom, int size); - void base_map(address_map &map); - void rdft2_map(address_map &map); - void rise_map(address_map &map); - void sei252_map(address_map &map); - void spi_map(address_map &map); - void spi_soundmap(address_map &map); - void spi_ymf271_map(address_map &map); - void sxx2e_map(address_map &map); - void sxx2e_soundmap(address_map &map); - void sxx2f_map(address_map &map); - void sys386f_map(address_map &map); - void sys386i_map(address_map &map); + void base_map(address_map &map) ATTR_COLD; + void rdft2_map(address_map &map) ATTR_COLD; + void rise_map(address_map &map) ATTR_COLD; + void sei252_map(address_map &map) ATTR_COLD; + void spi_map(address_map &map) ATTR_COLD; + void spi_soundmap(address_map &map) ATTR_COLD; + void spi_ymf271_map(address_map &map) ATTR_COLD; + void sxx2e_map(address_map &map) ATTR_COLD; + void sxx2e_soundmap(address_map &map) ATTR_COLD; + void sxx2f_map(address_map &map) ATTR_COLD; + void sys386f_map(address_map &map) ATTR_COLD; + void sys386i_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/seibu/seicopbl.h b/src/mame/seibu/seicopbl.h index a813a2c7aab..8d70b180415 100644 --- a/src/mame/seibu/seicopbl.h +++ b/src/mame/seibu/seicopbl.h @@ -38,11 +38,11 @@ class seibu_cop_bootleg_device : public device_t, public device_memory_interface uint16_t scale_r(); void scale_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); - void seibucopbl_map(address_map &map); + void seibucopbl_map(address_map &map) ATTR_COLD; 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 space_config_vector memory_space_config() const override; private: diff --git a/src/mame/seibu/sengokmj.cpp b/src/mame/seibu/sengokmj.cpp index 876ba1a3b44..7a4952868d8 100644 --- a/src/mame/seibu/sengokmj.cpp +++ b/src/mame/seibu/sengokmj.cpp @@ -91,8 +91,8 @@ class sengokmj_state : public driver_device, public seibu_sound_common void sengokmj(machine_config &config); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -137,8 +137,8 @@ class sengokmj_state : public driver_device, public seibu_sound_common uint32_t pri_cb(uint8_t pri, uint8_t ext); uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void sengokmj_io_map(address_map &map); - void sengokmj_map(address_map &map); + void sengokmj_io_map(address_map &map) ATTR_COLD; + void sengokmj_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/seibu/stfight.cpp b/src/mame/seibu/stfight.cpp index 0697caf216c..9658b656bb6 100644 --- a/src/mame/seibu/stfight.cpp +++ b/src/mame/seibu/stfight.cpp @@ -312,8 +312,8 @@ class stfight_state : public driver_device void init_stfight(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; @@ -365,11 +365,11 @@ class stfight_state : public driver_device void _68705_port_b_w(uint8_t data); void _68705_port_c_w(uint8_t data); - void cpu1_map(address_map &map); - void cpu2_map(address_map &map); - void cshooter_cpu1_map(address_map &map); - void decrypted_opcodes_map(address_map &map); - void stfight_cpu1_map(address_map &map); + void cpu1_map(address_map &map) ATTR_COLD; + void cpu2_map(address_map &map) ATTR_COLD; + void cshooter_cpu1_map(address_map &map) ATTR_COLD; + void decrypted_opcodes_map(address_map &map) ATTR_COLD; + void stfight_cpu1_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/seibu/stfight_dev.h b/src/mame/seibu/stfight_dev.h index c4492701001..e9d072b08fe 100644 --- a/src/mame/seibu/stfight_dev.h +++ b/src/mame/seibu/stfight_dev.h @@ -27,9 +27,9 @@ class stfight_video_device : public device_t protected: uint32_t screen_update_stfight(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: // devices diff --git a/src/mame/seibu/t5182.h b/src/mame/seibu/t5182.h index 8b2fca73b59..6f535f69103 100644 --- a/src/mame/seibu/t5182.h +++ b/src/mame/seibu/t5182.h @@ -38,10 +38,10 @@ class t5182_device : public device_t protected: // device-level overrides - virtual void device_start() override; - virtual const tiny_rom_entry *device_rom_region() const override; - virtual ioport_constructor device_input_ports() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_start() override ATTR_COLD; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: TIMER_CALLBACK_MEMBER(setirq_callback); @@ -54,8 +54,8 @@ class t5182_device : public device_t uint8_t ym_r(offs_t offset); void ym_w(offs_t offset, uint8_t data); - void t5182_io(address_map &map); - void t5182_map(address_map &map); + void t5182_io(address_map &map) ATTR_COLD; + void t5182_map(address_map &map) ATTR_COLD; // internal state required_device m_ourcpu; diff --git a/src/mame/seibu/toki.cpp b/src/mame/seibu/toki.cpp index 84ab5a64842..99565d55fcd 100644 --- a/src/mame/seibu/toki.cpp +++ b/src/mame/seibu/toki.cpp @@ -129,7 +129,7 @@ class base_state : public driver_device { } protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; required_device m_maincpu; required_device m_audiocpu; @@ -180,11 +180,11 @@ class toki_state : public base_state uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); - void jujuba_audio_map(address_map &map); - void jujuba_audio_opcodes_map(address_map &map); - void toki_audio_map(address_map &map); - void toki_audio_opcodes_map(address_map &map); - void main_map(address_map &map); + void jujuba_audio_map(address_map &map) ATTR_COLD; + void jujuba_audio_opcodes_map(address_map &map) ATTR_COLD; + void toki_audio_map(address_map &map) ATTR_COLD; + void toki_audio_opcodes_map(address_map &map) ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; }; class tokib_state : public base_state @@ -216,8 +216,8 @@ class tokib_state : public base_state uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); - void audio_map(address_map &map); - void main_map(address_map &map); + void audio_map(address_map &map) ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/seibu/toki_ms.cpp b/src/mame/seibu/toki_ms.cpp index e9d8a0f2945..1b5aab57e9d 100644 --- a/src/mame/seibu/toki_ms.cpp +++ b/src/mame/seibu/toki_ms.cpp @@ -308,8 +308,8 @@ class toki_ms_state : public driver_device required_device m_msm; required_device m_soundlatch; - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; TILE_GET_INFO_MEMBER(get_bk1_info); TILE_GET_INFO_MEMBER(get_bk2_info); @@ -328,8 +328,8 @@ class toki_ms_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void tokims_map(address_map &map); - void audio_map(address_map &map); + void tokims_map(address_map &map) ATTR_COLD; + void audio_map(address_map &map) ATTR_COLD; u8 sound_status_r(); void sound_command_w(u8 data); diff --git a/src/mame/seibu/wiz.cpp b/src/mame/seibu/wiz.cpp index cb12aa52420..d619cee41aa 100644 --- a/src/mame/seibu/wiz.cpp +++ b/src/mame/seibu/wiz.cpp @@ -213,8 +213,8 @@ class wiz_state : public driver_device void kungfuta(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; required_device m_maincpu; required_device m_audiocpu; @@ -255,10 +255,10 @@ class wiz_state : public driver_device void draw_tiles(bitmap_ind16 &bitmap, const rectangle &cliprect, int layer, int charbank, int colortype); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect, int set, int charbank); - void kungfut_main_map(address_map &map); - void kungfuta_main_map(address_map &map); - void sound_map(address_map &map); - void wiz_main_map(address_map &map); + void kungfut_main_map(address_map &map) ATTR_COLD; + void kungfuta_main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; + void wiz_main_map(address_map &map) ATTR_COLD; }; class stinger_state : public wiz_state @@ -276,8 +276,8 @@ class stinger_state : public wiz_state void init_stinger(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_discrete; @@ -291,9 +291,9 @@ class stinger_state : public wiz_state void shot_w(uint8_t data); uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void decrypted_opcodes_map(address_map &map); - void main_map(address_map &map); - void sound_map(address_map &map); + void decrypted_opcodes_map(address_map &map) ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/sequential/prophet600.cpp b/src/mame/sequential/prophet600.cpp index 077c4a6a323..254a3c96b63 100644 --- a/src/mame/sequential/prophet600.cpp +++ b/src/mame/sequential/prophet600.cpp @@ -92,7 +92,7 @@ class prophet600_state : public driver_device void prophet600(machine_config &config); private: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; void pit_ch0_tick_w(int state); void pit_ch2_tick_w(int state); @@ -109,8 +109,8 @@ class prophet600_state : public driver_device void cv_w(uint8_t data); void gate_w(uint8_t data); - void cpu_map(address_map &map); - void io_map(address_map &map); + void cpu_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_acia; diff --git a/src/mame/seta/albazc.cpp b/src/mame/seta/albazc.cpp index 254b48002c0..45dbe9c5339 100644 --- a/src/mame/seta/albazc.cpp +++ b/src/mame/seta/albazc.cpp @@ -45,7 +45,7 @@ class albazc_state : public driver_device void out_2_w(uint8_t data); void palette(palette_device &palette) const; uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void prg_map(address_map &map); + void prg_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_sprites; diff --git a/src/mame/seta/champbwl.cpp b/src/mame/seta/champbwl.cpp index 36193f67410..f2b6abff667 100644 --- a/src/mame/seta/champbwl.cpp +++ b/src/mame/seta/champbwl.cpp @@ -178,7 +178,7 @@ class champbwl_base_state : public driver_device { } protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; required_device m_maincpu; required_device m_spritegen; @@ -201,8 +201,8 @@ class champbwl_state : public champbwl_base_state void champbwl(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: uint8_t trackball_r(); @@ -211,7 +211,7 @@ class champbwl_state : public champbwl_base_state void screen_vblank(int state); - void prg_map(address_map &map); + void prg_map(address_map &map) ATTR_COLD; required_ioport_array<2> m_inputs; required_ioport_array<2> m_fakex; @@ -238,7 +238,7 @@ class doraemon_state : public champbwl_base_state void screen_vblank(int state); - void prg_map(address_map &map); + void prg_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/seta/downtown.cpp b/src/mame/seta/downtown.cpp index 5b044b8d356..d2088c4e2b7 100644 --- a/src/mame/seta/downtown.cpp +++ b/src/mame/seta/downtown.cpp @@ -345,7 +345,7 @@ class tndrcade_state : public driver_device void tndrcade(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; u16 ipl1_ack_r(); void ipl1_ack_w(u16 data = 0); @@ -365,8 +365,8 @@ class tndrcade_state : public driver_device TIMER_DEVICE_CALLBACK_MEMBER(tndrcade_sub_interrupt); - void tndrcade_map(address_map &map); - void tndrcade_sub_map(address_map &map); + void tndrcade_map(address_map &map) ATTR_COLD; + void tndrcade_sub_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_subcpu; @@ -435,12 +435,12 @@ class downtown_state : public tndrcade_state TIMER_DEVICE_CALLBACK_MEMBER(seta_sub_interrupt); TIMER_DEVICE_CALLBACK_MEMBER(calibr50_interrupt); - void calibr50_map(address_map &map); - void calibr50_sub_map(address_map &map); - void downtown_map(address_map &map); - void downtown_sub_map(address_map &map); - void metafox_sub_map(address_map &map); - void twineagl_sub_map(address_map &map); + void calibr50_map(address_map &map) ATTR_COLD; + void calibr50_sub_map(address_map &map) ATTR_COLD; + void downtown_map(address_map &map) ATTR_COLD; + void downtown_sub_map(address_map &map) ATTR_COLD; + void metafox_sub_map(address_map &map) ATTR_COLD; + void twineagl_sub_map(address_map &map) ATTR_COLD; required_device m_tiles; required_device m_x1snd; @@ -470,7 +470,7 @@ class usclssic_state : public downtown_state ioport_value trackball_y_r(); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: u16 dsw_r(offs_t offset); @@ -483,7 +483,7 @@ class usclssic_state : public downtown_state void usclssic_set_pens(); - void usclssic_map(address_map &map); + void usclssic_map(address_map &map) ATTR_COLD; required_device m_upd4701; required_device m_buttonmux; diff --git a/src/mame/seta/hanaawas.cpp b/src/mame/seta/hanaawas.cpp index 7f01421ca43..2ef9d4ffbc1 100644 --- a/src/mame/seta/hanaawas.cpp +++ b/src/mame/seta/hanaawas.cpp @@ -56,9 +56,9 @@ class hanaawas_state : public driver_device void hanaawas(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_shared_ptr m_videoram; @@ -86,8 +86,8 @@ class hanaawas_state : public driver_device void palette(palette_device &palette) const; uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void portb_w(uint8_t data); - void prg_map(address_map &map); - void io_map(address_map &map); + void prg_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; }; uint8_t hanaawas_state::input_port_0_r() diff --git a/src/mame/seta/jclub2.cpp b/src/mame/seta/jclub2.cpp index 4d1f7dca0af..7a7928ee21d 100644 --- a/src/mame/seta/jclub2.cpp +++ b/src/mame/seta/jclub2.cpp @@ -176,7 +176,7 @@ class jclub2_state : public common_state uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void jclub2(machine_config &config); - void jclub2_map(address_map &map); + void jclub2_map(address_map &map) ATTR_COLD; protected: required_device m_st0020; }; @@ -214,9 +214,9 @@ class jclub2o_state : public jclub2_state void init_jclub2o(); void jclub2o(machine_config &config); - void jclub2o_map(address_map &map); - void st0016_io(address_map &map); - void st0016_mem(address_map &map); + void jclub2o_map(address_map &map) ATTR_COLD; + void st0016_io(address_map &map) ATTR_COLD; + void st0016_mem(address_map &map) ATTR_COLD; private: uint8_t m_cmd1; uint8_t m_cmd2; @@ -244,7 +244,7 @@ class darkhors_state : public common_state void darkhorsa(machine_config &config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: void input_sel_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0); @@ -260,8 +260,8 @@ class darkhors_state : public common_state uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); - void darkhors_map(address_map &map); - void darkhorsa_map(address_map &map); + void darkhors_map(address_map &map) ATTR_COLD; + void darkhorsa_map(address_map &map) ATTR_COLD; required_shared_ptr m_tmapram; required_shared_ptr m_tmapscroll; diff --git a/src/mame/seta/kiwame.cpp b/src/mame/seta/kiwame.cpp index 91983ecbaf8..4d4991c70b9 100644 --- a/src/mame/seta/kiwame.cpp +++ b/src/mame/seta/kiwame.cpp @@ -32,7 +32,7 @@ class kiwame_state : public driver_device void kiwame(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: void row_select_w(u16 data); @@ -41,7 +41,7 @@ class kiwame_state : public driver_device u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void kiwame_map(address_map &map); + void kiwame_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_spritegen; diff --git a/src/mame/seta/macs.cpp b/src/mame/seta/macs.cpp index 10f4cdbf2d1..f891e7fcbc5 100644 --- a/src/mame/seta/macs.cpp +++ b/src/mame/seta/macs.cpp @@ -89,8 +89,8 @@ class macs_state : public driver_device void init_macs2(); protected: - void machine_reset() override; - void machine_start() override; + void machine_reset() override ATTR_COLD; + void machine_start() override ATTR_COLD; private: uint8_t m_mux_data = 0; @@ -113,8 +113,8 @@ class macs_state : public driver_device required_memory_bank_array<2> m_rombank; required_memory_bank_array<2> m_rambank; - void macs_io(address_map &map); - void macs_mem(address_map &map); + void macs_io(address_map &map) ATTR_COLD; + void macs_mem(address_map &map) ATTR_COLD; }; diff --git a/src/mame/seta/namcoeva.cpp b/src/mame/seta/namcoeva.cpp index 3cee3fa74c7..894ba5b2286 100644 --- a/src/mame/seta/namcoeva.cpp +++ b/src/mame/seta/namcoeva.cpp @@ -82,8 +82,8 @@ class namcoeva_state : public seta2_state void hammerch(machine_config &config) ATTR_COLD; protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_subcpu; diff --git a/src/mame/seta/seta.cpp b/src/mame/seta/seta.cpp index 6673aff4c7f..c8799bfff3a 100644 --- a/src/mame/seta/seta.cpp +++ b/src/mame/seta/seta.cpp @@ -1342,7 +1342,7 @@ class seta_state : public driver_device protected: void set_tilemaps_flip(int val) { m_tilemaps_flip = val; } - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; required_device m_maincpu; optional_device m_audiocpu; @@ -1397,39 +1397,39 @@ class seta_state : public driver_device void seta_layers_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, int sprite_bank_size); void pit_out0(int state); - void atehate_map(address_map &map); - void blandia_map(address_map &map); - void blandia_x1_map(address_map &map); - void blandiap_map(address_map &map); - void blockcar_map(address_map &map); - void blockcarb_map(address_map &map); - void blockcarb_sound_map(address_map &map); - void daioh_map(address_map &map); - void daiohp_map(address_map &map); - void drgnunit_map(address_map &map); - void extdwnhl_map(address_map &map); - void jjsquawb_map(address_map &map); - void kamenrid_map(address_map &map); - void krzybowl_map(address_map &map); - void madshark_map(address_map &map); - void madsharkbl_map(address_map &map); - void madsharkbl_oki_map(address_map &map); - void msgundam_map(address_map &map); - void msgundamb_map(address_map &map); - void oisipuzl_map(address_map &map); - void orbs_map(address_map &map); - void rezon_map(address_map &map); - void triplfun_map(address_map &map); - void umanclub_map(address_map &map); - void utoukond_map(address_map &map); - void utoukond_sound_io_map(address_map &map); - void utoukond_sound_map(address_map &map); - void wiggie_map(address_map &map); - void wiggie_sound_map(address_map &map); - void wits_map(address_map &map); - void wrofaero_map(address_map &map); - void zingzip_map(address_map &map); - void zingzipbl_map(address_map &map); + void atehate_map(address_map &map) ATTR_COLD; + void blandia_map(address_map &map) ATTR_COLD; + void blandia_x1_map(address_map &map) ATTR_COLD; + void blandiap_map(address_map &map) ATTR_COLD; + void blockcar_map(address_map &map) ATTR_COLD; + void blockcarb_map(address_map &map) ATTR_COLD; + void blockcarb_sound_map(address_map &map) ATTR_COLD; + void daioh_map(address_map &map) ATTR_COLD; + void daiohp_map(address_map &map) ATTR_COLD; + void drgnunit_map(address_map &map) ATTR_COLD; + void extdwnhl_map(address_map &map) ATTR_COLD; + void jjsquawb_map(address_map &map) ATTR_COLD; + void kamenrid_map(address_map &map) ATTR_COLD; + void krzybowl_map(address_map &map) ATTR_COLD; + void madshark_map(address_map &map) ATTR_COLD; + void madsharkbl_map(address_map &map) ATTR_COLD; + void madsharkbl_oki_map(address_map &map) ATTR_COLD; + void msgundam_map(address_map &map) ATTR_COLD; + void msgundamb_map(address_map &map) ATTR_COLD; + void oisipuzl_map(address_map &map) ATTR_COLD; + void orbs_map(address_map &map) ATTR_COLD; + void rezon_map(address_map &map) ATTR_COLD; + void triplfun_map(address_map &map) ATTR_COLD; + void umanclub_map(address_map &map) ATTR_COLD; + void utoukond_map(address_map &map) ATTR_COLD; + void utoukond_sound_io_map(address_map &map) ATTR_COLD; + void utoukond_sound_map(address_map &map) ATTR_COLD; + void wiggie_map(address_map &map) ATTR_COLD; + void wiggie_sound_map(address_map &map) ATTR_COLD; + void wits_map(address_map &map) ATTR_COLD; + void wrofaero_map(address_map &map) ATTR_COLD; + void zingzip_map(address_map &map) ATTR_COLD; + void zingzipbl_map(address_map &map) ATTR_COLD; }; class thunderl_state : public seta_state @@ -1446,12 +1446,12 @@ class thunderl_state : public seta_state u16 thunderl_protection_r(); void thunderl_protection_w(offs_t offset, u16 data); - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; - void thunderl_map(address_map &map); - void thunderlbl_map(address_map &map); - void thunderlbl_sound_map(address_map &map); - void thunderlbl_sound_portmap(address_map &map); + void thunderl_map(address_map &map) ATTR_COLD; + void thunderlbl_map(address_map &map) ATTR_COLD; + void thunderlbl_sound_map(address_map &map) ATTR_COLD; + void thunderlbl_sound_portmap(address_map &map) ATTR_COLD; private: u8 m_thunderl_protection_reg = 0; @@ -1468,12 +1468,12 @@ class magspeed_state : public seta_state void magspeed(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: void lights_w(offs_t offset, u16 data, u16 mem_mask = ~0); - void magspeed_map(address_map &map); + void magspeed_map(address_map &map) ATTR_COLD; output_finder<48> m_leds; @@ -1491,7 +1491,7 @@ class keroppi_state : public seta_state void keroppi(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: u16 protection_r(); @@ -1500,7 +1500,7 @@ class keroppi_state : public seta_state void prize_w(u16 data); TIMER_CALLBACK_MEMBER(prize_hop_callback); - void keroppi_map(address_map &map); + void keroppi_map(address_map &map) ATTR_COLD; required_ioport m_coins; @@ -1524,15 +1524,15 @@ class zombraid_state : public seta_state void init_zombraid(); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: double adc_cb(u8 input); u16 gun_r(); void gun_w(u16 data); - void zombraid_map(address_map &map); - void zombraid_x1_map(address_map &map); + void zombraid_map(address_map &map) ATTR_COLD; + void zombraid_x1_map(address_map &map) ATTR_COLD; required_device m_adc; required_ioport_array<4> m_gun_inputs; @@ -1559,8 +1559,8 @@ class setaroul_state : public seta_state void screen_vblank(int state); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: void rtc_w(u16 data); @@ -1584,7 +1584,7 @@ class setaroul_state : public seta_state TIMER_DEVICE_CALLBACK_MEMBER(interrupt); - void setaroul_map(address_map &map); + void setaroul_map(address_map &map) ATTR_COLD; required_device m_rtc; // ! Actually D4911C ! required_device m_hopper; @@ -1610,13 +1610,13 @@ class pairlove_state : public seta_state void pairlove(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; protected: u16 prot_r(offs_t offset); void prot_w(offs_t offset, u16 data); - void pairlove_map(address_map &map); + void pairlove_map(address_map &map) ATTR_COLD; std::unique_ptr m_protram; std::unique_ptr m_protram_old; @@ -1636,7 +1636,7 @@ class crazyfgt_state : public seta_state void coin_counter_w(u8 data); void outputs_w(u8 data); - void crazyfgt_map(address_map &map); + void crazyfgt_map(address_map &map) ATTR_COLD; required_device m_eeprom; }; @@ -1689,8 +1689,8 @@ class jockeyc_state : public seta_state void inttoote_out_w(offs_t offset, u16 data, u16 mem_mask = ~0); u16 inttoote_700000_r(offs_t offset); - void inttoote_map(address_map &map); - void jockeyc_map(address_map &map); + void inttoote_map(address_map &map) ATTR_COLD; + void jockeyc_map(address_map &map) ATTR_COLD; required_device m_rtc; // ! Actually D4911C ! required_device m_hopper1, m_hopper2; // the 2nd hopper is optional diff --git a/src/mame/seta/seta2.cpp b/src/mame/seta/seta2.cpp index d720e290a9a..e37e41e93f0 100644 --- a/src/mame/seta/seta2.cpp +++ b/src/mame/seta/seta2.cpp @@ -681,12 +681,12 @@ class funcube_touchscreen_device : public device_t, public: funcube_touchscreen_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; auto tx_cb() { return m_tx_cb.bind(); } protected: - 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 tra_complete() override; virtual void tra_callback() override; diff --git a/src/mame/seta/seta2.h b/src/mame/seta/seta2.h index 6cbc08a09e5..bd8ee40a3fa 100644 --- a/src/mame/seta/seta2.h +++ b/src/mame/seta/seta2.h @@ -59,8 +59,8 @@ class seta2_state : public driver_device void init_namcostr(); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; void grdians_lockout_w(uint8_t data); @@ -95,19 +95,19 @@ class seta2_state : public driver_device void sound_bank_w(offs_t offset, uint8_t data); - void ablastb_map(address_map &map); - void grdians_map(address_map &map); - void gundamex_map(address_map &map); - void myangel2_map(address_map &map); - void myangel_map(address_map &map); - void namcostr_map(address_map &map); - void penbros_base_map(address_map &map); - void penbros_map(address_map &map); - void pzlbowl_map(address_map &map); - void reelquak_map(address_map &map); - void samshoot_map(address_map &map); - void telpacfl_map(address_map &map); - void x1_map(address_map &map); + void ablastb_map(address_map &map) ATTR_COLD; + void grdians_map(address_map &map) ATTR_COLD; + void gundamex_map(address_map &map) ATTR_COLD; + void myangel2_map(address_map &map) ATTR_COLD; + void myangel_map(address_map &map) ATTR_COLD; + void namcostr_map(address_map &map) ATTR_COLD; + void penbros_base_map(address_map &map) ATTR_COLD; + void penbros_map(address_map &map) ATTR_COLD; + void pzlbowl_map(address_map &map) ATTR_COLD; + void reelquak_map(address_map &map) ATTR_COLD; + void samshoot_map(address_map &map) ATTR_COLD; + void telpacfl_map(address_map &map) ATTR_COLD; + void x1_map(address_map &map) ATTR_COLD; void seta2(machine_config &config); void seta2_32m(machine_config &config); @@ -158,12 +158,12 @@ class mj4simai_state : public seta2_state void mj4simai(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: template uint16_t mj4simai_key_r(); - void mj4simai_map(address_map &map); + void mj4simai_map(address_map &map) ATTR_COLD; required_ioport_array<5> m_keys[2]; @@ -190,8 +190,8 @@ class funcube_state : public seta2_state void init_funcube3(); private: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; uint8_t nvram_r(offs_t offset) { return m_nvram[offset]; } void nvram_w(offs_t offset, uint8_t data) { m_nvram[offset] = data; } @@ -205,9 +205,9 @@ class funcube_state : public seta2_state TIMER_DEVICE_CALLBACK_MEMBER(funcube_interrupt); - void funcube2_map(address_map &map); - void funcube_map(address_map &map); - void funcube_sub_map(address_map &map); + void funcube2_map(address_map &map) ATTR_COLD; + void funcube_map(address_map &map) ATTR_COLD; + void funcube_sub_map(address_map &map) ATTR_COLD; void funcube_debug_outputs(); @@ -245,7 +245,7 @@ class staraudi_state : public seta2_state uint32_t staraudi_screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void staraudi_map(address_map &map); + void staraudi_map(address_map &map) ATTR_COLD; virtual void driver_start() override; diff --git a/src/mame/seta/simple_st0016.cpp b/src/mame/seta/simple_st0016.cpp index 2f5d6324487..533f0fef3ce 100644 --- a/src/mame/seta/simple_st0016.cpp +++ b/src/mame/seta/simple_st0016.cpp @@ -53,7 +53,7 @@ class st0016_state : public driver_device void init_renju(); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: uint8_t m_mux_port; @@ -80,11 +80,11 @@ class st0016_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); TIMER_DEVICE_CALLBACK_MEMBER(interrupt); - void renju_mem(address_map &map); - void st0016_io(address_map &map); - void st0016_m2_io(address_map &map); - void st0016_mem(address_map &map); - void v810_mem(address_map &map); + void renju_mem(address_map &map) ATTR_COLD; + void st0016_io(address_map &map) ATTR_COLD; + void st0016_m2_io(address_map &map) ATTR_COLD; + void st0016_mem(address_map &map) ATTR_COLD; + void v810_mem(address_map &map) ATTR_COLD; }; diff --git a/src/mame/seta/speedatk.h b/src/mame/seta/speedatk.h index 5b3b71282fc..5dd2babd74a 100644 --- a/src/mame/seta/speedatk.h +++ b/src/mame/seta/speedatk.h @@ -25,8 +25,8 @@ class speedatk_state : public driver_device void daifugo(machine_config &config); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -59,9 +59,9 @@ class speedatk_state : public driver_device uint8_t iox_key_matrix_calc(uint8_t p_side); - void speedatk_io(address_map &map); - void speedatk_mem(address_map &map); - void daifugo_mem(address_map &map); + void speedatk_io(address_map &map) ATTR_COLD; + void speedatk_mem(address_map &map) ATTR_COLD; + void daifugo_mem(address_map &map) ATTR_COLD; }; diff --git a/src/mame/seta/speglsht.cpp b/src/mame/seta/speglsht.cpp index adc117f6912..125c615de85 100644 --- a/src/mame/seta/speglsht.cpp +++ b/src/mame/seta/speglsht.cpp @@ -135,9 +135,9 @@ class speglsht_state : public driver_device void init_speglsht(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_palette; @@ -163,9 +163,9 @@ class speglsht_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); void st0016_rom_bank_w(uint8_t data); - void speglsht_mem(address_map &map); - void st0016_io(address_map &map); - void st0016_mem(address_map &map); + void speglsht_mem(address_map &map) ATTR_COLD; + void st0016_io(address_map &map) ATTR_COLD; + void st0016_mem(address_map &map) ATTR_COLD; }; diff --git a/src/mame/seta/srmp2.cpp b/src/mame/seta/srmp2.cpp index 226bdc89419..988574a44f7 100644 --- a/src/mame/seta/srmp2.cpp +++ b/src/mame/seta/srmp2.cpp @@ -145,7 +145,7 @@ class srmp2_state : public driver_device void srmp3_flags_w(uint8_t data); void srmp3_irq_ack_w(uint8_t data); - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; DECLARE_MACHINE_START(srmp2); void srmp2_palette(palette_device &palette) const; DECLARE_MACHINE_START(srmp3); @@ -159,12 +159,12 @@ class srmp2_state : public driver_device uint8_t iox_key_matrix_calc(uint8_t p_side); - void mjyuugi_map(address_map &map); - void rmgoldyh_io_map(address_map &map); - void rmgoldyh_map(address_map &map); - void srmp2_map(address_map &map); - void srmp3_io_map(address_map &map); - void srmp3_map(address_map &map); + void mjyuugi_map(address_map &map) ATTR_COLD; + void rmgoldyh_io_map(address_map &map) ATTR_COLD; + void rmgoldyh_map(address_map &map) ATTR_COLD; + void srmp2_map(address_map &map) ATTR_COLD; + void srmp3_io_map(address_map &map) ATTR_COLD; + void srmp3_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/seta/srmp5.cpp b/src/mame/seta/srmp5.cpp index e52aa043381..2e78563f45c 100644 --- a/src/mame/seta/srmp5.cpp +++ b/src/mame/seta/srmp5.cpp @@ -129,13 +129,13 @@ class srmp5_state : public driver_device uint8_t cmd1_r(); uint8_t cmd2_r(); uint8_t cmd_stat8_r(); - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); void st0016_rom_bank_w(uint8_t data); - void srmp5_mem(address_map &map); - void st0016_io(address_map &map); - void st0016_mem(address_map &map); + void srmp5_mem(address_map &map) ATTR_COLD; + void st0016_io(address_map &map) ATTR_COLD; + void st0016_mem(address_map &map) ATTR_COLD; }; diff --git a/src/mame/seta/srmp6.cpp b/src/mame/seta/srmp6.cpp index e24e0389f10..b7e2b1bcea4 100644 --- a/src/mame/seta/srmp6.cpp +++ b/src/mame/seta/srmp6.cpp @@ -101,8 +101,8 @@ class srmp6_state : public driver_device void srmp6(machine_config &config); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; virtual void device_post_load() override { m_gfxdecode->gfx(0)->mark_all_dirty(); } private: @@ -139,7 +139,7 @@ class srmp6_state : public driver_device required_device m_gfxdecode; required_device m_palette; required_device m_sprram; - void srmp6_map(address_map &map); + void srmp6_map(address_map &map) ATTR_COLD; }; #define VERBOSE 0 diff --git a/src/mame/seta/ssv.h b/src/mame/seta/ssv.h index 9db6a333805..fb7b0a16b74 100644 --- a/src/mame/seta/ssv.h +++ b/src/mame/seta/ssv.h @@ -63,8 +63,8 @@ class ssv_state : public driver_device void init_pastelis(); protected: - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; void irq_ack_w(offs_t offset, uint16_t data); void irq_enable_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); @@ -102,24 +102,24 @@ class ssv_state : public driver_device void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); void enable_video(bool enable); - void cairblad_map(address_map &map); - void hypreac2_map(address_map &map); - void hypreact_map(address_map &map); - void janjans1_map(address_map &map); - void jsk_map(address_map &map); - void jsk_v810_mem(address_map &map); - void keithlcy_map(address_map &map); - void meosism_map(address_map &map); - void mslider_map(address_map &map); - void ryorioh_map(address_map &map); - void srmp4_map(address_map &map); - void srmp7_map(address_map &map); - void srmp7_es5506_bank2_map(address_map &map); - void srmp7_es5506_bank3_map(address_map &map); - void survarts_map(address_map &map); - void ultrax_map(address_map &map); - - void ssv_map(address_map &map, u32 rom); + void cairblad_map(address_map &map) ATTR_COLD; + void hypreac2_map(address_map &map) ATTR_COLD; + void hypreact_map(address_map &map) ATTR_COLD; + void janjans1_map(address_map &map) ATTR_COLD; + void jsk_map(address_map &map) ATTR_COLD; + void jsk_v810_mem(address_map &map) ATTR_COLD; + void keithlcy_map(address_map &map) ATTR_COLD; + void meosism_map(address_map &map) ATTR_COLD; + void mslider_map(address_map &map) ATTR_COLD; + void ryorioh_map(address_map &map) ATTR_COLD; + void srmp4_map(address_map &map) ATTR_COLD; + void srmp7_map(address_map &map) ATTR_COLD; + void srmp7_es5506_bank2_map(address_map &map) ATTR_COLD; + void srmp7_es5506_bank3_map(address_map &map) ATTR_COLD; + void survarts_map(address_map &map) ATTR_COLD; + void ultrax_map(address_map &map) ATTR_COLD; + + void ssv_map(address_map &map, u32 rom) ATTR_COLD; required_device m_maincpu; required_device m_ensoniq; @@ -167,10 +167,10 @@ class drifto94_state : public ssv_state void dsp_w(offs_t offset, uint16_t data); uint16_t drifto94_unknown_r(); - void drifto94_map(address_map &map); - void dsp_data_map(address_map &map); - void dsp_prg_map(address_map &map); - void twineag2_map(address_map &map); + void drifto94_map(address_map &map) ATTR_COLD; + void dsp_data_map(address_map &map) ATTR_COLD; + void dsp_prg_map(address_map &map) ATTR_COLD; + void twineag2_map(address_map &map) ATTR_COLD; required_device m_dsp; }; @@ -190,7 +190,7 @@ class gdfs_state : public ssv_state void gdfs(machine_config &config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: void adc_int_w(int state); @@ -198,7 +198,7 @@ class gdfs_state : public ssv_state uint16_t eeprom_r(); void eeprom_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); - void gdfs_map(address_map &map); + void gdfs_map(address_map &map) ATTR_COLD; TILE_GET_INFO_MEMBER(get_tile_info); void tmapram_w(offs_t offset, uint16_t data, uint16_t mem_mask); @@ -227,7 +227,7 @@ class eaglshot_state : public ssv_state void init_eaglshot(); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: void gfxrom_bank_w(uint8_t data); @@ -235,7 +235,7 @@ class eaglshot_state : public ssv_state uint16_t gfxram_r(offs_t offset, uint16_t mem_mask); void gfxram_w(offs_t offset, uint16_t data, uint16_t mem_mask); - void eaglshot_map(address_map &map); + void eaglshot_map(address_map &map) ATTR_COLD; uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); @@ -265,7 +265,7 @@ class sxyreact_state : public ssv_state void dial_w(uint8_t data); void motor_w(uint16_t data); - void sxyreact_map(address_map &map); + void sxyreact_map(address_map &map) ATTR_COLD; required_device m_sxyreact_adc; required_ioport m_io_service; diff --git a/src/mame/seta/st0016.h b/src/mame/seta/st0016.h index 57f35e5c40d..4da5eca932a 100644 --- a/src/mame/seta/st0016.h +++ b/src/mame/seta/st0016.h @@ -33,9 +33,9 @@ class st0016_cpu_device : public z80_device, public device_gfx_interface, public protected: // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; const address_space_config m_io_space_config; const address_space_config m_space_config; @@ -102,9 +102,9 @@ class st0016_cpu_device : public z80_device, public device_gfx_interface, public u8 m_vregs[0xc0]; u8 m_ramgfx; - void cpu_internal_io_map(address_map &map); - void cpu_internal_map(address_map &map); - void charam_map(address_map &map); + void cpu_internal_io_map(address_map &map) ATTR_COLD; + void cpu_internal_map(address_map &map) ATTR_COLD; + void charam_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/seta/st0020.h b/src/mame/seta/st0020.h index 2a8682f2437..3976cc86a03 100644 --- a/src/mame/seta/st0020.h +++ b/src/mame/seta/st0020.h @@ -29,8 +29,8 @@ class st0020_device : public device_t, public device_gfx_interface void sprram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: // see if we can handle the difference between this and the st0032 in here, or if we need another device diff --git a/src/mame/seta/thedealr.cpp b/src/mame/seta/thedealr.cpp index 2845b2a5724..9ed8170883f 100644 --- a/src/mame/seta/thedealr.cpp +++ b/src/mame/seta/thedealr.cpp @@ -78,10 +78,10 @@ class thedealr_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void screen_vblank(int state); - void thedealr_main(address_map &map); - void thedealr_sub(address_map &map); + void thedealr_main(address_map &map) ATTR_COLD; + void thedealr_sub(address_map &map) ATTR_COLD; - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; // devices required_device m_maincpu; diff --git a/src/mame/seta/x1_012.h b/src/mame/seta/x1_012.h index eb1870cd59e..aefef0a87ee 100644 --- a/src/mame/seta/x1_012.h +++ b/src/mame/seta/x1_012.h @@ -38,8 +38,8 @@ class x1_012_device : public device_t, public device_gfx_interface void draw_tilemap_palette_effect(bitmap_ind16 &bitmap, const rectangle &cliprect, bool flipscreen); protected: - 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; private: TILE_GET_INFO_MEMBER(get_tile_info); diff --git a/src/mame/sfrj/galaxy.cpp b/src/mame/sfrj/galaxy.cpp index 467f37642a4..59f4eb68553 100644 --- a/src/mame/sfrj/galaxy.cpp +++ b/src/mame/sfrj/galaxy.cpp @@ -64,17 +64,17 @@ class galaxy_state : public driver_device private: uint8_t keyboard_r(offs_t offset); void latch_w(uint8_t data); - void machine_start() override; - void machine_reset() override; + void machine_start() override ATTR_COLD; + void machine_reset() override ATTR_COLD; uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); TIMER_CALLBACK_MEMBER(gal_video); IRQ_CALLBACK_MEMBER(irq_callback); void set_timer(); void setup_snapshot (const uint8_t * data, uint32_t size); DECLARE_SNAPSHOT_LOAD_MEMBER(snapshot_cb); - void galaxy_mem(address_map &map); - void galaxyp_io(address_map &map); - void galaxyp_mem(address_map &map); + void galaxy_mem(address_map &map) ATTR_COLD; + void galaxyp_io(address_map &map) ATTR_COLD; + void galaxyp_mem(address_map &map) ATTR_COLD; int m_interrupts_enabled = 0; uint8_t m_latch_value = 0U; diff --git a/src/mame/sfrj/galeb.cpp b/src/mame/sfrj/galeb.cpp index 38fc1a71abc..13aef310ec1 100644 --- a/src/mame/sfrj/galeb.cpp +++ b/src/mame/sfrj/galeb.cpp @@ -107,10 +107,10 @@ class galeb_state : public driver_device required_device m_acia; required_device m_dac; - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; bool m_dac_state = false; }; diff --git a/src/mame/sfrj/hr84.cpp b/src/mame/sfrj/hr84.cpp index ca5699cf013..576b8b61296 100644 --- a/src/mame/sfrj/hr84.cpp +++ b/src/mame/sfrj/hr84.cpp @@ -50,7 +50,7 @@ class hr84_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(break_handler); protected: - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; private: u8 pa_r(); @@ -59,7 +59,7 @@ class hr84_state : public driver_device MC6845_UPDATE_ROW(crtc_update_row); TIMER_DEVICE_CALLBACK_MEMBER(cassette_input); - void hr84_mem(address_map &map); + void hr84_mem(address_map &map) ATTR_COLD; required_device m_pia0; required_device m_maincpu; diff --git a/src/mame/sfrj/idpart_video.cpp b/src/mame/sfrj/idpart_video.cpp index 8df20ba7a6f..526f8770aca 100644 --- a/src/mame/sfrj/idpart_video.cpp +++ b/src/mame/sfrj/idpart_video.cpp @@ -37,15 +37,15 @@ class idpart_video_device : public device_t, public device_rs232_port_interface virtual void input_txd(int state) override { m_mpsc->rxa_w(state); } protected: - 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 ioport_constructor device_input_ports() 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; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; private: - void io_map(address_map &map); - void mem_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; I8275_DRAW_CHARACTER_MEMBER(display_pixels); uint8_t memory_read_byte(offs_t offset) { return m_program.read_byte(offset); } diff --git a/src/mame/sfrj/idpartner.cpp b/src/mame/sfrj/idpartner.cpp index 28cab9c5996..0f84a2e34ea 100644 --- a/src/mame/sfrj/idpartner.cpp +++ b/src/mame/sfrj/idpartner.cpp @@ -52,8 +52,8 @@ class idpartner_floppy_daisy_device : public device_t, public device_z80daisy_in void int_w(int state); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; // z80daisy_interface overrides virtual int z80daisy_irq_state() override; @@ -160,12 +160,12 @@ class idpartner_state : public driver_device void partner1fg(machine_config &config); void partnerwfg(machine_config &config); - void machine_start() override; - void machine_reset() override; + void machine_start() override ATTR_COLD; + void machine_reset() override ATTR_COLD; private: - void io_map(address_map &map); - void mem_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; void update_bank(); diff --git a/src/mame/sfrj/lola8a.cpp b/src/mame/sfrj/lola8a.cpp index 827934c2190..afc1460cf52 100644 --- a/src/mame/sfrj/lola8a.cpp +++ b/src/mame/sfrj/lola8a.cpp @@ -151,15 +151,15 @@ class lola8_state : public lola8_base_state void lola8(machine_config &config); private: - void machine_start() override; + void machine_start() override ATTR_COLD; u8 port_b_r(); void port_a_w(u8 data); MC6845_UPDATE_ROW(crtc_update_row); - void io_map(address_map &map); - void mem_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; required_region_ptr m_p_chargen; protected: @@ -176,10 +176,10 @@ class lola8nk_state : public lola8_state void lola8nk(machine_config &config); private: - void machine_start() override; + void machine_start() override ATTR_COLD; u8 port_b_r(); - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; }; class lola8a_state : public lola8_base_state @@ -192,16 +192,16 @@ class lola8a_state : public lola8_base_state void lola8a(machine_config &config); private: - void machine_reset() override; - void machine_start() override; + void machine_reset() override ATTR_COLD; + void machine_start() override ATTR_COLD; u8 port_a_r(); void port_b_w(u8 data); MC6845_UPDATE_ROW(crtc_update_row); - void io_map(address_map &map); - void mem_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; u8 m_portb = 0U; }; diff --git a/src/mame/sfrj/orao.cpp b/src/mame/sfrj/orao.cpp index 215bc5e7da1..bda7a6730f3 100644 --- a/src/mame/sfrj/orao.cpp +++ b/src/mame/sfrj/orao.cpp @@ -55,11 +55,11 @@ class orao_state : public driver_device private: u8 kbd_r(offs_t offset); void sound_w(offs_t offset, u8 data); - virtual void machine_reset() override; - virtual void machine_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; u32 screen_update_orao(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; required_shared_ptr m_memory; required_shared_ptr m_vram; diff --git a/src/mame/sfrj/pecom.cpp b/src/mame/sfrj/pecom.cpp index 4a3c12d86ee..4cc7cf80e89 100644 --- a/src/mame/sfrj/pecom.cpp +++ b/src/mame/sfrj/pecom.cpp @@ -69,11 +69,11 @@ class pecom_state : public driver_device CDP1869_CHAR_RAM_WRITE_MEMBER(char_ram_w); CDP1869_PCB_READ_MEMBER(pcb_r); - virtual void machine_start() override; - virtual void machine_reset() override; - void cdp1869_page_ram(address_map &map); - void io_map(address_map &map); - void mem_map(address_map &map); + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + void cdp1869_page_ram(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; std::unique_ptr m_charram; /* character generator ROM */ bool m_reset = false; /* CPU mode */ diff --git a/src/mame/sfrj/tim011.cpp b/src/mame/sfrj/tim011.cpp index 976b53763b0..b20563309a3 100644 --- a/src/mame/sfrj/tim011.cpp +++ b/src/mame/sfrj/tim011.cpp @@ -39,7 +39,7 @@ class tim011_state : public driver_device void tim011(machine_config &config); private: - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; uint32_t screen_update_tim011(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void print_w(uint8_t data); void scroll_w(uint8_t data); @@ -54,8 +54,8 @@ class tim011_state : public driver_device required_device m_palette; required_device m_exp; - void tim011_io(address_map &map); - void tim011_mem(address_map &map); + void tim011_io(address_map &map) ATTR_COLD; + void tim011_mem(address_map &map) ATTR_COLD; void tim011_palette(palette_device &palette) const; }; diff --git a/src/mame/sfrj/tim100.cpp b/src/mame/sfrj/tim100.cpp index 667c87b1834..6b689f94890 100644 --- a/src/mame/sfrj/tim100.cpp +++ b/src/mame/sfrj/tim100.cpp @@ -43,15 +43,15 @@ class tim100_state : public driver_device void tim100(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: u8 dma_r(offs_t offset); void sod_w(int state); I8275_DRAW_CHARACTER_MEMBER( crtc_display_pixels ); - void mem_map(address_map &map); - void mem_xfer_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void mem_xfer_map(address_map &map) ATTR_COLD; required_region_ptr m_charmap; required_device m_maincpu; diff --git a/src/mame/sgi/crime.h b/src/mame/sgi/crime.h index 1c328de2e04..d7e89bdfe33 100644 --- a/src/mame/sgi/crime.h +++ b/src/mame/sgi/crime.h @@ -25,12 +25,12 @@ class crime_device : public device_t crime_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - void map(address_map &map); + void map(address_map &map) ATTR_COLD; protected: - 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; uint64_t base_r(offs_t offset, uint64_t mem_mask); void base_w(offs_t offset, uint64_t data, uint64_t mem_mask = ~0); diff --git a/src/mame/sgi/crimson.cpp b/src/mame/sgi/crimson.cpp index 790eadcf54c..7d12b963555 100644 --- a/src/mame/sgi/crimson.cpp +++ b/src/mame/sgi/crimson.cpp @@ -41,14 +41,14 @@ class crimson_state : public driver_device void crimson(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; u8 nvram_r(offs_t offset); void nvram_w(offs_t offset, u8 data); u8 duart_r(offs_t offset); void duart_w(offs_t offset, u8 data); - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_nvram; diff --git a/src/mame/sgi/ctl1.h b/src/mame/sgi/ctl1.h index 6b508e59371..f9271b8aa9f 100644 --- a/src/mame/sgi/ctl1.h +++ b/src/mame/sgi/ctl1.h @@ -32,9 +32,9 @@ class sgi_ctl1_device protected: // device_t implementation - virtual void device_start() override; - virtual void device_reset() override; - virtual ioport_constructor device_input_ports() const override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; private: void parity_r(offs_t offset, u32 &data, u32 mem_mask); diff --git a/src/mame/sgi/hal2.h b/src/mame/sgi/hal2.h index 42f5dfc1ce4..925e5bb8c3d 100644 --- a/src/mame/sgi/hal2.h +++ b/src/mame/sgi/hal2.h @@ -35,9 +35,9 @@ class hal2_device : public device_t void dma_write(uint32_t channel, int16_t data); protected: - 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; void update_clock_freq(int clock_gen); diff --git a/src/mame/sgi/hpc1.h b/src/mame/sgi/hpc1.h index 33f0391c407..c62d2c25248 100644 --- a/src/mame/sgi/hpc1.h +++ b/src/mame/sgi/hpc1.h @@ -32,12 +32,12 @@ class hpc1_device template void write_drq(int state); void write_int(int state); - void map(address_map &map); + void map(address_map &map) ATTR_COLD; protected: // 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; // device_memory_interface implementation virtual space_config_vector memory_space_config() const override; @@ -97,7 +97,7 @@ class hpc1_device u8 aux_r(); void aux_w(u8 data); - void pbus_map(address_map &map); + void pbus_map(address_map &map) ATTR_COLD; private: address_space_config const m_pbus; diff --git a/src/mame/sgi/hpc3.h b/src/mame/sgi/hpc3.h index c06ba7f9d91..b6c5ac873ab 100644 --- a/src/mame/sgi/hpc3.h +++ b/src/mame/sgi/hpc3.h @@ -59,7 +59,7 @@ class hpc3_device : public device_t, public device_memory_interface auto eeprom_pre_cb() { return m_eeprom_pre_cb.bind(); } auto dma_complete_int_cb() { return m_dma_complete_int_cb.bind(); } - void map(address_map &map); + void map(address_map &map) ATTR_COLD; void enet_rxrdy_w(int state); void enet_intr_in_w(int state); @@ -68,8 +68,8 @@ class hpc3_device : public device_t, public device_memory_interface void scsi1_drq(int state); protected: - 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 space_config_vector memory_space_config() const override; diff --git a/src/mame/sgi/indy_indigo2.cpp b/src/mame/sgi/indy_indigo2.cpp index c5fdb87c7cc..93d9e52707b 100644 --- a/src/mame/sgi/indy_indigo2.cpp +++ b/src/mame/sgi/indy_indigo2.cpp @@ -111,8 +111,8 @@ class ip24_state : public driver_device void indy_4610(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; template uint64_t bus_error_r(offs_t offset, uint64_t mem_mask = ~0); template void bus_error_w(offs_t offset, uint64_t data, uint64_t mem_mask = ~0); @@ -120,14 +120,14 @@ class ip24_state : public driver_device uint8_t volume_r(offs_t offset); void volume_w(offs_t offset, uint8_t data); - void ip24_map(address_map &map); - void ip24_base_map(address_map &map); - void pio0_map(address_map &map); - void pio1_map(address_map &map); - void pio2_map(address_map &map); - void pio3_map(address_map &map); - void pio5_map(address_map &map); - void pio6_map(address_map &map); + void ip24_map(address_map &map) ATTR_COLD; + void ip24_base_map(address_map &map) ATTR_COLD; + void pio0_map(address_map &map) ATTR_COLD; + void pio1_map(address_map &map) ATTR_COLD; + void pio2_map(address_map &map) ATTR_COLD; + void pio3_map(address_map &map) ATTR_COLD; + void pio5_map(address_map &map) ATTR_COLD; + void pio6_map(address_map &map) ATTR_COLD; void wd33c93(device_t *device); @@ -169,9 +169,9 @@ class ip22_state : public ip24_state void wd33c93_2(device_t *device); - void ip22_map(address_map &map); - void pio4_map(address_map &map); - void pio6_map(address_map &map); + void ip22_map(address_map &map) ATTR_COLD; + void pio4_map(address_map &map) ATTR_COLD; + void pio6_map(address_map &map) ATTR_COLD; required_device m_scsi_ctrl2; }; diff --git a/src/mame/sgi/int2.h b/src/mame/sgi/int2.h index f4ef908ce6c..c9a1b1acaac 100644 --- a/src/mame/sgi/int2.h +++ b/src/mame/sgi/int2.h @@ -42,13 +42,13 @@ class sgi_int2_device template void lio1_w(int state); template void vme_w(int state); - void map(address_map &map); + void map(address_map &map) ATTR_COLD; protected: // device_t implementation - void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; // read handlers template u8 lstatus_r() { return m_lstatus[N]; } diff --git a/src/mame/sgi/ioc2.h b/src/mame/sgi/ioc2.h index dde872257bc..9c46fc29f4c 100644 --- a/src/mame/sgi/ioc2.h +++ b/src/mame/sgi/ioc2.h @@ -73,10 +73,10 @@ class ioc2_device : public device_t protected: ioc2_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 ioport_constructor device_input_ports() 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 ioport_constructor device_input_ports() const override ATTR_COLD; void timer0_int(int state); void timer1_int(int state); @@ -125,7 +125,7 @@ class ioc2_device : public device_t void timer_int_clear_w(u8 data); u8 error_status_r(); - void base_map(address_map &map); + void base_map(address_map &map) ATTR_COLD; enum { @@ -203,7 +203,7 @@ class ioc2_guinness_device : public ioc2_device set_cpu_tag(std::forward(cpu_tag)); } - void map(address_map &map); + void map(address_map &map) ATTR_COLD; ioc2_guinness_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: @@ -222,8 +222,8 @@ class ioc2_full_house_device : public ioc2_device ioc2_full_house_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - void map(address_map &map); - void int2_map(address_map &map); + void map(address_map &map) ATTR_COLD; + void int2_map(address_map &map) ATTR_COLD; protected: uint8_t get_system_id() override { return 0x11; } diff --git a/src/mame/sgi/ip12.cpp b/src/mame/sgi/ip12.cpp index b1177315691..b1f6f2600b4 100644 --- a/src/mame/sgi/ip12.cpp +++ b/src/mame/sgi/ip12.cpp @@ -89,15 +89,15 @@ class ip12_state : public driver_device void pi4d35(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; void ip12(machine_config &config); void pi4d3x(machine_config &config); - void ip12_map(address_map &map); - void pi4d3x_map(address_map &map); - void pbus_map(address_map &map); + void ip12_map(address_map &map) ATTR_COLD; + void pi4d3x_map(address_map &map) ATTR_COLD; + void pbus_map(address_map &map) ATTR_COLD; required_device m_cpu; required_device m_pic; diff --git a/src/mame/sgi/ip20.cpp b/src/mame/sgi/ip20.cpp index 7088bbc7cd1..66423fe71c8 100644 --- a/src/mame/sgi/ip20.cpp +++ b/src/mame/sgi/ip20.cpp @@ -71,10 +71,10 @@ class ip20_state : public driver_device protected: void ip20(machine_config &config); - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; - void cpu_map(address_map &map); + void cpu_map(address_map &map) ATTR_COLD; required_device m_cpu; required_device m_eerom; diff --git a/src/mame/sgi/ip4.h b/src/mame/sgi/ip4.h index 88f49068a68..333a8de3e71 100644 --- a/src/mame/sgi/ip4.h +++ b/src/mame/sgi/ip4.h @@ -25,14 +25,14 @@ class sgi_ip4_device sgi_ip4_device(machine_config const &mconfig, char const *tag, device_t *owner, u32 clock); protected: - virtual tiny_rom_entry const *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual tiny_rom_entry const *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual void device_config_complete() override; - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; - virtual void device_reset() override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; - void map(address_map &map); + void map(address_map &map) ATTR_COLD; template void lio_irq(int state) { lio_irq(N, state); } void lio_irq(unsigned number, int state); diff --git a/src/mame/sgi/ip6.cpp b/src/mame/sgi/ip6.cpp index e8c578a23b0..3542594bb0c 100644 --- a/src/mame/sgi/ip6.cpp +++ b/src/mame/sgi/ip6.cpp @@ -109,7 +109,7 @@ class ip6_state : public driver_device void pi4d25(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_cpu; @@ -136,7 +136,7 @@ class ip6_state : public driver_device output_finder<5> m_leds; void common(machine_config &config); - void map(address_map &map); + void map(address_map &map) ATTR_COLD; template void lio_interrupt(int state) { lio_interrupt(N, state); } void lio_interrupt(unsigned number, int state); diff --git a/src/mame/sgi/iris3130.cpp b/src/mame/sgi/iris3130.cpp index 64895829086..5f19dd28d37 100644 --- a/src/mame/sgi/iris3130.cpp +++ b/src/mame/sgi/iris3130.cpp @@ -86,18 +86,18 @@ class iris3000_state : public driver_device DECLARE_QUICKLOAD_LOAD_MEMBER(load_romboard); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: - void text_data_map(address_map &map); - void stack_map(address_map &map); - void kernel_map(address_map &map); - void system_map(address_map &map); - void multibus_mem_map(address_map &map); - void multibus_io_map(address_map &map); - void geometry_pipe_map(address_map &map); - void fpa_map(address_map &map); + void text_data_map(address_map &map) ATTR_COLD; + void stack_map(address_map &map) ATTR_COLD; + void kernel_map(address_map &map) ATTR_COLD; + void system_map(address_map &map) ATTR_COLD; + void multibus_mem_map(address_map &map) ATTR_COLD; + void multibus_io_map(address_map &map) ATTR_COLD; + void geometry_pipe_map(address_map &map) ATTR_COLD; + void fpa_map(address_map &map) ATTR_COLD; uint32_t mmu_r(offs_t offset, uint32_t mem_mask = ~0); void mmu_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0); @@ -134,8 +134,8 @@ class iris3000_state : public driver_device void duarta_irq_handler(int state); void duartb_irq_handler(int state); - void mem_map(address_map &map); - void storager_map(address_map& map); + void mem_map(address_map &map) ATTR_COLD; + void storager_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_storagercpu; diff --git a/src/mame/sgi/iris_power.cpp b/src/mame/sgi/iris_power.cpp index 7ab03b1fe1a..e75204a79a5 100644 --- a/src/mame/sgi/iris_power.cpp +++ b/src/mame/sgi/iris_power.cpp @@ -48,7 +48,7 @@ class ip15_state : public driver_device void ip15(machine_config &config); protected: - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; }; diff --git a/src/mame/sgi/kbd.h b/src/mame/sgi/kbd.h index b447e70eca2..e7c20915146 100644 --- a/src/mame/sgi/kbd.h +++ b/src/mame/sgi/kbd.h @@ -34,7 +34,7 @@ class sgi_kbd_port_device protected: virtual void device_config_complete() override; - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: devcb_write_line m_rxd_handler; @@ -67,14 +67,14 @@ class sgi_kbd_device virtual void write_txd(int state) override; protected: - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual tiny_rom_entry const *device_rom_region() const override; - virtual ioport_constructor device_input_ports() const override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual tiny_rom_entry const *device_rom_region() const override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; private: - virtual void map_mem(address_map &map); - virtual void map_pio(address_map &map); + virtual void map_mem(address_map &map) ATTR_COLD; + virtual void map_pio(address_map &map) ATTR_COLD; void scan_matrix(int state); void led_w(u8 data); diff --git a/src/mame/sgi/light.h b/src/mame/sgi/light.h index 65f825c477e..030e151436e 100644 --- a/src/mame/sgi/light.h +++ b/src/mame/sgi/light.h @@ -22,13 +22,13 @@ class sgi_lg1_device : public device_t sgi_lg1_device(machine_config const &mconfig, char const *tag, device_t *owner, u32 clock = 0); - void map(address_map &map); + void map(address_map &map) ATTR_COLD; protected: // device_t implementation - void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; u32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, rectangle const &cliprect); diff --git a/src/mame/sgi/mace.h b/src/mame/sgi/mace.h index 691d1ac3a95..ee0c0499228 100644 --- a/src/mame/sgi/mace.h +++ b/src/mame/sgi/mace.h @@ -28,12 +28,12 @@ class mace_device : public device_t auto rtc_read_callback() { return m_rtc_read_callback.bind(); } auto rtc_write_callback() { return m_rtc_write_callback.bind(); } - void map(address_map &map); + void map(address_map &map) ATTR_COLD; protected: - 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; TIMER_CALLBACK_MEMBER(ust_tick); TIMER_CALLBACK_MEMBER(msc_tick); diff --git a/src/mame/sgi/mc.h b/src/mame/sgi/mc.h index b376ecc0a7a..4cf2dd778f5 100644 --- a/src/mame/sgi/mc.h +++ b/src/mame/sgi/mc.h @@ -37,9 +37,9 @@ class sgi_mc_device : public device_t protected: // device_t implementation - virtual void device_start() override; - virtual void device_reset() override; - virtual ioport_constructor device_input_ports() const override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; private: enum diff --git a/src/mame/sgi/o2.cpp b/src/mame/sgi/o2.cpp index 8d82e4c2089..f12c5a0d3f0 100644 --- a/src/mame/sgi/o2.cpp +++ b/src/mame/sgi/o2.cpp @@ -43,7 +43,7 @@ class o2_state : public driver_device void o2(machine_config &config); protected: - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_mace; diff --git a/src/mame/sgi/octane.cpp b/src/mame/sgi/octane.cpp index ab51f3b9eab..65b32a66673 100644 --- a/src/mame/sgi/octane.cpp +++ b/src/mame/sgi/octane.cpp @@ -35,7 +35,7 @@ class octane_state : public driver_device void octane(machine_config &config); protected: - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; }; diff --git a/src/mame/sgi/pic1.h b/src/mame/sgi/pic1.h index b50227ac931..7ca68270c14 100644 --- a/src/mame/sgi/pic1.h +++ b/src/mame/sgi/pic1.h @@ -14,13 +14,13 @@ class sgi_pic1_device template void set_bus(T &&tag, int spacenum) { m_bus.set_tag(std::forward(tag), spacenum); } - void map(address_map &map); + void map(address_map &map) ATTR_COLD; protected: // device_t implementation - virtual void device_start() override; - virtual void device_reset() override; - virtual ioport_constructor device_input_ports() const override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; // read handlers u32 cpucfg_r() { return m_cpucfg; } diff --git a/src/mame/sgi/sgi_ge5.h b/src/mame/sgi/sgi_ge5.h index a9efc878fe2..f48aca22cce 100644 --- a/src/mame/sgi/sgi_ge5.h +++ b/src/mame/sgi/sgi_ge5.h @@ -25,9 +25,9 @@ class sgi_ge5_device : public cpu_device auto re_w() { return m_re_w.bind(); } // device_t overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; // device_memory_interface overrides virtual space_config_vector memory_space_config() const override; @@ -57,8 +57,8 @@ class sgi_ge5_device : public cpu_device void finish_w(offs_t offset, u32 data, u32 mem_mask) { m_finish[offset] = data; } protected: - void code_map(address_map &map); - void data_map(address_map &map); + void code_map(address_map &map) ATTR_COLD; + void data_map(address_map &map) ATTR_COLD; void decode(); void secondary(); diff --git a/src/mame/sgi/sgi_gr1.h b/src/mame/sgi/sgi_gr1.h index 529d8b2cd13..827a19c0e64 100644 --- a/src/mame/sgi/sgi_gr1.h +++ b/src/mame/sgi/sgi_gr1.h @@ -34,16 +34,16 @@ class sgi_gr1_device : public device_t void reset_w(int state); - void map(address_map &map); + void map(address_map &map) ATTR_COLD; protected: - void map_bank(address_map& map); + void map_bank(address_map &map) ATTR_COLD; // device_t overrides - virtual ioport_constructor device_input_ports() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; // display registers u8 dr0_r(); diff --git a/src/mame/sgi/sgi_re2.h b/src/mame/sgi/sgi_re2.h index 4a6c3011672..ddf4978cf52 100644 --- a/src/mame/sgi/sgi_re2.h +++ b/src/mame/sgi/sgi_re2.h @@ -20,8 +20,8 @@ class sgi_re2_device : public device_t auto out_drq() { return m_drq_cb.bind(); } // device_t 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; u32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, rectangle const &cliprect); diff --git a/src/mame/sgi/sgi_xmap2.h b/src/mame/sgi/sgi_xmap2.h index 01073f7e20c..2b860db12bd 100644 --- a/src/mame/sgi/sgi_xmap2.h +++ b/src/mame/sgi/sgi_xmap2.h @@ -14,8 +14,8 @@ class sgi_xmap2_device sgi_xmap2_device(machine_config const &mconfig, char const *tag, device_t *owner, u32 clock); // device_t 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; // device_palette_interface overrides virtual u32 palette_entries() const noexcept override { return 4096 + 16; } diff --git a/src/mame/sgi/tt.cpp b/src/mame/sgi/tt.cpp index 37427a0390c..e2c7493f09c 100644 --- a/src/mame/sgi/tt.cpp +++ b/src/mame/sgi/tt.cpp @@ -44,8 +44,8 @@ class ip4_state : public driver_device void pi4d70(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; void tt12(machine_config &config, XTAL clock); diff --git a/src/mame/sgi/vc1.h b/src/mame/sgi/vc1.h index f20454983c9..25ca7cda935 100644 --- a/src/mame/sgi/vc1.h +++ b/src/mame/sgi/vc1.h @@ -16,8 +16,8 @@ class sgi_vc1_device void write(offs_t offset, u8 data); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: u16 m_addr; diff --git a/src/mame/sgi/vino.h b/src/mame/sgi/vino.h index 49a90a5ccaf..130be6ed8c0 100644 --- a/src/mame/sgi/vino.h +++ b/src/mame/sgi/vino.h @@ -34,9 +34,9 @@ class vino_device : public device_t protected: // device-level overrides - 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; private: enum channel_num_t : uint32_t diff --git a/src/mame/shared/alpha68k_palette.h b/src/mame/shared/alpha68k_palette.h index 6b7e224d022..f29bd180c4c 100644 --- a/src/mame/shared/alpha68k_palette.h +++ b/src/mame/shared/alpha68k_palette.h @@ -42,8 +42,8 @@ class alpha68k_palette_device : public device_t, 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 uint32_t palette_entries() const noexcept override { return m_entries; } private: diff --git a/src/mame/shared/ballysound.h b/src/mame/shared/ballysound.h index da396035a88..7e0d22164a2 100644 --- a/src/mame/shared/ballysound.h +++ b/src/mame/shared/ballysound.h @@ -60,7 +60,7 @@ class bally_as2888_device : public device_t, public device_mixer_interface void sound_select(uint8_t data); void sound_int(int state); - void as2888_map(address_map &map); + void as2888_map(address_map &map) ATTR_COLD; protected: bally_as2888_device( @@ -77,8 +77,8 @@ class bally_as2888_device : public device_t, public device_mixer_interface { } // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; private: uint8_t m_sound_select = 0; @@ -117,7 +117,7 @@ class bally_as3022_device : public device_t, public device_mixer_interface void sound_select(uint8_t data); void sound_int(int state); - void as3022_map(address_map &map); + void as3022_map(address_map &map) ATTR_COLD; protected: bally_as3022_device( @@ -137,9 +137,9 @@ class bally_as3022_device : public device_t, public device_mixer_interface { } // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual ioport_constructor device_input_ports() const override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; // devices // The schematics list an optional 555, but it never seemed to be used @@ -184,11 +184,11 @@ class bally_sounds_plus_device : public bally_as3022_device bally_as3022_device(mconfig, BALLY_SOUNDS_PLUS, tag, owner, clock) { } - void sounds_plus_map(address_map &map); + void sounds_plus_map(address_map &map) ATTR_COLD; protected: // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: // internal communications @@ -214,7 +214,7 @@ class bally_cheap_squeak_device : public device_t, public device_mixer_interface void sound_select(uint8_t data); void sound_int(int state); - void cheap_squeak_map(address_map &map); + void cheap_squeak_map(address_map &map) ATTR_COLD; protected: bally_cheap_squeak_device( @@ -225,9 +225,9 @@ class bally_cheap_squeak_device : public device_t, public device_mixer_interface uint32_t clock); // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual ioport_constructor device_input_ports() const override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; // devices required_device m_cpu; @@ -269,7 +269,7 @@ class bally_squawk_n_talk_device : public device_t, public device_mixer_interfac void sound_select(uint8_t data); void sound_int(int state); - void squawk_n_talk_map(address_map &map); + void squawk_n_talk_map(address_map &map) ATTR_COLD; protected: bally_squawk_n_talk_device( @@ -280,9 +280,9 @@ class bally_squawk_n_talk_device : public device_t, public device_mixer_interfac uint32_t clock); // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual ioport_constructor device_input_ports() const override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; // devices required_device m_cpu; @@ -317,8 +317,8 @@ class bally_squawk_n_talk_ay_device : public bally_squawk_n_talk_device protected: // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; uint8_t pia2_porta_r(); diff --git a/src/mame/shared/cage.h b/src/mame/shared/cage.h index 68022668b8c..0ea0f699b7d 100644 --- a/src/mame/shared/cage.h +++ b/src/mame/shared/cage.h @@ -42,13 +42,13 @@ class atari_cage_device : public device_t, public device_mixer_interface TIMER_CALLBACK_MEMBER( cage_deferred_w ); - void cage_map(address_map &map); + void cage_map(address_map &map) ATTR_COLD; protected: atari_cage_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // device-level overrides - 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; TIMER_DEVICE_CALLBACK_MEMBER( dma_timer_callback ); TIMER_DEVICE_CALLBACK_MEMBER( cage_timer_callback ); @@ -113,10 +113,10 @@ class atari_cage_seattle_device : public atari_cage_device // construction/destruction atari_cage_seattle_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - void cage_map_seattle(address_map &map); + void cage_map_seattle(address_map &map) ATTR_COLD; protected: // optional information overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; diff --git a/src/mame/shared/cclimber_a.h b/src/mame/shared/cclimber_a.h index c189b6d2a01..fe726375596 100644 --- a/src/mame/shared/cclimber_a.h +++ b/src/mame/shared/cclimber_a.h @@ -33,9 +33,9 @@ class cclimber_audio_device : public device_t protected: // device level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void device_reset() override { sample_volume_w(0); } - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: required_device m_dac; diff --git a/src/mame/shared/decospr.h b/src/mame/shared/decospr.h index 35f1bc43d1f..c83281feb3b 100644 --- a/src/mame/shared/decospr.h +++ b/src/mame/shared/decospr.h @@ -52,8 +52,8 @@ class decospr_device : public device_t, public device_video_interface, public de DECOSPR_PRIORITY_CB_MEMBER(default_col_cb); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; decospr_pri_cb_delegate m_pri_cb; decospr_col_cb_delegate m_col_cb; bitmap_ind16 m_sprite_bitmap;// optional sprite bitmap (should be INDEXED16) diff --git a/src/mame/shared/efo_zsu.h b/src/mame/shared/efo_zsu.h index dc78413a0c3..031da4eb834 100644 --- a/src/mame/shared/efo_zsu.h +++ b/src/mame/shared/efo_zsu.h @@ -32,14 +32,14 @@ class efo_zsu_device : public device_t protected: efo_zsu_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; private: void adpcm_fifo_w(u8 data); - void zsu_io(address_map &map); - void zsu_map(address_map &map); + void zsu_io(address_map &map) ATTR_COLD; + void zsu_map(address_map &map) ATTR_COLD; void ay1_porta_w(u8 data); @@ -86,12 +86,12 @@ class cedar_magnet_sound_device : public efo_zsu_device, public cedar_magnet_boa cedar_magnet_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); protected: - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual TIMER_CALLBACK_MEMBER(reset_assert_callback) override; private: - void cedar_magnet_sound_map(address_map &map); + void cedar_magnet_sound_map(address_map &map) ATTR_COLD; void ay0_porta_w(u8 data); }; diff --git a/src/mame/shared/exidysound.h b/src/mame/shared/exidysound.h index 2f2cfde28db..e7c74b0b7df 100644 --- a/src/mame/shared/exidysound.h +++ b/src/mame/shared/exidysound.h @@ -46,8 +46,8 @@ class exidy_sound_device : public device_t, public device_sound_interface exidy_sound_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; void common_sh_start(); void common_sh_reset(); @@ -101,8 +101,8 @@ class exidy_sh8253_sound_device : public exidy_sound_device exidy_sh8253_sound_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; virtual s32 generate_music_sample() override; @@ -137,9 +137,9 @@ class venture_sound_device : public exidy_sh8253_sound_device venture_sound_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // device_t implementation - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; - void venture_audio_map(address_map &map); + void venture_audio_map(address_map &map) ATTR_COLD; private: void filter_w(uint8_t data); @@ -167,8 +167,8 @@ class mtrap_sound_device : public venture_sound_device protected: // device_t implementation - 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; private: required_device m_cvsd_timer; @@ -185,8 +185,8 @@ class mtrap_sound_device : public venture_sound_device uint8_t m_cvsd_data; uint8_t m_cvsd_clk; - void cvsd_map(address_map &map); - void cvsd_iomap(address_map &map); + void cvsd_map(address_map &map) ATTR_COLD; + void cvsd_iomap(address_map &map) ATTR_COLD; }; DECLARE_DEVICE_TYPE(EXIDY_MTRAP, mtrap_sound_device) @@ -204,9 +204,9 @@ class victory_sound_device : public exidy_sh8253_sound_device protected: // device_t implementation - 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; private: required_device m_tms; @@ -214,7 +214,7 @@ class victory_sound_device : public exidy_sh8253_sound_device void irq_clear_w(int state); void main_ack_w(int state); - void victory_audio_map(address_map &map); + void victory_audio_map(address_map &map) ATTR_COLD; // internal state uint8_t m_sound_response_ack_clk; // 7474 @ F4 diff --git a/src/mame/shared/fruitsamples.h b/src/mame/shared/fruitsamples.h index 80a0737c204..851623fcace 100644 --- a/src/mame/shared/fruitsamples.h +++ b/src/mame/shared/fruitsamples.h @@ -45,8 +45,8 @@ class fruit_samples_device : public device_t }; protected: - 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; private: required_device m_samples; diff --git a/src/mame/shared/gottlieb_a.h b/src/mame/shared/gottlieb_a.h index ff12b962966..a246f884444 100644 --- a/src/mame/shared/gottlieb_a.h +++ b/src/mame/shared/gottlieb_a.h @@ -59,12 +59,12 @@ class gottlieb_sound_p2_device : public device_t, public device_mixer_interface gottlieb_sound_p2_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; virtual void write_sync(s32 param); - void p2_map(address_map &map); + void p2_map(address_map &map) ATTR_COLD; // devices required_device m_cpu; @@ -85,15 +85,15 @@ class gottlieb_sound_p3_device : public gottlieb_sound_p2_device protected: // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; virtual void write_sync(s32 param) override; private: void r6530b_w(u8 data); - void p3_map(address_map &map); + void p3_map(address_map &map) ATTR_COLD; bool m_irqclock; bool m_irqenable; @@ -116,13 +116,13 @@ class gottlieb_sound_r1_device : public device_t, public device_mixer_interface gottlieb_sound_r1_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; void write_sync(s32 param); - virtual void r1_map(address_map &map); + virtual void r1_map(address_map &map) ATTR_COLD; // devices required_device m_dac; @@ -146,12 +146,12 @@ class gottlieb_sound_speech_r1_device : public gottlieb_sound_r1_device gottlieb_sound_speech_r1_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; virtual void device_post_load() override { m_votrax->set_unscaled_clock(m_speech_clock); } - virtual void r1_map(address_map &map) override; + virtual void r1_map(address_map &map) override ATTR_COLD; // internal communications u32 convert_speech_clock(u8 data); @@ -177,7 +177,7 @@ class gottlieb_sound_speech_r1a_device : public gottlieb_sound_speech_r1_device protected: // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; @@ -197,8 +197,8 @@ class gottlieb_sound_p4_device : public device_t, public device_mixer_interface gottlieb_sound_p4_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; void write_sync(s32 param); TIMER_CALLBACK_MEMBER(set_nmi); @@ -213,8 +213,8 @@ class gottlieb_sound_p4_device : public device_t, public device_mixer_interface void speech_ctrl_w(u8 data); void psg_latch_w(u8 data); - void p4_dmap(address_map &map); - void p4_ymap(address_map &map); + void p4_dmap(address_map &map) ATTR_COLD; + void p4_ymap(address_map &map) ATTR_COLD; // internal helpers void nmi_timer_adjust(); @@ -256,17 +256,17 @@ class gottlieb_sound_r2_device : public gottlieb_sound_p4_device protected: // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; private: // internal communications void sp0250_latch_w(u8 data); void speech_control_w(u8 data); - void r2_dmap(address_map &map); - void r2_ymap(address_map &map); + void r2_dmap(address_map &map) ATTR_COLD; + void r2_ymap(address_map &map) ATTR_COLD; // devices optional_device m_sp0250; @@ -290,10 +290,10 @@ class gottlieb_sound_p5_device : public gottlieb_sound_p4_device gottlieb_sound_p5_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; - void p5_ymap(address_map &map); + void p5_ymap(address_map &map) ATTR_COLD; optional_device m_ym2151; }; @@ -310,11 +310,11 @@ class gottlieb_sound_p6_device : public gottlieb_sound_p5_device protected: // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; private: - void p6_dmap(address_map &map); + void p6_dmap(address_map &map) ATTR_COLD; u8 d2_data_r(); }; @@ -330,11 +330,11 @@ class gottlieb_sound_p7_device : public gottlieb_sound_p5_device protected: // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; private: - void p7_ymap(address_map &map); + void p7_ymap(address_map &map) ATTR_COLD; void y_ctrl_w(u8); void y_latch_w(u8); diff --git a/src/mame/shared/inder_vid.h b/src/mame/shared/inder_vid.h index d82ca3ad3c1..d790aadd6fc 100644 --- a/src/mame/shared/inder_vid.h +++ b/src/mame/shared/inder_vid.h @@ -33,13 +33,13 @@ class inder_vid_device : public device_t m_bpp_mode = bpp; } - void megaphx_tms_map(address_map &map); - void ramdac_map(address_map &map); + void megaphx_tms_map(address_map &map) ATTR_COLD; + void ramdac_map(address_map &map) ATTR_COLD; protected: - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: required_shared_ptr m_vram; diff --git a/src/mame/shared/isbc_215g.h b/src/mame/shared/isbc_215g.h index d1084b04b95..d4cad022bad 100644 --- a/src/mame/shared/isbc_215g.h +++ b/src/mame/shared/isbc_215g.h @@ -32,13 +32,13 @@ class isbc_215g_device : public device_t void mem_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); protected: - virtual void device_start() override; - virtual void device_reset() override; - virtual void device_add_mconfig(machine_config &config) override; - 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; + const tiny_rom_entry *device_rom_region() const override ATTR_COLD; - void isbc_215g_io(address_map &map); - void isbc_215g_mem(address_map &map); + void isbc_215g_io(address_map &map) ATTR_COLD; + void isbc_215g_mem(address_map &map) ATTR_COLD; private: void find_sector(); diff --git a/src/mame/shared/mega32x.h b/src/mame/shared/mega32x.h index 2bcc7c5de0c..5c447ddc841 100644 --- a/src/mame/shared/mega32x.h +++ b/src/mame/shared/mega32x.h @@ -94,18 +94,18 @@ class sega_32x_device : public device_t, public device_palette_interface, public void check_irqs(); void interrupt_cb(int scanline, int irq6); - void sh2_main_map(address_map &map); - void sh2_slave_map(address_map &map); - void sh2_common_map(address_map &map); + void sh2_main_map(address_map &map) ATTR_COLD; + void sh2_slave_map(address_map &map) ATTR_COLD; + void sh2_common_map(address_map &map) ATTR_COLD; protected: sega_32x_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); required_shared_ptr m_sh2_shared; - 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; // device_palette_interface overrides virtual uint32_t palette_entries() const noexcept override { return 32*32*32/**2*/; } @@ -215,7 +215,7 @@ class sega_32x_ntsc_device : public sega_32x_device sega_32x_ntsc_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 void device_add_mconfig(machine_config &config) override ATTR_COLD; }; @@ -233,7 +233,7 @@ class sega_32x_pal_device : public sega_32x_device sega_32x_pal_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 void device_add_mconfig(machine_config &config) override ATTR_COLD; }; diff --git a/src/mame/shared/megacdcd.h b/src/mame/shared/megacdcd.h index 607a3318f1a..5bceb465a0a 100644 --- a/src/mame/shared/megacdcd.h +++ b/src/mame/shared/megacdcd.h @@ -184,9 +184,9 @@ class lc89510_temp_device : public device_t void LC8951UpdateHeader(); - 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; TIMER_DEVICE_CALLBACK_MEMBER( segacd_access_timer_callback ); }; diff --git a/src/mame/shared/mitcrt.h b/src/mame/shared/mitcrt.h index 9782405f414..5634c12fa84 100644 --- a/src/mame/shared/mitcrt.h +++ b/src/mame/shared/mitcrt.h @@ -43,7 +43,7 @@ class crt_device : public device_t protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: struct crt_point diff --git a/src/mame/shared/ms7004.h b/src/mame/shared/ms7004.h index 251fab4396e..4ffab1c3e5b 100644 --- a/src/mame/shared/ms7004.h +++ b/src/mame/shared/ms7004.h @@ -29,14 +29,14 @@ class ms7004_device : public device_t //, public device_serial_interface void write_rxd(int state); - void ms7004_map(address_map &map); + void ms7004_map(address_map &map) ATTR_COLD; protected: // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual const tiny_rom_entry *device_rom_region() const override; - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: required_device m_maincpu; diff --git a/src/mame/shared/namco_c355spr.h b/src/mame/shared/namco_c355spr.h index b3cfc9f1307..39fd5801040 100644 --- a/src/mame/shared/namco_c355spr.h +++ b/src/mame/shared/namco_c355spr.h @@ -75,8 +75,8 @@ class namco_c355spr_device : public device_t, public device_gfx_interface, publi namco_c355spr_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock = 0); // device-level overrides - virtual void device_start() override; - virtual void device_stop() override; + virtual void device_start() override ATTR_COLD; + virtual void device_stop() override ATTR_COLD; c355_obj_code2tile_delegate m_code2tile; c355_priority_delegate m_pri_cb; diff --git a/src/mame/shared/pcshare.h b/src/mame/shared/pcshare.h index 1746ce36bc5..0a038e69f9c 100644 --- a/src/mame/shared/pcshare.h +++ b/src/mame/shared/pcshare.h @@ -47,7 +47,7 @@ class pcat_base_state : public driver_device void pcat_common(machine_config &config); void pcat_common_nokeyboard(machine_config &config); - void pcat32_io_common(address_map &map); + void pcat32_io_common(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_dma8237_1; diff --git a/src/mame/shared/rax.h b/src/mame/shared/rax.h index 14c2a7479eb..6464ca2c74d 100644 --- a/src/mame/shared/rax.h +++ b/src/mame/shared/rax.h @@ -33,10 +33,10 @@ class acclaim_rax_device : public device_t, public device_mixer_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 device_post_load() override; - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: void adsp_sound_tx_callback(offs_t offset, uint32_t data); @@ -53,9 +53,9 @@ class acclaim_rax_device : public device_t, public device_mixer_interface uint16_t host_r(); void host_w(uint16_t data); - void adsp_data_map(address_map &map); - void adsp_io_map(address_map &map); - void adsp_program_map(address_map &map); + void adsp_data_map(address_map &map) ATTR_COLD; + void adsp_io_map(address_map &map) ATTR_COLD; + void adsp_program_map(address_map &map) ATTR_COLD; required_device m_cpu; required_device_array m_dmadac; diff --git a/src/mame/shared/s11c_bg.h b/src/mame/shared/s11c_bg.h index 64b492646c6..e1d835c29a6 100644 --- a/src/mame/shared/s11c_bg.h +++ b/src/mame/shared/s11c_bg.h @@ -38,16 +38,16 @@ class s11c_bg_device : public device_t, public device_mixer_interface void extra_w(int state); // external write to board CB2 (J4 pin 12), does anything actually do this? void ctrl_w(int state); // external write to board CB1 (J4 pin 13) void data_w(uint8_t data); // external write to board data bus (J4 pins 3 thru 10 for D0-D7) - virtual void device_reset() override; // power up reset + virtual void device_reset() override ATTR_COLD; // power up reset void resetq_w(int state); // external write to board /RESET (J4 pin 18) // callbacks auto cb2_cb() { return m_cb2_cb.bind(); } auto pb_cb() { return m_pb_cb.bind(); } - void s11c_bg_map(address_map &map); - void s11c_bgm_map(address_map &map); - void s11c_bgs_map(address_map &map); + void s11c_bg_map(address_map &map) ATTR_COLD; + void s11c_bgm_map(address_map &map) ATTR_COLD; + void s11c_bgs_map(address_map &map) ATTR_COLD; //mc6809e_device *get_cpu() { return m_cpu; } protected: @@ -55,8 +55,8 @@ class s11c_bg_device : public device_t, public device_mixer_interface s11c_bg_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock = 0); // overrides - 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; TIMER_CALLBACK_MEMBER(deferred_cb2_w); TIMER_CALLBACK_MEMBER(deferred_pb_w); @@ -89,7 +89,7 @@ class s11_bg_device : public s11c_bg_device public: s11_bg_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 0); protected: - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; class s11_obg_device : public s11c_bg_device @@ -97,7 +97,7 @@ class s11_obg_device : public s11c_bg_device public: s11_obg_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 0); protected: - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; class s11_bgm_device : public s11c_bg_device @@ -105,7 +105,7 @@ class s11_bgm_device : public s11c_bg_device public: s11_bgm_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 0); protected: - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; class s11_bgs_device : public s11c_bg_device @@ -113,7 +113,7 @@ class s11_bgs_device : public s11c_bg_device public: s11_bgs_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 0); protected: - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; DECLARE_DEVICE_TYPE(S11C_BG, s11c_bg_device) diff --git a/src/mame/shared/sec.h b/src/mame/shared/sec.h index c62568e366b..634e4d28f86 100644 --- a/src/mame/shared/sec.h +++ b/src/mame/shared/sec.h @@ -56,8 +56,8 @@ class sec_device : public device_t int data_r(); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: static const size_t MAX_COUNTERS = 32; diff --git a/src/mame/shared/segam1audio.h b/src/mame/shared/segam1audio.h index 0c908efe3b6..2429eb7bd18 100644 --- a/src/mame/shared/segam1audio.h +++ b/src/mame/shared/segam1audio.h @@ -34,14 +34,14 @@ class segam1audio_device : public device_t void write_txd(int state); - void mpcm1_map(address_map &map); - void mpcm2_map(address_map &map); - void segam1audio_map(address_map &map); + void mpcm1_map(address_map &map) ATTR_COLD; + void mpcm2_map(address_map &map) ATTR_COLD; + void segam1audio_map(address_map &map) ATTR_COLD; protected: // device-level overrides - 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; private: required_device m_audiocpu; diff --git a/src/mame/shared/seibusound.h b/src/mame/shared/seibusound.h index f4557610ffd..27aab2442c5 100644 --- a/src/mame/shared/seibusound.h +++ b/src/mame/shared/seibusound.h @@ -40,7 +40,7 @@ class seibu_sound_common { virtual ~seibu_sound_common() = default; protected: - void seibu_sound_map(address_map &map); + void seibu_sound_map(address_map &map) ATTR_COLD; }; class seibu_sound_device : public device_t @@ -76,8 +76,8 @@ class seibu_sound_device : public device_t 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; private: void update_irq_lines(s32 param); @@ -153,8 +153,8 @@ class seibu_adpcm_device : public device_t 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; private: // internal state diff --git a/src/mame/shared/snk68_spr.h b/src/mame/shared/snk68_spr.h index ae43ffe684b..7600c9c285f 100644 --- a/src/mame/shared/snk68_spr.h +++ b/src/mame/shared/snk68_spr.h @@ -32,8 +32,8 @@ class snk68_spr_device : public device_t void set_flip(bool flip); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: tile_indirection_delegate m_newtilecb; diff --git a/src/mame/shared/taito68705.h b/src/mame/shared/taito68705.h index 955c6f2324d..6cd6c613d56 100644 --- a/src/mame/shared/taito68705.h +++ b/src/mame/shared/taito68705.h @@ -37,8 +37,8 @@ class taito68705_mcu_device_base : public device_t // MCU callbacks void mcu_pa_w(u8 data); - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; bool host_flag() const { return m_host_flag; } bool mcu_flag() const { return m_mcu_flag; } @@ -74,8 +74,8 @@ class taito68705_mcu_device : public taito68705_mcu_device_base virtual u8 mcu_portc_r(); void mcu_portb_w(offs_t offset, u8 data, u8 mem_mask = ~0); - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; devcb_write_line::array<6> m_aux_out_cb; devcb_write8 m_aux_strobe_cb; @@ -113,7 +113,7 @@ class arkanoid_mcu_device_base : public taito68705_mcu_device_base u8 mcu_pc_r(); void mcu_pc_w(u8 data); - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; devcb_read8 m_portb_r_cb; @@ -127,7 +127,7 @@ class arkanoid_68705p3_device : public arkanoid_mcu_device_base arkanoid_68705p3_device(machine_config const &mconfig, char const *tag, device_t *owner, u32 clock); protected: - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; @@ -137,7 +137,7 @@ class arkanoid_68705p5_device : public arkanoid_mcu_device_base arkanoid_68705p5_device(machine_config const &mconfig, char const *tag, device_t *owner, u32 clock); protected: - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; #endif // MAME_SHARED_TAITO68705_H diff --git a/src/mame/shared/taitosnd.h b/src/mame/shared/taitosnd.h index a3ac5fe2f7c..97829e17ff0 100644 --- a/src/mame/shared/taitosnd.h +++ b/src/mame/shared/taitosnd.h @@ -32,8 +32,8 @@ class tc0140syt_device : public device_t tc0140syt_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); // 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; private: void update_nmi(); diff --git a/src/mame/shared/tecmo_spr.h b/src/mame/shared/tecmo_spr.h index b50b3c0b87e..bd1c8c9c636 100644 --- a/src/mame/shared/tecmo_spr.h +++ b/src/mame/shared/tecmo_spr.h @@ -39,8 +39,8 @@ class tecmo_spr_device : public device_t, public device_gfx_interface void tbowl_draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect, int xscroll, const uint8_t *spriteram); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: pri_cb_delegate m_pri_cb; diff --git a/src/mame/shared/teleprinter.h b/src/mame/shared/teleprinter.h index d7e25bead77..16f7a094516 100644 --- a/src/mame/shared/teleprinter.h +++ b/src/mame/shared/teleprinter.h @@ -25,8 +25,8 @@ class teleprinter_device : public generic_terminal_device protected: virtual void term_write(uint8_t data) override; - virtual void device_reset() override; - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_reset() override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: static inline constexpr unsigned WIDTH = 80; diff --git a/src/mame/shared/timeplt_a.h b/src/mame/shared/timeplt_a.h index e98af851ebd..af6098322ce 100644 --- a/src/mame/shared/timeplt_a.h +++ b/src/mame/shared/timeplt_a.h @@ -23,13 +23,13 @@ class timeplt_audio_device : public device_t timeplt_audio_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; void filter_w(offs_t offset, uint8_t data); uint8_t portB_r(); - void timeplt_sound_map(address_map &map); + void timeplt_sound_map(address_map &map) ATTR_COLD; required_device m_soundcpu; @@ -51,9 +51,9 @@ class locomotn_audio_device : public timeplt_audio_device protected: // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; - void locomotn_sound_map(address_map &map); + void locomotn_sound_map(address_map &map) ATTR_COLD; }; DECLARE_DEVICE_TYPE(TIMEPLT_AUDIO, timeplt_audio_device) diff --git a/src/mame/shared/vboysound.h b/src/mame/shared/vboysound.h index 6cd1d80879d..73210dc8fe8 100644 --- a/src/mame/shared/vboysound.h +++ b/src/mame/shared/vboysound.h @@ -67,9 +67,9 @@ class vboysnd_device : public device_t, public device_sound_interface }; // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void device_clock_changed() override; - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; virtual void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; diff --git a/src/mame/shared/vt100_kbd.h b/src/mame/shared/vt100_kbd.h index cde543765ec..94135b33018 100644 --- a/src/mame/shared/vt100_kbd.h +++ b/src/mame/shared/vt100_kbd.h @@ -36,9 +36,9 @@ class vt100_keyboard_device : public device_t protected: vt100_keyboard_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); - virtual void device_start() override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual void device_start() override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; virtual bool scan_enabled() const { return m_uart->tbmt_r(); } virtual void scan_start() { } @@ -75,9 +75,9 @@ class ms7002_device : public vt100_keyboard_device ms7002_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); protected: - virtual void device_start() override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual void device_start() override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; virtual bool scan_enabled() const override { return m_scan_enable; } virtual void scan_start() override { m_scan_enable = true; } diff --git a/src/mame/shared/williamssound.h b/src/mame/shared/williamssound.h index 6294b7d0d51..29434ca990f 100644 --- a/src/mame/shared/williamssound.h +++ b/src/mame/shared/williamssound.h @@ -57,15 +57,15 @@ class williams_cvsd_sound_device : public device_t, void cvsd_digit_clock_clear_w(u8 data); void cvsd_clock_set_w(u8 data); - void williams_cvsd_map(address_map &map); + void williams_cvsd_map(address_map &map) ATTR_COLD; mc6809e_device *get_cpu() { return m_cpu; } protected: // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; TIMER_CALLBACK_MEMBER(sync_write); @@ -113,16 +113,16 @@ class williams_narc_sound_device : public device_t, void cvsd_digit_clock_clear_w(u8 data); void cvsd_clock_set_w(u8 data); - void williams_narc_master_map(address_map &map); - void williams_narc_slave_map(address_map &map); + void williams_narc_master_map(address_map &map) ATTR_COLD; + void williams_narc_slave_map(address_map &map) ATTR_COLD; mc6809e_device *get_cpu() { return m_cpu[0]; } protected: // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; TIMER_CALLBACK_MEMBER(sync_master_command); TIMER_CALLBACK_MEMBER(sync_slave_command); @@ -168,16 +168,16 @@ class williams_adpcm_sound_device : public device_t, u8 command_r(); void talkback_w(u8 data); - void williams_adpcm_map(address_map &map); - void williams_adpcm_oki_map(address_map &map); + void williams_adpcm_map(address_map &map) ATTR_COLD; + void williams_adpcm_oki_map(address_map &map) ATTR_COLD; mc6809e_device *get_cpu() { return m_cpu; } protected: // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; TIMER_CALLBACK_MEMBER(sync_command); TIMER_CALLBACK_MEMBER(irq_clear); @@ -213,14 +213,14 @@ class williams_s4_sound_device : public device_t, public device_mixer_interface protected: // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: // devices - void williams_s4_map(address_map &map); + void williams_s4_map(address_map &map) ATTR_COLD; required_device m_cpu; required_device m_pia; u8 m_dummy = 0; // needed for save-state support @@ -242,15 +242,15 @@ class williams_s6_sound_device : public device_t, public device_mixer_interface protected: // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: void pb_w(u8 data); // devices - void williams_s6_map(address_map &map); + void williams_s6_map(address_map &map) ATTR_COLD; required_device m_cpu; required_device m_pia; required_device m_hc; @@ -274,14 +274,14 @@ class williams_s9_sound_device : public device_t, public device_mixer_interface protected: // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: // devices - void williams_s9_map(address_map &map); + void williams_s9_map(address_map &map) ATTR_COLD; required_device m_cpu; required_device m_pia; required_device m_hc; @@ -305,15 +305,15 @@ class williams_s11_sound_device : public device_t, public device_mixer_interface protected: // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: void bank_w(u8); // devices - void williams_s11_map(address_map &map); + void williams_s11_map(address_map &map) ATTR_COLD; required_device m_cpu; required_device m_pia; required_device m_hc; diff --git a/src/mame/shared/wswansound.h b/src/mame/shared/wswansound.h index feec0f2507f..84bafc90f74 100644 --- a/src/mame/shared/wswansound.h +++ b/src/mame/shared/wswansound.h @@ -48,9 +48,9 @@ class wswan_sound_device : public device_t, }; // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void device_clock_changed() override; - virtual void device_reset() override; + virtual void device_reset() override ATTR_COLD; virtual void rom_bank_pre_change() override; diff --git a/src/mame/shared/xbox.h b/src/mame/shared/xbox.h index ecb8d73a01f..03715a8b6bf 100644 --- a/src/mame/shared/xbox.h +++ b/src/mame/shared/xbox.h @@ -23,8 +23,8 @@ class xbox_pic16lc_device : public device_t, public smbus_interface virtual int execute_command(int command, int rw, int data) override; protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: uint8_t buffer[0xff]; @@ -43,8 +43,8 @@ class xbox_cx25871_device : public device_t, public smbus_interface virtual int execute_command(int command, int rw, int data) override; protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: }; @@ -64,8 +64,8 @@ class xbox_eeprom_device : public device_t, public smbus_interface std::function hack_eeprom; protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: }; @@ -90,10 +90,10 @@ class xbox_superio_device : public device_t, public lpcbus_device_interface void write_rs232(offs_t offset, uint8_t data); protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: - void internal_io_map(address_map &map); + void internal_io_map(address_map &map) ATTR_COLD; lpcbus_host_interface *lpchost = nullptr; int lpcindex = 0; @@ -134,7 +134,7 @@ class xbox_base_state : public driver_device void vblank_callback(int state); uint32_t screen_update_callback(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; void maincpu_interrupt(int state); IRQ_CALLBACK_MEMBER(irq_callback); diff --git a/src/mame/shared/xbox_pci.h b/src/mame/shared/xbox_pci.h index e423f2e7bd4..2fc2fc51e1b 100644 --- a/src/mame/shared/xbox_pci.h +++ b/src/mame/shared/xbox_pci.h @@ -34,8 +34,8 @@ class nv2a_host_device : public pci_host_device { template void set_cpu_tag(T &&cpu_tag) { cpu.set_tag(std::forward(cpu_tag)); } protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: required_device cpu; @@ -56,13 +56,13 @@ class nv2a_ram_device : public pci_device { } nv2a_ram_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - virtual void config_map(address_map &map) override; + virtual void config_map(address_map &map) override ATTR_COLD; virtual void map_extra(uint64_t memory_window_start, uint64_t memory_window_end, uint64_t memory_offset, address_space *memory_space, uint64_t io_window_start, uint64_t io_window_end, uint64_t io_offset, address_space *io_space) override; protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; uint32_t config_register_r(); void config_register_w(uint32_t data); @@ -171,9 +171,9 @@ class mcpx_isalpc_device : public pci_device, public lpcbus_host_interface { void dma2_dack3_w(int state) { set_dma_channel(7, state); } protected: - 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; virtual void map_extra(uint64_t memory_window_start, uint64_t memory_window_end, uint64_t memory_offset, address_space *memory_space, uint64_t io_window_start, uint64_t io_window_end, uint64_t io_offset, address_space *io_space) override; @@ -184,8 +184,8 @@ class mcpx_isalpc_device : public pci_device, public lpcbus_host_interface { void pit8254_out2_changed(int state); private: - void internal_io_map(address_map &map); - void lpc_io(address_map &map); + void internal_io_map(address_map &map) ATTR_COLD; + void lpc_io(address_map &map) ATTR_COLD; void update_smi_line(); void speaker_set_spkrdata(uint8_t data); @@ -249,10 +249,10 @@ class mcpx_smbus_device : public pci_device { void smbus1_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0); protected: - 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 config_map(address_map &map) override; + virtual void config_map(address_map &map) override ATTR_COLD; private: devcb_write_line m_interrupt_handler; @@ -266,9 +266,9 @@ class mcpx_smbus_device : public pci_device { smbus_interface *devices[128]; uint32_t words[256 / 4]; } smbusst[2]; - void smbus_io0(address_map &map); - void smbus_io1(address_map &map); - void smbus_io2(address_map &map); + void smbus_io0(address_map &map) ATTR_COLD; + void smbus_io1(address_map &map) ATTR_COLD; + void smbus_io2(address_map &map) ATTR_COLD; uint32_t smbus_read(int bus, offs_t offset, uint32_t mem_mask); void smbus_write(int bus, offs_t offset, uint32_t data, uint32_t mem_mask); uint8_t minimum_grant_r() { return 3; } @@ -294,11 +294,11 @@ class mcpx_ohci_device : public pci_device { void ohci_w(offs_t offset, uint32_t data); protected: - 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 device_config_complete() override; - virtual void config_map(address_map &map) override; + virtual void config_map(address_map &map) override ATTR_COLD; TIMER_CALLBACK_MEMBER(usb_update); @@ -308,7 +308,7 @@ class mcpx_ohci_device : public pci_device { emu_timer *timer; required_device maincpu; std::function hack_callback; - void ohci_mmio(address_map &map); + void ohci_mmio(address_map &map) ATTR_COLD; struct dev_t { device_usb_ohci_function_interface *dev; int port; @@ -334,12 +334,12 @@ class mcpx_eth_device : public pci_device { void eth_io_w(uint32_t data); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: - void eth_mmio(address_map &map); - void eth_io(address_map &map); + void eth_mmio(address_map &map) ATTR_COLD; + void eth_io(address_map &map) ATTR_COLD; }; DECLARE_DEVICE_TYPE(MCPX_ETH, mcpx_eth_device) @@ -364,10 +364,10 @@ class mcpx_apu_device : public pci_device { void apu_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0); protected: - 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 config_map(address_map &map) override; + virtual void config_map(address_map &map) override ATTR_COLD; TIMER_CALLBACK_MEMBER(audio_update); @@ -395,7 +395,7 @@ class mcpx_apu_device : public pci_device { emu_timer *timer = nullptr; address_space *space = nullptr; } apust; - void apu_mmio(address_map &map); + void apu_mmio(address_map &map) ATTR_COLD; uint8_t minimum_grant_r() { return 1; } uint8_t maximum_latency_r() { return 0xc; } }; @@ -419,19 +419,19 @@ class mcpx_ac97_audio_device : public pci_device { void ac97_audio_io1_w(uint32_t data); protected: - 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 config_map(address_map &map) override; + virtual void config_map(address_map &map) override ATTR_COLD; private: struct ac97_state { uint32_t mixer_regs[0x84 / 4]; uint32_t controller_regs[0x40 / 4]; } ac97st; - void ac97_mmio(address_map &map); - void ac97_io0(address_map &map); - void ac97_io1(address_map &map); + void ac97_mmio(address_map &map) ATTR_COLD; + void ac97_io0(address_map &map) ATTR_COLD; + void ac97_io1(address_map &map) ATTR_COLD; uint8_t minimum_grant_r() { return 2; } uint8_t maximum_latency_r() { return 5; } }; @@ -478,24 +478,24 @@ class mcpx_ide_device : public pci_device { void sec_write_cs1_w(uint8_t data); protected: - 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; virtual void map_extra(uint64_t memory_window_start, uint64_t memory_window_end, uint64_t memory_offset, address_space *memory_space, uint64_t io_window_start, uint64_t io_window_end, uint64_t io_offset, address_space *io_space) override; - virtual void config_map(address_map &map) override; + virtual void config_map(address_map &map) override ATTR_COLD; private: required_device m_pri; required_device m_sec; devcb_write_line m_pri_interrupt_handler; devcb_write_line m_sec_interrupt_handler; - void ide_pri_command(address_map &map); - void ide_pri_control(address_map &map); - void ide_sec_command(address_map &map); - void ide_sec_control(address_map &map); - void ide_io(address_map &map); + void ide_pri_command(address_map &map) ATTR_COLD; + void ide_pri_control(address_map &map) ATTR_COLD; + void ide_sec_command(address_map &map) ATTR_COLD; + void ide_sec_control(address_map &map) ATTR_COLD; + void ide_io(address_map &map) ATTR_COLD; void ide_pri_interrupt(int state); void ide_sec_interrupt(int state); uint8_t minimum_grant_r() { return 3; } @@ -524,8 +524,8 @@ class nv2a_agp_device : public agp_bridge_device { void unknown_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; }; DECLARE_DEVICE_TYPE(NV2A_AGP, nv2a_agp_device) @@ -554,16 +554,16 @@ class nv2a_gpu_device : public agp_device { void nv2a_mirror_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: nv2a_renderer *nvidia_nv2a; required_device cpu; devcb_write_line m_interrupt_handler; address_space *m_program; - void nv2a_mmio(address_map &map); - void nv2a_mirror(address_map &map); + void nv2a_mmio(address_map &map) ATTR_COLD; + void nv2a_mirror(address_map &map) ATTR_COLD; }; DECLARE_DEVICE_TYPE(NV2A_GPU, nv2a_gpu_device) diff --git a/src/mame/shared/xbox_usb.h b/src/mame/shared/xbox_usb.h index 5e772ea101c..e69c310d386 100644 --- a/src/mame/shared/xbox_usb.h +++ b/src/mame/shared/xbox_usb.h @@ -485,7 +485,7 @@ class ohci_usb_connector : public device_t, public device_single_card_slot_inter virtual ~ohci_usb_connector(); protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; }; DECLARE_DEVICE_TYPE(OHCI_USB_CONNECTOR, ohci_usb_connector) @@ -505,8 +505,8 @@ class ohci_game_controller_device : public device_t, public device_usb_ohci_func int handle_interrupt_pid(int endpoint, int pid, uint8_t *buffer, int size) override; protected: - 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; private: static const USBStandardDeviceDescriptor devdesc; static const USBStandardConfigurationDescriptor condesc; diff --git a/src/mame/sharp/fontwriter.cpp b/src/mame/sharp/fontwriter.cpp index 9e463930027..c286f89b540 100644 --- a/src/mame/sharp/fontwriter.cpp +++ b/src/mame/sharp/fontwriter.cpp @@ -42,8 +42,8 @@ class fontwriter_state : public driver_device void fw600(machine_config &config); private: - virtual void machine_reset() override; - virtual void machine_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); @@ -57,14 +57,14 @@ class fontwriter_state : public driver_device m_vbl2 ^= 0x88; return m_vbl; } - void main_map(address_map &map); - void fw600_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void fw600_map(address_map &map) ATTR_COLD; // devices required_device m_maincpu; // driver_device overrides - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; uint8_t m_vbl = 0, m_vbl2 = 0; }; diff --git a/src/mame/sharp/mz2000.cpp b/src/mame/sharp/mz2000.cpp index 8e61e81fdba..26b5335e93a 100644 --- a/src/mame/sharp/mz2000.cpp +++ b/src/mame/sharp/mz2000.cpp @@ -112,8 +112,8 @@ class mz2000_state : public driver_device void timer_w(uint8_t data); void mz2000_tvram_attr_w(uint8_t data); void mz2000_gvram_mask_w(uint8_t data); - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; uint32_t screen_update_mz2000(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); uint8_t fdc_r(offs_t offset); void fdc_w(offs_t offset, uint8_t data); @@ -127,9 +127,9 @@ class mz2000_state : public driver_device uint8_t mz2000_pio1_portb_r(); uint8_t mz2000_pio1_porta_r(); - void mz2000_io(address_map &map); - void mz2000_map(address_map &map); - void mz80b_io(address_map &map); + void mz2000_io(address_map &map) ATTR_COLD; + void mz2000_map(address_map &map) ATTR_COLD; + void mz80b_io(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_screen; diff --git a/src/mame/sharp/mz2500.h b/src/mame/sharp/mz2500.h index 3cce7a8d0fe..81a54014058 100644 --- a/src/mame/sharp/mz2500.h +++ b/src/mame/sharp/mz2500.h @@ -163,9 +163,9 @@ class mz2500_state : public driver_device uint8_t dict_rom_r(offs_t offset); uint8_t mz2500_cg_latch_compare(); - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; void mz2500_palette(palette_device &palette) const; uint32_t screen_update_mz2500(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); INTERRUPT_GEN_MEMBER(mz2500_vbl); @@ -201,9 +201,9 @@ class mz2500_state : public driver_device static uint8_t pal_256_param(int index, int param); void reset_banks(uint8_t type); - void mz2500_io(address_map &map); - void mz2500_map(address_map &map); - void mz2500_bank_window_map(address_map &map); + void mz2500_io(address_map &map) ATTR_COLD; + void mz2500_map(address_map &map) ATTR_COLD; + void mz2500_bank_window_map(address_map &map) ATTR_COLD; }; #endif // MAME_SHARP_MZ2500_H diff --git a/src/mame/sharp/mz3500.cpp b/src/mame/sharp/mz3500.cpp index 3651dc9cd4b..5595a4e137f 100644 --- a/src/mame/sharp/mz3500.cpp +++ b/src/mame/sharp/mz3500.cpp @@ -112,18 +112,18 @@ class mz3500_state : public driver_device UPD7220_DISPLAY_PIXELS_MEMBER( hgdc_display_pixels ); UPD7220_DRAW_TEXT_LINE_MEMBER( hgdc_draw_text ); - void mz3500_master_io(address_map &map); - void mz3500_master_map(address_map &map); - void mz3500_slave_io(address_map &map); - void mz3500_slave_map(address_map &map); - void upd7220_1_map(address_map &map); - void upd7220_2_map(address_map &map); + void mz3500_master_io(address_map &map) ATTR_COLD; + void mz3500_master_map(address_map &map) ATTR_COLD; + void mz3500_slave_io(address_map &map) ATTR_COLD; + void mz3500_slave_map(address_map &map) ATTR_COLD; + void upd7220_1_map(address_map &map) ATTR_COLD; + void upd7220_2_map(address_map &map) ATTR_COLD; // driver_device overrides - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: required_ioport m_system_dsw; diff --git a/src/mame/sharp/mz6500.cpp b/src/mame/sharp/mz6500.cpp index 68b2cfae71f..cb545f905e5 100644 --- a/src/mame/sharp/mz6500.cpp +++ b/src/mame/sharp/mz6500.cpp @@ -40,14 +40,14 @@ class mz6500_state : public driver_device [[maybe_unused]]void fdc_irq(bool state); [[maybe_unused]]void fdc_drq(bool state); required_shared_ptr m_vram; - void machine_reset() override; - void machine_start() override; + void machine_reset() override ATTR_COLD; + void machine_start() override ATTR_COLD; required_device m_maincpu; required_device m_palette; UPD7220_DISPLAY_PIXELS_MEMBER( hgdc_display_pixels ); - void io_map(address_map &map); - void mem_map(address_map &map); - void upd7220_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; + void upd7220_map(address_map &map) ATTR_COLD; }; UPD7220_DISPLAY_PIXELS_MEMBER( mz6500_state::hgdc_display_pixels ) diff --git a/src/mame/sharp/mz700.h b/src/mame/sharp/mz700.h index 9cf448ae345..673183f5e5d 100644 --- a/src/mame/sharp/mz700.h +++ b/src/mame/sharp/mz700.h @@ -50,8 +50,8 @@ class mz_state : public driver_device void init_mz700(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; uint8_t mz700_e008_r(); void mz700_e008_w(uint8_t data); @@ -75,9 +75,9 @@ class mz_state : public driver_device void write_centronics_busy(int state); void write_centronics_perror(int state); - void mz700_banke(address_map &map); - void mz700_io(address_map &map); - void mz700_mem(address_map &map); + void mz700_banke(address_map &map) ATTR_COLD; + void mz700_io(address_map &map) ATTR_COLD; + void mz700_mem(address_map &map) ATTR_COLD; int m_mz700 = 0; /* 1 if running on an mz700 */ @@ -137,7 +137,7 @@ class mz800_state : public mz_state void init_mz800(); protected: - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; private: uint8_t mz800_bank_0_r(); @@ -159,9 +159,9 @@ class mz800_state : public mz_state void mz800_z80pio_port_a_w(uint8_t data); void pio_port_a_w(uint8_t data); - void mz800_bankf(address_map &map); - void mz800_io(address_map &map); - void mz800_mem(address_map &map); + void mz800_bankf(address_map &map) ATTR_COLD; + void mz800_io(address_map &map) ATTR_COLD; + void mz800_mem(address_map &map) ATTR_COLD; required_device_array m_joy; diff --git a/src/mame/sharp/mz80.h b/src/mame/sharp/mz80.h index 33012a48fe5..2e5a81c2f34 100644 --- a/src/mame/sharp/mz80.h +++ b/src/mame/sharp/mz80.h @@ -53,15 +53,15 @@ class mz80_state : public driver_device uint32_t screen_update_mz80a(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); TIMER_DEVICE_CALLBACK_MEMBER(ne555_tempo_callback); - void mz80k_io(address_map &map); - void mz80k_mem(address_map &map); + void mz80k_io(address_map &map) ATTR_COLD; + void mz80k_mem(address_map &map) ATTR_COLD; bool m_mz80k_vertical = false; bool m_mz80k_tempo_strobe = false; uint8_t m_speaker_level = 0; bool m_prev_state = false; uint8_t m_mz80k_cursor_cnt = 0; uint8_t m_mz80k_keyboard_line = 0; - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; required_device m_maincpu; required_device m_pit; required_device m_ppi; diff --git a/src/mame/sharp/pc1251.h b/src/mame/sharp/pc1251.h index d954eb2b2ad..d43e154f939 100644 --- a/src/mame/sharp/pc1251.h +++ b/src/mame/sharp/pc1251.h @@ -31,15 +31,15 @@ class pc1251_state : public pocketc_state void pc1250(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void pc1250_mem(address_map &map); - void pc1251_mem(address_map &map); - void pc1255_mem(address_map &map); - void pc1260_mem(address_map &map); - void pc1261_mem(address_map &map); + void pc1250_mem(address_map &map) ATTR_COLD; + void pc1251_mem(address_map &map) ATTR_COLD; + void pc1255_mem(address_map &map) ATTR_COLD; + void pc1260_mem(address_map &map) ATTR_COLD; + void pc1261_mem(address_map &map) ATTR_COLD; void out_b_w(uint8_t data); void out_c_w(uint8_t data); @@ -77,7 +77,7 @@ class pc1260_state : public pc1251_state void pc1261(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; }; #endif // MAME_SHARP_PC1251_H diff --git a/src/mame/sharp/pc1350.h b/src/mame/sharp/pc1350.h index 94f660c4389..793ae320fd1 100644 --- a/src/mame/sharp/pc1350.h +++ b/src/mame/sharp/pc1350.h @@ -28,11 +28,11 @@ class pc1350_state : public pocketc_state void pc1350(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void pc1350_mem(address_map &map); + void pc1350_mem(address_map &map) ATTR_COLD; void out_b_w(uint8_t data); void out_c_w(uint8_t data); diff --git a/src/mame/sharp/pc1401.h b/src/mame/sharp/pc1401.h index a044e64ff81..19d8e370b36 100644 --- a/src/mame/sharp/pc1401.h +++ b/src/mame/sharp/pc1401.h @@ -29,12 +29,12 @@ class pc1401_state : public pocketc_state void pc1402(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void pc1401_mem(address_map &map); - void pc1402_mem(address_map &map); + void pc1401_mem(address_map &map) ATTR_COLD; + void pc1402_mem(address_map &map) ATTR_COLD; int reset_r(); void out_b_w(uint8_t data); diff --git a/src/mame/sharp/pc1403.h b/src/mame/sharp/pc1403.h index 5ee832be6b1..47c41d40064 100644 --- a/src/mame/sharp/pc1403.h +++ b/src/mame/sharp/pc1403.h @@ -27,15 +27,15 @@ class pc1403_state : public pocketc_state void pc1403h(machine_config &config); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void pc1403_mem(address_map &map); - void pc1403h_mem(address_map &map); - void pc1421_readmem(address_map &map); - void pc1421_writemem(address_map &map); + void pc1403_mem(address_map &map) ATTR_COLD; + void pc1403h_mem(address_map &map) ATTR_COLD; + void pc1421_readmem(address_map &map) ATTR_COLD; + void pc1421_writemem(address_map &map) ATTR_COLD; int reset_r(); void out_c_w(uint8_t data); @@ -80,7 +80,7 @@ class pc1403h_state : public pc1403_state { } protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; }; #endif // MAME_SHARP_PC1403_H diff --git a/src/mame/sharp/pc1500.cpp b/src/mame/sharp/pc1500.cpp index 768aefdca87..d0469e34ac9 100644 --- a/src/mame/sharp/pc1500.cpp +++ b/src/mame/sharp/pc1500.cpp @@ -54,8 +54,8 @@ class pc1500_state : public driver_device void pc1500(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; @@ -91,8 +91,8 @@ class pc1500_state : public driver_device uint8_t pc1500_kb_r(); void pc1500_palette(palette_device &palette) const; - void pc1500_mem(address_map &map); - void pc1500_mem_io(address_map &map); + void pc1500_mem(address_map &map) ATTR_COLD; + void pc1500_mem_io(address_map &map) ATTR_COLD; }; void pc1500_state::pc1500_mem(address_map &map) diff --git a/src/mame/sharp/pce220.cpp b/src/mame/sharp/pce220.cpp index 3320ea24d2d..f6ed56c4a44 100644 --- a/src/mame/sharp/pce220.cpp +++ b/src/mame/sharp/pce220.cpp @@ -105,9 +105,9 @@ class pce220_state : public driver_device uint8_t m_port18; uint8_t m_battery_sel; - virtual void device_resolve_objects() override; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void device_resolve_objects() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; TIMER_DEVICE_CALLBACK_MEMBER(pce220_timer_callback); @@ -134,9 +134,9 @@ class pce220_state : public driver_device void irq_mask_w(uint8_t data); void install_bootrom(); - void pce220_io_common(address_map &map); - void pce220_io(address_map &map); - void pce220_mem(address_map &map); + void pce220_io_common(address_map &map) ATTR_COLD; + void pce220_io(address_map &map) ATTR_COLD; + void pce220_mem(address_map &map) ATTR_COLD; }; @@ -159,7 +159,7 @@ class pcg815_state : public pce220_state void lcdc_data_w(uint8_t data); HD61202_UPDATE_CB(hd61202_1_update); HD61202_UPDATE_CB(hd61202_2_update); - void pcg815_io(address_map &map); + void pcg815_io(address_map &map) ATTR_COLD; }; @@ -173,8 +173,8 @@ class pcg850v_state : public pce220_state void pcg850v(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: uint8_t m_g850v_bank_num = 0; @@ -183,7 +183,7 @@ class pcg850v_state : public pce220_state uint8_t g850v_bank_r(); void g850v_rom_bank_w(uint8_t data); void g850v_bank_w(uint8_t data); - void pcg850v_io(address_map &map); + void pcg850v_io(address_map &map) ATTR_COLD; }; diff --git a/src/mame/sharp/pce220_ser.h b/src/mame/sharp/pce220_ser.h index 677145eab15..1b362964854 100644 --- a/src/mame/sharp/pce220_ser.h +++ b/src/mame/sharp/pce220_ser.h @@ -57,8 +57,8 @@ class pce220_serial_device : public device_t, int get_next_state(); // 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; TIMER_CALLBACK_MEMBER(send_tick); TIMER_CALLBACK_MEMBER(receive_tick); diff --git a/src/mame/sharp/pocketc.h b/src/mame/sharp/pocketc.h index 4ea843861d2..41d4a065e3d 100644 --- a/src/mame/sharp/pocketc.h +++ b/src/mame/sharp/pocketc.h @@ -34,8 +34,8 @@ class pocketc_state : public driver_device void pocketc_base(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; TIMER_CALLBACK_MEMBER(power_up_done); diff --git a/src/mame/sharp/wizard.cpp b/src/mame/sharp/wizard.cpp index a957002686f..ceb4e78da66 100644 --- a/src/mame/sharp/wizard.cpp +++ b/src/mame/sharp/wizard.cpp @@ -84,11 +84,11 @@ class wizard_state : public driver_device void iq7000(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); diff --git a/src/mame/sharp/x1.h b/src/mame/sharp/x1.h index 9d3f3ccceaf..b3c9acce9d4 100644 --- a/src/mame/sharp/x1.h +++ b/src/mame/sharp/x1.h @@ -44,7 +44,7 @@ class x1_keyboard_device : public device_t, x1_keyboard_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); private: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // z80daisy_interface overrides virtual int z80daisy_irq_state() override; virtual int z80daisy_irq_ack() override; @@ -132,9 +132,9 @@ class x1_state : public driver_device void x1_portb_w(uint8_t data); void x1_portc_w(uint8_t data); void init_x1_kanji(); - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; uint32_t screen_update_x1(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); DECLARE_INPUT_CHANGED_MEMBER(ipl_reset); @@ -170,10 +170,10 @@ class x1_state : public driver_device uint8_t m_key_irq_flag; /**< Keyboard IRQ pending. */ uint8_t m_key_irq_vector; /**< Keyboard IRQ vector. */ - void x1_io(address_map &map); - void x1_io_banks(address_map &map); - void x1_io_banks_common(address_map &map); - void x1_mem(address_map &map); + void x1_io(address_map &map) ATTR_COLD; + void x1_io_banks(address_map &map) ATTR_COLD; + void x1_io_banks_common(address_map &map) ATTR_COLD; + void x1_mem(address_map &map) ATTR_COLD; protected: struct scrn_reg_t { @@ -338,9 +338,9 @@ class x1turbo_state : public x1_state void x1turbo(machine_config &config); protected: - void x1turbo_io_banks(address_map &map); - void x1turbo_mem(address_map &map); - virtual void machine_reset() override; + void x1turbo_io_banks(address_map &map) ATTR_COLD; + void x1turbo_mem(address_map &map) ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_dma; diff --git a/src/mame/sharp/x1twin.cpp b/src/mame/sharp/x1twin.cpp index 4281c6a227b..4fede787626 100644 --- a/src/mame/sharp/x1twin.cpp +++ b/src/mame/sharp/x1twin.cpp @@ -46,10 +46,10 @@ class x1twin_state : public x1_state private: uint32_t screen_update_x1pce(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void pce_io(address_map &map); - void pce_mem(address_map &map); - void x1_io(address_map &map); - void x1_mem(address_map &map); + void pce_io(address_map &map) ATTR_COLD; + void pce_mem(address_map &map) ATTR_COLD; + void x1_io(address_map &map) ATTR_COLD; + void x1_mem(address_map &map) ATTR_COLD; }; diff --git a/src/mame/sharp/x68k.h b/src/mame/sharp/x68k.h index 13da6d9a3f6..2c1dc8552af 100644 --- a/src/mame/sharp/x68k.h +++ b/src/mame/sharp/x68k.h @@ -213,7 +213,7 @@ class x68k_state : public driver_device TILE_GET_INFO_MEMBER(get_bg1_tile); TILE_GET_INFO_MEMBER(get_bg0_tile_16); TILE_GET_INFO_MEMBER(get_bg1_tile_16); - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); TIMER_CALLBACK_MEMBER(floppy_tc_tick); TIMER_CALLBACK_MEMBER(adpcm_drq_tick); @@ -280,9 +280,9 @@ class x68k_state : public driver_device uint8_t iack4(); uint8_t iack5(); - void x68k_base_map(address_map &map); - void x68k_map(address_map &map); - void cpu_space_map(address_map &map); + void x68k_base_map(address_map &map) ATTR_COLD; + void x68k_map(address_map &map) ATTR_COLD; + void cpu_space_map(address_map &map) ATTR_COLD; inline void plot_pixel(bitmap_rgb32 &bitmap, int x, int y, uint32_t color); bool get_text_pixel(int line, int pixel, uint16_t *pix); @@ -296,8 +296,8 @@ class x68k_state : public driver_device static rgb_t GGGGGRRRRRBBBBBI(uint32_t raw); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; void set_bus_error(uint32_t address, bool write, uint16_t mem_mask); bool m_bus_error = false; }; @@ -323,7 +323,7 @@ class x68ksupr_state : public x68k_state required_device m_scsictrl; - void x68kxvi_map(address_map &map); + void x68kxvi_map(address_map &map) ATTR_COLD; }; class x68030_state : public x68ksupr_state @@ -339,7 +339,7 @@ class x68030_state : public x68ksupr_state virtual void driver_start() override; protected: - void x68030_map(address_map &map); + void x68030_map(address_map &map) ATTR_COLD; }; #endif // MAME_SHARP_X68K_H diff --git a/src/mame/sharp/x68k_crtc.cpp b/src/mame/sharp/x68k_crtc.cpp index 6614075d07f..f86dfc13d40 100644 --- a/src/mame/sharp/x68k_crtc.cpp +++ b/src/mame/sharp/x68k_crtc.cpp @@ -278,7 +278,7 @@ TIMER_CALLBACK_MEMBER(x68k_crtc_device::vblank_irq) if (val == 0) // V-DISP off { m_vblank = 0; - vblank_line = m_vend + 1; + vblank_line = m_vend + (gfx_double_scan() ? 2 : 1); if (vblank_line > m_vtotal) vblank_line = m_vtotal; irq_time = screen().time_until_pos(vblank_line, 2); diff --git a/src/mame/sharp/x68k_crtc.h b/src/mame/sharp/x68k_crtc.h index acbe6e65445..d5330941377 100644 --- a/src/mame/sharp/x68k_crtc.h +++ b/src/mame/sharp/x68k_crtc.h @@ -55,8 +55,8 @@ class x68k_crtc_device : public device_t, public device_video_interface x68k_crtc_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 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; private: // internal helpers diff --git a/src/mame/sharp/x68k_hdc.h b/src/mame/sharp/x68k_hdc.h index 1d08808486f..129f09e30f6 100644 --- a/src/mame/sharp/x68k_hdc.h +++ b/src/mame/sharp/x68k_hdc.h @@ -108,7 +108,7 @@ class x68k_hdc_image_device : public harddisk_image_base_device protected: // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: TIMER_CALLBACK_MEMBER(req_timer_callback); diff --git a/src/mame/sharp/x68k_kbd.h b/src/mame/sharp/x68k_kbd.h index 2cf38ecbfde..d449990a09c 100644 --- a/src/mame/sharp/x68k_kbd.h +++ b/src/mame/sharp/x68k_kbd.h @@ -13,11 +13,11 @@ class x68k_keyboard_device : public buffered_rs232_device<16U>, protected device { public: x68k_keyboard_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; protected: - 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 key_make(uint8_t row, uint8_t column) override; virtual void key_repeat(uint8_t row, uint8_t column) override; virtual void key_break(uint8_t row, uint8_t column) override; diff --git a/src/mame/sharp/zaurus.cpp b/src/mame/sharp/zaurus.cpp index 1481b9bfb95..e55e25235a8 100644 --- a/src/mame/sharp/zaurus.cpp +++ b/src/mame/sharp/zaurus.cpp @@ -1429,8 +1429,8 @@ class zaurus_state : public driver_device protected: // driver_device overrides - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; // devices required_device m_maincpu; @@ -1453,7 +1453,7 @@ class zaurus_sa_state : public zaurus_state private: virtual void device_reset_after_children() override; - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; required_device m_sa_periphs; required_device m_locomo; @@ -1478,7 +1478,7 @@ class zaurus_pxa_state : public zaurus_state DECLARE_INPUT_CHANGED_MEMBER( system_start ); private: - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; required_device m_pxa_periphs; required_ioport m_power; diff --git a/src/mame/siemens/bitel.cpp b/src/mame/siemens/bitel.cpp index cf40d64c850..22a83d913a2 100644 --- a/src/mame/siemens/bitel.cpp +++ b/src/mame/siemens/bitel.cpp @@ -33,9 +33,9 @@ class bitel_state : public driver_device void feap90(machine_config &config); private: - void prog_map(address_map &map); - void ext_map(address_map &map); - void sub_prog_map(address_map &map); + void prog_map(address_map &map) ATTR_COLD; + void ext_map(address_map &map) ATTR_COLD; + void sub_prog_map(address_map &map) ATTR_COLD; required_device m_maincpu; }; diff --git a/src/mame/siemens/pcd.cpp b/src/mame/siemens/pcd.cpp index a5be586ff9c..d9f957e7813 100644 --- a/src/mame/siemens/pcd.cpp +++ b/src/mame/siemens/pcd.cpp @@ -80,13 +80,13 @@ class pcd_state : public driver_device void write_scsi_msg(int state); void write_scsi_req(int state); - void pcd_io(address_map &map); - void pcd_map(address_map &map); - void pcx_io(address_map &map); + void pcd_io(address_map &map) ATTR_COLD; + void pcd_map(address_map &map) ATTR_COLD; + void pcx_io(address_map &map) ATTR_COLD; // driver_device overrides - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; required_device m_maincpu; required_device m_pic1; diff --git a/src/mame/siemens/pcd.h b/src/mame/siemens/pcd.h index acae456094e..01f86b986f7 100644 --- a/src/mame/siemens/pcd.h +++ b/src/mame/siemens/pcd.h @@ -33,17 +33,17 @@ class pcd_video_device : public pcdx_video_device public: pcd_video_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - virtual void map(address_map &map) override; + virtual void map(address_map &map) override ATTR_COLD; void vram_sw_w(uint8_t data); uint8_t vram_r(offs_t offset); void vram_w(offs_t offset, uint8_t data); protected: - void device_start() override; - void device_reset() override; - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + void device_start() override ATTR_COLD; + 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; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; private: required_device m_crtc; @@ -83,7 +83,7 @@ class pcx_video_device : public pcdx_video_device auto txd_handler() { return m_txd_handler.bind(); } void rx_w(int state); - virtual void map(address_map &map) override; + virtual void map(address_map &map) override ATTR_COLD; uint8_t term_r(offs_t offset); void term_w(offs_t offset, uint8_t data); uint8_t term_mcu_r(offs_t offset); @@ -91,15 +91,15 @@ class pcx_video_device : public pcdx_video_device uint8_t unk_r(); void p1_w(uint8_t data); - void pcx_vid_io(address_map &map); - void pcx_vid_map(address_map &map); - void pcx_char_ram(address_map &map); - void pcx_attr_ram(address_map &map); + void pcx_vid_io(address_map &map) ATTR_COLD; + void pcx_vid_map(address_map &map) ATTR_COLD; + void pcx_char_ram(address_map &map) ATTR_COLD; + void pcx_attr_ram(address_map &map) ATTR_COLD; protected: - void device_start() override; - void device_reset() override; - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; + void device_start() override ATTR_COLD; + 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; private: required_device m_crtc; diff --git a/src/mame/siemens/pcd_kbd.h b/src/mame/siemens/pcd_kbd.h index 608d84740f7..6451dcd4549 100644 --- a/src/mame/siemens/pcd_kbd.h +++ b/src/mame/siemens/pcd_kbd.h @@ -15,13 +15,13 @@ class pcd_keyboard_device : public device_t void t0_w(int state); - void pcd_keyboard_map(address_map &map); + void pcd_keyboard_map(address_map &map) ATTR_COLD; protected: - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; - void device_start() override; + void device_start() override ATTR_COLD; private: required_ioport_array<17> m_rows; diff --git a/src/mame/siemens/pcmx2.cpp b/src/mame/siemens/pcmx2.cpp index 0fa88696699..cbd1bfe99fb 100644 --- a/src/mame/siemens/pcmx2.cpp +++ b/src/mame/siemens/pcmx2.cpp @@ -45,8 +45,8 @@ class pcmx2_state : public driver_device protected: // driver_device overrides - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; public: // machine config diff --git a/src/mame/siemens/pg685.cpp b/src/mame/siemens/pg685.cpp index 7091deb7a1b..00e76f7a3d8 100644 --- a/src/mame/siemens/pg685.cpp +++ b/src/mame/siemens/pg685.cpp @@ -141,12 +141,12 @@ class pg685_state : public driver_device void fdc_drq_w(int state); void fdc_intrq_w(int state); - void pg675_mem(address_map &map); - void pg685_mem(address_map &map); - void pg685oua12_mem(address_map &map); + void pg675_mem(address_map &map) ATTR_COLD; + void pg685_mem(address_map &map) ATTR_COLD; + void pg685oua12_mem(address_map &map) ATTR_COLD; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; required_device m_maincpu; optional_shared_ptr m_vram; optional_shared_ptr m_vram16; diff --git a/src/mame/sigma/nyny.cpp b/src/mame/sigma/nyny.cpp index 62159265b7d..3ffede741b6 100644 --- a/src/mame/sigma/nyny.cpp +++ b/src/mame/sigma/nyny.cpp @@ -153,17 +153,17 @@ class nyny_state : public driver_device void flipscreen_w(int state); void flipchars_w(int state); void nyny_ay8910_37_port_a_w(uint8_t data); - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; INTERRUPT_GEN_MEMBER(update_pia_1); void ic48_1_74123_output_changed(int state); inline void shift_star_generator( ); MC6845_UPDATE_ROW(crtc_update_row); MC6845_END_UPDATE(crtc_end_update); - void audio_1_map(address_map &map); - void audio_2_map(address_map &map); - void main_map(address_map &map); + void audio_1_map(address_map &map) ATTR_COLD; + void audio_2_map(address_map &map) ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/sigma/r2dtank.cpp b/src/mame/sigma/r2dtank.cpp index c767e9b0641..6cca8c13518 100644 --- a/src/mame/sigma/r2dtank.cpp +++ b/src/mame/sigma/r2dtank.cpp @@ -84,7 +84,7 @@ class r2dtank_state : public driver_device int ttl74123_output_r(); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_shared_ptr m_videoram; @@ -118,8 +118,8 @@ class r2dtank_state : public driver_device MC6845_UPDATE_ROW(crtc_update_row); - void r2dtank_audio_map(address_map &map); - void r2dtank_main_map(address_map &map); + void r2dtank_audio_map(address_map &map) ATTR_COLD; + void r2dtank_main_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/sigma/sigma21.cpp b/src/mame/sigma/sigma21.cpp index 96c436a916d..666b802094e 100644 --- a/src/mame/sigma/sigma21.cpp +++ b/src/mame/sigma/sigma21.cpp @@ -33,7 +33,7 @@ class sigma21_state : public driver_device MC6845_UPDATE_ROW(update_row); void sigma21_palette(palette_device &palette); - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; }; diff --git a/src/mame/sigma/sigmab31.cpp b/src/mame/sigma/sigmab31.cpp index 06e83f22ff1..e250eed8716 100644 --- a/src/mame/sigma/sigmab31.cpp +++ b/src/mame/sigma/sigmab31.cpp @@ -112,11 +112,11 @@ class sigmab31_state : public driver_device void sigmab31(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: - void prg_map(address_map &map); + void prg_map(address_map &map) ATTR_COLD; required_device m_maincpu; }; diff --git a/src/mame/sigma/sigmab52.cpp b/src/mame/sigma/sigmab52.cpp index 8bb7d9df959..1e09fc40dd9 100644 --- a/src/mame/sigma/sigmab52.cpp +++ b/src/mame/sigma/sigmab52.cpp @@ -197,12 +197,12 @@ class sigmab52_state : public driver_device void ptm2_irq(int state); void audiocpu_irq_update(); - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; - void jwildb52_hd63484_map(address_map &map); - void jwildb52_map(address_map &map); - void sound_prog_map(address_map &map); + void jwildb52_hd63484_map(address_map &map) ATTR_COLD; + void jwildb52_map(address_map &map) ATTR_COLD; + void sound_prog_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_audiocpu; diff --git a/src/mame/sigma/sigmab88.cpp b/src/mame/sigma/sigmab88.cpp index ccc5d8ec192..a06e75a0899 100644 --- a/src/mame/sigma/sigmab88.cpp +++ b/src/mame/sigma/sigmab88.cpp @@ -30,8 +30,8 @@ class sigmab88_state : public driver_device void sigmab88(machine_config &config); private: - void h16_map(address_map &map); - void hd63484_map(address_map &map); + void h16_map(address_map &map) ATTR_COLD; + void hd63484_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_palette; diff --git a/src/mame/sigma/sigmab98.cpp b/src/mame/sigma/sigmab98.cpp index c81ef9c5d78..7bc6f05ed17 100644 --- a/src/mame/sigma/sigmab98.cpp +++ b/src/mame/sigma/sigmab98.cpp @@ -152,7 +152,7 @@ class sigmab98_base_state : public driver_device { } protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; // TODO: unify these handlers void vregs_w(offs_t offset, uint8_t data); @@ -220,9 +220,9 @@ class sigmab98_state : public sigmab98_base_state INTERRUPT_GEN_MEMBER(sigmab98_vblank_interrupt); - void dodghero_mem_map(address_map &map); - void gegege_io_map(address_map &map); - void gegege_mem_map(address_map &map); + void dodghero_mem_map(address_map &map) ATTR_COLD; + void gegege_io_map(address_map &map) ATTR_COLD; + void gegege_mem_map(address_map &map) ATTR_COLD; virtual void machine_start() override { m_leds.resolve(); } @@ -275,8 +275,8 @@ class lufykzku_state : public sigmab98_state TIMER_DEVICE_CALLBACK_MEMBER(lufykzku_irq); TIMER_DEVICE_CALLBACK_MEMBER(rockman_timer_irq); - void lufykzku_io_map(address_map &map); - void lufykzku_mem_map(address_map &map); + void lufykzku_io_map(address_map &map) ATTR_COLD; + void lufykzku_mem_map(address_map &map) ATTR_COLD; uint8_t m_vblank_vector = 0; uint8_t m_timer0_vector = 0; @@ -330,13 +330,13 @@ class sammymdl_state : public sigmab98_base_state uint8_t eeprom_r(); void eeprom_w(uint8_t data); - void animalc_io(address_map &map); - void animalc_map(address_map &map); - void gocowboy_io(address_map &map); - void gocowboy_map(address_map &map); - void haekaka_map(address_map &map); - void itazuram_map(address_map &map); - void tdoboon_map(address_map &map); + void animalc_io(address_map &map) ATTR_COLD; + void animalc_map(address_map &map) ATTR_COLD; + void gocowboy_io(address_map &map) ATTR_COLD; + void gocowboy_map(address_map &map) ATTR_COLD; + void haekaka_map(address_map &map) ATTR_COLD; + void itazuram_map(address_map &map) ATTR_COLD; + void tdoboon_map(address_map &map) ATTR_COLD; // Required devices required_device m_maincpu; diff --git a/src/mame/sigma/spiders.h b/src/mame/sigma/spiders.h index 8722220a93b..1be20fcb874 100644 --- a/src/mame/sigma/spiders.h +++ b/src/mame/sigma/spiders.h @@ -34,7 +34,7 @@ class spiders_state : public driver_device void flipscreen_w(int state); void gfx_rom_intf_w(uint8_t data); uint8_t gfx_rom_r(); - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; INTERRUPT_GEN_MEMBER(update_pia_1); void ic60_74123_output_changed(int state); void spiders_audio_command_w(uint8_t data); @@ -45,8 +45,8 @@ class spiders_state : public driver_device MC6845_UPDATE_ROW(crtc_update_row); void spiders_audio(machine_config &config); - void spiders_audio_map(address_map &map); - void spiders_main_map(address_map &map); + void spiders_audio_map(address_map &map) ATTR_COLD; + void spiders_main_map(address_map &map) ATTR_COLD; required_shared_ptr m_ram; required_device m_discrete; diff --git a/src/mame/sinclair/atm.h b/src/mame/sinclair/atm.h index fbdbbe20081..e6cbfeaaa2b 100644 --- a/src/mame/sinclair/atm.h +++ b/src/mame/sinclair/atm.h @@ -37,13 +37,13 @@ class atm_state : public spectrum_128_state static constexpr u16 PEN_RAMNROM_MASK = 1 << 14; // 1-RAM, 0-ROM static constexpr u16 PEN_DOS7FFD_MASK = 1 << 15; - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; - void atm_io(address_map &map); - void atm_mem(address_map &map); - void atm_switch(address_map &map); + void atm_io(address_map &map) ATTR_COLD; + void atm_mem(address_map &map) ATTR_COLD; + void atm_switch(address_map &map) ATTR_COLD; template void atm_ram_w(offs_t offset, u8 data); u8 beta_neutral_r(offs_t offset); diff --git a/src/mame/sinclair/beta_m.h b/src/mame/sinclair/beta_m.h index 2e37b22c733..042e62b3743 100644 --- a/src/mame/sinclair/beta_m.h +++ b/src/mame/sinclair/beta_m.h @@ -44,10 +44,10 @@ class beta_disk_device : public device_t protected: // device-level overrides - 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; private: uint8_t m_betadisk_active; diff --git a/src/mame/sinclair/chloe.cpp b/src/mame/sinclair/chloe.cpp index e0197ce3acf..5fd9dc932df 100644 --- a/src/mame/sinclair/chloe.cpp +++ b/src/mame/sinclair/chloe.cpp @@ -66,12 +66,12 @@ class chloe_state : public spectrum_128_state virtual void machine_start() override ATTR_COLD; virtual void machine_reset() override ATTR_COLD; - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; - void map_regs(address_map &map); - void map_fetch(address_map &map); - void map_mem(address_map &map); - void map_io(address_map &map); + void map_regs(address_map &map) ATTR_COLD; + void map_fetch(address_map &map) ATTR_COLD; + void map_mem(address_map &map) ATTR_COLD; + void map_io(address_map &map) ATTR_COLD; u8 kbd_fe_r(offs_t offset); u8 divmmc_neutral_r(offs_t offset); diff --git a/src/mame/sinclair/elwro800.cpp b/src/mame/sinclair/elwro800.cpp index 56fe6399c0f..5dfbe80a346 100644 --- a/src/mame/sinclair/elwro800.cpp +++ b/src/mame/sinclair/elwro800.cpp @@ -57,7 +57,7 @@ class elwro800_state : public spectrum_state void elwro800(machine_config &config); protected: - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; private: /* NR signal */ @@ -71,9 +71,9 @@ class elwro800_state : public spectrum_state void i8255_port_c_w(uint8_t data); void write_centronics_ack(int state); - void elwro800_io(address_map &map); - void elwro800_m1(address_map &map); - void elwro800_mem(address_map &map); + void elwro800_io(address_map &map) ATTR_COLD; + void elwro800_m1(address_map &map) ATTR_COLD; + void elwro800_mem(address_map &map) ATTR_COLD; required_device m_i8251; required_device m_i8255; diff --git a/src/mame/sinclair/glukrs.h b/src/mame/sinclair/glukrs.h index 44b2e300e65..9dadd02b044 100644 --- a/src/mame/sinclair/glukrs.h +++ b/src/mame/sinclair/glukrs.h @@ -26,9 +26,9 @@ class glukrs_device : public device_t, TIMER_CALLBACK_MEMBER(timer_callback); protected: - void device_add_mconfig(machine_config &config) override; - void device_start() override; - void device_reset() override; + void device_add_mconfig(machine_config &config) override ATTR_COLD; + void device_start() override ATTR_COLD; + void device_reset() override ATTR_COLD; void rtc_clock_updated(int year, int month, int day, int day_of_week, int hour, int minute, int second) override; private: diff --git a/src/mame/sinclair/pentagon.cpp b/src/mame/sinclair/pentagon.cpp index e8ed652d65a..fcf51472d8f 100644 --- a/src/mame/sinclair/pentagon.cpp +++ b/src/mame/sinclair/pentagon.cpp @@ -27,9 +27,9 @@ class pentagon_state : public spectrum_128_state void pentagon(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; virtual void pentagon_update_memory(); required_device m_beta; @@ -43,9 +43,9 @@ class pentagon_state : public spectrum_128_state INTERRUPT_GEN_MEMBER(pentagon_interrupt); void port_7ffd_w(offs_t offset, u8 data); - void pentagon_io(address_map &map); - void pentagon_mem(address_map &map); - void pentagon_switch(address_map &map); + void pentagon_io(address_map &map) ATTR_COLD; + void pentagon_mem(address_map &map) ATTR_COLD; + void pentagon_switch(address_map &map) ATTR_COLD; memory_access<16, 0, 0, ENDIANNESS_LITTLE>::specific m_program; }; @@ -60,8 +60,8 @@ class pent1024_state : public pentagon_state void pent1024(machine_config &config); protected: - void machine_start() override; - void machine_reset() override; + void machine_start() override ATTR_COLD; + void machine_reset() override ATTR_COLD; void pentagon_update_memory() override; }; diff --git a/src/mame/sinclair/pentevo.cpp b/src/mame/sinclair/pentevo.cpp index 2eeab409e38..4f2f52109c6 100644 --- a/src/mame/sinclair/pentevo.cpp +++ b/src/mame/sinclair/pentevo.cpp @@ -72,13 +72,13 @@ class pentevo_state : public atm_state void pentevo(machine_config &config); protected: - void machine_start() override; - void machine_reset() override; - void video_start() override; + void machine_start() override ATTR_COLD; + void machine_reset() override ATTR_COLD; + void video_start() override ATTR_COLD; private: void init_mem_write(); - void pentevo_io(address_map &map); + void pentevo_io(address_map &map) ATTR_COLD; void atm_port_ff_w(offs_t offset, u8 data) override; void pentevo_port_7f7_w(offs_t offset, u8 data); diff --git a/src/mame/sinclair/qimi.h b/src/mame/sinclair/qimi.h index 777eea916f2..1d83da438fc 100644 --- a/src/mame/sinclair/qimi.h +++ b/src/mame/sinclair/qimi.h @@ -27,7 +27,7 @@ class qimi_device : public device_t auto extint_wr_callback() { return m_write_extint.bind(); } // optional information overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; uint8_t read(offs_t offset, uint8_t data); void write(offs_t offset, uint8_t data); @@ -37,8 +37,8 @@ class qimi_device : public device_t 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; private: enum diff --git a/src/mame/sinclair/ql.cpp b/src/mame/sinclair/ql.cpp index 17a458eb7d8..005df1c2267 100644 --- a/src/mame/sinclair/ql.cpp +++ b/src/mame/sinclair/ql.cpp @@ -164,8 +164,8 @@ class ql_state : public driver_device required_ioport_array<2> m_joy; required_ioport m_config; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; uint8_t read(offs_t offset); void write(offs_t offset, uint8_t data); @@ -202,8 +202,8 @@ class ql_state : public driver_device bool m_qimi_enabled; int m_qimi_extint; - void ipc_io(address_map &map); - void ql_mem(address_map &map); + void ipc_io(address_map &map) ATTR_COLD; + void ql_mem(address_map &map) ATTR_COLD; }; diff --git a/src/mame/sinclair/scorpion.cpp b/src/mame/sinclair/scorpion.cpp index 5bde5f46215..e243c1be253 100644 --- a/src/mame/sinclair/scorpion.cpp +++ b/src/mame/sinclair/scorpion.cpp @@ -46,18 +46,18 @@ class scorpion_state : public spectrum_128_state static constexpr u8 ROM_PAGE_SYS = 2; static constexpr u8 ROM_PAGE_DOS = 3; - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; bool dos() const { return m_beta->is_active(); } bool romram() const { return BIT(m_port_1ffd_data, 0); } bool rom1() const { return BIT(m_port_7ffd_data, 4); } - void scorpion_io(address_map &map); - void scorpion_mem(address_map &map); - void scorpion_switch(address_map &map); - virtual void scorpion_ioext(address_map &map); + void scorpion_io(address_map &map) ATTR_COLD; + void scorpion_mem(address_map &map) ATTR_COLD; + void scorpion_switch(address_map &map) ATTR_COLD; + virtual void scorpion_ioext(address_map &map) ATTR_COLD; u8 port_ff_r(); void port_7ffd_w(u8 data); void port_1ffd_w(u8 data); @@ -102,11 +102,11 @@ class scorpiontb_state : public scorpion_state INPUT_CHANGED_MEMBER(turbo_changed); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; - virtual void scorpion_ioext(address_map &map) override; + virtual void scorpion_ioext(address_map &map) override ATTR_COLD; virtual void ay_address_w(u8 data) override; virtual void scorpion_update_memory() override; @@ -132,11 +132,11 @@ class scorpiongmx_state : public scorpiontb_state void scorpiongmx(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; - virtual void scorpion_ioext(address_map &map) override; + virtual void scorpion_ioext(address_map &map) override ATTR_COLD; void global_cfg_w(u8 data); u8 port_78fd_r(); u8 port_7afd_r(); diff --git a/src/mame/sinclair/spec128.h b/src/mame/sinclair/spec128.h index 44451e727e9..819a7502978 100644 --- a/src/mame/sinclair/spec128.h +++ b/src/mame/sinclair/spec128.h @@ -29,9 +29,9 @@ class spectrum_128_state : public spectrum_state memory_bank_array_creator<1> m_bank_rom; memory_bank_array_creator<4> m_bank_ram; - virtual void video_start() override; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void video_start() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; virtual void spectrum_128_update_memory() override; virtual rectangle get_screen_area() override; @@ -52,9 +52,9 @@ class spectrum_128_state : public spectrum_state virtual uint8_t spectrum_port_r(offs_t offset) override; //uint8_t spectrum_128_ula_r(); - void spectrum_128_io(address_map &map); - void spectrum_128_mem(address_map &map); - void spectrum_128_fetch(address_map &map); + void spectrum_128_io(address_map &map) ATTR_COLD; + void spectrum_128_mem(address_map &map) ATTR_COLD; + void spectrum_128_fetch(address_map &map) ATTR_COLD; }; #define X1_128_AMSTRAD 35'469'000 // Main clock (Amstrad 128K model, +2A?) diff --git a/src/mame/sinclair/spec_snqk.cpp b/src/mame/sinclair/spec_snqk.cpp index 784dc7998c5..93db167cb22 100644 --- a/src/mame/sinclair/spec_snqk.cpp +++ b/src/mame/sinclair/spec_snqk.cpp @@ -130,7 +130,8 @@ SNAPSHOT_LOAD_MEMBER(spectrum_state::snapshot_cb) } else if (image.is_filetype("sp")) { - if ((snapshot_data[0] != 'S' && snapshot_data[1] != 'P') && (snapshot_size != SP_NEW_SIZE_16K && snapshot_size != SP_NEW_SIZE_48K)) + if ((snapshot_data[0] != 'S' || snapshot_data[1] != 'P') + || (snapshot_size != SP_NEW_SIZE_16K && snapshot_size != SP_NEW_SIZE_48K)) { if (snapshot_size != SP_OLD_SIZE) return std::make_pair(image_error::INVALIDLENGTH, "Invalid .SP file size"); @@ -160,9 +161,9 @@ SNAPSHOT_LOAD_MEMBER(spectrum_state::snapshot_cb) } else if (image.is_filetype("sem")) { - if (snapshot_data[0] != 0x05 && snapshot_data[1] != 'S' && - snapshot_data[2] != 'P' && snapshot_data[3] != 'E' && - snapshot_data[4] != 'C' && snapshot_data[5] != '1') + if (snapshot_data[0] != 0x05 || snapshot_data[1] != 'S' + || snapshot_data[2] != 'P' || snapshot_data[3] != 'E' + || snapshot_data[4] != 'C' || snapshot_data[5] != '1') { if (snapshot_size != SEM_SIZE) return std::make_pair(image_error::INVALIDLENGTH, "Invalid .SEM file size"); @@ -192,8 +193,8 @@ SNAPSHOT_LOAD_MEMBER(spectrum_state::snapshot_cb) } else if (image.is_filetype("snx")) { - if (snapshot_data[0] != 'X' && snapshot_data[1] != 'S' && - snapshot_data[2] != 'N' && snapshot_data[3] != 'A') + if (snapshot_data[0] != 'X' || snapshot_data[1] != 'S' + || snapshot_data[2] != 'N' || snapshot_data[3] != 'A') return std::make_pair(image_error::INVALIDIMAGE, "Invalid .SNX file header"); setup_snx(&snapshot_data[0], snapshot_size); @@ -285,7 +286,7 @@ void spectrum_state::border_update(int data) #endif } -void spectrum_state::setup_sp(uint8_t *snapdata, uint32_t snapsize) +void spectrum_state::setup_sp(const uint8_t *snapdata, uint32_t snapsize) { int i, SP_OFFSET; uint8_t intr; @@ -484,7 +485,7 @@ void spectrum_state::setup_sp(uint8_t *snapdata, uint32_t snapsize) * in which case it is included twice. * *******************************************************************/ -void spectrum_state::setup_sna(uint8_t *snapdata, uint32_t snapsize) +void spectrum_state::setup_sna(const uint8_t *snapdata, uint32_t snapsize) { int i, j, usedbanks[8]; long bank_offset; @@ -702,7 +703,7 @@ void spectrum_state::setup_sna(uint8_t *snapdata, uint32_t snapsize) * 16640 49152 RAM dump * *******************************************************************/ -void spectrum_state::setup_ach(uint8_t *snapdata, uint32_t snapsize) +void spectrum_state::setup_ach(const uint8_t *snapdata, uint32_t snapsize) { int i; uint8_t intr; @@ -833,7 +834,7 @@ void spectrum_state::setup_ach(uint8_t *snapdata, uint32_t snapsize) * suffer from the same "top of the stack" bug as well as .SNA images. * *******************************************************************/ -void spectrum_state::setup_prg(uint8_t *snapdata, uint32_t snapsize) +void spectrum_state::setup_prg(const uint8_t *snapdata, uint32_t snapsize) { int i; uint8_t intr; @@ -1001,7 +1002,7 @@ void spectrum_state::setup_prg(uint8_t *snapdata, uint32_t snapsize) * suffer from the same "top of the stack" bug as well as .SNA images. * *******************************************************************/ -void spectrum_state::setup_plusd(uint8_t *snapdata, uint32_t snapsize) +void spectrum_state::setup_plusd(const uint8_t *snapdata, uint32_t snapsize) { int i, j; uint8_t intr; @@ -1167,7 +1168,7 @@ void spectrum_state::setup_plusd(uint8_t *snapdata, uint32_t snapsize) * Following these data, there are optional POKE blocks * *******************************************************************/ -void spectrum_state::setup_sem(uint8_t *snapdata, uint32_t snapsize) +void spectrum_state::setup_sem(const uint8_t *snapdata, uint32_t snapsize) { int i; uint8_t intr; @@ -1284,7 +1285,7 @@ void spectrum_state::setup_sem(uint8_t *snapdata, uint32_t snapsize) * 16412 49152 RAM dump * *******************************************************************/ -void spectrum_state::setup_sit(uint8_t *snapdata, uint32_t snapsize) +void spectrum_state::setup_sit(const uint8_t *snapdata, uint32_t snapsize) { int i; uint8_t intr; @@ -1412,7 +1413,7 @@ void spectrum_state::setup_sit(uint8_t *snapdata, uint32_t snapsize) * 49476 10 0x00 (reserved for future use) * *******************************************************************/ -void spectrum_state::setup_zx(uint8_t *snapdata, uint32_t snapsize) +void spectrum_state::setup_zx(const uint8_t *snapdata, uint32_t snapsize) { int i; uint8_t intr; @@ -1542,7 +1543,7 @@ void spectrum_state::setup_zx(uint8_t *snapdata, uint32_t snapsize) * 49181 2 HL' * *******************************************************************/ -void spectrum_state::setup_snp(uint8_t *snapdata, uint32_t snapsize) +void spectrum_state::setup_snp(const uint8_t *snapdata, uint32_t snapsize) { int i; uint8_t intr; @@ -1720,7 +1721,7 @@ void spectrum_state::setup_snp(uint8_t *snapdata, uint32_t snapsize) * length of the block. * *******************************************************************/ -void spectrum_state::snx_decompress_block(address_space &space, uint8_t *source, uint16_t dest, uint16_t size) +void spectrum_state::snx_decompress_block(address_space &space, const uint8_t *source, uint16_t dest, uint16_t size) { uint8_t counthi, countlo, compress, fill; uint16_t block = 0, count, i, j, numbytes; @@ -1766,7 +1767,7 @@ void spectrum_state::snx_decompress_block(address_space &space, uint8_t *source, } } -void spectrum_state::setup_snx(uint8_t *snapdata, uint32_t snapsize) +void spectrum_state::setup_snx(const uint8_t *snapdata, uint32_t snapsize) { uint8_t intr; uint16_t data, addr; @@ -1917,7 +1918,7 @@ void spectrum_state::setup_snx(uint8_t *snapdata, uint32_t snapsize) * The 8 16K banks are stored in the order 5, 2, 0, 1, 3, 4, 6, 7 * *******************************************************************/ -void spectrum_state::setup_frz(uint8_t *snapdata, uint32_t snapsize) +void spectrum_state::setup_frz(const uint8_t *snapdata, uint32_t snapsize) { int i, j; uint8_t intr; @@ -2029,7 +2030,7 @@ void spectrum_state::setup_frz(uint8_t *snapdata, uint32_t snapsize) //logerror("Snapshot loaded.\nExecution resuming at bank:%d %s\n", m_port_7ffd_data & 0x07, m_maincpu->state_string(Z80_PC).c_str()); } -void spectrum_state::z80_decompress_block(address_space &space, uint8_t *source, uint16_t dest, uint16_t size) +void spectrum_state::z80_decompress_block(address_space &space, const uint8_t *source, uint16_t dest, uint16_t size) { uint8_t ch; int i; @@ -2089,7 +2090,7 @@ void spectrum_state::z80_decompress_block(address_space &space, uint8_t *source, while (size > 0); } -static SPECTRUM_Z80_SNAPSHOT_TYPE spectrum_identify_z80 (uint8_t *snapdata, uint32_t snapsize) +static SPECTRUM_Z80_SNAPSHOT_TYPE spectrum_identify_z80 (const uint8_t *snapdata, uint32_t snapsize) { uint8_t lo, hi, data; @@ -2137,7 +2138,7 @@ static SPECTRUM_Z80_SNAPSHOT_TYPE spectrum_identify_z80 (uint8_t *snapdata, uint } // supports 48k & 128k .Z80 files -void spectrum_state::setup_z80(uint8_t *snapdata, uint32_t snapsize) +void spectrum_state::setup_z80(const uint8_t *snapdata, uint32_t snapsize) { int i; uint8_t lo, hi, data; @@ -2289,7 +2290,6 @@ void spectrum_state::setup_z80(uint8_t *snapdata, uint32_t snapsize) } else { - uint8_t *pSource; int header_size; header_size = 30 + 2 + ((snapdata[30] & 0x0ff) | ((snapdata[31] & 0x0ff) << 8)); @@ -2311,29 +2311,28 @@ void spectrum_state::setup_z80(uint8_t *snapdata, uint32_t snapsize) ay8912->address_w(snapdata[38]); } - pSource = snapdata + header_size; - if (z80_type == SPECTRUM_Z80_SNAPSHOT_48K) // Ensure 48K Basic ROM is used page_basicrom(); + const uint8_t *p_source = snapdata + header_size; do { unsigned short length; uint8_t page; - int Dest = 0; + int dest = 0; - length = (pSource[0] & 0x0ff) | ((pSource[1] & 0x0ff) << 8); - page = pSource[2]; + length = (p_source[0] & 0x0ff) | ((p_source[1] & 0x0ff) << 8); + page = p_source[2]; if (z80_type == SPECTRUM_Z80_SNAPSHOT_48K || z80_type == SPECTRUM_Z80_SNAPSHOT_TS2068) { switch (page) { - case 4: Dest = 0x08000; break; - case 5: Dest = 0x0c000; break; - case 8: Dest = 0x04000; break; - default: Dest = 0; break; + case 4: dest = 0x08000; break; + case 5: dest = 0x0c000; break; + case 8: dest = 0x04000; break; + default: dest = 0; break; } } else @@ -2344,14 +2343,14 @@ void spectrum_state::setup_z80(uint8_t *snapdata, uint32_t snapsize) // Page the appropriate bank into 0xc000 - 0xfff m_port_7ffd_data = page - 3; update_paging(); - Dest = 0x0c000; + dest = 0x0c000; } else // Other values correspond to ROM pages - Dest = 0x0; + dest = 0x0; } - if (Dest != 0) + if (dest != 0) { if (length == 0x0ffff) { @@ -2360,21 +2359,21 @@ void spectrum_state::setup_z80(uint8_t *snapdata, uint32_t snapsize) // not compressed for (i = 0; i < 16384; i++) - space.write_byte(i + Dest, pSource[i]); + space.write_byte(i + dest, p_source[i]); } else { logerror("Compressed\n"); // block is compressed - z80_decompress_block(space, &pSource[3], Dest, 16384); + z80_decompress_block(space, &p_source[3], dest, 16384); } } // go to next block - pSource += (3 + length); + p_source += (3 + length); } - while ((pSource - snapdata) < snapsize); + while ((p_source - snapdata) < snapsize); if ((m_port_7ffd_data != -1) && (z80_type != SPECTRUM_Z80_SNAPSHOT_48K)) { @@ -2451,7 +2450,7 @@ QUICKLOAD_LOAD_MEMBER(spectrum_state::quickload_cb) * SAVE "filename" CODE 16384,6144 * *******************************************************************/ -void spectrum_state::setup_scr(uint8_t *quickdata, uint32_t quicksize) +void spectrum_state::setup_scr(const uint8_t *quickdata, uint32_t quicksize) { address_space &space = m_maincpu->space(AS_PROGRAM); @@ -2487,7 +2486,7 @@ void spectrum_state::setup_scr(uint8_t *quickdata, uint32_t quicksize) * However, no image of such type has ever surfaced. * *******************************************************************/ -void spectrum_state::setup_raw(uint8_t *quickdata, uint32_t quicksize) +void spectrum_state::setup_raw(const uint8_t *quickdata, uint32_t quicksize) { address_space &space = m_maincpu->space(AS_PROGRAM); diff --git a/src/mame/sinclair/specnext.cpp b/src/mame/sinclair/specnext.cpp index c837126c7a0..f9891fd4608 100644 --- a/src/mame/sinclair/specnext.cpp +++ b/src/mame/sinclair/specnext.cpp @@ -107,16 +107,16 @@ class specnext_state : public spectrum_128_state virtual void machine_start() override ATTR_COLD; virtual void machine_reset() override ATTR_COLD; void reset_hard(); - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; virtual void spectrum_128_update_memory() override {} u8 do_m1(offs_t offset); void do_mf_nmi(); void leave_nmi(int status); - void map_fetch(address_map &map); - void map_mem(address_map &map); - void map_io(address_map &map); - void map_regs(address_map &map); + void map_fetch(address_map &map) ATTR_COLD; + void map_mem(address_map &map) ATTR_COLD; + void map_io(address_map &map) ATTR_COLD; + void map_regs(address_map &map) ATTR_COLD; u8 reg_r(offs_t reg); void reg_w(offs_t reg, u8 data); void mmu_w(offs_t bank, u8 data); diff --git a/src/mame/sinclair/specpls3.h b/src/mame/sinclair/specpls3.h index adbd88a2ef0..e95d72416ab 100644 --- a/src/mame/sinclair/specpls3.h +++ b/src/mame/sinclair/specpls3.h @@ -30,9 +30,9 @@ class specpls3_state : public spectrum_128_state void spectrum_plus3(machine_config &config); protected: - virtual void video_start() override; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void video_start() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; virtual void plus3_update_memory() override; virtual bool is_contended(offs_t offset) override; @@ -46,8 +46,8 @@ class specpls3_state : public spectrum_128_state void port_1ffd_w(offs_t offset, uint8_t data); void plus3_us_w(uint8_t data); - void plus3_io(address_map &map); - void plus3_mem(address_map &map); + void plus3_io(address_map &map) ATTR_COLD; + void plus3_mem(address_map &map) ATTR_COLD; static void floppy_formats(format_registration &fr); diff --git a/src/mame/sinclair/spectrum.h b/src/mame/sinclair/spectrum.h index 8cee77b453c..952459eece5 100644 --- a/src/mame/sinclair/spectrum.h +++ b/src/mame/sinclair/spectrum.h @@ -85,9 +85,9 @@ class spectrum_state : public driver_device void init_spectrum(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; // until machine/spec_snqk.cpp gets somehow disentangled virtual void plus3_update_memory() { } @@ -148,11 +148,11 @@ class spectrum_state : public driver_device required_device m_maincpu; required_device m_screen; - void spectrum_io(address_map &map); - void spectrum_clone_io(address_map &map); - void spectrum_opcodes(address_map &map); - void spectrum_map(address_map &map); - void spectrum_data(address_map &map); + void spectrum_io(address_map &map) ATTR_COLD; + void spectrum_clone_io(address_map &map) ATTR_COLD; + void spectrum_opcodes(address_map &map) ATTR_COLD; + void spectrum_map(address_map &map) ATTR_COLD; + void spectrum_data(address_map &map) ATTR_COLD; required_device m_cassette; required_device m_ram; @@ -193,25 +193,25 @@ class spectrum_state : public driver_device void update_paging(); void page_basicrom(); void border_update(int data); - void setup_sp(uint8_t *snapdata, uint32_t snapsize); - void setup_sna(uint8_t *snapdata, uint32_t snapsize); - void setup_ach(uint8_t *snapdata, uint32_t snapsize); - void setup_prg(uint8_t *snapdata, uint32_t snapsize); - void setup_plusd(uint8_t *snapdata, uint32_t snapsize); - void setup_sem(uint8_t *snapdata, uint32_t snapsize); - void setup_sit(uint8_t *snapdata, uint32_t snapsize); - void setup_zx(uint8_t *snapdata, uint32_t snapsize); - void setup_snp(uint8_t *snapdata, uint32_t snapsize); - void snx_decompress_block(address_space &space, uint8_t *source, uint16_t dest, uint16_t size); - void setup_snx(uint8_t *snapdata, uint32_t snapsize); - void setup_frz(uint8_t *snapdata, uint32_t snapsize); - void z80_decompress_block(address_space &space, uint8_t *source, uint16_t dest, uint16_t size); - void setup_z80(uint8_t *snapdata, uint32_t snapsize); + void setup_sp(const uint8_t *snapdata, uint32_t snapsize); + void setup_sna(const uint8_t *snapdata, uint32_t snapsize); + void setup_ach(const uint8_t *snapdata, uint32_t snapsize); + void setup_prg(const uint8_t *snapdata, uint32_t snapsize); + void setup_plusd(const uint8_t *snapdata, uint32_t snapsize); + void setup_sem(const uint8_t *snapdata, uint32_t snapsize); + void setup_sit(const uint8_t *snapdata, uint32_t snapsize); + void setup_zx(const uint8_t *snapdata, uint32_t snapsize); + void setup_snp(const uint8_t *snapdata, uint32_t snapsize); + void snx_decompress_block(address_space &space, const uint8_t *source, uint16_t dest, uint16_t size); + void setup_snx(const uint8_t *snapdata, uint32_t snapsize); + void setup_frz(const uint8_t *snapdata, uint32_t snapsize); + void z80_decompress_block(address_space &space, const uint8_t *source, uint16_t dest, uint16_t size); + void setup_z80(const uint8_t *snapdata, uint32_t snapsize); // quickload helpers void log_quickload(const char *type, uint32_t start, uint32_t length, uint32_t exec, const char *exec_format); - void setup_scr(uint8_t *quickdata, uint32_t quicksize); - void setup_raw(uint8_t *quickdata, uint32_t quicksize); + void setup_scr(const uint8_t *quickdata, uint32_t quicksize); + void setup_raw(const uint8_t *quickdata, uint32_t quicksize); }; /*----------- defined in drivers/spectrum.cpp -----------*/ diff --git a/src/mame/sinclair/sprinter.cpp b/src/mame/sinclair/sprinter.cpp index b1a48938130..65d5bb20209 100644 --- a/src/mame/sinclair/sprinter.cpp +++ b/src/mame/sinclair/sprinter.cpp @@ -113,9 +113,9 @@ class sprinter_state : public spectrum_128_state virtual void video_start() override ATTR_COLD; virtual void device_post_load() override ATTR_COLD; - void map_io(address_map &map); - void map_mem(address_map &map); - void map_fetch(address_map &map); + void map_io(address_map &map) ATTR_COLD; + void map_mem(address_map &map) ATTR_COLD; + void map_fetch(address_map &map) ATTR_COLD; u8 m1_r(offs_t offset); void init_taps(); diff --git a/src/mame/sinclair/timex.h b/src/mame/sinclair/timex.h index f01b3ece50a..33f29531f49 100644 --- a/src/mame/sinclair/timex.h +++ b/src/mame/sinclair/timex.h @@ -39,7 +39,7 @@ class tc2048_state : public spectrum_128_state void tc2048(machine_config &config); protected: - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; u8 port_ff_r(); @@ -52,8 +52,8 @@ class tc2048_state : public spectrum_128_state private: void port_ff_w(offs_t offset, u8 data); - void tc2048_io(address_map &map); - void tc2048_mem(address_map &map); + void tc2048_io(address_map &map) ATTR_COLD; + void tc2048_mem(address_map &map) ATTR_COLD; inline void spectrum_plot_pixel(bitmap_ind16 &bitmap, int x, int y, uint32_t color); }; @@ -71,8 +71,8 @@ class ts2068_state : public tc2048_state void uk2086(machine_config &config); protected: - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; virtual void ts2068_update_memory() override; @@ -93,8 +93,8 @@ class ts2068_state : public tc2048_state int m_dock_cart_type = 0, m_ram_chunks = 0; memory_region *m_dock_crt = nullptr; - void ts2068_io(address_map &map); - void ts2068_mem(address_map &map); + void ts2068_io(address_map &map) ATTR_COLD; + void ts2068_mem(address_map &map) ATTR_COLD; required_device m_dock; }; diff --git a/src/mame/sinclair/tsconf.h b/src/mame/sinclair/tsconf.h index 70495c250db..ac8b2f984aa 100644 --- a/src/mame/sinclair/tsconf.h +++ b/src/mame/sinclair/tsconf.h @@ -192,9 +192,9 @@ class tsconf_state : public spectrum_128_state u8 beta_enable_r(offs_t offset); u8 beta_disable_r(offs_t offset); - void tsconf_io(address_map &map); - void tsconf_mem(address_map &map); - void tsconf_switch(address_map &map); + void tsconf_io(address_map &map) ATTR_COLD; + void tsconf_mem(address_map &map) ATTR_COLD; + void tsconf_switch(address_map &map) ATTR_COLD; u8 mem_bank_read(u8 bank, offs_t offset); template diff --git a/src/mame/sinclair/zx.h b/src/mame/sinclair/zx.h index 932cb485d89..9104b04a43b 100644 --- a/src/mame/sinclair/zx.h +++ b/src/mame/sinclair/zx.h @@ -52,8 +52,8 @@ class zx_state : public driver_device void init_zx(); protected: - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); @@ -71,13 +71,13 @@ class zx_state : public driver_device TIMER_CALLBACK_MEMBER(zx_tape_input); TIMER_CALLBACK_MEMBER(zx_ula_hsync); - void pc8300_io_map(address_map &map); - void pow3000_io_map(address_map &map); - void ula_map(address_map &map); - void zx80_io_map(address_map &map); - void zx80_map(address_map &map); - void zx81_io_map(address_map &map); - void zx81_map(address_map &map); + void pc8300_io_map(address_map &map) ATTR_COLD; + void pow3000_io_map(address_map &map) ATTR_COLD; + void ula_map(address_map &map) ATTR_COLD; + void zx80_io_map(address_map &map) ATTR_COLD; + void zx80_map(address_map &map) ATTR_COLD; + void zx81_io_map(address_map &map) ATTR_COLD; + void zx81_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_ram; diff --git a/src/mame/sinclair/zx8301.h b/src/mame/sinclair/zx8301.h index 4c61e8c2668..0d13976c6a4 100644 --- a/src/mame/sinclair/zx8301.h +++ b/src/mame/sinclair/zx8301.h @@ -63,10 +63,10 @@ class zx8301_device : public device_t, uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void zx8301(address_map &map); + void zx8301(address_map &map) ATTR_COLD; protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_config_memory_interface overrides virtual space_config_vector memory_space_config() const override; diff --git a/src/mame/sinclair/zx8302.h b/src/mame/sinclair/zx8302.h index 91eb7118c2f..f4bd9bca3b6 100644 --- a/src/mame/sinclair/zx8302.h +++ b/src/mame/sinclair/zx8302.h @@ -88,7 +88,7 @@ class zx8302_device : public device_t, protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_serial_interface overrides virtual void tra_callback() override; diff --git a/src/mame/skeleton/600cat.cpp b/src/mame/skeleton/600cat.cpp index b27c424415f..7972a59f69e 100644 --- a/src/mame/skeleton/600cat.cpp +++ b/src/mame/skeleton/600cat.cpp @@ -35,7 +35,7 @@ class _600cat_state : public driver_device void _600cat(machine_config &config); private: - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; HD44780_PIXEL_UPDATE(lcd_pixel_update); diff --git a/src/mame/skeleton/aaa.cpp b/src/mame/skeleton/aaa.cpp index 4bdefd2c910..9d65c78125a 100644 --- a/src/mame/skeleton/aaa.cpp +++ b/src/mame/skeleton/aaa.cpp @@ -44,8 +44,8 @@ class aaa_state : public driver_device template void usart_w(offs_t offset, u8 data); u8 keyboard_r(offs_t offset); - void mem_map(address_map &map); - void io_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device_array m_usart; diff --git a/src/mame/skeleton/aceex.cpp b/src/mame/skeleton/aceex.cpp index 6328c4dbb51..29c8937ae09 100644 --- a/src/mame/skeleton/aceex.cpp +++ b/src/mame/skeleton/aceex.cpp @@ -63,10 +63,10 @@ class aceex2814_state : public driver_device void aceex2814(machine_config &config); private: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; required_device m_maincpu; - void aceex2814_map(address_map &map); + void aceex2814_map(address_map &map) ATTR_COLD; }; void aceex2814_state::aceex2814_map(address_map &map) diff --git a/src/mame/skeleton/adacp150.cpp b/src/mame/skeleton/adacp150.cpp index 2e5e058bace..fa04cccfe94 100644 --- a/src/mame/skeleton/adacp150.cpp +++ b/src/mame/skeleton/adacp150.cpp @@ -42,7 +42,7 @@ class adacp150_state : public driver_device void adacp150(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: HD44780_PIXEL_UPDATE(pixel_update); @@ -52,10 +52,10 @@ class adacp150_state : public driver_device void bcp_ram_w(offs_t offset, u8 data); void output_control_w(u8 data); - void z80_mem_map(address_map &map); - void z80_io_map(address_map &map); - void bcp_prog_map(address_map &map); - void bcp_data_map(address_map &map); + void z80_mem_map(address_map &map) ATTR_COLD; + void z80_io_map(address_map &map) ATTR_COLD; + void bcp_prog_map(address_map &map) ATTR_COLD; + void bcp_data_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_bcp; diff --git a/src/mame/skeleton/aid80f.cpp b/src/mame/skeleton/aid80f.cpp index 9ce4b42f9e7..f6abbed5f4a 100644 --- a/src/mame/skeleton/aid80f.cpp +++ b/src/mame/skeleton/aid80f.cpp @@ -43,16 +43,16 @@ class aid80f_state : public driver_device void aid80f(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: u8 ram_r(offs_t offset); void ram_w(offs_t offset, u8 data); u8 monitor_r(offs_t offset); - void mem_map(address_map &map); - void io_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_ram; diff --git a/src/mame/skeleton/airbase99.cpp b/src/mame/skeleton/airbase99.cpp index 623feda9fc2..b116c437be2 100644 --- a/src/mame/skeleton/airbase99.cpp +++ b/src/mame/skeleton/airbase99.cpp @@ -29,7 +29,7 @@ class airbase99_state : public driver_device private: HD44780_PIXEL_UPDATE(pixel_update); - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_slavecpu; diff --git a/src/mame/skeleton/alcat7100.cpp b/src/mame/skeleton/alcat7100.cpp index ac33bf2df09..0347c20e19d 100644 --- a/src/mame/skeleton/alcat7100.cpp +++ b/src/mame/skeleton/alcat7100.cpp @@ -31,8 +31,8 @@ class alcat7100_state : public driver_device private: MC6845_UPDATE_ROW(update_row); - void mem_map(address_map &map); - void io_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; required_device m_maincpu; }; diff --git a/src/mame/skeleton/alesis_qs.cpp b/src/mame/skeleton/alesis_qs.cpp index e30511777f3..4a451ee0957 100644 --- a/src/mame/skeleton/alesis_qs.cpp +++ b/src/mame/skeleton/alesis_qs.cpp @@ -30,7 +30,7 @@ class qs_state : public driver_device void qs7(machine_config &config); private: - void qs7_prog_map(address_map &map); + void qs7_prog_map(address_map &map) ATTR_COLD; required_device m_maincpu; }; diff --git a/src/mame/skeleton/alfaskop_s41_kb.h b/src/mame/skeleton/alfaskop_s41_kb.h index 1761022e516..eefa8acaf2f 100644 --- a/src/mame/skeleton/alfaskop_s41_kb.h +++ b/src/mame/skeleton/alfaskop_s41_kb.h @@ -24,10 +24,10 @@ class alfaskop_s41_keyboard_device : public device_t void rst_line_w(int state); protected: - virtual void device_start() override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; - virtual tiny_rom_entry const *device_rom_region() const override; + virtual void device_start() override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual tiny_rom_entry const *device_rom_region() const override ATTR_COLD; required_device m_mcu; required_device m_mc6846; @@ -42,7 +42,7 @@ class alfaskop_s41_keyboard_device : public device_t uint8_t m_p1; uint8_t m_leds; - void alfaskop_s41_kb_mem(address_map &map); + void alfaskop_s41_kb_mem(address_map &map) ATTR_COLD; }; #endif // MAME_SKELETON_ALFASKOP_S41_KB_H diff --git a/src/mame/skeleton/alphasma.cpp b/src/mame/skeleton/alphasma.cpp index 6c14aec7206..342e0559d79 100644 --- a/src/mame/skeleton/alphasma.cpp +++ b/src/mame/skeleton/alphasma.cpp @@ -52,8 +52,8 @@ class alphasmart_state : public driver_device required_ioport_array<16> m_keyboard; required_ioport m_battery_status; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; void alphasmart_palette(palette_device &palette) const; virtual uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); @@ -66,7 +66,7 @@ class alphasmart_state : public driver_device void port_d_w(uint8_t data); void update_lcdc(bool lcdc0, bool lcdc1); - void alphasmart_mem(address_map &map); + void alphasmart_mem(address_map &map) ATTR_COLD; uint8_t m_matrix[2]; uint8_t m_port_a; @@ -87,13 +87,13 @@ class asma2k_state : public alphasmart_state void asma2k(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: void lcd_ctrl_w(uint8_t data); virtual void port_a_w(uint8_t data) override; - void asma2k_mem(address_map &map); + void asma2k_mem(address_map &map) ATTR_COLD; memory_view m_io_view; required_memory_bank m_dictbank; diff --git a/src/mame/skeleton/alphasma3k.cpp b/src/mame/skeleton/alphasma3k.cpp index 7457cf56044..41832708a59 100644 --- a/src/mame/skeleton/alphasma3k.cpp +++ b/src/mame/skeleton/alphasma3k.cpp @@ -74,11 +74,11 @@ class alphasmart3k_state : public driver_device std::unique_ptr m_tmp_bitmap; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; }; void alphasmart3k_state::machine_start() diff --git a/src/mame/skeleton/am1000.cpp b/src/mame/skeleton/am1000.cpp index 275884f5ebe..b854e9bcc49 100644 --- a/src/mame/skeleton/am1000.cpp +++ b/src/mame/skeleton/am1000.cpp @@ -34,15 +34,15 @@ class am1000_state : public driver_device void am1000(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: u16 rom_ram_r(offs_t offset, u16 mem_mask); void control_w(u8 data); - void main_map(address_map &map); - void sub_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sub_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_subcpu; diff --git a/src/mame/skeleton/antonelli_hd6305.cpp b/src/mame/skeleton/antonelli_hd6305.cpp index 6df688932bb..b2755ccb857 100644 --- a/src/mame/skeleton/antonelli_hd6305.cpp +++ b/src/mame/skeleton/antonelli_hd6305.cpp @@ -24,7 +24,7 @@ class antonelli_hd6305_state : public driver_device void antonelli(machine_config &config); private: - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; }; diff --git a/src/mame/skeleton/argox.cpp b/src/mame/skeleton/argox.cpp index 3364a2a6e49..770d5197d35 100644 --- a/src/mame/skeleton/argox.cpp +++ b/src/mame/skeleton/argox.cpp @@ -60,7 +60,7 @@ class os214_state : public driver_device private: required_device m_maincpu; - void os214_prg_map(address_map &map); + void os214_prg_map(address_map &map) ATTR_COLD; }; void os214_state::os214_prg_map(address_map &map) diff --git a/src/mame/skeleton/attache.cpp b/src/mame/skeleton/attache.cpp index 8834691e4c3..b806135b5e1 100644 --- a/src/mame/skeleton/attache.cpp +++ b/src/mame/skeleton/attache.cpp @@ -172,8 +172,8 @@ class attache_state : public driver_device // overrides virtual void driver_start() override; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; uint8_t rom_r(offs_t offset); void rom_w(offs_t offset, uint8_t data); @@ -193,8 +193,8 @@ class attache_state : public driver_device uint8_t keyboard_data_r(); uint16_t get_key(); - void attache_io(address_map &map); - void attache_map(address_map &map); + void attache_io(address_map &map) ATTR_COLD; + void attache_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_memory_region m_rom; @@ -273,11 +273,11 @@ class attache816_state : public attache_state void ppi_irq(int state); void x86_dsr(int state); - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; - [[maybe_unused]] void attache816_io(address_map &map); - void attache_x86_io(address_map &map); - void attache_x86_map(address_map &map); + [[maybe_unused]] void attache816_io(address_map &map) ATTR_COLD; + void attache_x86_io(address_map &map) ATTR_COLD; + void attache_x86_map(address_map &map) ATTR_COLD; required_device m_extcpu; required_device m_ppi; diff --git a/src/mame/skeleton/ax20.cpp b/src/mame/skeleton/ax20.cpp index cef15a065cb..33583805c32 100644 --- a/src/mame/skeleton/ax20.cpp +++ b/src/mame/skeleton/ax20.cpp @@ -46,15 +46,15 @@ class ax20_state : public driver_device required_device m_palette; required_device m_fdc; - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); uint8_t unk_r(); void tc_w(uint8_t data); void ctl_w(uint8_t data); - void ax20_io(address_map &map); - void ax20_map(address_map &map); + void ax20_io(address_map &map) ATTR_COLD; + void ax20_map(address_map &map) ATTR_COLD; }; uint8_t ax20_state::unk_r() diff --git a/src/mame/skeleton/basf7100.cpp b/src/mame/skeleton/basf7100.cpp index 62859323228..ac01bb71b94 100644 --- a/src/mame/skeleton/basf7100.cpp +++ b/src/mame/skeleton/basf7100.cpp @@ -101,8 +101,8 @@ class basf7100_state : public driver_device void basf7100(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; @@ -126,11 +126,11 @@ class basf7100_state : public driver_device INT_CENTRONICS = 0x40 }; - void mem_map(address_map &map); - void io_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; - void fdc_mem_map(address_map &map); - void fdc_io_map(address_map &map); + void fdc_mem_map(address_map &map) ATTR_COLD; + void fdc_io_map(address_map &map) ATTR_COLD; uint8_t mmio_r(offs_t offset); void mmio_w(offs_t offset, uint8_t data); diff --git a/src/mame/skeleton/basf7100_kbd.h b/src/mame/skeleton/basf7100_kbd.h index 8d053098e14..3c728505b08 100644 --- a/src/mame/skeleton/basf7100_kbd.h +++ b/src/mame/skeleton/basf7100_kbd.h @@ -33,10 +33,10 @@ class basf7100_kbd_device : public device_t, protected device_matrix_keyboard_i protected: // device-level overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; - virtual void device_reset() override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; // device_matrix_keyboard_interface overrides virtual void key_make(uint8_t row, uint8_t column) override; diff --git a/src/mame/skeleton/bert.cpp b/src/mame/skeleton/bert.cpp index f32ac8fb3fa..6131d4028fe 100644 --- a/src/mame/skeleton/bert.cpp +++ b/src/mame/skeleton/bert.cpp @@ -37,13 +37,13 @@ class bert_state : public driver_device void bert(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: void portb_w(u8 data); void portd_w(u8 data); - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; required_device m_mpu; required_device m_ram; diff --git a/src/mame/skeleton/bitgraph.cpp b/src/mame/skeleton/bitgraph.cpp index e4dcc7a5ecb..3b454186aa5 100644 --- a/src/mame/skeleton/bitgraph.cpp +++ b/src/mame/skeleton/bitgraph.cpp @@ -108,14 +108,15 @@ class bitgraph_state : public driver_device , m_earom(*this, EAROM_TAG) , m_centronics(*this, "centronics") , m_screen(*this, "screen") + , m_videoram(*this, "videoram") { } void bitgrpha(machine_config &config); void bitgrphb(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; uint8_t pia_r(offs_t offset); void pia_w(offs_t offset, uint8_t data); @@ -148,9 +149,9 @@ class bitgraph_state : public driver_device void bg_motherboard(machine_config &config); [[maybe_unused]] void bg_ppu(machine_config &config); - void bitgrapha_mem(address_map &map); - void bitgraphb_mem(address_map &map); - void ppu_io(address_map &map); + void bitgrapha_mem(address_map &map) ATTR_COLD; + void bitgraphb_mem(address_map &map) ATTR_COLD; + void ppu_io(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_ram; @@ -166,8 +167,8 @@ class bitgraph_state : public driver_device required_device m_earom; optional_device m_centronics; required_device m_screen; + required_shared_ptr m_videoram; - uint8_t *m_videoram = nullptr; uint8_t m_misccr = 0; uint8_t m_pia_a = 0; uint8_t m_pia_b = 0; @@ -189,7 +190,7 @@ void bitgraph_state::bitgrapha_mem(address_map &map) map(0x010020, 0x010027).rw(FUNC(bitgraph_state::adlc_r), FUNC(bitgraph_state::adlc_w)).umask16(0xff00); map(0x010028, 0x01002f).rw(FUNC(bitgraph_state::pia_r), FUNC(bitgraph_state::pia_w)).umask16(0xff00); // EAROM, PSG map(0x010030, 0x010031).w(FUNC(bitgraph_state::baud_write)); - map(0x3e0000, 0x3fffff).ram(); + map(0x3e0000, 0x3fffff).ram().share("videoram"); } void bitgraph_state::bitgraphb_mem(address_map &map) @@ -208,7 +209,8 @@ void bitgraph_state::bitgraphb_mem(address_map &map) map(0x010030, 0x010031).w(FUNC(bitgraph_state::baud_write)); // map(0x010030, 0x010037).r(FUNC(bitgraph_state::ppu_read)).umask16(0x00ff); map(0x010038, 0x01003f).w(FUNC(bitgraph_state::ppu_write)).umask16(0x00ff); - map(0x380000, 0x3fffff).ram(); + map(0x380000, 0x3dffff).ram(); + map(0x3e0000, 0x3fffff).ram().share("videoram"); } static INPUT_PORTS_START(bitgraph) @@ -382,16 +384,10 @@ uint32_t bitgraph_state::screen_update(screen_device &screen, bitmap_ind16 &bitm { uint16_t *p = &bitmap.pix(y); - for (int x = 0; x < 1024 / 8; x += 2) + for (int x = 0; x < 1024 / 16; x++) { - uint8_t gfx = m_videoram[(x + 1) | (y << 7)]; - for (int i = 7; i >= 0; i--) - { - *p++ = BIT(gfx, i); - } - - gfx = m_videoram[x | (y << 7)]; - for (int i = 7; i >= 0; i--) + uint16_t gfx = m_videoram[x | (y << 6)]; + for (int i = 15; i >= 0; i--) { *p++ = BIT(gfx, i); } @@ -458,7 +454,6 @@ template void bitgraph_state::ppu_i8243_w(uint8_t data) void bitgraph_state::machine_start() { - m_videoram = (uint8_t *)m_maincpu->space(AS_PROGRAM).get_write_ptr(0x3e0000); } void bitgraph_state::machine_reset() diff --git a/src/mame/skeleton/bolsaint.cpp b/src/mame/skeleton/bolsaint.cpp index cab28e1c68d..0360decbcbf 100644 --- a/src/mame/skeleton/bolsaint.cpp +++ b/src/mame/skeleton/bolsaint.cpp @@ -41,7 +41,7 @@ class bolsaint_state : public driver_device void bolsaint(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_maincpu; diff --git a/src/mame/skeleton/boo.cpp b/src/mame/skeleton/boo.cpp index 432ef0e06a3..3af6fd98731 100644 --- a/src/mame/skeleton/boo.cpp +++ b/src/mame/skeleton/boo.cpp @@ -46,7 +46,7 @@ class boo_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void program_map(address_map &map); + void program_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/skeleton/bpmmicro.cpp b/src/mame/skeleton/bpmmicro.cpp index eb5c7535a0e..dfec92aa235 100644 --- a/src/mame/skeleton/bpmmicro.cpp +++ b/src/mame/skeleton/bpmmicro.cpp @@ -186,10 +186,10 @@ class bpmmicro_state : public driver_device void unknown_84018_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); void unknown_8401a_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); void eeprom_8401c_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; void bpmmicro(machine_config &config); - void i286_io(address_map &map); - void i286_mem(address_map &map); + void i286_io(address_map &map) ATTR_COLD; + void i286_mem(address_map &map) ATTR_COLD; private: required_device m_maincpu; required_device m_eeprom_u38; diff --git a/src/mame/skeleton/br8641.cpp b/src/mame/skeleton/br8641.cpp index 96a1a3c8b1e..c959f678894 100644 --- a/src/mame/skeleton/br8641.cpp +++ b/src/mame/skeleton/br8641.cpp @@ -52,9 +52,9 @@ class brandt8641_state : public driver_device void brandt8641(machine_config &config); private: - virtual void machine_start() override; - void io_map(address_map &map); - void mem_map(address_map &map); + virtual void machine_start() override ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; u8 port08_r(); void port08_w(u8 data); void port09_w(u8 data); diff --git a/src/mame/skeleton/busicom.h b/src/mame/skeleton/busicom.h index 3cde14f7171..fe73ccb3caf 100644 --- a/src/mame/skeleton/busicom.h +++ b/src/mame/skeleton/busicom.h @@ -29,8 +29,8 @@ class busicom_state : public driver_device void busicom(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: uint8_t keyboard_r(); @@ -44,11 +44,11 @@ class busicom_state : public driver_device TIMER_DEVICE_CALLBACK_MEMBER(timer_callback); uint8_t get_bit_selected(uint32_t val,int num); - void busicom_mem(address_map &map); - void busicom_mp(address_map &map); - void busicom_rom(address_map &map); - void busicom_rp(address_map &map); - void busicom_stat(address_map &map); + void busicom_mem(address_map &map) ATTR_COLD; + void busicom_mp(address_map &map) ATTR_COLD; + void busicom_rom(address_map &map) ATTR_COLD; + void busicom_rp(address_map &map) ATTR_COLD; + void busicom_stat(address_map &map) ATTR_COLD; uint8_t m_drum_index = 0U; uint16_t m_keyboard_shifter = 0U; diff --git a/src/mame/skeleton/c2color.cpp b/src/mame/skeleton/c2color.cpp index d5ed8a7aa43..0d7a4b7c905 100644 --- a/src/mame/skeleton/c2color.cpp +++ b/src/mame/skeleton/c2color.cpp @@ -57,8 +57,8 @@ class c2_color_state : public driver_device void c2_color(machine_config &config); private: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); @@ -66,8 +66,8 @@ class c2_color_state : public driver_device u8 cart_r(offs_t offset); - void prog_map(address_map &map); - void ext_map(address_map &map); + void prog_map(address_map &map) ATTR_COLD; + void ext_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_cart; diff --git a/src/mame/skeleton/candela.cpp b/src/mame/skeleton/candela.cpp index 85eb2f4b143..7d1b2d561c2 100644 --- a/src/mame/skeleton/candela.cpp +++ b/src/mame/skeleton/candela.cpp @@ -151,7 +151,7 @@ namespace { , m_banksel(1) { } required_device m_maincpu; - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; uint8_t read(offs_t offset); void write(offs_t offset, uint8_t data); uint8_t syspia_A_r(); @@ -161,7 +161,7 @@ namespace { void usrpia_cb2_w(int state); void write_acia_clock(int state); void can09t(machine_config &config); - void can09t_map(address_map &map); + void can09t_map(address_map &map) ATTR_COLD; protected: required_device m_syspia; required_device m_usrpia; @@ -518,15 +518,15 @@ INPUT_PORTS_END protected: required_device m_maincpu; - virtual void machine_reset() override; - virtual void machine_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; uint8_t pia1_A_r(); void pia1_A_w(uint8_t data); uint8_t pia1_B_r(); void pia1_B_w(uint8_t data); void pia1_cb2_w(int state); uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void can09_map(address_map &map); + void can09_map(address_map &map) ATTR_COLD; required_device m_pia1; required_device m_ram; required_memory_bank m_bank1; diff --git a/src/mame/skeleton/caramball.cpp b/src/mame/skeleton/caramball.cpp index 3faf67436f2..d3cc8288464 100644 --- a/src/mame/skeleton/caramball.cpp +++ b/src/mame/skeleton/caramball.cpp @@ -63,7 +63,7 @@ class caramball_state : public driver_device void i8155_pb_w(u8 data); void i8155_pc_w(u8 data); void f000_w(u8 data); - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; }; diff --git a/src/mame/skeleton/cardinal.cpp b/src/mame/skeleton/cardinal.cpp index c025f64705c..74d65c68c62 100644 --- a/src/mame/skeleton/cardinal.cpp +++ b/src/mame/skeleton/cardinal.cpp @@ -42,7 +42,7 @@ class cardinal_state : public driver_device void cardinal(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: u8 p1_r(); @@ -51,9 +51,9 @@ class cardinal_state : public driver_device u8 vtlc_r(); void vtlc_w(u8 data); - void prog_map(address_map &map); - void ext_map(address_map &map); - void ram_map(address_map &map); + void prog_map(address_map &map) ATTR_COLD; + void ext_map(address_map &map) ATTR_COLD; + void ram_map(address_map &map) ATTR_COLD; required_device m_eeprom; required_device m_vtlc; diff --git a/src/mame/skeleton/cbnt2039.cpp b/src/mame/skeleton/cbnt2039.cpp index b87b7a1ff24..bd325f39c44 100644 --- a/src/mame/skeleton/cbnt2039.cpp +++ b/src/mame/skeleton/cbnt2039.cpp @@ -28,8 +28,8 @@ class cbnt2039_state : public driver_device void cbnt2039(machine_config &config); private: - void bcp_prog_map(address_map &map); - void bcp_data_map(address_map &map); + void bcp_prog_map(address_map &map) ATTR_COLD; + void bcp_data_map(address_map &map) ATTR_COLD; required_device m_bcp; }; diff --git a/src/mame/skeleton/cd100.cpp b/src/mame/skeleton/cd100.cpp index afae396b2bd..4e4d36e92fa 100644 --- a/src/mame/skeleton/cd100.cpp +++ b/src/mame/skeleton/cd100.cpp @@ -37,7 +37,7 @@ class cd100_state : public driver_device void cd100b(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: u8 ccc_in_r(); @@ -49,9 +49,9 @@ class cd100_state : public driver_device void mech_p2_w(u8 data); void mech_latch_w(u8 data); - void ccc_mem_map(address_map &map); - void ccc_io_map(address_map &map); - void mc6803_map(address_map &map); + void ccc_mem_map(address_map &map) ATTR_COLD; + void ccc_io_map(address_map &map) ATTR_COLD; + void mc6803_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_mechcpu; diff --git a/src/mame/skeleton/cd2650.cpp b/src/mame/skeleton/cd2650.cpp index 0f916e8340e..e52bfecc249 100644 --- a/src/mame/skeleton/cd2650.cpp +++ b/src/mame/skeleton/cd2650.cpp @@ -78,9 +78,9 @@ class cd2650_state : public driver_device void cd2650(machine_config &config); private: - void data_map(address_map &map); - void io_map(address_map &map); - void mem_map(address_map &map); + void data_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; u8 keyin_r(); void kbd_put(u8 data); void tape_deck_on_w(int state); @@ -93,8 +93,8 @@ class cd2650_state : public driver_device bool m_cassbit = 0; bool m_cassold = 0; u8 m_cass_data[4]{}; - void machine_reset() override; - void machine_start() override; + void machine_reset() override ATTR_COLD; + void machine_start() override ATTR_COLD; required_device m_maincpu; required_shared_ptr m_p_videoram; required_region_ptr m_p_chargen; diff --git a/src/mame/skeleton/cdc721.cpp b/src/mame/skeleton/cdc721.cpp index 12eadd2f160..bab98c093c9 100644 --- a/src/mame/skeleton/cdc721.cpp +++ b/src/mame/skeleton/cdc721.cpp @@ -45,8 +45,8 @@ class cdc721_state : public driver_device void cdc721(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); @@ -62,8 +62,8 @@ class cdc721_state : public driver_device template void foreign_char_bank_w(int state); - void io_map(address_map &map); - void mem_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; u8 m_flashcnt = 0; u8 m_foreign_char_bank = 0; diff --git a/src/mame/skeleton/cdsys5.cpp b/src/mame/skeleton/cdsys5.cpp index 0f615c0138a..518fd15ec8f 100644 --- a/src/mame/skeleton/cdsys5.cpp +++ b/src/mame/skeleton/cdsys5.cpp @@ -28,13 +28,13 @@ class cdsys5_state : public driver_device void minijook(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: void shift_data_w(u8 data); void shift_latch_w(u8 data); - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; diff --git a/src/mame/skeleton/cit1500.cpp b/src/mame/skeleton/cit1500.cpp index 7d9d410e347..fce79482e60 100644 --- a/src/mame/skeleton/cit1500.cpp +++ b/src/mame/skeleton/cit1500.cpp @@ -56,7 +56,7 @@ class cit1500_state : public driver_device void cit1500(machine_config &config); private: - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; required_device m_cit1500; }; diff --git a/src/mame/skeleton/ckz80.cpp b/src/mame/skeleton/ckz80.cpp index 27cba945bfc..ae199e27570 100644 --- a/src/mame/skeleton/ckz80.cpp +++ b/src/mame/skeleton/ckz80.cpp @@ -68,8 +68,8 @@ class ckz80_state : public driver_device void ckz80(machine_config &config); private: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; u8 port80_r(); u8 port81_r(); void port40_w(u8 data); @@ -77,8 +77,8 @@ class ckz80_state : public driver_device void ctc_z0_w(int state); void ctc_z1_w(int state); void ctc_z2_w(int state); - void io_map(address_map &map); - void mem_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; u8 m_term_data = 0U; memory_passthrough_handler m_rom_shadow_tap; required_device m_maincpu; diff --git a/src/mame/skeleton/cle68k.cpp b/src/mame/skeleton/cle68k.cpp new file mode 100644 index 00000000000..45da32191e7 --- /dev/null +++ b/src/mame/skeleton/cle68k.cpp @@ -0,0 +1,256 @@ +// license:BSD-3-Clause +// copyright-holders: + +/* +CLE-TOUCH REV. 1 PCB + +Video slots by Chain Luck Electronic (CLE). +At least some of the games were distributed in the USA by Lucky Sunshine Enterprises (LSE). + +The main components are: +MC68HC000FN12 CPU +Lattice ispLSI 1032E 70LJ +Lattice ispLSI 1016 60LJ +Lattice iM4A5-32/32 10JC-12JI +2x HM6264LP-70 RAM (near ispLSI 1016) +2x HM6264LP-70 RAM (near CPU ROMs) +2x HM86171-80 RAM (near CPU ROMs) +12 MHz XTAL (for M68K) +AT90S4414 MCU (AVR core) +11.0592 MHz XTAL (for AT90?) +U6295 sound chip +6x 8-DIP banks + + +TODO: everything. Needs GFX decode to proceed further. +*/ + + +#include "emu.h" + +#include "cpu/m68000/m68000.h" +#include "sound/okim6295.h" + +#include "emupal.h" +#include "screen.h" +#include "speaker.h" +#include "tilemap.h" + + +namespace { + +class cle68k_state : public driver_device +{ +public: + cle68k_state(const machine_config &mconfig, device_type type, const char *tag) : + driver_device(mconfig, type, tag), + m_maincpu(*this, "maincpu") + { } + + void cle68k(machine_config &config); + +protected: + virtual void video_start() override ATTR_COLD; + +private: + required_device m_maincpu; + + uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); + + void program_map(address_map &map) ATTR_COLD; +}; + + +uint32_t cle68k_state::screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect) +{ + + return 0; +} + +void cle68k_state::video_start() +{ +} + + +void cle68k_state::program_map(address_map &map) +{ + map(0x000000, 0x03ffff).rom(); + map(0x180000, 0x180fff).ram(); + map(0x181000, 0x181fff).ram(); + map(0x182000, 0x182fff).ram(); + map(0x183000, 0x183fff).ram(); + // map(0x1e0004, 0x1e0005).portr("IN0"); + map(0x1e0009, 0x1e0009).w("oki", FUNC(okim6295_device::write)); + // map(0x1e0032, 0x1e0033).portr("DSW1"); + // map(0x1e0034, 0x1e0035).portr("DSW2"); + // map(0x1e0036, 0x1e0037).portr("DSW3"); + map(0x1f0000, 0x1fffff).ram(); +} + + +static INPUT_PORTS_START( dmndhrt ) + PORT_START("IN0") + PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_UNKNOWN ) + PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_UNKNOWN ) + PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_UNKNOWN ) + PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_UNKNOWN ) + PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_UNKNOWN ) + PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_UNKNOWN ) + PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) + PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) + PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_UNKNOWN ) + PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_UNKNOWN ) + PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_UNKNOWN ) + PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_UNKNOWN ) + PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_UNKNOWN ) + PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_UNKNOWN ) + PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) + PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) + + PORT_START("IN1") + PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_UNKNOWN ) + PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_UNKNOWN ) + PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_UNKNOWN ) + PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_UNKNOWN ) + PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_UNKNOWN ) + PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_UNKNOWN ) + PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) + PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) + PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_UNKNOWN ) + PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_UNKNOWN ) + PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_UNKNOWN ) + PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_UNKNOWN ) + PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_UNKNOWN ) + PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_UNKNOWN ) + PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) + PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) + + PORT_START("IN2") + PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_UNKNOWN ) + PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_UNKNOWN ) + PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_UNKNOWN ) + PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_UNKNOWN ) + PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_UNKNOWN ) + PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_UNKNOWN ) + PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) + PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) + PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_UNKNOWN ) + PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_UNKNOWN ) + PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_UNKNOWN ) + PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_UNKNOWN ) + PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_UNKNOWN ) + PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_UNKNOWN ) + PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) + PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) + + PORT_START("DSW1") + PORT_DIPUNKNOWN_DIPLOC(0x0001, 0x0001, "SW1:1") + PORT_DIPUNKNOWN_DIPLOC(0x0002, 0x0002, "SW1:2") + PORT_DIPUNKNOWN_DIPLOC(0x0004, 0x0004, "SW1:3") + PORT_DIPUNKNOWN_DIPLOC(0x0008, 0x0008, "SW1:4") + PORT_DIPUNKNOWN_DIPLOC(0x0010, 0x0010, "SW1:5") + PORT_DIPUNKNOWN_DIPLOC(0x0020, 0x0020, "SW1:6") + PORT_DIPUNKNOWN_DIPLOC(0x0040, 0x0040, "SW1:7") + PORT_DIPUNKNOWN_DIPLOC(0x0080, 0x0080, "SW1:8") + PORT_DIPUNKNOWN_DIPLOC(0x0100, 0x0100, "SW2:1") + PORT_DIPUNKNOWN_DIPLOC(0x0200, 0x0200, "SW2:2") + PORT_DIPUNKNOWN_DIPLOC(0x0400, 0x0400, "SW2:3") + PORT_DIPUNKNOWN_DIPLOC(0x0800, 0x0800, "SW2:4") + PORT_DIPUNKNOWN_DIPLOC(0x1000, 0x1000, "SW2:5") + PORT_DIPUNKNOWN_DIPLOC(0x2000, 0x2000, "SW2:6") + PORT_DIPUNKNOWN_DIPLOC(0x4000, 0x4000, "SW2:7") + PORT_DIPUNKNOWN_DIPLOC(0x8000, 0x8000, "SW2:8") + + PORT_START("DSW2") + PORT_DIPUNKNOWN_DIPLOC(0x0001, 0x0001, "SW3:1") + PORT_DIPUNKNOWN_DIPLOC(0x0002, 0x0002, "SW3:2") + PORT_DIPUNKNOWN_DIPLOC(0x0004, 0x0004, "SW3:3") + PORT_DIPUNKNOWN_DIPLOC(0x0008, 0x0008, "SW3:4") + PORT_DIPUNKNOWN_DIPLOC(0x0010, 0x0010, "SW3:5") + PORT_DIPUNKNOWN_DIPLOC(0x0020, 0x0020, "SW3:6") + PORT_DIPUNKNOWN_DIPLOC(0x0040, 0x0040, "SW3:7") + PORT_DIPUNKNOWN_DIPLOC(0x0080, 0x0080, "SW3:8") + PORT_DIPUNKNOWN_DIPLOC(0x0100, 0x0100, "SW4:1") + PORT_DIPUNKNOWN_DIPLOC(0x0200, 0x0200, "SW4:2") + PORT_DIPUNKNOWN_DIPLOC(0x0400, 0x0400, "SW4:3") + PORT_DIPUNKNOWN_DIPLOC(0x0800, 0x0800, "SW4:4") + PORT_DIPUNKNOWN_DIPLOC(0x1000, 0x1000, "SW4:5") + PORT_DIPUNKNOWN_DIPLOC(0x2000, 0x2000, "SW4:6") + PORT_DIPUNKNOWN_DIPLOC(0x4000, 0x4000, "SW4:7") + PORT_DIPUNKNOWN_DIPLOC(0x8000, 0x8000, "SW4:8") + + PORT_START("DSW3") + PORT_DIPUNKNOWN_DIPLOC(0x0001, 0x0001, "SW5:1") + PORT_DIPUNKNOWN_DIPLOC(0x0002, 0x0002, "SW5:2") + PORT_DIPUNKNOWN_DIPLOC(0x0004, 0x0004, "SW5:3") + PORT_DIPUNKNOWN_DIPLOC(0x0008, 0x0008, "SW5:4") + PORT_DIPUNKNOWN_DIPLOC(0x0010, 0x0010, "SW5:5") + PORT_DIPUNKNOWN_DIPLOC(0x0020, 0x0020, "SW5:6") + PORT_DIPUNKNOWN_DIPLOC(0x0040, 0x0040, "SW5:7") + PORT_DIPUNKNOWN_DIPLOC(0x0080, 0x0080, "SW5:8") + PORT_DIPUNKNOWN_DIPLOC(0x0100, 0x0100, "SW6:1") + PORT_DIPUNKNOWN_DIPLOC(0x0200, 0x0200, "SW6:2") + PORT_DIPUNKNOWN_DIPLOC(0x0400, 0x0400, "SW6:3") + PORT_DIPUNKNOWN_DIPLOC(0x0800, 0x0800, "SW6:4") + PORT_DIPUNKNOWN_DIPLOC(0x1000, 0x1000, "SW6:5") + PORT_DIPUNKNOWN_DIPLOC(0x2000, 0x2000, "SW6:6") + PORT_DIPUNKNOWN_DIPLOC(0x4000, 0x4000, "SW6:7") + PORT_DIPUNKNOWN_DIPLOC(0x8000, 0x8000, "SW6:8") +INPUT_PORTS_END + + +// TODO +static GFXDECODE_START( gfx_cle68k ) +GFXDECODE_END + + +void cle68k_state::cle68k(machine_config &config) +{ + M68000(config, m_maincpu, 12_MHz_XTAL); + m_maincpu->set_addrmap(AS_PROGRAM, &cle68k_state::program_map); + m_maincpu->set_vblank_int("screen", FUNC(cle68k_state::irq1_line_hold)); + + // AT90S4414 (needs core) + + screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_RASTER)); // TODO + screen.set_refresh_hz(60); + screen.set_vblank_time(ATTOSECONDS_IN_USEC(0)); + screen.set_size(64*8, 64*8); + screen.set_visarea(0, 64*8-1, 0, 32*8-1); + screen.set_screen_update(FUNC(cle68k_state::screen_update)); + + GFXDECODE(config, "gfxdecode", "palette", gfx_cle68k); + + PALETTE(config, "palette").set_entries(0x100); // TODO + + SPEAKER(config, "mono").front_center(); + + OKIM6295(config, "oki", 12_MHz_XTAL / 12, okim6295_device::PIN7_HIGH).add_route(ALL_OUTPUTS, "mono", 1.0); // pin 7 and clock not verified +} + + +ROM_START( dmndhrt ) + ROM_REGION( 0x40000, "maincpu", 0 ) + ROM_LOAD16_BYTE( "diamond_heart_u.s.a_u8.u8", 0x00000, 0x20000, CRC(d1f340ce) SHA1(7567448c8694bb24f7957bb461d3be51d138634a) ) + ROM_LOAD16_BYTE( "diamond_heart_u.s.a_u3.u3", 0x00001, 0x20000, CRC(78885bb8) SHA1(51e360036d32b609b4036be086549c011ab41fe3) ) + + ROM_REGION( 0x100000, "tiles", 0 ) + ROM_LOAD( "diamond_heart_u.s.a_u10.u10", 0x00000, 0x80000, CRC(00b691a7) SHA1(8cc530ad204cf9168d59419a01abf338c46a49e1) ) + ROM_LOAD( "diamond_heart_u.s.a_u11.u11", 0x80000, 0x80000, CRC(2c666c44) SHA1(15c8e97900444046adb9455bfa827735c226a727) ) + + ROM_REGION( 0x40000, "oki", 0 ) + ROM_LOAD( "diamond_heart_u.s.a_u33.u33", 0x00000, 0x40000, CRC(63b0bc97) SHA1(12adb70a8283c6fec10e2221f1216a7fbfc99355) ) + + // PAL locations not readable + ROM_REGION( 0x800, "plds", ROMREGION_ERASE00 ) + ROM_LOAD( "palce20v8h_1", 0x000, 0x157, NO_DUMP ) + ROM_LOAD( "palce20v8h_2", 0x200, 0x157, NO_DUMP ) + ROM_LOAD( "palce20v8h_3", 0x400, 0x157, NO_DUMP ) + ROM_LOAD( "palce20v8h_4", 0x600, 0x157, NO_DUMP ) +ROM_END + +} // anonymous namespace + + +// TODO: possibly licensed to LSE, verify once it works +GAME( 2001, dmndhrt, 0, cle68k, dmndhrt, cle68k_state, empty_init, ROT0, "CLE", "Diamond Heart (v1.0)", MACHINE_IS_SKELETON ) // 2001/02/15 diff --git a/src/mame/skeleton/clxvme186.cpp b/src/mame/skeleton/clxvme186.cpp index b22c99e2453..963f14dda80 100644 --- a/src/mame/skeleton/clxvme186.cpp +++ b/src/mame/skeleton/clxvme186.cpp @@ -28,14 +28,14 @@ class clxvme186_state : public driver_device void clxvme186(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: void unknown_w(u16 data); u8 sasi_status_r(); - void mem_map(address_map &map); - void io_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; required_device m_maincpu; }; diff --git a/src/mame/skeleton/codata.cpp b/src/mame/skeleton/codata.cpp index b6b520f7f3b..a99369cc8e6 100644 --- a/src/mame/skeleton/codata.cpp +++ b/src/mame/skeleton/codata.cpp @@ -32,8 +32,8 @@ class codata_state : public driver_device void codata(machine_config &config); private: - void mem_map(address_map &map); - virtual void machine_reset() override; + void mem_map(address_map &map) ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; required_shared_ptr m_ram; required_device m_maincpu; }; diff --git a/src/mame/skeleton/consola_emt.cpp b/src/mame/skeleton/consola_emt.cpp index 7622cd382ff..dc494be4942 100644 --- a/src/mame/skeleton/consola_emt.cpp +++ b/src/mame/skeleton/consola_emt.cpp @@ -51,15 +51,15 @@ class consoemt_state : public driver_device void consoemt(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_maincpu; required_device m_mcu; required_device m_lcdc; - void mem_map(address_map &map); - void io_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; void consoemt_palette(palette_device &palette) const; HD44780_PIXEL_UPDATE(lcd_pixel_update); diff --git a/src/mame/skeleton/controlid.cpp b/src/mame/skeleton/controlid.cpp index ad3ac6db200..7f9f4ff983b 100644 --- a/src/mame/skeleton/controlid.cpp +++ b/src/mame/skeleton/controlid.cpp @@ -48,7 +48,7 @@ class controlidx628_state : public driver_device void controlidx628(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: void p0_w(uint8_t data); @@ -59,7 +59,7 @@ class controlidx628_state : public driver_device void p3_w(uint8_t data); void controlidx628_palette(palette_device &palette) const; - void io_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; required_device m_lcdc; diff --git a/src/mame/skeleton/cortex.cpp b/src/mame/skeleton/cortex.cpp index 9703f65f314..bc3af05065a 100644 --- a/src/mame/skeleton/cortex.cpp +++ b/src/mame/skeleton/cortex.cpp @@ -68,8 +68,8 @@ class cortex_state : public driver_device void cortex(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: void kbd_put(u8 data); @@ -79,8 +79,8 @@ class cortex_state : public driver_device u8 pio_r(offs_t offset); u8 keyboard_r(offs_t offset); - void io_map(address_map &map); - void mem_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; bool m_kbd_ack = 0; bool m_vdp_int = 0; diff --git a/src/mame/skeleton/cosmicos.cpp b/src/mame/skeleton/cosmicos.cpp index 363ab420f80..52c2f999246 100644 --- a/src/mame/skeleton/cosmicos.cpp +++ b/src/mame/skeleton/cosmicos.cpp @@ -141,8 +141,8 @@ class cosmicos_state : public driver_device DECLARE_QUICKLOAD_LOAD_MEMBER(quickload_cb); TIMER_DEVICE_CALLBACK_MEMBER(digit_tick); TIMER_DEVICE_CALLBACK_MEMBER(int_tick); - void cosmicos_io(address_map &map); - void cosmicos_mem(address_map &map); + void cosmicos_io(address_map &map) ATTR_COLD; + void cosmicos_mem(address_map &map) ATTR_COLD; /* CPU state */ int m_wait = 0; @@ -167,8 +167,8 @@ class cosmicos_state : public driver_device int m_efx = 0; int m_video_on = 0; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; required_device m_maincpu; required_device m_cti; required_device m_led; diff --git a/src/mame/skeleton/cp1.cpp b/src/mame/skeleton/cp1.cpp index b515f3e47a4..bdd858b8454 100644 --- a/src/mame/skeleton/cp1.cpp +++ b/src/mame/skeleton/cp1.cpp @@ -43,11 +43,11 @@ class cp1_state : public driver_device void cp1(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: - void cp1_io(address_map &map); + void cp1_io(address_map &map) ATTR_COLD; uint8_t port1_r(); uint8_t port2_r(); diff --git a/src/mame/skeleton/ct909e_segadvd.cpp b/src/mame/skeleton/ct909e_segadvd.cpp index 56a7ad63aa0..49c7728ab05 100644 --- a/src/mame/skeleton/ct909e_segadvd.cpp +++ b/src/mame/skeleton/ct909e_segadvd.cpp @@ -36,14 +36,14 @@ class ct909e_megatrix_state : public driver_device void megatrix(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: void uart1_data_w(u32 data); u32 uart1_status_r(); - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_screen; diff --git a/src/mame/skeleton/cxhumax.h b/src/mame/skeleton/cxhumax.h index a502321a8da..6def162e685 100644 --- a/src/mame/skeleton/cxhumax.h +++ b/src/mame/skeleton/cxhumax.h @@ -163,12 +163,12 @@ class cxhumax_state : public driver_device uint32_t m_hdmi_regs[0x400/4]{}; uint32_t m_gxa_cmd_regs[0x130/4]{}; - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; uint32_t screen_update_cxhumax(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); TIMER_CALLBACK_MEMBER(timer_tick); - void cxhumax_map(address_map &map); + void cxhumax_map(address_map &map) ATTR_COLD; }; #define INTDEST 0 // Interrupt destination (1=IRQ, 0=FIQ) diff --git a/src/mame/skeleton/d400.cpp b/src/mame/skeleton/d400.cpp index 9e9df5b70a1..d0743993bc2 100644 --- a/src/mame/skeleton/d400.cpp +++ b/src/mame/skeleton/d400.cpp @@ -31,7 +31,7 @@ class d400_state : public driver_device u8 novram_recall_r(); u8 novram_store_r(); - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_novram; diff --git a/src/mame/skeleton/daruma.cpp b/src/mame/skeleton/daruma.cpp index 16d9cebeb8c..0a24a7bb1d0 100644 --- a/src/mame/skeleton/daruma.cpp +++ b/src/mame/skeleton/daruma.cpp @@ -41,8 +41,8 @@ class daruma_state : public driver_device uint8_t dev4_r(); required_device m_maincpu; required_device m_speaker; - void mem_io(address_map &map); - void mem_prg(address_map &map); + void mem_io(address_map &map) ATTR_COLD; + void mem_prg(address_map &map) ATTR_COLD; }; uint8_t daruma_state::dev0_r() diff --git a/src/mame/skeleton/datacast.cpp b/src/mame/skeleton/datacast.cpp index 7cd1b58edf2..4ed73a09884 100644 --- a/src/mame/skeleton/datacast.cpp +++ b/src/mame/skeleton/datacast.cpp @@ -75,7 +75,7 @@ class datacast_state : public driver_device void datacast(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: uint8_t keypad_r(); @@ -83,8 +83,8 @@ class datacast_state : public driver_device uint8_t i2c_r(); void i2c_w(uint8_t data); - void mem_map(address_map &map); - void saa5240_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void saa5240_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_screen; diff --git a/src/mame/skeleton/design.cpp b/src/mame/skeleton/design.cpp index aa067db2269..f6f64db0a29 100644 --- a/src/mame/skeleton/design.cpp +++ b/src/mame/skeleton/design.cpp @@ -54,8 +54,8 @@ class design6_state : public driver_device void design6(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; @@ -63,9 +63,9 @@ class design6_state : public driver_device required_device m_vfd; required_ioport_array<4> m_buttons; - void mem_map(address_map &map); - void io_map(address_map &map); - void iobanked_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; + void iobanked_map(address_map &map) ATTR_COLD; void port1_w(uint8_t data); uint8_t in2_r(); diff --git a/src/mame/skeleton/diablo1300.cpp b/src/mame/skeleton/diablo1300.cpp index 5445ecc768d..9ed290945b5 100644 --- a/src/mame/skeleton/diablo1300.cpp +++ b/src/mame/skeleton/diablo1300.cpp @@ -150,12 +150,12 @@ class diablo1300_state : public driver_device void diablo1300(machine_config &config); private: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; required_device m_maincpu; - void diablo1300_map(address_map &map); - void diablo1300_data_map(address_map &map); + void diablo1300_map(address_map &map) ATTR_COLD; + void diablo1300_data_map(address_map &map) ATTR_COLD; }; void diablo1300_state::diablo1300_map(address_map &map) diff --git a/src/mame/skeleton/didact.cpp b/src/mame/skeleton/didact.cpp index f8b4b24e1b4..70aa0e378a2 100644 --- a/src/mame/skeleton/didact.cpp +++ b/src/mame/skeleton/didact.cpp @@ -179,10 +179,10 @@ class md6802_state : public didact_state void pia2_kbB_w(uint8_t data); void pia2_ca2_w(int state); - virtual void machine_reset() override; - virtual void machine_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; - void md6802_map(address_map &map); + void md6802_map(address_map &map) ATTR_COLD; private: required_device m_maincpu; @@ -357,10 +357,10 @@ class mp68a_state : public didact_state int pia2_cb1_r(); template void digit_w(uint8_t data) { m_7segs[N] = data; } - virtual void machine_reset() override; - virtual void machine_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; void mp68a(machine_config &config); - void mp68a_map(address_map &map); + void mp68a_map(address_map &map) ATTR_COLD; protected: required_device m_pia1; required_device m_pia2; @@ -550,15 +550,15 @@ class modulab_state : public didact_state output_finder<6> m_7segs; - virtual void machine_reset() override; - virtual void machine_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; void modulab(machine_config &config); protected: uint8_t io_r(offs_t offset); void io_w(offs_t offset, u8 data); void da_w(int state); private: - void modulab_map(address_map &map); + void modulab_map(address_map &map) ATTR_COLD; // Offsets for display and keyboard i/o enum { diff --git a/src/mame/skeleton/digel804.cpp b/src/mame/skeleton/digel804.cpp index 614a99b64b5..0d47a4349f8 100644 --- a/src/mame/skeleton/digel804.cpp +++ b/src/mame/skeleton/digel804.cpp @@ -93,8 +93,8 @@ class digel804_state : public driver_device void digel804(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; void op00(uint8_t data); uint8_t ip40(); @@ -120,8 +120,8 @@ class digel804_state : public driver_device void acia_irq_w(int state); void da_w(int state); - void z80_mem_804_1_4(address_map &map); - void z80_io_1_4(address_map &map); + void z80_mem_804_1_4(address_map &map) ATTR_COLD; + void z80_io_1_4(address_map &map) ATTR_COLD; required_device m_ram; required_device m_maincpu; @@ -166,8 +166,8 @@ class ep804_state : public digel804_state protected: void ep804_acia_irq_w(int state); - void z80_mem_804_1_2(address_map &map); - void z80_io_1_2(address_map &map); + void z80_mem_804_1_2(address_map &map) ATTR_COLD; + void z80_io_1_2(address_map &map) ATTR_COLD; }; diff --git a/src/mame/skeleton/digiblast.cpp b/src/mame/skeleton/digiblast.cpp index d9de05fcd33..18e636f3dfe 100644 --- a/src/mame/skeleton/digiblast.cpp +++ b/src/mame/skeleton/digiblast.cpp @@ -35,8 +35,8 @@ class digiblast_state : public driver_device void digiblast(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; @@ -47,7 +47,7 @@ class digiblast_state : public driver_device DECLARE_DEVICE_IMAGE_LOAD_MEMBER(cart_load); - void digiblast_map(address_map &map); + void digiblast_map(address_map &map) ATTR_COLD; }; void digiblast_state::digiblast_map(address_map &map) diff --git a/src/mame/skeleton/digijet.cpp b/src/mame/skeleton/digijet.cpp index a606867ac0e..4edd7268640 100644 --- a/src/mame/skeleton/digijet.cpp +++ b/src/mame/skeleton/digijet.cpp @@ -43,7 +43,7 @@ class digijet_state : public driver_device virtual void machine_start() override { } virtual void machine_reset() override { } - void io_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; }; void digijet_state::io_map(address_map &map) diff --git a/src/mame/skeleton/digilog320.cpp b/src/mame/skeleton/digilog320.cpp index 7d7f26e0d5c..90cb8ed2ee6 100644 --- a/src/mame/skeleton/digilog320.cpp +++ b/src/mame/skeleton/digilog320.cpp @@ -98,8 +98,8 @@ class digilog320_state : public driver_device void digilog320(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; @@ -114,10 +114,10 @@ class digilog320_state : public driver_device required_shared_ptr m_vram; required_region_ptr m_chargen; - void main_mem_map(address_map &map); - void main_io_map(address_map &map); - void sub_mem_map(address_map &map); - void sub_io_map(address_map &map); + void main_mem_map(address_map &map) ATTR_COLD; + void main_io_map(address_map &map) ATTR_COLD; + void sub_mem_map(address_map &map) ATTR_COLD; + void sub_io_map(address_map &map) ATTR_COLD; MC6845_UPDATE_ROW(update_row); diff --git a/src/mame/skeleton/digilog400.cpp b/src/mame/skeleton/digilog400.cpp index de86b3cddcd..c1fe79f304e 100644 --- a/src/mame/skeleton/digilog400.cpp +++ b/src/mame/skeleton/digilog400.cpp @@ -35,17 +35,17 @@ class digilog400_state : public driver_device void digilog400(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; required_device m_subcpu; - void main_mem_map(address_map &map); - void main_io_map(address_map &map); - void sub_mem_map(address_map &map); - void sub_io_map(address_map &map); + void main_mem_map(address_map &map) ATTR_COLD; + void main_io_map(address_map &map) ATTR_COLD; + void sub_mem_map(address_map &map) ATTR_COLD; + void sub_io_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/skeleton/digilog_kbd.h b/src/mame/skeleton/digilog_kbd.h index ba78791786f..88210b69700 100644 --- a/src/mame/skeleton/digilog_kbd.h +++ b/src/mame/skeleton/digilog_kbd.h @@ -31,11 +31,11 @@ class digilog_kbd_device : public device_t protected: // device_t overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; - virtual void device_reset() override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: required_device m_mcu; diff --git a/src/mame/skeleton/digitech_gsp5.cpp b/src/mame/skeleton/digitech_gsp5.cpp index 33918ea8125..e32b8c988f2 100644 --- a/src/mame/skeleton/digitech_gsp5.cpp +++ b/src/mame/skeleton/digitech_gsp5.cpp @@ -27,7 +27,7 @@ class gsp5_state : public driver_device private: void ls_w(offs_t offset, u8 data); - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; }; diff --git a/src/mame/skeleton/dm7000.cpp b/src/mame/skeleton/dm7000.cpp index 8690f88732e..0692a7da716 100644 --- a/src/mame/skeleton/dm7000.cpp +++ b/src/mame/skeleton/dm7000.cpp @@ -94,10 +94,10 @@ class dm7000_state : public driver_device uint16_t m_enet_regs[32]{}; uint32_t dcr[1024]{}; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; uint32_t screen_update_dm7000(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void dm7000_mem(address_map &map); + void dm7000_mem(address_map &map) ATTR_COLD; }; /* */ diff --git a/src/mame/skeleton/dps1.cpp b/src/mame/skeleton/dps1.cpp index 79e7d40b365..a6ae8f875a6 100644 --- a/src/mame/skeleton/dps1.cpp +++ b/src/mame/skeleton/dps1.cpp @@ -43,8 +43,8 @@ class dps1_state : public driver_device void dps1(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: void portb2_w(u8 data); @@ -58,8 +58,8 @@ class dps1_state : public driver_device void portff_w(u8 data); void fdc_drq_w(int state); - void io_map(address_map &map); - void mem_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; bool m_dma_dir = 0; u16 m_dma_adr = 0U; diff --git a/src/mame/skeleton/dsb46.cpp b/src/mame/skeleton/dsb46.cpp index 554dc62b0a0..62e47124506 100644 --- a/src/mame/skeleton/dsb46.cpp +++ b/src/mame/skeleton/dsb46.cpp @@ -50,13 +50,13 @@ class dsb46_state : public driver_device void dsb46(machine_config &config); protected: - virtual void machine_reset() override; - virtual void machine_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; private: void port1a_w(u8 data); - void io_map(address_map &map); - void mem_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_region_ptr m_rom; required_shared_ptr m_ram; diff --git a/src/mame/skeleton/dual68.cpp b/src/mame/skeleton/dual68.cpp index a19d3ed6557..4cac231bce6 100644 --- a/src/mame/skeleton/dual68.cpp +++ b/src/mame/skeleton/dual68.cpp @@ -37,10 +37,10 @@ class dual68_state : public driver_device uint8_t sio_status_r(); uint8_t fdc_status_r(); - void dual68_mem(address_map &map); - void sio4_io(address_map &map); - void sio4_mem(address_map &map); - virtual void machine_reset() override; + void dual68_mem(address_map &map) ATTR_COLD; + void sio4_io(address_map &map) ATTR_COLD; + void sio4_mem(address_map &map) ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; required_device m_maincpu; required_device_array m_usart; required_shared_ptr m_p_ram; diff --git a/src/mame/skeleton/dyna_d0404.cpp b/src/mame/skeleton/dyna_d0404.cpp index 734720e9bd3..c05f6689029 100644 --- a/src/mame/skeleton/dyna_d0404.cpp +++ b/src/mame/skeleton/dyna_d0404.cpp @@ -46,14 +46,14 @@ class dyna_d0404_state : public driver_device void dyna_d0404(machine_config &config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void program_map(address_map &map); + void program_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/skeleton/e100.cpp b/src/mame/skeleton/e100.cpp index 91f68803922..6a6831f131b 100644 --- a/src/mame/skeleton/e100.cpp +++ b/src/mame/skeleton/e100.cpp @@ -169,7 +169,7 @@ class e100_state : public driver_device required_region_ptr m_chargen; uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); virtual void machine_reset() override { m_maincpu->reset(); LOG("--->%s()\n", FUNCNAME); }; - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; uint8_t pia_r(offs_t offset); void pia_w(offs_t offset, uint8_t data); uint8_t pia1_kbA_r(); @@ -179,7 +179,7 @@ class e100_state : public driver_device void pia1_ca2_w(int state); void pia1_cb2_w(int state); TIMER_DEVICE_CALLBACK_MEMBER(rtc_w); - void e100_map(address_map &map); + void e100_map(address_map &map) ATTR_COLD; required_ioport m_io_line0; required_ioport m_io_line1; diff --git a/src/mame/skeleton/easy_karaoke.cpp b/src/mame/skeleton/easy_karaoke.cpp index 6d7cd303587..452faf3f1e1 100644 --- a/src/mame/skeleton/easy_karaoke.cpp +++ b/src/mame/skeleton/easy_karaoke.cpp @@ -105,8 +105,8 @@ class ivl_karaoke_state : public driver_device void ivl_karaoke_base(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; @@ -116,7 +116,7 @@ class ivl_karaoke_state : public driver_device uint32_t a000004_r(); - void arm_map(address_map &map); + void arm_map(address_map &map) ATTR_COLD; }; class easy_karaoke_cartslot_state : public ivl_karaoke_state @@ -131,7 +131,7 @@ class easy_karaoke_cartslot_state : public ivl_karaoke_state void easy_karaoke(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: DECLARE_DEVICE_IMAGE_LOAD_MEMBER(cart_load); diff --git a/src/mame/skeleton/elcirculo.cpp b/src/mame/skeleton/elcirculo.cpp index ccf84934043..9b5dfa709a4 100644 --- a/src/mame/skeleton/elcirculo.cpp +++ b/src/mame/skeleton/elcirculo.cpp @@ -74,7 +74,7 @@ class elcirculo_state : public driver_device INTERRUPT_GEN_MEMBER(irq_gen); - void program_map(address_map &map); + void program_map(address_map &map) ATTR_COLD; }; INTERRUPT_GEN_MEMBER(elcirculo_state::irq_gen) diff --git a/src/mame/skeleton/elzet80.cpp b/src/mame/skeleton/elzet80.cpp index 3501adf4478..990de7c287e 100644 --- a/src/mame/skeleton/elzet80.cpp +++ b/src/mame/skeleton/elzet80.cpp @@ -72,13 +72,13 @@ class elzet80_state : public driver_device void elzet80(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: - void mem_map(address_map &map); - void io_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; floppy_image_device *m_floppy = nullptr; required_device m_maincpu; diff --git a/src/mame/skeleton/epic14e.cpp b/src/mame/skeleton/epic14e.cpp index 5eccbdfcf20..44159f98262 100644 --- a/src/mame/skeleton/epic14e.cpp +++ b/src/mame/skeleton/epic14e.cpp @@ -44,7 +44,7 @@ class epic14e_state : public driver_device void epic14e(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: SCN2672_DRAW_CHARACTER_MEMBER(draw_character); @@ -57,9 +57,9 @@ class epic14e_state : public driver_device u8 vram_r(offs_t offset); void vram_w(offs_t offset, u8 data); - void cpu_map(address_map &map); - void char_map(address_map &map); - void attr_map(address_map &map); + void cpu_map(address_map &map) ATTR_COLD; + void char_map(address_map &map) ATTR_COLD; + void attr_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_via; diff --git a/src/mame/skeleton/esprit.cpp b/src/mame/skeleton/esprit.cpp index a1d05c1283f..8cb557d272b 100644 --- a/src/mame/skeleton/esprit.cpp +++ b/src/mame/skeleton/esprit.cpp @@ -46,8 +46,8 @@ class esprit_state : public driver_device MC6845_UPDATE_ROW(crtc_update_row); MC6845_ON_UPDATE_ADDR_CHANGED(crtc_update_addr); - void mem3_map(address_map &map); - void mem_map(address_map &map); + void mem3_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_region_ptr m_p_chargen; diff --git a/src/mame/skeleton/eurit.cpp b/src/mame/skeleton/eurit.cpp index d1de04a7252..e0fdaf6ce72 100644 --- a/src/mame/skeleton/eurit.cpp +++ b/src/mame/skeleton/eurit.cpp @@ -32,7 +32,7 @@ class eurit_state : public driver_device void eurit30(machine_config &mconfig); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: HD44780_PIXEL_UPDATE(lcd_pixel_update); @@ -40,7 +40,7 @@ class eurit_state : public driver_device void key_scan_w(u8 data); u8 key_matrix_r(); - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; void palette_init(palette_device &palette); diff --git a/src/mame/skeleton/eurocom2.cpp b/src/mame/skeleton/eurocom2.cpp index 928a5454e3d..0d73a1fc2b1 100644 --- a/src/mame/skeleton/eurocom2.cpp +++ b/src/mame/skeleton/eurocom2.cpp @@ -84,8 +84,8 @@ class eurocom2_state : public driver_device protected: // driver_device overrides - virtual void machine_reset() override; - virtual void machine_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); @@ -100,7 +100,7 @@ class eurocom2_state : public driver_device void pia1_cb2_w(int state); - void eurocom2_map(address_map &map); + void eurocom2_map(address_map &map) ATTR_COLD; TIMER_CALLBACK_MEMBER(toggle_sst); @@ -144,7 +144,7 @@ class waveterm_state : public eurocom2_state uint8_t waveterm_adc(); void waveterm_dac(uint8_t data); // declared but not defined, commented in memory map - void waveterm_map(address_map &map); + void waveterm_map(address_map &map) ATTR_COLD; bool m_driveh = false; uint8_t m_drive = 0; diff --git a/src/mame/skeleton/evolution_handheld.cpp b/src/mame/skeleton/evolution_handheld.cpp index 32adb8ef4d3..f05fa1ff256 100644 --- a/src/mame/skeleton/evolution_handheld.cpp +++ b/src/mame/skeleton/evolution_handheld.cpp @@ -24,14 +24,14 @@ class evolution_handheldgame_state : public driver_device void evolhh(machine_config &config); private: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); required_device m_maincpu; - void evolution_map(address_map &map); + void evolution_map(address_map &map) ATTR_COLD; }; void evolution_handheldgame_state::machine_start() diff --git a/src/mame/skeleton/fanucs15.cpp b/src/mame/skeleton/fanucs15.cpp index d4c9afb4338..d322f65163a 100644 --- a/src/mame/skeleton/fanucs15.cpp +++ b/src/mame/skeleton/fanucs15.cpp @@ -331,12 +331,12 @@ class fanucs15_state : public driver_device required_device m_gfxcpu; required_device m_convcpu; - void convcpu_mem(address_map &map); - void gfxcpu_mem(address_map &map); - void maincpu_mem(address_map &map); - void pmccpu_mem(address_map &map); + void convcpu_mem(address_map &map) ATTR_COLD; + void gfxcpu_mem(address_map &map) ATTR_COLD; + void maincpu_mem(address_map &map) ATTR_COLD; + void pmccpu_mem(address_map &map) ATTR_COLD; - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; }; void fanucs15_state::maincpu_mem(address_map &map) diff --git a/src/mame/skeleton/fanucspmg.cpp b/src/mame/skeleton/fanucspmg.cpp index 27cdf60b017..cc0a780e847 100644 --- a/src/mame/skeleton/fanucspmg.cpp +++ b/src/mame/skeleton/fanucspmg.cpp @@ -621,11 +621,11 @@ class fanucspmg_state : public driver_device uint8_t m_vram[24576]; uint8_t m_video_ctrl; - void maincpu_io(address_map &map); - void maincpu_mem(address_map &map); - void subcpu_mem(address_map &map); + void maincpu_io(address_map &map) ATTR_COLD; + void maincpu_mem(address_map &map) ATTR_COLD; + void subcpu_mem(address_map &map) ATTR_COLD; - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; int32_t m_vram_bank; uint8_t m_vbl_ctrl; uint8_t m_keyboard_row; diff --git a/src/mame/skeleton/fc100.cpp b/src/mame/skeleton/fc100.cpp index 324fd1aefd2..b6d320f5425 100644 --- a/src/mame/skeleton/fc100.cpp +++ b/src/mame/skeleton/fc100.cpp @@ -89,11 +89,11 @@ class fc100_state : public driver_device { return m_p_chargen[(ch * 16 + line) & 0xfff]; } - void io_map(address_map &map); - void mem_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; // graphics signals uint8_t m_ag = 0U; diff --git a/src/mame/skeleton/fk1.cpp b/src/mame/skeleton/fk1.cpp index adec04708a0..6d063776322 100644 --- a/src/mame/skeleton/fk1.cpp +++ b/src/mame/skeleton/fk1.cpp @@ -64,14 +64,14 @@ class fk1_state : public driver_device void reset_int_w(uint8_t data); uint8_t m_video_rol; uint8_t m_int_vector; - void machine_start() override; - void machine_reset() override; + void machine_start() override ATTR_COLD; + void machine_reset() override ATTR_COLD; uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); TIMER_DEVICE_CALLBACK_MEMBER(keyboard_callback); TIMER_DEVICE_CALLBACK_MEMBER(vsync_callback); IRQ_CALLBACK_MEMBER(irq_callback); - void io_map(address_map &map); - void mem_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_region_ptr m_rom; diff --git a/src/mame/skeleton/fs3216.cpp b/src/mame/skeleton/fs3216.cpp index 7d6cb59c4e2..178c912ce20 100644 --- a/src/mame/skeleton/fs3216.cpp +++ b/src/mame/skeleton/fs3216.cpp @@ -45,8 +45,8 @@ class fs3216_state : public driver_device void fs3216(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: MC6845_UPDATE_ROW(crt_update_row); @@ -78,11 +78,11 @@ class fs3216_state : public driver_device u8 fdc_ram_r(offs_t offset); void fdc_ram_w(offs_t offset, u8 data); - void main_map(address_map &map); - void clb_map(address_map &map); - void fc7_map(address_map &map); - void wdcpu_prog_map(address_map &map); - void wdcpu_bank_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void clb_map(address_map &map) ATTR_COLD; + void fc7_map(address_map &map) ATTR_COLD; + void wdcpu_prog_map(address_map &map) ATTR_COLD; + void wdcpu_bank_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_clb; diff --git a/src/mame/skeleton/ft68m.cpp b/src/mame/skeleton/ft68m.cpp index 8eae349ad0d..f623a32f256 100644 --- a/src/mame/skeleton/ft68m.cpp +++ b/src/mame/skeleton/ft68m.cpp @@ -37,10 +37,10 @@ class ft68m_state : public driver_device private: uint16_t switches_r(); - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; required_shared_ptr m_p_base; diff --git a/src/mame/skeleton/ganbaremo.cpp b/src/mame/skeleton/ganbaremo.cpp index d5c65557605..e2bef7039d9 100644 --- a/src/mame/skeleton/ganbaremo.cpp +++ b/src/mame/skeleton/ganbaremo.cpp @@ -107,10 +107,10 @@ class ganbaremo_state : public driver_device required_device m_maincpu; required_device m_displaycpu; - void main_program_map(address_map &map); - void display_program_map(address_map &map); - void main_io_map(address_map &map); - void display_io_map(address_map &map); + void main_program_map(address_map &map) ATTR_COLD; + void display_program_map(address_map &map) ATTR_COLD; + void main_io_map(address_map &map) ATTR_COLD; + void display_io_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/skeleton/gem_rp.cpp b/src/mame/skeleton/gem_rp.cpp index ee891724b26..68fd0752340 100644 --- a/src/mame/skeleton/gem_rp.cpp +++ b/src/mame/skeleton/gem_rp.cpp @@ -26,7 +26,7 @@ class gem_rp_state : public driver_device void rp200(machine_config &config); private: - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; }; diff --git a/src/mame/skeleton/gimix.cpp b/src/mame/skeleton/gimix.cpp index e7287c3c456..401c26734c1 100644 --- a/src/mame/skeleton/gimix.cpp +++ b/src/mame/skeleton/gimix.cpp @@ -105,8 +105,8 @@ class gimix_state : public driver_device static void floppy_formats(format_registration &fr); - void gimix_banked_mem(address_map &map); - void gimix_mem(address_map &map); + void gimix_banked_mem(address_map &map) ATTR_COLD; + void gimix_mem(address_map &map) ATTR_COLD; // disassembly override offs_t os9_dasm_override(std::ostream &stream, offs_t pc, const util::disasm_interface::data_buffer &opcodes, const util::disasm_interface::data_buffer ¶ms); @@ -127,8 +127,8 @@ class gimix_state : public driver_device uint8_t m_pia1_pa; uint8_t m_pia1_pb; - virtual void machine_reset() override; - virtual void machine_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; virtual void driver_start() override; void refresh_memory(); diff --git a/src/mame/skeleton/gm1000.cpp b/src/mame/skeleton/gm1000.cpp index 7433aead16d..065a77c1cfc 100644 --- a/src/mame/skeleton/gm1000.cpp +++ b/src/mame/skeleton/gm1000.cpp @@ -31,7 +31,7 @@ class gm1000_state : public driver_device private: HD44780_PIXEL_UPDATE(lcd_pixel_update); - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; memory_share_creator m_nvram; @@ -112,10 +112,10 @@ ROM_START(bh1000) ROM_LOAD16_BYTE("bh1_mgs71a__u7_sysh__v2.1_2fac.u7", 0x00001, 0x20000, CRC(989417a1) SHA1(3de4f10a2e7cde5eb93f04bd75db36e194b1d991)) // MX27C1000-90 ROM_REGION(0x800000, "waves", 0) // DIP42 mask ROMs "© SUZUKI 1993". - ROM_LOAD("319-35006_wd06__m531602c-53.u13", 0x000000, 0x200000, CRC(AFCEA840) SHA1(F003B19B83560191BEF03D0D2C1559D77BDAA227)) - ROM_LOAD("319-35007_wd07__m531602c-52.u14", 0x200000, 0x200000, CRC(1F322DDB) SHA1(5F3B1BE61782B74E4696D23CD551AA07EB709BB7)) - ROM_LOAD("319-35008_wd08__m531602c-54.u15", 0x200000, 0x200000, CRC(BE9C158B) SHA1(878B08ACE7B54FA27180C9C45D4B90C04B4BB656)) - ROM_LOAD("319-35009_wd09__m531602c-55.u16", 0x200000, 0x200000, CRC(DEE0B84A) SHA1(C528131182D24C42C9D64D3B7F811FD8FE88C3E5)) + ROM_LOAD("319-35006_wd06__m531602c-53.u13", 0x000000, 0x200000, CRC(afcea840) SHA1(f003b19b83560191bef03d0d2c1559d77bdaa227)) + ROM_LOAD("319-35007_wd07__m531602c-52.u14", 0x200000, 0x200000, CRC(1f322ddb) SHA1(5f3b1be61782b74e4696d23cd551aa07eb709bb7)) + ROM_LOAD("319-35008_wd08__m531602c-54.u15", 0x200000, 0x200000, CRC(be9c158b) SHA1(878b08ace7b54fa27180c9c45d4b90c04b4bb656)) + ROM_LOAD("319-35009_wd09__m531602c-55.u16", 0x200000, 0x200000, CRC(dee0b84a) SHA1(c528131182d24c42c9d64d3b7f811fd8fe88c3e5)) ROM_END ROM_START(gm1000) @@ -132,5 +132,5 @@ ROM_END } // anonymous namespace -SYST(1994, bh1000, 0, 0, gm1000, gm1000, gm1000_state, empty_init, "NIHON ENIAC CO.,LTD.", "Sound Saurus BH-1000", MACHINE_IS_SKELETON) +SYST(1994, bh1000, 0, 0, gm1000, gm1000, gm1000_state, empty_init, "Nihon Eniac Co., Ltd.", "Sound Saurus BH-1000", MACHINE_IS_SKELETON) SYST(1994, gm1000, 0, 0, gm1000, gm1000, gm1000_state, empty_init, "Suzuki (Hammond license)", "GM-1000 GM Sound Module", MACHINE_IS_SKELETON) diff --git a/src/mame/skeleton/gnat10.cpp b/src/mame/skeleton/gnat10.cpp index a00e6356ba9..b0c6d1aeb75 100644 --- a/src/mame/skeleton/gnat10.cpp +++ b/src/mame/skeleton/gnat10.cpp @@ -53,8 +53,8 @@ class gnat10_state : public driver_device void gnat10(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: u8 mem_r(offs_t offset); @@ -65,9 +65,9 @@ class gnat10_state : public driver_device void baud0_w(u8 data); void baud1_w(u8 data); - void mem_map(address_map &map); - void io_map(address_map &map); - void video_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; + void video_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_fdc; diff --git a/src/mame/skeleton/goupil.cpp b/src/mame/skeleton/goupil.cpp index 587029527a3..ea42cfcb3f8 100644 --- a/src/mame/skeleton/goupil.cpp +++ b/src/mame/skeleton/goupil.cpp @@ -76,7 +76,7 @@ class goupil_base_state : public driver_device void base(machine_config &config); protected: - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; required_device m_maincpu; required_device m_acia; @@ -114,13 +114,13 @@ class goupil_g1_state : public goupil_base_state void goupil_g1(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; TIMER_CALLBACK_MEMBER(scanline_tick); private: - void mem(address_map &map); + void mem(address_map &map) ATTR_COLD; required_device m_ef9364; @@ -148,7 +148,7 @@ class goupil_g2_state : public goupil_base_state void goupil_g2(machine_config &config); private: - void mem(address_map &map); + void mem(address_map &map) ATTR_COLD; required_device m_visu24x80_ram; required_region_ptr m_visu24x80_rom; diff --git a/src/mame/skeleton/grfd2301.cpp b/src/mame/skeleton/grfd2301.cpp index fda3182ac8e..3cb894c39a0 100644 --- a/src/mame/skeleton/grfd2301.cpp +++ b/src/mame/skeleton/grfd2301.cpp @@ -55,8 +55,8 @@ class grfd2301_state : public driver_device void grfd2301(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: void drq_w(int state); @@ -64,8 +64,8 @@ class grfd2301_state : public driver_device I8275_DRAW_CHARACTER_MEMBER(draw_character); - void io_map(address_map &map); - void mem_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; required_shared_ptr m_p_videoram; required_device m_maincpu; diff --git a/src/mame/skeleton/hazeltin.cpp b/src/mame/skeleton/hazeltin.cpp index 8ee825e64cc..8b9a497da59 100644 --- a/src/mame/skeleton/hazeltin.cpp +++ b/src/mame/skeleton/hazeltin.cpp @@ -141,8 +141,8 @@ class hazl1500_state : public driver_device void hazl1500(machine_config &config); private: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; uint32_t screen_update_hazl1500(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); @@ -168,8 +168,8 @@ class hazl1500_state : public driver_device NETDEV_ANALOG_CALLBACK_MEMBER(vblank_cb); NETDEV_ANALOG_CALLBACK_MEMBER(tvinterq_cb); - void hazl1500_io(address_map &map); - void hazl1500_mem(address_map &map); + void hazl1500_io(address_map &map) ATTR_COLD; + void hazl1500_mem(address_map &map) ATTR_COLD; TIMER_CALLBACK_MEMBER(update_iowq); diff --git a/src/mame/skeleton/hazl1420.cpp b/src/mame/skeleton/hazl1420.cpp index aefc313843b..d46a71c79b3 100644 --- a/src/mame/skeleton/hazl1420.cpp +++ b/src/mame/skeleton/hazl1420.cpp @@ -40,7 +40,7 @@ class hazl1420_state : public driver_device void hazl1420(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: void p1_w(u8 data); @@ -56,9 +56,9 @@ class hazl1420_state : public driver_device void crtc_lbre_w(int state); void crtc_vblank_w(int state); - void prog_map(address_map &map); - void io_map(address_map &map); - void bank_map(address_map &map); + void prog_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; + void bank_map(address_map &map) ATTR_COLD; u32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); diff --git a/src/mame/skeleton/hohnadam.cpp b/src/mame/skeleton/hohnadam.cpp index cac17f5af01..b395e0d440d 100644 --- a/src/mame/skeleton/hohnadam.cpp +++ b/src/mame/skeleton/hohnadam.cpp @@ -31,9 +31,9 @@ class hohnadam_state : public driver_device void d40000_w(offs_t offset, u8 data); void d80000_w(offs_t offset, u8 data); - void main_map(address_map &map); - void panel_map(address_map &map); - void panel_ext_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void panel_map(address_map &map) ATTR_COLD; + void panel_ext_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_panelcpu; diff --git a/src/mame/skeleton/hprot1.cpp b/src/mame/skeleton/hprot1.cpp index c26fba12f41..81740b40e81 100644 --- a/src/mame/skeleton/hprot1.cpp +++ b/src/mame/skeleton/hprot1.cpp @@ -87,16 +87,16 @@ class hprot1_state : public driver_device void init_hprot1(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: void henry_p1_w(uint8_t data); void henry_p3_w(uint8_t data); void hprot1_palette(palette_device &palette) const; HD44780_PIXEL_UPDATE(hprot1_pixel_update); - void i80c31_io(address_map &map); - void i80c31_prg(address_map &map); + void i80c31_io(address_map &map) ATTR_COLD; + void i80c31_prg(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_lcdc; diff --git a/src/mame/skeleton/ht68k.cpp b/src/mame/skeleton/ht68k.cpp index d1ef4cff9e2..a031043d17c 100644 --- a/src/mame/skeleton/ht68k.cpp +++ b/src/mame/skeleton/ht68k.cpp @@ -62,8 +62,8 @@ class ht68k_state : public driver_device void duart_txb(int state); void duart_output(uint8_t data); required_shared_ptr m_ram; - void machine_reset() override; - void mem_map(address_map &map); + void machine_reset() override ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/skeleton/hudson_poems.cpp b/src/mame/skeleton/hudson_poems.cpp index 432fb3cdaa3..78e5f7362bf 100644 --- a/src/mame/skeleton/hudson_poems.cpp +++ b/src/mame/skeleton/hudson_poems.cpp @@ -65,8 +65,8 @@ class hudson_poems_state : public driver_device void init_marimba(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: u32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); @@ -82,8 +82,8 @@ class hudson_poems_state : public driver_device TIMER_DEVICE_CALLBACK_MEMBER(screen_scanline); - template void tilemap_map(address_map &map, u32 base); - void mem_map(address_map &map); + template void tilemap_map(address_map &map, u32 base) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; u32 poems_8020010_r(); u32 poems_count_r(); diff --git a/src/mame/skeleton/i7000.cpp b/src/mame/skeleton/i7000.cpp index abb15ecf4c9..da1136d4aa1 100644 --- a/src/mame/skeleton/i7000.cpp +++ b/src/mame/skeleton/i7000.cpp @@ -74,8 +74,8 @@ class i7000_state : public driver_device void i7000(machine_config &config); protected: - virtual void video_start() override; - virtual void machine_start() override; + virtual void video_start() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; private: required_device m_maincpu; @@ -96,8 +96,8 @@ class i7000_state : public driver_device uint8_t kbd_r(); void scanlines_w(uint8_t data); - void i7000_io(address_map &map); - void i7000_mem(address_map &map); + void i7000_io(address_map &map) ATTR_COLD; + void i7000_mem(address_map &map) ATTR_COLD; }; void i7000_state::scanlines_w(uint8_t data) diff --git a/src/mame/skeleton/icatel.cpp b/src/mame/skeleton/icatel.cpp index fa1a6c338d0..2fd297a8504 100644 --- a/src/mame/skeleton/icatel.cpp +++ b/src/mame/skeleton/icatel.cpp @@ -44,8 +44,8 @@ class icatel_state : public driver_device void init_icatel(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: [[maybe_unused]] uint8_t magic_string(offs_t offset); @@ -70,9 +70,9 @@ class icatel_state : public driver_device HD44780_PIXEL_UPDATE(icatel_pixel_update); - void i80c31_data(address_map &map); - void i80c31_io(address_map &map); - void i80c31_prg(address_map &map); + void i80c31_data(address_map &map) ATTR_COLD; + void i80c31_io(address_map &map) ATTR_COLD; + void i80c31_prg(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_lcdc; diff --git a/src/mame/skeleton/icebox.cpp b/src/mame/skeleton/icebox.cpp index c7daba64b1d..279d60cb070 100644 --- a/src/mame/skeleton/icebox.cpp +++ b/src/mame/skeleton/icebox.cpp @@ -182,9 +182,9 @@ class icebox_state : public driver_device private: void drq_w(int state); void intrq_w(int state); - void mem_map(address_map &map); - void io_map(address_map &map); - void machine_reset() override; + void mem_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; + void machine_reset() override ATTR_COLD; void port_f1_w(u8 data); u8 m_f1 = 0U; diff --git a/src/mame/skeleton/iez80.cpp b/src/mame/skeleton/iez80.cpp index 091910c4509..20603dff32f 100644 --- a/src/mame/skeleton/iez80.cpp +++ b/src/mame/skeleton/iez80.cpp @@ -50,8 +50,8 @@ class iez80_state : public driver_device void iez80(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; @@ -60,8 +60,8 @@ class iez80_state : public driver_device required_region_ptr m_chargen; required_shared_ptr m_vram; - void mem_map(address_map &map); - void io_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); }; diff --git a/src/mame/skeleton/if800.cpp b/src/mame/skeleton/if800.cpp index b072def565b..f0248cdd1fa 100644 --- a/src/mame/skeleton/if800.cpp +++ b/src/mame/skeleton/if800.cpp @@ -33,14 +33,14 @@ class if800_state : public driver_device required_device m_hgdc; required_shared_ptr m_video_ram; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; required_device m_maincpu; required_device m_palette; UPD7220_DISPLAY_PIXELS_MEMBER( hgdc_display_pixels ); - void if800_io(address_map &map); - void if800_map(address_map &map); - void upd7220_map(address_map &map); + void if800_io(address_map &map) ATTR_COLD; + void if800_map(address_map &map) ATTR_COLD; + void upd7220_map(address_map &map) ATTR_COLD; }; UPD7220_DISPLAY_PIXELS_MEMBER( if800_state::hgdc_display_pixels ) diff --git a/src/mame/skeleton/ikt5a.cpp b/src/mame/skeleton/ikt5a.cpp index 1ca8078b87a..65e2a8919ae 100644 --- a/src/mame/skeleton/ikt5a.cpp +++ b/src/mame/skeleton/ikt5a.cpp @@ -37,7 +37,7 @@ class ikt5a_state : public driver_device void ikt5a(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: u32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); @@ -52,8 +52,8 @@ class ikt5a_state : public driver_device void p1_w(u8 data); u8 p3_r(); - void prog_map(address_map &map); - void ext_map(address_map &map); + void prog_map(address_map &map) ATTR_COLD; + void ext_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_eeprom; diff --git a/src/mame/skeleton/imsai.cpp b/src/mame/skeleton/imsai.cpp index c1674aa4c3e..7f1e0056643 100644 --- a/src/mame/skeleton/imsai.cpp +++ b/src/mame/skeleton/imsai.cpp @@ -46,12 +46,12 @@ class imsai_state : public driver_device u8 status_r(); void control_w(u8 data); - void io_map(address_map &map); - void mem_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; u8 m_term_data = 0U; - void machine_reset() override; - void machine_start() override; + void machine_reset() override ATTR_COLD; + void machine_start() override ATTR_COLD; memory_passthrough_handler m_rom_shadow_tap; required_device m_maincpu; required_region_ptr m_rom; diff --git a/src/mame/skeleton/indiana.cpp b/src/mame/skeleton/indiana.cpp index 09f251cea90..b051506ba7a 100644 --- a/src/mame/skeleton/indiana.cpp +++ b/src/mame/skeleton/indiana.cpp @@ -42,10 +42,10 @@ class indiana_state : public driver_device void init_indiana(); protected: - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; private: - void indiana_mem(address_map &map); + void indiana_mem(address_map &map) ATTR_COLD; required_device m_maincpu; }; diff --git a/src/mame/skeleton/is48x.cpp b/src/mame/skeleton/is48x.cpp index 47e8e196ed5..a876d211586 100644 --- a/src/mame/skeleton/is48x.cpp +++ b/src/mame/skeleton/is48x.cpp @@ -31,10 +31,10 @@ class is48x_state : public driver_device private: MC6845_UPDATE_ROW(update_row); - void mem_map(address_map &map); - void io_map(address_map &map); - void bcp_inst_map(address_map &map); - void bcp_data_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; + void bcp_inst_map(address_map &map) ATTR_COLD; + void bcp_data_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_bcp; diff --git a/src/mame/skeleton/itc4.cpp b/src/mame/skeleton/itc4.cpp index d7d5e77c4e8..b51041119ec 100644 --- a/src/mame/skeleton/itc4.cpp +++ b/src/mame/skeleton/itc4.cpp @@ -89,8 +89,8 @@ class itc4_state : public driver_device void itc4(machine_config &config); private: - void mem_map(address_map &map); - void io_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; required_device m_maincpu; }; diff --git a/src/mame/skeleton/itt1700.cpp b/src/mame/skeleton/itt1700.cpp index f4b06482786..0415a79c000 100644 --- a/src/mame/skeleton/itt1700.cpp +++ b/src/mame/skeleton/itt1700.cpp @@ -42,8 +42,8 @@ class itt1700_state : public driver_device private: MC6845_UPDATE_ROW(update_row); - void mem_map(address_map &map); - void io_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_shared_ptr m_videoram; diff --git a/src/mame/skeleton/itt1700_kbd.h b/src/mame/skeleton/itt1700_kbd.h index 6ffaf5cac29..6b6f6ed94bd 100644 --- a/src/mame/skeleton/itt1700_kbd.h +++ b/src/mame/skeleton/itt1700_kbd.h @@ -27,8 +27,8 @@ class itt1700_keyboard_device : public device_t protected: // device-specific overrides - 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; private: // internal state diff --git a/src/mame/skeleton/itt3030.cpp b/src/mame/skeleton/itt3030.cpp index 5c2176111b0..0c8391188da 100644 --- a/src/mame/skeleton/itt3030.cpp +++ b/src/mame/skeleton/itt3030.cpp @@ -244,8 +244,8 @@ class itt3030_state : public driver_device protected: // driver_device overrides - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: // screen updates @@ -269,9 +269,9 @@ class itt3030_state : public driver_device void fdchld_w(int state); void itt3030_palette(palette_device &palette) const; - void itt3030_io(address_map &map); - void itt3030_map(address_map &map); - void lower48_map(address_map &map); + void itt3030_io(address_map &map) ATTR_COLD; + void itt3030_map(address_map &map) ATTR_COLD; + void lower48_map(address_map &map) ATTR_COLD; // devices required_device m_maincpu; diff --git a/src/mame/skeleton/itt9216.cpp b/src/mame/skeleton/itt9216.cpp index 8e1aac2b5f1..2b464e7e13b 100644 --- a/src/mame/skeleton/itt9216.cpp +++ b/src/mame/skeleton/itt9216.cpp @@ -27,14 +27,14 @@ class itt9216_state : public driver_device void itt9216(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: u8 ram_rom_r(offs_t offset); void ram_w(offs_t offset, u8 data); - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_region_ptr m_program; diff --git a/src/mame/skeleton/jade.cpp b/src/mame/skeleton/jade.cpp index 50abaa624eb..3287085d880 100644 --- a/src/mame/skeleton/jade.cpp +++ b/src/mame/skeleton/jade.cpp @@ -38,8 +38,8 @@ class jade_state : public driver_device void jade(machine_config &config); private: - void io_map(address_map &map); - void mem_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; }; diff --git a/src/mame/skeleton/jonos.cpp b/src/mame/skeleton/jonos.cpp index 1381fbe909a..05505563868 100644 --- a/src/mame/skeleton/jonos.cpp +++ b/src/mame/skeleton/jonos.cpp @@ -38,8 +38,8 @@ class jonos_state : public driver_device void jonos(machine_config &config); protected: - virtual void machine_reset() override; - virtual void machine_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; private: u8 keyboard_r(offs_t offset); @@ -47,7 +47,7 @@ class jonos_state : public driver_device u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void kbd_put(u8 data); - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; u8 m_framecnt = 0U; u8 m_term_data = 0U; diff --git a/src/mame/skeleton/juku.cpp b/src/mame/skeleton/juku.cpp index 99254710472..611b529321f 100644 --- a/src/mame/skeleton/juku.cpp +++ b/src/mame/skeleton/juku.cpp @@ -69,8 +69,8 @@ class juku_state : public driver_device void juku(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; @@ -85,9 +85,9 @@ class juku_state : public driver_device required_ioport_array<16> m_keys; required_ioport m_key_special; - void mem_map(address_map &map); - void bank_map(address_map &map); - void io_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void bank_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; void pio0_porta_w(uint8_t data); uint8_t pio0_portb_r(); diff --git a/src/mame/skeleton/junior80.cpp b/src/mame/skeleton/junior80.cpp index b15af889bd4..bda6d11268b 100644 --- a/src/mame/skeleton/junior80.cpp +++ b/src/mame/skeleton/junior80.cpp @@ -158,13 +158,13 @@ class junior80_state : public driver_device void junior80(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: - void mem_map(address_map &map); - void io_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; void drive_w(offs_t offset, u8 data); diff --git a/src/mame/skeleton/koto_zevio.cpp b/src/mame/skeleton/koto_zevio.cpp index d26fcce8135..36d53d18e3b 100644 --- a/src/mame/skeleton/koto_zevio.cpp +++ b/src/mame/skeleton/koto_zevio.cpp @@ -25,8 +25,8 @@ class zevio_state : public driver_device void zevio(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; @@ -37,7 +37,7 @@ class zevio_state : public driver_device uint32_t z900b0014_r(); uint32_t zb8000024_r(); - void arm_map(address_map &map); + void arm_map(address_map &map) ATTR_COLD; }; uint32_t zevio_state::screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect) diff --git a/src/mame/skeleton/kron.cpp b/src/mame/skeleton/kron.cpp index b39232b717f..9749bad1f93 100644 --- a/src/mame/skeleton/kron.cpp +++ b/src/mame/skeleton/kron.cpp @@ -157,8 +157,8 @@ class kron180_state : public driver_device void txen_w(offs_t offset, uint8_t data) { LOGIO("%s %02x = %02x\n", FUNCNAME, offset, data); } void kbd_reset_w(offs_t offset, uint8_t data) { LOGIO("%s %02x = %02x\n", FUNCNAME, offset, data); } void dreq_w(offs_t offset, uint8_t data) { LOGIO("%s %02x = %02x\n", FUNCNAME, offset, data); } - void kron180_iomap(address_map &map); - void kron180_mem(address_map &map); + void kron180_iomap(address_map &map) ATTR_COLD; + void kron180_mem(address_map &map) ATTR_COLD; required_device m_maincpu; required_region_ptr m_chargen; diff --git a/src/mame/skeleton/lee1214.cpp b/src/mame/skeleton/lee1214.cpp index 02929e74b2f..842d2059326 100644 --- a/src/mame/skeleton/lee1214.cpp +++ b/src/mame/skeleton/lee1214.cpp @@ -28,11 +28,11 @@ class lee1214_state : public driver_device void lee1214(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: - void mem_map(address_map &map); - void io_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; [[maybe_unused]] u32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); diff --git a/src/mame/skeleton/lee1220.cpp b/src/mame/skeleton/lee1220.cpp index 3837a025e9b..2b09daea7df 100644 --- a/src/mame/skeleton/lee1220.cpp +++ b/src/mame/skeleton/lee1220.cpp @@ -34,7 +34,7 @@ class lee1220_state : public driver_device void lee1220(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: MC6845_UPDATE_ROW(update_row); @@ -43,8 +43,8 @@ class lee1220_state : public driver_device void sdlc_w(offs_t offset, u8 data); u8 c0_r(); - void mem_map(address_map &map); - void io_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; required_device m_maincpu; //required_device m_sdlc; diff --git a/src/mame/skeleton/lft.cpp b/src/mame/skeleton/lft.cpp index 1bed344db7b..1bbbed71092 100644 --- a/src/mame/skeleton/lft.cpp +++ b/src/mame/skeleton/lft.cpp @@ -47,10 +47,10 @@ class lft_state : public driver_device void lft(machine_config &config); private: - void io_map(address_map &map); - void mem_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; required_device m_maincpu; required_device m_rtc; required_device m_scc; diff --git a/src/mame/skeleton/lg-dvd.cpp b/src/mame/skeleton/lg-dvd.cpp index 74252ef4b96..4e1ed9b8cf0 100644 --- a/src/mame/skeleton/lg-dvd.cpp +++ b/src/mame/skeleton/lg-dvd.cpp @@ -23,7 +23,7 @@ class lg_dvd_state : public driver_device void lg(machine_config &config); private: - void lg_dvd_map(address_map &map); + void lg_dvd_map(address_map &map) ATTR_COLD; required_device m_maincpu; }; diff --git a/src/mame/skeleton/lms46.cpp b/src/mame/skeleton/lms46.cpp index 54d88e64cc2..ddad2f52abe 100644 --- a/src/mame/skeleton/lms46.cpp +++ b/src/mame/skeleton/lms46.cpp @@ -33,8 +33,8 @@ class lms46_state : public driver_device u8 busy_r(); void misc_control_w(u8 data); - void mem_map(address_map &map); - void io_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_rtc; diff --git a/src/mame/skeleton/madmoney2.cpp b/src/mame/skeleton/madmoney2.cpp index b849e5d59cc..d4497a60cc1 100644 --- a/src/mame/skeleton/madmoney2.cpp +++ b/src/mame/skeleton/madmoney2.cpp @@ -60,7 +60,7 @@ class madmoney2_state : public driver_device void madmoney2(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_maincpu; diff --git a/src/mame/skeleton/marsvending.cpp b/src/mame/skeleton/marsvending.cpp index 6319f30b910..2c62fbb3808 100644 --- a/src/mame/skeleton/marsvending.cpp +++ b/src/mame/skeleton/marsvending.cpp @@ -68,8 +68,8 @@ class marsvending_state : public driver_device void zunknecta(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; required_device m_maincpu; }; diff --git a/src/mame/skeleton/mes.cpp b/src/mame/skeleton/mes.cpp index 631c99e22a4..eaf03315a9b 100644 --- a/src/mame/skeleton/mes.cpp +++ b/src/mame/skeleton/mes.cpp @@ -35,8 +35,8 @@ class mes_state : public driver_device void mes(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); @@ -44,8 +44,8 @@ class mes_state : public driver_device u8 port00_r(); u8 port08_r(); - void io_map(address_map &map); - void mem_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; u8 m_term_data = 0U; u8 m_port08 = 0U; diff --git a/src/mame/skeleton/mfabfz.cpp b/src/mame/skeleton/mfabfz.cpp index fee72cf1e6e..fa4263bff19 100644 --- a/src/mame/skeleton/mfabfz.cpp +++ b/src/mame/skeleton/mfabfz.cpp @@ -73,11 +73,11 @@ class mfabfz_state : public driver_device void mfabfz(machine_config &config); private: - void mfabfz85_io(address_map &map); - void mfabfz_io(address_map &map); - void mfabfz_mem(address_map &map); - void machine_reset() override; - void machine_start() override; + void mfabfz85_io(address_map &map) ATTR_COLD; + void mfabfz_io(address_map &map) ATTR_COLD; + void mfabfz_mem(address_map &map) ATTR_COLD; + void machine_reset() override ATTR_COLD; + void machine_start() override ATTR_COLD; void kansas_r(int state); void kansas_w(int state); u8 m_cass_data[5]{}; diff --git a/src/mame/skeleton/mice.cpp b/src/mame/skeleton/mice.cpp index 7a7ff065302..9813fcc3c37 100644 --- a/src/mame/skeleton/mice.cpp +++ b/src/mame/skeleton/mice.cpp @@ -52,10 +52,10 @@ class mice_state : public driver_device void mice(machine_config &config); private: - void mice2_io(address_map &map); - void mice2_mem(address_map &map); - void mice_io(address_map &map); - void mice_mem(address_map &map); + void mice2_io(address_map &map) ATTR_COLD; + void mice2_mem(address_map &map) ATTR_COLD; + void mice_io(address_map &map) ATTR_COLD; + void mice_mem(address_map &map) ATTR_COLD; required_device m_maincpu; }; diff --git a/src/mame/skeleton/micral.cpp b/src/mame/skeleton/micral.cpp index 915ab57fb98..b86752bfe51 100644 --- a/src/mame/skeleton/micral.cpp +++ b/src/mame/skeleton/micral.cpp @@ -88,8 +88,8 @@ class micral_state : public driver_device void micral(machine_config &config); private: - virtual void machine_reset() override; - virtual void machine_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; u8 keyin_r(); u8 status_r(); u8 unk_r(); @@ -97,9 +97,9 @@ class micral_state : public driver_device void video_w(offs_t offset, u8 data); u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void io_kbd(address_map &map); - void mem_kbd(address_map &map); - void mem_map(address_map &map); + void io_kbd(address_map &map) ATTR_COLD; + void mem_kbd(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; u16 s_curpos = 0U; u8 s_command = 0U; diff --git a/src/mame/skeleton/micro20.cpp b/src/mame/skeleton/micro20.cpp index 4c793dab3a8..74bf9999691 100644 --- a/src/mame/skeleton/micro20.cpp +++ b/src/mame/skeleton/micro20.cpp @@ -52,8 +52,8 @@ class micro20_state : public driver_device required_device m_pit; required_device m_rtc; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; void m68k_reset_callback(int state); u32 buserror_r(); @@ -68,7 +68,7 @@ class micro20_state : public driver_device m_maincpu->set_input_line(M68K_IRQ_4, state); } - void micro20_map(address_map &map); + void micro20_map(address_map &map) ATTR_COLD; u8 m_tin; u8 m_h4; diff --git a/src/mame/skeleton/micromon.cpp b/src/mame/skeleton/micromon.cpp index ab36ed4037c..cdbef2bf7cd 100644 --- a/src/mame/skeleton/micromon.cpp +++ b/src/mame/skeleton/micromon.cpp @@ -38,10 +38,10 @@ class micromon_state : public driver_device private: int clear_r(); - void io_map(address_map &map); - void mem_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; uint8_t m_resetcnt = 0U; required_device m_maincpu; }; diff --git a/src/mame/skeleton/micronic.cpp b/src/mame/skeleton/micronic.cpp index a9c888251a6..8b54710028e 100644 --- a/src/mame/skeleton/micronic.cpp +++ b/src/mame/skeleton/micronic.cpp @@ -166,8 +166,8 @@ class micronic_state : public driver_device void micronic(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: void nvram_init(nvram_device &nvram, void *data, size_t size); @@ -185,8 +185,8 @@ class micronic_state : public driver_device void micronic_palette(palette_device &palette) const; - void micronic_io(address_map &map); - void micronic_mem(address_map &map); + void micronic_io(address_map &map) ATTR_COLD; + void micronic_mem(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_lcdc; diff --git a/src/mame/skeleton/mightyframe.cpp b/src/mame/skeleton/mightyframe.cpp index ebbc1adabc4..f1ded659235 100644 --- a/src/mame/skeleton/mightyframe.cpp +++ b/src/mame/skeleton/mightyframe.cpp @@ -29,7 +29,7 @@ class mightyframe_state : public driver_device void mightyframe(machine_config &config); private: - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; // required_device m_maincpu; }; diff --git a/src/mame/skeleton/milwaukee.cpp b/src/mame/skeleton/milwaukee.cpp index 54998cfe1f6..4e9c6c99d86 100644 --- a/src/mame/skeleton/milwaukee.cpp +++ b/src/mame/skeleton/milwaukee.cpp @@ -41,7 +41,7 @@ class milwaukee_state : public driver_device void milwaukee(machine_config &config); private: - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; }; void milwaukee_state::mem_map(address_map &map) diff --git a/src/mame/skeleton/mindset.cpp b/src/mame/skeleton/mindset.cpp index 8f32a403bfd..fca02a2fd58 100644 --- a/src/mame/skeleton/mindset.cpp +++ b/src/mame/skeleton/mindset.cpp @@ -73,8 +73,8 @@ class mindset_module_interface: public device_t { void irq_w(int state); mindset_module_interface(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; private: devcb_write_line m_irq_cb; @@ -123,7 +123,7 @@ class mindset_module: public device_t, protected: virtual void device_validity_check(validity_checker &valid) const override; - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; }; DEFINE_DEVICE_TYPE(MINDSET_MODULE, mindset_module, "mindset_module", "MINDSET module") @@ -158,14 +158,14 @@ class mindset_sound_module: public mindset_module_interface { mindset_sound_module(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 0); virtual ~mindset_sound_module() = default; - virtual void map(address_map &map) override; - virtual void idmap(address_map &map) override; + virtual void map(address_map &map) override ATTR_COLD; + virtual void idmap(address_map &map) override ATTR_COLD; protected: - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: u8 m_p1 = 0, m_p2 = 0; @@ -256,11 +256,11 @@ class mindset_rs232_module: public mindset_module_interface { mindset_rs232_module(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 0); virtual ~mindset_rs232_module() = default; - virtual void map(address_map &map) override; - virtual void idmap(address_map &map) override; + virtual void map(address_map &map) override ATTR_COLD; + virtual void idmap(address_map &map) override ATTR_COLD; protected: - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: required_device m_ins8250; @@ -352,8 +352,8 @@ class mindset_state: public driver_device static inline u16 msk(int bit) { return (1U << bit) - 1; } static inline u16 sw(u16 data) { return (data >> 8) | (data << 8); } - void maincpu_mem(address_map &map); - void maincpu_io(address_map &map); + void maincpu_mem(address_map &map) ATTR_COLD; + void maincpu_io(address_map &map) ATTR_COLD; void display_mode(); void blit(u16 packet_seg, u16 packet_adr); @@ -399,8 +399,8 @@ class mindset_state: public driver_device u32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; }; diff --git a/src/mame/skeleton/mini2440.cpp b/src/mame/skeleton/mini2440.cpp index 1a8efc7771f..cb6a8d22ceb 100644 --- a/src/mame/skeleton/mini2440.cpp +++ b/src/mame/skeleton/mini2440.cpp @@ -50,8 +50,8 @@ class mini2440_state : public driver_device required_ioport m_peny; uint32_t m_port[9] = { }; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; inline void verboselog(int n_level, const char *s_fmt, ...) ATTR_PRINTF(3,4); uint32_t s3c2440_gpio_port_r(offs_t offset); void s3c2440_gpio_port_w(offs_t offset, uint32_t data); @@ -63,7 +63,7 @@ class mini2440_state : public driver_device void s3c2440_i2s_data_w(offs_t offset, uint16_t data); uint32_t s3c2440_adc_data_r(offs_t offset); - void mini2440_map(address_map &map); + void mini2440_map(address_map &map) ATTR_COLD; }; inline void mini2440_state::verboselog(int n_level, const char *s_fmt, ...) diff --git a/src/mame/skeleton/miniframe.cpp b/src/mame/skeleton/miniframe.cpp index 5619d057cca..e88ae03dc9a 100644 --- a/src/mame/skeleton/miniframe.cpp +++ b/src/mame/skeleton/miniframe.cpp @@ -50,8 +50,8 @@ class miniframe_state : public driver_device [[maybe_unused]] uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; uint16_t ram_mmu_r(offs_t offset); void ram_mmu_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); @@ -63,8 +63,8 @@ class miniframe_state : public driver_device required_shared_ptr m_mapram; - void miniframe_mem(address_map &map); - void ramrombank_map(address_map &map); + void miniframe_mem(address_map &map) ATTR_COLD; + void ramrombank_map(address_map &map) ATTR_COLD; uint16_t *m_ramptr = nullptr; uint32_t m_ramsize = 0; diff --git a/src/mame/skeleton/miuchiz.cpp b/src/mame/skeleton/miuchiz.cpp index b2a3fd79087..931da417c09 100644 --- a/src/mame/skeleton/miuchiz.cpp +++ b/src/mame/skeleton/miuchiz.cpp @@ -41,7 +41,7 @@ class miuchiz_state : public driver_device void miuchiz(machine_config &config); private: - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_screen; diff --git a/src/mame/skeleton/ml20.cpp b/src/mame/skeleton/ml20.cpp index 4cd84d86eb8..8c7c6cec4ce 100644 --- a/src/mame/skeleton/ml20.cpp +++ b/src/mame/skeleton/ml20.cpp @@ -81,7 +81,7 @@ class ml20_state : public driver_device HD44780_PIXEL_UPDATE(lcd_pixel_update); protected: - void machine_start() override; + void machine_start() override ATTR_COLD; private: required_device m_maincpu; @@ -90,8 +90,8 @@ class ml20_state : public driver_device required_ioport_array<4> m_keys; required_ioport m_dsw; - void mem_map(address_map &map); - void io_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; uint8_t p0_r(); uint8_t p1_r(); diff --git a/src/mame/skeleton/mmd1.cpp b/src/mame/skeleton/mmd1.cpp index 4ac4fdb697e..bb149789aec 100644 --- a/src/mame/skeleton/mmd1.cpp +++ b/src/mame/skeleton/mmd1.cpp @@ -105,8 +105,8 @@ class mmd1_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(reset_button); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: void round_leds_w(offs_t offset, u8 data); @@ -117,8 +117,8 @@ class mmd1_state : public driver_device TIMER_DEVICE_CALLBACK_MEMBER(kansas_r); void kansas_w(int state); - void io_map(address_map &map); - void mem_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; u8 m_cass_data[4]{}; bool m_cassinbit = 0, m_cassoutbit = 0, m_cassold = 0; diff --git a/src/mame/skeleton/mmd2.cpp b/src/mame/skeleton/mmd2.cpp index 1d797a64ef5..c2eb59014b2 100644 --- a/src/mame/skeleton/mmd2.cpp +++ b/src/mame/skeleton/mmd2.cpp @@ -124,8 +124,8 @@ class mmd2_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(reset_button); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: void round_leds_w(offs_t, u8); @@ -138,8 +138,8 @@ class mmd2_state : public driver_device void digit_w(u8 data); void status_callback(u8 data); - void io_map(address_map &map); - void mem_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; void reset_banks(); u8 m_digit = 0U; diff --git a/src/mame/skeleton/mod8.cpp b/src/mame/skeleton/mod8.cpp index 004033feb57..cc9079e459b 100644 --- a/src/mame/skeleton/mod8.cpp +++ b/src/mame/skeleton/mod8.cpp @@ -79,13 +79,13 @@ class mod8_state : public driver_device void kbd_put(u8 data); uint8_t tty_r(); IRQ_CALLBACK_MEMBER(mod8_irq_callback); - void io_map(address_map &map); - void mem_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; uint16_t m_tty_data_out = 0U; uint8_t m_tty_data_in = 0U; int m_tty_cnt = 0; - void machine_start() override; + void machine_start() override ATTR_COLD; required_device m_teleprinter; required_device m_maincpu; }; diff --git a/src/mame/skeleton/modellot.cpp b/src/mame/skeleton/modellot.cpp index 6f6c84b871f..99abe4c276d 100644 --- a/src/mame/skeleton/modellot.cpp +++ b/src/mame/skeleton/modellot.cpp @@ -72,12 +72,12 @@ class modellot_state : public driver_device void kbd_put(u8 data); u32 screen_update_modellot(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void io_map(address_map &map); - void mem_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; u8 m_term_data = 0U; - void machine_start() override; - void machine_reset() override; + void machine_start() override ATTR_COLD; + void machine_reset() override ATTR_COLD; memory_passthrough_handler m_rom_shadow_tap; required_device m_maincpu; required_region_ptr m_rom; diff --git a/src/mame/skeleton/molecular.cpp b/src/mame/skeleton/molecular.cpp index 930fc4be070..5aefe72e722 100644 --- a/src/mame/skeleton/molecular.cpp +++ b/src/mame/skeleton/molecular.cpp @@ -73,9 +73,9 @@ class molecula_state : public driver_device protected: // driver_device overrides - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: // devices @@ -106,10 +106,10 @@ class molecula_state : public driver_device void molecula_palette(palette_device &palette) const; - void molecula_app_io(address_map &map); - void molecula_app_map(address_map &map); - void molecula_file_io(address_map &map); - void molecula_file_map(address_map &map); + void molecula_app_io(address_map &map) ATTR_COLD; + void molecula_app_map(address_map &map) ATTR_COLD; + void molecula_file_io(address_map &map) ATTR_COLD; + void molecula_file_map(address_map &map) ATTR_COLD; }; void molecula_state::video_start() diff --git a/src/mame/skeleton/ms9540.cpp b/src/mame/skeleton/ms9540.cpp index c642cef18d3..6925e306e22 100644 --- a/src/mame/skeleton/ms9540.cpp +++ b/src/mame/skeleton/ms9540.cpp @@ -48,12 +48,12 @@ class ms9540_state : public driver_device uint8_t latch_1f001_r(); void latch_1f001_w(u8 data); void kbd_put(u8 data); - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; uint8_t m_term_data = 0U; uint8_t m_latch_1e001 = 0U; uint8_t m_latch_1f001 = 0U; - void machine_reset() override; - void machine_start() override; + void machine_reset() override ATTR_COLD; + void machine_start() override ATTR_COLD; required_shared_ptr m_ram; required_device m_maincpu; required_device m_terminal; diff --git a/src/mame/skeleton/mstation.cpp b/src/mame/skeleton/mstation.cpp index f6402da5d89..6b8fd205ca5 100644 --- a/src/mame/skeleton/mstation.cpp +++ b/src/mame/skeleton/mstation.cpp @@ -56,8 +56,8 @@ class mstation_state : public driver_device void mstation(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; @@ -104,9 +104,9 @@ class mstation_state : public driver_device void mstation_palette(palette_device &palette) const; TIMER_DEVICE_CALLBACK_MEMBER(mstation_1hz_timer); TIMER_DEVICE_CALLBACK_MEMBER(mstation_kb_timer); - void mstation_banked_map(address_map &map); - void mstation_io(address_map &map); - void mstation_mem(address_map &map); + void mstation_banked_map(address_map &map) ATTR_COLD; + void mstation_io(address_map &map) ATTR_COLD; + void mstation_mem(address_map &map) ATTR_COLD; }; diff --git a/src/mame/skeleton/mt735.cpp b/src/mame/skeleton/mt735.cpp index e0e01b212ae..f3409fac00b 100644 --- a/src/mame/skeleton/mt735.cpp +++ b/src/mame/skeleton/mt735.cpp @@ -84,9 +84,9 @@ class mt735_state : public driver_device uint8_t p4_r(); uint8_t p5_r(); - virtual void machine_start() override; - virtual void machine_reset() override; - void mt735_map(address_map &map); + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + void mt735_map(address_map &map) ATTR_COLD; }; mt735_state::mt735_state(const machine_config &mconfig, device_type type, const char *tag) : diff --git a/src/mame/skeleton/mtd1256.cpp b/src/mame/skeleton/mtd1256.cpp index 7ce19bce4e2..32b6ec49edd 100644 --- a/src/mame/skeleton/mtd1256.cpp +++ b/src/mame/skeleton/mtd1256.cpp @@ -37,7 +37,7 @@ class mtd1256_state : public driver_device void mtd1256(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: HD44780_PIXEL_UPDATE(pixel_update); @@ -45,8 +45,8 @@ class mtd1256_state : public driver_device u8 porta_r(); void portd_w(u8 data); - void bank0_map(address_map &map); - void mem_map(address_map &map); + void bank0_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_bank0; diff --git a/src/mame/skeleton/mw4pole.cpp b/src/mame/skeleton/mw4pole.cpp index 64e8d3a1243..0324a3ba0cd 100644 --- a/src/mame/skeleton/mw4pole.cpp +++ b/src/mame/skeleton/mw4pole.cpp @@ -23,7 +23,7 @@ class mw4pole_state : public driver_device void mw4pole(machine_config &config); private: - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; }; diff --git a/src/mame/skeleton/mx2178.cpp b/src/mame/skeleton/mx2178.cpp index 59963598088..126c292ac48 100644 --- a/src/mame/skeleton/mx2178.cpp +++ b/src/mame/skeleton/mx2178.cpp @@ -50,10 +50,10 @@ class mx2178_state : public driver_device private: MC6845_UPDATE_ROW(crtc_update_row); - void io_map(address_map &map); - void mem_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; required_device m_palette; required_shared_ptr m_p_videoram; required_device m_maincpu; diff --git a/src/mame/skeleton/mycom.cpp b/src/mame/skeleton/mycom.cpp index 9210134edfc..76461eed096 100644 --- a/src/mame/skeleton/mycom.cpp +++ b/src/mame/skeleton/mycom.cpp @@ -117,8 +117,8 @@ class mycom_state : public driver_device void mycom_rtc_w(u8 data); MC6845_UPDATE_ROW(crtc_update_row); - void mycom_io(address_map &map); - void mycom_map(address_map &map); + void mycom_io(address_map &map) ATTR_COLD; + void mycom_map(address_map &map) ATTR_COLD; std::unique_ptr m_vram; u8 m_port0a = 0U; @@ -126,8 +126,8 @@ class mycom_state : public driver_device u8 m_sn_we = 0U; u16 m_i_videoram = 0U; bool m_keyb_press_flag = false; - virtual void machine_reset() override; - virtual void machine_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; required_device m_maincpu; required_region_ptr m_rom; required_shared_ptr m_ram; diff --git a/src/mame/skeleton/ngen.cpp b/src/mame/skeleton/ngen.cpp index d2d4c7c87c5..461970f93ea 100644 --- a/src/mame/skeleton/ngen.cpp +++ b/src/mame/skeleton/ngen.cpp @@ -140,9 +140,9 @@ class ngen_state : public driver_device void fdc_irq_w(int state); - void ngen386_io(address_map &map); - void ngen386_mem(address_map &map); - void ngen386i_mem(address_map &map); + void ngen386_io(address_map &map) ATTR_COLD; + void ngen386_mem(address_map &map) ATTR_COLD; + void ngen386i_mem(address_map &map) ATTR_COLD; optional_device m_maincpu; optional_device m_i386cpu; @@ -178,11 +178,11 @@ class ngen_state : public driver_device void b38_keyboard_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); uint16_t b38_crtc_r(offs_t offset, uint16_t mem_mask = ~0); void b38_crtc_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); - void ngen_io(address_map &map); - void ngen_mem(address_map &map); + void ngen_io(address_map &map) ATTR_COLD; + void ngen_mem(address_map &map) ATTR_COLD; - virtual void machine_reset() override; - virtual void machine_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; optional_memory_region m_disk_rom; memory_array m_vram; diff --git a/src/mame/skeleton/ngen_kb.h b/src/mame/skeleton/ngen_kb.h index cfd47480095..966856a4871 100644 --- a/src/mame/skeleton/ngen_kb.h +++ b/src/mame/skeleton/ngen_kb.h @@ -13,11 +13,11 @@ class ngen_keyboard_device : public serial_keyboard_device { public: ngen_keyboard_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; protected: - 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 rcv_complete() override; virtual void key_make(uint8_t row, uint8_t column) override; virtual void key_break(uint8_t row, uint8_t column) override; diff --git a/src/mame/skeleton/onyx.cpp b/src/mame/skeleton/onyx.cpp index 4b9acf3ebf0..de4c578ecb5 100644 --- a/src/mame/skeleton/onyx.cpp +++ b/src/mame/skeleton/onyx.cpp @@ -57,14 +57,14 @@ class onyx_state : public driver_device void c8002(machine_config &config); void c5000(machine_config &config); - void c5000_io(address_map &map); + void c5000_io(address_map &map) ATTR_COLD; private: - void c5000_mem(address_map &map); - void c8002_io(address_map &map); - void c8002_mem(address_map &map); - void subio(address_map &map); - void submem(address_map &map); + void c5000_mem(address_map &map) ATTR_COLD; + void c8002_io(address_map &map) ATTR_COLD; + void c8002_mem(address_map &map) ATTR_COLD; + void subio(address_map &map) ATTR_COLD; + void submem(address_map &map) ATTR_COLD; void z8002_m1_w(uint8_t data); required_device m_maincpu; // z8002 or z80 depending on driver diff --git a/src/mame/skeleton/p8k.cpp b/src/mame/skeleton/p8k.cpp index 1a43f001b16..f6c6b768943 100644 --- a/src/mame/skeleton/p8k.cpp +++ b/src/mame/skeleton/p8k.cpp @@ -112,11 +112,11 @@ class p8k_state : public driver_device uint8_t io_read_byte(offs_t offset); void io_write_byte(offs_t offset, uint8_t data); - void p8k_16_datamap(address_map &map); - void p8k_16_iomap(address_map &map); - void p8k_16_memmap(address_map &map); - void p8k_iomap(address_map &map); - void p8k_memmap(address_map &map); + void p8k_16_datamap(address_map &map) ATTR_COLD; + void p8k_16_iomap(address_map &map) ATTR_COLD; + void p8k_16_memmap(address_map &map) ATTR_COLD; + void p8k_iomap(address_map &map) ATTR_COLD; + void p8k_memmap(address_map &map) ATTR_COLD; required_device m_maincpu; // Z80 or Z8001 depending on the machine optional_device m_daisy; diff --git a/src/mame/skeleton/pdt3100.cpp b/src/mame/skeleton/pdt3100.cpp index 5d1d0994568..b6656224291 100644 --- a/src/mame/skeleton/pdt3100.cpp +++ b/src/mame/skeleton/pdt3100.cpp @@ -36,8 +36,8 @@ class pdt3100_state : public driver_device void pdt3100(machine_config &config); private: - void mem_map(address_map &map); - void io_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; required_device m_maincpu; }; diff --git a/src/mame/skeleton/pegasos2.cpp b/src/mame/skeleton/pegasos2.cpp index 35843122876..8288ab4553f 100644 --- a/src/mame/skeleton/pegasos2.cpp +++ b/src/mame/skeleton/pegasos2.cpp @@ -54,14 +54,14 @@ class pegasos2_state : public driver_device void pegasos2(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; required_device m_syscon; - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/skeleton/pencil2.cpp b/src/mame/skeleton/pencil2.cpp index 60170698ab4..3e1f596ac56 100644 --- a/src/mame/skeleton/pencil2.cpp +++ b/src/mame/skeleton/pencil2.cpp @@ -125,10 +125,10 @@ class pencil2_state : public driver_device u8 porte2_r(); void write_centronics_ack(int state); void write_centronics_busy(int state); - void io_map(address_map &map); - void mem_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; int m_centronics_busy = 0; int m_centronics_ack = 0; bool m_cass_state = false; diff --git a/src/mame/skeleton/pes.cpp b/src/mame/skeleton/pes.cpp index 6f2aa74d798..d285d0d9f5e 100644 --- a/src/mame/skeleton/pes.cpp +++ b/src/mame/skeleton/pes.cpp @@ -86,12 +86,12 @@ class pes_state : public driver_device private: u8 m_port3 = 0U; - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; void port3_w(u8 data); u8 port3_r(); void rx_w(int state); - void io_map(address_map &map); - void prg_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void prg_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_serial; required_device m_speech; diff --git a/src/mame/skeleton/picno.cpp b/src/mame/skeleton/picno.cpp index 54afd48227c..83e3f191031 100644 --- a/src/mame/skeleton/picno.cpp +++ b/src/mame/skeleton/picno.cpp @@ -48,7 +48,7 @@ class picno_state : public driver_device void picno(machine_config &config); private: - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; }; diff --git a/src/mame/skeleton/plan80.cpp b/src/mame/skeleton/plan80.cpp index a99aec6cefb..d7fb490edd9 100644 --- a/src/mame/skeleton/plan80.cpp +++ b/src/mame/skeleton/plan80.cpp @@ -55,12 +55,12 @@ class plan80_state : public driver_device void port09_w(u8 data); void port10_w(u8 data); u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void io_map(address_map &map); - void mem_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; u8 m_kbd_row = 0U; bool m_spk_pol = false; - virtual void machine_reset() override; - virtual void machine_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; memory_passthrough_handler m_rom_shadow_tap; required_device m_maincpu; required_region_ptr m_rom; diff --git a/src/mame/skeleton/pm68k.cpp b/src/mame/skeleton/pm68k.cpp index f6efdc66469..8def2f8f903 100644 --- a/src/mame/skeleton/pm68k.cpp +++ b/src/mame/skeleton/pm68k.cpp @@ -31,8 +31,8 @@ class pm68k_state : public driver_device void pm68k(machine_config &config); private: - void mem_map(address_map &map); - virtual void machine_reset() override; + void mem_map(address_map &map) ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; required_shared_ptr m_p_base; required_device m_maincpu; }; diff --git a/src/mame/skeleton/proteus3.cpp b/src/mame/skeleton/proteus3.cpp index dbb3045d72a..597bef2972a 100644 --- a/src/mame/skeleton/proteus3.cpp +++ b/src/mame/skeleton/proteus3.cpp @@ -81,8 +81,8 @@ class proteus3_state : public driver_device void proteus3(machine_config &config); protected: - virtual void machine_reset() override; - virtual void machine_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; private: void ca2_w(int state); @@ -110,7 +110,7 @@ class proteus3_state : public driver_device void write_f14_clock(int state) { write_acia_clocks(mc14411_device::TIMER_F14, state); } void write_f15_clock(int state) { write_acia_clocks(mc14411_device::TIMER_F15, state); } - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; u8 m_video_data = 0U; u8 m_flashcnt = 0U; diff --git a/src/mame/skeleton/pt68k4.cpp b/src/mame/skeleton/pt68k4.cpp index e4c6bf9aac3..8f8acb1eee5 100644 --- a/src/mame/skeleton/pt68k4.cpp +++ b/src/mame/skeleton/pt68k4.cpp @@ -107,8 +107,8 @@ class pt68k4_state : public driver_device void pt68k4(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: uint8_t hiram_r(offs_t offset); @@ -129,8 +129,8 @@ class pt68k4_state : public driver_device void keyboard_clock_w(int state); void keyboard_data_w(int state); - void pt68k2_mem(address_map &map); - void pt68k4_mem(address_map &map); + void pt68k2_mem(address_map &map) ATTR_COLD; + void pt68k4_mem(address_map &map) ATTR_COLD; required_shared_ptr m_p_base; required_device m_maincpu; diff --git a/src/mame/skeleton/ptcsol.cpp b/src/mame/skeleton/ptcsol.cpp index 3b427e2dc95..bebd6fb9913 100644 --- a/src/mame/skeleton/ptcsol.cpp +++ b/src/mame/skeleton/ptcsol.cpp @@ -164,11 +164,11 @@ class sol20_state : public driver_device void sol20(machine_config &config); private: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; - void mem_map(address_map &map); - void io_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; struct cass_data_t { diff --git a/src/mame/skeleton/pullttrigger.cpp b/src/mame/skeleton/pullttrigger.cpp index e23ee1c91af..6561202385f 100644 --- a/src/mame/skeleton/pullttrigger.cpp +++ b/src/mame/skeleton/pullttrigger.cpp @@ -45,8 +45,8 @@ class pullttrig_state : public driver_device private: required_device m_maincpu; - void pullttrig_io(address_map &map); - void pullttrig_map(address_map &map); + void pullttrig_io(address_map &map) ATTR_COLD; + void pullttrig_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/skeleton/pv9234.cpp b/src/mame/skeleton/pv9234.cpp index 94ec1a67959..38f5d978aca 100644 --- a/src/mame/skeleton/pv9234.cpp +++ b/src/mame/skeleton/pv9234.cpp @@ -47,10 +47,10 @@ class pv9234_state : public driver_device uint32_t screen_update_pv9234(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void pv9234_map(address_map &map); + void pv9234_map(address_map &map) ATTR_COLD; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; required_shared_ptr m_p_ram; required_device m_maincpu; diff --git a/src/mame/skeleton/pwp14.cpp b/src/mame/skeleton/pwp14.cpp index d441e4daac5..aa1e9e803d2 100644 --- a/src/mame/skeleton/pwp14.cpp +++ b/src/mame/skeleton/pwp14.cpp @@ -56,12 +56,12 @@ class pwp14_state : public driver_device void pwp14(machine_config &config); private: - virtual void machine_reset() override; - virtual void machine_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; uint32_t screen_update_pwp14(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void pwp14_io(address_map &map); - void pwp14_mem(address_map &map); + void pwp14_io(address_map &map) ATTR_COLD; + void pwp14_mem(address_map &map) ATTR_COLD; void bankswitch_w(offs_t offset, uint8_t data); void set_bank(); u8 typewriter_r(offs_t offset); diff --git a/src/mame/skeleton/qmquasar.cpp b/src/mame/skeleton/qmquasar.cpp index fc360b5f0c3..e14f5cc12a2 100644 --- a/src/mame/skeleton/qmquasar.cpp +++ b/src/mame/skeleton/qmquasar.cpp @@ -34,8 +34,8 @@ class qmquasar_state : public driver_device HD44780_PIXEL_UPDATE(quasar_pixel_update); HD44780_PIXEL_UPDATE(technox_pixel_update); - void prog_map(address_map &map); - void ext_map(address_map &map); + void prog_map(address_map &map) ATTR_COLD; + void ext_map(address_map &map) ATTR_COLD; required_device m_maincpu; }; diff --git a/src/mame/skeleton/qmsirius.cpp b/src/mame/skeleton/qmsirius.cpp index a787dfc6f61..3e47627e8f4 100644 --- a/src/mame/skeleton/qmsirius.cpp +++ b/src/mame/skeleton/qmsirius.cpp @@ -28,8 +28,8 @@ class qmsirius_state : public driver_device private: HD44780_PIXEL_UPDATE(lcd_pixel_update); - void prog_map(address_map &map); - void ext_map(address_map &map); + void prog_map(address_map &map) ATTR_COLD; + void ext_map(address_map &map) ATTR_COLD; required_device m_maincpu; }; diff --git a/src/mame/skeleton/qtsbc.cpp b/src/mame/skeleton/qtsbc.cpp index bcc54dd58c5..b3846b836e4 100644 --- a/src/mame/skeleton/qtsbc.cpp +++ b/src/mame/skeleton/qtsbc.cpp @@ -94,8 +94,8 @@ class qtsbc_state : public driver_device void qtsbc(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: u8 memory_r(offs_t offset); @@ -105,8 +105,8 @@ class qtsbc_state : public driver_device void rts_loopback_w(int state); void dtr_loopback_w(int state); - void io_map(address_map &map); - void mem_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_pit; diff --git a/src/mame/skeleton/rd100.cpp b/src/mame/skeleton/rd100.cpp index 56e4d8fad4e..133d1dc0682 100644 --- a/src/mame/skeleton/rd100.cpp +++ b/src/mame/skeleton/rd100.cpp @@ -41,8 +41,8 @@ class rd100_state : public driver_device void rd100(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: HD44780_PIXEL_UPDATE(pixel_update); @@ -52,7 +52,7 @@ class rd100_state : public driver_device int shift_r(); int ctrl_r(); - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_ioport_array<9> m_keys; diff --git a/src/mame/skeleton/rvoice.cpp b/src/mame/skeleton/rvoice.cpp index 48d84cf1571..a1eb9e0577f 100644 --- a/src/mame/skeleton/rvoice.cpp +++ b/src/mame/skeleton/rvoice.cpp @@ -35,7 +35,7 @@ class rvoice_state : public driver_device private: required_device m_maincpu; - void hd63701_main_mem(address_map &map); + void hd63701_main_mem(address_map &map) ATTR_COLD; }; diff --git a/src/mame/skeleton/sacstate.cpp b/src/mame/skeleton/sacstate.cpp index 873f1039e74..b6268308772 100644 --- a/src/mame/skeleton/sacstate.cpp +++ b/src/mame/skeleton/sacstate.cpp @@ -53,15 +53,15 @@ class sacstate_state : public driver_device void sacstate(machine_config &config); private: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; u8 port00_r(); u8 port01_r(); u8 port04_r(); void port08_w(u8 data); void kbd_put(u8 data); - void sacstate_io(address_map &map); - void sacstate_mem(address_map &map); + void sacstate_io(address_map &map) ATTR_COLD; + void sacstate_mem(address_map &map) ATTR_COLD; u8 m_term_data = 0U; u8 m_val = 0U; diff --git a/src/mame/skeleton/sansa_fuze.cpp b/src/mame/skeleton/sansa_fuze.cpp index b4f00e3c9e0..f7a47e0ecc0 100644 --- a/src/mame/skeleton/sansa_fuze.cpp +++ b/src/mame/skeleton/sansa_fuze.cpp @@ -26,7 +26,7 @@ class sansa_fuze_state : public driver_device private: required_device m_maincpu; - void sansa_fuze_map(address_map &map); + void sansa_fuze_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/skeleton/sartorius.cpp b/src/mame/skeleton/sartorius.cpp index 17df80470e4..0e3680302e1 100644 --- a/src/mame/skeleton/sartorius.cpp +++ b/src/mame/skeleton/sartorius.cpp @@ -65,9 +65,9 @@ class sart3733_state : public driver_device void sart3733(machine_config &config); private: - void sart3733_memory(address_map &map); - void sart3733_rom(address_map &map); - void sart3733_status(address_map &map); + void sart3733_memory(address_map &map) ATTR_COLD; + void sart3733_rom(address_map &map) ATTR_COLD; + void sart3733_status(address_map &map) ATTR_COLD; }; diff --git a/src/mame/skeleton/sb180.cpp b/src/mame/skeleton/sb180.cpp index de863cea978..1ba9fc50b68 100644 --- a/src/mame/skeleton/sb180.cpp +++ b/src/mame/skeleton/sb180.cpp @@ -30,10 +30,10 @@ class sb180_state : public driver_device void sb180(machine_config &config); private: - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; - void sb180_io(address_map &map); - void sb180_mem(address_map &map); + void sb180_io(address_map &map) ATTR_COLD; + void sb180_mem(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_fdc; diff --git a/src/mame/skeleton/sb8085.cpp b/src/mame/skeleton/sb8085.cpp index 3aa10767f5e..5cb3390b236 100644 --- a/src/mame/skeleton/sb8085.cpp +++ b/src/mame/skeleton/sb8085.cpp @@ -72,8 +72,8 @@ class sb8085_state : public driver_device void sb8085(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: bool board_selected(offs_t offset); @@ -88,8 +88,8 @@ class sb8085_state : public driver_device void crt_rts_w(int state); void printer_rts_w(int state); - void mem_map(address_map &map); - void io_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_i8155; diff --git a/src/mame/skeleton/sbrain.cpp b/src/mame/skeleton/sbrain.cpp index 67917052bae..945febd5ef5 100644 --- a/src/mame/skeleton/sbrain.cpp +++ b/src/mame/skeleton/sbrain.cpp @@ -85,8 +85,8 @@ class sbrain_state : public driver_device void sagafox(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: u8 mem_r(offs_t offset); @@ -115,10 +115,10 @@ class sbrain_state : public driver_device void external_rxc_w(int state); void internal_txc_rxc_w(int state); - void main_io_map(address_map &map); - void main_mem_map(address_map &map); - void sub_io_map(address_map &map); - void sub_mem_map(address_map &map); + void main_io_map(address_map &map) ATTR_COLD; + void main_mem_map(address_map &map) ATTR_COLD; + void sub_io_map(address_map &map) ATTR_COLD; + void sub_mem_map(address_map &map) ATTR_COLD; bool m_busak = false; u8 m_keydown = 0U; diff --git a/src/mame/skeleton/scopus.cpp b/src/mame/skeleton/scopus.cpp index 37a085d8596..2834e522706 100644 --- a/src/mame/skeleton/scopus.cpp +++ b/src/mame/skeleton/scopus.cpp @@ -54,8 +54,8 @@ class sagitta180_state : public driver_device uint8_t memory_read_byte(offs_t offset); I8275_DRAW_CHARACTER_MEMBER(crtc_display_pixels); - void maincpu_io_map(address_map &map); - void maincpu_map(address_map &map); + void maincpu_io_map(address_map &map) ATTR_COLD; + void maincpu_map(address_map &map) ATTR_COLD; /* devices */ required_device m_palette; @@ -66,8 +66,8 @@ class sagitta180_state : public driver_device // Character generator const uint8_t *m_chargen = nullptr; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; }; void sagitta180_state::machine_start() diff --git a/src/mame/skeleton/seattlecmp.cpp b/src/mame/skeleton/seattlecmp.cpp index 3242ac40bbd..495b3a967b9 100644 --- a/src/mame/skeleton/seattlecmp.cpp +++ b/src/mame/skeleton/seattlecmp.cpp @@ -55,8 +55,8 @@ class seattle_comp_state : public driver_device private: u8 pic_slave_ack(offs_t offset); - void io_map(address_map &map); - void mem_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device_array m_pic; diff --git a/src/mame/skeleton/sh4robot.cpp b/src/mame/skeleton/sh4robot.cpp index 48d359052bf..b43b7283431 100644 --- a/src/mame/skeleton/sh4robot.cpp +++ b/src/mame/skeleton/sh4robot.cpp @@ -47,8 +47,8 @@ class sh4robot_state : public driver_device void sh4robot(machine_config &config); private: - void io_map(address_map &map); - void mem_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; }; diff --git a/src/mame/skeleton/shine.cpp b/src/mame/skeleton/shine.cpp index d44a7b653d0..ac405decd9b 100644 --- a/src/mame/skeleton/shine.cpp +++ b/src/mame/skeleton/shine.cpp @@ -62,10 +62,10 @@ class shine_state : public driver_device void shine(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: - void shine_mem(address_map &map); + void shine_mem(address_map &map) ATTR_COLD; uint8_t via0_pa_r(); void via0_pb_w(uint8_t data); void floppy_w(uint8_t data); diff --git a/src/mame/skeleton/si5500.cpp b/src/mame/skeleton/si5500.cpp index 9daba242bfc..1b5dc107754 100644 --- a/src/mame/skeleton/si5500.cpp +++ b/src/mame/skeleton/si5500.cpp @@ -35,7 +35,7 @@ class si5500_state : public driver_device void si5500(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: void mainic_w(offs_t offset, u8 data); @@ -46,8 +46,8 @@ class si5500_state : public driver_device void gpibc_dbin_w(int state); u8 keypad_r(offs_t offset); - void mem_map(address_map &map); - void cru_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void cru_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_mainpsi; diff --git a/src/mame/skeleton/sk101bl.cpp b/src/mame/skeleton/sk101bl.cpp index 177e747bebf..d07cf9aac68 100644 --- a/src/mame/skeleton/sk101bl.cpp +++ b/src/mame/skeleton/sk101bl.cpp @@ -41,8 +41,8 @@ class sk101bl_state : public driver_device void sk101bl(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: HD44780_PIXEL_UPDATE(pixel_update); @@ -53,8 +53,8 @@ class sk101bl_state : public driver_device u8 scan_shift_r(); void lcd_control_w(u8 data); - void prog_map(address_map &map); - void ext_map(address_map &map); + void prog_map(address_map &map) ATTR_COLD; + void ext_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_lcdc; diff --git a/src/mame/skeleton/slsstars.cpp b/src/mame/skeleton/slsstars.cpp index a871927de79..53082d665ca 100644 --- a/src/mame/skeleton/slsstars.cpp +++ b/src/mame/skeleton/slsstars.cpp @@ -25,7 +25,7 @@ class slsstars_state : public driver_device void slsstars(machine_config &config); private: - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; }; diff --git a/src/mame/skeleton/softbox.cpp b/src/mame/skeleton/softbox.cpp index aa1fe987857..ae635428cdc 100644 --- a/src/mame/skeleton/softbox.cpp +++ b/src/mame/skeleton/softbox.cpp @@ -148,11 +148,11 @@ class softbox_state : public driver_device LED_READY }; - void softbox_io(address_map &map); - void softbox_mem(address_map &map); + void softbox_io(address_map &map) ATTR_COLD; + void softbox_mem(address_map &map) ATTR_COLD; int m_ifc = 0; // Tracks previous state of IEEE-488 IFC line - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; virtual void device_reset_after_children() override; required_device m_maincpu; diff --git a/src/mame/skeleton/squale.cpp b/src/mame/skeleton/squale.cpp index e7aaa29c429..74c04093afa 100644 --- a/src/mame/skeleton/squale.cpp +++ b/src/mame/skeleton/squale.cpp @@ -153,8 +153,8 @@ class squale_state : public driver_device void pia_u75_cb2_w(int state); DECLARE_DEVICE_IMAGE_LOAD_MEMBER( cart_load ); - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; uint8_t keyboard_line = 0U; uint8_t fdc_sel0 = 0U; @@ -166,7 +166,7 @@ class squale_state : public driver_device TIMER_DEVICE_CALLBACK_MEMBER(squale_scanline); - void squale_mem(address_map &map); + void squale_mem(address_map &map) ATTR_COLD; required_device m_acia; required_device m_ay8910; diff --git a/src/mame/skeleton/swyft.cpp b/src/mame/skeleton/swyft.cpp index eb7bd0c4bf6..438d771cc4a 100644 --- a/src/mame/skeleton/swyft.cpp +++ b/src/mame/skeleton/swyft.cpp @@ -329,9 +329,9 @@ class swyft_state : public driver_device void swyft(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -378,7 +378,7 @@ class swyft_state : public driver_device void write_acia_clock(int state); - void swyft_mem(address_map &map); + void swyft_mem(address_map &map) ATTR_COLD; }; diff --git a/src/mame/skeleton/symbolics.cpp b/src/mame/skeleton/symbolics.cpp index 312c906fe5f..71d6c66ef85 100644 --- a/src/mame/skeleton/symbolics.cpp +++ b/src/mame/skeleton/symbolics.cpp @@ -109,10 +109,10 @@ class symbolics_state : public driver_device //emu_timer *m_outfifo_timer = nullptr; // overrides - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; - void m68k_mem(address_map &map); + void m68k_mem(address_map &map) ATTR_COLD; //TIMER_CALLBACK_MEMBER(outfifo_read_cb); }; diff --git a/src/mame/skeleton/synthex.cpp b/src/mame/skeleton/synthex.cpp index 1f26539d7af..2ea6df80671 100644 --- a/src/mame/skeleton/synthex.cpp +++ b/src/mame/skeleton/synthex.cpp @@ -33,7 +33,7 @@ class synthex_state : public driver_device void synthex(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: u8 ram2_r(offs_t offset); @@ -55,7 +55,7 @@ class synthex_state : public driver_device virtual void driver_start() override; - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_midiacia; diff --git a/src/mame/skeleton/sys2900.cpp b/src/mame/skeleton/sys2900.cpp index de993bd64f7..3baf3af635c 100644 --- a/src/mame/skeleton/sys2900.cpp +++ b/src/mame/skeleton/sys2900.cpp @@ -69,11 +69,11 @@ class sys2900_state : public driver_device private: uint32_t screen_update_sys2900(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void io_map(address_map &map); - void mem_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; - virtual void machine_reset() override; - virtual void machine_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; memory_passthrough_handler m_rom_shadow_tap; required_device m_maincpu; required_region_ptr m_rom; diff --git a/src/mame/skeleton/sys9002.cpp b/src/mame/skeleton/sys9002.cpp index a6fc7fee194..ae156d888a2 100644 --- a/src/mame/skeleton/sys9002.cpp +++ b/src/mame/skeleton/sys9002.cpp @@ -49,8 +49,8 @@ class sys9002_state : public driver_device private: MC6845_UPDATE_ROW(crtc_update_row); - void io_map(address_map &map); - void mem_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; u8 port11_r(); required_device m_maincpu; diff --git a/src/mame/skeleton/systec.cpp b/src/mame/skeleton/systec.cpp index 37107a0039b..932077272a6 100644 --- a/src/mame/skeleton/systec.cpp +++ b/src/mame/skeleton/systec.cpp @@ -50,11 +50,11 @@ class systec_state : public driver_device void systec(machine_config &config); protected: - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; private: - void io_map(address_map &map); - void mem_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_shared_ptr m_ram; diff --git a/src/mame/skeleton/systel1.cpp b/src/mame/skeleton/systel1.cpp index 626c97e8fdd..707e24ab25a 100644 --- a/src/mame/skeleton/systel1.cpp +++ b/src/mame/skeleton/systel1.cpp @@ -42,8 +42,8 @@ class systel1_state : public driver_device void systel1(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: void hrq_w(int state); @@ -55,8 +55,8 @@ class systel1_state : public driver_device I8275_DRAW_CHARACTER_MEMBER(draw_character); - void mem_map(address_map &map); - void io_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_dmac; diff --git a/src/mame/skeleton/syvg.cpp b/src/mame/skeleton/syvg.cpp index 417ec68ff56..cee7e6ad9dc 100644 --- a/src/mame/skeleton/syvg.cpp +++ b/src/mame/skeleton/syvg.cpp @@ -43,14 +43,14 @@ class syvg_state : public driver_device void init_luckyvl(); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void program_map(address_map &map); + void program_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/skeleton/tavernie.cpp b/src/mame/skeleton/tavernie.cpp index 74f34bd21df..f885d5e13b7 100644 --- a/src/mame/skeleton/tavernie.cpp +++ b/src/mame/skeleton/tavernie.cpp @@ -91,7 +91,7 @@ class cpu09_state : public driver_device void pa_w(u8 data); void pb_w(u8 data); TIMER_DEVICE_CALLBACK_MEMBER(kansas_r); - void cpu09_mem(address_map &map); + void cpu09_mem(address_map &map) ATTR_COLD; u8 m_pa = 0U; bool m_cassold = false; required_device m_maincpu; @@ -101,8 +101,8 @@ class cpu09_state : public driver_device required_device m_ptm; private: - virtual void machine_reset() override; - virtual void machine_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; }; class ivg09_state : public cpu09_state @@ -122,10 +122,10 @@ class ivg09_state : public cpu09_state void ivg09(machine_config &config); private: - virtual void machine_reset() override; - virtual void machine_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; void ivg09_palette(palette_device &palette) const; - void ivg09_mem(address_map &map); + void ivg09_mem(address_map &map) ATTR_COLD; void pa_ivg_w(u8 data); u8 pb_ivg_r(); void vram_w(offs_t offset, u8 data); diff --git a/src/mame/skeleton/tecnbras.cpp b/src/mame/skeleton/tecnbras.cpp index f91add74587..56bfd6c4dae 100644 --- a/src/mame/skeleton/tecnbras.cpp +++ b/src/mame/skeleton/tecnbras.cpp @@ -41,16 +41,16 @@ class tecnbras_state : public driver_device void tecnbras(machine_config &config); private: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; void set_x_position_w(offs_t offset, uint8_t data); void print_column_w(offs_t offset, uint8_t data); //void tecnbras_io_w(uint8_t data); //uint8_t tecnbras_io_r(); - void i80c31_io(address_map &map); - void i80c31_prg(address_map &map); + void i80c31_io(address_map &map) ATTR_COLD; + void i80c31_prg(address_map &map) ATTR_COLD; required_device m_maincpu; output_finder<14 * 7> m_dmds; diff --git a/src/mame/skeleton/teleray10.cpp b/src/mame/skeleton/teleray10.cpp index 54aa2d01836..46af9102a27 100644 --- a/src/mame/skeleton/teleray10.cpp +++ b/src/mame/skeleton/teleray10.cpp @@ -47,8 +47,8 @@ class teleray10_state : public driver_device int timer_expired_r(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: u32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); @@ -66,7 +66,7 @@ class teleray10_state : public driver_device void serial_io_w(offs_t offset, u8 data); u8 kb_r(offs_t offset); - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_mainirq; diff --git a/src/mame/skeleton/telex1192.cpp b/src/mame/skeleton/telex1192.cpp index 21ab521d87f..9b1c90bdfe6 100644 --- a/src/mame/skeleton/telex1192.cpp +++ b/src/mame/skeleton/telex1192.cpp @@ -29,8 +29,8 @@ class telex1192_state : public driver_device private: u16 data_r(offs_t offset); - void inst_map(address_map &map); - void data_map(address_map &map); + void inst_map(address_map &map) ATTR_COLD; + void data_map(address_map &map) ATTR_COLD; required_device m_bcp; required_region_ptr m_datarom; diff --git a/src/mame/skeleton/telex274.cpp b/src/mame/skeleton/telex274.cpp index 4965206b46f..38a04bd2cc6 100644 --- a/src/mame/skeleton/telex274.cpp +++ b/src/mame/skeleton/telex274.cpp @@ -114,9 +114,9 @@ class telex274_state : public driver_device void telex274(machine_config &config); private: - void main_mem(address_map &map); - void coax_mem(address_map &map); - void exam_mem(address_map &map); + void main_mem(address_map &map) ATTR_COLD; + void coax_mem(address_map &map) ATTR_COLD; + void exam_mem(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_coaxcpu; diff --git a/src/mame/skeleton/telex277d.cpp b/src/mame/skeleton/telex277d.cpp index 8d6f3831170..b36c4f3204f 100644 --- a/src/mame/skeleton/telex277d.cpp +++ b/src/mame/skeleton/telex277d.cpp @@ -26,8 +26,8 @@ class telex277d_state : public driver_device void telex277d(machine_config &config); private: - void mem_map(address_map &map); - void io_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_region_ptr m_chargen; diff --git a/src/mame/skeleton/terak.cpp b/src/mame/skeleton/terak.cpp index 7f3f99e3ad3..07e601c1357 100644 --- a/src/mame/skeleton/terak.cpp +++ b/src/mame/skeleton/terak.cpp @@ -37,12 +37,12 @@ class terak_state : public driver_device void terak_fdc_data_w(uint16_t data); uint32_t screen_update_terak(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; uint8_t m_unit = 0; uint8_t m_cmd = 0; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; required_device m_maincpu; }; diff --git a/src/mame/skeleton/terco.cpp b/src/mame/skeleton/terco.cpp index daa90440a14..89c1eb7f1d3 100644 --- a/src/mame/skeleton/terco.cpp +++ b/src/mame/skeleton/terco.cpp @@ -273,7 +273,7 @@ class t4490_state : public driver_device void t4490(machine_config &config); private: - void t4490_map(address_map &map); + void t4490_map(address_map &map) ATTR_COLD; required_device m_maincpu; // virtual void machine_reset() override { m_maincpu->reset(); LOG("--->%s()\n", FUNCNAME); }; required_device m_pia1; diff --git a/src/mame/skeleton/terminal.cpp b/src/mame/skeleton/terminal.cpp index 0aa77684fa1..e7771bab035 100644 --- a/src/mame/skeleton/terminal.cpp +++ b/src/mame/skeleton/terminal.cpp @@ -30,7 +30,7 @@ class terminal_state : public driver_device private: - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; }; diff --git a/src/mame/skeleton/textelcomp.cpp b/src/mame/skeleton/textelcomp.cpp index 82481cc0d66..852bffae17f 100644 --- a/src/mame/skeleton/textelcomp.cpp +++ b/src/mame/skeleton/textelcomp.cpp @@ -38,7 +38,7 @@ class textelcomp_state : public driver_device void textelcomp(machine_config &config); private: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; void keyscan_w(u8 data); u8 keyboard_r(); void shift_data_w(int state); @@ -46,8 +46,8 @@ class textelcomp_state : public driver_device void update_shift_output(); void rtc_w(u8 data); - void mem_map(address_map &map); - void lcdc_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void lcdc_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_rtc; diff --git a/src/mame/skeleton/ti630.cpp b/src/mame/skeleton/ti630.cpp index 227229f2fe6..b6a44b68b59 100644 --- a/src/mame/skeleton/ti630.cpp +++ b/src/mame/skeleton/ti630.cpp @@ -62,16 +62,16 @@ class ti630_state : public driver_device void init_ti630(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: void i80c31_p1_w(uint8_t data); void i80c31_p3_w(uint8_t data); uint8_t i80c31_p1_r(); void ti630_palette(palette_device &palette) const; - void i80c31_io(address_map &map); - void i80c31_prg(address_map &map); + void i80c31_io(address_map &map) ATTR_COLD; + void i80c31_prg(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_lcdc; diff --git a/src/mame/skeleton/ticz80.cpp b/src/mame/skeleton/ticz80.cpp index f5a03e998d4..33c04720934 100644 --- a/src/mame/skeleton/ticz80.cpp +++ b/src/mame/skeleton/ticz80.cpp @@ -81,7 +81,7 @@ class ticz80_state : public driver_device m_maincpu(*this, "maincpu") { } - void baoqingt(machine_config &config) ATTR_COLD;; + void baoqingt(machine_config &config) ATTR_COLD; private: required_device m_maincpu; diff --git a/src/mame/skeleton/tk635.cpp b/src/mame/skeleton/tk635.cpp index 08254848cd7..90ba5adabd9 100644 --- a/src/mame/skeleton/tk635.cpp +++ b/src/mame/skeleton/tk635.cpp @@ -48,16 +48,16 @@ class tk635_state : public driver_device void tk635(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; required_shared_ptr m_ram; required_shared_ptr m_charram; - void mem_map(address_map &map); - void io_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); void vblank_w(int state); diff --git a/src/mame/skeleton/tnshc08.cpp b/src/mame/skeleton/tnshc08.cpp index ff9514a159e..1e6a61fb3ee 100644 --- a/src/mame/skeleton/tnshc08.cpp +++ b/src/mame/skeleton/tnshc08.cpp @@ -50,8 +50,8 @@ class tnshc08_state : public driver_device u8 ppi_r() { return 0x20; } private: - void io_map(address_map &map); - void mem_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_region_ptr m_rom; diff --git a/src/mame/skeleton/tr175.cpp b/src/mame/skeleton/tr175.cpp index 7ce0076bc40..759f3fabd28 100644 --- a/src/mame/skeleton/tr175.cpp +++ b/src/mame/skeleton/tr175.cpp @@ -32,9 +32,9 @@ class tr175_state : public driver_device uint8_t fff400_r(); SCN2674_DRAW_CHARACTER_MEMBER(draw_character); - void mem_map(address_map &map); - void ramdac_map(address_map &map); - void vram_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void ramdac_map(address_map &map) ATTR_COLD; + void vram_map(address_map &map) ATTR_COLD; required_device m_maincpu; }; diff --git a/src/mame/skeleton/tsispch.cpp b/src/mame/skeleton/tsispch.cpp index 6582172c034..42a14e7818d 100644 --- a/src/mame/skeleton/tsispch.cpp +++ b/src/mame/skeleton/tsispch.cpp @@ -162,12 +162,12 @@ class tsispch_state : public driver_device void dsp_to_8086_p0_w(int state); void dsp_to_8086_p1_w(int state); - void dsp_data_map(address_map &map); - void dsp_prg_map(address_map &map); - void i8086_io(address_map &map); - void i8086_mem(address_map &map); + void dsp_data_map(address_map &map) ATTR_COLD; + void dsp_prg_map(address_map &map) ATTR_COLD; + void i8086_io(address_map &map) ATTR_COLD; + void i8086_mem(address_map &map) ATTR_COLD; - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; required_device m_maincpu; required_device m_dsp; diff --git a/src/mame/skeleton/tulip1.cpp b/src/mame/skeleton/tulip1.cpp index 1852f0ae588..f595590a8b1 100644 --- a/src/mame/skeleton/tulip1.cpp +++ b/src/mame/skeleton/tulip1.cpp @@ -58,7 +58,7 @@ class tulip1_state : public driver_device void tulip1(machine_config &config); protected: - void machine_start() override; + void machine_start() override ATTR_COLD; private: required_device m_cpu; @@ -70,8 +70,8 @@ class tulip1_state : public driver_device required_shared_ptr m_vram; required_region_ptr m_chargen; - void mem_map(address_map &map); - void io_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; MC6845_UPDATE_ROW(crtc_update_row); }; diff --git a/src/mame/skeleton/tvcobrasd.cpp b/src/mame/skeleton/tvcobrasd.cpp index 941eb498ea4..740f645c373 100644 --- a/src/mame/skeleton/tvcobrasd.cpp +++ b/src/mame/skeleton/tvcobrasd.cpp @@ -94,9 +94,9 @@ class cobrasd_state : public driver_device void cobrasd(machine_config &config); - void program_map(address_map &map); - void io_map(address_map &map); - void data_map(address_map &map); + void program_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; + void data_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/skeleton/unistar.cpp b/src/mame/skeleton/unistar.cpp index d018ee9b8c2..c5296617231 100644 --- a/src/mame/skeleton/unistar.cpp +++ b/src/mame/skeleton/unistar.cpp @@ -38,7 +38,7 @@ class unistar_state : public driver_device void unistar(machine_config &config); protected: - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; private: u8 dma_mem_r(offs_t offset); @@ -47,8 +47,8 @@ class unistar_state : public driver_device void unistar_palette(palette_device &palette) const; I8275_DRAW_CHARACTER_MEMBER(draw_character); - void io_map(address_map &map); - void mem_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_region_ptr m_chargen; diff --git a/src/mame/skeleton/v6809.cpp b/src/mame/skeleton/v6809.cpp index 52a090434e6..6fb990ce918 100644 --- a/src/mame/skeleton/v6809.cpp +++ b/src/mame/skeleton/v6809.cpp @@ -85,8 +85,8 @@ class v6809_state : public driver_device void v6809(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: void speaker_en_w(int state); @@ -100,7 +100,7 @@ class v6809_state : public driver_device MC6845_UPDATE_ROW(crtc_update_row); MC6845_ON_UPDATE_ADDR_CHANGED(crtc_update_addr); - void v6809_mem(address_map &map); + void v6809_mem(address_map &map) ATTR_COLD; u16 m_video_address = 0U; bool m_speaker_en = false; diff --git a/src/mame/skeleton/vanguardmk1.cpp b/src/mame/skeleton/vanguardmk1.cpp index 9e80516038b..23ebaa0bef8 100644 --- a/src/mame/skeleton/vanguardmk1.cpp +++ b/src/mame/skeleton/vanguardmk1.cpp @@ -21,7 +21,7 @@ class vanguardmk1_state : public driver_device void vanguardmk1(machine_config &config); private: - void mcu_map(address_map &map); + void mcu_map(address_map &map) ATTR_COLD; }; void vanguardmk1_state::mcu_map(address_map &map) diff --git a/src/mame/skeleton/vd56sp.cpp b/src/mame/skeleton/vd56sp.cpp index 30e42856a75..3c985f28aaf 100644 --- a/src/mame/skeleton/vd56sp.cpp +++ b/src/mame/skeleton/vd56sp.cpp @@ -25,7 +25,7 @@ class vd56sp_state : public driver_device void vd56sp(machine_config &mconfig); private: - void exp_map(address_map &map); + void exp_map(address_map &map) ATTR_COLD; required_device m_maincpu; }; diff --git a/src/mame/skeleton/vector3.cpp b/src/mame/skeleton/vector3.cpp index cc63721361f..6da800da49d 100644 --- a/src/mame/skeleton/vector3.cpp +++ b/src/mame/skeleton/vector3.cpp @@ -71,14 +71,14 @@ class vector3_state : public driver_device void vector3(machine_config &config); private: - void vector3_io(address_map &map); - void vector3_mem(address_map &map); + void vector3_io(address_map &map) ATTR_COLD; + void vector3_mem(address_map &map) ATTR_COLD; memory_passthrough_handler m_rom_shadow_tap; required_device m_maincpu; required_region_ptr m_rom; required_shared_ptr m_ram; - void machine_reset() override; + void machine_reset() override ATTR_COLD; }; diff --git a/src/mame/skeleton/vectrix.cpp b/src/mame/skeleton/vectrix.cpp index 9080e2a6eb9..c498f82335e 100644 --- a/src/mame/skeleton/vectrix.cpp +++ b/src/mame/skeleton/vectrix.cpp @@ -32,8 +32,8 @@ class vectrix_state : public driver_device void vectrix(machine_config &config); private: - void io_map(address_map &map); - void mem_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; // required_device m_maincpu; }; diff --git a/src/mame/skeleton/vp415.cpp b/src/mame/skeleton/vp415.cpp index 3f873fc4285..08080108cfe 100644 --- a/src/mame/skeleton/vp415.cpp +++ b/src/mame/skeleton/vp415.cpp @@ -75,8 +75,8 @@ class vp415_state : public driver_device static const char *const SWITCHES_TAG; private: - virtual void machine_reset() override; - virtual void machine_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; TIMER_CALLBACK_MEMBER(drive_2ppr_tick); @@ -214,22 +214,22 @@ class vp415_state : public driver_device DRIVE_P1_TP2_BIT = 7 }; - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; - void z80_program_map(address_map &map); - void z80_io_map(address_map &map); - void datamcu_program_map(address_map &map); + void z80_program_map(address_map &map) ATTR_COLD; + void z80_io_map(address_map &map) ATTR_COLD; + void datamcu_program_map(address_map &map) ATTR_COLD; void set_int_line(uint8_t line, uint8_t value); void update_cpu_int(); - void ctrl_program_map(address_map &map); - void ctrl_io_map(address_map &map); - void ctrlmcu_program_map(address_map &map); + void ctrl_program_map(address_map &map) ATTR_COLD; + void ctrl_io_map(address_map &map) ATTR_COLD; + void ctrlmcu_program_map(address_map &map) ATTR_COLD; void sd_w(uint8_t data); uint8_t sd_r(); - void drive_program_map(address_map &map); - void drive_io_map(address_map &map); + void drive_program_map(address_map &map) ATTR_COLD; + void drive_io_map(address_map &map) ATTR_COLD; required_device m_datacpu; required_device m_datamcu; diff --git a/src/mame/skeleton/webtouchone.cpp b/src/mame/skeleton/webtouchone.cpp index c0efa40468e..a386e7188d0 100644 --- a/src/mame/skeleton/webtouchone.cpp +++ b/src/mame/skeleton/webtouchone.cpp @@ -97,8 +97,8 @@ class webtouchone_state : public driver_device void webtouchone(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; required_device m_maincpu; required_device m_screen; diff --git a/src/mame/skeleton/xbase09.cpp b/src/mame/skeleton/xbase09.cpp index f592f19afdf..3209edbf71e 100644 --- a/src/mame/skeleton/xbase09.cpp +++ b/src/mame/skeleton/xbase09.cpp @@ -27,13 +27,13 @@ class xbase09_state : public driver_device void xbase09(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: void portb_w(u8 data); u16 ram_r(offs_t offset); void ram_w(offs_t offset, u16 data); - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_ioport_array<0x16> m_analog_ports; diff --git a/src/mame/skeleton/xor100.cpp b/src/mame/skeleton/xor100.cpp index 82ae418bab6..d86c254e310 100644 --- a/src/mame/skeleton/xor100.cpp +++ b/src/mame/skeleton/xor100.cpp @@ -110,11 +110,11 @@ class xor100_state : public driver_device void write_centronics_busy(int state); void write_centronics_select(int state); - void xor100_io(address_map &map); - void xor100_mem(address_map &map); + void xor100_io(address_map &map) ATTR_COLD; + void xor100_mem(address_map &map) ATTR_COLD; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; void bankswitch(); void post_load(); diff --git a/src/mame/skeleton/zeebo_qualcomm_adreno130.cpp b/src/mame/skeleton/zeebo_qualcomm_adreno130.cpp index abfbbc572fd..f57185f36bc 100644 --- a/src/mame/skeleton/zeebo_qualcomm_adreno130.cpp +++ b/src/mame/skeleton/zeebo_qualcomm_adreno130.cpp @@ -56,12 +56,12 @@ class zeebo_game_state : public driver_device void zeebo(machine_config &config); private: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void zeebo_arm11_map(address_map &map); + void zeebo_arm11_map(address_map &map) ATTR_COLD; void copy_block(int i, int blocksize, int blocksize_stripped, uint8_t* nandrom, int dest); void bootstrap(); diff --git a/src/mame/skeleton/zfirenze.cpp b/src/mame/skeleton/zfirenze.cpp index a0636bec0f6..2bf0fe1fff2 100644 --- a/src/mame/skeleton/zfirenze.cpp +++ b/src/mame/skeleton/zfirenze.cpp @@ -59,8 +59,8 @@ class zfirenze_state : public driver_device void zfirenze(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; required_device m_maincpu; }; diff --git a/src/mame/skeleton/zms8085.cpp b/src/mame/skeleton/zms8085.cpp index e9ed98f1348..3be5e78db3c 100644 --- a/src/mame/skeleton/zms8085.cpp +++ b/src/mame/skeleton/zms8085.cpp @@ -49,10 +49,10 @@ class zms8085_state : public driver_device void key_h_w(u8 data); u8 key_r(); - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; - void io_map(address_map &map); - void mem_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_uart; diff --git a/src/mame/skeleton/zorba.cpp b/src/mame/skeleton/zorba.cpp index 63ce6a85966..2ab0560c37e 100644 --- a/src/mame/skeleton/zorba.cpp +++ b/src/mame/skeleton/zorba.cpp @@ -114,11 +114,11 @@ class zorba_state : public driver_device void zorba(machine_config &config); private: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; - void zorba_io(address_map &map); - void zorba_mem(address_map &map); + void zorba_io(address_map &map) ATTR_COLD; + void zorba_mem(address_map &map) ATTR_COLD; // Memory banking control uint8_t ram_r(); diff --git a/src/mame/skeleton/zorbakbd.cpp b/src/mame/skeleton/zorbakbd.cpp index 35dc4c4c1cc..2b9aa446d4f 100644 --- a/src/mame/skeleton/zorbakbd.cpp +++ b/src/mame/skeleton/zorbakbd.cpp @@ -220,14 +220,14 @@ INPUT_PORTS_START(zorba_keyboard) PORT_DIPSETTING( 0x01, "6 (Normal)" ) PORT_DIPSETTING( 0x00, "7 (Dump Tables)" ) PORT_DIPNAME( 0x08, 0x08, "Key Repeat" ) PORT_DIPLOCATION("DIP:4") - PORT_DIPSETTING( 0x08, DEF_STR(On) ) PORT_DIPSETTING( 0x00, DEF_STR(Off) ) + PORT_DIPSETTING( 0x08, DEF_STR(On) ) PORT_DIPNAME( 0x10, 0x10, "Baud Rate" ) PORT_DIPLOCATION("DIP:5") - PORT_DIPSETTING( 0x10, "1200" ) PORT_DIPSETTING( 0x00, "300" ) + PORT_DIPSETTING( 0x10, "1200" ) PORT_DIPNAME( 0x20, 0x20, "Key Click" ) PORT_DIPLOCATION("DIP:6") - PORT_DIPSETTING( 0x20, DEF_STR(On) ) PORT_DIPSETTING( 0x00, DEF_STR(Off) ) + PORT_DIPSETTING( 0x20, DEF_STR(On) ) PORT_DIPNAME( 0x40, 0x40, "Synchronous Output" ) PORT_DIPLOCATION("DIP:7") PORT_DIPSETTING( 0x40, DEF_STR(Off) ) PORT_DIPSETTING( 0x00, DEF_STR(On) ) diff --git a/src/mame/skeleton/zorbakbd.h b/src/mame/skeleton/zorbakbd.h index 8897af7346e..a513582a605 100644 --- a/src/mame/skeleton/zorbakbd.h +++ b/src/mame/skeleton/zorbakbd.h @@ -25,10 +25,10 @@ class zorba_keyboard_device : public device_t void mcu_pb_w(u8 data); void mcu_pc_w(u8 data); - virtual void device_start() override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; - virtual tiny_rom_entry const *device_rom_region() const override; + virtual void device_start() override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual tiny_rom_entry const *device_rom_region() const override ATTR_COLD; required_ioport_array<16> m_rows; required_device m_beeper; diff --git a/src/mame/skeleton/zt8802.cpp b/src/mame/skeleton/zt8802.cpp index 12d3806572d..d6983771752 100644 --- a/src/mame/skeleton/zt8802.cpp +++ b/src/mame/skeleton/zt8802.cpp @@ -37,8 +37,8 @@ class zt8802_state : public driver_device u8 rtc_r(); void rtc_w(u8 data); - void mem_map(address_map &map); - void io_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_shared_ptr m_pia; diff --git a/src/mame/skeleton/zvenezia.cpp b/src/mame/skeleton/zvenezia.cpp index ac900d67fdb..50a430a22a2 100644 --- a/src/mame/skeleton/zvenezia.cpp +++ b/src/mame/skeleton/zvenezia.cpp @@ -68,8 +68,8 @@ class zvenezia_state : public driver_device void zunknecta(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; required_device m_maincpu; }; diff --git a/src/mame/slicer/slicer.cpp b/src/mame/slicer/slicer.cpp index 4b61111b232..4a164a052d0 100644 --- a/src/mame/slicer/slicer.cpp +++ b/src/mame/slicer/slicer.cpp @@ -37,8 +37,8 @@ class slicer_state : public driver_device void drive_size_w(int state); template void drive_sel_w(int state); - void slicer_io(address_map &map); - void slicer_map(address_map &map); + void slicer_io(address_map &map) ATTR_COLD; + void slicer_map(address_map &map) ATTR_COLD; required_device m_fdc; required_device_array m_floppies; diff --git a/src/mame/snk/bbusters.cpp b/src/mame/snk/bbusters.cpp index a33746c3353..9d8c0246603 100644 --- a/src/mame/snk/bbusters.cpp +++ b/src/mame/snk/bbusters.cpp @@ -140,8 +140,8 @@ class bbusters_state : public driver_device void bbusters(machine_config &config); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -170,9 +170,9 @@ class bbusters_state : public driver_device template void pf_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); void coin_counter_w(uint8_t data); - void bbusters_map(address_map &map); - void sound_map(address_map &map); - void sound_portmap(address_map &map); + void bbusters_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; + void sound_portmap(address_map &map) ATTR_COLD; uint16_t eprom_r(offs_t offset); void three_gun_output_w(uint16_t data); diff --git a/src/mame/snk/dmndrby.cpp b/src/mame/snk/dmndrby.cpp index 691e751ce23..7d3b2d85aab 100644 --- a/src/mame/snk/dmndrby.cpp +++ b/src/mame/snk/dmndrby.cpp @@ -88,9 +88,9 @@ class dmndrby_state : public driver_device void dderby(machine_config &config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; - virtual void main_map(address_map &map); + virtual void main_map(address_map &map) ATTR_COLD; virtual void ca00_w(offs_t offset, u8 data); private: @@ -118,7 +118,7 @@ class dmndrby_state : public driver_device void output_w(offs_t offset, uint8_t data); - void sound_map(address_map &map); + void sound_map(address_map &map) ATTR_COLD; }; class dmndrby_quinella_state : public dmndrby_state @@ -129,7 +129,7 @@ class dmndrby_quinella_state : public dmndrby_state { } protected: - virtual void main_map(address_map &map) override; + virtual void main_map(address_map &map) override ATTR_COLD; private: // FIXME: should really use IPT_OUTPUT instead of subclassing virtual void ca00_w(offs_t offset, u8 data) override; diff --git a/src/mame/snk/hng64.h b/src/mame/snk/hng64.h index 6c664a9d6fe..0d7bec2d87a 100644 --- a/src/mame/snk/hng64.h +++ b/src/mame/snk/hng64.h @@ -131,7 +131,7 @@ class hng64_lamps_device : public device_t void lamps_w(offs_t offset, uint8_t data) { m_lamps_out_cb[offset](data); } protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: devcb_write8::array<8> m_lamps_out_cb; @@ -439,9 +439,9 @@ class hng64_state : public driver_device TILE_GET_INFO_MEMBER(get_hng64_tile2_16x16_info); TILE_GET_INFO_MEMBER(get_hng64_tile3_8x8_info); TILE_GET_INFO_MEMBER(get_hng64_tile3_16x16_info); - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; uint32_t screen_update_hng64(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); void screen_vblank_hng64(int state); TIMER_DEVICE_CALLBACK_MEMBER(hng64_irq); @@ -529,11 +529,11 @@ class hng64_state : public driver_device uint16_t sound_latch[2]{}; void hng64_audio(machine_config &config); void hng64_network(machine_config &config); - void hng_comm_io_map(address_map &map); - void hng_comm_map(address_map &map); - void hng_map(address_map &map); - void hng_sound_io(address_map &map); - void hng_sound_map(address_map &map); + void hng_comm_io_map(address_map &map) ATTR_COLD; + void hng_comm_map(address_map &map) ATTR_COLD; + void hng_map(address_map &map) ATTR_COLD; + void hng_sound_io(address_map &map) ATTR_COLD; + void hng_sound_map(address_map &map) ATTR_COLD; }; #endif // MAME_SNK_HNG64_H diff --git a/src/mame/snk/k1ge.h b/src/mame/snk/k1ge.h index 9a70380c881..e3666c7fcd6 100644 --- a/src/mame/snk/k1ge.h +++ b/src/mame/snk/k1ge.h @@ -40,9 +40,9 @@ class k1ge_device : public device_t, public device_video_interface k1ge_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // device-level overrides - 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; devcb_write_line m_vblank_pin_w; devcb_write_line m_hblank_pin_w; @@ -78,7 +78,7 @@ class k2ge_device : public k1ge_device k2ge_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 void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual void draw(int line) override; diff --git a/src/mame/snk/lasso.h b/src/mame/snk/lasso.h index 537cd3f1694..28f5d5604b1 100644 --- a/src/mame/snk/lasso.h +++ b/src/mame/snk/lasso.h @@ -46,9 +46,9 @@ class lasso_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(coin_inserted); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: /* memory pointers */ @@ -101,16 +101,16 @@ class lasso_state : public driver_device void wwjgtin_set_last_four_colors(); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect, int reverse); void draw_lasso(bitmap_ind16 &bitmap, const rectangle &cliprect); - void chameleo_audio_map(address_map &map); - void chameleo_main_map(address_map &map); - void lasso_audio_map(address_map &map); - void lasso_coprocessor_map(address_map &map); - void lasso_main_map(address_map &map); - void pinbo_audio_io_map(address_map &map); - void pinbo_audio_map(address_map &map); - void pinbo_main_map(address_map &map); - void wwjgtin_audio_map(address_map &map); - void wwjgtin_main_map(address_map &map); + void chameleo_audio_map(address_map &map) ATTR_COLD; + void chameleo_main_map(address_map &map) ATTR_COLD; + void lasso_audio_map(address_map &map) ATTR_COLD; + void lasso_coprocessor_map(address_map &map) ATTR_COLD; + void lasso_main_map(address_map &map) ATTR_COLD; + void pinbo_audio_io_map(address_map &map) ATTR_COLD; + void pinbo_audio_map(address_map &map) ATTR_COLD; + void pinbo_main_map(address_map &map) ATTR_COLD; + void wwjgtin_audio_map(address_map &map) ATTR_COLD; + void wwjgtin_main_map(address_map &map) ATTR_COLD; }; #endif // MAME_SNK_LASSO_H diff --git a/src/mame/snk/mainsnk.cpp b/src/mame/snk/mainsnk.cpp index f216415e3a0..319503b7f1e 100644 --- a/src/mame/snk/mainsnk.cpp +++ b/src/mame/snk/mainsnk.cpp @@ -141,7 +141,7 @@ class mainsnk_state : public driver_device void mainsnk(machine_config &config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -171,9 +171,9 @@ class mainsnk_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect, int scrollx, int scrolly); - void main_map(address_map &map); - void sound_map(address_map &map); - void sound_portmap(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; + void sound_portmap(address_map &map) ATTR_COLD; }; diff --git a/src/mame/snk/mechatt.cpp b/src/mame/snk/mechatt.cpp index cb02c6423a4..1086a955400 100644 --- a/src/mame/snk/mechatt.cpp +++ b/src/mame/snk/mechatt.cpp @@ -169,8 +169,8 @@ class mechatt_state : public driver_device void mechatt(machine_config &config); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -197,9 +197,9 @@ class mechatt_state : public driver_device template void pf_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); void coin_counter_w(uint8_t data); - void mechatt_map(address_map &map); - void sound_map(address_map &map); - void sounda_portmap(address_map &map); + void mechatt_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; + void sounda_portmap(address_map &map) ATTR_COLD; void two_gun_output_w(uint16_t data); uint16_t mechatt_gun_r(offs_t offset); diff --git a/src/mame/snk/miconkit.cpp b/src/mame/snk/miconkit.cpp index 6787965a2d4..7d987338841 100644 --- a/src/mame/snk/miconkit.cpp +++ b/src/mame/snk/miconkit.cpp @@ -73,7 +73,7 @@ class miconkit_state : public driver_device void smiconk(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_maincpu; @@ -86,10 +86,10 @@ class miconkit_state : public driver_device u8 m_select = 0; - void main_map(address_map &map); - void io_map(address_map &map); - void smiconk_main_map(address_map &map); - void smiconk_io_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; + void smiconk_main_map(address_map &map) ATTR_COLD; + void smiconk_io_map(address_map &map) ATTR_COLD; u32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); diff --git a/src/mame/snk/munchmo.cpp b/src/mame/snk/munchmo.cpp index aca1b971743..d43a6a66b84 100644 --- a/src/mame/snk/munchmo.cpp +++ b/src/mame/snk/munchmo.cpp @@ -64,8 +64,8 @@ class munchmo_state : public driver_device void mnchmobl(machine_config &config); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: void nmi_enable_w(int state); @@ -88,8 +88,8 @@ class munchmo_state : public driver_device void draw_background(bitmap_ind16 &bitmap, const rectangle &cliprect); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); - void main_map(address_map &map); - void sound_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; // memory pointers required_shared_ptr m_sprite_xpos; diff --git a/src/mame/snk/ngp.cpp b/src/mame/snk/ngp.cpp index 797ac3f6ec0..d6960b7e578 100644 --- a/src/mame/snk/ngp.cpp +++ b/src/mame/snk/ngp.cpp @@ -153,8 +153,8 @@ class ngp_state : public driver_device, public device_nvram_interface DECLARE_INPUT_CHANGED_MEMBER(power_callback); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: @@ -203,9 +203,9 @@ class ngp_state : public driver_device, public device_nvram_interface DECLARE_DEVICE_IMAGE_LOAD_MEMBER(load_ngp_cart); DECLARE_DEVICE_IMAGE_UNLOAD_MEMBER(unload_ngp_cart); - void ngp_mem(address_map &map); - void z80_io(address_map &map); - void z80_mem(address_map &map); + void ngp_mem(address_map &map) ATTR_COLD; + void z80_io(address_map &map) ATTR_COLD; + void z80_mem(address_map &map) ATTR_COLD; bool m_nvram_loaded = false; required_ioport m_io_controls; diff --git a/src/mame/snk/prehisle.cpp b/src/mame/snk/prehisle.cpp index 07512223a8f..e3a2ce859ad 100644 --- a/src/mame/snk/prehisle.cpp +++ b/src/mame/snk/prehisle.cpp @@ -49,8 +49,8 @@ class prehisle_state : public driver_device void prehisle(machine_config &config); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: void soundcmd_w(u16 data); @@ -67,9 +67,9 @@ class prehisle_state : public driver_device u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void draw_sprites(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void main_program_map(address_map &map); - void sound_io_map(address_map &map); - void sound_program_map(address_map &map); + void main_program_map(address_map &map) ATTR_COLD; + void sound_io_map(address_map &map) ATTR_COLD; + void sound_program_map(address_map &map) ATTR_COLD; required_shared_ptr m_tx_vram; required_shared_ptr m_spriteram; diff --git a/src/mame/snk/snk.h b/src/mame/snk/snk.h index 5bd6558013f..7c3be3aa28f 100644 --- a/src/mame/snk/snk.h +++ b/src/mame/snk/snk.h @@ -71,7 +71,7 @@ class snk_state : public driver_device template ioport_value snk_bonus_r(); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_maincpu; @@ -247,46 +247,46 @@ class snk_state : public driver_device int turbofront_check8(int small, int num); void ymirq_callback_1(int state); - void Y8950_sound_map(address_map &map); - void YM3526_Y8950_sound_map(address_map &map); - void YM3526_YM3526_sound_map(address_map &map); - void YM3812_Y8950_sound_map(address_map &map); - void YM3812_sound_map(address_map &map); - void aso_YM3526_sound_map(address_map &map); - void aso_cpuA_map(address_map &map); - void aso_cpuB_map(address_map &map); - void bermudat_cpuA_map(address_map &map); - void bermudat_cpuB_map(address_map &map); - void countryc_cpuA_map(address_map &map); - void gwar_cpuA_map(address_map &map); - void gwar_cpuB_map(address_map &map); - void gwara_cpuA_map(address_map &map); - void gwara_cpuB_map(address_map &map); - void hal21_cpuA_map(address_map &map); - void hal21_cpuB_map(address_map &map); - void hal21_sound_map(address_map &map); - void hal21_sound_portmap(address_map &map); - void ikari_cpuA_map(address_map &map); - void ikari_cpuB_map(address_map &map); - void jcross_cpuA_map(address_map &map); - void jcross_cpuB_map(address_map &map); - void jcross_sound_map(address_map &map); - void jcross_sound_portmap(address_map &map); - void madcrash_cpuA_map(address_map &map); - void madcrash_cpuB_map(address_map &map); - void madcrush_cpuA_map(address_map &map); - void madcrush_cpuB_map(address_map &map); - void marvins_cpuA_map(address_map &map); - void marvins_cpuB_map(address_map &map); - void marvins_sound_map(address_map &map); - void marvins_sound_portmap(address_map &map); - void sgladiat_cpuA_map(address_map &map); - void sgladiat_cpuB_map(address_map &map); - void tdfever_cpuA_map(address_map &map); - void tdfever_cpuB_map(address_map &map); - void tnk3_YM3526_sound_map(address_map &map); - void tnk3_cpuA_map(address_map &map); - void tnk3_cpuB_map(address_map &map); + void Y8950_sound_map(address_map &map) ATTR_COLD; + void YM3526_Y8950_sound_map(address_map &map) ATTR_COLD; + void YM3526_YM3526_sound_map(address_map &map) ATTR_COLD; + void YM3812_Y8950_sound_map(address_map &map) ATTR_COLD; + void YM3812_sound_map(address_map &map) ATTR_COLD; + void aso_YM3526_sound_map(address_map &map) ATTR_COLD; + void aso_cpuA_map(address_map &map) ATTR_COLD; + void aso_cpuB_map(address_map &map) ATTR_COLD; + void bermudat_cpuA_map(address_map &map) ATTR_COLD; + void bermudat_cpuB_map(address_map &map) ATTR_COLD; + void countryc_cpuA_map(address_map &map) ATTR_COLD; + void gwar_cpuA_map(address_map &map) ATTR_COLD; + void gwar_cpuB_map(address_map &map) ATTR_COLD; + void gwara_cpuA_map(address_map &map) ATTR_COLD; + void gwara_cpuB_map(address_map &map) ATTR_COLD; + void hal21_cpuA_map(address_map &map) ATTR_COLD; + void hal21_cpuB_map(address_map &map) ATTR_COLD; + void hal21_sound_map(address_map &map) ATTR_COLD; + void hal21_sound_portmap(address_map &map) ATTR_COLD; + void ikari_cpuA_map(address_map &map) ATTR_COLD; + void ikari_cpuB_map(address_map &map) ATTR_COLD; + void jcross_cpuA_map(address_map &map) ATTR_COLD; + void jcross_cpuB_map(address_map &map) ATTR_COLD; + void jcross_sound_map(address_map &map) ATTR_COLD; + void jcross_sound_portmap(address_map &map) ATTR_COLD; + void madcrash_cpuA_map(address_map &map) ATTR_COLD; + void madcrash_cpuB_map(address_map &map) ATTR_COLD; + void madcrush_cpuA_map(address_map &map) ATTR_COLD; + void madcrush_cpuB_map(address_map &map) ATTR_COLD; + void marvins_cpuA_map(address_map &map) ATTR_COLD; + void marvins_cpuB_map(address_map &map) ATTR_COLD; + void marvins_sound_map(address_map &map) ATTR_COLD; + void marvins_sound_portmap(address_map &map) ATTR_COLD; + void sgladiat_cpuA_map(address_map &map) ATTR_COLD; + void sgladiat_cpuB_map(address_map &map) ATTR_COLD; + void tdfever_cpuA_map(address_map &map) ATTR_COLD; + void tdfever_cpuB_map(address_map &map) ATTR_COLD; + void tnk3_YM3526_sound_map(address_map &map) ATTR_COLD; + void tnk3_cpuA_map(address_map &map) ATTR_COLD; + void tnk3_cpuB_map(address_map &map) ATTR_COLD; }; #endif // MAME_SNK_SNK_H diff --git a/src/mame/snk/snk6502.h b/src/mame/snk/snk6502.h index e4bd990a43a..440fa8078c0 100644 --- a/src/mame/snk/snk6502.h +++ b/src/mame/snk/snk6502.h @@ -76,7 +76,7 @@ class snk6502_state : public driver_device TILE_GET_INFO_MEMBER(satansat_get_bg_tile_info); TILE_GET_INFO_MEMBER(satansat_get_fg_tile_info); - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; DECLARE_MACHINE_RESET(sasuke); DECLARE_VIDEO_START(satansat); void satansat_palette(palette_device &palette); @@ -92,8 +92,8 @@ class snk6502_state : public driver_device void sasuke_start_counter(); void postload(); - void sasuke_map(address_map &map); - void satansat_map(address_map &map); + void sasuke_map(address_map &map) ATTR_COLD; + void satansat_map(address_map &map) ATTR_COLD; }; class vanguard_state : public snk6502_state @@ -114,8 +114,8 @@ class vanguard_state : public snk6502_state required_device m_highmem; private: - void vanguard_map(address_map &map); - void vanguard_upper_map(address_map &map); + void vanguard_map(address_map &map) ATTR_COLD; + void vanguard_upper_map(address_map &map) ATTR_COLD; }; class fantasy_state : public vanguard_state @@ -134,9 +134,9 @@ class fantasy_state : public vanguard_state private: void fantasy_flipscreen_w(offs_t offset, uint8_t data); - void fantasy_map(address_map &map); - void pballoon_map(address_map &map); - void pballoon_upper_map(address_map &map); + void fantasy_map(address_map &map) ATTR_COLD; + void pballoon_map(address_map &map) ATTR_COLD; + void pballoon_upper_map(address_map &map) ATTR_COLD; required_device m_sound; }; diff --git a/src/mame/snk/snk6502_a.h b/src/mame/snk/snk6502_a.h index bbbd28d126a..02b4c76b5b1 100644 --- a/src/mame/snk/snk6502_a.h +++ b/src/mame/snk/snk6502_a.h @@ -37,7 +37,7 @@ class snk6502_sound_device : public device_t, public device_sound_interface protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // sound stream update overrides virtual void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; @@ -85,9 +85,9 @@ class vanguard_sound_device : public device_t void speech_w(uint8_t data); protected: - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: required_device m_custom; @@ -109,9 +109,9 @@ class fantasy_sound_device : public device_t protected: fantasy_sound_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; required_device m_custom; @@ -128,7 +128,7 @@ class nibbler_sound_device : public fantasy_sound_device nibbler_sound_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 void device_add_mconfig(machine_config &config) override ATTR_COLD; }; @@ -138,8 +138,8 @@ class pballoon_sound_device : public fantasy_sound_device pballoon_sound_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 void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; }; @@ -151,9 +151,9 @@ class sasuke_sound_device : public device_t void sound_w(offs_t offset, uint8_t data); protected: - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: required_device m_custom; @@ -171,9 +171,9 @@ class satansat_sound_device : public device_t void sound_w(offs_t offset, uint8_t data); protected: - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: required_device m_custom; diff --git a/src/mame/snk/snk68.cpp b/src/mame/snk/snk68.cpp index e41925aa570..cacd6ffcbc9 100644 --- a/src/mame/snk/snk68.cpp +++ b/src/mame/snk/snk68.cpp @@ -114,15 +114,15 @@ class snk68_state : public driver_device void sound_w(uint8_t data); void d7759_write_port_0_w(uint8_t data); - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; void common_video_start(); uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void tile_callback_notpow(int &tile, int &fx, int &fy, int ®ion); - void sound_io_map(address_map &map); - void sound_map(address_map &map); + void sound_io_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; private: uint32_t m_fg_tile_offset; @@ -136,8 +136,8 @@ class snk68_state : public driver_device void tile_callback_pow(int &tile, int &fx, int &fy, int ®ion); - void program_map(address_map &map); - void powbl_sound_io_map(address_map &map); + void program_map(address_map &map) ATTR_COLD; + void powbl_sound_io_map(address_map &map) ATTR_COLD; }; class searchar_state : public snk68_state @@ -152,8 +152,8 @@ class searchar_state : public snk68_state void searchar(machine_config &config); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: optional_ioport_array<2> m_rotary_io; @@ -169,7 +169,7 @@ class searchar_state : public snk68_state TILE_GET_INFO_MEMBER(get_tile_info); - void program_map(address_map &map); + void program_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/snk/snk_bbusters_spr.h b/src/mame/snk/snk_bbusters_spr.h index e4f42d1c8e4..d760e1a95e6 100644 --- a/src/mame/snk/snk_bbusters_spr.h +++ b/src/mame/snk/snk_bbusters_spr.h @@ -19,7 +19,7 @@ class snk_bbusters_spr_device : public device_t, public device_gfx_interface void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: DECLARE_GFXDECODE_MEMBER(gfxinfo); diff --git a/src/mame/sony/betacam.cpp b/src/mame/sony/betacam.cpp index f619cc1506b..c4bd7892b3e 100644 --- a/src/mame/sony/betacam.cpp +++ b/src/mame/sony/betacam.cpp @@ -40,8 +40,8 @@ class betacam_state : public driver_device void betacam(machine_config &config); private: - void system_mem_map(address_map &map); - void servo_mem_map(address_map &map); + void system_mem_map(address_map &map) ATTR_COLD; + void servo_mem_map(address_map &map) ATTR_COLD; required_device m_systemcpu; required_device m_servocpu; diff --git a/src/mame/sony/bvm.cpp b/src/mame/sony/bvm.cpp index 6ccbf2ae2ed..2197d951f96 100644 --- a/src/mame/sony/bvm.cpp +++ b/src/mame/sony/bvm.cpp @@ -46,7 +46,7 @@ class bvm_state : public driver_device void bvm(machine_config &config); private: - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; }; diff --git a/src/mame/sony/clie_db.cpp b/src/mame/sony/clie_db.cpp index ae3f9441492..a5ed52821bd 100644 --- a/src/mame/sony/clie_db.cpp +++ b/src/mame/sony/clie_db.cpp @@ -36,7 +36,7 @@ class clie_db_state : public driver_device private: required_device m_maincpu; - void program_map(address_map &map); + void program_map(address_map &map) ATTR_COLD; uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); }; diff --git a/src/mame/sony/cxd8442q.h b/src/mame/sony/cxd8442q.h index b138e80ce40..169c5b6a871 100644 --- a/src/mame/sony/cxd8442q.h +++ b/src/mame/sony/cxd8442q.h @@ -80,8 +80,8 @@ class cxd8442q_device : public device_t public: cxd8442q_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - void map(address_map &map); - void map_fifo_ram(address_map &map); + void map(address_map &map) ATTR_COLD; + void map_fifo_ram(address_map &map) ATTR_COLD; auto out_int_callback() { return out_irq.bind(); } @@ -115,8 +115,8 @@ class cxd8442q_device : public device_t void irq_check(); // 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; // FIFO operations uint32_t read_fifo_size(offs_t offset); diff --git a/src/mame/sony/cxd8452aq.h b/src/mame/sony/cxd8452aq.h index 9c928b87f2d..cd40561ca93 100644 --- a/src/mame/sony/cxd8452aq.h +++ b/src/mame/sony/cxd8452aq.h @@ -21,7 +21,7 @@ class cxd8452aq_device : public device_t, public device_memory_interface public: cxd8452aq_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - void map(address_map &map); + void map(address_map &map) ATTR_COLD; template void set_apbus_address_translator(T &&...args) { m_apbus_virt_to_phys_callback.set(std::forward(args)...); } @@ -78,11 +78,11 @@ class cxd8452aq_device : public device_t, public device_memory_interface emu_timer *m_dma_check; // Bus configuration - void sonic_bus_map(address_map &map); + void sonic_bus_map(address_map &map) ATTR_COLD; // 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 space_config_vector memory_space_config() const override; // Bus access diff --git a/src/mame/sony/dfs500.cpp b/src/mame/sony/dfs500.cpp index 8327e7e77c0..48a3c6de6a1 100644 --- a/src/mame/sony/dfs500.cpp +++ b/src/mame/sony/dfs500.cpp @@ -105,15 +105,15 @@ class dfs500_state : public driver_device void dfs500(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: - void cpanelcpu_mem_map(address_map &map); - void cpanelcpu_io_map(address_map &map); - void maincpu_mem_map(address_map &map); - [[maybe_unused]] void maincpu_io_map(address_map &map); - void effectcpu_mem_map(address_map &map); + void cpanelcpu_mem_map(address_map &map) ATTR_COLD; + void cpanelcpu_io_map(address_map &map) ATTR_COLD; + void maincpu_mem_map(address_map &map) ATTR_COLD; + [[maybe_unused]] void maincpu_io_map(address_map &map) ATTR_COLD; + void effectcpu_mem_map(address_map &map) ATTR_COLD; uint8_t pit_r(offs_t offset); void pit_w(offs_t offset, uint8_t data); uint8_t cpanel_pit_r(offs_t offset); diff --git a/src/mame/sony/dmac3.h b/src/mame/sony/dmac3.h index ef226f839d6..96c6e3f2e5a 100644 --- a/src/mame/sony/dmac3.h +++ b/src/mame/sony/dmac3.h @@ -142,8 +142,8 @@ class dmac3_device : public device_t bool m_irq = false; // Overrides from device_t - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; // Other methods void reset_controller(dmac3_controller controller); diff --git a/src/mame/sony/dmac_0266.h b/src/mame/sony/dmac_0266.h index 6a23b9059a0..5d8d9175bc9 100644 --- a/src/mame/sony/dmac_0266.h +++ b/src/mame/sony/dmac_0266.h @@ -17,15 +17,15 @@ class dmac_0266_device : public device_t auto dma_r_cb() { return m_dma_r.bind(); } auto dma_w_cb() { return m_dma_w.bind(); } - void map(address_map &map); + void map(address_map &map) ATTR_COLD; void eop_w(int state); void req_w(int state); protected: // device_t 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; // register handlers u32 control_r() { return m_control; } diff --git a/src/mame/sony/dmac_0448.h b/src/mame/sony/dmac_0448.h index cc4a90a877a..6f33def5e10 100644 --- a/src/mame/sony/dmac_0448.h +++ b/src/mame/sony/dmac_0448.h @@ -21,12 +21,12 @@ class dmac_0448_device : public device_t template void irq(int state) { set_irq_line(IRQ, state); } template void drq(int state) { set_drq_line(DRQ, state); } - void map(address_map &map); + void map(address_map &map) ATTR_COLD; protected: // device_t 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; void set_irq_line(int number, int state); void set_drq_line(int channel, int state); diff --git a/src/mame/sony/dpsv55.cpp b/src/mame/sony/dpsv55.cpp index f80caebe29f..ae80e5929a7 100644 --- a/src/mame/sony/dpsv55.cpp +++ b/src/mame/sony/dpsv55.cpp @@ -32,7 +32,7 @@ class dpsv55_state : public driver_device void dpsv55(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: HD44780_PIXEL_UPDATE(pixel_update); @@ -40,7 +40,7 @@ class dpsv55_state : public driver_device void p5_w(u8 data); u8 sci_ssr0_r(); - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_lcdc; diff --git a/src/mame/sony/news_38xx.cpp b/src/mame/sony/news_38xx.cpp index 01ad48c368d..9f921bc9143 100644 --- a/src/mame/sony/news_38xx.cpp +++ b/src/mame/sony/news_38xx.cpp @@ -76,13 +76,13 @@ class news_38xx_state : public driver_device protected: // driver_device overrides - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; // address maps - [[maybe_unused]] void cpu_map(address_map &map); - void iop_map(address_map &map); - void iop_vector_map(address_map &map); + [[maybe_unused]] void cpu_map(address_map &map) ATTR_COLD; + void iop_map(address_map &map) ATTR_COLD; + void iop_vector_map(address_map &map) ATTR_COLD; // machine config void common(machine_config &config); diff --git a/src/mame/sony/news_68k.cpp b/src/mame/sony/news_68k.cpp index bab23999176..c5dc24d217c 100644 --- a/src/mame/sony/news_68k.cpp +++ b/src/mame/sony/news_68k.cpp @@ -82,12 +82,12 @@ class news_68k_state : public driver_device protected: // driver_device overrides - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; // address maps - void cpu_map(address_map &map); - void cpu_autovector_map(address_map &map); + void cpu_map(address_map &map) ATTR_COLD; + void cpu_autovector_map(address_map &map) ATTR_COLD; // machine config void common(machine_config &config); diff --git a/src/mame/sony/news_hid.h b/src/mame/sony/news_hid.h index 95d27c6b70f..222ea2d649f 100644 --- a/src/mame/sony/news_hid.h +++ b/src/mame/sony/news_hid.h @@ -22,15 +22,15 @@ class news_hid_hle_device }; template auto irq_out() { return m_irq_out_cb[Device].bind(); } - void map(address_map &map); - void map_68k(address_map &map); - void map_apbus(address_map &map); + void map(address_map &map) ATTR_COLD; + void map_68k(address_map &map) ATTR_COLD; + void map_apbus(address_map &map) ATTR_COLD; protected: // device_t overrides - virtual void device_start() override; - virtual void device_reset() override; - virtual ioport_constructor device_input_ports() const override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; // device_matrix_keyboard_interface overrides virtual void key_make(u8 row, u8 column) override; diff --git a/src/mame/sony/news_r3k.cpp b/src/mame/sony/news_r3k.cpp index cca02ed93d8..0204d4a8795 100644 --- a/src/mame/sony/news_r3k.cpp +++ b/src/mame/sony/news_r3k.cpp @@ -69,11 +69,11 @@ class news_r3k_base_state : public driver_device protected: // driver_device overrides - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; // address maps - void cpu_map(address_map &map); + void cpu_map(address_map &map) ATTR_COLD; // machine config void common(machine_config &config); @@ -156,9 +156,9 @@ class nws3260_state : public news_r3k_base_state void nws3260(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; - void nws3260_map(address_map &map); + void nws3260_map(address_map &map) ATTR_COLD; u32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, rectangle const &cliprect); required_device m_lcd; @@ -182,7 +182,7 @@ class news_r3k_desktop_state : public news_r3k_base_state void nws3720(machine_config &config); protected: - void desktop_cpu_map(address_map &map); + void desktop_cpu_map(address_map &map) ATTR_COLD; }; void nws3260_state::machine_start() diff --git a/src/mame/sony/news_r4k.cpp b/src/mame/sony/news_r4k.cpp index d2d1c679da0..81c5da9935e 100644 --- a/src/mame/sony/news_r4k.cpp +++ b/src/mame/sony/news_r4k.cpp @@ -304,16 +304,16 @@ class news_r4k_state : public driver_device }; // driver_device overrides - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; void machine_common(machine_config &config); // address maps - void cpu_map(address_map &map); - void sonic3_map(address_map &map); - void cpu_map_main_memory(address_map &map); - void cpu_map_debug(address_map &map); + void cpu_map(address_map &map) ATTR_COLD; + void sonic3_map(address_map &map) ATTR_COLD; + void cpu_map_main_memory(address_map &map) ATTR_COLD; + void cpu_map_debug(address_map &map) ATTR_COLD; // Interrupts // See news5000 section of https://github.com/NetBSD/src/blob/trunk/sys/arch/newsmips/include/adrsmap.h diff --git a/src/mame/sony/pockstat.cpp b/src/mame/sony/pockstat.cpp index b72d192ba17..38b424f74e7 100644 --- a/src/mame/sony/pockstat.cpp +++ b/src/mame/sony/pockstat.cpp @@ -72,11 +72,11 @@ class pockstat_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(input_update); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; uint32_t screen_update_pockstat(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); diff --git a/src/mame/sony/ps2sony.cpp b/src/mame/sony/ps2sony.cpp index fcef2da40db..21d1e122ab4 100644 --- a/src/mame/sony/ps2sony.cpp +++ b/src/mame/sony/ps2sony.cpp @@ -224,8 +224,8 @@ class ps2sony_state : public driver_device void ps2sony(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); @@ -253,8 +253,8 @@ class ps2sony_state : public driver_device void iop_timer_irq(int state); - void mem_map(address_map &map); - void iop_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void iop_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_iop; diff --git a/src/mame/sony/psx.cpp b/src/mame/sony/psx.cpp index b00304645a2..b36bb1d1fe1 100644 --- a/src/mame/sony/psx.cpp +++ b/src/mame/sony/psx.cpp @@ -67,8 +67,8 @@ class psx1_state : public driver_device required_device m_maincpu; required_device m_ram; - void psx_map(address_map &map); - void subcpu_map(address_map &map); + void psx_map(address_map &map) ATTR_COLD; + void subcpu_map(address_map &map) ATTR_COLD; required_device m_parallel; required_device m_psxcd; diff --git a/src/mame/sony/psxcd.h b/src/mame/sony/psxcd.h index 33532a9c9a7..4b7f4cbbf9e 100644 --- a/src/mame/sony/psxcd.h +++ b/src/mame/sony/psxcd.h @@ -34,10 +34,10 @@ class psxcd_device : public cdrom_image_device void start_dma(uint8_t *mainram, uint32_t size); protected: - virtual void device_start() override; - virtual void device_stop() override; - virtual void device_reset() override; - virtual const tiny_rom_entry *device_rom_region() const override; + virtual void device_start() override ATTR_COLD; + virtual void device_stop() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; TIMER_CALLBACK_MEMBER(handle_event); diff --git a/src/mame/sony/pve500.cpp b/src/mame/sony/pve500.cpp index 5c017fb69d3..31ad7efd520 100644 --- a/src/mame/sony/pve500.cpp +++ b/src/mame/sony/pve500.cpp @@ -102,13 +102,13 @@ class pve500_state : public driver_device void io_sel_w(uint8_t data); void eeprom_w(uint8_t data); uint8_t eeprom_r(); - void maincpu_io(address_map &map); - void maincpu_prg(address_map &map); - void subcpu_io(address_map &map); - void subcpu_prg(address_map &map); + void maincpu_io(address_map &map) ATTR_COLD; + void maincpu_prg(address_map &map) ATTR_COLD; + void subcpu_io(address_map &map) ATTR_COLD; + void subcpu_prg(address_map &map) ATTR_COLD; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; required_device m_maincpu; required_device m_subcpu; required_device m_cxdio; diff --git a/src/mame/sony/smc777.cpp b/src/mame/sony/smc777.cpp index 297a107cee0..11270557f70 100644 --- a/src/mame/sony/smc777.cpp +++ b/src/mame/sony/smc777.cpp @@ -76,9 +76,9 @@ class smc777_state : public driver_device void smc777(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: void mc6845_w(offs_t offset, uint8_t data); @@ -126,8 +126,8 @@ class smc777_state : public driver_device DECLARE_QUICKLOAD_LOAD_MEMBER(quickload_cb); - void smc777_io(address_map &map); - void smc777_mem(address_map &map); + void smc777_io(address_map &map) ATTR_COLD; + void smc777_mem(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_screen; diff --git a/src/mame/sony/taito_zm.h b/src/mame/sony/taito_zm.h index 80f05ddc499..d7387d21fd5 100644 --- a/src/mame/sony/taito_zm.h +++ b/src/mame/sony/taito_zm.h @@ -31,14 +31,14 @@ class taito_zoom_device : public device_t, public device_mixer_interface void set_use_flash() { m_use_flash = true; } - void taitozoom_mn_map(address_map &map); - void tms57002_map(address_map &map); + void taitozoom_mn_map(address_map &map) ATTR_COLD; + void tms57002_map(address_map &map) ATTR_COLD; protected: // device-level overrides - 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; private: // inherited devices/pointers diff --git a/src/mame/sony/taitogn.cpp b/src/mame/sony/taitogn.cpp index 70aad35d05d..06783b05a54 100644 --- a/src/mame/sony/taitogn.cpp +++ b/src/mame/sony/taitogn.cpp @@ -383,12 +383,12 @@ class taitogn_state : public zn_state uint8_t gnet_mahjong_panel_r(); uint32_t zsg2_ext_r(offs_t offset); - void flashbank_map(address_map &map); - void main_map(address_map &map); - void main_mp_map(address_map &map); + void flashbank_map(address_map &map) ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; + void main_mp_map(address_map &map) ATTR_COLD; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; required_device m_mn10200; required_device m_pccard; diff --git a/src/mame/sony/umatic.cpp b/src/mame/sony/umatic.cpp index ab60273cfb6..858212c0a9e 100644 --- a/src/mame/sony/umatic.cpp +++ b/src/mame/sony/umatic.cpp @@ -28,8 +28,8 @@ class umatic_state : public driver_device void io_write(offs_t offset, uint8_t data); private: - void mem_map(address_map &map); - void io_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_ctc; diff --git a/src/mame/sony/zn.h b/src/mame/sony/zn.h index accc2f74ef4..841a22bee7e 100644 --- a/src/mame/sony/zn.h +++ b/src/mame/sony/zn.h @@ -74,10 +74,10 @@ class zn_state : public driver_device uint16_t unknown_r(offs_t offset, uint16_t mem_mask = ~0); void coin_w(uint8_t data); - void zn_base_map(address_map &map); - void zn_rom_base_map(address_map &map); + void zn_base_map(address_map &map) ATTR_COLD; + void zn_rom_base_map(address_map &map) ATTR_COLD; - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; void ATTR_PRINTF(3,4) verboselog( int n_level, const char *s_fmt, ... ); static uint16_t psxreadword( uint32_t *p_n_psxram, uint32_t n_address ); @@ -118,8 +118,8 @@ class capcom_zn_state : public zn_state void zn_base(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; required_memory_region m_bankedroms; required_memory_bank m_rombank; @@ -128,9 +128,9 @@ class capcom_zn_state : public zn_state required_memory_bank m_soundbank; private: - void main_map(address_map &map); - void qsound_map(address_map &map); - void qsound_portmap(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void qsound_map(address_map &map) ATTR_COLD; + void qsound_portmap(address_map &map) ATTR_COLD; uint16_t kickharness_r(offs_t offset, uint16_t mem_mask = ~0); void bank_w(uint8_t data); @@ -159,7 +159,7 @@ class glpracr_state : public zn1_state } private: - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; }; class zn2_state : public capcom_zn_state @@ -188,7 +188,7 @@ class acclaim_zn_state : public zn_state void coh1000a(machine_config &config); protected: - void coh1000a_map(address_map &map); + void coh1000a_map(address_map &map) ATTR_COLD; private: void acpsx_00_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); @@ -211,8 +211,8 @@ class nbajamex_state : public acclaim_zn_state private: virtual void driver_start() override; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; void bank_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); void sound_80_w(uint16_t data); @@ -220,8 +220,8 @@ class nbajamex_state : public acclaim_zn_state uint16_t sound_08_r(offs_t offset, uint16_t mem_mask = ~0); uint16_t sound_80_r(offs_t offset, uint16_t mem_mask = ~0); - void main_map(address_map &map); - void bank_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void bank_map(address_map &map) ATTR_COLD; std::unique_ptr m_sram; uint32_t m_curr_rombank[2]{}; @@ -247,9 +247,9 @@ class jdredd_state : public acclaim_zn_state int gun_mux_r(); private: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; void vblank(int state); @@ -277,14 +277,14 @@ class atlus_zn_state : public zn_state void coh1001l(machine_config &config); private: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; void bank_w(uint8_t data); void sound_unk_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); - void main_map(address_map &map); - void sound_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; required_memory_region m_bankedroms; required_memory_bank m_rombank; @@ -309,12 +309,12 @@ class visco_zn_state : public zn_state void coh1002v(machine_config &config); private: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; void bank_w(uint8_t data); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; required_memory_region m_bankedroms; required_memory_bank m_rombank; @@ -339,11 +339,11 @@ class raizing_zn_state : public zn_state void coh1002e(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; - void main_map(address_map &map); - void psarc_sound_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void psarc_sound_map(address_map &map) ATTR_COLD; void bank_w(offs_t offset, uint8_t data, uint8_t mem_mask = ~0); void sound_irq_w(uint8_t data); @@ -366,11 +366,11 @@ class beastrzrb_state : public raizing_zn_state void beastrzrb(machine_config &config); private: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; - void sound_map(address_map &map); - void oki_map(address_map &map); + void sound_map(address_map &map) ATTR_COLD; + void oki_map(address_map &map) ATTR_COLD; required_memory_bank m_okibank; }; @@ -388,10 +388,10 @@ class bam2_state : public zn_state void bam2(machine_config &config); private: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; uint16_t m_mcu_command = 0; @@ -419,8 +419,8 @@ class taito_fx_state : public zn_state } protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; void bank_w(offs_t offset, uint8_t data, uint8_t mem_mask = ~0); @@ -442,11 +442,11 @@ class taito_fx1a_state : public taito_fx_state void coh1000ta(machine_config &config); private: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; - void main_map(address_map &map); - void sound_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; void sound_bankswitch_w(uint8_t data); @@ -468,9 +468,9 @@ class taito_fx1b_state : public taito_fx_state void coh1000tb(machine_config &config); private: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; void fram_w(offs_t offset, uint8_t data); uint8_t fram_r(offs_t offset); @@ -508,9 +508,9 @@ class primrag2_state : public zn_state void coh1000w(machine_config &config); private: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; void dma_read(uint32_t *p_n_psxram, uint32_t n_address, int32_t n_size); void dma_write(uint32_t *p_n_psxram, uint32_t n_address, int32_t n_size); @@ -543,14 +543,14 @@ class tecmo_zn_state : public zn_state void coh1002ml(machine_config &config); protected: - void base_map(address_map &map); + void base_map(address_map &map) ATTR_COLD; private: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; - void link_map(address_map &map); - void link_port_map(address_map &map); + void link_map(address_map &map) ATTR_COLD; + void link_port_map(address_map &map) ATTR_COLD; void bank_w(offs_t offset, uint8_t data, uint8_t mem_mask = ~0); @@ -571,10 +571,10 @@ class cbaj_state : public tecmo_zn_state void cbaj(machine_config &config); private: - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; - void z80_map(address_map &map); - void z80_port_map(address_map &map); + void z80_map(address_map &map) ATTR_COLD; + void z80_port_map(address_map &map) ATTR_COLD; uint8_t sound_main_status_r(); uint8_t sound_z80_status_r(); diff --git a/src/mame/sony/znmcu.h b/src/mame/sony/znmcu.h index c2f00b4df38..87d203acff9 100644 --- a/src/mame/sony/znmcu.h +++ b/src/mame/sony/znmcu.h @@ -25,7 +25,7 @@ class znmcu_device : public device_t protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; TIMER_CALLBACK_MEMBER(mcu_tick); diff --git a/src/mame/sord/m5.cpp b/src/mame/sord/m5.cpp index 62cefdc21c1..a3170312dce 100644 --- a/src/mame/sord/m5.cpp +++ b/src/mame/sord/m5.cpp @@ -351,8 +351,8 @@ class m5_state : public driver_device u8 sts_r(); void com_w(u8 data); - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: u8 ppi_pa_r(); @@ -378,10 +378,10 @@ class m5_state : public driver_device void mem64KBF_w(u8 data); void mem64KRX_w(offs_t offset, u8 data); - void fd5_io(address_map &map); - void fd5_mem(address_map &map); - void m5_io(address_map &map); - void m5_mem(address_map &map); + void fd5_io(address_map &map) ATTR_COLD; + void fd5_mem(address_map &map) ATTR_COLD; + void m5_io(address_map &map) ATTR_COLD; + void m5_mem(address_map &map) ATTR_COLD; private: u8 m_ram_mode = 0; @@ -412,8 +412,8 @@ class brno_state : public m5_state void brno(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: u8 ramdisk_r(offs_t offset); @@ -427,8 +427,8 @@ class brno_state : public m5_state DECLARE_SNAPSHOT_LOAD_MEMBER(brno); - void brno_io(address_map &map); - void m5_mem_brno(address_map &map); + void brno_io(address_map &map) ATTR_COLD; + void m5_mem_brno(address_map &map) ATTR_COLD; memory_view m_rom_view; memory_view m_ram_view; diff --git a/src/mame/stern/astinvad.cpp b/src/mame/stern/astinvad.cpp index 5c70e9eb2aa..e7a102479f1 100644 --- a/src/mame/stern/astinvad.cpp +++ b/src/mame/stern/astinvad.cpp @@ -87,8 +87,8 @@ class kamikaze_state : public base_state void kamikaze(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; required_device_array m_ppi8255; uint8_t m_flip_yoffs = 32; // the flip screen logic adds 32 to the Y after flipping @@ -103,8 +103,8 @@ class kamikaze_state : public base_state TIMER_CALLBACK_MEMBER(int_off); TIMER_CALLBACK_MEMBER(int_gen); - void prg_map(address_map &map); - void port_map(address_map &map); + void prg_map(address_map &map) ATTR_COLD; + void port_map(address_map &map) ATTR_COLD; emu_timer *m_int_timer = nullptr; emu_timer *m_int_off_timer = nullptr; @@ -120,7 +120,7 @@ class spcking2_state : public kamikaze_state void spcking2(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: void sound1_w(uint8_t data); @@ -145,8 +145,8 @@ class spaceint_state : public base_state DECLARE_INPUT_CHANGED_MEMBER(coin_inserted); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: void color_latch_w(uint8_t data); @@ -154,8 +154,8 @@ class spaceint_state : public base_state void sound1_w(uint8_t data); void sound2_w(uint8_t data); uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void prg_map(address_map &map); - void port_map(address_map &map); + void prg_map(address_map &map) ATTR_COLD; + void port_map(address_map &map) ATTR_COLD; memory_share_creator m_colorram; uint8_t m_color_latch = 0; diff --git a/src/mame/stern/berzerk.cpp b/src/mame/stern/berzerk.cpp index 63dc11d4793..cbb5736b56d 100644 --- a/src/mame/stern/berzerk.cpp +++ b/src/mame/stern/berzerk.cpp @@ -94,10 +94,10 @@ class berzerk_state : public driver_device void init_moonwarp(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; virtual void sound_reset() override; - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -153,9 +153,9 @@ class berzerk_state : public driver_device void create_nmi_timer(); void start_nmi_timer(); void get_pens(rgb_t *pens); - void berzerk_io_map(address_map &map); - void berzerk_map(address_map &map); - void frenzy_map(address_map &map); + void berzerk_io_map(address_map &map) ATTR_COLD; + void berzerk_map(address_map &map) ATTR_COLD; + void frenzy_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/stern/cliffhgr.cpp b/src/mame/stern/cliffhgr.cpp index 20ed3c5215d..8d4b55bf18a 100644 --- a/src/mame/stern/cliffhgr.cpp +++ b/src/mame/stern/cliffhgr.cpp @@ -109,8 +109,8 @@ class cliffhgr_state : public driver_device void cliffhgr(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: void test_led_w(offs_t offset, uint8_t data); @@ -137,8 +137,8 @@ class cliffhgr_state : public driver_device output_finder<> m_led; required_ioport_array<7> m_banks; - void mainmem(address_map &map); - void mainport(address_map &map); + void mainmem(address_map &map) ATTR_COLD; + void mainport(address_map &map) ATTR_COLD; }; diff --git a/src/mame/stern/mazerbla.cpp b/src/mame/stern/mazerbla.cpp index 857aa3babbd..ae3de68077c 100644 --- a/src/mame/stern/mazerbla.cpp +++ b/src/mame/stern/mazerbla.cpp @@ -173,19 +173,19 @@ class mazerbla_state : public driver_device TIMER_CALLBACK_MEMBER(deferred_ls670_0_w); TIMER_CALLBACK_MEMBER(deferred_ls670_1_w); IRQ_CALLBACK_MEMBER(irq_callback); - void greatgun_cpu3_io_map(address_map &map); - void greatgun_io_map(address_map &map); - void greatgun_sound_map(address_map &map); - void mazerbla_cpu2_io_map(address_map &map); - void mazerbla_cpu2_map(address_map &map); - void mazerbla_cpu3_io_map(address_map &map); - void mazerbla_cpu3_map(address_map &map); - void mazerbla_io_map(address_map &map); - void mazerbla_map(address_map &map); - - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + void greatgun_cpu3_io_map(address_map &map) ATTR_COLD; + void greatgun_io_map(address_map &map) ATTR_COLD; + void greatgun_sound_map(address_map &map) ATTR_COLD; + void mazerbla_cpu2_io_map(address_map &map) ATTR_COLD; + void mazerbla_cpu2_map(address_map &map) ATTR_COLD; + void mazerbla_cpu3_io_map(address_map &map) ATTR_COLD; + void mazerbla_cpu3_map(address_map &map) ATTR_COLD; + void mazerbla_io_map(address_map &map) ATTR_COLD; + void mazerbla_map(address_map &map) ATTR_COLD; + + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; /* devices */ required_device m_maincpu; diff --git a/src/mame/stern/supdrapo.cpp b/src/mame/stern/supdrapo.cpp index 24ffb951c76..191f2f2e957 100644 --- a/src/mame/stern/supdrapo.cpp +++ b/src/mame/stern/supdrapo.cpp @@ -110,13 +110,13 @@ class supdrapo_state : public driver_device void ay8910_outputa_w(uint8_t data); void ay8910_outputb_w(uint8_t data); - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; void supdrapo_palette(palette_device &palette) const; uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void sdpoker_mem(address_map &map); + void sdpoker_mem(address_map &map) ATTR_COLD; }; diff --git a/src/mame/stm/pp.cpp b/src/mame/stm/pp.cpp index 99929ee2b5d..0ee44a9ce17 100644 --- a/src/mame/stm/pp.cpp +++ b/src/mame/stm/pp.cpp @@ -54,8 +54,8 @@ class pp_state : public driver_device void pp(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: SCN2672_DRAW_CHARACTER_MEMBER(display_char); @@ -77,9 +77,9 @@ class pp_state : public driver_device void hld_w(int state); void mode_w(u8 data); - void mem_map(address_map &map); - void io_map(address_map &map); - void display_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; + void display_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_int4; diff --git a/src/mame/stm/stmpc.cpp b/src/mame/stm/stmpc.cpp index 07517a9d94f..b110fa5cdf2 100644 --- a/src/mame/stm/stmpc.cpp +++ b/src/mame/stm/stmpc.cpp @@ -53,15 +53,15 @@ class stmpc_state : public driver_device void stmpc(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: SCN2674_DRAW_CHARACTER_MEMBER(draw_character); - void mem_map(address_map &map); - void io_map(address_map &map); - void char_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; + void char_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_avdc; diff --git a/src/mame/subsino/lastfght.cpp b/src/mame/subsino/lastfght.cpp index 1964d50d626..ee02c28ef41 100644 --- a/src/mame/subsino/lastfght.cpp +++ b/src/mame/subsino/lastfght.cpp @@ -97,9 +97,9 @@ class lastfght_state : public driver_device void lastfght(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: /* memory */ @@ -120,8 +120,8 @@ class lastfght_state : public driver_device void sound_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void lastfght_map(address_map &map); - void ramdac_map(address_map &map); + void lastfght_map(address_map &map) ATTR_COLD; + void ramdac_map(address_map &map) ATTR_COLD; /* video-related */ bitmap_ind16 m_bitmap[2]; diff --git a/src/mame/subsino/subsino.cpp b/src/mame/subsino/subsino.cpp index b53674bceda..dd940a8b975 100644 --- a/src/mame/subsino/subsino.cpp +++ b/src/mame/subsino/subsino.cpp @@ -300,7 +300,7 @@ class subsino_state : public driver_device void init_mtrainnv(); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_shared_ptr m_colorram; @@ -350,20 +350,20 @@ class subsino_state : public driver_device uint32_t screen_update_reels(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); uint32_t screen_update_stbsub_reels(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void crsbingo_map(address_map &map); - void dinofmly_map(address_map &map); - void mtrainnv_map(address_map &map); - void newhunterb_map(address_map &map); - void newhunterd_map(address_map &map); - void ramdac_map(address_map &map); - void sharkpy_map(address_map &map); - void srider_map(address_map &map); - void stbsub_map(address_map &map); - void subsino_iomap(address_map &map); - void tisub_base_map(address_map &map); - void tisub_map(address_map &map); - void victor21_map(address_map &map); - void victor5_map(address_map &map); + void crsbingo_map(address_map &map) ATTR_COLD; + void dinofmly_map(address_map &map) ATTR_COLD; + void mtrainnv_map(address_map &map) ATTR_COLD; + void newhunterb_map(address_map &map) ATTR_COLD; + void newhunterd_map(address_map &map) ATTR_COLD; + void ramdac_map(address_map &map) ATTR_COLD; + void sharkpy_map(address_map &map) ATTR_COLD; + void srider_map(address_map &map) ATTR_COLD; + void stbsub_map(address_map &map) ATTR_COLD; + void subsino_iomap(address_map &map) ATTR_COLD; + void tisub_base_map(address_map &map) ATTR_COLD; + void tisub_map(address_map &map) ATTR_COLD; + void victor21_map(address_map &map) ATTR_COLD; + void victor5_map(address_map &map) ATTR_COLD; }; void subsino_state::machine_start() diff --git a/src/mame/subsino/subsino2.cpp b/src/mame/subsino/subsino2.cpp index f9ce368e3f0..2712971b80b 100644 --- a/src/mame/subsino/subsino2.cpp +++ b/src/mame/subsino/subsino2.cpp @@ -149,7 +149,7 @@ class subsino2_state : public driver_device void init_tbonusal(); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: void ss9601_byte_lo_w(uint8_t data); @@ -227,17 +227,17 @@ class subsino2_state : public driver_device TILE_GET_INFO_MEMBER(ss9601_get_tile_info_1); uint32_t screen_update_subsino2(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void bishjan_map(address_map &map); - void mtrain_io(address_map &map); - void mtrain_base_map(address_map &map); - void mtrain_map(address_map &map); - void tbonusal_map(address_map &map); - void new2001_map(address_map &map); - void ramdac_map(address_map &map); - void saklove_io(address_map &map); - void saklove_map(address_map &map); - void xplan_io(address_map &map); - void xplan_map(address_map &map); + void bishjan_map(address_map &map) ATTR_COLD; + void mtrain_io(address_map &map) ATTR_COLD; + void mtrain_base_map(address_map &map) ATTR_COLD; + void mtrain_map(address_map &map) ATTR_COLD; + void tbonusal_map(address_map &map) ATTR_COLD; + void new2001_map(address_map &map) ATTR_COLD; + void ramdac_map(address_map &map) ATTR_COLD; + void saklove_io(address_map &map) ATTR_COLD; + void saklove_map(address_map &map) ATTR_COLD; + void xplan_io(address_map &map) ATTR_COLD; + void xplan_map(address_map &map) ATTR_COLD; virtual void machine_start() override { m_leds.resolve(); } diff --git a/src/mame/subsino/subsino_io.h b/src/mame/subsino/subsino_io.h index 36b207d7be5..942c5c3cc20 100644 --- a/src/mame/subsino/subsino_io.h +++ b/src/mame/subsino/subsino_io.h @@ -17,8 +17,8 @@ class subsino_io_device : public device_t subsino_io_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 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; // port read/write helpers u8 read_port_data(unsigned port); diff --git a/src/mame/sun/sun1.cpp b/src/mame/sun/sun1.cpp index 0c99ff2ca54..8fdc527ace6 100644 --- a/src/mame/sun/sun1.cpp +++ b/src/mame/sun/sun1.cpp @@ -80,8 +80,8 @@ class sun1_state : public driver_device void sun1(machine_config &config); private: - void sun1_mem(address_map &map); - virtual void machine_reset() override; + void sun1_mem(address_map &map) ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; required_device m_maincpu; required_device m_iouart; diff --git a/src/mame/sun/sun2.cpp b/src/mame/sun/sun2.cpp index e8b39233fad..8e8a1769c3a 100644 --- a/src/mame/sun/sun2.cpp +++ b/src/mame/sun/sun2.cpp @@ -174,8 +174,8 @@ class sun2_state : public driver_device optional_device m_edlc; required_shared_ptr m_bw2_vram; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; uint16_t mmu_r(offs_t offset, uint16_t mem_mask = ~0); void mmu_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); @@ -193,16 +193,16 @@ class sun2_state : public driver_device uint32_t bw2_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void mbustype0space_map(address_map &map); - void mbustype1space_map(address_map &map); - void mbustype2space_map(address_map &map); - void mbustype3space_map(address_map &map); - void sun2_mem(address_map &map); - void edlc_mem(address_map &map); - void vmetype0space_map(address_map &map); - void vmetype1space_map(address_map &map); - void vmetype2space_map(address_map &map); - void vmetype3space_map(address_map &map); + void mbustype0space_map(address_map &map) ATTR_COLD; + void mbustype1space_map(address_map &map) ATTR_COLD; + void mbustype2space_map(address_map &map) ATTR_COLD; + void mbustype3space_map(address_map &map) ATTR_COLD; + void sun2_mem(address_map &map) ATTR_COLD; + void edlc_mem(address_map &map) ATTR_COLD; + void vmetype0space_map(address_map &map) ATTR_COLD; + void vmetype1space_map(address_map &map) ATTR_COLD; + void vmetype2space_map(address_map &map) ATTR_COLD; + void vmetype3space_map(address_map &map) ATTR_COLD; uint16_t *m_rom_ptr, *m_ram_ptr; uint8_t *m_idprom_ptr; diff --git a/src/mame/sun/sun3.cpp b/src/mame/sun/sun3.cpp index a576f4323b0..17cb06831fa 100644 --- a/src/mame/sun/sun3.cpp +++ b/src/mame/sun/sun3.cpp @@ -259,8 +259,8 @@ class sun3_state : public driver_device void ncr5380(device_t *device); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; @@ -298,12 +298,12 @@ class sun3_state : public driver_device TIMER_DEVICE_CALLBACK_MEMBER(sun3_timer); - void sun3_mem(address_map &map); - void vmetype0space_map(address_map &map); - void vmetype0space_novram_map(address_map &map); - void vmetype1space_map(address_map &map); - void vmetype2space_map(address_map &map); - void vmetype3space_map(address_map &map); + void sun3_mem(address_map &map) ATTR_COLD; + void vmetype0space_map(address_map &map) ATTR_COLD; + void vmetype0space_novram_map(address_map &map) ATTR_COLD; + void vmetype1space_map(address_map &map) ATTR_COLD; + void vmetype2space_map(address_map &map) ATTR_COLD; + void vmetype3space_map(address_map &map) ATTR_COLD; uint32_t enable_r(); diff --git a/src/mame/sun/sun3x.cpp b/src/mame/sun/sun3x.cpp index b22af3705ac..62328e4a511 100644 --- a/src/mame/sun/sun3x.cpp +++ b/src/mame/sun/sun3x.cpp @@ -186,7 +186,7 @@ class sun3x_state : public driver_device optional_device m_esp; optional_device m_fdc; optional_device m_floppy_connector; - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; required_shared_ptr m_p_ram; optional_shared_ptr m_bw2_vram; @@ -219,8 +219,8 @@ class sun3x_state : public driver_device uint32_t bw2_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void sun3_460_mem(address_map &map); - void sun3_80_mem(address_map &map); + void sun3_460_mem(address_map &map) ATTR_COLD; + void sun3_80_mem(address_map &map) ATTR_COLD; uint32_t m_enable = 0, m_buserr = 0, m_diag = 0, m_printer = 0, m_irqctrl = 0, m_memreg = 0, m_memerraddr = 0; uint32_t m_iommu[0x800]{}; diff --git a/src/mame/sun/sun4.cpp b/src/mame/sun/sun4.cpp index 5e61c892c94..c5fe54a1f82 100644 --- a/src/mame/sun/sun4.cpp +++ b/src/mame/sun/sun4.cpp @@ -566,10 +566,8 @@ class sun4_base_state : public driver_device void sun4_base(machine_config &config); protected: - virtual void machine_reset() override; - virtual void machine_start() override; - - virtual void scsi_devices_config(machine_config &config) = 0; + virtual void machine_reset() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; u32 debugger_r(offs_t offset, u32 mem_mask = ~0); void debugger_w(offs_t offset, u32 data, u32 mem_mask = ~0); @@ -603,23 +601,23 @@ class sun4_base_state : public driver_device void ncr53c90(device_t *device); - void debugger_map(address_map &map); - void system_asi_map(address_map &map); - void segment_asi_map(address_map &map); - void page_asi_map(address_map &map); - void hw_segment_flush_asi_map(address_map &map); - void hw_page_flush_asi_map(address_map &map); - void hw_context_flush_asi_map(address_map &map); - void user_insn_asi_map(address_map &map); - void super_insn_asi_map(address_map &map); - void user_data_asi_map(address_map &map); - void super_data_asi_map(address_map &map); - void sw_segment_flush_asi_map(address_map &map); - void sw_page_flush_asi_map(address_map &map); - void sw_context_flush_asi_map(address_map &map); - void hw_flush_all_asi_map(address_map &map); - - void type1space_base_map(address_map &map); + void debugger_map(address_map &map) ATTR_COLD; + void system_asi_map(address_map &map) ATTR_COLD; + void segment_asi_map(address_map &map) ATTR_COLD; + void page_asi_map(address_map &map) ATTR_COLD; + void hw_segment_flush_asi_map(address_map &map) ATTR_COLD; + void hw_page_flush_asi_map(address_map &map) ATTR_COLD; + void hw_context_flush_asi_map(address_map &map) ATTR_COLD; + void user_insn_asi_map(address_map &map) ATTR_COLD; + void super_insn_asi_map(address_map &map) ATTR_COLD; + void user_data_asi_map(address_map &map) ATTR_COLD; + void super_data_asi_map(address_map &map) ATTR_COLD; + void sw_segment_flush_asi_map(address_map &map) ATTR_COLD; + void sw_page_flush_asi_map(address_map &map) ATTR_COLD; + void sw_context_flush_asi_map(address_map &map) ATTR_COLD; + void hw_flush_all_asi_map(address_map &map) ATTR_COLD; + + void type1space_base_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_mmu; @@ -684,11 +682,8 @@ class sun4_state : public sun4_base_state void sun4(machine_config &config); -protected: - virtual void scsi_devices_config(machine_config &config) override; - private: - void type1space_map(address_map &map); + void type1space_map(address_map &map) ATTR_COLD; }; class sun4c_state : public sun4_base_state @@ -710,16 +705,13 @@ class sun4c_state : public sun4_base_state void sun4_65(machine_config &config); void sun4_75(machine_config &config); -protected: - virtual void scsi_devices_config(machine_config &config) override; - private: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; template void sbus_irq_w(int state); - void type1space_map(address_map &map); + void type1space_map(address_map &map) ATTR_COLD; required_device m_sbus; required_device_array m_sbus_slot; @@ -1443,8 +1435,15 @@ void sun4_base_state::sun4_base(machine_config &config) m_rs232[1]->dcd_handler().set(m_scc[1], FUNC(z80scc_device::dcdb_w)); m_rs232[1]->cts_handler().set(m_scc[1], FUNC(z80scc_device::ctsb_w)); - // SCSI - scsi_devices_config(config); + NSCSI_BUS(config, "scsibus"); + NSCSI_CONNECTOR(config, "scsibus:0", sun_scsi_devices, "harddisk"); + NSCSI_CONNECTOR(config, "scsibus:1", sun_scsi_devices, nullptr); + NSCSI_CONNECTOR(config, "scsibus:2", sun_scsi_devices, nullptr); + NSCSI_CONNECTOR(config, "scsibus:3", sun_scsi_devices, nullptr); + NSCSI_CONNECTOR(config, "scsibus:4", sun_scsi_devices, nullptr); + NSCSI_CONNECTOR(config, "scsibus:5", sun_scsi_devices, nullptr); + NSCSI_CONNECTOR(config, "scsibus:6", sun_scsi_devices, "cdrom"); + NSCSI_CONNECTOR(config, "scsibus:7", sun_scsi_devices, "ncr53c90", true).set_option_machine_config("ncr53c90", [this] (device_t *device) { ncr53c90(device); }); } void sun4_state::sun4(machine_config &config) @@ -1456,6 +1455,9 @@ void sun4_state::sun4(machine_config &config) sun4_base(config); + // add a tape drive at SCSI ID 4 + subdevice("scsibus:4")->set_default_option("tape"); + // MMU Type 1 device space ADDRESS_MAP_BANK(config, m_type1space).set_map(&sun4_state::type1space_map).set_options(ENDIANNESS_BIG, 32, 32, 0x80000000); @@ -1469,21 +1471,6 @@ void sun4_state::sun4(machine_config &config) m_maincpu->set_mmu(m_mmu); } -void sun4_state::scsi_devices_config(machine_config &config) -{ - // sun4 defaults to having a tape device at SCSI ID 4 - - NSCSI_BUS(config, "scsibus"); - NSCSI_CONNECTOR(config, "scsibus:0", sun_scsi_devices, "harddisk"); - NSCSI_CONNECTOR(config, "scsibus:1", sun_scsi_devices, nullptr); - NSCSI_CONNECTOR(config, "scsibus:2", sun_scsi_devices, nullptr); - NSCSI_CONNECTOR(config, "scsibus:3", sun_scsi_devices, nullptr); - NSCSI_CONNECTOR(config, "scsibus:4", sun_scsi_devices, "tape"); - NSCSI_CONNECTOR(config, "scsibus:5", sun_scsi_devices, nullptr); - NSCSI_CONNECTOR(config, "scsibus:6", sun_scsi_devices, "cdrom"); - NSCSI_CONNECTOR(config, "scsibus:7", sun_scsi_devices, "ncr53c90", true).set_option_machine_config("ncr53c90", [this] (device_t *device) { ncr53c90(device); }); -} - void sun4c_state::sun4c(machine_config &config) { /* basic machine hardware */ @@ -1638,21 +1625,6 @@ void sun4c_state::sun4_75(machine_config &config) m_maincpu->set_clock(40'000'000); } -void sun4c_state::scsi_devices_config(machine_config &config) -{ - // sun4c defaults to having nothing at SCSI ID 4 - - NSCSI_BUS(config, "scsibus"); - NSCSI_CONNECTOR(config, "scsibus:0", sun_scsi_devices, "harddisk"); - NSCSI_CONNECTOR(config, "scsibus:1", sun_scsi_devices, nullptr); - NSCSI_CONNECTOR(config, "scsibus:2", sun_scsi_devices, nullptr); - NSCSI_CONNECTOR(config, "scsibus:3", sun_scsi_devices, nullptr); - NSCSI_CONNECTOR(config, "scsibus:4", sun_scsi_devices, nullptr); - NSCSI_CONNECTOR(config, "scsibus:5", sun_scsi_devices, nullptr); - NSCSI_CONNECTOR(config, "scsibus:6", sun_scsi_devices, "cdrom"); - NSCSI_CONNECTOR(config, "scsibus:7", sun_scsi_devices, "ncr53c90", true).set_option_machine_config("ncr53c90", [this] (device_t *device) { ncr53c90(device); }); -} - /* Boot PROM diff --git a/src/mame/suna/go2000.cpp b/src/mame/suna/go2000.cpp index 34919ad5e49..ca6efd823ab 100644 --- a/src/mame/suna/go2000.cpp +++ b/src/mame/suna/go2000.cpp @@ -60,7 +60,7 @@ class go2000_state : public driver_device void go2000(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: // memory pointers @@ -78,9 +78,9 @@ class go2000_state : public driver_device void pcm_1_bankswitch_w(uint8_t data); uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void main_map(address_map &map); - void sound_io(address_map &map); - void sound_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_io(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/suna/goindol.cpp b/src/mame/suna/goindol.cpp index 5a4f0024041..d99e6d82ff5 100644 --- a/src/mame/suna/goindol.cpp +++ b/src/mame/suna/goindol.cpp @@ -66,9 +66,9 @@ class goindol_state : public driver_device void init_goindol(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: // memory pointers @@ -105,8 +105,8 @@ class goindol_state : public driver_device TILE_GET_INFO_MEMBER(get_bg_tile_info); uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect, int gfxbank, uint8_t *sprite_ram); - void main_map(address_map &map); - void sound_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/suna/suna16.h b/src/mame/suna/suna16.h index 91de1392f98..b03ad1a1cc8 100644 --- a/src/mame/suna/suna16.h +++ b/src/mame/suna/suna16.h @@ -59,7 +59,7 @@ class suna16_state : public driver_device TIMER_DEVICE_CALLBACK_MEMBER(bssoccer_interrupt); - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; DECLARE_MACHINE_START(bestbest); DECLARE_MACHINE_START(bssoccer); DECLARE_MACHINE_START(sunaq); @@ -70,22 +70,22 @@ class suna16_state : public driver_device uint32_t screen_update_bestbest(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect, uint16_t *sprites, int gfx); - void bestbest_map(address_map &map); - void bestbest_pcm_1_iomap(address_map &map); - void bestbest_pcm_1_map(address_map &map); - void bestbest_sound_map(address_map &map); - void bssoccer_map(address_map &map); - void bssoccer_pcm_1_io_map(address_map &map); - void bssoccer_pcm_1_map(address_map &map); - void bssoccer_pcm_2_io_map(address_map &map); - void bssoccer_pcm_2_map(address_map &map); - void bssoccer_sound_map(address_map &map); - void sunaq_map(address_map &map); - void sunaq_sound_map(address_map &map); - void uballoon_map(address_map &map); - void uballoon_pcm_1_io_map(address_map &map); - void uballoon_pcm_1_map(address_map &map); - void uballoon_sound_map(address_map &map); + void bestbest_map(address_map &map) ATTR_COLD; + void bestbest_pcm_1_iomap(address_map &map) ATTR_COLD; + void bestbest_pcm_1_map(address_map &map) ATTR_COLD; + void bestbest_sound_map(address_map &map) ATTR_COLD; + void bssoccer_map(address_map &map) ATTR_COLD; + void bssoccer_pcm_1_io_map(address_map &map) ATTR_COLD; + void bssoccer_pcm_1_map(address_map &map) ATTR_COLD; + void bssoccer_pcm_2_io_map(address_map &map) ATTR_COLD; + void bssoccer_pcm_2_map(address_map &map) ATTR_COLD; + void bssoccer_sound_map(address_map &map) ATTR_COLD; + void sunaq_map(address_map &map) ATTR_COLD; + void sunaq_sound_map(address_map &map) ATTR_COLD; + void uballoon_map(address_map &map) ATTR_COLD; + void uballoon_pcm_1_io_map(address_map &map) ATTR_COLD; + void uballoon_pcm_1_map(address_map &map) ATTR_COLD; + void uballoon_sound_map(address_map &map) ATTR_COLD; required_device m_maincpu; optional_device m_pcm1; diff --git a/src/mame/suna/suna8.h b/src/mame/suna/suna8.h index 7dc93f0499f..51d5837b43c 100644 --- a/src/mame/suna/suna8.h +++ b/src/mame/suna/suna8.h @@ -67,7 +67,7 @@ class suna8_state : public driver_device void init_suna8(); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: enum GFXBANK_TYPE_T @@ -151,25 +151,25 @@ class suna8_state : public driver_device void draw_text_sprites(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, int start, int end, int ypos, bool write_mask); void brickzn_decrypt(); - void brickzn11_map(address_map &map); - void brickzn_io_map(address_map &map); - void brickzn_map(address_map &map); - void brickzn_pcm_io_map(address_map &map); - void brickzn_pcm_map(address_map &map); - void brickzn_sound_map(address_map &map); - void decrypted_opcodes_map(address_map &map); - void hardhea2_map(address_map &map); - void hardhea2b_map(address_map &map); - void hardhea2b_decrypted_opcodes_map(address_map &map); - void hardhead_io_map(address_map &map); - void hardhead_map(address_map &map); - void hardhead_sound_io_map(address_map &map); - void hardhead_sound_map(address_map &map); - void rranger_io_map(address_map &map); - void rranger_map(address_map &map); - void rranger_sound_map(address_map &map); - void sparkman_map(address_map &map); - void starfigh_map(address_map &map); + void brickzn11_map(address_map &map) ATTR_COLD; + void brickzn_io_map(address_map &map) ATTR_COLD; + void brickzn_map(address_map &map) ATTR_COLD; + void brickzn_pcm_io_map(address_map &map) ATTR_COLD; + void brickzn_pcm_map(address_map &map) ATTR_COLD; + void brickzn_sound_map(address_map &map) ATTR_COLD; + void decrypted_opcodes_map(address_map &map) ATTR_COLD; + void hardhea2_map(address_map &map) ATTR_COLD; + void hardhea2b_map(address_map &map) ATTR_COLD; + void hardhea2b_decrypted_opcodes_map(address_map &map) ATTR_COLD; + void hardhead_io_map(address_map &map) ATTR_COLD; + void hardhead_map(address_map &map) ATTR_COLD; + void hardhead_sound_io_map(address_map &map) ATTR_COLD; + void hardhead_sound_map(address_map &map) ATTR_COLD; + void rranger_io_map(address_map &map) ATTR_COLD; + void rranger_map(address_map &map) ATTR_COLD; + void rranger_sound_map(address_map &map) ATTR_COLD; + void sparkman_map(address_map &map) ATTR_COLD; + void starfigh_map(address_map &map) ATTR_COLD; required_device m_maincpu; optional_shared_ptr m_hardhead_ip; diff --git a/src/mame/sunelectronics/arabian.cpp b/src/mame/sunelectronics/arabian.cpp index 8a88ebed965..db9666e6ce5 100644 --- a/src/mame/sunelectronics/arabian.cpp +++ b/src/mame/sunelectronics/arabian.cpp @@ -73,9 +73,9 @@ class arabian_state : public driver_device void arabian(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: // memory pointers @@ -122,8 +122,8 @@ class arabian_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void blit_area(uint8_t plane, uint16_t src, uint8_t x, uint8_t y, uint8_t sx, uint8_t sy); - void main_io_map(address_map &map); - void main_map(address_map &map); + void main_io_map(address_map &map) ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/sunelectronics/blockch.cpp b/src/mame/sunelectronics/blockch.cpp index bc1bd49c086..673393525e2 100644 --- a/src/mame/sunelectronics/blockch.cpp +++ b/src/mame/sunelectronics/blockch.cpp @@ -66,7 +66,7 @@ class blockch_state : public driver_device void blockch(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_maincpu; @@ -80,8 +80,8 @@ class blockch_state : public driver_device u8 m_ball_y = 0; u8 m_vctrl = 0; - void main_map(address_map &map); - void io_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; u32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); TIMER_DEVICE_CALLBACK_MEMBER(scanline); diff --git a/src/mame/sunelectronics/dai3wksi.cpp b/src/mame/sunelectronics/dai3wksi.cpp index 67794852d7c..12aaac0cb8a 100644 --- a/src/mame/sunelectronics/dai3wksi.cpp +++ b/src/mame/sunelectronics/dai3wksi.cpp @@ -97,7 +97,7 @@ class dai3wksi_state : public driver_device int warp1_protection_r() { return m_audio_data[0] & 1; } protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: // devices/pointers @@ -112,7 +112,7 @@ class dai3wksi_state : public driver_device required_shared_ptr m_videoram; required_ioport_array<3> m_inputs; - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; // video u8 m_flipscreen = 0; diff --git a/src/mame/sunelectronics/ikki.cpp b/src/mame/sunelectronics/ikki.cpp index 1d9f5982fbf..c4387985bd9 100644 --- a/src/mame/sunelectronics/ikki.cpp +++ b/src/mame/sunelectronics/ikki.cpp @@ -47,9 +47,9 @@ class ikki_state : public driver_device void ikki(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -77,8 +77,8 @@ class ikki_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); TIMER_DEVICE_CALLBACK_MEMBER(irq); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); - void main_map(address_map &map); - void sub_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sub_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/sunelectronics/kangaroo.cpp b/src/mame/sunelectronics/kangaroo.cpp index 03bb7e721f6..f3e4a107a91 100644 --- a/src/mame/sunelectronics/kangaroo.cpp +++ b/src/mame/sunelectronics/kangaroo.cpp @@ -185,10 +185,10 @@ class kangaroo_state : public driver_device void nomcu(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; private: // memory pointers @@ -209,8 +209,8 @@ class kangaroo_state : public driver_device void videoram_write(uint16_t offset, uint8_t data, uint8_t mask); void blitter_execute(); - void sound_map(address_map &map); - void sound_portmap(address_map &map); + void sound_map(address_map &map) ATTR_COLD; + void sound_portmap(address_map &map) ATTR_COLD; }; @@ -224,8 +224,8 @@ class kangaroo_mcu_state : public kangaroo_state void mcu(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: // MCU simulation (for now) @@ -234,7 +234,7 @@ class kangaroo_mcu_state : public kangaroo_state uint8_t mcu_sim_r(); void mcu_sim_w(uint8_t data); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/sunelectronics/route16.cpp b/src/mame/sunelectronics/route16.cpp index 7c43bb85aee..63af17076e9 100644 --- a/src/mame/sunelectronics/route16.cpp +++ b/src/mame/sunelectronics/route16.cpp @@ -184,9 +184,9 @@ class speakres_state : public route16_state void stratvox_dac_w(uint8_t data); DECLARE_MACHINE_START(speakres); - void speakres_cpu1_map(address_map &map); - void stratvox_cpu1_map(address_map &map); - void stratvox_cpu2_map(address_map &map); + void speakres_cpu1_map(address_map &map) ATTR_COLD; + void stratvox_cpu1_map(address_map &map) ATTR_COLD; + void stratvox_cpu2_map(address_map &map) ATTR_COLD; required_device m_sn; required_device m_dac; diff --git a/src/mame/sunelectronics/route16.h b/src/mame/sunelectronics/route16.h index b5c2a78d8a9..4d0ae1b6668 100644 --- a/src/mame/sunelectronics/route16.h +++ b/src/mame/sunelectronics/route16.h @@ -37,7 +37,7 @@ class route16_state : public driver_device void init_vscompmj(); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; void out0_w(uint8_t data); void out1_w(uint8_t data); @@ -57,13 +57,13 @@ class route16_state : public driver_device uint32_t screen_update_jongpute(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); private: - void cpu1_io_map(address_map &map); - void route16_cpu1_map(address_map &map); - void route16_cpu2_map(address_map &map); - void routex_cpu1_map(address_map &map); - void jongpute_cpu1_map(address_map &map); - void vscompmj_cpu1_map(address_map &map); - void vscompmj_decrypted_opcodes(address_map &map); + void cpu1_io_map(address_map &map) ATTR_COLD; + void route16_cpu1_map(address_map &map) ATTR_COLD; + void route16_cpu2_map(address_map &map) ATTR_COLD; + void routex_cpu1_map(address_map &map) ATTR_COLD; + void jongpute_cpu1_map(address_map &map) ATTR_COLD; + void vscompmj_cpu1_map(address_map &map) ATTR_COLD; + void vscompmj_decrypted_opcodes(address_map &map) ATTR_COLD; protected: required_device m_cpu1; diff --git a/src/mame/sunelectronics/shangha3.cpp b/src/mame/sunelectronics/shangha3.cpp index 93afe21ba8d..b8a7f7e4572 100644 --- a/src/mame/sunelectronics/shangha3.cpp +++ b/src/mame/sunelectronics/shangha3.cpp @@ -76,7 +76,7 @@ class shangha3_state : public driver_device void init_shangha3(); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; protected: required_device m_maincpu; @@ -107,7 +107,7 @@ class shangha3_state : public driver_device uint16_t prot_r(); void prot_w(uint16_t data); - void program_map(address_map &map); + void program_map(address_map &map) ATTR_COLD; }; class heberpop_state : public shangha3_state @@ -127,13 +127,13 @@ class heberpop_state : public shangha3_state required_device m_audiocpu; required_device m_soundlatch; - void sound_program_map(address_map &map); - void sound_io_map(address_map &map); + void sound_program_map(address_map &map) ATTR_COLD; + void sound_io_map(address_map &map) ATTR_COLD; private: void coinctrl_w(uint8_t data); - void program_map(address_map &map); + void program_map(address_map &map) ATTR_COLD; }; class blocken_state : public heberpop_state @@ -153,8 +153,8 @@ class blocken_state : public heberpop_state void coinctrl_w(uint8_t data); - void program_map(address_map &map); - void oki_map(address_map &map); + void program_map(address_map &map) ATTR_COLD; + void oki_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/sunelectronics/shanghai.cpp b/src/mame/sunelectronics/shanghai.cpp index c0fda2fbf31..3e6de85feff 100644 --- a/src/mame/sunelectronics/shanghai.cpp +++ b/src/mame/sunelectronics/shanghai.cpp @@ -57,13 +57,13 @@ class shanghai_state : public driver_device void shanghai_palette(palette_device &palette) const; INTERRUPT_GEN_MEMBER(half_vblank_irq); - void hd63484_map(address_map &map); - void kothello_map(address_map &map); - void kothello_sound_map(address_map &map); - void shangha2_map(address_map &map); - void shangha2_portmap(address_map &map); - void shanghai_map(address_map &map); - void shanghai_portmap(address_map &map); + void hd63484_map(address_map &map) ATTR_COLD; + void kothello_map(address_map &map) ATTR_COLD; + void kothello_sound_map(address_map &map) ATTR_COLD; + void shangha2_map(address_map &map) ATTR_COLD; + void shangha2_portmap(address_map &map) ATTR_COLD; + void shanghai_map(address_map &map) ATTR_COLD; + void shanghai_portmap(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_screen; diff --git a/src/mame/sunelectronics/tonton.cpp b/src/mame/sunelectronics/tonton.cpp index 2536cdc9b70..d40cc20ce60 100644 --- a/src/mame/sunelectronics/tonton.cpp +++ b/src/mame/sunelectronics/tonton.cpp @@ -54,8 +54,8 @@ class tonton_state : public driver_device void ay_bout_w(uint8_t data); required_device m_maincpu; required_device m_hopper; - void tonton_io(address_map &map); - void tonton_map(address_map &map); + void tonton_io(address_map &map) ATTR_COLD; + void tonton_map(address_map &map) ATTR_COLD; }; #define MAIN_CLOCK XTAL(21'477'272) diff --git a/src/mame/sunwise/jankenmn.cpp b/src/mame/sunwise/jankenmn.cpp index af95b344fe0..e5a4a28be45 100644 --- a/src/mame/sunwise/jankenmn.cpp +++ b/src/mame/sunwise/jankenmn.cpp @@ -180,10 +180,10 @@ class jankenmn_state : public driver_device void lamps2_w(uint8_t data); void lamps3_w(uint8_t data); - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; - void jankenmn_map(address_map &map); - void jankenmn_port_map(address_map &map); + void jankenmn_map(address_map &map) ATTR_COLD; + void jankenmn_port_map(address_map &map) ATTR_COLD; required_device m_maincpu; output_finder<2> m_digits; diff --git a/src/mame/svi/svi318.cpp b/src/mame/svi/svi318.cpp index 1d643dbcfc5..d0b00798385 100644 --- a/src/mame/svi/svi318.cpp +++ b/src/mame/svi/svi318.cpp @@ -99,12 +99,12 @@ class svi3x8_state : public driver_device DECLARE_DEVICE_IMAGE_LOAD_MEMBER(cart_load); - void svi3x8_io(address_map &map); - void svi3x8_io_bank(address_map &map); - void svi3x8_mem(address_map &map); + void svi3x8_io(address_map &map) ATTR_COLD; + void svi3x8_io_bank(address_map &map) ATTR_COLD; + void svi3x8_mem(address_map &map) ATTR_COLD; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; required_device m_maincpu; required_device m_ram; diff --git a/src/mame/svision/svis_snd.h b/src/mame/svision/svis_snd.h index 9612423141b..29634596b15 100644 --- a/src/mame/svision/svis_snd.h +++ b/src/mame/svision/svis_snd.h @@ -38,7 +38,7 @@ class svision_sound_device : public device_t, public device_sound_interface protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // sound stream update overrides virtual void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; diff --git a/src/mame/svision/svision.cpp b/src/mame/svision/svision.cpp index 9a13b93ef3b..573262426f5 100644 --- a/src/mame/svision/svision.cpp +++ b/src/mame/svision/svision.cpp @@ -57,8 +57,8 @@ class svision_state : public driver_device void svisionn(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; required_device m_maincpu; required_device m_sound; @@ -106,7 +106,7 @@ class svision_state : public driver_device TIMER_CALLBACK_MEMBER(timer); - void program_map(address_map &map); + void program_map(address_map &map) ATTR_COLD; void svision_base(machine_config &config); }; @@ -122,7 +122,7 @@ class svisions_state : public svision_state void svisions(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_ioport m_joy2; @@ -137,7 +137,7 @@ class svisions_state : public svision_state TIMER_CALLBACK_MEMBER(pet_timer); TIMER_DEVICE_CALLBACK_MEMBER(pet_timer_dev); - void program_map(address_map &map); + void program_map(address_map &map) ATTR_COLD; }; class tvlink_state : public svision_state @@ -150,8 +150,8 @@ class tvlink_state : public svision_state void tvlinkp(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: uint32_t m_tvlink_palette[4]{}; // 0x40? rgb8 @@ -162,7 +162,7 @@ class tvlink_state : public svision_state uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void program_map(address_map &map); + void program_map(address_map &map) ATTR_COLD; }; TIMER_CALLBACK_MEMBER(svisions_state::pet_timer) diff --git a/src/mame/swtpc/swtpc.cpp b/src/mame/swtpc/swtpc.cpp index 8c8701cdd9b..73a1b79a6d0 100644 --- a/src/mame/swtpc/swtpc.cpp +++ b/src/mame/swtpc/swtpc.cpp @@ -122,10 +122,10 @@ class swtpc_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(maincpu_clock_change); private: - virtual void machine_reset() override; - virtual void machine_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_ram; diff --git a/src/mame/swtpc/swtpc09.h b/src/mame/swtpc/swtpc09.h index d25844c498e..2719746fded 100644 --- a/src/mame/swtpc/swtpc09.h +++ b/src/mame/swtpc/swtpc09.h @@ -129,15 +129,15 @@ class swtpc09_state : public driver_device uint8_t unmapped_r(offs_t offset); void unmapped_w(offs_t offset, uint8_t data); - void flex_dc5_piaide_mem(address_map &map); - void flex_dmaf2_mem(address_map &map); - void mp09_mem(address_map &map); - void uniflex_dmaf2_mem(address_map &map); - void uniflex_dmaf3_mem(address_map &map); - void os9_mem(address_map &map); - - virtual void machine_start() override; - virtual void machine_reset() override; + void flex_dc5_piaide_mem(address_map &map) ATTR_COLD; + void flex_dmaf2_mem(address_map &map) ATTR_COLD; + void mp09_mem(address_map &map) ATTR_COLD; + void uniflex_dmaf2_mem(address_map &map) ATTR_COLD; + void uniflex_dmaf3_mem(address_map &map) ATTR_COLD; + void os9_mem(address_map &map) ATTR_COLD; + + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; void swtpc09_irq_handler(uint8_t peripheral, uint8_t state); diff --git a/src/mame/synertek/ktm3.cpp b/src/mame/synertek/ktm3.cpp index d14d89dfe1e..36554136a03 100644 --- a/src/mame/synertek/ktm3.cpp +++ b/src/mame/synertek/ktm3.cpp @@ -46,7 +46,7 @@ class ktm3_state : public driver_device template int sw_r(); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: u32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); @@ -55,8 +55,8 @@ class ktm3_state : public driver_device void allram_w(offs_t offset, u8 data); u8 keyboard_r(offs_t offset); - void pcpu_map(address_map &map); - void vcpu_map(address_map &map); + void pcpu_map(address_map &map) ATTR_COLD; + void vcpu_map(address_map &map) ATTR_COLD; void signal_w(int state); diff --git a/src/mame/synertek/mbc020.cpp b/src/mame/synertek/mbc020.cpp index fbeca9ef132..ecbe05fd867 100644 --- a/src/mame/synertek/mbc020.cpp +++ b/src/mame/synertek/mbc020.cpp @@ -51,7 +51,7 @@ class mbc020_state : public driver_device MC6845_UPDATE_ROW(update_row); MC6845_ON_UPDATE_ADDR_CHANGED(update_cb); - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_shared_ptr m_videoram; diff --git a/src/mame/synertek/sym1.cpp b/src/mame/synertek/sym1.cpp index 44b93d1c63b..37a4e234fe6 100644 --- a/src/mame/synertek/sym1.cpp +++ b/src/mame/synertek/sym1.cpp @@ -78,7 +78,7 @@ class sym1_state : public driver_device uint8_t m_riot_port_a; uint8_t m_riot_port_b; emu_timer *m_led_update; - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; virtual void machine_start() override { m_digits.resolve(); } TIMER_CALLBACK_MEMBER(led_refresh); TIMER_DEVICE_CALLBACK_MEMBER(cass_r); @@ -100,7 +100,7 @@ class sym1_state : public driver_device std::unique_ptr m_riot_ram; std::unique_ptr m_dummy_ram; bool m_cb2 = false; - void sym1_map(address_map &map); + void sym1_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_ram; diff --git a/src/mame/ta/alphatpc16.cpp b/src/mame/ta/alphatpc16.cpp index 71218834645..c94e41a14d1 100644 --- a/src/mame/ta/alphatpc16.cpp +++ b/src/mame/ta/alphatpc16.cpp @@ -86,14 +86,14 @@ class alphatpc16_state : public driver_device void alphatpc16(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: - void apc16_io(address_map &map); - void apc16_map(address_map &map); - void apc16_z80_io(address_map &map); - void apc16_z80_map(address_map &map); - void ef9345(address_map &map); + void apc16_io(address_map &map) ATTR_COLD; + void apc16_map(address_map &map) ATTR_COLD; + void apc16_z80_io(address_map &map) ATTR_COLD; + void apc16_z80_map(address_map &map) ATTR_COLD; + void ef9345(address_map &map) ATTR_COLD; u8 p1_r(); void p1_w(u8 data); diff --git a/src/mame/ta/alphatpx.cpp b/src/mame/ta/alphatpx.cpp index 5f0625647a4..a6a53191afb 100644 --- a/src/mame/ta/alphatpx.cpp +++ b/src/mame/ta/alphatpx.cpp @@ -109,8 +109,8 @@ class alphatp_12_state : public driver_device void alphatp2(machine_config &config); void alphatp2u(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: @@ -132,9 +132,9 @@ class alphatp_12_state : public driver_device void beep_w(u8 data); void bank_w(u8 data); - void alphatp2_io(address_map &map); - void alphatp2_map(address_map &map); - void alphatp2_mem(address_map &map); + void alphatp2_io(address_map &map) ATTR_COLD; + void alphatp2_map(address_map &map) ATTR_COLD; + void alphatp2_mem(address_map &map) ATTR_COLD; required_device m_bankdev; required_device m_kbdmcu; @@ -182,8 +182,8 @@ class alphatp_34_state : public driver_device void alphatp3(machine_config &config); void alphatp30(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: u32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); @@ -216,11 +216,11 @@ class alphatp_34_state : public driver_device u8* vramext_addr_xlate(offs_t offset); - void alphatp30_8088_io(address_map &map); - void alphatp30_8088_map(address_map &map); - void alphatp3_io(address_map &map); - void alphatp3_map(address_map &map); - void alphatp3_mem(address_map &map); + void alphatp30_8088_io(address_map &map) ATTR_COLD; + void alphatp30_8088_map(address_map &map) ATTR_COLD; + void alphatp3_io(address_map &map) ATTR_COLD; + void alphatp3_map(address_map &map) ATTR_COLD; + void alphatp3_mem(address_map &map) ATTR_COLD; required_device m_bankdev; required_device m_kbdmcu; diff --git a/src/mame/ta/alphatro.cpp b/src/mame/ta/alphatro.cpp index 25354502cfa..227adc2d6a8 100644 --- a/src/mame/ta/alphatro.cpp +++ b/src/mame/ta/alphatro.cpp @@ -83,8 +83,8 @@ class alphatro_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(alphatro_break); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: uint8_t bicom_r(offs_t offset); @@ -104,11 +104,11 @@ class alphatro_state : public driver_device std::pair load_cart(device_image_interface &image, generic_slot_device *slot); DECLARE_DEVICE_IMAGE_LOAD_MEMBER(cart_load) { return load_cart(image, m_cart); } - void alphatro_io(address_map &map); - void alphatro_map(address_map &map); - void cartbank_map(address_map &map); - void monbank_map(address_map &map); - void rombank_map(address_map &map); + void alphatro_io(address_map &map) ATTR_COLD; + void alphatro_map(address_map &map) ATTR_COLD; + void cartbank_map(address_map &map) ATTR_COLD; + void monbank_map(address_map &map) ATTR_COLD; + void rombank_map(address_map &map) ATTR_COLD; void update_banking(); const bool m_is_ntsc; diff --git a/src/mame/tab/e22_kbd.h b/src/mame/tab/e22_kbd.h index b3f35769763..f90375cf0aa 100644 --- a/src/mame/tab/e22_kbd.h +++ b/src/mame/tab/e22_kbd.h @@ -38,9 +38,9 @@ class e22_kbd_hle_device : public device_t, protected: // device_t overrides - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; - virtual void device_reset() override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; // device_buffered_serial_interface overrides virtual void tra_callback() override; diff --git a/src/mame/tab/tabe22.cpp b/src/mame/tab/tabe22.cpp index 03157aca83c..a65b96980ea 100644 --- a/src/mame/tab/tabe22.cpp +++ b/src/mame/tab/tabe22.cpp @@ -68,7 +68,7 @@ class tabe22_state : public driver_device void tabe22(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_maincpu; @@ -78,12 +78,12 @@ class tabe22_state : public driver_device required_region_ptr m_chargen; required_device m_vram_bank; - void mem_map(address_map &map); - void io_map(address_map &map); - void vram_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; + void vram_map(address_map &map) ATTR_COLD; - void char_map(address_map &map); - void attr_map(address_map &map); + void char_map(address_map &map) ATTR_COLD; + void attr_map(address_map &map) ATTR_COLD; void video_ctrl_w(uint8_t data); void crt_brightness_w(uint8_t data); diff --git a/src/mame/taito/2mindril.cpp b/src/mame/taito/2mindril.cpp index 9729636019d..d07b98e2ef2 100644 --- a/src/mame/taito/2mindril.cpp +++ b/src/mame/taito/2mindril.cpp @@ -58,8 +58,8 @@ class _2mindril_state : public taito_f3_state void init_drill(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: /* input-related */ @@ -80,7 +80,7 @@ class _2mindril_state : public taito_f3_state //INTERRUPT_GEN_MEMBER(drill_device_irq); void irqhandler(int state); - void drill_map(address_map &map); + void drill_map(address_map &map) ATTR_COLD; #ifdef UNUSED_FUNCTION protected: diff --git a/src/mame/taito/40love.h b/src/mame/taito/40love.h index abb5c4baa2e..75bb61e52bf 100644 --- a/src/mame/taito/40love.h +++ b/src/mame/taito/40love.h @@ -51,14 +51,14 @@ class fortyl_state : public driver_device void draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect ); void draw_pixram( bitmap_ind16 &bitmap, const rectangle &cliprect ); - void _40love_map(address_map &map); - void _40lovebl_map(address_map &map); - void sound_map(address_map &map); - void undoukai_map(address_map &map); + void _40love_map(address_map &map) ATTR_COLD; + void _40lovebl_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; + void undoukai_map(address_map &map) ATTR_COLD; - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; void bank_select_w(uint8_t data); uint8_t snd_flag_r(); diff --git a/src/mame/taito/arkanoid.h b/src/mame/taito/arkanoid.h index 4c800f49d7e..0821ad8ed3b 100644 --- a/src/mame/taito/arkanoid.h +++ b/src/mame/taito/arkanoid.h @@ -106,19 +106,19 @@ class arkanoid_state : public driver_device uint8_t hexaa_sub_90_r(); uint8_t input_mux_r(); TILE_GET_INFO_MEMBER(get_bg_tile_info); - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; uint32_t screen_update_arkanoid(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); uint32_t screen_update_hexa(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect ); - void arkanoid_map(address_map &map); - void bootleg_map(address_map &map); - void brixian_map(address_map &map); - void hexa_map(address_map &map); - void hexaa_map(address_map &map); - void hexaa_sub_iomap(address_map &map); - void hexaa_sub_map(address_map &map); + void arkanoid_map(address_map &map) ATTR_COLD; + void bootleg_map(address_map &map) ATTR_COLD; + void brixian_map(address_map &map) ATTR_COLD; + void hexa_map(address_map &map) ATTR_COLD; + void hexaa_map(address_map &map) ATTR_COLD; + void hexaa_sub_iomap(address_map &map) ATTR_COLD; + void hexaa_sub_map(address_map &map) ATTR_COLD; }; #endif // MAME_TAITO_ARKANOID_H diff --git a/src/mame/taito/ashnojoe.cpp b/src/mame/taito/ashnojoe.cpp index f68d481bbe9..ae5deaf47e8 100644 --- a/src/mame/taito/ashnojoe.cpp +++ b/src/mame/taito/ashnojoe.cpp @@ -109,9 +109,9 @@ class ashnojoe_state : public driver_device void ashnojoe(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: // memory pointers @@ -151,9 +151,9 @@ class ashnojoe_state : public driver_device TILE_GET_INFO_MEMBER(get_tile_info_lowest); u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void vclk_cb(int state); - void main_map(address_map &map); - void sound_map(address_map &map); - void sound_portmap(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; + void sound_portmap(address_map &map) ATTR_COLD; }; diff --git a/src/mame/taito/asuka.cpp b/src/mame/taito/asuka.cpp index 977eaae87d6..6cf60029b1c 100644 --- a/src/mame/taito/asuka.cpp +++ b/src/mame/taito/asuka.cpp @@ -336,7 +336,7 @@ class base_state : public driver_device void eto(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; // memory pointers required_memory_bank m_audiobank; @@ -354,10 +354,10 @@ class base_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void screen_vblank(int state); - void z80_map(address_map &map); + void z80_map(address_map &map) ATTR_COLD; private: - void eto_map(address_map &map); + void eto_map(address_map &map) ATTR_COLD; }; @@ -375,8 +375,8 @@ class msm_state : public base_state void asuka(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: // memory pointers @@ -395,8 +395,8 @@ class msm_state : public base_state void msm5205_stop_w(u8 data); void msm5205_vck(int state); - void asuka_map(address_map &map); - void z80_map(address_map &map); + void asuka_map(address_map &map) ATTR_COLD; + void z80_map(address_map &map) ATTR_COLD; }; @@ -421,8 +421,8 @@ class bonzeadv_state : public base_state INTERRUPT_GEN_MEMBER(interrupt); TIMER_DEVICE_CALLBACK_MEMBER(cchip_irq_clear_cb); - void main_map(address_map &map); - void z80_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void z80_map(address_map &map) ATTR_COLD; }; @@ -437,7 +437,7 @@ class cadash_state : public base_state void cadash(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: // memory pointers @@ -450,9 +450,9 @@ class cadash_state : public base_state void share_w(offs_t offset, u16 data); INTERRUPT_GEN_MEMBER(interrupt); - void main_map(address_map &map); - void sub_io(address_map &map); - void sub_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sub_io(address_map &map) ATTR_COLD; + void sub_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/taito/bigevglf.cpp b/src/mame/taito/bigevglf.cpp index 88201baa4a7..08ee3e08fa2 100644 --- a/src/mame/taito/bigevglf.cpp +++ b/src/mame/taito/bigevglf.cpp @@ -101,9 +101,9 @@ class bigevglf_state : public driver_device void bigevglf(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: // memory pointers @@ -160,11 +160,11 @@ class bigevglf_state : public driver_device TIMER_CALLBACK_MEMBER(deferred_ls74_w); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); - void main_portmap(address_map &map); - void sub_portmap(address_map &map); - void main_map(address_map &map); - void sound_map(address_map &map); - void sub_map(address_map &map); + void main_portmap(address_map &map) ATTR_COLD; + void sub_portmap(address_map &map) ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; + void sub_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/taito/bingowav.cpp b/src/mame/taito/bingowav.cpp index fe1551b385f..010987f781c 100644 --- a/src/mame/taito/bingowav.cpp +++ b/src/mame/taito/bingowav.cpp @@ -58,12 +58,12 @@ class bingowav_state : public driver_device { } void bingowav(machine_config &config); - void bingowav_audio_map(address_map &map); - void bingowav_control_map(address_map &map); - void bingowav_drive_map(address_map &map); - void bingowav_main_map(address_map &map); + void bingowav_audio_map(address_map &map) ATTR_COLD; + void bingowav_control_map(address_map &map) ATTR_COLD; + void bingowav_drive_map(address_map &map) ATTR_COLD; + void bingowav_main_map(address_map &map) ATTR_COLD; protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_maincpu; diff --git a/src/mame/taito/bking.h b/src/mame/taito/bking.h index df2a992265e..d01f4f18e0a 100644 --- a/src/mame/taito/bking.h +++ b/src/mame/taito/bking.h @@ -96,19 +96,19 @@ class bking_state : public driver_device void unk_w(uint8_t data); void port_b_w(uint8_t data); TILE_GET_INFO_MEMBER(get_tile_info); - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; void bking_palette(palette_device &palette) const; DECLARE_MACHINE_START(bking3); DECLARE_MACHINE_RESET(bking3); DECLARE_MACHINE_RESET(common); uint32_t screen_update_bking(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void screen_vblank_bking(int state); - void bking3_io_map(address_map &map); - void bking_audio_map(address_map &map); - void bking_io_map(address_map &map); - void bking_map(address_map &map); + void bking3_io_map(address_map &map) ATTR_COLD; + void bking_audio_map(address_map &map) ATTR_COLD; + void bking_io_map(address_map &map) ATTR_COLD; + void bking_map(address_map &map) ATTR_COLD; }; #endif // MAME_TAITO_BKING_H diff --git a/src/mame/taito/bublbobl.h b/src/mame/taito/bublbobl.h index a0b8cecc1c3..3c4a1432166 100644 --- a/src/mame/taito/bublbobl.h +++ b/src/mame/taito/bublbobl.h @@ -117,16 +117,16 @@ class bublbobl_state : public driver_device uint32_t screen_update_bublbobl(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void configure_banks(); - void bootleg_map(address_map &map); - void bublbobl_maincpu_map(address_map &map); - void common_maincpu_map(address_map &map); - void sound_map(address_map &map); - void subcpu_map(address_map &map); - void tokio_map(address_map &map); - void tokio_map_bootleg(address_map &map); - void tokio_map_mcu(address_map &map); - void tokio_sound_map(address_map &map); - void tokio_subcpu_map(address_map &map); + void bootleg_map(address_map &map) ATTR_COLD; + void bublbobl_maincpu_map(address_map &map) ATTR_COLD; + void common_maincpu_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; + void subcpu_map(address_map &map) ATTR_COLD; + void tokio_map(address_map &map) ATTR_COLD; + void tokio_map_bootleg(address_map &map) ATTR_COLD; + void tokio_map_mcu(address_map &map) ATTR_COLD; + void tokio_sound_map(address_map &map) ATTR_COLD; + void tokio_subcpu_map(address_map &map) ATTR_COLD; protected: TIMER_CALLBACK_MEMBER(irq_ack); diff --git a/src/mame/taito/buggychl.cpp b/src/mame/taito/buggychl.cpp index d75011ffbe1..8fb045a3777 100644 --- a/src/mame/taito/buggychl.cpp +++ b/src/mame/taito/buggychl.cpp @@ -150,8 +150,8 @@ class buggychl_state : public driver_device ioport_value pedal_in_r(); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: // memory pointers @@ -207,8 +207,8 @@ class buggychl_state : public driver_device void draw_fg(bitmap_ind16 &bitmap, const rectangle &cliprect); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); - void main_map(address_map &map); - void sound_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/taito/capr1.cpp b/src/mame/taito/capr1.cpp index a91a70a5538..8d1e9c29b35 100644 --- a/src/mame/taito/capr1.cpp +++ b/src/mame/taito/capr1.cpp @@ -53,7 +53,7 @@ class capr1_state : public driver_device required_device m_maincpu; void cspin2(machine_config &config); - void cspin2_map(address_map &map); + void cspin2_map(address_map &map) ATTR_COLD; }; void capr1_state::output_w(u8 data) diff --git a/src/mame/taito/caprcyc.cpp b/src/mame/taito/caprcyc.cpp index 3e96a4bc3a7..02d998c0b5c 100644 --- a/src/mame/taito/caprcyc.cpp +++ b/src/mame/taito/caprcyc.cpp @@ -31,7 +31,7 @@ class caprcyc_state : public driver_device required_device m_maincpu; void caprcyc(machine_config &config); - void caprcyc_map(address_map &map); + void caprcyc_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/taito/chaknpop.cpp b/src/mame/taito/chaknpop.cpp index 32a424b151e..2d62e45ecda 100644 --- a/src/mame/taito/chaknpop.cpp +++ b/src/mame/taito/chaknpop.cpp @@ -157,9 +157,9 @@ class chaknpop_state : public driver_device void chaknpop(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: // devices @@ -216,7 +216,7 @@ class chaknpop_state : public driver_device void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); void draw_bitmap(bitmap_ind16 &bitmap, const rectangle &cliprect); - void prg_map(address_map &map); + void prg_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/taito/changela.cpp b/src/mame/taito/changela.cpp index 3dafe3ffdaf..03cef1dd793 100644 --- a/src/mame/taito/changela.cpp +++ b/src/mame/taito/changela.cpp @@ -57,9 +57,9 @@ class changela_state : public driver_device void changela(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: // devices @@ -152,7 +152,7 @@ class changela_state : public driver_device void draw_river(bitmap_ind16 &bitmap, int sy); void draw_tree(bitmap_ind16 &bitmap, int sy, int tree_num); - void changela_map(address_map &map); + void changela_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/taito/cpzodiac.cpp b/src/mame/taito/cpzodiac.cpp index b894544398f..4fdcc0d2cfb 100644 --- a/src/mame/taito/cpzodiac.cpp +++ b/src/mame/taito/cpzodiac.cpp @@ -52,15 +52,15 @@ class cpzodiac_state : public driver_device void cpzodiac(machine_config &config); private: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; required_device m_maincpu; required_device m_audiocpu; required_memory_bank m_bank; - void main_map(address_map &map); - void main_io_map(address_map &map); - void sound_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void main_io_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/taito/crbaloon.h b/src/mame/taito/crbaloon.h index 5e55ac4b590..354300fc063 100644 --- a/src/mame/taito/crbaloon.h +++ b/src/mame/taito/crbaloon.h @@ -37,8 +37,8 @@ class crbaloon_state : public driver_device ioport_value pc3092_r(); protected: - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_shared_ptr m_videoram; @@ -76,8 +76,8 @@ class crbaloon_state : public driver_device void crbaloon_audio_set_breath_enable(int enabled); void crbaloon_audio_set_appear_enable(int enabled); void crbaloon_audio(machine_config &config); - void main_io_map(address_map &map); - void main_map(address_map &map); + void main_io_map(address_map &map) ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; }; #endif // MAME_TAITO_CRBALOON_H diff --git a/src/mame/taito/cucaracha.cpp b/src/mame/taito/cucaracha.cpp index d8989a01f3f..31de42850f8 100644 --- a/src/mame/taito/cucaracha.cpp +++ b/src/mame/taito/cucaracha.cpp @@ -42,10 +42,10 @@ class cucaracha_state : public driver_device void out9_w(uint8_t data); void ym_porta_w(uint8_t data); - void main_map(address_map &map); - void sound_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; required_device m_maincpu; }; diff --git a/src/mame/taito/cyclemb.cpp b/src/mame/taito/cyclemb.cpp index af03ba3440b..63de7816a58 100644 --- a/src/mame/taito/cyclemb.cpp +++ b/src/mame/taito/cyclemb.cpp @@ -150,8 +150,8 @@ class cyclemb_state : public driver_device void init_skydest(); void init_cyclemb(); - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; void cyclemb_palette(palette_device &palette) const; uint32_t screen_update_cyclemb(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); @@ -164,11 +164,11 @@ class cyclemb_state : public driver_device void cyclemb_dial_reset(); void cyclemb(machine_config &config); void skydest(machine_config &config); - void cyclemb_io(address_map &map); - void cyclemb_map(address_map &map); - void cyclemb_sound_io(address_map &map); - void cyclemb_sound_map(address_map &map); - void skydest_io(address_map &map); + void cyclemb_io(address_map &map) ATTR_COLD; + void cyclemb_map(address_map &map) ATTR_COLD; + void cyclemb_sound_io(address_map &map) ATTR_COLD; + void cyclemb_sound_map(address_map &map) ATTR_COLD; + void skydest_io(address_map &map) ATTR_COLD; }; diff --git a/src/mame/taito/darius.cpp b/src/mame/taito/darius.cpp index bd185162d00..d24bdb426c2 100644 --- a/src/mame/taito/darius.cpp +++ b/src/mame/taito/darius.cpp @@ -180,9 +180,9 @@ class darius_state : public driver_device protected: virtual void device_post_load() override; - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: /* memory pointers */ @@ -251,11 +251,11 @@ class darius_state : public driver_device void update_psg1(int port); void update_da(); void adpcm_int(int state); - void darius_cpub_map(address_map &map); - void darius_map(address_map &map); - void darius_sound2_io_map(address_map &map); - void darius_sound2_map(address_map &map); - void darius_sound_map(address_map &map); + void darius_cpub_map(address_map &map) ATTR_COLD; + void darius_map(address_map &map) ATTR_COLD; + void darius_sound2_io_map(address_map &map) ATTR_COLD; + void darius_sound2_map(address_map &map) ATTR_COLD; + void darius_sound_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/taito/dinoking.cpp b/src/mame/taito/dinoking.cpp index 25e8d535f84..0c611300501 100644 --- a/src/mame/taito/dinoking.cpp +++ b/src/mame/taito/dinoking.cpp @@ -60,7 +60,7 @@ class dinoking_state : public driver_device void status_w(offs_t offset, u8 data); u8 status_r(offs_t offset); - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); }; diff --git a/src/mame/taito/exzisus.cpp b/src/mame/taito/exzisus.cpp index 7909af9aef7..a70c3b868a8 100644 --- a/src/mame/taito/exzisus.cpp +++ b/src/mame/taito/exzisus.cpp @@ -68,7 +68,7 @@ class exzisus_state : public driver_device void exzisus(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_cpuc; @@ -86,10 +86,10 @@ class exzisus_state : public driver_device void cpuc_reset_w(uint8_t data); uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void cpua_map(address_map &map); - void cpub_map(address_map &map); - void cpuc_map(address_map &map); - void sound_map(address_map &map); + void cpua_map(address_map &map) ATTR_COLD; + void cpub_map(address_map &map) ATTR_COLD; + void cpuc_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/taito/fgoal.cpp b/src/mame/taito/fgoal.cpp index 4f2c4aba61e..5531ff9c696 100644 --- a/src/mame/taito/fgoal.cpp +++ b/src/mame/taito/fgoal.cpp @@ -49,9 +49,9 @@ class fgoal_state : public driver_device int _80_r(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: // devices @@ -105,7 +105,7 @@ class fgoal_state : public driver_device static int intensity(int bits); unsigned video_ram_address(); - void cpu_map(address_map &map); + void cpu_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/taito/galastrm.cpp b/src/mame/taito/galastrm.cpp index 072ca51a67f..52efb717f28 100644 --- a/src/mame/taito/galastrm.cpp +++ b/src/mame/taito/galastrm.cpp @@ -101,7 +101,7 @@ class galastrm_state : public driver_device int frame_counter_r(); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -151,7 +151,7 @@ class galastrm_state : public driver_device void draw_sprites_pre(int x_offs, int y_offs); void draw_sprites(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, const u32 *primasks, int priority); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/taito/gladiatr.h b/src/mame/taito/gladiatr.h index 917b7742a33..6b743008f86 100644 --- a/src/mame/taito/gladiatr.h +++ b/src/mame/taito/gladiatr.h @@ -81,7 +81,7 @@ class gladiatr_state_base : public driver_device void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); - void cpu2_map(address_map &map); + void cpu2_map(address_map &map) ATTR_COLD; }; @@ -120,8 +120,8 @@ class gladiatr_state : public gladiatr_state_base void init_gladiatr(); protected: - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_memory_bank m_mainbank; @@ -161,10 +161,10 @@ class gladiatr_state : public gladiatr_state_base u32 screen_update_gladiatr(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void gladiatr_cpu1_io(address_map &map); - void gladiatr_cpu1_map(address_map &map); - void gladiatr_cpu2_io(address_map &map); - void gladiatr_cpu3_map(address_map &map); + void gladiatr_cpu1_io(address_map &map) ATTR_COLD; + void gladiatr_cpu1_map(address_map &map) ATTR_COLD; + void gladiatr_cpu2_io(address_map &map) ATTR_COLD; + void gladiatr_cpu3_map(address_map &map) ATTR_COLD; }; class ppking_state : public gladiatr_state_base @@ -182,8 +182,8 @@ class ppking_state : public gladiatr_state_base void ppking(machine_config &config); protected: - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_shared_ptr m_nvram; @@ -216,8 +216,8 @@ class ppking_state : public gladiatr_state_base u32 screen_update_ppking(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void ppking_cpu1_io(address_map &map); - void ppking_cpu1_map(address_map &map); - void ppking_cpu2_io(address_map &map); - void ppking_cpu3_map(address_map &map); + void ppking_cpu1_io(address_map &map) ATTR_COLD; + void ppking_cpu1_map(address_map &map) ATTR_COLD; + void ppking_cpu2_io(address_map &map) ATTR_COLD; + void ppking_cpu3_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/taito/grchamp.h b/src/mame/taito/grchamp.h index a0123e20634..2d08b240902 100644 --- a/src/mame/taito/grchamp.h +++ b/src/mame/taito/grchamp.h @@ -44,9 +44,9 @@ class grchamp_state : public driver_device void grchamp(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: void cpu0_outputs_w(offs_t offset, uint8_t data); @@ -86,11 +86,11 @@ class grchamp_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); void draw_objects(int y, uint8_t *objdata); - void main_map(address_map &map); - void main_portmap(address_map &map); - void sound_map(address_map &map); - void sub_map(address_map &map); - void sub_portmap(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void main_portmap(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; + void sub_map(address_map &map) ATTR_COLD; + void sub_portmap(address_map &map) ATTR_COLD; uint8_t m_cpu0_out[16]{}; uint8_t m_cpu1_out[16]{}; diff --git a/src/mame/taito/groundfx.cpp b/src/mame/taito/groundfx.cpp index b9e35d90749..8c54c18ef5a 100644 --- a/src/mame/taito/groundfx.cpp +++ b/src/mame/taito/groundfx.cpp @@ -103,7 +103,7 @@ class groundfx_state : public driver_device void init_groundfx(); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: required_shared_ptr m_ram; @@ -141,7 +141,7 @@ class groundfx_state : public driver_device INTERRUPT_GEN_MEMBER(interrupt); void draw_sprites(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, int do_hack, int x_offs, int y_offs); - void prg_map(address_map &map); + void prg_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/taito/gsword.h b/src/mame/taito/gsword.h index 865dcca2fbc..1a3b32312f5 100644 --- a/src/mame/taito/gsword.h +++ b/src/mame/taito/gsword.h @@ -65,13 +65,13 @@ class gsword_state_base : public driver_device TILE_GET_INFO_MEMBER(get_bg_tile_info); - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; uint32_t screen_update_gsword(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); - void cpu1_map(address_map &map); + void cpu1_map(address_map &map) ATTR_COLD; }; @@ -108,13 +108,13 @@ class gsword_state : public gsword_state_base void gsword_palette(palette_device &palette) const; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; - void cpu1_io_map(address_map &map); - void cpu2_io_map(address_map &map); - void cpu2_map(address_map &map); - void cpu3_map(address_map &map); + void cpu1_io_map(address_map &map) ATTR_COLD; + void cpu2_io_map(address_map &map) ATTR_COLD; + void cpu2_map(address_map &map) ATTR_COLD; + void cpu3_map(address_map &map) ATTR_COLD; private: required_device m_soundlatch; @@ -158,12 +158,12 @@ class josvolly_state : public gsword_state_base void josvolly_palette(palette_device &palette) const; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; - void josvolly_cpu1_io_map(address_map &map); - void josvolly_cpu2_io_map(address_map &map); - void josvolly_cpu2_map(address_map &map); + void josvolly_cpu1_io_map(address_map &map) ATTR_COLD; + void josvolly_cpu2_io_map(address_map &map) ATTR_COLD; + void josvolly_cpu2_map(address_map &map) ATTR_COLD; private: required_ioport_array<2> m_dip_switches; diff --git a/src/mame/taito/gunbustr.cpp b/src/mame/taito/gunbustr.cpp index fb7bec6636e..0efc0d0bdb4 100644 --- a/src/mame/taito/gunbustr.cpp +++ b/src/mame/taito/gunbustr.cpp @@ -99,10 +99,10 @@ class gunbustr_state : public driver_device void init_gunbustr(); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: - void prg_map(address_map &map); + void prg_map(address_map &map) ATTR_COLD; TIMER_CALLBACK_MEMBER(trigger_irq5); diff --git a/src/mame/taito/halleys.cpp b/src/mame/taito/halleys.cpp index f2eb5444263..c65e84b7d21 100644 --- a/src/mame/taito/halleys.cpp +++ b/src/mame/taito/halleys.cpp @@ -237,9 +237,9 @@ class halleys_state : public driver_device void init_halleysp(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: std::unique_ptr m_render_layer_alloc; @@ -304,8 +304,8 @@ class halleys_state : public driver_device required_device m_audiocpu; required_device m_palette; required_device m_soundlatch; - void halleys_map(address_map &map); - void sound_map(address_map &map); + void halleys_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/taito/haplucky.cpp b/src/mame/taito/haplucky.cpp index 9097059e0f7..6c163772de5 100644 --- a/src/mame/taito/haplucky.cpp +++ b/src/mame/taito/haplucky.cpp @@ -49,7 +49,7 @@ class haplucky_state : public driver_device void haplucky(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_maincpu; @@ -59,9 +59,9 @@ class haplucky_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void main_map(address_map &map); - void sound_map(address_map &map); - void sound_io_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; + void sound_io_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/taito/heromem.cpp b/src/mame/taito/heromem.cpp index acee5274fcd..8357ea40c75 100644 --- a/src/mame/taito/heromem.cpp +++ b/src/mame/taito/heromem.cpp @@ -57,11 +57,11 @@ class heromem_state : public driver_device required_device m_tc0091lvc_l; required_device m_tc0091lvc_r; - void maincpu_prg_map(address_map &map); - void audiocpu_l_prg_map(address_map &map); - void audiocpu_r_prg_map(address_map &map); - void tc0091lvc_l_prg_map(address_map &map); - void tc0091lvc_r_prg_map(address_map &map); + void maincpu_prg_map(address_map &map) ATTR_COLD; + void audiocpu_l_prg_map(address_map &map) ATTR_COLD; + void audiocpu_r_prg_map(address_map &map) ATTR_COLD; + void tc0091lvc_l_prg_map(address_map &map) ATTR_COLD; + void tc0091lvc_r_prg_map(address_map &map) ATTR_COLD; void screen_vblank_l(int state) { if (state) { m_tc0091lvc_l->screen_eof(); } } void screen_vblank_r(int state) { if (state) { m_tc0091lvc_l->screen_eof(); } } diff --git a/src/mame/taito/invqix.cpp b/src/mame/taito/invqix.cpp index 7ac94f436b4..f20c0224077 100644 --- a/src/mame/taito/invqix.cpp +++ b/src/mame/taito/invqix.cpp @@ -142,7 +142,7 @@ class invqix_state : public driver_device void invqix(machine_config &config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); @@ -158,7 +158,7 @@ class invqix_state : public driver_device void vctl_w(uint16_t data); - void invqix_prg_map(address_map &map); + void invqix_prg_map(address_map &map) ATTR_COLD; // devices required_device m_maincpu; diff --git a/src/mame/taito/jollyjgr.cpp b/src/mame/taito/jollyjgr.cpp index 667bb03273b..012a1c87760 100644 --- a/src/mame/taito/jollyjgr.cpp +++ b/src/mame/taito/jollyjgr.cpp @@ -170,9 +170,9 @@ class jollyjgr_state : public driver_device void jollyjgr_misc_w(uint8_t data); void jollyjgr_coin_lookout_w(uint8_t data); TILE_GET_INFO_MEMBER(get_bg_tile_info); - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; void jollyjgr_palette(palette_device &palette) const; uint32_t screen_update_jollyjgr(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); uint32_t screen_update_fspider(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); @@ -182,8 +182,8 @@ class jollyjgr_state : public driver_device required_device m_gfxdecode; required_device m_palette; required_device m_bm_palette; - void fspider_map(address_map &map); - void jollyjgr_map(address_map &map); + void fspider_map(address_map &map) ATTR_COLD; + void jollyjgr_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/taito/ksayakyu.cpp b/src/mame/taito/ksayakyu.cpp index c1d9d575eb6..e133328d757 100644 --- a/src/mame/taito/ksayakyu.cpp +++ b/src/mame/taito/ksayakyu.cpp @@ -96,9 +96,9 @@ class ksayakyu_state : public driver_device void ksayakyu(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: // memory pointers @@ -137,8 +137,8 @@ class ksayakyu_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); - void maincpu_map(address_map &map); - void soundcpu_map(address_map &map); + void maincpu_map(address_map &map) ATTR_COLD; + void soundcpu_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/taito/lgp.cpp b/src/mame/taito/lgp.cpp index b8c77182aaf..e530b3f102c 100644 --- a/src/mame/taito/lgp.cpp +++ b/src/mame/taito/lgp.cpp @@ -92,7 +92,7 @@ class lgp_state : public driver_device void init_lgp(); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: uint8_t ldp_read(); @@ -101,10 +101,10 @@ class lgp_state : public driver_device void ld_command_strobe_cb(int state); void lgp_palette(palette_device &palette) const; - void main_io_map(address_map &map); - void main_program_map(address_map &map); - void sound_io_map(address_map &map); - void sound_program_map(address_map &map); + void main_io_map(address_map &map) ATTR_COLD; + void main_program_map(address_map &map) ATTR_COLD; + void sound_io_map(address_map &map) ATTR_COLD; + void sound_program_map(address_map &map) ATTR_COLD; required_device m_laserdisc; required_shared_ptr m_tile_ram; diff --git a/src/mame/taito/lkage.cpp b/src/mame/taito/lkage.cpp index 8db00717860..6823d7bbe97 100644 --- a/src/mame/taito/lkage.cpp +++ b/src/mame/taito/lkage.cpp @@ -139,9 +139,9 @@ class lkage_state : public driver_device void lkage(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; void sh_nmi_disable_w(uint8_t data); void sh_nmi_enable_w(uint8_t data); @@ -158,11 +158,11 @@ class lkage_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void draw_sprites(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - virtual void program_map(address_map &map); - virtual void io_map(address_map &map); - void bootleg_program_map(address_map &map); - void mcu_map(address_map &map); - virtual void sound_map(address_map &map); + virtual void program_map(address_map &map) ATTR_COLD; + virtual void io_map(address_map &map) ATTR_COLD; + void bootleg_program_map(address_map &map) ATTR_COLD; + void mcu_map(address_map &map) ATTR_COLD; + virtual void sound_map(address_map &map) ATTR_COLD; required_shared_ptr m_vreg; required_shared_ptr m_scroll; @@ -206,8 +206,8 @@ class lkagem_state : public lkage_state void lkagem(machine_config &config); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: uint8_t exrom_data_r(); @@ -215,9 +215,9 @@ class lkagem_state : public lkage_state void msm_volume_w(uint8_t data); template void ay_volume_w(uint8_t data); - virtual void program_map(address_map &map) override; + virtual void program_map(address_map &map) override ATTR_COLD; virtual void io_map(address_map &map) override { } - virtual void sound_map(address_map &map) override; + virtual void sound_map(address_map &map) override ATTR_COLD; required_device m_ta7630; required_device m_msm; diff --git a/src/mame/taito/lsasquad.h b/src/mame/taito/lsasquad.h index fc66897da7f..3e9210831d7 100644 --- a/src/mame/taito/lsasquad.h +++ b/src/mame/taito/lsasquad.h @@ -36,7 +36,7 @@ class lsasquad_state : public driver_device void storming(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: // memory pointers @@ -74,11 +74,11 @@ class lsasquad_state : public driver_device int draw_layer_daikaiju(bitmap_ind16 &bitmap, const rectangle &cliprect, int offs, int *previd, int type); void drawbg(bitmap_ind16 &bitmap, const rectangle &cliprect, int type); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect, uint8_t priority); - void daikaiju_map(address_map &map); - void daikaiju_sound_map(address_map &map); - void lsasquad_map(address_map &map); - void lsasquad_sound_map(address_map &map); - void storming_map(address_map &map); + void daikaiju_map(address_map &map) ATTR_COLD; + void daikaiju_sound_map(address_map &map) ATTR_COLD; + void lsasquad_map(address_map &map) ATTR_COLD; + void lsasquad_sound_map(address_map &map) ATTR_COLD; + void storming_map(address_map &map) ATTR_COLD; }; #endif // MAME_TAITO_LSASQAD_H diff --git a/src/mame/taito/marinedt.cpp b/src/mame/taito/marinedt.cpp index 0842e203361..258e37bbed3 100644 --- a/src/mame/taito/marinedt.cpp +++ b/src/mame/taito/marinedt.cpp @@ -130,10 +130,10 @@ class marinedt_state : public driver_device protected: // driver_device overrides - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: // screen updates @@ -150,8 +150,8 @@ class marinedt_state : public driver_device void output_w(uint8_t data); TILE_GET_INFO_MEMBER(get_tile_info); - void marinedt_io(address_map &map); - void marinedt_map(address_map &map); + void marinedt_io(address_map &map) ATTR_COLD; + void marinedt_map(address_map &map) ATTR_COLD; // devices required_device m_maincpu; diff --git a/src/mame/taito/minivadr.cpp b/src/mame/taito/minivadr.cpp index de29c66c4db..3e1dba41698 100644 --- a/src/mame/taito/minivadr.cpp +++ b/src/mame/taito/minivadr.cpp @@ -56,7 +56,7 @@ class minivadr_state : public driver_device required_shared_ptr m_videoram; uint32_t screen_update_minivadr(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); required_device m_maincpu; - void minivadr_map(address_map &map); + void minivadr_map(address_map &map) ATTR_COLD; }; /************************************* diff --git a/src/mame/taito/missb2.cpp b/src/mame/taito/missb2.cpp index 76503840b98..690cf3ab023 100644 --- a/src/mame/taito/missb2.cpp +++ b/src/mame/taito/missb2.cpp @@ -44,8 +44,8 @@ class missb2_state : public bublbobl_state void init_missb2(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: void missb2_bg_bank_w(uint8_t data); @@ -54,9 +54,9 @@ class missb2_state : public bublbobl_state void irqhandler(int state); uint32_t screen_update_missb2(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void maincpu_map(address_map &map); - void sound_map(address_map &map); - void subcpu_map(address_map &map); + void maincpu_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; + void subcpu_map(address_map &map) ATTR_COLD; void configure_banks(); diff --git a/src/mame/taito/mlanding.cpp b/src/mame/taito/mlanding.cpp index 900f7930a84..292efae4616 100644 --- a/src/mame/taito/mlanding.cpp +++ b/src/mame/taito/mlanding.cpp @@ -99,8 +99,8 @@ class mlanding_state : public driver_device void mlanding(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: static constexpr u32 c_dma_bank_words = 0x2000; @@ -173,13 +173,13 @@ class mlanding_state : public driver_device u32 exec_dma(); void msm5205_update(unsigned chip); - void audio_map_io(address_map &map); - void audio_map_prog(address_map &map); - void dsp_map_data(address_map &map); - void dsp_map_prog(address_map &map); - void main_map(address_map &map); - void mecha_map_prog(address_map &map); - void sub_map(address_map &map); + void audio_map_io(address_map &map) ATTR_COLD; + void audio_map_prog(address_map &map) ATTR_COLD; + void dsp_map_data(address_map &map) ATTR_COLD; + void dsp_map_prog(address_map &map) ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; + void mecha_map_prog(address_map &map) ATTR_COLD; + void sub_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/taito/msisaac.cpp b/src/mame/taito/msisaac.cpp index 57914286428..c68dbb7baed 100644 --- a/src/mame/taito/msisaac.cpp +++ b/src/mame/taito/msisaac.cpp @@ -74,9 +74,9 @@ class msisaac_state : public driver_device void msisaac(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: // memory pointers @@ -135,8 +135,8 @@ class msisaac_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); TIMER_CALLBACK_MEMBER(nmi_callback); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); - void main_map(address_map &map); - void sound_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/taito/ninjaw.cpp b/src/mame/taito/ninjaw.cpp index c643e665b8d..fbe7c62df0a 100644 --- a/src/mame/taito/ninjaw.cpp +++ b/src/mame/taito/ninjaw.cpp @@ -359,8 +359,8 @@ class ninjaw_state : public driver_device protected: virtual void device_post_load() override; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: /* devices */ @@ -395,11 +395,11 @@ class ninjaw_state : public driver_device void draw_sprites(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, int x_offs, int y_offs, int chip); void parse_control(); u32 update_screen(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, int xoffs, int chip); - void darius2_master_map(address_map &map); - void darius2_slave_map(address_map &map); - void ninjaw_master_map(address_map &map); - void ninjaw_slave_map(address_map &map); - void sound_map(address_map &map); + void darius2_master_map(address_map &map) ATTR_COLD; + void darius2_slave_map(address_map &map) ATTR_COLD; + void ninjaw_master_map(address_map &map) ATTR_COLD; + void ninjaw_slave_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/taito/nycaptor.h b/src/mame/taito/nycaptor.h index 74c6ba2f5cd..35bd4c6cee5 100644 --- a/src/mame/taito/nycaptor.h +++ b/src/mame/taito/nycaptor.h @@ -46,9 +46,9 @@ class nycaptor_state : public driver_device void init_nycaptor(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: /* memory pointers */ @@ -112,14 +112,14 @@ class nycaptor_state : public driver_device uint32_t screen_update_nycaptor(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); int nycaptor_spot(); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect, int pri); - void bronx_master_map(address_map &map); - void bronx_slave_io_map(address_map &map); - void bronx_slave_map(address_map &map); - void cyclshtg_master_map(address_map &map); - void cyclshtg_slave_map(address_map &map); - void nycaptor_master_map(address_map &map); - void nycaptor_slave_map(address_map &map); - void sound_map(address_map &map); + void bronx_master_map(address_map &map) ATTR_COLD; + void bronx_slave_io_map(address_map &map) ATTR_COLD; + void bronx_slave_map(address_map &map) ATTR_COLD; + void cyclshtg_master_map(address_map &map) ATTR_COLD; + void cyclshtg_slave_map(address_map &map) ATTR_COLD; + void nycaptor_master_map(address_map &map) ATTR_COLD; + void nycaptor_slave_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; }; #endif // MAME_TAITO_NYCAPTOR_H diff --git a/src/mame/taito/opwolf.cpp b/src/mame/taito/opwolf.cpp index 1961087f312..9420d2432cc 100644 --- a/src/mame/taito/opwolf.cpp +++ b/src/mame/taito/opwolf.cpp @@ -332,8 +332,8 @@ class opwolf_state : public driver_device ioport_value opwolf_gun_y_r(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: uint16_t cchip_r(offs_t offset); @@ -353,11 +353,11 @@ class opwolf_state : public driver_device void opwolf_msm5205_vck(msm5205_device *device, int chip); template void msm5205_vck_w(int state); - void opwolf_map(address_map &map); - void opwolf_sound_z80_map(address_map &map); - void opwolfb_map(address_map &map); - void opwolfb_sub_z80_map(address_map &map); - void opwolfp_map(address_map &map); + void opwolf_map(address_map &map) ATTR_COLD; + void opwolf_sound_z80_map(address_map &map) ATTR_COLD; + void opwolfb_map(address_map &map) ATTR_COLD; + void opwolfb_sub_z80_map(address_map &map) ATTR_COLD; + void opwolfp_map(address_map &map) ATTR_COLD; /* memory pointers */ optional_shared_ptr m_cchip_ram; diff --git a/src/mame/taito/othunder.h b/src/mame/taito/othunder.h index da3cd55c024..6bc65c8c8fe 100644 --- a/src/mame/taito/othunder.h +++ b/src/mame/taito/othunder.h @@ -47,8 +47,8 @@ class othunder_state : public driver_device void othunder(machine_config &config); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: void draw_sprites(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, const u32 *primasks, int y_offs); @@ -62,8 +62,8 @@ class othunder_state : public driver_device u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void vblank_w(int state); - void othunder_map(address_map &map); - void z80_sound_map(address_map &map); + void othunder_map(address_map &map) ATTR_COLD; + void z80_sound_map(address_map &map) ATTR_COLD; /* memory pointers */ required_shared_ptr m_spriteram; diff --git a/src/mame/taito/pc080sn.h b/src/mame/taito/pc080sn.h index ec3c56f956c..602ddb7645e 100644 --- a/src/mame/taito/pc080sn.h +++ b/src/mame/taito/pc080sn.h @@ -48,7 +48,7 @@ class pc080sn_device : public device_t, public device_gfx_interface protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void device_post_load() override; private: diff --git a/src/mame/taito/pc090oj.h b/src/mame/taito/pc090oj.h index fd3493ea04c..af049e8832c 100644 --- a/src/mame/taito/pc090oj.h +++ b/src/mame/taito/pc090oj.h @@ -30,8 +30,8 @@ class pc090oj_device : public device_t, public device_gfx_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; private: /* NB: pc090oj_ctrl is the internal register controlling flipping diff --git a/src/mame/taito/pitnrun.cpp b/src/mame/taito/pitnrun.cpp index 0b33ebcabfa..c8b291b8d5e 100644 --- a/src/mame/taito/pitnrun.cpp +++ b/src/mame/taito/pitnrun.cpp @@ -105,14 +105,14 @@ class pitnrun_state : public driver_device void tilt_w(int state); // TODO: privatize eventually protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; uint8_t inputs_r(); required_device m_maincpu; - void base_map(address_map &map); + void base_map(address_map &map) ATTR_COLD; private: required_device m_watchdog; @@ -152,15 +152,15 @@ class pitnrun_state : public driver_device void vbl_w(int state); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; void palette(palette_device &palette) const; uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void spotlights(); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); - void sound_io_map(address_map &map); - void sound_prg_map(address_map &map); + void sound_io_map(address_map &map) ATTR_COLD; + void sound_prg_map(address_map &map) ATTR_COLD; }; class pitnrun_mcu_state : public pitnrun_state @@ -174,8 +174,8 @@ class pitnrun_mcu_state : public pitnrun_state void pitnrun_mcu(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_mcu; @@ -201,7 +201,7 @@ class pitnrun_mcu_state : public pitnrun_state TIMER_CALLBACK_MEMBER(mcu_data_real_r); TIMER_CALLBACK_MEMBER(mcu_status_real_w); - void mcu_map(address_map &map); + void mcu_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/taito/pkspirit.cpp b/src/mame/taito/pkspirit.cpp index e16159bb106..2c93c5328b2 100644 --- a/src/mame/taito/pkspirit.cpp +++ b/src/mame/taito/pkspirit.cpp @@ -78,8 +78,8 @@ class pkspirit_state : public driver_device void shun(machine_config &config); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -98,9 +98,9 @@ class pkspirit_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void main_map(address_map &map); - void shun_main_map(address_map &map); - void sound_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void shun_main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/taito/qix.h b/src/mame/taito/qix.h index d7a939959ae..25e3168880f 100644 --- a/src/mame/taito/qix.h +++ b/src/mame/taito/qix.h @@ -66,7 +66,7 @@ class qix_state : public driver_device void init_kram3(); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; /* devices */ required_device m_maincpu; @@ -133,11 +133,11 @@ class qix_state : public driver_device void kram3_lic_maincpu_changed(int state); void kram3_lic_videocpu_changed(int state); - void audio_map(address_map &map); - void kram3_main_map(address_map &map); - void kram3_video_map(address_map &map); - void main_map(address_map &map); - void qix_video_map(address_map &map); + void audio_map(address_map &map) ATTR_COLD; + void kram3_main_map(address_map &map) ATTR_COLD; + void kram3_video_map(address_map &map) ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; + void qix_video_map(address_map &map) ATTR_COLD; }; class slither_state : public qix_state @@ -154,7 +154,7 @@ class slither_state : public qix_state void slither_audio(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: uint8_t trak_lr_r(); @@ -165,7 +165,7 @@ class slither_state : public qix_state void slither_videoram_w(offs_t offset, uint8_t data); void slither_addresslatch_w(offs_t offset, uint8_t data); - void slither_video_map(address_map &map); + void slither_video_map(address_map &map) ATTR_COLD; required_device_array m_sn; required_ioport_array<4> m_trak; @@ -185,7 +185,7 @@ class qixmcu_state : public qix_state void mcu(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; optional_device m_mcu; required_ioport m_coin; @@ -218,13 +218,13 @@ class zookeep_state : public qixmcu_state void video(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: void bankswitch_w(uint8_t data); - void main_map(address_map &map); - void video_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void video_map(address_map &map) ATTR_COLD; required_memory_bank m_vidbank; }; diff --git a/src/mame/taito/rastan.cpp b/src/mame/taito/rastan.cpp index 80ac0995349..841597225aa 100644 --- a/src/mame/taito/rastan.cpp +++ b/src/mame/taito/rastan.cpp @@ -188,8 +188,8 @@ class rastan_state : public driver_device void rastan(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_memory_bank m_audiobank; @@ -219,8 +219,8 @@ class rastan_state : public driver_device void colpri_cb(u32 &sprite_colbank, u32 &pri_mask, u16 sprite_ctrl); u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void msm5205_vck(int state); - void main_map(address_map &map); - void sound_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/taito/rbisland.cpp b/src/mame/taito/rbisland.cpp index 20fc6853206..85fab7d14d1 100644 --- a/src/mame/taito/rbisland.cpp +++ b/src/mame/taito/rbisland.cpp @@ -373,7 +373,7 @@ class rbisland_state : public base_state void rbisland(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: void counters_w(uint8_t data); @@ -382,8 +382,8 @@ class rbisland_state : public base_state INTERRUPT_GEN_MEMBER(interrupt); TIMER_DEVICE_CALLBACK_MEMBER(cchip_irq_clear_cb); - void main_map(address_map &map); - void sound_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; // devices required_device m_cchip; @@ -404,15 +404,15 @@ class jumping_state : public base_state void jumpingi(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: uint8_t latch_r(); void spritectrl_w(uint8_t data); uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void main_map(address_map &map); - void sound_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; // devices required_device m_gfxdecode; diff --git a/src/mame/taito/retofinv.cpp b/src/mame/taito/retofinv.cpp index 19cdfb15981..f190ed163f5 100644 --- a/src/mame/taito/retofinv.cpp +++ b/src/mame/taito/retofinv.cpp @@ -143,14 +143,14 @@ class retofinv_state : public driver_device void retofinvb_nomcu(machine_config &config); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; void retofinv_base(machine_config &config); void bl_palette(palette_device &palette) const; - void bootleg_map(address_map &map); + void bootleg_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_palette; @@ -178,8 +178,8 @@ class retofinv_state : public driver_device INTERRUPT_GEN_MEMBER(main_vblank_irq); INTERRUPT_GEN_MEMBER(sub_vblank_irq); - void sound_map(address_map &map); - void sub_map(address_map &map); + void sound_map(address_map &map) ATTR_COLD; + void sub_map(address_map &map) ATTR_COLD; void draw_sprites(bitmap_ind16 &bitmap); @@ -215,7 +215,7 @@ class retofinv_mcu_state : public retofinv_state private: uint8_t mcu_status_r(); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; required_device m_68705; }; diff --git a/src/mame/taito/rollrace.cpp b/src/mame/taito/rollrace.cpp index 000905f46aa..c916a493139 100644 --- a/src/mame/taito/rollrace.cpp +++ b/src/mame/taito/rollrace.cpp @@ -54,8 +54,8 @@ class rollrace_state : public driver_device void rollace(machine_config &config); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -111,8 +111,8 @@ class rollrace_state : public driver_device void vblank_irq(int state); INTERRUPT_GEN_MEMBER(sound_timer_irq); - void main_map(address_map &map); - void sound_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/taito/sbmjb.cpp b/src/mame/taito/sbmjb.cpp index c27894df287..48f1ae95ce8 100644 --- a/src/mame/taito/sbmjb.cpp +++ b/src/mame/taito/sbmjb.cpp @@ -78,9 +78,9 @@ class sbmjb_state : public driver_device void screen_vblank(int state); TIMER_DEVICE_CALLBACK_MEMBER(scanline_callback); - void main_map(address_map &map); - void sound_map(address_map &map); - void tc0091lvc_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; + void tc0091lvc_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/taito/sbowling.cpp b/src/mame/taito/sbowling.cpp index b9bcbc7bfb7..3de269a4aa6 100644 --- a/src/mame/taito/sbowling.cpp +++ b/src/mame/taito/sbowling.cpp @@ -67,7 +67,7 @@ class sbowling_state : public driver_device void sbowling(machine_config &config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -98,8 +98,8 @@ class sbowling_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void postload(); - void main_map(address_map &map); - void port_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void port_map(address_map &map) ATTR_COLD; }; TILE_GET_INFO_MEMBER(sbowling_state::get_tile_info) diff --git a/src/mame/taito/scyclone.cpp b/src/mame/taito/scyclone.cpp index 0e95e04b702..d2571c0b2f2 100644 --- a/src/mame/taito/scyclone.cpp +++ b/src/mame/taito/scyclone.cpp @@ -94,14 +94,14 @@ class scyclone_state : public driver_device INTERRUPT_GEN_MEMBER(irq); - void scyclone_iomap(address_map &map); - void scyclone_map(address_map &map); - void scyclone_sub_iomap(address_map &map); - void scyclone_sub_map(address_map &map); - - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + void scyclone_iomap(address_map &map) ATTR_COLD; + void scyclone_map(address_map &map) ATTR_COLD; + void scyclone_sub_iomap(address_map &map) ATTR_COLD; + void scyclone_sub_map(address_map &map) ATTR_COLD; + + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; required_device m_maincpu; required_device m_gfxdecode; diff --git a/src/mame/taito/slapshot.cpp b/src/mame/taito/slapshot.cpp index bacc8bd20c6..7a761a331ae 100644 --- a/src/mame/taito/slapshot.cpp +++ b/src/mame/taito/slapshot.cpp @@ -616,6 +616,14 @@ ROM_START( opwolf3 ) ROM_LOAD( "d74_01.37", 0x000000, 0x200000, CRC(115313e0) SHA1(51a69e7a26960b1328ccefeaec0fb26bdccc39f2) ) /* no Delta-T samples */ + + ROM_REGION( 0xc00, "plds", ROMREGION_ERASE00 ) + ROM_LOAD( "d74-08", 0x000, 0x117, NO_DUMP ) // type unknown + ROM_LOAD( "d74-09.8", 0x200, 0x117, CRC(f1bf65c3) SHA1(c42f8f115cef9e5bbc608177b26d52c92e65c653) ) // PALCE16V8Q-15PC4 + ROM_LOAD( "d74-10.40", 0x400, 0x157, CRC(c9ce583a) SHA1(372ba0f04c66e713c25eadb5029fb48a86e0bd52) ) // PALCE20V8Q-15PC4 + ROM_LOAD( "d74-11", 0x600, 0x117, NO_DUMP ) // type unknown + ROM_LOAD( "d74-12.1", 0x800, 0x157, CRC(6965e38a) SHA1(9df15de347b7960cfdddb15dbd936df8e139f437) ) // PALCE20V8Q-15PC4 + ROM_LOAD( "d74-13.2", 0xa00, 0x157, CRC(c52df77c) SHA1(7acc4e24d2841191800f63bb96a568d8aa0d874e) ) // PALCE20V8Q-15PC4 ROM_END ROM_START( opwolf3u ) @@ -643,6 +651,14 @@ ROM_START( opwolf3u ) ROM_LOAD( "d74_01.37", 0x000000, 0x200000, CRC(115313e0) SHA1(51a69e7a26960b1328ccefeaec0fb26bdccc39f2) ) /* no Delta-T samples */ + + ROM_REGION( 0xc00, "plds", ROMREGION_ERASE00 ) + ROM_LOAD( "d74-08", 0x000, 0x117, NO_DUMP ) // type unknown + ROM_LOAD( "d74-09.8", 0x200, 0x117, CRC(f1bf65c3) SHA1(c42f8f115cef9e5bbc608177b26d52c92e65c653) ) // PALCE16V8Q-15PC4 + ROM_LOAD( "d74-10.40", 0x400, 0x157, CRC(c9ce583a) SHA1(372ba0f04c66e713c25eadb5029fb48a86e0bd52) ) // PALCE20V8Q-15PC4 + ROM_LOAD( "d74-11", 0x600, 0x117, NO_DUMP ) // type unknown + ROM_LOAD( "d74-12.1", 0x800, 0x157, CRC(6965e38a) SHA1(9df15de347b7960cfdddb15dbd936df8e139f437) ) // PALCE20V8Q-15PC4 + ROM_LOAD( "d74-13.2", 0xa00, 0x157, CRC(c52df77c) SHA1(7acc4e24d2841191800f63bb96a568d8aa0d874e) ) // PALCE20V8Q-15PC4 ROM_END ROM_START( opwolf3j ) @@ -670,6 +686,14 @@ ROM_START( opwolf3j ) ROM_LOAD( "d74_01.37", 0x000000, 0x200000, CRC(115313e0) SHA1(51a69e7a26960b1328ccefeaec0fb26bdccc39f2) ) /* no Delta-T samples */ + + ROM_REGION( 0xc00, "plds", ROMREGION_ERASE00 ) + ROM_LOAD( "d74-08", 0x000, 0x117, NO_DUMP ) // type unknown + ROM_LOAD( "d74-09.8", 0x200, 0x117, CRC(f1bf65c3) SHA1(c42f8f115cef9e5bbc608177b26d52c92e65c653) ) // PALCE16V8Q-15PC4 + ROM_LOAD( "d74-10.40", 0x400, 0x157, CRC(c9ce583a) SHA1(372ba0f04c66e713c25eadb5029fb48a86e0bd52) ) // PALCE20V8Q-15PC4 + ROM_LOAD( "d74-11", 0x600, 0x117, NO_DUMP ) // type unknown + ROM_LOAD( "d74-12.1", 0x800, 0x157, CRC(6965e38a) SHA1(9df15de347b7960cfdddb15dbd936df8e139f437) ) // PALCE20V8Q-15PC4 + ROM_LOAD( "d74-13.2", 0xa00, 0x157, CRC(c52df77c) SHA1(7acc4e24d2841191800f63bb96a568d8aa0d874e) ) // PALCE20V8Q-15PC4 ROM_END diff --git a/src/mame/taito/slapshot.h b/src/mame/taito/slapshot.h index f791a7e7b68..012dc159cda 100644 --- a/src/mame/taito/slapshot.h +++ b/src/mame/taito/slapshot.h @@ -41,8 +41,8 @@ class slapshot_state : public driver_device void driver_init(); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; TIMER_CALLBACK_MEMBER(trigger_int6); @@ -108,9 +108,9 @@ class slapshot_state : public driver_device INTERRUPT_GEN_MEMBER(interrupt); - void opwolf3_map(address_map &map); - void slapshot_map(address_map &map); - void sound_map(address_map &map); + void opwolf3_map(address_map &map) ATTR_COLD; + void slapshot_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; }; #endif // MAME_TAITO_SLAPSHOT_H diff --git a/src/mame/taito/spdheat.cpp b/src/mame/taito/spdheat.cpp index 30e34713c11..549061c22bc 100644 --- a/src/mame/taito/spdheat.cpp +++ b/src/mame/taito/spdheat.cpp @@ -60,9 +60,9 @@ class spdheat_state : public driver_device void spdheat(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -85,10 +85,10 @@ class spdheat_state : public driver_device uint32_t m_sub_data = 0; uint32_t m_sub_status = 0; - void main_map(address_map &map); - void sub_map(address_map &map); - void sub_io_map(address_map &map); - void sound_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sub_map(address_map &map) ATTR_COLD; + void sub_io_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; void sub_dac_w(uint8_t data); void sub_nmi_w(uint8_t data); diff --git a/src/mame/taito/ssrj.cpp b/src/mame/taito/ssrj.cpp index 45bbd4e8030..679e23f6451 100644 --- a/src/mame/taito/ssrj.cpp +++ b/src/mame/taito/ssrj.cpp @@ -61,9 +61,9 @@ class ssrj_state : public driver_device void ssrj(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -89,7 +89,7 @@ class ssrj_state : public driver_device void screen_vblank(int state); void draw_objects(bitmap_ind16 &bitmap, const rectangle &cliprect); - void prg_map(address_map &map); + void prg_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/taito/superchs.h b/src/mame/taito/superchs.h index 7b2d76f6940..fbc6bc7fd00 100644 --- a/src/mame/taito/superchs.h +++ b/src/mame/taito/superchs.h @@ -32,7 +32,7 @@ class superchs_state : public driver_device void init_superchs(); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: struct schs_tempsprite @@ -68,9 +68,9 @@ class superchs_state : public driver_device required_device m_gfxdecode; required_device m_palette; required_ioport m_volume; - void chase3_cpub_map(address_map &map); - void superchs_cpub_map(address_map &map); - void superchs_map(address_map &map); + void chase3_cpub_map(address_map &map) ATTR_COLD; + void superchs_cpub_map(address_map &map) ATTR_COLD; + void superchs_map(address_map &map) ATTR_COLD; }; #endif // MAME_TAITO_SUPERCHS_H diff --git a/src/mame/taito/superqix.h b/src/mame/taito/superqix.h index c21f5c45ebd..9a1bc6f4705 100644 --- a/src/mame/taito/superqix.h +++ b/src/mame/taito/superqix.h @@ -74,7 +74,7 @@ class superqix_state_base : public driver_device uint32_t screen_update_superqix(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void superqix_draw_sprites(bitmap_ind16 &bitmap,const rectangle &cliprect); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; virtual void machine_init_common(); }; @@ -97,8 +97,8 @@ class superqix_state : public superqix_state_base int frommcu_semaphore_input_r(); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_ay2; @@ -124,8 +124,8 @@ class superqix_state : public superqix_state_base INTERRUPT_GEN_MEMBER(sqix_timer_irq); DECLARE_MACHINE_RESET(superqix); - void sqix_port_map(address_map &map); - void sqix_8031_map(address_map &map); + void sqix_port_map(address_map &map) ATTR_COLD; + void sqix_8031_map(address_map &map) ATTR_COLD; virtual void machine_init_common() override; @@ -163,8 +163,8 @@ class hotsmash_state : public superqix_state_base ioport_value pbillian_semaphore_input_r(); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: u8 hotsmash_68705_porta_r(); @@ -184,8 +184,8 @@ class hotsmash_state : public superqix_state_base u32 screen_update_pbillian(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void pbillian_port_map(address_map &map); - void pbillianb_port_map(address_map &map); + void pbillian_port_map(address_map &map) ATTR_COLD; + void pbillianb_port_map(address_map &map) ATTR_COLD; virtual void machine_init_common() override; diff --git a/src/mame/taito/taito_b.h b/src/mame/taito/taito_b.h index 18489bffac1..8e054007e8c 100644 --- a/src/mame/taito/taito_b.h +++ b/src/mame/taito/taito_b.h @@ -56,7 +56,7 @@ class taitob_state : public driver_device protected: void player_12_coin_ctrl_w(uint8_t data); - void sound_map(address_map &map); + void sound_map(address_map &map) ATTR_COLD; void bankswitch_w(uint8_t data); template uint16_t tracky_hi_r(); @@ -69,29 +69,29 @@ class taitob_state : public driver_device void player_34_coin_ctrl_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); void spacedxo_tc0220ioc_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); void mb87078_gain_changed(offs_t offset, uint8_t data); - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; uint32_t screen_update_taitob(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void crimec_map(address_map &map); - void masterw_map(address_map &map); - void masterw_sound_map(address_map &map); - void pbobble_map(address_map &map); - void qzshowby_map(address_map &map); - void rambo3_map(address_map &map); - void rastsag2_map(address_map &map); - - void sbm_map(address_map &map); - void selfeena_map(address_map &map); - void silentd_map(address_map &map); - void spacedx_map(address_map &map); - void spacedxo_map(address_map &map); - void tetrist_map(address_map &map); - void tetrista_map(address_map &map); - void viofight_map(address_map &map); - void viofight_sound_map(address_map &map); - - virtual void machine_start() override; - virtual void machine_reset() override; + void crimec_map(address_map &map) ATTR_COLD; + void masterw_map(address_map &map) ATTR_COLD; + void masterw_sound_map(address_map &map) ATTR_COLD; + void pbobble_map(address_map &map) ATTR_COLD; + void qzshowby_map(address_map &map) ATTR_COLD; + void rambo3_map(address_map &map) ATTR_COLD; + void rastsag2_map(address_map &map) ATTR_COLD; + + void sbm_map(address_map &map) ATTR_COLD; + void selfeena_map(address_map &map) ATTR_COLD; + void silentd_map(address_map &map) ATTR_COLD; + void spacedx_map(address_map &map) ATTR_COLD; + void spacedxo_map(address_map &map) ATTR_COLD; + void tetrist_map(address_map &map) ATTR_COLD; + void tetrista_map(address_map &map) ATTR_COLD; + void viofight_map(address_map &map) ATTR_COLD; + void viofight_sound_map(address_map &map) ATTR_COLD; + + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; /* video-related */ std::unique_ptr m_pixel_bitmap; @@ -136,10 +136,10 @@ class taitob_c_state : public taitob_state void realpunc_output_w(uint16_t data); void realpunc_video_ctrl_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); - void realpunc_map(address_map &map); - void realpunc_hd63484_map(address_map &map); + void realpunc_map(address_map &map) ATTR_COLD; + void realpunc_hd63484_map(address_map &map) ATTR_COLD; - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; uint32_t screen_update_realpunc(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); private: @@ -158,14 +158,14 @@ class hitice_state : public taitob_state void hitice(machine_config &config); protected: - virtual void video_start() override; - virtual void video_reset() override; + virtual void video_start() override ATTR_COLD; + virtual void video_reset() override ATTR_COLD; private: void pixelram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); void pixel_scroll_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); - void hitice_map(address_map &map); + void hitice_map(address_map &map) ATTR_COLD; void clear_pixel_bitmap(); diff --git a/src/mame/taito/taito_en.h b/src/mame/taito/taito_en.h index e36e6b6238c..931f11b3670 100644 --- a/src/mame/taito/taito_en.h +++ b/src/mame/taito/taito_en.h @@ -32,14 +32,14 @@ class taito_en_device : public device_t, public device_mixer_interface protected: // device-level overrides - 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; private: - void en_sound_map(address_map &map); - void en_otis_map(address_map &map); - void fc7_map(address_map &map); + void en_sound_map(address_map &map) ATTR_COLD; + void en_otis_map(address_map &map) ATTR_COLD; + void fc7_map(address_map &map) ATTR_COLD; // inherited devices/pointers required_device m_audiocpu; diff --git a/src/mame/taito/taito_f2.cpp b/src/mame/taito/taito_f2.cpp index 69416419c91..14729256412 100644 --- a/src/mame/taito/taito_f2.cpp +++ b/src/mame/taito/taito_f2.cpp @@ -5125,6 +5125,36 @@ ROM_START( metalb ) ROM_LOAD( "d12-05.16", 0x000000, 0x080000, CRC(7fd036c5) SHA1(f412c6302cfba73df110943d7d6679dc908479f7) ) ROM_END +// this set comes from a single PCB (K1100698A) and the program is the same revision as metalbj +ROM_START( metalba ) + ROM_REGION( 0xc0000, "maincpu", 0 ) /* 768k for 68000 code */ + ROM_LOAD16_BYTE( "ic48", 0x00000, 0x40000, CRC(556f82b2) SHA1(fbce771eda99fd8b778f64fdc314ada4b6fdffde) ) // blank label + ROM_LOAD16_BYTE( "ic37", 0x00001, 0x40000, CRC(419083a1) SHA1(51bef1c60ad154c7a1a9ca761618e8dcdf2d56a4) ) // blank label + ROM_LOAD16_BYTE( "d12-07.ic47", 0x80000, 0x20000, CRC(e07f5136) SHA1(27df1a1f21c27feb91801e3cc304ee534969f792) ) + ROM_LOAD16_BYTE( "d12-06.ic36", 0x80001, 0x20000, CRC(131df731) SHA1(537a9f404d797db051a5aaf0afa2cd1e9c0bdcfb) ) + + ROM_REGION( 0x100000, "tc0480scp", 0 ) /* SCR */ + ROM_LOAD32_WORD( "d12-03.ic55", 0x00000, 0x80000, CRC(46b498c0) SHA1(c2ec7ce9ac7874d1bc54ce4b5d428d73c5a16549) ) + ROM_LOAD32_WORD( "d12-04.ic54", 0x00002, 0x80000, CRC(ab66d141) SHA1(e7f82b297dd2ae0b5d29886e5393cece61b742bb) ) + + ROM_REGION( 0x100000, "sprites", 0 ) /* OBJ */ + ROM_LOAD( "d12-01.ic19", 0x000000, 0x100000, CRC(b81523b9) SHA1(e688e88008db87fed0051fbcb28d3e3ae7e945a8) ) + + ROM_REGION( 0x20000, "audiocpu", 0 ) /* sound cpu */ + ROM_LOAD( "ic57", 0x00000, 0x20000, CRC(bcca2649) SHA1(d932134416c951d849ae41598f75609d453ed520) ) // blank label + + ROM_REGION( 0x100000, "ymsnd:adpcma", 0 ) /* ADPCM samples */ + ROM_LOAD( "d12-02.ic29", 0x000000, 0x100000, CRC(79263e74) SHA1(f9ef222239855d593b5855dbf9ea0376ea349c4b) ) + + ROM_REGION( 0x080000, "ymsnd:adpcmb", 0 ) /* Delta-T samples */ + ROM_LOAD( "d12-05.ic30", 0x000000, 0x080000, CRC(7fd036c5) SHA1(f412c6302cfba73df110943d7d6679dc908479f7) ) + + ROM_REGION( 0x600, "plds", ROMREGION_ERASE00 ) + ROM_LOAD( "d12-8.ic28", 0x000, 0x117, NO_DUMP ) // PAL16L8BCN + ROM_LOAD( "d12-9.ic27", 0x200, 0x117, NO_DUMP ) // PAL16L8BCN + ROM_LOAD( "d12-10.ic50", 0x400, 0x117, NO_DUMP ) // PAL16L8BCN +ROM_END + ROM_START( metalbj ) ROM_REGION( 0xc0000, "maincpu", 0 ) /* 768k for 68000 code */ ROM_LOAD16_BYTE( "d12-12.8", 0x00000, 0x40000, CRC(556f82b2) SHA1(fbce771eda99fd8b778f64fdc314ada4b6fdffde) ) @@ -5643,6 +5673,7 @@ GAME( 1991, pulirulaa, pulirula, pulirula, pulirulaj, taitof2_state, empty_in GAME( 1991, pulirulaj, pulirula, pulirula, pulirulaj, taitof2_state, empty_init, ROT0, "Taito Corporation", "PuLiRuLa (Japan)", MACHINE_SUPPORTS_SAVE ) GAME( 1991, metalb, 0, metalb, metalb, taitof2_state, empty_init, ROT0, "Taito Corporation Japan", "Metal Black (World)", MACHINE_SUPPORTS_SAVE ) +GAME( 1991, metalba, metalb, metalb, metalb, taitof2_state, empty_init, ROT0, "Taito Corporation Japan", "Metal Black (World, single PCB)", MACHINE_SUPPORTS_SAVE ) GAME( 1991, metalbj, metalb, metalb, metalbj, taitof2_state, empty_init, ROT0, "Taito Corporation", "Metal Black (Japan)", MACHINE_SUPPORTS_SAVE ) GAME( 1991, qzchikyu, 0, qzchikyu, qzchikyu, taitof2_state, empty_init, ROT0, "Taito Corporation", "Quiz Chikyu Bouei Gun (Japan)", MACHINE_SUPPORTS_SAVE ) diff --git a/src/mame/taito/taito_f2.h b/src/mame/taito/taito_f2.h index fe7979b9183..8e292e2143e 100644 --- a/src/mame/taito/taito_f2.h +++ b/src/mame/taito/taito_f2.h @@ -96,8 +96,8 @@ class taitof2_state : public driver_device void init_finalb(); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; TIMER_CALLBACK_MEMBER(trigger_int6); @@ -250,41 +250,41 @@ class taitof2_state : public driver_device void taito_f2_tc360_spritemixdraw(screen_device &screen, bitmap_ind16 &dest_bmp, const rectangle &clip, gfx_element *gfx, u32 code, u32 color, int flipx, int flipy, int sx, int sy, int scalex, int scaley, u64 primask = 0, bool use_mixer = false); - void cameltry_map(address_map &map); - void cameltrya_map(address_map &map); - void cameltrya_sound_map(address_map &map); - void deadconx_map(address_map &map); - void dinorex_map(address_map &map); - void dondokod_map(address_map &map); - void driftout_map(address_map &map); - void driftoutct_map(address_map &map); - void driveout_map(address_map &map); - void driveout_oki_map(address_map &map); - void driveout_sound_map(address_map &map); - void finalb_map(address_map &map); - void footchmp_map(address_map &map); - void growl_map(address_map &map); - void gunfront_map(address_map &map); - void koshien_map(address_map &map); - void liquidk_map(address_map &map); - void megab_map(address_map &map); - void metalb_map(address_map &map); - void mjnquest_map(address_map &map); - void ninjak_map(address_map &map); - void pulirula_map(address_map &map); - void qcrayon2_map(address_map &map); - void qcrayon_map(address_map &map); - void qjinsei_map(address_map &map); - void qtorimon_map(address_map &map); - void quizhq_map(address_map &map); - void qzchikyu_map(address_map &map); - void qzquest_map(address_map &map); - void solfigtr_map(address_map &map); - void sound_map(address_map &map); - void ssi_map(address_map &map); - void thundfox_map(address_map &map); - void yesnoj_map(address_map &map); - void yuyugogo_map(address_map &map); + void cameltry_map(address_map &map) ATTR_COLD; + void cameltrya_map(address_map &map) ATTR_COLD; + void cameltrya_sound_map(address_map &map) ATTR_COLD; + void deadconx_map(address_map &map) ATTR_COLD; + void dinorex_map(address_map &map) ATTR_COLD; + void dondokod_map(address_map &map) ATTR_COLD; + void driftout_map(address_map &map) ATTR_COLD; + void driftoutct_map(address_map &map) ATTR_COLD; + void driveout_map(address_map &map) ATTR_COLD; + void driveout_oki_map(address_map &map) ATTR_COLD; + void driveout_sound_map(address_map &map) ATTR_COLD; + void finalb_map(address_map &map) ATTR_COLD; + void footchmp_map(address_map &map) ATTR_COLD; + void growl_map(address_map &map) ATTR_COLD; + void gunfront_map(address_map &map) ATTR_COLD; + void koshien_map(address_map &map) ATTR_COLD; + void liquidk_map(address_map &map) ATTR_COLD; + void megab_map(address_map &map) ATTR_COLD; + void metalb_map(address_map &map) ATTR_COLD; + void mjnquest_map(address_map &map) ATTR_COLD; + void ninjak_map(address_map &map) ATTR_COLD; + void pulirula_map(address_map &map) ATTR_COLD; + void qcrayon2_map(address_map &map) ATTR_COLD; + void qcrayon_map(address_map &map) ATTR_COLD; + void qjinsei_map(address_map &map) ATTR_COLD; + void qtorimon_map(address_map &map) ATTR_COLD; + void quizhq_map(address_map &map) ATTR_COLD; + void qzchikyu_map(address_map &map) ATTR_COLD; + void qzquest_map(address_map &map) ATTR_COLD; + void solfigtr_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; + void ssi_map(address_map &map) ATTR_COLD; + void thundfox_map(address_map &map) ATTR_COLD; + void yesnoj_map(address_map &map) ATTR_COLD; + void yuyugogo_map(address_map &map) ATTR_COLD; }; #endif // MAME_TAITO_TAITO_F2_H diff --git a/src/mame/taito/taito_f3.h b/src/mame/taito/taito_f3.h index 1717bf1bcea..4be998ae927 100644 --- a/src/mame/taito/taito_f3.h +++ b/src/mame/taito/taito_f3.h @@ -157,9 +157,9 @@ class taito_f3_state : public driver_device static const F3config f3_config_table[]; - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; virtual void device_post_load(void) override; TIMER_CALLBACK_MEMBER(trigger_int3); @@ -412,8 +412,8 @@ class taito_f3_state : public driver_device u32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); void screen_vblank(int state); - void bubsympb_map(address_map &map); - void f3_map(address_map &map); + void bubsympb_map(address_map &map) ATTR_COLD; + void f3_map(address_map &map) ATTR_COLD; void tile_decode(); @@ -452,7 +452,7 @@ class taito_f3_state : public driver_device INTERRUPT_GEN_MEMBER(interrupt2); - void bubsympb_oki_map(address_map &map); + void bubsympb_oki_map(address_map &map) ATTR_COLD; }; #endif // MAME_TAITO_TAITO_F3_H diff --git a/src/mame/taito/taito_h.h b/src/mame/taito/taito_h.h index e89745092d1..17a31e2a487 100644 --- a/src/mame/taito/taito_h.h +++ b/src/mame/taito/taito_h.h @@ -33,8 +33,8 @@ class taitoh_state : public driver_device void tetristh(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; // devices required_device m_maincpu; @@ -57,10 +57,10 @@ class taitoh_state : public driver_device void recordbr_draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect, int priority); void dleague_draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect, int priority); - void dleague_map(address_map &map); - void recordbr_map(address_map &map); - void sound_map(address_map &map); - void tetristh_map(address_map &map); + void dleague_map(address_map &map) ATTR_COLD; + void recordbr_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; + void tetristh_map(address_map &map) ATTR_COLD; }; @@ -81,7 +81,7 @@ class syvalion_state : public taitoh_state u32 screen_update_syvalion(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void syvalion_draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); - void syvalion_map(address_map &map); + void syvalion_map(address_map &map) ATTR_COLD; }; #endif // MAME_TAITO_TAITO_H_H diff --git a/src/mame/taito/taito_l.h b/src/mame/taito/taito_l.h index e5b9c2e03d9..b6d89b76ee5 100644 --- a/src/mame/taito/taito_l.h +++ b/src/mame/taito/taito_l.h @@ -211,7 +211,7 @@ class horshoes_state : public taitol_1cpu_state void bankg_w(u8 data); int m_horshoes_gfxbank = 0; - void horshoes_map(address_map &map); + void horshoes_map(address_map &map) ATTR_COLD; }; #endif // MAME_TAITO_TAITO_L_H diff --git a/src/mame/taito/taito_o.cpp b/src/mame/taito/taito_o.cpp index 81b34fce472..03c45d4b851 100644 --- a/src/mame/taito/taito_o.cpp +++ b/src/mame/taito/taito_o.cpp @@ -109,7 +109,7 @@ class taitoo_state : public driver_device u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); TIMER_DEVICE_CALLBACK_MEMBER(interrupt); u32 draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect, u32 start_offset); - void prg_map(address_map &map); + void prg_map(address_map &map) ATTR_COLD; void hopper_int_cb(int state); void taito_outa_w(offs_t offs, u16 data, u16 mem_mask); void taito_outb_w(offs_t offs, u16 data, u16 mem_mask); diff --git a/src/mame/taito/taito_x.cpp b/src/mame/taito/taito_x.cpp index 44c97ea2163..99b90a04b05 100644 --- a/src/mame/taito/taito_x.cpp +++ b/src/mame/taito/taito_x.cpp @@ -473,14 +473,14 @@ class taitox_state : public driver_device void daisenpu(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); u16 dsw_input_r(offs_t offset); - void taito_x_base_map(address_map &map); - void sound_map(address_map &map); + void taito_x_base_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_audiocpu; @@ -493,11 +493,11 @@ class taitox_state : public driver_device void kyustrkr_input_w(offs_t offset, u16 data); void sound_bankswitch_w(u8 data); - void ballbros_map(address_map &map); - void daisenpu_map(address_map &map); - void daisenpu_sound_map(address_map &map); - void gigandes_map(address_map &map); - void kyustrkr_map(address_map &map); + void ballbros_map(address_map &map) ATTR_COLD; + void daisenpu_map(address_map &map) ATTR_COLD; + void daisenpu_sound_map(address_map &map) ATTR_COLD; + void gigandes_map(address_map &map) ATTR_COLD; + void kyustrkr_map(address_map &map) ATTR_COLD; required_memory_bank m_z80bank; required_ioport m_dswa_io; @@ -522,7 +522,7 @@ class taitox_cchip_state : public taitox_state INTERRUPT_GEN_MEMBER(interrupt); TIMER_DEVICE_CALLBACK_MEMBER(cchip_irq_clear_cb); - void superman_map(address_map &map); + void superman_map(address_map &map) ATTR_COLD; required_device m_cchip; required_device m_cchip_irq_clear; diff --git a/src/mame/taito/taito_z.h b/src/mame/taito/taito_z.h index c4d55487242..5314c1e0b3c 100644 --- a/src/mame/taito/taito_z.h +++ b/src/mame/taito/taito_z.h @@ -59,8 +59,8 @@ class taitoz_state : public driver_device protected: virtual void device_post_load() override; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; void screen_config(machine_config &config, int vdisp_start, int vdisp_end); @@ -102,9 +102,9 @@ class taitoz_state : public driver_device u32 screen_update_bshark(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void parse_cpu_control(); - void bshark_cpub_map(address_map &map); - void bshark_map(address_map &map); - void bsharkjjs_map(address_map &map); + void bshark_cpub_map(address_map &map) ATTR_COLD; + void bshark_map(address_map &map) ATTR_COLD; + void bsharkjjs_map(address_map &map) ATTR_COLD; }; @@ -122,13 +122,13 @@ class taitoz_z80_sound_state : public taitoz_state void dblaxle(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; u16 dblaxle_steer_input_r(offs_t offset); u32 screen_update_chasehq(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void z80_sound_map(address_map &map); + void z80_sound_map(address_map &map) ATTR_COLD; required_device m_audiocpu; @@ -141,10 +141,10 @@ class taitoz_z80_sound_state : public taitoz_state u32 screen_update_aquajack(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); u32 screen_update_dblaxle(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void aquajack_map(address_map &map); - void aquajack_cpub_map(address_map &map); - void dblaxle_map(address_map &map); - void dblaxle_cpub_map(address_map &map); + void aquajack_map(address_map &map) ATTR_COLD; + void aquajack_cpub_map(address_map &map) ATTR_COLD; + void dblaxle_map(address_map &map) ATTR_COLD; + void dblaxle_cpub_map(address_map &map) ATTR_COLD; required_memory_bank m_z80bank; }; @@ -163,8 +163,8 @@ class contcirc_state : public taitoz_z80_sound_state void enforce(machine_config &config); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: u8 contcirc_input_bypass_r(); @@ -174,10 +174,10 @@ class contcirc_state : public taitoz_z80_sound_state void contcirc_draw_sprites_16x8(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, int y_offs); u32 screen_update_contcirc(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void contcirc_map(address_map &map); - void contcirc_cpub_map(address_map &map); - void enforce_map(address_map &map); - void enforce_cpub_map(address_map &map); + void contcirc_map(address_map &map) ATTR_COLD; + void contcirc_cpub_map(address_map &map) ATTR_COLD; + void enforce_map(address_map &map) ATTR_COLD; + void enforce_cpub_map(address_map &map) ATTR_COLD; output_finder<2> m_shutter_out; @@ -203,8 +203,8 @@ class chasehq_state : public taitoz_z80_sound_state u16 chasehq_motor_r(offs_t offset); void chasehq_motor_w(offs_t offset, u16 data); - void chasehq_map(address_map &map); - void chasehq_cpub_map(address_map &map); + void chasehq_map(address_map &map) ATTR_COLD; + void chasehq_cpub_map(address_map &map) ATTR_COLD; required_ioport_array<4> m_unknown_io; }; @@ -222,9 +222,9 @@ class sci_state : public taitoz_z80_sound_state void racingb(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; TIMER_CALLBACK_MEMBER(trigger_int6); @@ -239,10 +239,10 @@ class sci_state : public taitoz_z80_sound_state u32 screen_update_sci(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); u32 screen_update_racingb(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void sci_map(address_map &map); - void sci_cpub_map(address_map &map); - void racingb_map(address_map &map); - void racingb_cpub_map(address_map &map); + void sci_map(address_map &map) ATTR_COLD; + void sci_cpub_map(address_map &map) ATTR_COLD; + void racingb_map(address_map &map) ATTR_COLD; + void racingb_cpub_map(address_map &map) ATTR_COLD; int m_sci_spriteframe = 0; s32 m_sci_int6 = 0; @@ -265,14 +265,14 @@ class nightstr_state : public taitoz_z80_sound_state void nightstr(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: void nightstr_motor_w(offs_t offset, u16 data); void nightstr_lamps_w(u8 data); - void nightstr_map(address_map &map); - void nightstr_cpub_map(address_map &map); + void nightstr_map(address_map &map) ATTR_COLD; + void nightstr_cpub_map(address_map &map) ATTR_COLD; output_finder<3> m_motor_dir; output_finder<3> m_motor_speed; @@ -295,7 +295,7 @@ class spacegun_state : public taitoz_state void spacegun(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: void spacegun_eeprom_w(u8 data); @@ -304,8 +304,8 @@ class spacegun_state : public taitoz_state void spacegun_draw_sprites_16x8(screen_device &screen, bitmap_ind16 &bitmap,const rectangle &cliprect,int y_offs); u32 screen_update_spacegun(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void spacegun_map(address_map &map); - void spacegun_cpub_map(address_map &map); + void spacegun_map(address_map &map) ATTR_COLD; + void spacegun_cpub_map(address_map &map) ATTR_COLD; required_device m_eeprom; required_ioport m_io_eepromout; diff --git a/src/mame/taito/taitoair.h b/src/mame/taito/taitoair.h index 0807f2bc6a5..72d5ffd8d07 100644 --- a/src/mame/taito/taitoair.h +++ b/src/mame/taito/taitoair.h @@ -133,9 +133,9 @@ class taitoair_state : public driver_device void dsp_flags_w(offs_t offset, u16 data); void dma_regs_w(offs_t offset, u16 data, u16 mem_mask = ~0); - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); int draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); int draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect, int start_offset); @@ -146,10 +146,10 @@ class taitoair_state : public driver_device void fill_slope(bitmap_ind16 &bitmap, const rectangle &cliprect, u16 header, s32 x1, s32 x2, s32 sl1, s32 sl2, s32 y1, s32 y2, s32 *nx1, s32 *nx2); void fill_poly(bitmap_ind16 &bitmap, const rectangle &cliprect, const struct taitoair_poly *q); - void DSP_map_data(address_map &map); - void DSP_map_program(address_map &map); - void airsys_map(address_map &map); - void sound_map(address_map &map); + void DSP_map_data(address_map &map) ATTR_COLD; + void DSP_map_program(address_map &map) ATTR_COLD; + void airsys_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; }; #endif // MAME_TAITO_TAITOAIR_H diff --git a/src/mame/taito/taitoio.h b/src/mame/taito/taitoio.h index de624a0f5ac..610b4c45353 100644 --- a/src/mame/taito/taitoio.h +++ b/src/mame/taito/taitoio.h @@ -38,9 +38,9 @@ class tc0040ioc_device : public device_t protected: // device-level overrides - 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; private: // internal state @@ -77,9 +77,9 @@ class tc0220ioc_device : public device_t protected: // device-level overrides - 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; private: // internal state @@ -120,9 +120,9 @@ class tc0510nio_device : public device_t protected: // device-level overrides - 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; private: // internal state @@ -162,9 +162,9 @@ class tc0640fio_device : public device_t protected: // device-level overrides - 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; private: // internal state diff --git a/src/mame/taito/taitoio_opto.h b/src/mame/taito/taitoio_opto.h index e12dbee3350..2cf3827f2c6 100644 --- a/src/mame/taito/taitoio_opto.h +++ b/src/mame/taito/taitoio_opto.h @@ -19,7 +19,7 @@ class taitoio_opto_device : public device_t protected: // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: emu_timer *m_opto_timer; diff --git a/src/mame/taito/taitoio_yoke.h b/src/mame/taito/taitoio_yoke.h index aeb4e9be36a..a1156a17453 100644 --- a/src/mame/taito/taitoio_yoke.h +++ b/src/mame/taito/taitoio_yoke.h @@ -34,12 +34,12 @@ class taitoio_yoke_device : public device_t int handle_down_r(); protected: - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; // device-level overrides // virtual void device_validity_check(validity_checker &valid) const; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: required_ioport m_stick_x; diff --git a/src/mame/taito/taitojc.h b/src/mame/taito/taitojc.h index 88bc02e2287..bbcde5ae40e 100644 --- a/src/mame/taito/taitojc.h +++ b/src/mame/taito/taitojc.h @@ -137,19 +137,19 @@ class taitojc_state : public driver_device void taitojc_char_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0); TILE_GET_INFO_MEMBER(taitojc_tile_info); - virtual void machine_reset() override; - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; uint32_t screen_update_taitojc(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); uint32_t screen_update_dendego(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); INTERRUPT_GEN_MEMBER(taitojc_vblank); void draw_object(bitmap_ind16 &bitmap, const rectangle &cliprect, uint32_t w1, uint32_t w2, uint8_t bank_type); void draw_object_bank(bitmap_ind16 &bitmap, const rectangle &cliprect, uint8_t bank_type, uint8_t pri); - void dendego_map(address_map &map); - void hc11_pgm_map(address_map &map); - void taitojc_map(address_map &map); - void tms_data_map(address_map &map); - void tms_program_map(address_map &map); - void cpu_space_map(address_map &map); + void dendego_map(address_map &map) ATTR_COLD; + void hc11_pgm_map(address_map &map) ATTR_COLD; + void taitojc_map(address_map &map) ATTR_COLD; + void tms_data_map(address_map &map) ATTR_COLD; + void tms_program_map(address_map &map) ATTR_COLD; + void cpu_space_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/taito/taitopjc.cpp b/src/mame/taito/taitopjc.cpp index 9b0d09013b6..750fa10e3f7 100644 --- a/src/mame/taito/taitopjc.cpp +++ b/src/mame/taito/taitopjc.cpp @@ -331,9 +331,9 @@ class taitopjc_state : public driver_device void init_optiger(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -388,12 +388,12 @@ class taitopjc_state : public driver_device uint32_t m_tlcs_sound_ptr = 0; - void mn10200_map(address_map &map); - void ppc603e_mem(address_map &map); - void tlcs900h_mem(address_map &map); - void tms_data_map(address_map &map); - void tms_io_map(address_map &map); - void tms_program_map(address_map &map); + void mn10200_map(address_map &map) ATTR_COLD; + void ppc603e_mem(address_map &map) ATTR_COLD; + void tlcs900h_mem(address_map &map) ATTR_COLD; + void tms_data_map(address_map &map) ATTR_COLD; + void tms_io_map(address_map &map) ATTR_COLD; + void tms_program_map(address_map &map) ATTR_COLD; }; void taitopjc_state::video_exit() diff --git a/src/mame/taito/taitosj.h b/src/mame/taito/taitosj.h index fab0ed4ac46..bd2190ddc49 100644 --- a/src/mame/taito/taitosj.h +++ b/src/mame/taito/taitosj.h @@ -58,9 +58,9 @@ class taitosj_state : public driver_device template ioport_value kikstart_gear_r(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; virtual void device_post_load() override; private: @@ -163,8 +163,8 @@ class taitosj_state : public driver_device void copy_layers(bitmap_ind16 &bitmap, const rectangle &cliprect, copy_layer_func_t copy_layer_func, int *sprites_on, rectangle *sprite_areas); int video_update_common(bitmap_ind16 &bitmap, const rectangle &cliprect, copy_layer_func_t copy_layer_func); - void kikstart_main_map(address_map &map); - void taitosj_audio_map(address_map &map); - void main_mcu_map(address_map &map); - void main_nomcu_map(address_map &map); + void kikstart_main_map(address_map &map) ATTR_COLD; + void taitosj_audio_map(address_map &map) ATTR_COLD; + void main_mcu_map(address_map &map) ATTR_COLD; + void main_nomcu_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/taito/taitosjsec.h b/src/mame/taito/taitosjsec.h index 953ec684179..fa8f88f7e56 100644 --- a/src/mame/taito/taitosjsec.h +++ b/src/mame/taito/taitosjsec.h @@ -41,9 +41,9 @@ class taito_sj_security_mcu_device : public device_t void reset_w(int state); protected: - void device_start() override; - void device_reset() override; - void device_add_mconfig(machine_config &config) override; + void device_start() override ATTR_COLD; + void device_reset() override ATTR_COLD; + void device_add_mconfig(machine_config &config) override ATTR_COLD; u8 mcu_pa_r(); u8 mcu_pc_r(); diff --git a/src/mame/taito/taitottl.cpp b/src/mame/taito/taitottl.cpp index 0550aa1e670..84c1de8fe6c 100644 --- a/src/mame/taito/taitottl.cpp +++ b/src/mame/taito/taitottl.cpp @@ -105,10 +105,10 @@ class taitottl_state : public driver_device required_device m_video; // driver_device overrides - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; }; diff --git a/src/mame/taito/taitotx.cpp b/src/mame/taito/taitotx.cpp index a623165b812..57fd7368eb5 100644 --- a/src/mame/taito/taitotx.cpp +++ b/src/mame/taito/taitotx.cpp @@ -169,7 +169,7 @@ class taito_type_x_state : public driver_device private: required_device m_maincpu; - void taito_type_x_map(address_map &map); + void taito_type_x_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/taito/taitotz.cpp b/src/mame/taito/taitotz.cpp index eaee3b6b236..c3ddcb03cd1 100644 --- a/src/mame/taito/taitotz.cpp +++ b/src/mame/taito/taitotz.cpp @@ -576,9 +576,9 @@ class taitotz_state : public driver_device required_device m_screen; protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -637,9 +637,9 @@ class taitotz_state : public driver_device void init_taitotz_152(); void init_taitotz_111a(); - void landhigh_tlcs900h_mem(address_map &map); - void ppc603e_mem(address_map &map); - void tlcs900h_mem(address_map &map); + void landhigh_tlcs900h_mem(address_map &map) ATTR_COLD; + void ppc603e_mem(address_map &map) ATTR_COLD; + void tlcs900h_mem(address_map &map) ATTR_COLD; }; class taitotz_renderer : public poly_manager diff --git a/src/mame/taito/taitowlf.cpp b/src/mame/taito/taitowlf.cpp index 2f5ce717519..fcc2cb8a223 100644 --- a/src/mame/taito/taitowlf.cpp +++ b/src/mame/taito/taitowlf.cpp @@ -112,10 +112,10 @@ class isa16_taito_rom_disk : public device_t, public device_isa16_card_interface DECLARE_INPUT_CHANGED_MEMBER(coin_irq) { m_isa->irq7_w(ASSERT_LINE); }; protected: - virtual void device_start() override; - virtual void device_reset() override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() 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 ioport_constructor device_input_ports() const override ATTR_COLD; private: required_memory_region m_program_rom; @@ -126,7 +126,7 @@ class isa16_taito_rom_disk : public device_t, public device_isa16_card_interface required_ioport m_eepromin; required_ioport m_eepromout; - void io_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; u8 m_program_bank = 0; u8 m_program_select = 0; @@ -136,7 +136,7 @@ class isa16_taito_rom_disk : public device_t, public device_isa16_card_interface void remap(int space_id, offs_t start, offs_t end) override; - void bankdev_map(address_map &map); + void bankdev_map(address_map &map) ATTR_COLD; void nio3_w(u8 data); void nio4_w(u8 data); @@ -386,14 +386,14 @@ class isa16_p5txla_mb : public device_t, public device_isa16_card_interface required_device m_kbdc; protected: - 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; private: void remap(int space_id, offs_t start, offs_t end) override; - void device_map(address_map &map); + void device_map(address_map &map) ATTR_COLD; }; DEFINE_DEVICE_TYPE(ISA16_P5TXLA_MB, isa16_p5txla_mb, "isa16_p5txla_mb", "ISA16 P5TX-LA Virtual MB resources") @@ -463,8 +463,8 @@ class p5txla_state : public driver_device required_device m_maincpu; private: - void p5txla_io(address_map &map); - void p5txla_map(address_map &map); + void p5txla_io(address_map &map) ATTR_COLD; + void p5txla_map(address_map &map) ATTR_COLD; // static void winbond_superio_config(device_t *device); }; diff --git a/src/mame/taito/tc0080vco.h b/src/mame/taito/tc0080vco.h index f98a0c00553..569e271d133 100644 --- a/src/mame/taito/tc0080vco.h +++ b/src/mame/taito/tc0080vco.h @@ -46,7 +46,7 @@ class tc0080vco_device : public device_t, public device_gfx_interface protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void device_post_load() override; private: diff --git a/src/mame/taito/tc0100scn.h b/src/mame/taito/tc0100scn.h index ed0938537d6..92746dae2e7 100644 --- a/src/mame/taito/tc0100scn.h +++ b/src/mame/taito/tc0100scn.h @@ -68,8 +68,8 @@ class tc0100scn_base_device : public device_t, public device_gfx_interface tc0100scn_base_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); // 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 device_post_load() override; int m_gfxlayout; @@ -114,7 +114,7 @@ class tc0100scn_device : public tc0100scn_base_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: // decoding info @@ -129,7 +129,7 @@ class tc0620scc_device : public tc0100scn_base_device protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: // decoding info diff --git a/src/mame/taito/tc0110pcr.h b/src/mame/taito/tc0110pcr.h index f41e93be152..c97c4f9f9cd 100644 --- a/src/mame/taito/tc0110pcr.h +++ b/src/mame/taito/tc0110pcr.h @@ -21,8 +21,8 @@ class tc0110pcr_device : public device_t, public device_palette_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 device_post_load() override; // device_palette_interface overrides diff --git a/src/mame/taito/tc0150rod.h b/src/mame/taito/tc0150rod.h index 0d7f1069715..7dd097ef3f3 100644 --- a/src/mame/taito/tc0150rod.h +++ b/src/mame/taito/tc0150rod.h @@ -16,7 +16,7 @@ class tc0150rod_device : public device_t protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: // internal state diff --git a/src/mame/taito/tc0180vcu.h b/src/mame/taito/tc0180vcu.h index ac95a19b548..0c9903434ac 100644 --- a/src/mame/taito/tc0180vcu.h +++ b/src/mame/taito/tc0180vcu.h @@ -30,11 +30,11 @@ class tc0180vcu_device : public device_t, public device_gfx_interface, public de void draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect ); void draw_framebuffer( bitmap_ind16 &bitmap, const rectangle &cliprect, int priority ); - void tc0180vcu_memrw(address_map &map); + void tc0180vcu_memrw(address_map &map) ATTR_COLD; protected: // 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; TIMER_CALLBACK_MEMBER(update_intl); diff --git a/src/mame/taito/tc0280grd.h b/src/mame/taito/tc0280grd.h index c3e7dc8b5b5..a52ee37f95e 100644 --- a/src/mame/taito/tc0280grd.h +++ b/src/mame/taito/tc0280grd.h @@ -30,8 +30,8 @@ class tc0280grd_device : public device_t, public device_gfx_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; private: // internal state diff --git a/src/mame/taito/tc0360pri.h b/src/mame/taito/tc0360pri.h index bdee37b911a..881fc1b5f11 100644 --- a/src/mame/taito/tc0360pri.h +++ b/src/mame/taito/tc0360pri.h @@ -15,8 +15,8 @@ class tc0360pri_device : public device_t 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; private: // internal state diff --git a/src/mame/taito/tc0480scp.h b/src/mame/taito/tc0480scp.h index 91ac5eca93a..317c3fe221c 100644 --- a/src/mame/taito/tc0480scp.h +++ b/src/mame/taito/tc0480scp.h @@ -59,8 +59,8 @@ class tc0480scp_device : public device_t, public device_gfx_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 device_post_load() override; private: diff --git a/src/mame/taito/tc0780fpa.h b/src/mame/taito/tc0780fpa.h index 8def72602a9..43c25ff2955 100644 --- a/src/mame/taito/tc0780fpa.h +++ b/src/mame/taito/tc0780fpa.h @@ -57,9 +57,9 @@ class tc0780fpa_device : public device_t, public device_video_interface protected: // device-level overrides - virtual void device_start() override; - virtual void device_stop() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_stop() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: std::unique_ptr m_texture; diff --git a/src/mame/taito/topspeed.cpp b/src/mame/taito/topspeed.cpp index b7aaae29010..0e1d2f2a4ac 100644 --- a/src/mame/taito/topspeed.cpp +++ b/src/mame/taito/topspeed.cpp @@ -210,8 +210,8 @@ class topspeed_state : public driver_device ioport_value brake_pedal_r(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_shared_ptr m_spritemap; @@ -267,10 +267,10 @@ class topspeed_state : public driver_device void draw_sprites(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void cpua_map(address_map &map); - void cpub_map(address_map &map); - void z80_io(address_map &map); - void z80_prg(address_map &map); + void cpua_map(address_map &map) ATTR_COLD; + void cpub_map(address_map &map) ATTR_COLD; + void z80_io(address_map &map) ATTR_COLD; + void z80_prg(address_map &map) ATTR_COLD; }; diff --git a/src/mame/taito/tsamurai.h b/src/mame/taito/tsamurai.h index 2541a24de0f..e0e625d54ae 100644 --- a/src/mame/taito/tsamurai.h +++ b/src/mame/taito/tsamurai.h @@ -29,8 +29,8 @@ class tsamurai_state : public driver_device void tsamurai(machine_config &config); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; // common void nmi_enable_w(int state); @@ -60,10 +60,10 @@ class tsamurai_state : public driver_device void vblank_irq(int state); - void main_map(address_map &map); - void sound1_map(address_map &map); - void sound2_map(address_map &map); - void z80_io_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound1_map(address_map &map) ATTR_COLD; + void sound2_map(address_map &map) ATTR_COLD; + void z80_io_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_audiocpu; @@ -107,15 +107,15 @@ class vsgongf_state : public tsamurai_state void vsgongf(machine_config &config); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: optional_device m_soundlatch; // vsgongf only - void sound_vsgongf_map(address_map &map); - void vsgongf_audio_io_map(address_map &map); - void vsgongf_map(address_map &map); + void sound_vsgongf_map(address_map &map) ATTR_COLD; + void vsgongf_audio_io_map(address_map &map) ATTR_COLD; + void vsgongf_map(address_map &map) ATTR_COLD; // vsgongf specific void vsgongf_color_w(uint8_t data); @@ -148,8 +148,8 @@ class m660_state : public tsamurai_state void init_the26thz(); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; virtual TILE_GET_INFO_MEMBER(get_bg_tile_info) override; virtual TILE_GET_INFO_MEMBER(get_fg_tile_info) override; @@ -162,12 +162,12 @@ class m660_state : public tsamurai_state void m660_sound_command3_w(uint8_t data); uint8_t m660_sound_command3_r(); - void m660_map(address_map &map); - void sound1_m660_map(address_map &map); - void sound2_m660_map(address_map &map); - void sound3_m660_io_map(address_map &map); - void sound3_m660_map(address_map &map); - void z80_m660_io_map(address_map &map); + void m660_map(address_map &map) ATTR_COLD; + void sound1_m660_map(address_map &map) ATTR_COLD; + void sound2_m660_map(address_map &map) ATTR_COLD; + void sound3_m660_io_map(address_map &map) ATTR_COLD; + void sound3_m660_map(address_map &map) ATTR_COLD; + void z80_m660_io_map(address_map &map) ATTR_COLD; //m660 specific int m_textbank2 = 0; diff --git a/src/mame/taito/undrfire.h b/src/mame/taito/undrfire.h index 42583a0ead0..da7c9557d6d 100644 --- a/src/mame/taito/undrfire.h +++ b/src/mame/taito/undrfire.h @@ -42,8 +42,8 @@ class undrfire_state : public driver_device void cbombers(machine_config &config); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: struct uf_tempsprite @@ -100,9 +100,9 @@ class undrfire_state : public driver_device void draw_sprites(screen_device &screen, bitmap_ind16 &bitmap,const rectangle &cliprect,const u32 *primasks,int x_offs,int y_offs); void draw_sprites_cbombers(screen_device &screen, bitmap_ind16 &bitmap,const rectangle &cliprect,const u8* pritable,int x_offs,int y_offs); - void cbombers_cpua_map(address_map &map); - void cbombers_cpub_map(address_map &map); - void undrfire_map(address_map &map); + void cbombers_cpua_map(address_map &map) ATTR_COLD; + void cbombers_cpub_map(address_map &map) ATTR_COLD; + void undrfire_map(address_map &map) ATTR_COLD; }; #endif // MAME_TAITO_UNDRFIRE_H diff --git a/src/mame/taito/vicshoot.cpp b/src/mame/taito/vicshoot.cpp index 8631db0862a..4d7cb50c947 100644 --- a/src/mame/taito/vicshoot.cpp +++ b/src/mame/taito/vicshoot.cpp @@ -43,8 +43,8 @@ class vicshoot_state : public driver_device private: required_device m_maincpu; - void main_map(address_map &map); - void sound_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/taito/volfied.cpp b/src/mame/taito/volfied.cpp index df11117a476..5e5bf2d2a27 100644 --- a/src/mame/taito/volfied.cpp +++ b/src/mame/taito/volfied.cpp @@ -82,7 +82,7 @@ class volfied_state : public driver_device void volfied(machine_config &config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: void video_ram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); @@ -97,8 +97,8 @@ class volfied_state : public driver_device void refresh_pixel_layer(bitmap_ind16 &bitmap); - void main_map(address_map &map); - void z80_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void z80_map(address_map &map) ATTR_COLD; // memory pointers required_shared_ptr m_video_ram; diff --git a/src/mame/taito/warriorb.cpp b/src/mame/taito/warriorb.cpp index 815b8cdd731..2a0fd4d6c23 100644 --- a/src/mame/taito/warriorb.cpp +++ b/src/mame/taito/warriorb.cpp @@ -199,8 +199,8 @@ class warriorb_state : public driver_device void darius2d(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: // devices @@ -229,9 +229,9 @@ class warriorb_state : public driver_device void draw_sprites(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, int x_offs, int y_offs, int chip); template u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void darius2d_main_map(address_map &map); - void warriorb_main_map(address_map &map); - void z80_sound_map(address_map &map); + void darius2d_main_map(address_map &map) ATTR_COLD; + void warriorb_main_map(address_map &map) ATTR_COLD; + void z80_sound_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/taito/wgp.h b/src/mame/taito/wgp.h index 777424bbbe1..0fb4018219d 100644 --- a/src/mame/taito/wgp.h +++ b/src/mame/taito/wgp.h @@ -47,9 +47,9 @@ class wgp_state : public driver_device void init_wgp2(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; virtual void device_post_load() override; TIMER_CALLBACK_MEMBER(trigger_cpu_b_int6); @@ -73,9 +73,9 @@ class wgp_state : public driver_device u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); INTERRUPT_GEN_MEMBER(cpub_interrupt); - void cpu2_map(address_map &map); - void main_map(address_map &map); - void z80_sound_map(address_map &map); + void cpu2_map(address_map &map) ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; + void z80_sound_map(address_map &map) ATTR_COLD; template TILE_GET_INFO_MEMBER(get_piv_tile_info); diff --git a/src/mame/taito/wyvernf0.cpp b/src/mame/taito/wyvernf0.cpp index 17f8bc7c316..2f6dee895d7 100644 --- a/src/mame/taito/wyvernf0.cpp +++ b/src/mame/taito/wyvernf0.cpp @@ -69,9 +69,9 @@ class wyvernf0_state : public driver_device void wyvernf0(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: // memory pointers @@ -115,8 +115,8 @@ class wyvernf0_state : public driver_device required_device m_palette; required_device m_soundlatch; - void sound_map(address_map &map); - void wyvernf0_map(address_map &map); + void sound_map(address_map &map) ATTR_COLD; + void wyvernf0_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/tandberg/tdv2100_disp_logic.h b/src/mame/tandberg/tdv2100_disp_logic.h index 1044d029fc1..a5ce275ee61 100644 --- a/src/mame/tandberg/tdv2100_disp_logic.h +++ b/src/mame/tandberg/tdv2100_disp_logic.h @@ -46,11 +46,11 @@ class tandberg_tdv2100_disp_logic_device : public device_t void break_w(int state); protected: - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; - virtual ioport_constructor device_input_ports() const override; - virtual const tiny_rom_entry *device_rom_region() const override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; private: diff --git a/src/mame/tandberg/tdv2100_kbd.h b/src/mame/tandberg/tdv2100_kbd.h index de9d278ac37..185e1f1dfd0 100644 --- a/src/mame/tandberg/tdv2100_kbd.h +++ b/src/mame/tandberg/tdv2100_kbd.h @@ -33,10 +33,10 @@ class tandberg_tdv2100_keyboard_device : public device_t void nakl_w(int state); protected: - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual ioport_constructor device_input_ports() const override; - virtual const tiny_rom_entry *device_rom_region() const override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; private: void scan_next_column(int state); diff --git a/src/mame/tandberg/tdv2324.h b/src/mame/tandberg/tdv2324.h index 1eb6e38cdeb..7fa6719b1e7 100644 --- a/src/mame/tandberg/tdv2324.h +++ b/src/mame/tandberg/tdv2324.h @@ -72,7 +72,7 @@ class tdv2324_state : public driver_device required_device m_pit1; required_device m_tms; - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); uint8_t tdv2324_main_io_30(); @@ -81,11 +81,11 @@ class tdv2324_state : public driver_device // video state required_shared_ptr m_video_ram; - void tdv2324_fdc_mem(address_map &map); - void tdv2324_io(address_map &map); - void tdv2324_mem(address_map &map); - void tdv2324_sub_io(address_map &map); - void tdv2324_sub_mem(address_map &map); + void tdv2324_fdc_mem(address_map &map) ATTR_COLD; + void tdv2324_io(address_map &map) ATTR_COLD; + void tdv2324_mem(address_map &map) ATTR_COLD; + void tdv2324_sub_io(address_map &map) ATTR_COLD; + void tdv2324_sub_mem(address_map &map) ATTR_COLD; }; diff --git a/src/mame/tangerine/alphatan.cpp b/src/mame/tangerine/alphatan.cpp index 1f4a48f299f..82f7ef0115c 100644 --- a/src/mame/tangerine/alphatan.cpp +++ b/src/mame/tangerine/alphatan.cpp @@ -64,7 +64,7 @@ class alphatan_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_maincpu; @@ -79,7 +79,7 @@ class alphatan_state : public driver_device required_device m_cassette; required_ioport m_config; - void alphatan_map(address_map &map); + void alphatan_map(address_map &map) ATTR_COLD; uint8_t saa5070_r(offs_t offset); void saa5070_w(offs_t offset, uint8_t data); diff --git a/src/mame/tangerine/hhtiger.cpp b/src/mame/tangerine/hhtiger.cpp index 75a1efe0e36..6c108808104 100644 --- a/src/mame/tangerine/hhtiger.cpp +++ b/src/mame/tangerine/hhtiger.cpp @@ -89,8 +89,8 @@ class hhtiger_state : public driver_device void hhtiger(machine_config &config); private: - virtual void machine_reset() override; - virtual void machine_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; uint8_t disable_rom_r(); uint8_t read(offs_t offset); @@ -121,10 +121,10 @@ class hhtiger_state : public driver_device void via_1_out_ca2(int state); void via_1_out_cb2(int state); - void z80_mem(address_map &map); - void z80_io(address_map &map); - void m6809_mem(address_map &map); - void upd7220_map(address_map &map); + void z80_mem(address_map &map) ATTR_COLD; + void z80_io(address_map &map) ATTR_COLD; + void m6809_mem(address_map &map) ATTR_COLD; + void upd7220_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_memory_region m_rom_z80; diff --git a/src/mame/tangerine/microtan.h b/src/mame/tangerine/microtan.h index 64cf8076607..d6023ecc39e 100644 --- a/src/mame/tangerine/microtan.h +++ b/src/mame/tangerine/microtan.h @@ -44,8 +44,8 @@ class microtan_state : public driver_device void trigger_reset(int state); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -63,8 +63,8 @@ class microtan_state : public driver_device uint8_t bffx_r(offs_t offset); void bffx_w(offs_t offset, uint8_t data); - void mt65_map(address_map &map); - void spinv_map(address_map &map); + void mt65_map(address_map &map) ATTR_COLD; + void spinv_map(address_map &map) ATTR_COLD; void kbd_int(int state); int m_keyboard_int_flag = 0; @@ -104,14 +104,14 @@ class mt6809_state : public driver_device void trigger_reset(int state); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_maincpu; required_device m_keyboard; required_device m_tanbus; - void mt6809_map(address_map &map); + void mt6809_map(address_map &map) ATTR_COLD; uint8_t bffx_r(offs_t offset); void bffx_w(offs_t offset, uint8_t data); diff --git a/src/mame/tangerine/oric.cpp b/src/mame/tangerine/oric.cpp index e09c4cc5544..d550f51f766 100644 --- a/src/mame/tangerine/oric.cpp +++ b/src/mame/tangerine/oric.cpp @@ -88,16 +88,16 @@ class oric_state : public driver_device void psg_a_w(uint8_t data); TIMER_CALLBACK_MEMBER(update_tape); - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; uint32_t screen_update_oric(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); void vblank_w(int state); void oric_common(machine_config &config); void oric(machine_config &config); void prav8d(machine_config &config); - void oric_mem(address_map &map); + void oric_mem(address_map &map) ATTR_COLD; protected: required_device m_maincpu; @@ -158,11 +158,11 @@ class telestrat_state : public oric_state static void floppy_formats(format_registration &fr); - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; void telstrat(machine_config &config); - void telestrat_mem(address_map &map); + void telestrat_mem(address_map &map) ATTR_COLD; protected: enum { P_IRQEN = 0x01, diff --git a/src/mame/tatsumi/kingdrby.cpp b/src/mame/tatsumi/kingdrby.cpp index 8e40465f531..8b7830650d5 100644 --- a/src/mame/tatsumi/kingdrby.cpp +++ b/src/mame/tatsumi/kingdrby.cpp @@ -111,7 +111,7 @@ class kingdrby_state : public driver_device void kingdrby(machine_config &config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: void sc0_vram_w(offs_t offset, uint8_t data); @@ -133,15 +133,15 @@ class kingdrby_state : public driver_device uint32_t screen_update_kingdrby(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); void draw_sprites(bitmap_rgb32 &bitmap, const rectangle &cliprect); - void cowrace_sound_io(address_map &map); - void cowrace_sound_map(address_map &map); - void master_io_map(address_map &map); - void master_map(address_map &map); - void slave_1986_map(address_map &map); - void slave_io_map(address_map &map); - void slave_map(address_map &map); - void sound_io_map(address_map &map); - void sound_map(address_map &map); + void cowrace_sound_io(address_map &map) ATTR_COLD; + void cowrace_sound_map(address_map &map) ATTR_COLD; + void master_io_map(address_map &map) ATTR_COLD; + void master_map(address_map &map) ATTR_COLD; + void slave_1986_map(address_map &map) ATTR_COLD; + void slave_io_map(address_map &map) ATTR_COLD; + void slave_map(address_map &map) ATTR_COLD; + void sound_io_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; uint8_t m_sound_cmd = 0; required_shared_ptr m_vram; diff --git a/src/mame/tatsumi/lockon.h b/src/mame/tatsumi/lockon.h index 66c84a7bf1b..4a5870407d2 100644 --- a/src/mame/tatsumi/lockon.h +++ b/src/mame/tatsumi/lockon.h @@ -57,9 +57,9 @@ class lockon_state : public driver_device void lockon(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: /* memory pointers */ @@ -151,11 +151,11 @@ class lockon_state : public driver_device void rotate_draw( bitmap_ind16 &bitmap, const rectangle &cliprect ); void hud_draw( bitmap_ind16 &bitmap, const rectangle &cliprect ); void ym2203_irq(int state); - void ground_v30(address_map &map); - void main_v30(address_map &map); - void object_v30(address_map &map); - void sound_io(address_map &map); - void sound_prg(address_map &map); + void ground_v30(address_map &map) ATTR_COLD; + void main_v30(address_map &map) ATTR_COLD; + void object_v30(address_map &map) ATTR_COLD; + void sound_io(address_map &map) ATTR_COLD; + void sound_prg(address_map &map) ATTR_COLD; }; #endif // MAME_TATSUMI_LOCKON_H diff --git a/src/mame/tatsumi/tatsumi.h b/src/mame/tatsumi/tatsumi.h index e45f531e520..751bebe430b 100644 --- a/src/mame/tatsumi/tatsumi.h +++ b/src/mame/tatsumi/tatsumi.h @@ -114,10 +114,10 @@ class apache3_state : public tatsumi_state uint32_t screen_update_apache3(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); void apache3_68000_reset(int state); - void apache3_68000_map(address_map &map); - void apache3_v20_map(address_map &map); - void apache3_v30_map(address_map &map); - void apache3_z80_map(address_map &map); + void apache3_68000_map(address_map &map) ATTR_COLD; + void apache3_v20_map(address_map &map) ATTR_COLD; + void apache3_v30_map(address_map &map) ATTR_COLD; + void apache3_z80_map(address_map &map) ATTR_COLD; void draw_sky(bitmap_rgb32 &bitmap, const rectangle &cliprect, int palette_base, int start_offset); void draw_ground(bitmap_rgb32 &dst, const rectangle &cliprect); @@ -168,11 +168,11 @@ class roundup5_state : public tatsumi_state DECLARE_VIDEO_START(roundup5); uint32_t screen_update_roundup5(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void roundup5_68000_map(address_map &map); - void roundup5_v30_map(address_map &map); - void roundup5_z80_map(address_map &map); + void roundup5_68000_map(address_map &map) ATTR_COLD; + void roundup5_v30_map(address_map &map) ATTR_COLD; + void roundup5_z80_map(address_map &map) ATTR_COLD; -// virtual void machine_reset() override; +// virtual void machine_reset() override ATTR_COLD; void draw_road(bitmap_rgb32 &bitmap, const rectangle &cliprect); void draw_landscape(bitmap_rgb32 &bitmap, const rectangle &cliprect, uint8_t type); @@ -209,7 +209,7 @@ class cyclwarr_state : public tatsumi_state void init_cyclwarr(); protected: - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; private: uint16_t cyclwarr_sprite_r(offs_t offset); @@ -231,10 +231,10 @@ class cyclwarr_state : public tatsumi_state DECLARE_VIDEO_START(bigfight); uint32_t screen_update_cyclwarr(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void common_map(address_map &map); - void master_map(address_map &map); - void slave_map(address_map &map); - void sound_map(address_map &map); + void common_map(address_map &map) ATTR_COLD; + void master_map(address_map &map) ATTR_COLD; + void slave_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; required_device m_soundlatch; diff --git a/src/mame/tatsumi/tx1.h b/src/mame/tatsumi/tx1.h index 669b7c2648b..19a791031fc 100644 --- a/src/mame/tatsumi/tx1.h +++ b/src/mame/tatsumi/tx1.h @@ -66,7 +66,7 @@ class tx1_state : public driver_device void buggybjr(machine_config &config); protected: - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; private: struct math_t @@ -236,11 +236,11 @@ class tx1_state : public driver_device void screen_vblank_buggyboy(int state); TIMER_CALLBACK_MEMBER(interrupt_callback); - void buggybjr_main(address_map &map); - void buggyboy_main(address_map &map); - void buggyboy_math(address_map &map); - void tx1_main(address_map &map); - void tx1_math(address_map &map); + void buggybjr_main(address_map &map) ATTR_COLD; + void buggyboy_main(address_map &map) ATTR_COLD; + void buggyboy_math(address_map &map) ATTR_COLD; + void tx1_main(address_map &map) ATTR_COLD; + void tx1_math(address_map &map) ATTR_COLD; }; #endif // MAME_TATSUMI_TX1_H diff --git a/src/mame/tatsumi/tx1_a.h b/src/mame/tatsumi/tx1_a.h index 98b5ae2a7c6..3c630f090ee 100644 --- a/src/mame/tatsumi/tx1_a.h +++ b/src/mame/tatsumi/tx1_a.h @@ -66,16 +66,16 @@ class tx1_sound_device : public device_t, public device_sound_interface tx1_sound_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // device-level overrides - virtual ioport_constructor device_input_ports() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; // sound stream update overrides virtual void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; - void tx1_sound_io(address_map &map); - void tx1_sound_prg(address_map &map); + void tx1_sound_io(address_map &map) ATTR_COLD; + void tx1_sound_prg(address_map &map) ATTR_COLD; // internal state required_device m_audiocpu; @@ -131,7 +131,7 @@ class tx1j_sound_device : public tx1_sound_device protected: // device-level overrides - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; }; class buggyboy_sound_device : public tx1_sound_device @@ -143,10 +143,10 @@ class buggyboy_sound_device : public tx1_sound_device buggyboy_sound_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // device-level overrides - virtual ioport_constructor device_input_ports() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; // sound stream update overrides virtual void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; @@ -158,8 +158,8 @@ class buggyboy_sound_device : public tx1_sound_device uint8_t bb_analog_r(offs_t offset); void bb_coin_cnt_w(uint8_t data); - void buggyboy_sound_io(address_map &map); - void buggyboy_sound_prg(address_map &map); + void buggyboy_sound_io(address_map &map) ATTR_COLD; + void buggyboy_sound_prg(address_map &map) ATTR_COLD; required_device_array m_ym; }; @@ -171,14 +171,14 @@ class buggyboyjr_sound_device : public buggyboy_sound_device protected: // device-level overrides - virtual ioport_constructor device_input_ports() const override; - virtual void device_add_mconfig(machine_config &config) override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; virtual void ym2_b_w(uint8_t data) override; uint8_t bbjr_analog_r(offs_t offset); - void buggybjr_sound_prg(address_map &map); + void buggybjr_sound_prg(address_map &map) ATTR_COLD; }; DECLARE_DEVICE_TYPE(TX1_SOUND, tx1_sound_device) diff --git a/src/mame/tatung/einstein.cpp b/src/mame/tatung/einstein.cpp index 1f9c2b9ed40..2396d5365bc 100644 --- a/src/mame/tatung/einstein.cpp +++ b/src/mame/tatung/einstein.cpp @@ -112,8 +112,8 @@ class einstein_state : public driver_device DECLARE_QUICKLOAD_LOAD_MEMBER(quickload_cb); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: TIMER_DEVICE_CALLBACK_MEMBER(keyboard_timer_callback); @@ -148,9 +148,9 @@ class einstein_state : public driver_device uint8_t alpha_lock_r(); void alpha_lock_w(uint8_t data); - void einstein_io(address_map &map); - void einstein_mem(address_map &map); - void einst256_io(address_map &map); + void einstein_io(address_map &map) ATTR_COLD; + void einstein_mem(address_map &map) ATTR_COLD; + void einst256_io(address_map &map) ATTR_COLD; void einstein_scan_keyboard(); diff --git a/src/mame/tch/kickgoal.h b/src/mame/tch/kickgoal.h index 0bb5861cac7..d16e9d48eb4 100644 --- a/src/mame/tch/kickgoal.h +++ b/src/mame/tch/kickgoal.h @@ -44,8 +44,8 @@ class kickgoal_state : public driver_device void init_actionhw(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: void fgram_w(offs_t offset, u16 data, u16 mem_mask = ~0); @@ -74,8 +74,8 @@ class kickgoal_state : public driver_device u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void program_map(address_map &map); - void oki_map(address_map &map); + void program_map(address_map &map) ATTR_COLD; + void oki_map(address_map &map) ATTR_COLD; /* video-related */ tilemap_t *m_fgtm = nullptr; diff --git a/src/mame/tch/littlerb.cpp b/src/mame/tch/littlerb.cpp index 364d16c27bc..258b7795d2c 100644 --- a/src/mame/tch/littlerb.cpp +++ b/src/mame/tch/littlerb.cpp @@ -126,7 +126,7 @@ class littlerb_state : public driver_device ioport_value frame_step_r(); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_maincpu; @@ -146,7 +146,7 @@ class littlerb_state : public driver_device TIMER_DEVICE_CALLBACK_MEMBER(sound_step_cb); TIMER_DEVICE_CALLBACK_MEMBER(sound_cb); - void main(address_map &map); + void main(address_map &map) ATTR_COLD; }; void littlerb_state::machine_start() diff --git a/src/mame/tch/rltennis.h b/src/mame/tch/rltennis.h index f33fc2c1e23..8eebca17fa3 100644 --- a/src/mame/tch/rltennis.h +++ b/src/mame/tch/rltennis.h @@ -44,14 +44,14 @@ class rltennis_state : public driver_device void snd2_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); void blitter_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); INTERRUPT_GEN_MEMBER(interrupt); TIMER_CALLBACK_MEMBER(sample_player); - void ramdac_map(address_map &map); - void rltennis_main(address_map &map); + void ramdac_map(address_map &map) ATTR_COLD; + void rltennis_main(address_map &map) ATTR_COLD; }; diff --git a/src/mame/tch/speedspn.cpp b/src/mame/tch/speedspn.cpp index fd93c81063d..01283ac4963 100644 --- a/src/mame/tch/speedspn.cpp +++ b/src/mame/tch/speedspn.cpp @@ -100,8 +100,8 @@ class speedspn_state : public driver_device void speedspn(machine_config &config); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -129,10 +129,10 @@ class speedspn_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); - void main_io_map(address_map &map); - void oki_map(address_map &map); - void main_program_map(address_map &map); - void sound_map(address_map &map); + void main_io_map(address_map &map) ATTR_COLD; + void oki_map(address_map &map) ATTR_COLD; + void main_program_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; }; TILE_GET_INFO_MEMBER(speedspn_state::get_tile_info) diff --git a/src/mame/tch/wheelfir.cpp b/src/mame/tch/wheelfir.cpp index fae8d8398cf..1f7345ea44c 100644 --- a/src/mame/tch/wheelfir.cpp +++ b/src/mame/tch/wheelfir.cpp @@ -142,8 +142,8 @@ class wheelfir_state : public driver_device void init_kongball(); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -190,9 +190,9 @@ class wheelfir_state : public driver_device uint32_t screen_update_wheelfir(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void screen_vblank_wheelfir(int state); TIMER_DEVICE_CALLBACK_MEMBER(scanline_timer_callback); - void ramdac_map(address_map &map); - void wheelfir_main(address_map &map); - void wheelfir_sub(address_map &map); + void ramdac_map(address_map &map) ATTR_COLD; + void wheelfir_main(address_map &map) ATTR_COLD; + void wheelfir_sub(address_map &map) ATTR_COLD; int m_adc_eoc; bool m_force_extra_irq1; diff --git a/src/mame/teamconcepts/comquest.cpp b/src/mame/teamconcepts/comquest.cpp index 32a58e60e23..08c1bc0ae1c 100644 --- a/src/mame/teamconcepts/comquest.cpp +++ b/src/mame/teamconcepts/comquest.cpp @@ -62,7 +62,7 @@ class comquest_state : public driver_device void comquest(machine_config &config); protected: - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; @@ -73,7 +73,7 @@ class comquest_state : public driver_device [[maybe_unused]] void comquest_write(offs_t offset, uint8_t data); uint32_t screen_update_comquest(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void comquest_mem(address_map &map); + void comquest_mem(address_map &map) ATTR_COLD; }; diff --git a/src/mame/tecfri/ambush.cpp b/src/mame/tecfri/ambush.cpp index 3c50894fd0f..dee39906f16 100644 --- a/src/mame/tecfri/ambush.cpp +++ b/src/mame/tecfri/ambush.cpp @@ -104,9 +104,9 @@ class ambush_state : public driver_device void coin_counter_2_w(int state); void output_latches_w(offs_t offset, uint8_t data); - void bootleg_map(address_map &map); - void main_map(address_map &map); - void main_portmap(address_map &map); + void bootleg_map(address_map &map) ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; + void main_portmap(address_map &map) ATTR_COLD; void register_save_states(); diff --git a/src/mame/tecfri/holeland.cpp b/src/mame/tecfri/holeland.cpp index f82d2ddad3a..d89ec0741f7 100644 --- a/src/mame/tecfri/holeland.cpp +++ b/src/mame/tecfri/holeland.cpp @@ -71,7 +71,7 @@ class base_state : public driver_device void pal_offs_w(uint8_t data); void scroll_w(uint8_t data); - void io_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; }; class holeland_state : public base_state @@ -84,13 +84,13 @@ class holeland_state : public base_state void holeland(machine_config &config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: TILE_GET_INFO_MEMBER(get_tile_info); uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); - void prg_map(address_map &map); + void prg_map(address_map &map) ATTR_COLD; }; class crzrally_state : public base_state @@ -103,13 +103,13 @@ class crzrally_state : public base_state void crzrally(machine_config &config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: TILE_GET_INFO_MEMBER(get_tile_info); uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); - void prg_map(address_map &map); + void prg_map(address_map &map) ATTR_COLD; }; /*************************************************************************** diff --git a/src/mame/tecfri/sauro.cpp b/src/mame/tecfri/sauro.cpp index a38a4660f39..2b61c3faf42 100644 --- a/src/mame/tecfri/sauro.cpp +++ b/src/mame/tecfri/sauro.cpp @@ -155,7 +155,7 @@ class base_state : public driver_device void tecfri(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; required_device m_maincpu; required_device m_gfxdecode; @@ -192,13 +192,13 @@ class trckydoc_state : public base_state void trckydoc(machine_config &config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); - void prg_map(address_map &map); + void prg_map(address_map &map) ATTR_COLD; }; class sauro_state : public base_state @@ -215,7 +215,7 @@ class sauro_state : public base_state void saurobl(machine_config &config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: required_device m_soundlatch; @@ -238,10 +238,10 @@ class sauro_state : public base_state uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); - void main_io_map(address_map &map); - void main_prg_map(address_map &map); - void sauro_sound_map(address_map &map); - void saurobl_sound_map(address_map &map); + void main_io_map(address_map &map) ATTR_COLD; + void main_prg_map(address_map &map) ATTR_COLD; + void sauro_sound_map(address_map &map) ATTR_COLD; + void saurobl_sound_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/tecfri/speedbal.cpp b/src/mame/tecfri/speedbal.cpp index 2a96a0f246d..0c57d9d4d97 100644 --- a/src/mame/tecfri/speedbal.cpp +++ b/src/mame/tecfri/speedbal.cpp @@ -75,8 +75,8 @@ class speedbal_state : public driver_device void init_musicbal(); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -107,10 +107,10 @@ class speedbal_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); - void main_cpu_io_map(address_map &map); - void main_cpu_map(address_map &map); - void sound_cpu_io_map(address_map &map); - void sound_cpu_map(address_map &map); + void main_cpu_io_map(address_map &map) ATTR_COLD; + void main_cpu_map(address_map &map) ATTR_COLD; + void sound_cpu_io_map(address_map &map) ATTR_COLD; + void sound_cpu_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/technos/battlane.cpp b/src/mame/technos/battlane.cpp index 2d81dd23778..f3c92f8c034 100644 --- a/src/mame/technos/battlane.cpp +++ b/src/mame/technos/battlane.cpp @@ -42,9 +42,9 @@ class battlane_state : public driver_device void battlane(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: // memory pointers @@ -76,7 +76,7 @@ class battlane_state : public driver_device INTERRUPT_GEN_MEMBER(cpu1_interrupt); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); void draw_fg_bitmap(bitmap_ind16 &bitmap, const rectangle &cliprect); - void prg_map(address_map &map); + void prg_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/technos/blockout.cpp b/src/mame/technos/blockout.cpp index a2087766006..0f6ac210064 100644 --- a/src/mame/technos/blockout.cpp +++ b/src/mame/technos/blockout.cpp @@ -101,9 +101,9 @@ class blockout_state : public driver_device void init_agress(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: // memory pointers @@ -130,8 +130,8 @@ class blockout_state : public driver_device u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); TIMER_DEVICE_CALLBACK_MEMBER(scanline); static rgb_t xBGR_444(u32 raw); - void main_map(address_map &map); - void audio_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void audio_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/technos/bogeyman.cpp b/src/mame/technos/bogeyman.cpp index d72affb5237..c4b8e250a51 100644 --- a/src/mame/technos/bogeyman.cpp +++ b/src/mame/technos/bogeyman.cpp @@ -47,9 +47,9 @@ class bogeyman_state : public driver_device void bogeyman(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: // devices @@ -84,7 +84,7 @@ class bogeyman_state : public driver_device void palette(palette_device &palette) const; uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); - void prg_map(address_map &map); + void prg_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/technos/chinagat.cpp b/src/mame/technos/chinagat.cpp index 5ada4df8da9..a7d9f60b34b 100644 --- a/src/mame/technos/chinagat.cpp +++ b/src/mame/technos/chinagat.cpp @@ -277,9 +277,9 @@ class chinagat_state : public ddragon_state void saiyugoub2(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: // for Sai Yu Gou Ma Roku @@ -311,12 +311,12 @@ class chinagat_state : public ddragon_state int saiyugoub1_m5205_irq_r(); void saiyugoub1_m5205_irq_w(int state); - void i8748_map(address_map &map); - void main_map(address_map &map); - void saiyugoub1_sound_map(address_map &map); - void sound_map(address_map &map); - void sub_map(address_map &map); - void ym2203c_sound_map(address_map &map); + void i8748_map(address_map &map) ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; + void saiyugoub1_sound_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; + void sub_map(address_map &map) ATTR_COLD; + void ym2203c_sound_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/technos/ddragon.h b/src/mame/technos/ddragon.h index c6d4619c242..2e4ae98653a 100644 --- a/src/mame/technos/ddragon.h +++ b/src/mame/technos/ddragon.h @@ -59,9 +59,9 @@ class ddragon_state : public driver_device int subcpu_bus_free_r(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; required_device m_maincpu; required_device m_soundcpu; @@ -108,7 +108,7 @@ class ddragon_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void base_map(address_map &map); + void base_map(address_map &map) ATTR_COLD; private: // devices @@ -137,16 +137,16 @@ class ddragon_state : public driver_device uint8_t ddragon_adpcm_status_r(); void ddragonbla_port_w(uint8_t data); - void ddragon2_main_map(address_map &map); - void ddragon2_sound_map(address_map &map); - void ddragon2_sub_map(address_map &map); - void ddragon_main_map(address_map &map); - void ddragonbla_sub_map(address_map &map); - void ddragon_sound_map(address_map &map); - void ddragon6809_sound_map(address_map &map); - void ddragon_sub_map(address_map &map); - void sub_6309_map(address_map &map); - void sub_6809_map(address_map &map); + void ddragon2_main_map(address_map &map) ATTR_COLD; + void ddragon2_sound_map(address_map &map) ATTR_COLD; + void ddragon2_sub_map(address_map &map) ATTR_COLD; + void ddragon_main_map(address_map &map) ATTR_COLD; + void ddragonbla_sub_map(address_map &map) ATTR_COLD; + void ddragon_sound_map(address_map &map) ATTR_COLD; + void ddragon6809_sound_map(address_map &map) ATTR_COLD; + void ddragon_sub_map(address_map &map) ATTR_COLD; + void sub_6309_map(address_map &map) ATTR_COLD; + void sub_6809_map(address_map &map) ATTR_COLD; }; @@ -172,8 +172,8 @@ class darktowr_state : public ddragon_state void bankswitch_w(uint8_t data); void mcu_port_a_w(offs_t offset, uint8_t data); - void main_map(address_map &map); - void banked_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void banked_map(address_map &map) ATTR_COLD; required_device m_mcu; required_device m_bank; @@ -198,7 +198,7 @@ class toffy_state : public ddragon_state private: void bankswitch_w(uint8_t data); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; }; #endif // MAME_TECHNOS_DDRAGON_H diff --git a/src/mame/technos/ddragon3.h b/src/mame/technos/ddragon3.h index def802ee129..d10d746a732 100644 --- a/src/mame/technos/ddragon3.h +++ b/src/mame/technos/ddragon3.h @@ -89,9 +89,9 @@ class ddragon3_state : public driver_device void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); - void sound_map(address_map &map); + void sound_map(address_map &map) ATTR_COLD; - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: void ddragon3_vreg_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); @@ -100,15 +100,15 @@ class ddragon3_state : public driver_device void oki_bankswitch_w(uint8_t data); TILE_GET_INFO_MEMBER(get_bg_tile_info); TILE_GET_INFO_MEMBER(get_fg_tile_info); - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; uint32_t screen_update_ddragon3(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); uint32_t screen_update_ctribe(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void ctribe_map(address_map &map); - void ctribe_sound_map(address_map &map); - void dd3b_map(address_map &map); - void ddragon3_map(address_map &map); + void ctribe_map(address_map &map) ATTR_COLD; + void ctribe_sound_map(address_map &map) ATTR_COLD; + void dd3b_map(address_map &map) ATTR_COLD; + void ddragon3_map(address_map &map) ATTR_COLD; }; @@ -149,11 +149,11 @@ class wwfwfest_state : public ddragon3_state TILE_GET_INFO_MEMBER(get_fg0_tile_info); - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; DECLARE_VIDEO_START(wwfwfstb); uint32_t screen_update_wwfwfest(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; }; #endif // MAME_TECHNOS_DDRAGON3_H diff --git a/src/mame/technos/dogfgt.cpp b/src/mame/technos/dogfgt.cpp index f0724993494..19e8aab08ba 100644 --- a/src/mame/technos/dogfgt.cpp +++ b/src/mame/technos/dogfgt.cpp @@ -55,9 +55,9 @@ class dogfgt_state : public driver_device void dogfgt(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: // memory pointers @@ -104,8 +104,8 @@ class dogfgt_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); - void main_map(address_map &map); - void sub_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sub_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/technos/matmania.cpp b/src/mame/technos/matmania.cpp index 86e633d3afb..f9e3af15be5 100644 --- a/src/mame/technos/matmania.cpp +++ b/src/mame/technos/matmania.cpp @@ -70,7 +70,7 @@ class matmania_state : public driver_device void matmania(machine_config &config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; // memory pointers required_shared_ptr_array m_videoram; @@ -93,11 +93,11 @@ class matmania_state : public driver_device void paletteram_w(offs_t offset, uint8_t data); void palette(palette_device &palette) const; - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; private: uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void sound_map(address_map &map); + void sound_map(address_map &map) ATTR_COLD; }; class maniach_state : public matmania_state @@ -115,8 +115,8 @@ class maniach_state : public matmania_state uint8_t mcu_status_r(); uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void main_map(address_map &map); - void sound_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; }; /*************************************************************************** diff --git a/src/mame/technos/mystston.cpp b/src/mame/technos/mystston.cpp index 0bd7bd32768..8f136842733 100644 --- a/src/mame/technos/mystston.cpp +++ b/src/mame/technos/mystston.cpp @@ -55,8 +55,8 @@ class mystston_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(coin_inserted); protected: - virtual void video_start() override; - virtual void video_reset() override; + virtual void video_start() override ATTR_COLD; + virtual void video_reset() override ATTR_COLD; private: static constexpr XTAL MASTER_CLOCK = XTAL(12'000'000); @@ -105,7 +105,7 @@ class mystston_state : public driver_device void set_palette(); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect, gfx_element *gfx, int flip); void on_scanline_interrupt(); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/technos/renegade.cpp b/src/mame/technos/renegade.cpp index 8d0efa9eb89..196435a4ee4 100644 --- a/src/mame/technos/renegade.cpp +++ b/src/mame/technos/renegade.cpp @@ -160,8 +160,8 @@ class renegade_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(coin_inserted); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; @@ -210,9 +210,9 @@ class renegade_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); - void renegade_map(address_map &map); - void renegade_nomcu_map(address_map &map); - void renegade_sound_map(address_map &map); + void renegade_map(address_map &map) ATTR_COLD; + void renegade_nomcu_map(address_map &map) ATTR_COLD; + void renegade_sound_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/technos/shadfrce.cpp b/src/mame/technos/shadfrce.cpp index 8c1722d4d11..76fcbcbf023 100644 --- a/src/mame/technos/shadfrce.cpp +++ b/src/mame/technos/shadfrce.cpp @@ -185,7 +185,7 @@ class shadfrce_state : public driver_device void shadfrce(machine_config &config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -237,8 +237,8 @@ class shadfrce_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void draw_sprites(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void main_map(address_map &map); - void sound_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/technos/spdodgeb.cpp b/src/mame/technos/spdodgeb.cpp index d6d85d3959f..d9f33379b23 100644 --- a/src/mame/technos/spdodgeb.cpp +++ b/src/mame/technos/spdodgeb.cpp @@ -64,9 +64,9 @@ class spdodgeb_state : public driver_device int mcu_busy_r(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -116,9 +116,9 @@ class spdodgeb_state : public driver_device TIMER_DEVICE_CALLBACK_MEMBER(interrupt); - void main_map(address_map &map); - void sound_map(address_map &map); - void mcu_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; + void mcu_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/technos/ssozumo.cpp b/src/mame/technos/ssozumo.cpp index 873b9fbda8e..a1d5714bc9a 100644 --- a/src/mame/technos/ssozumo.cpp +++ b/src/mame/technos/ssozumo.cpp @@ -45,8 +45,8 @@ class ssozumo_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(coin_inserted); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: void sound_nmi_mask_w(uint8_t data); @@ -64,8 +64,8 @@ class ssozumo_state : public driver_device void palette(palette_device &palette) const; uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void main_map(address_map &map); - void sound_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_audiocpu; diff --git a/src/mame/technos/tagteam.cpp b/src/mame/technos/tagteam.cpp index 0857c78fd38..cdaf9d0b995 100644 --- a/src/mame/technos/tagteam.cpp +++ b/src/mame/technos/tagteam.cpp @@ -61,8 +61,8 @@ class tagteam_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(coin_inserted); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -97,8 +97,8 @@ class tagteam_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); - void main_map(address_map &map); - void sound_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/technos/vball.cpp b/src/mame/technos/vball.cpp index a25d5112aaa..5b7eb04684f 100644 --- a/src/mame/technos/vball.cpp +++ b/src/mame/technos/vball.cpp @@ -127,8 +127,8 @@ class vball_state : public driver_device void vball(machine_config &config); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -170,8 +170,8 @@ class vball_state : public driver_device void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); inline int scanline_to_vcount(int scanline); - void main_map(address_map &map); - void sound_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/technos/wwfsstar.cpp b/src/mame/technos/wwfsstar.cpp index 8cc71fb6492..d461d69e615 100644 --- a/src/mame/technos/wwfsstar.cpp +++ b/src/mame/technos/wwfsstar.cpp @@ -180,7 +180,7 @@ class wwfsstar_state : public driver_device int vblank_r(); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -215,9 +215,9 @@ class wwfsstar_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); - void main_map(address_map &map); - void sound_map(address_map &map); - void bootleg_sound_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; + void bootleg_sound_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/technos/xain.h b/src/mame/technos/xain.h index 3e35db6474e..5c26138b19d 100644 --- a/src/mame/technos/xain.h +++ b/src/mame/technos/xain.h @@ -42,8 +42,8 @@ class xain_state : public driver_device ioport_value mcu_status_r(); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: void cpuA_bankswitch_w(uint8_t data); @@ -66,10 +66,10 @@ class xain_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void bootleg_map(address_map &map); - void main_map(address_map &map); - void cpu_map_B(address_map &map); - void sound_map(address_map &map); + void bootleg_map(address_map &map) ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; + void cpu_map_B(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; int scanline_to_vcount(int scanline); diff --git a/src/mame/tecmo/bombjack.cpp b/src/mame/tecmo/bombjack.cpp index 7b0dc26dc90..9b344d8665b 100644 --- a/src/mame/tecmo/bombjack.cpp +++ b/src/mame/tecmo/bombjack.cpp @@ -94,21 +94,21 @@ class bombjack_state : public driver_device static inline constexpr u16 VTOTAL = 264, VBSTART = 240, VBEND = 16; // initialization - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; template void bombjack_base(machine_config &config, T &&psg_type); // main CPU - void program_map(address_map &map); - void bombjack_map(address_map &map); + void program_map(address_map &map) ATTR_COLD; + void bombjack_map(address_map &map) ATTR_COLD; // audio CPU u8 soundlatch_r(); - void bombjack_audio_map(address_map &map); - void bombjack_audio_portmap(address_map &map); + void bombjack_audio_map(address_map &map) ATTR_COLD; + void bombjack_audio_portmap(address_map &map) ATTR_COLD; // video hardware void videoram_w(offs_t offset, u8 data); @@ -180,11 +180,11 @@ class calorie_state : public bombjack_state void calorie_common(machine_config &config); // main CPU - void calorie_map(address_map &map); - void calorie_opcodes_map(address_map &map); + void calorie_map(address_map &map) ATTR_COLD; + void calorie_opcodes_map(address_map &map) ATTR_COLD; // audio CPU - void calorie_audio_map(address_map &map); + void calorie_audio_map(address_map &map) ATTR_COLD; // video hardware void set_bg_tile_info(u8 const attr, u16 &code, u8 &color, bool &flipx, bool &flipy) override; diff --git a/src/mame/tecmo/gaiden.h b/src/mame/tecmo/gaiden.h index 96ff13b40ab..65c9ac94f5a 100644 --- a/src/mame/tecmo/gaiden.h +++ b/src/mame/tecmo/gaiden.h @@ -45,8 +45,8 @@ class gaiden_state : public driver_device void init_shadoww(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; void irq_ack_w(uint16_t data); void drgnbowl_irq_ack_w(uint8_t data); @@ -75,11 +75,11 @@ class gaiden_state : public driver_device void drgnbowl_draw_sprites(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void descramble_drgnbowl(int descramble_cpu); - void drgnbowl_map(address_map &map); - void drgnbowl_sound_map(address_map &map); - void drgnbowl_sound_port_map(address_map &map); - void gaiden_map(address_map &map); - void sound_map(address_map &map); + void drgnbowl_map(address_map &map) ATTR_COLD; + void drgnbowl_sound_map(address_map &map) ATTR_COLD; + void drgnbowl_sound_port_map(address_map &map) ATTR_COLD; + void gaiden_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; // devices required_device m_maincpu; @@ -129,13 +129,13 @@ class wildfang_state : public gaiden_state void init_wildfang(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; void wildfang_protection_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); uint16_t protection_r(); - void wildfang_map(address_map &map); + void wildfang_map(address_map &map) ATTR_COLD; // protection related uint16_t m_prot = 0; @@ -156,16 +156,16 @@ class raiga_state : public wildfang_state protected: virtual void device_post_load() override; - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: void raiga_protection_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); void screen_vblank_raiga(int state); uint32_t screen_update_raiga(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void raiga_map(address_map &map); + void raiga_map(address_map &map) ATTR_COLD; // protection related bool m_protmode = false; // protection related @@ -186,7 +186,7 @@ class mastninj_state : public gaiden_state void init_mastninj(); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: // devices @@ -205,8 +205,8 @@ class mastninj_state : public gaiden_state void descramble_mastninj_gfx(uint8_t* src); - void mastninj_map(address_map &map); - void mastninj_sound_map(address_map &map); + void mastninj_map(address_map &map) ATTR_COLD; + void mastninj_sound_map(address_map &map) ATTR_COLD; }; #endif // MAME_TECMO_GAIDEN_H diff --git a/src/mame/tecmo/lvcards.cpp b/src/mame/tecmo/lvcards.cpp index 4db57839201..86f8d772290 100644 --- a/src/mame/tecmo/lvcards.cpp +++ b/src/mame/tecmo/lvcards.cpp @@ -107,7 +107,7 @@ class lvcards_state : public driver_device void init_lvcardsa(); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; void videoram_w(offs_t offset, uint8_t data); void colorram_w(offs_t offset, uint8_t data); @@ -123,9 +123,9 @@ class lvcards_state : public driver_device TILE_GET_INFO_MEMBER(get_bg_tile_info); void palette(palette_device &palette) const; uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void io_map(address_map &map); - void lvcards_map(address_map &map); - void lvcardsa_decrypted_opcodes_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void lvcards_map(address_map &map) ATTR_COLD; + void lvcardsa_decrypted_opcodes_map(address_map &map) ATTR_COLD; }; @@ -141,16 +141,16 @@ class lvpoker_state : public lvcards_state void ponttehk(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: void control_port_2_w(uint8_t data); void control_port_2a_w(uint8_t data); uint8_t payout_r(); - void lvpoker_map(address_map &map); - void ponttehk_map(address_map &map); + void lvpoker_map(address_map &map) ATTR_COLD; + void ponttehk_map(address_map &map) ATTR_COLD; required_ioport m_in2; diff --git a/src/mame/tecmo/pbaction.cpp b/src/mame/tecmo/pbaction.cpp index f6a60eed15f..6be28b5f5ae 100644 --- a/src/mame/tecmo/pbaction.cpp +++ b/src/mame/tecmo/pbaction.cpp @@ -138,14 +138,14 @@ class pbaction_state : public driver_device void init_pbaction2(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; void sound_irq_clear(int state); - void alt_sound_map(address_map &map); - void sound_io_map(address_map &map); + void alt_sound_map(address_map &map) ATTR_COLD; + void sound_io_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_audiocpu; @@ -187,9 +187,9 @@ class pbaction_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void vblank_irq(int state); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); - void decrypted_opcodes_map(address_map &map); - void main_map(address_map &map); - void sound_map(address_map &map); + void decrypted_opcodes_map(address_map &map) ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; }; class pbaction_tecfri_state : public pbaction_state @@ -207,12 +207,12 @@ class pbaction_tecfri_state : public pbaction_state void pbactiont(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: - void sub_map(address_map &map); - void sub_io_map(address_map &map); - void main_io_map(address_map &map); + void sub_map(address_map &map) ATTR_COLD; + void sub_io_map(address_map &map) ATTR_COLD; + void main_io_map(address_map &map) ATTR_COLD; TIMER_CALLBACK_MEMBER(sub_trigger); emu_timer *m_subcommand_timer = nullptr; diff --git a/src/mame/tecmo/senjyo.h b/src/mame/tecmo/senjyo.h index 64923ec30dc..98e7432d1f3 100644 --- a/src/mame/tecmo/senjyo.h +++ b/src/mame/tecmo/senjyo.h @@ -58,8 +58,8 @@ class senjyo_state : public driver_device void init_starforc(); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: /* devices */ @@ -128,12 +128,12 @@ class senjyo_state : public driver_device void draw_radar(bitmap_rgb32 &bitmap, const rectangle &cliprect); void draw_sprites(bitmap_rgb32 &bitmap, const rectangle &cliprect,int priority); - void decrypted_opcodes_map(address_map &map); - void senjyo_map(address_map &map); - void senjyo_sound_io_map(address_map &map); - void senjyo_sound_map(address_map &map); - void starforb_map(address_map &map); - void starforb_sound_map(address_map &map); + void decrypted_opcodes_map(address_map &map) ATTR_COLD; + void senjyo_map(address_map &map) ATTR_COLD; + void senjyo_sound_io_map(address_map &map) ATTR_COLD; + void senjyo_sound_map(address_map &map) ATTR_COLD; + void starforb_map(address_map &map) ATTR_COLD; + void starforb_sound_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/tecmo/solomon.cpp b/src/mame/tecmo/solomon.cpp index e5acf62a467..7f06fae5955 100644 --- a/src/mame/tecmo/solomon.cpp +++ b/src/mame/tecmo/solomon.cpp @@ -41,7 +41,7 @@ class solomon_state : public driver_device void solomon(machine_config &config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: required_shared_ptr m_spriteram; @@ -71,9 +71,9 @@ class solomon_state : public driver_device void vblank_w(int state); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); - void main_map(address_map &map); - void sound_map(address_map &map); - void sound_portmap(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; + void sound_portmap(address_map &map) ATTR_COLD; }; diff --git a/src/mame/tecmo/spbactn.cpp b/src/mame/tecmo/spbactn.cpp index e37d6bfc22f..87e7d3f83c3 100644 --- a/src/mame/tecmo/spbactn.cpp +++ b/src/mame/tecmo/spbactn.cpp @@ -183,7 +183,7 @@ class spbactn_state : public driver_device void spbactn(machine_config &config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; required_device m_maincpu; required_device m_audiocpu; @@ -208,7 +208,7 @@ class spbactn_state : public driver_device int draw_video(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect, bool alt_sprites); - void sound_map(address_map &map); + void sound_map(address_map &map) ATTR_COLD; private: TILE_GET_INFO_MEMBER(get_bg_tile_info); @@ -220,7 +220,7 @@ class spbactn_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; }; class spbactnp_state : public spbactn_state @@ -239,7 +239,7 @@ class spbactnp_state : public spbactn_state void spbactnp(machine_config &config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: required_device m_extracpu; @@ -266,8 +266,8 @@ class spbactnp_state : public spbactn_state uint8_t extra_latch_r(offs_t offset); - void extra_map(address_map &map); - void main_map(address_map &map); + void extra_map(address_map &map) ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/tecmo/tbowl.cpp b/src/mame/tecmo/tbowl.cpp index 5f36fcca881..bb34119083f 100644 --- a/src/mame/tecmo/tbowl.cpp +++ b/src/mame/tecmo/tbowl.cpp @@ -55,9 +55,9 @@ class tbowl_state : public driver_device void tbowl(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -105,9 +105,9 @@ class tbowl_state : public driver_device template void adpcm_int(int state); - void _6206A_map(address_map &map); - void _6206B_map(address_map &map); - void _6206C_map(address_map &map); + void _6206A_map(address_map &map) ATTR_COLD; + void _6206B_map(address_map &map) ATTR_COLD; + void _6206C_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/tecmo/tecmo.h b/src/mame/tecmo/tecmo.h index 8202faf1289..21af0c361de 100644 --- a/src/mame/tecmo/tecmo.h +++ b/src/mame/tecmo/tecmo.h @@ -45,9 +45,9 @@ class tecmo_state : public driver_device void init_gemini(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -101,13 +101,13 @@ class tecmo_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void gemini_map(address_map &map); - void rygar_map(address_map &map); - void rygar_sound_map(address_map &map); - void silkworm_map(address_map &map); - void tecmo_sound_map(address_map &map); - void silkwormp_sound_map(address_map &map); - void backfirt_sound_map(address_map &map); + void gemini_map(address_map &map) ATTR_COLD; + void rygar_map(address_map &map) ATTR_COLD; + void rygar_sound_map(address_map &map) ATTR_COLD; + void silkworm_map(address_map &map) ATTR_COLD; + void tecmo_sound_map(address_map &map) ATTR_COLD; + void silkwormp_sound_map(address_map &map) ATTR_COLD; + void backfirt_sound_map(address_map &map) ATTR_COLD; }; #endif // MAME_TECMO_TECMO_H diff --git a/src/mame/tecmo/tecmo16.cpp b/src/mame/tecmo/tecmo16.cpp index 36e505a53bc..87595fcd819 100644 --- a/src/mame/tecmo/tecmo16.cpp +++ b/src/mame/tecmo/tecmo16.cpp @@ -76,7 +76,7 @@ class tecmo16_state : public driver_device void riot(machine_config &config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -128,10 +128,10 @@ class tecmo16_state : public driver_device void screen_vblank(int state); void save_state(); - void common_map(address_map& map); - void fstarfrc_map(address_map &map); - void ginkun_map(address_map &map); - void sound_map(address_map &map); + void common_map(address_map &map) ATTR_COLD; + void fstarfrc_map(address_map &map) ATTR_COLD; + void ginkun_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/tecmo/tecmo_mix.h b/src/mame/tecmo/tecmo_mix.h index 50fcefb9958..73e80d9b96a 100644 --- a/src/mame/tecmo/tecmo_mix.h +++ b/src/mame/tecmo/tecmo_mix.h @@ -48,8 +48,8 @@ class tecmo_mix_device : public device_t, public device_video_interface void set_revspritetile() { m_revspritetile = 3; } protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; // mixer shifts int m_sprpri_shift; diff --git a/src/mame/tecmo/tecmosys.h b/src/mame/tecmo/tecmosys.h index ce24e852f32..f896e59a78b 100644 --- a/src/mame/tecmo/tecmosys.h +++ b/src/mame/tecmo/tecmosys.h @@ -51,8 +51,8 @@ class tecmosys_state : public driver_device void init_tkdensho(); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -116,10 +116,10 @@ class tecmosys_state : public driver_device void do_final_mix(bitmap_rgb32 &bitmap, const rectangle &cliprect); void descramble(); - void io_map(address_map &map); - void main_map(address_map &map); - void oki_map(address_map &map); - void sound_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; + void oki_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; }; #endif // MAME_TECMO_TECMOSYS_H diff --git a/src/mame/tecmo/tehkanwc.cpp b/src/mame/tecmo/tehkanwc.cpp index 111cd8f7014..053a8713f15 100644 --- a/src/mame/tecmo/tehkanwc.cpp +++ b/src/mame/tecmo/tehkanwc.cpp @@ -120,8 +120,8 @@ class tehkanwc_state : public driver_device void tehkanwc(machine_config &config); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -181,11 +181,11 @@ class tehkanwc_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); - void shared_mem(address_map &map); - void main_mem(address_map &map); - void sound_mem(address_map &map); - void sound_port(address_map &map); - void sub_mem(address_map &map); + void shared_mem(address_map &map) ATTR_COLD; + void main_mem(address_map &map) ATTR_COLD; + void sound_mem(address_map &map) ATTR_COLD; + void sound_port(address_map &map) ATTR_COLD; + void sub_mem(address_map &map) ATTR_COLD; }; void tehkanwc_state::machine_start() diff --git a/src/mame/tecmo/wc90.cpp b/src/mame/tecmo/wc90.cpp index 5d1bbbfca14..a59b578a948 100644 --- a/src/mame/tecmo/wc90.cpp +++ b/src/mame/tecmo/wc90.cpp @@ -97,8 +97,8 @@ class wc90_state : public driver_device void pac90(machine_config &config); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -140,9 +140,9 @@ class wc90_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void sound_map(address_map &map); - void main_map(address_map &map); - void sub_map(address_map &map); + void sound_map(address_map &map) ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; + void sub_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/tecmo/wc90b.cpp b/src/mame/tecmo/wc90b.cpp index 4b31119830c..496d807bfde 100644 --- a/src/mame/tecmo/wc90b.cpp +++ b/src/mame/tecmo/wc90b.cpp @@ -128,8 +128,8 @@ class wc90b_state : public driver_device void init_wc90b(); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; tilemap_t *m_tx_tilemap; tilemap_t *m_fg_tilemap; @@ -155,8 +155,8 @@ class wc90b_state : public driver_device void bankswitch_w(uint8_t data); void adpcm_int(int state); - void sound_map(address_map &map); - void sub_map(address_map &map); + void sound_map(address_map &map) ATTR_COLD; + void sub_map(address_map &map) ATTR_COLD; virtual uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); virtual void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect, int priority); @@ -166,7 +166,7 @@ class wc90b_state : public driver_device optional_shared_ptr_array m_scrolly; optional_shared_ptr m_scroll_x_lo; - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; uint8_t m_msm5205next; uint8_t m_toggle; @@ -201,7 +201,7 @@ class eurogael_state : public wc90b_state void master_irq_ack_w(uint8_t data); required_shared_ptr m_bgscroll; - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/tektronix/tek405x.h b/src/mame/tektronix/tek405x.h index 6fe1853ed6f..3a79924c866 100644 --- a/src/mame/tektronix/tek405x.h +++ b/src/mame/tektronix/tek405x.h @@ -111,10 +111,10 @@ class tek4051_state : public driver_device void write_acia_clock(int state); TIMER_DEVICE_CALLBACK_MEMBER(keyboard_tick); - void tek4051_mem(address_map &map); + void tek4051_mem(address_map &map) ATTR_COLD; - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; required_device m_maincpu; required_device m_gpib_pia; @@ -164,10 +164,10 @@ class tek4052_state : public driver_device void tek4052(machine_config &config); private: - void tek4052_mem(address_map &map); + void tek4052_mem(address_map &map) ATTR_COLD; - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; required_device m_maincpu; required_device m_ram; diff --git a/src/mame/tektronix/tek410x.cpp b/src/mame/tektronix/tek410x.cpp index dfbf4c52851..a51827cec6e 100644 --- a/src/mame/tektronix/tek410x.cpp +++ b/src/mame/tektronix/tek410x.cpp @@ -44,8 +44,8 @@ class tek4107a_state : public driver_device void tek4107a(machine_config &config); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: u32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); @@ -73,8 +73,8 @@ class tek4107a_state : public driver_device u16 test_r(); u8 font_r(); - void tek4107a_io(address_map &map); - void tek4107a_mem(address_map &map); + void tek4107a_io(address_map &map) ATTR_COLD; + void tek4107a_mem(address_map &map) ATTR_COLD; required_device_array m_duart; required_device m_keyboard; diff --git a/src/mame/tektronix/tek410x_kbd.h b/src/mame/tektronix/tek410x_kbd.h index 4af349a8fed..bda5d9c2097 100644 --- a/src/mame/tektronix/tek410x_kbd.h +++ b/src/mame/tektronix/tek410x_kbd.h @@ -31,10 +31,10 @@ class tek410x_keyboard_device : public device_t protected: // device_t implementation - virtual void device_start() override; - virtual ioport_constructor device_input_ports() const 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 ioport_constructor device_input_ports() const 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; private: // MCU handlers @@ -43,7 +43,7 @@ class tek410x_keyboard_device : public device_t void p2_w(u8 data); // address maps - void ext_map(address_map &map); + void ext_map(address_map &map) ATTR_COLD; // object finders required_device m_mcu; diff --git a/src/mame/tektronix/tek43xx.cpp b/src/mame/tektronix/tek43xx.cpp index 838243a0620..6f29e463cd7 100644 --- a/src/mame/tektronix/tek43xx.cpp +++ b/src/mame/tektronix/tek43xx.cpp @@ -27,7 +27,7 @@ class tek43xx_state : public driver_device private: u32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; }; diff --git a/src/mame/tektronix/tek440x.cpp b/src/mame/tektronix/tek440x.cpp index d8df468bf8d..e92d385c4f8 100644 --- a/src/mame/tektronix/tek440x.cpp +++ b/src/mame/tektronix/tek440x.cpp @@ -97,8 +97,8 @@ class tek440x_state : public driver_device void tek4404(machine_config &config); private: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); u16 memory_r(offs_t offset, u16 mem_mask); @@ -114,8 +114,8 @@ class tek440x_state : public driver_device void kb_tdata_w(int state); void kb_rclamp_w(int state); - void logical_map(address_map &map); - void physical_map(address_map &map); + void logical_map(address_map &map) ATTR_COLD; + void physical_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_vm; diff --git a/src/mame/tektronix/tek_msu_fdc.h b/src/mame/tektronix/tek_msu_fdc.h index c17b02c5be3..d4f873bbab7 100644 --- a/src/mame/tektronix/tek_msu_fdc.h +++ b/src/mame/tektronix/tek_msu_fdc.h @@ -19,15 +19,15 @@ class tek_msu_fdc_device tek_msu_fdc_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock = 0); protected: - 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; virtual void scsi_ctrl_changed() override; private: - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; u8 status_r(); u8 data_r(); diff --git a/src/mame/tektronix/tekigw.cpp b/src/mame/tektronix/tekigw.cpp index 4cc68511667..e10fa3480c1 100644 --- a/src/mame/tektronix/tekigw.cpp +++ b/src/mame/tektronix/tekigw.cpp @@ -114,12 +114,12 @@ class tekigw_state_base : public driver_device void common_init(); // driver_device overrides - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; // address maps - template void cpu_map(address_map &map); - void dma_map(address_map &map); + template void cpu_map(address_map &map) ATTR_COLD; + void dma_map(address_map &map) ATTR_COLD; // computer board control registers u8 nov_r() { return m_nmr; } @@ -185,13 +185,13 @@ class tek6100_state : public tekigw_state_base protected: // driver_device overrides - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; // address maps - template void cpu_map(address_map &map); - void lan_map(address_map &map); - template void dpu_cpu_map(address_map &map); + template void cpu_map(address_map &map) ATTR_COLD; + void lan_map(address_map &map) ATTR_COLD; + template void dpu_cpu_map(address_map &map) ATTR_COLD; private: // computer board control registers @@ -239,12 +239,12 @@ class tek4132_state : public tekigw_state_base protected: // driver_device overrides - //virtual void machine_start() override; - //virtual void machine_reset() override; + //virtual void machine_start() override ATTR_COLD; + //virtual void machine_reset() override ATTR_COLD; // address maps - template void cpu_map(address_map &map); - void lan_map(address_map &map); + template void cpu_map(address_map &map) ATTR_COLD; + void lan_map(address_map &map) ATTR_COLD; private: required_device m_scsibus; diff --git a/src/mame/tektronix/tekxp33x.cpp b/src/mame/tektronix/tekxp33x.cpp index fc78a08dc6f..f85edbcf1e4 100644 --- a/src/mame/tektronix/tekxp33x.cpp +++ b/src/mame/tektronix/tekxp33x.cpp @@ -55,12 +55,12 @@ class tekxp330_state : public driver_device void tekxp330(machine_config &config); private: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void cpu_map(address_map &map); - void tms_map(address_map &map); + void cpu_map(address_map &map) ATTR_COLD; + void tms_map(address_map &map) ATTR_COLD; }; /* Memory Maps */ diff --git a/src/mame/tektronix/xd88.cpp b/src/mame/tektronix/xd88.cpp index e87ee3cab75..8c122238a27 100644 --- a/src/mame/tektronix/xd88.cpp +++ b/src/mame/tektronix/xd88.cpp @@ -36,10 +36,10 @@ class xd88_state : public driver_device void xd88_01(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; - void cpu_map(address_map &map); + void cpu_map(address_map &map) ATTR_COLD; private: required_device m_cpu; diff --git a/src/mame/telenova/compis.cpp b/src/mame/telenova/compis.cpp index 60a5fe58559..e4660105fb3 100644 --- a/src/mame/telenova/compis.cpp +++ b/src/mame/telenova/compis.cpp @@ -121,8 +121,8 @@ class compis_state : public driver_device required_device m_ram; required_ioport m_s8; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; uint16_t pcs6_0_1_r(offs_t offset, uint16_t mem_mask = ~0); void pcs6_0_1_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); @@ -162,9 +162,9 @@ class compis_state : public driver_device int m_tmr0; void compis(machine_config &config); void compis2(machine_config &config); - void compis2_mem(address_map &map); - void compis_io(address_map &map); - void compis_mem(address_map &map); + void compis2_mem(address_map &map) ATTR_COLD; + void compis_io(address_map &map) ATTR_COLD; + void compis_mem(address_map &map) ATTR_COLD; }; diff --git a/src/mame/telenova/compiskb.h b/src/mame/telenova/compiskb.h index 8b101fd87f9..e06b8976bce 100644 --- a/src/mame/telenova/compiskb.h +++ b/src/mame/telenova/compiskb.h @@ -33,12 +33,12 @@ class compis_keyboard_device : public device_t protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; private: required_device m_maincpu; diff --git a/src/mame/telercas/tmc1800.h b/src/mame/telercas/tmc1800.h index a2fa65efa40..b77093232b6 100644 --- a/src/mame/telercas/tmc1800.h +++ b/src/mame/telercas/tmc1800.h @@ -64,12 +64,12 @@ class tmc1800_state : public tmc1800_base_state void tmc1800(machine_config &config); void tmc1800_video(machine_config &config); - void tmc1800_io_map(address_map &map); - void tmc1800_map(address_map &map); + void tmc1800_io_map(address_map &map) ATTR_COLD; + void tmc1800_map(address_map &map) ATTR_COLD; protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; required_device m_vdc; /* keyboard state */ @@ -94,12 +94,12 @@ class osc1000b_state : public tmc1800_base_state void osc1000b(machine_config &config); void osc1000b_video(machine_config &config); - void osc1000b_io_map(address_map &map); - void osc1000b_map(address_map &map); + void osc1000b_io_map(address_map &map) ATTR_COLD; + void osc1000b_map(address_map &map) ATTR_COLD; protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; /* keyboard state */ int m_keylatch = 0; @@ -132,12 +132,12 @@ class tmc2000_state : public tmc1800_base_state void tmc2000(machine_config &config); void tmc2000_video(machine_config &config); - void tmc2000_io_map(address_map &map); - void tmc2000_map(address_map &map); + void tmc2000_io_map(address_map &map) ATTR_COLD; + void tmc2000_map(address_map &map) ATTR_COLD; protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; required_device m_cti; memory_share_creator m_colorram; @@ -178,12 +178,12 @@ class nano_state : public tmc1800_base_state void nano(machine_config &config); void nano_video(machine_config &config); - void nano_io_map(address_map &map); - void nano_map(address_map &map); + void nano_io_map(address_map &map) ATTR_COLD; + void nano_map(address_map &map) ATTR_COLD; protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; TIMER_CALLBACK_MEMBER(assert_ef4); diff --git a/src/mame/telercas/tmc2000e.h b/src/mame/telercas/tmc2000e.h index 8bdb0202f98..dfca2a1eb25 100644 --- a/src/mame/telercas/tmc2000e.h +++ b/src/mame/telercas/tmc2000e.h @@ -59,11 +59,11 @@ class tmc2000e_state : public driver_device /* keyboard state */ int m_keylatch = 0; /* key latch */ - void tmc2000e_io_map(address_map &map); - void tmc2000e_map(address_map &map); + void tmc2000e_io_map(address_map &map) ATTR_COLD; + void tmc2000e_map(address_map &map) ATTR_COLD; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; required_device m_maincpu; required_device m_cti; diff --git a/src/mame/telercas/tmc600.h b/src/mame/telercas/tmc600.h index 24e5c38d341..c7dcddf11cf 100644 --- a/src/mame/telercas/tmc600.h +++ b/src/mame/telercas/tmc600.h @@ -64,7 +64,7 @@ class tmc600_state : public driver_device required_ioport m_run; required_ioport_array<8> m_key_row; - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; uint8_t rtc_r(); void printer_w(uint8_t data); @@ -93,9 +93,9 @@ class tmc600_state : public driver_device CDP1869_CHAR_RAM_READ_MEMBER(tmc600_char_ram_r); CDP1869_PCB_READ_MEMBER(tmc600_pcb_r); - void cdp1869_page_ram(address_map &map); - void tmc600_io_map(address_map &map); - void tmc600_map(address_map &map); + void cdp1869_page_ram(address_map &map) ATTR_COLD; + void tmc600_io_map(address_map &map) ATTR_COLD; + void tmc600_map(address_map &map) ATTR_COLD; DECLARE_QUICKLOAD_LOAD_MEMBER(quickload_cb); }; diff --git a/src/mame/televideo/ts3000.cpp b/src/mame/televideo/ts3000.cpp index 7233cff98ad..bfa24943181 100644 --- a/src/mame/televideo/ts3000.cpp +++ b/src/mame/televideo/ts3000.cpp @@ -27,8 +27,8 @@ class ts3000_state : public driver_device void ts3000(machine_config &config); private: - void io_map(address_map &map); - void mem_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; // required_device m_maincpu; }; diff --git a/src/mame/televideo/ts802.cpp b/src/mame/televideo/ts802.cpp index 4d7d1442767..1d2b8b541de 100644 --- a/src/mame/televideo/ts802.cpp +++ b/src/mame/televideo/ts802.cpp @@ -48,7 +48,7 @@ class ts802_state : public driver_device void init_ts802(); private: - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; uint8_t port00_r() { return 0x80; }; uint8_t port0c_r() { return 1; }; uint8_t port0e_r() { return 0; }; @@ -62,8 +62,8 @@ class ts802_state : public driver_device uint8_t io_read_byte(offs_t offset); void io_write_byte(offs_t offset, uint8_t data); void kbd_put(u8 data); - void ts802_io(address_map &map); - void ts802_mem(address_map &map); + void ts802_io(address_map &map) ATTR_COLD; + void ts802_mem(address_map &map) ATTR_COLD; uint8_t m_term_data = 0; address_space *m_mem = nullptr; diff --git a/src/mame/televideo/ts803.cpp b/src/mame/televideo/ts803.cpp index 69683ffb8ce..83f83b6be53 100644 --- a/src/mame/televideo/ts803.cpp +++ b/src/mame/televideo/ts803.cpp @@ -92,14 +92,14 @@ class ts803_state : public driver_device void crtc_controlreg_w(uint8_t data); uint32_t screen_update_ts803(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void ts803_io(address_map &map); - void ts803_mem(address_map &map); + void ts803_io(address_map &map) ATTR_COLD; + void ts803_mem(address_map &map) ATTR_COLD; std::unique_ptr m_videoram; std::unique_ptr m_56kram; bool m_graphics_mode; - virtual void machine_reset() override; - virtual void machine_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; required_device m_palette; required_device m_maincpu; required_device m_fdc; diff --git a/src/mame/televideo/ts816.cpp b/src/mame/televideo/ts816.cpp index 4dbfbb48678..26217b278c8 100644 --- a/src/mame/televideo/ts816.cpp +++ b/src/mame/televideo/ts816.cpp @@ -51,15 +51,15 @@ class ts816_state : public driver_device void porte0_w(uint8_t data); void portf0_w(uint8_t data); - void ts816_io(address_map &map); - void ts816_mem(address_map &map); + void ts816_io(address_map &map) ATTR_COLD; + void ts816_mem(address_map &map) ATTR_COLD; uint8_t m_term_data = 0; uint8_t m_status = 0; bool m_2ndbank = false; bool m_endram = false; void set_banks(); - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; required_device m_maincpu; required_device m_terminal; }; diff --git a/src/mame/televideo/tv910.cpp b/src/mame/televideo/tv910.cpp index e4f875abbce..e648386474e 100644 --- a/src/mame/televideo/tv910.cpp +++ b/src/mame/televideo/tv910.cpp @@ -67,8 +67,8 @@ class tv910_state : public driver_device void tv910(machine_config &config); private: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; MC6845_UPDATE_ROW(crtc_update_row); MC6845_ON_UPDATE_ADDR_CHANGED(crtc_update_addr); @@ -88,7 +88,7 @@ class tv910_state : public driver_device void ay3600_data_ready_w(int state); void ay3600_ako_w(int state); - void tv910_mem(address_map &map); + void tv910_mem(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_mainirq; diff --git a/src/mame/televideo/tv912.cpp b/src/mame/televideo/tv912.cpp index 3864ab2e1ae..fda68cedbee 100644 --- a/src/mame/televideo/tv912.cpp +++ b/src/mame/televideo/tv912.cpp @@ -104,11 +104,11 @@ class tv912_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(uart_settings_changed); private: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; - void prog_map(address_map &map); - void io_map(address_map &map); + void prog_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; TIMER_CALLBACK_MEMBER(update_baudgen); diff --git a/src/mame/televideo/tv924.cpp b/src/mame/televideo/tv924.cpp index c5ad001e451..17f5373cd3e 100644 --- a/src/mame/televideo/tv924.cpp +++ b/src/mame/televideo/tv924.cpp @@ -34,8 +34,8 @@ class tv924_state : public driver_device private: SCN2672_DRAW_CHARACTER_MEMBER(draw_character); - void mem_map(address_map &map); - void char_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void char_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_pvtc; diff --git a/src/mame/televideo/tv950.cpp b/src/mame/televideo/tv950.cpp index b9536320cf1..17fd5e8cbae 100644 --- a/src/mame/televideo/tv950.cpp +++ b/src/mame/televideo/tv950.cpp @@ -69,8 +69,8 @@ class tv950_state : public driver_device void tv950(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: void via_a_w(uint8_t data); @@ -83,7 +83,7 @@ class tv950_state : public driver_device void row_addr_w(uint8_t data); void via_crtc_reset_w(int state); - void tv950_mem(address_map &map); + void tv950_mem(address_map &map) ATTR_COLD; uint8_t m_via_row = 0; uint8_t m_attr_row = 0; diff --git a/src/mame/televideo/tv950kb.h b/src/mame/televideo/tv950kb.h index 6e4ddc7e807..01f7ba92af9 100644 --- a/src/mame/televideo/tv950kb.h +++ b/src/mame/televideo/tv950kb.h @@ -29,16 +29,16 @@ class tv950kb_device : public device_t protected: // device_t implementation - virtual void device_start() override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; - virtual const tiny_rom_entry *device_rom_region() const override; + virtual void device_start() override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; private: u8 keys_r(); void tx_w(int state); - void rw_map(address_map &map); + void rw_map(address_map &map) ATTR_COLD; // line output callback devcb_write_line m_tx_cb; diff --git a/src/mame/televideo/tv955.cpp b/src/mame/televideo/tv955.cpp index ba455846fe4..e2742322078 100644 --- a/src/mame/televideo/tv955.cpp +++ b/src/mame/televideo/tv955.cpp @@ -37,7 +37,7 @@ class tv955_state : public driver_device void tv955(machine_config &config); protected: - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; private: SCN2674_DRAW_CHARACTER_MEMBER(draw_character); @@ -45,9 +45,9 @@ class tv955_state : public driver_device void control_latch_w(u8 data); void system_reset_w(int state); - void mem_map(address_map &map); - void char_map(address_map &map); - void attr_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void char_map(address_map &map) ATTR_COLD; + void attr_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_crtc; diff --git a/src/mame/televideo/tv955kb.h b/src/mame/televideo/tv955kb.h index 582cfb82256..cf9eea15acb 100644 --- a/src/mame/televideo/tv955kb.h +++ b/src/mame/televideo/tv955kb.h @@ -29,11 +29,11 @@ class tv955kb_device : public device_t protected: // device_t implementation - virtual void device_start() override; - virtual void device_reset() override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const 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 ioport_constructor device_input_ports() const override ATTR_COLD; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; private: u8 keys_r(); diff --git a/src/mame/televideo/tv965.cpp b/src/mame/televideo/tv965.cpp index f307f69dd24..89b9199507e 100644 --- a/src/mame/televideo/tv965.cpp +++ b/src/mame/televideo/tv965.cpp @@ -34,8 +34,8 @@ class tv965_state : public driver_device u8 ga_hack_r(); - void mem_map(address_map &map); - void program_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void program_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_screen; diff --git a/src/mame/televideo/tv990.cpp b/src/mame/televideo/tv990.cpp index fd6a8db5116..ce39e529a83 100644 --- a/src/mame/televideo/tv990.cpp +++ b/src/mame/televideo/tv990.cpp @@ -70,11 +70,11 @@ class tv990_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(color); private: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; virtual void device_post_load() override; - void tv990_mem(address_map &map); + void tv990_mem(address_map &map) ATTR_COLD; TIMER_CALLBACK_MEMBER(trigger_row_irq); diff --git a/src/mame/tesla/ondra.h b/src/mame/tesla/ondra.h index d3e970ae128..aefb712dd7d 100644 --- a/src/mame/tesla/ondra.h +++ b/src/mame/tesla/ondra.h @@ -40,11 +40,11 @@ class ondra_state : public driver_device u32 screen_update_ondra(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void vblank_irq(int state); - void io_map(address_map &map); - void mem_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; void update_banks(); diff --git a/src/mame/tesla/pmd85.h b/src/mame/tesla/pmd85.h index d1634f5c43e..9a9ff933f1e 100644 --- a/src/mame/tesla/pmd85.h +++ b/src/mame/tesla/pmd85.h @@ -79,7 +79,7 @@ class pmd85_state : public driver_device uint8_t mato_io_r(offs_t offset); void mato_io_w(offs_t offset, uint8_t data); - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); TIMER_CALLBACK_MEMBER(cassette_timer_callback); uint8_t ppi0_porta_r(); @@ -110,16 +110,16 @@ class pmd85_state : public driver_device void ppi3_portb_w(uint8_t data); void ppi3_portc_w(uint8_t data); - void alfa_mem(address_map &map); - void c2717_mem(address_map &map); - void mato_io(address_map &map); - void mato_mem(address_map &map); - void pmd852a_mem(address_map &map); - void pmd853_mem(address_map &map); - void pmd85_io(address_map &map); - void pmd85_mem(address_map &map); + void alfa_mem(address_map &map) ATTR_COLD; + void c2717_mem(address_map &map) ATTR_COLD; + void mato_io(address_map &map) ATTR_COLD; + void mato_mem(address_map &map) ATTR_COLD; + void pmd852a_mem(address_map &map) ATTR_COLD; + void pmd853_mem(address_map &map) ATTR_COLD; + void pmd85_io(address_map &map) ATTR_COLD; + void pmd85_mem(address_map &map) ATTR_COLD; - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; void pmd851_update_memory(); void pmd852a_update_memory(); diff --git a/src/mame/tesla/pmi80.cpp b/src/mame/tesla/pmi80.cpp index 5f7b0a3ad6e..58675a6b085 100644 --- a/src/mame/tesla/pmi80.cpp +++ b/src/mame/tesla/pmi80.cpp @@ -66,15 +66,15 @@ class pmi80_state : public driver_device void keyboard_w(uint8_t data); void leds_w(uint8_t data); TIMER_DEVICE_CALLBACK_MEMBER(kansas_r); - void io_map(address_map &map); - void mem_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; uint8_t m_keyrow = 0U; bool m_ledready = false; bool m_cassbit = false, m_cassold = false; u16 m_cass_cnt = 0U; - virtual void machine_reset() override; - virtual void machine_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; required_device m_maincpu; required_device m_ppi1; required_device m_cass; diff --git a/src/mame/tesla/sapi1.cpp b/src/mame/tesla/sapi1.cpp index f8ecb1b541e..0ba05423fe7 100644 --- a/src/mame/tesla/sapi1.cpp +++ b/src/mame/tesla/sapi1.cpp @@ -82,8 +82,8 @@ class sapi_state : public driver_device void init_sapizps3b(); protected: - virtual void machine_reset() override; - virtual void machine_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; private: optional_shared_ptr m_p_videoram; @@ -111,16 +111,16 @@ class sapi_state : public driver_device uint32_t screen_update_sapi1(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); uint32_t screen_update_sapi3(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void sapi1_mem(address_map &map); - void sapi1_io(address_map &map); - void sapi2_mem(address_map &map); - void sapi2_io(address_map &map); - void sapi3_io(address_map &map); - void sapi3_mem(address_map &map); - void sapi3a_io(address_map &map); - void sapi3a_mem(address_map &map); - void sapi3b_io(address_map &map); - void sapi3b_mem(address_map &map); + void sapi1_mem(address_map &map) ATTR_COLD; + void sapi1_io(address_map &map) ATTR_COLD; + void sapi2_mem(address_map &map) ATTR_COLD; + void sapi2_io(address_map &map) ATTR_COLD; + void sapi3_io(address_map &map) ATTR_COLD; + void sapi3_mem(address_map &map) ATTR_COLD; + void sapi3a_io(address_map &map) ATTR_COLD; + void sapi3a_mem(address_map &map) ATTR_COLD; + void sapi3b_io(address_map &map) ATTR_COLD; + void sapi3b_mem(address_map &map) ATTR_COLD; uint8_t m_term_data = 0U; uint8_t m_keyboard_mask = 0U; diff --git a/src/mame/thepit/thepit.h b/src/mame/thepit/thepit.h index 9a7eac6a668..171f653f4c2 100644 --- a/src/mame/thepit/thepit.h +++ b/src/mame/thepit/thepit.h @@ -40,8 +40,8 @@ class thepit_state : public driver_device void init_rtriv(); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -97,13 +97,13 @@ class thepit_state : public driver_device uint32_t screen_update_desertdan(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect, int priority_to_draw); - void audio_io_map(address_map &map); - void audio_map(address_map &map); - void desertdan_main_map(address_map &map); - void dockmanb_main_map(address_map &map); - void intrepid_main_map(address_map &map); - void thepit_main_map(address_map &map); - void theportr_main_map(address_map &map); + void audio_io_map(address_map &map) ATTR_COLD; + void audio_map(address_map &map) ATTR_COLD; + void desertdan_main_map(address_map &map) ATTR_COLD; + void dockmanb_main_map(address_map &map) ATTR_COLD; + void intrepid_main_map(address_map &map) ATTR_COLD; + void thepit_main_map(address_map &map) ATTR_COLD; + void theportr_main_map(address_map &map) ATTR_COLD; }; #endif // MAME_THEPIT_THEPIT_H diff --git a/src/mame/thepit/timelimt.cpp b/src/mame/thepit/timelimt.cpp index 15e3f3ca93e..9a6844af594 100644 --- a/src/mame/thepit/timelimt.cpp +++ b/src/mame/thepit/timelimt.cpp @@ -50,8 +50,8 @@ class timelimt_state : public driver_device void timelimt(machine_config &config); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -89,10 +89,10 @@ class timelimt_state : public driver_device INTERRUPT_GEN_MEMBER(main_nmi); - void main_io_map(address_map &map); - void main_map(address_map &map); - void sound_io_map(address_map &map); - void sound_map(address_map &map); + void main_io_map(address_map &map) ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; + void sound_io_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/thomson/thomson.h b/src/mame/thomson/thomson.h index 0a294ce0be4..0e7991390c0 100644 --- a/src/mame/thomson/thomson.h +++ b/src/mame/thomson/thomson.h @@ -154,7 +154,7 @@ class thomson_state : public driver_device emu_timer* m_mo5_periodic_timer = nullptr; uint8_t m_mo5_reg_cart = 0; /* 0xa7cb bank switch */ - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; DECLARE_DEVICE_IMAGE_LOAD_MEMBER( to7_cartridge ); @@ -207,8 +207,8 @@ class thomson_state : public driver_device TIMER_CALLBACK_MEMBER( ans ); void thom_palette(palette_device &palette); - void to7_map(address_map &map); - void to770_map(address_map &map); + void to7_map(address_map &map) ATTR_COLD; + void to770_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_cassette; @@ -374,7 +374,7 @@ class mo5_state : public thomson_state void mo5_palette(palette_device &palette); - void mo5_map(address_map &map); + void mo5_map(address_map &map) ATTR_COLD; void mo5_update_cart_bank(); }; @@ -489,9 +489,9 @@ class to9_state : public thomson_state DECLARE_MACHINE_RESET( to9p ); DECLARE_MACHINE_START( to9p ); - void to8_map(address_map &map); - void to9_map(address_map &map); - void to9p_map(address_map &map); + void to8_map(address_map &map) ATTR_COLD; + void to9_map(address_map &map) ATTR_COLD; + void to9p_map(address_map &map) ATTR_COLD; uint8_t m_to9_palette_data[32]{}; uint8_t m_to9_palette_idx = 0; @@ -562,7 +562,7 @@ class mo6_state : public to9_state void mo6_vreg_w(offs_t offset, uint8_t data); void mo6_vcart_lo_w(offs_t offset, uint8_t data); void mo6_vcart_hi_w(offs_t offset, uint8_t data); - void mo6_map(address_map &map); + void mo6_map(address_map &map) ATTR_COLD; void mo6_update_ram_bank(); void mo6_update_cart_bank(); void mo6_game_init(); @@ -590,7 +590,7 @@ class mo5nr_state : public mo6_state required_ioport m_nanoreseau_config; memory_view m_extension_view; - void mo5nr_map(address_map &map); + void mo5nr_map(address_map &map) ATTR_COLD; void mo5nr_game_init(); void mo5nr_game_reset(); diff --git a/src/mame/ti/733_asr.h b/src/mame/ti/733_asr.h index bb93458bb25..9cd8ae91f73 100644 --- a/src/mame/ti/733_asr.h +++ b/src/mame/ti/733_asr.h @@ -30,9 +30,9 @@ class asr733_device : public device_t, public device_gfx_interface protected: // device-level overrides - void device_start() override; - void device_reset() override; - virtual void device_add_mconfig(machine_config &config) override; + void device_start() override ATTR_COLD; + void device_reset() override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; ioport_constructor device_input_ports() const override; TIMER_CALLBACK_MEMBER(line_tick); diff --git a/src/mame/ti/911_vdt.h b/src/mame/ti/911_vdt.h index f9d8c712055..f70abaa2239 100644 --- a/src/mame/ti/911_vdt.h +++ b/src/mame/ti/911_vdt.h @@ -55,9 +55,9 @@ class vdt911_device : public device_t, public device_gfx_interface protected: // device-level overrides - void device_start() override; - void device_reset() override; - virtual void device_add_mconfig(machine_config &config) override; + void device_start() override ATTR_COLD; + void device_reset() override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; ioport_constructor device_input_ports() const override; TIMER_CALLBACK_MEMBER(blink_tick); diff --git a/src/mame/ti/avigo.h b/src/mame/ti/avigo.h index 40e6d71d798..5040f6a81f2 100644 --- a/src/mame/ti/avigo.h +++ b/src/mame/ti/avigo.h @@ -55,8 +55,8 @@ class avigo_state : public driver_device protected: // defined in drivers/avigo.cpp - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; void refresh_ints(); void nvram_init(nvram_device &nvram, void *base, size_t size); @@ -79,7 +79,7 @@ class avigo_state : public driver_device uint8_t port_04_r(); // defined in video/avigo.cpp - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); uint8_t vid_memory_r(offs_t offset); void vid_memory_w(offs_t offset, uint8_t data); @@ -88,9 +88,9 @@ class avigo_state : public driver_device TIMER_DEVICE_CALLBACK_MEMBER(avigo_1hz_timer); DECLARE_QUICKLOAD_LOAD_MEMBER(quickload_cb); - void avigo_banked_map(address_map &map); - void avigo_io(address_map &map); - void avigo_mem(address_map &map); + void avigo_banked_map(address_map &map) ATTR_COLD; + void avigo_io(address_map &map) ATTR_COLD; + void avigo_mem(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_ram; diff --git a/src/mame/ti/cc40.cpp b/src/mame/ti/cc40.cpp index 87930d83ae1..31cce5cc240 100644 --- a/src/mame/ti/cc40.cpp +++ b/src/mame/ti/cc40.cpp @@ -126,8 +126,8 @@ class cc40_state : public driver_device void cc40p(machine_config &config); protected: - virtual void machine_reset() override; - virtual void machine_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; virtual void device_post_load() override; private: @@ -177,8 +177,8 @@ class cc40_state : public driver_device DECLARE_DEVICE_IMAGE_LOAD_MEMBER(cart_load); HD44780_PIXEL_UPDATE(cc40_pixel_update); - void cc40_map(address_map &map); - void cc40p_map(address_map &map); + void cc40_map(address_map &map) ATTR_COLD; + void cc40p_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/ti/evmbug.cpp b/src/mame/ti/evmbug.cpp index 8e0775ed1ab..a2f9f9256d0 100644 --- a/src/mame/ti/evmbug.cpp +++ b/src/mame/ti/evmbug.cpp @@ -51,12 +51,12 @@ class evmbug_state : public driver_device void rs232_w(offs_t offset, uint8_t data); void kbd_put(u8 data); - void io_map(address_map &map); - void evmbug_mem(address_map &map); - void tms9995bb_mem(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void evmbug_mem(address_map &map) ATTR_COLD; + void tms9995bb_mem(address_map &map) ATTR_COLD; - virtual void machine_reset() override; - virtual void machine_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; uint8_t m_term_data = 0U; uint8_t m_term_out = 0U; bool m_rin = 0; diff --git a/src/mame/ti/exelv.cpp b/src/mame/ti/exelv.cpp index 0a7ec825a66..87f87ab60ed 100644 --- a/src/mame/ti/exelv.cpp +++ b/src/mame/ti/exelv.cpp @@ -166,7 +166,7 @@ class exelv_state : public driver_device DECLARE_MACHINE_START(exl100); DECLARE_MACHINE_START(exeltel); TIMER_DEVICE_CALLBACK_MEMBER(timer_k); - void machine_reset() override; + void machine_reset() override ATTR_COLD; void machine_common(); /* tms7020 i/o ports */ @@ -185,8 +185,8 @@ class exelv_state : public driver_device TIMER_DEVICE_CALLBACK_MEMBER(exelv_hblank_interrupt); DECLARE_DEVICE_IMAGE_LOAD_MEMBER( exelvision_cartridge ); - void tms7020_mem(address_map &map); - void tms7040_mem(address_map &map); + void tms7020_mem(address_map &map) ATTR_COLD; + void tms7040_mem(address_map &map) ATTR_COLD; // variables for the keyboard u8 k_channels[3] = { 0xff, 0xff, 0x3e }; // [0] = key down, [1] = key being sent; [2] = ch62 diff --git a/src/mame/ti/geneve.cpp b/src/mame/ti/geneve.cpp index d9f974396a5..460629af46a 100644 --- a/src/mame/ti/geneve.cpp +++ b/src/mame/ti/geneve.cpp @@ -342,13 +342,13 @@ class geneve_state : public driver_device uint8_t memread(offs_t offset); void memwrite(offs_t offset, uint8_t data); - void crumap(address_map &map); - void memmap(address_map &map); - void memmap_setaddress(address_map &map); + void crumap(address_map &map) ATTR_COLD; + void memmap(address_map &map) ATTR_COLD; + void memmap_setaddress(address_map &map) ATTR_COLD; // General device lifecycle - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; // Members int m_inta = 0; diff --git a/src/mame/ti/snspell.cpp b/src/mame/ti/snspell.cpp index bf8daa774dc..5a8e99c2663 100644 --- a/src/mame/ti/snspell.cpp +++ b/src/mame/ti/snspell.cpp @@ -288,8 +288,8 @@ class snspell_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(power_on); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: // devices diff --git a/src/mame/ti/snspellc.cpp b/src/mame/ti/snspellc.cpp index cb9d4d9987b..7330e793e27 100644 --- a/src/mame/ti/snspellc.cpp +++ b/src/mame/ti/snspellc.cpp @@ -205,8 +205,8 @@ class snspellc_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(power_on); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; // devices/pointers required_device m_maincpu; @@ -255,7 +255,7 @@ class tntell_state : public snspellc_state void init_tntell(); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; virtual u8 read_k() override; diff --git a/src/mame/ti/spellb.cpp b/src/mame/ti/spellb.cpp index 5e9c1b564c8..ebb2f3b4b18 100644 --- a/src/mame/ti/spellb.cpp +++ b/src/mame/ti/spellb.cpp @@ -83,8 +83,8 @@ class spellb_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(power_on); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: // devices diff --git a/src/mame/ti/ti74.cpp b/src/mame/ti/ti74.cpp index 722ba734661..2e306ca4866 100644 --- a/src/mame/ti/ti74.cpp +++ b/src/mame/ti/ti74.cpp @@ -106,8 +106,8 @@ class ti74_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(battery_status_changed); protected: - virtual void machine_reset() override; - virtual void machine_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; private: required_device m_maincpu; @@ -131,7 +131,7 @@ class ti74_state : public driver_device DECLARE_DEVICE_IMAGE_LOAD_MEMBER(cart_load); HD44780_PIXEL_UPDATE(ti74_pixel_update); HD44780_PIXEL_UPDATE(ti95_pixel_update); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/ti/ti85.h b/src/mame/ti/ti85.h index f8942fb27a7..20ef723abbe 100644 --- a/src/mame/ti/ti85.h +++ b/src/mame/ti/ti85.h @@ -183,8 +183,8 @@ class ti85_state : public driver_device uint8_t ti83pse_port_0021_r(); uint8_t ti84pse_port_0055_r(); uint8_t ti84pse_port_0056_r(); - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; void ti85_palette(palette_device &palette); DECLARE_MACHINE_RESET(ti85); DECLARE_MACHINE_RESET(ti83p); @@ -242,20 +242,20 @@ class ti85_state : public driver_device ti83pse_timer m_ctimer[3]; - void ti81_io(address_map &map); - void ti81_mem(address_map &map); - void ti81v2_io(address_map &map); - void ti82_io(address_map &map); - void ti83_io(address_map &map); - void ti83p_asic_mem(address_map &map); - void ti83p_banked_mem(address_map &map); - void ti83p_io(address_map &map); - void ti83pse_banked_mem(address_map &map); - void ti83pse_io(address_map &map); - void ti84p_banked_mem(address_map &map); - void ti85_io(address_map &map); - void ti86_io(address_map &map); - void ti86_mem(address_map &map); + void ti81_io(address_map &map) ATTR_COLD; + void ti81_mem(address_map &map) ATTR_COLD; + void ti81v2_io(address_map &map) ATTR_COLD; + void ti82_io(address_map &map) ATTR_COLD; + void ti83_io(address_map &map) ATTR_COLD; + void ti83p_asic_mem(address_map &map) ATTR_COLD; + void ti83p_banked_mem(address_map &map) ATTR_COLD; + void ti83p_io(address_map &map) ATTR_COLD; + void ti83pse_banked_mem(address_map &map) ATTR_COLD; + void ti83pse_io(address_map &map) ATTR_COLD; + void ti84p_banked_mem(address_map &map) ATTR_COLD; + void ti85_io(address_map &map) ATTR_COLD; + void ti86_io(address_map &map) ATTR_COLD; + void ti86_mem(address_map &map) ATTR_COLD; //address_space &asic; }; diff --git a/src/mame/ti/ti89.cpp b/src/mame/ti/ti89.cpp index f68e9a0ca3d..20b650b2cb0 100644 --- a/src/mame/ti/ti89.cpp +++ b/src/mame/ti/ti89.cpp @@ -51,8 +51,8 @@ class ti68k_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(ti68k_on_key); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: // hardware versions @@ -102,11 +102,11 @@ class ti68k_state : public driver_device TIMER_DEVICE_CALLBACK_MEMBER(ti68k_timer_callback); - void ti89_mem(address_map &map); - void ti89t_mem(address_map &map); - void ti92_mem(address_map &map); - void ti92p_mem(address_map &map); - void v200_mem(address_map &map); + void ti89_mem(address_map &map) ATTR_COLD; + void ti89t_mem(address_map &map) ATTR_COLD; + void ti92_mem(address_map &map) ATTR_COLD; + void ti92p_mem(address_map &map) ATTR_COLD; + void v200_mem(address_map &map) ATTR_COLD; }; diff --git a/src/mame/ti/ti931.cpp b/src/mame/ti/ti931.cpp index a0ea9f24916..d706b253078 100644 --- a/src/mame/ti/ti931.cpp +++ b/src/mame/ti/ti931.cpp @@ -34,10 +34,10 @@ class ti931_state : public driver_device private: SCN2672_DRAW_CHARACTER_MEMBER(draw_character); - void mem_map(address_map &map); - void io_map(address_map &map); - void char_map(address_map &map); - void attr_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; + void char_map(address_map &map) ATTR_COLD; + void attr_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_pvtc; diff --git a/src/mame/ti/ti990_10.cpp b/src/mame/ti/ti990_10.cpp index 80bb0a2aad7..659990fef18 100644 --- a/src/mame/ti/ti990_10.cpp +++ b/src/mame/ti/ti990_10.cpp @@ -93,12 +93,12 @@ class ti990_10_state : public driver_device void ti990_10(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: - void main_map(address_map &map); - void io_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; void key_interrupt(int state); void line_interrupt(int state); diff --git a/src/mame/ti/ti990_4.cpp b/src/mame/ti/ti990_4.cpp index 9ba1a73a7e1..fd7ca221ce7 100644 --- a/src/mame/ti/ti990_4.cpp +++ b/src/mame/ti/ti990_4.cpp @@ -61,8 +61,8 @@ class ti990_4_state : public driver_device void ti990_4(machine_config &config); private: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; uint8_t panel_read(offs_t offset); void panel_write(offs_t offset, uint8_t data); @@ -73,9 +73,9 @@ class ti990_4_state : public driver_device void vdtkey_interrupt(int state); void line_interrupt(int state); - void crumap(address_map &map); - void crumap_v(address_map &map); - void memmap(address_map &map); + void crumap(address_map &map) ATTR_COLD; + void crumap_v(address_map &map) ATTR_COLD; + void memmap(address_map &map) ATTR_COLD; void hold_load(); TIMER_CALLBACK_MEMBER(clear_load); diff --git a/src/mame/ti/ti99_2.cpp b/src/mame/ti/ti99_2.cpp index becc78b2833..c5b3a45e76e 100644 --- a/src/mame/ti/ti99_2.cpp +++ b/src/mame/ti/ti99_2.cpp @@ -224,8 +224,8 @@ class ti99_2_state : public driver_device void rombank_set(int state); - void crumap(address_map &map); - void memmap(address_map &map); + void crumap(address_map &map) ATTR_COLD; + void memmap(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_videoctrl; diff --git a/src/mame/ti/ti99_4p.cpp b/src/mame/ti/ti99_4p.cpp index 846887a0452..141d349d93b 100644 --- a/src/mame/ti/ti99_4p.cpp +++ b/src/mame/ti/ti99_4p.cpp @@ -206,9 +206,9 @@ class ti99_4p_state : public driver_device void video_interrupt_in(int state); - void crumap(address_map &map); - void memmap(address_map &map); - void memmap_setaddress(address_map &map); + void crumap(address_map &map) ATTR_COLD; + void memmap(address_map &map) ATTR_COLD; + void memmap_setaddress(address_map &map) ATTR_COLD; void datamux_clock_in(int clock); diff --git a/src/mame/ti/ti99_4x.cpp b/src/mame/ti/ti99_4x.cpp index 7da6cf1337f..f38ad06a2a6 100644 --- a/src/mame/ti/ti99_4x.cpp +++ b/src/mame/ti/ti99_4x.cpp @@ -167,9 +167,9 @@ class ti99_4x_state : public driver_device void video_interrupt_evpc_in(int state); TIMER_CALLBACK_MEMBER(gromclk_tick); - void crumap(address_map &map); - void memmap(address_map &map); - void memmap_setaddress(address_map &map); + void crumap(address_map &map) ATTR_COLD; + void memmap(address_map &map) ATTR_COLD; + void memmap_setaddress(address_map &map) ATTR_COLD; void set_keyboard_column(int number, int data); int m_keyboard_column; diff --git a/src/mame/ti/ti99_8.cpp b/src/mame/ti/ti99_8.cpp index 7cf2675ab00..f9a17d59ca9 100644 --- a/src/mame/ti/ti99_8.cpp +++ b/src/mame/ti/ti99_8.cpp @@ -264,9 +264,9 @@ class ti99_8_state : public driver_device void cassette_motor(int state); void tms9901_interrupt(offs_t offset, uint8_t data); - void crumap(address_map &map); - void memmap(address_map &map); - void memmap_setaddress(address_map &map); + void crumap(address_map &map) ATTR_COLD; + void memmap(address_map &map) ATTR_COLD; + void memmap_setaddress(address_map &map) ATTR_COLD; // Keyboard support void set_keyboard_column(int number, int data); diff --git a/src/mame/ti/tm990189.cpp b/src/mame/ti/tm990189.cpp index c19916112f8..611ece83913 100644 --- a/src/mame/ti/tm990189.cpp +++ b/src/mame/ti/tm990189.cpp @@ -427,7 +427,7 @@ class tm990_189_rs232_image_device : public device_t, public device_image_interf protected: // device_t implementation - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; TIMER_CALLBACK_MEMBER(rs232_input_tick); diff --git a/src/mame/tiger/bingobear.cpp b/src/mame/tiger/bingobear.cpp index 1aa716e2dbd..96a6ad01685 100644 --- a/src/mame/tiger/bingobear.cpp +++ b/src/mame/tiger/bingobear.cpp @@ -61,8 +61,8 @@ class bingobear_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(power_on); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: // devices/pointers diff --git a/src/mame/tiger/gamecom.h b/src/mame/tiger/gamecom.h index c1c382224c9..0ce4908906b 100644 --- a/src/mame/tiger/gamecom.h +++ b/src/mame/tiger/gamecom.h @@ -238,8 +238,8 @@ class gamecom_state : public driver_device void init_gamecom(); protected: - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: uint8_t gamecom_internal_r(offs_t offset); @@ -257,7 +257,7 @@ class gamecom_state : public driver_device DECLARE_DEVICE_IMAGE_LOAD_MEMBER( cart1_load ); DECLARE_DEVICE_IMAGE_LOAD_MEMBER( cart2_load ); uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void gamecom_mem_map(address_map &map); + void gamecom_mem_map(address_map &map) ATTR_COLD; void gamecom_set_mmu(uint8_t mmu, uint8_t data); void handle_stylus_press(int column); diff --git a/src/mame/tiger/k28.cpp b/src/mame/tiger/k28.cpp index 88c7899b01b..6a9a0e74aa9 100644 --- a/src/mame/tiger/k28.cpp +++ b/src/mame/tiger/k28.cpp @@ -59,8 +59,8 @@ class k28_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(power_on); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: // devices/pointers diff --git a/src/mame/tiger/k28o.cpp b/src/mame/tiger/k28o.cpp index 0f0d5923be9..d65a82c54ff 100644 --- a/src/mame/tiger/k28o.cpp +++ b/src/mame/tiger/k28o.cpp @@ -65,8 +65,8 @@ class k28o_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(power_on); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: // devices/pointers diff --git a/src/mame/tiger/pylo.cpp b/src/mame/tiger/pylo.cpp index 5cdb4260481..ec5c3cae508 100644 --- a/src/mame/tiger/pylo.cpp +++ b/src/mame/tiger/pylo.cpp @@ -42,7 +42,7 @@ class pylo_state : public driver_device void pylo(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: // devices/pointers diff --git a/src/mame/tigertel/docg3.h b/src/mame/tigertel/docg3.h index 8c097188af8..6e9a36e8965 100644 --- a/src/mame/tigertel/docg3.h +++ b/src/mame/tigertel/docg3.h @@ -24,8 +24,8 @@ class diskonchip_g3_device : public device_t, public device_nvram_interface void set_size(int _size) { m_size = _size; } 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; // device_nvram_interface overrides virtual void nvram_default() override; diff --git a/src/mame/tigertel/gizmondo.cpp b/src/mame/tigertel/gizmondo.cpp index bd40626dbd2..396179f6ee4 100644 --- a/src/mame/tigertel/gizmondo.cpp +++ b/src/mame/tigertel/gizmondo.cpp @@ -60,15 +60,15 @@ class gizmondo_state : public driver_device private: uint32_t m_port[9]; required_device m_s3c2440; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; required_device m_maincpu; required_device m_gf4500; uint32_t s3c2440_gpio_port_r(offs_t offset); void s3c2440_gpio_port_w(offs_t offset, uint32_t data); bitmap_rgb32 m_bitmap; - void gizmondo_map(address_map &map); + void gizmondo_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/tiki/tiki100.h b/src/mame/tiki/tiki100.h index d99a84475c2..3b6ad954070 100644 --- a/src/mame/tiki/tiki100.h +++ b/src/mame/tiki/tiki100.h @@ -104,11 +104,11 @@ class tiki100_state : public driver_device void busrq_w(int state); - void tiki100_io(address_map &map); - void tiki100_mem(address_map &map); + void tiki100_io(address_map &map) ATTR_COLD; + void tiki100_mem(address_map &map) ATTR_COLD; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; required_device m_screen; required_device m_maincpu; diff --git a/src/mame/toaplan/gp9001.h b/src/mame/toaplan/gp9001.h index 738149d4e79..0390fec2121 100644 --- a/src/mame/toaplan/gp9001.h +++ b/src/mame/toaplan/gp9001.h @@ -32,7 +32,7 @@ class gp9001vdp_device : public device_t, bitmap_ind8 *custom_priority_bitmap; - void map(address_map &map); + void map(address_map &map) ATTR_COLD; // game-specific hack stuff void disable_sprite_buffer() { m_sp.use_sprite_buffer = 0; } @@ -59,9 +59,9 @@ class gp9001vdp_device : public device_t, void bootleg_scroll_w(offs_t offset, u16 data, u16 mem_mask = ~0); protected: - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; virtual space_config_vector memory_space_config() const override; diff --git a/src/mame/toaplan/mjsister.cpp b/src/mame/toaplan/mjsister.cpp index 4b780a78c76..92365c88241 100644 --- a/src/mame/toaplan/mjsister.cpp +++ b/src/mame/toaplan/mjsister.cpp @@ -41,8 +41,8 @@ class mjsister_state : public driver_device void mjsister(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: /* video-related */ @@ -87,8 +87,8 @@ class mjsister_state : public driver_device INTERRUPT_GEN_MEMBER(interrupt); uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void mjsister_io_map(address_map &map); - void mjsister_map(address_map &map); + void mjsister_io_map(address_map &map) ATTR_COLD; + void mjsister_map(address_map &map) ATTR_COLD; emu_timer *m_dac_timer; diff --git a/src/mame/toaplan/slapfght.h b/src/mame/toaplan/slapfght.h index 1ad546a221a..58e7ccb57eb 100644 --- a/src/mame/toaplan/slapfght.h +++ b/src/mame/toaplan/slapfght.h @@ -123,8 +123,8 @@ class slapfght_state : public driver_device uint8_t tigerhb1_prot_r(); void tigerhb1_prot_w(uint8_t data); - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; TILE_GET_INFO_MEMBER(get_pf_tile_info); TILE_GET_INFO_MEMBER(get_pf1_tile_info); @@ -140,22 +140,22 @@ class slapfght_state : public driver_device void vblank_irq(int state); INTERRUPT_GEN_MEMBER(sound_nmi); - void getstar_map(address_map &map); - void getstarb1_io_map(address_map &map); - void getstarb2_io_map(address_map &map); - void io_map_mcu(address_map &map); - void io_map_nomcu(address_map &map); - void perfrman_map(address_map &map); - void perfrman_sound_map(address_map &map); - void slapfigh_map(address_map &map); - void slapfigh_map_mcu(address_map &map); - void slapfighb1_map(address_map &map); - void slapfighb2_map(address_map &map); - void tigerh_map(address_map &map); - void tigerh_map_mcu(address_map &map); - void tigerh_sound_map(address_map &map); - void tigerhb1_map(address_map &map); - void tigerhb2_map(address_map &map); + void getstar_map(address_map &map) ATTR_COLD; + void getstarb1_io_map(address_map &map) ATTR_COLD; + void getstarb2_io_map(address_map &map) ATTR_COLD; + void io_map_mcu(address_map &map) ATTR_COLD; + void io_map_nomcu(address_map &map) ATTR_COLD; + void perfrman_map(address_map &map) ATTR_COLD; + void perfrman_sound_map(address_map &map) ATTR_COLD; + void slapfigh_map(address_map &map) ATTR_COLD; + void slapfigh_map_mcu(address_map &map) ATTR_COLD; + void slapfighb1_map(address_map &map) ATTR_COLD; + void slapfighb2_map(address_map &map) ATTR_COLD; + void tigerh_map(address_map &map) ATTR_COLD; + void tigerh_map_mcu(address_map &map) ATTR_COLD; + void tigerh_sound_map(address_map &map) ATTR_COLD; + void tigerhb1_map(address_map &map) ATTR_COLD; + void tigerhb2_map(address_map &map) ATTR_COLD; }; #endif // MAME_TOAPLAN_SLAPFGHT_H diff --git a/src/mame/toaplan/slapfght_ms.cpp b/src/mame/toaplan/slapfght_ms.cpp index 7a80eb9b833..d25e3671a70 100644 --- a/src/mame/toaplan/slapfght_ms.cpp +++ b/src/mame/toaplan/slapfght_ms.cpp @@ -61,8 +61,8 @@ class slapfght_ms_state : public driver_device void init_decryption(); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -96,9 +96,9 @@ class slapfght_ms_state : public driver_device void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void main_io_map(address_map &map); - void main_prg_map(address_map &map); - void sound_prg_map(address_map &map); + void main_io_map(address_map &map) ATTR_COLD; + void main_prg_map(address_map &map) ATTR_COLD; + void sound_prg_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/toaplan/toaplan1.h b/src/mame/toaplan/toaplan1.h index 07217b4e926..79a547be778 100644 --- a/src/mame/toaplan/toaplan1.h +++ b/src/mame/toaplan/toaplan1.h @@ -45,9 +45,9 @@ class toaplan1_state : public driver_device void zerowing(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; required_shared_ptr m_bgpaletteram; required_shared_ptr m_fgpaletteram; @@ -144,19 +144,19 @@ class toaplan1_state : public driver_device required_device m_screen; required_device m_palette; - void hellfire_main_map(address_map &map); - void hellfire_sound_io_map(address_map &map); - void outzone_main_map(address_map &map); - void outzone_sound_io_map(address_map &map); - void outzonecv_main_map(address_map &map); - void sound_map(address_map &map); - void truxton_main_map(address_map &map); - void truxton_sound_io_map(address_map &map); - void vimana_hd647180_io_map(address_map &map); - void vimana_hd647180_mem_map(address_map &map); - void vimana_main_map(address_map &map); - void zerowing_main_map(address_map &map); - void zerowing_sound_io_map(address_map &map); + void hellfire_main_map(address_map &map) ATTR_COLD; + void hellfire_sound_io_map(address_map &map) ATTR_COLD; + void outzone_main_map(address_map &map) ATTR_COLD; + void outzone_sound_io_map(address_map &map) ATTR_COLD; + void outzonecv_main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; + void truxton_main_map(address_map &map) ATTR_COLD; + void truxton_sound_io_map(address_map &map) ATTR_COLD; + void vimana_hd647180_io_map(address_map &map) ATTR_COLD; + void vimana_hd647180_mem_map(address_map &map) ATTR_COLD; + void vimana_main_map(address_map &map) ATTR_COLD; + void zerowing_main_map(address_map &map) ATTR_COLD; + void zerowing_sound_io_map(address_map &map) ATTR_COLD; }; class toaplan1_rallybik_state : public toaplan1_state @@ -171,7 +171,7 @@ class toaplan1_rallybik_state : public toaplan1_state void rallybik(machine_config &config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: void coin_counter_1_w(int state); @@ -184,8 +184,8 @@ class toaplan1_rallybik_state : public toaplan1_state void screen_vblank(int state); required_device m_spritegen; - void rallybik_main_map(address_map &map); - void rallybik_sound_io_map(address_map &map); + void rallybik_main_map(address_map &map) ATTR_COLD; + void rallybik_sound_io_map(address_map &map) ATTR_COLD; }; class toaplan1_demonwld_state : public toaplan1_state @@ -201,8 +201,8 @@ class toaplan1_demonwld_state : public toaplan1_state protected: virtual void device_post_load() override; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: /* Demon world */ @@ -221,10 +221,10 @@ class toaplan1_demonwld_state : public toaplan1_state void dsp_int_w(int enable); required_device m_dsp; - void dsp_io_map(address_map &map); - void dsp_program_map(address_map &map); - void main_map(address_map &map); - void sound_io_map(address_map &map); + void dsp_io_map(address_map &map) ATTR_COLD; + void dsp_program_map(address_map &map) ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; + void sound_io_map(address_map &map) ATTR_COLD; }; class toaplan1_samesame_state : public toaplan1_state @@ -250,8 +250,8 @@ class toaplan1_samesame_state : public toaplan1_state void screen_vblank(int state); - void hd647180_io_map(address_map &map); - void main_map(address_map &map); + void hd647180_io_map(address_map &map) ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; }; #endif // MAME_TOAPLAN_TOAPLAN1_H diff --git a/src/mame/toaplan/toaplan2.h b/src/mame/toaplan/toaplan2.h index c7eb2f6505e..4b7a5d7f4e1 100644 --- a/src/mame/toaplan/toaplan2.h +++ b/src/mame/toaplan/toaplan2.h @@ -109,32 +109,32 @@ class toaplan2_state : public driver_device u32 screen_update_dogyuun(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); u32 screen_update_batsugun(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void screen_vblank(int state); - void cpu_space_fixeightbl_map(address_map &map); - void cpu_space_pipibibsbl_map(address_map &map); + void cpu_space_fixeightbl_map(address_map &map) ATTR_COLD; + void cpu_space_pipibibsbl_map(address_map &map) ATTR_COLD; void toaplan2_reset(int state); - void batsugun_68k_mem(address_map &map); - void batsugunbl_68k_mem(address_map &map); - void dogyuun_68k_mem(address_map &map); - void dogyuunto_68k_mem(address_map &map); - void dogyuunto_sound_z80_mem(address_map &map); - void enmadaio_68k_mem(address_map &map); - void enmadaio_oki(address_map &map); - void fixeightbl_oki(address_map &map); - void hd647180_io_map(address_map &map); - void kbash2_68k_mem(address_map &map); - void kbash_68k_mem(address_map &map); - void kbash_v25_mem(address_map &map); - void pipibibi_bootleg_68k_mem(address_map &map); - void pipibibs_68k_mem(address_map &map); - void pipibibs_sound_z80_mem(address_map &map); - void snowbro2_68k_mem(address_map &map); - void snowbro2b3_68k_mem(address_map &map); - void tekipaki_68k_mem(address_map &map); - void v25_mem(address_map &map); - void vfive_68k_mem(address_map &map); - void vfive_v25_mem(address_map &map); + void batsugun_68k_mem(address_map &map) ATTR_COLD; + void batsugunbl_68k_mem(address_map &map) ATTR_COLD; + void dogyuun_68k_mem(address_map &map) ATTR_COLD; + void dogyuunto_68k_mem(address_map &map) ATTR_COLD; + void dogyuunto_sound_z80_mem(address_map &map) ATTR_COLD; + void enmadaio_68k_mem(address_map &map) ATTR_COLD; + void enmadaio_oki(address_map &map) ATTR_COLD; + void fixeightbl_oki(address_map &map) ATTR_COLD; + void hd647180_io_map(address_map &map) ATTR_COLD; + void kbash2_68k_mem(address_map &map) ATTR_COLD; + void kbash_68k_mem(address_map &map) ATTR_COLD; + void kbash_v25_mem(address_map &map) ATTR_COLD; + void pipibibi_bootleg_68k_mem(address_map &map) ATTR_COLD; + void pipibibs_68k_mem(address_map &map) ATTR_COLD; + void pipibibs_sound_z80_mem(address_map &map) ATTR_COLD; + void snowbro2_68k_mem(address_map &map) ATTR_COLD; + void snowbro2b3_68k_mem(address_map &map) ATTR_COLD; + void tekipaki_68k_mem(address_map &map) ATTR_COLD; + void v25_mem(address_map &map) ATTR_COLD; + void vfive_68k_mem(address_map &map) ATTR_COLD; + void vfive_v25_mem(address_map &map) ATTR_COLD; }; // with paddle @@ -149,8 +149,8 @@ class ghox_state : public toaplan2_state void ghox(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_ioport_array<2> m_io_pad; @@ -159,8 +159,8 @@ class ghox_state : public toaplan2_state template u16 ghox_h_analog_r(); - void ghox_68k_mem(address_map &map); - void ghox_hd647180_mem_map(address_map &map); + void ghox_68k_mem(address_map &map) ATTR_COLD; + void ghox_hd647180_mem_map(address_map &map) ATTR_COLD; }; // with text layer @@ -198,7 +198,7 @@ class truxton2_state : public toaplan2_state void init_fixeight(); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; virtual void device_post_load() override; private: @@ -259,24 +259,24 @@ class truxton2_state : public toaplan2_state INTERRUPT_GEN_MEMBER(bbakraid_snd_interrupt); void create_tx_tilemap(int dx = 0, int dx_flipped = 0); - void batrider_68k_mem(address_map &map); - void batrider_dma_mem(address_map &map); - void batrider_sound_z80_mem(address_map &map); - void batrider_sound_z80_port(address_map &map); - void bbakraid_68k_mem(address_map &map); - void bbakraid_sound_z80_mem(address_map &map); - void bbakraid_sound_z80_port(address_map &map); - void bgaregga_68k_mem(address_map &map); - void bgaregga_sound_z80_mem(address_map &map); - void fixeight_68k_mem(address_map &map); - void fixeight_v25_mem(address_map &map); - void fixeightbl_68k_mem(address_map &map); - void mahoudai_68k_mem(address_map &map); - void nprobowl_68k_mem(address_map &map); - template void raizing_oki(address_map &map); - void raizing_sound_z80_mem(address_map &map); - void shippumd_68k_mem(address_map &map); - void truxton2_68k_mem(address_map &map); + void batrider_68k_mem(address_map &map) ATTR_COLD; + void batrider_dma_mem(address_map &map) ATTR_COLD; + void batrider_sound_z80_mem(address_map &map) ATTR_COLD; + void batrider_sound_z80_port(address_map &map) ATTR_COLD; + void bbakraid_68k_mem(address_map &map) ATTR_COLD; + void bbakraid_sound_z80_mem(address_map &map) ATTR_COLD; + void bbakraid_sound_z80_port(address_map &map) ATTR_COLD; + void bgaregga_68k_mem(address_map &map) ATTR_COLD; + void bgaregga_sound_z80_mem(address_map &map) ATTR_COLD; + void fixeight_68k_mem(address_map &map) ATTR_COLD; + void fixeight_v25_mem(address_map &map) ATTR_COLD; + void fixeightbl_68k_mem(address_map &map) ATTR_COLD; + void mahoudai_68k_mem(address_map &map) ATTR_COLD; + void nprobowl_68k_mem(address_map &map) ATTR_COLD; + template void raizing_oki(address_map &map) ATTR_COLD; + void raizing_sound_z80_mem(address_map &map) ATTR_COLD; + void shippumd_68k_mem(address_map &map) ATTR_COLD; + void truxton2_68k_mem(address_map &map) ATTR_COLD; }; @@ -300,8 +300,8 @@ class pwrkick_state : public toaplan2_state void pwrkick_coin_w(u8 data); void pwrkick_coin_lockout_w(u8 data); - void othldrby_68k_mem(address_map &map); - void pwrkick_68k_mem(address_map &map); + void othldrby_68k_mem(address_map &map) ATTR_COLD; + void pwrkick_68k_mem(address_map &map) ATTR_COLD; }; #endif // MAME_TOAPLAN_TOAPLAN2_H diff --git a/src/mame/toaplan/toaplan_scu.h b/src/mame/toaplan/toaplan_scu.h index 12a0f73e63b..1585be57204 100644 --- a/src/mame/toaplan/toaplan_scu.h +++ b/src/mame/toaplan/toaplan_scu.h @@ -25,8 +25,8 @@ class toaplan_scu_device : public device_t, public device_gfx_interface, public void draw_sprites(bitmap_rgb32 &bitmap, const rectangle &cliprect, u16* spriteram, u32 bytes); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: template void draw_sprites_common(BitmapClass &bitmap, const rectangle &cliprect, u16* spriteram, u32 bytes); diff --git a/src/mame/toaplan/twincobr.h b/src/mame/toaplan/twincobr.h index 9607bdffb19..27a99ac4593 100644 --- a/src/mame/toaplan/twincobr.h +++ b/src/mame/toaplan/twincobr.h @@ -45,8 +45,8 @@ class twincobr_state : public driver_device void init_twincobr(); protected: - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; optional_shared_ptr m_sharedram; optional_device m_spriteram8; @@ -144,13 +144,13 @@ class twincobr_state : public driver_device required_device m_mainlatch; required_device m_coinlatch; - void dsp_io_map(address_map &map); - void dsp_program_map(address_map &map); - void fnshark_sound_io_map(address_map &map); - void fsharkbt_i8741_io_map(address_map &map); - void main_program_map(address_map &map); - void sound_io_map(address_map &map); - void sound_program_map(address_map &map); + void dsp_io_map(address_map &map) ATTR_COLD; + void dsp_program_map(address_map &map) ATTR_COLD; + void fnshark_sound_io_map(address_map &map) ATTR_COLD; + void fsharkbt_i8741_io_map(address_map &map) ATTR_COLD; + void main_program_map(address_map &map) ATTR_COLD; + void sound_io_map(address_map &map) ATTR_COLD; + void sound_program_map(address_map &map) ATTR_COLD; }; #endif // MAME_TOAPLAN_TWINCOBR_H diff --git a/src/mame/toaplan/wardner.cpp b/src/mame/toaplan/wardner.cpp index 73c185211ba..9e71a0a1688 100644 --- a/src/mame/toaplan/wardner.cpp +++ b/src/mame/toaplan/wardner.cpp @@ -154,7 +154,7 @@ class wardner_state : public twincobr_state protected: virtual void driver_start() override; - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; private: memory_view m_rom_ram_view; @@ -165,13 +165,13 @@ class wardner_state : public twincobr_state void wardner_vblank_irq(int state); void int_enable_w(int state); - void dsp_io_map(address_map &map); - void dsp_program_map(address_map &map); - void main_bank_map(address_map &map); - void main_io_map(address_map &map); - void main_program_map(address_map &map); - void sound_io_map(address_map &map); - void sound_program_map(address_map &map); + void dsp_io_map(address_map &map) ATTR_COLD; + void dsp_program_map(address_map &map) ATTR_COLD; + void main_bank_map(address_map &map) ATTR_COLD; + void main_io_map(address_map &map) ATTR_COLD; + void main_program_map(address_map &map) ATTR_COLD; + void sound_io_map(address_map &map) ATTR_COLD; + void sound_program_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/tomy/kisssite.cpp b/src/mame/tomy/kisssite.cpp index 949f929cdd1..3c438706a3c 100644 --- a/src/mame/tomy/kisssite.cpp +++ b/src/mame/tomy/kisssite.cpp @@ -66,12 +66,12 @@ class kisssite_state : public driver_device void kisssite(machine_config &config) ATTR_COLD; protected: - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; - void mem(address_map &map); + void mem(address_map &map) ATTR_COLD; }; diff --git a/src/mame/tomy/tomy_princ.cpp b/src/mame/tomy/tomy_princ.cpp index 4a753a3be36..dd87ead5d64 100644 --- a/src/mame/tomy/tomy_princ.cpp +++ b/src/mame/tomy/tomy_princ.cpp @@ -311,15 +311,15 @@ class tomy_princ_state : public driver_device SPRITES_PRIORITY_TARGET, }; - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; - virtual void video_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; + virtual void video_reset() override ATTR_COLD; TIMER_DEVICE_CALLBACK_MEMBER(scan_interrupt); DEVICE_IMAGE_LOAD_MEMBER(cart_load); - void princ_map(address_map &map); + void princ_map(address_map &map) ATTR_COLD; void princ_palette(palette_device &palette) const; u32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); diff --git a/src/mame/tomy/tutor.cpp b/src/mame/tomy/tutor.cpp index 37497998a1d..3357ea2a12a 100644 --- a/src/mame/tomy/tutor.cpp +++ b/src/mame/tomy/tutor.cpp @@ -205,8 +205,8 @@ class tutor_state : public driver_device void tutor(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; @@ -238,9 +238,9 @@ class tutor_state : public driver_device void write_centronics_busy(int state); [[maybe_unused]] void test_w(offs_t offset, uint8_t data); - void pyuutajr_mem(address_map &map); - void tutor_io(address_map &map); - void tutor_memmap(address_map &map); + void pyuutajr_mem(address_map &map) ATTR_COLD; + void tutor_io(address_map &map) ATTR_COLD; + void tutor_memmap(address_map &map) ATTR_COLD; }; diff --git a/src/mame/toshiba/paso1600.cpp b/src/mame/toshiba/paso1600.cpp index a0738eae96a..acf05fafcb2 100644 --- a/src/mame/toshiba/paso1600.cpp +++ b/src/mame/toshiba/paso1600.cpp @@ -53,15 +53,15 @@ class paso1600_state : public driver_device void pc_dma_write_byte(offs_t offset, uint8_t data); uint32_t screen_update_paso1600(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void paso1600_io(address_map &map); - void paso1600_map(address_map &map); + void paso1600_io(address_map &map) ATTR_COLD; + void paso1600_map(address_map &map) ATTR_COLD; uint8_t m_crtc_vreg[0x100]{}, m_crtc_index = 0; struct { uint8_t portb = 0; } m_keyb; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; required_device m_maincpu; required_device m_pic; required_device m_dma; diff --git a/src/mame/toshiba/pasopia.cpp b/src/mame/toshiba/pasopia.cpp index 5a949a60ece..5bf1e80f563 100644 --- a/src/mame/toshiba/pasopia.cpp +++ b/src/mame/toshiba/pasopia.cpp @@ -58,8 +58,8 @@ class pasopia_state : public driver_device void pasopia(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: void pasopia_ctrl_w(u8 data); @@ -80,8 +80,8 @@ class pasopia_state : public driver_device MC6845_UPDATE_ROW(crtc_update_row); TIMER_CALLBACK_MEMBER(pio_timer); - void pasopia_io(address_map &map); - void pasopia_map(address_map &map); + void pasopia_io(address_map &map) ATTR_COLD; + void pasopia_map(address_map &map) ATTR_COLD; u8 m_hblank = 0; u16 m_vram_addr = 0; diff --git a/src/mame/toshiba/pasopia7.cpp b/src/mame/toshiba/pasopia7.cpp index 57fd5f98796..3cca942fd21 100644 --- a/src/mame/toshiba/pasopia7.cpp +++ b/src/mame/toshiba/pasopia7.cpp @@ -82,9 +82,9 @@ class pasopia7_state : public driver_device void init_p7_raster(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: uint8_t vram_r(offs_t offset); @@ -114,8 +114,8 @@ class pasopia7_state : public driver_device void p7_lcd_palette(palette_device &palette) const; MC6845_UPDATE_ROW(update_row); - void pasopia7_io(address_map &map); - void pasopia7_mem(address_map &map); + void pasopia7_io(address_map &map) ATTR_COLD; + void pasopia7_mem(address_map &map) ATTR_COLD; std::unique_ptr m_work_ram; std::unique_ptr m_vram; diff --git a/src/mame/trainer/amico2k.cpp b/src/mame/trainer/amico2k.cpp index 937906e3aef..705ce48ff4a 100644 --- a/src/mame/trainer/amico2k.cpp +++ b/src/mame/trainer/amico2k.cpp @@ -52,7 +52,7 @@ class amico2k_state : public driver_device void amico2k(machine_config &config); private: - void machine_start() override; + void machine_start() override ATTR_COLD; uint8_t ppi_pa_r(); void ppi_pa_w(uint8_t data); @@ -62,7 +62,7 @@ class amico2k_state : public driver_device // timers emu_timer *m_led_refresh_timer = nullptr; TIMER_CALLBACK_MEMBER(led_refresh); - void amico2k_mem(address_map &map); + void amico2k_mem(address_map &map) ATTR_COLD; int m_ls145_p = 0; uint8_t m_segment = 0U; diff --git a/src/mame/trainer/babbage.cpp b/src/mame/trainer/babbage.cpp index 9ce83638936..acde0d3bb6a 100644 --- a/src/mame/trainer/babbage.cpp +++ b/src/mame/trainer/babbage.cpp @@ -50,7 +50,7 @@ class babbage_state : public driver_device void babbage(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: uint8_t pio2_a_r(); @@ -61,8 +61,8 @@ class babbage_state : public driver_device void ctc_z2_w(int state); TIMER_DEVICE_CALLBACK_MEMBER(keyboard_callback); - void babbage_io(address_map &map); - void babbage_map(address_map &map); + void babbage_io(address_map &map) ATTR_COLD; + void babbage_map(address_map &map) ATTR_COLD; uint8_t m_seg = 0U; uint8_t m_key = 0U; diff --git a/src/mame/trainer/bob85.cpp b/src/mame/trainer/bob85.cpp index 1dc5cb89198..b3b90cd116d 100644 --- a/src/mame/trainer/bob85.cpp +++ b/src/mame/trainer/bob85.cpp @@ -48,8 +48,8 @@ class bob85_state : public driver_device void bob85(machine_config &config); private: - void io_map(address_map &map); - void mem_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; uint8_t bob85_keyboard_r(); void bob85_7seg_w(offs_t offset, uint8_t data); void sod_w(int state); @@ -59,7 +59,7 @@ class bob85_state : public driver_device uint8_t m_count_key = 0; u16 m_casscnt = 0; bool m_cassold = false, m_cassbit = false; - void machine_start() override; + void machine_start() override ATTR_COLD; required_device m_maincpu; required_device m_cass; required_ioport m_line0; diff --git a/src/mame/trainer/crei680.cpp b/src/mame/trainer/crei680.cpp index d6492292dab..cc961ad44d8 100644 --- a/src/mame/trainer/crei680.cpp +++ b/src/mame/trainer/crei680.cpp @@ -71,7 +71,7 @@ class crei680_state : public driver_device TIMER_DEVICE_CALLBACK_MEMBER(kansas_r); MC6845_UPDATE_ROW(crtc_update_row); - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; void pia0b_w(u8); void pia1b_w(u8); @@ -79,8 +79,8 @@ class crei680_state : public driver_device bool m_cassbit = 0; bool m_cassold = 0; u8 m_cass_data[4]{}; - void machine_start() override; - void machine_reset() override; + void machine_start() override ATTR_COLD; + void machine_reset() override ATTR_COLD; required_device m_maincpu; required_device m_cass; required_device m_pia0; diff --git a/src/mame/trainer/cvicny.cpp b/src/mame/trainer/cvicny.cpp index af78d92cba7..c247bcd2633 100644 --- a/src/mame/trainer/cvicny.cpp +++ b/src/mame/trainer/cvicny.cpp @@ -50,10 +50,10 @@ class cvicny_state : public driver_device void cvicny(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: - void cvicny_mem(address_map &map); + void cvicny_mem(address_map &map) ATTR_COLD; u8 key_r(); void digit_w(u8 data); void segment_w(u8 data); diff --git a/src/mame/trainer/dolphunk.cpp b/src/mame/trainer/dolphunk.cpp index 08462ce0a98..d7d893a2e01 100644 --- a/src/mame/trainer/dolphunk.cpp +++ b/src/mame/trainer/dolphunk.cpp @@ -117,9 +117,9 @@ class dauphin_state : public driver_device void port00_w(offs_t offset, u8 data); void port06_w(u8 data); TIMER_DEVICE_CALLBACK_MEMBER(kansas_w); - void io_map(address_map &map); - void mem_map(address_map &map); - void machine_start() override; + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; + void machine_start() override ATTR_COLD; u8 m_cass_data = 0U; u8 m_last_key = 0U; diff --git a/src/mame/trainer/emma2.cpp b/src/mame/trainer/emma2.cpp index 6160bc4520f..d7294ed3583 100644 --- a/src/mame/trainer/emma2.cpp +++ b/src/mame/trainer/emma2.cpp @@ -76,10 +76,10 @@ class emma2_state : public driver_device void segment_w(uint8_t data); void digit_w(uint8_t data); uint8_t keyboard_r(); - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; uint8_t m_digit = 0U; uint8_t m_seg = 0U; diff --git a/src/mame/trainer/instruct.cpp b/src/mame/trainer/instruct.cpp index b55aec4feb8..0f27b11aff0 100644 --- a/src/mame/trainer/instruct.cpp +++ b/src/mame/trainer/instruct.cpp @@ -77,8 +77,8 @@ class instruct_state : public driver_device void instruct(machine_config &config); protected: - virtual void machine_reset() override; - virtual void machine_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; private: uint8_t port_r(); @@ -93,9 +93,9 @@ class instruct_state : public driver_device void portfa_w(uint8_t data); DECLARE_QUICKLOAD_LOAD_MEMBER(quickload_cb); INTERRUPT_GEN_MEMBER(t2l_int); - void data_map(address_map &map); - void io_map(address_map &map); - void mem_map(address_map &map); + void data_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; uint16_t m_lar = 0U; uint8_t m_digit = 0U; diff --git a/src/mame/trainer/mcg85.cpp b/src/mame/trainer/mcg85.cpp index f3273101249..39a2987e88d 100644 --- a/src/mame/trainer/mcg85.cpp +++ b/src/mame/trainer/mcg85.cpp @@ -30,8 +30,8 @@ class mcg85_state : public driver_device private: required_device m_maincpu; - void mem_map(address_map &map); - void io_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/trainer/mk14.cpp b/src/mame/trainer/mk14.cpp index fce5172a10f..24723af302d 100644 --- a/src/mame/trainer/mk14.cpp +++ b/src/mame/trainer/mk14.cpp @@ -66,7 +66,7 @@ class mk14_state : public driver_device void port_a_w(uint8_t data); void cass_w(int state); int cass_r(); - void mk14_map(address_map &map); + void mk14_map(address_map &map) ATTR_COLD; DECLARE_QUICKLOAD_LOAD_MEMBER(quickload_cb); @@ -92,7 +92,7 @@ class mk14vdu_state : public mk14_state void mk14vdu(machine_config &config); private: - void mk14vdu_map(address_map &map); + void mk14vdu_map(address_map &map) ATTR_COLD; uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); void draw_page_character(int page, uint16_t addr, int invert, bitmap_rgb32 &bitmap); diff --git a/src/mame/trainer/pro80.cpp b/src/mame/trainer/pro80.cpp index bdb4e92dcef..613f9ab26bf 100644 --- a/src/mame/trainer/pro80.cpp +++ b/src/mame/trainer/pro80.cpp @@ -54,14 +54,14 @@ class pro80_state : public driver_device u8 kp_r(); TIMER_DEVICE_CALLBACK_MEMBER(kansas_r); - void io_map(address_map &map); - void mem_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; u8 m_digit_sel = 0U; u8 m_cass_in = 0U; u16 m_cass_data[4]{}; - virtual void machine_reset() override; - virtual void machine_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; required_device m_maincpu; required_device m_cass; required_ioport_array<6> m_io_keyboard; diff --git a/src/mame/trainer/savia84.cpp b/src/mame/trainer/savia84.cpp index e8e78653482..395f7725a84 100644 --- a/src/mame/trainer/savia84.cpp +++ b/src/mame/trainer/savia84.cpp @@ -50,7 +50,7 @@ class savia84_state : public driver_device void savia84(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: uint8_t ppi_portc_r(); @@ -58,8 +58,8 @@ class savia84_state : public driver_device void ppi_portb_w(uint8_t data); void ppi_portc_w(uint8_t data); - void io_map(address_map &map); - void mem_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; uint8_t m_digit = 0U; uint8_t m_seg = 0U; diff --git a/src/mame/trainer/selz80.cpp b/src/mame/trainer/selz80.cpp index ead2f36baa1..c81adc44a7c 100644 --- a/src/mame/trainer/selz80.cpp +++ b/src/mame/trainer/selz80.cpp @@ -62,12 +62,12 @@ class selz80_state : public driver_device void digit_w(uint8_t data); uint8_t kbd_r(); - void selz80_io(address_map &map); + void selz80_io(address_map &map) ATTR_COLD; u8 m_digit = 0U; u8 m_seg = 0U; void setup_baud(); - void machine_start() override; + void machine_start() override ATTR_COLD; required_device m_maincpu; optional_shared_ptr m_p_ram; required_ioport_array<4> m_io_keyboard; @@ -75,8 +75,8 @@ class selz80_state : public driver_device required_device m_display; private: - void selz80_mem(address_map &map); - void machine_reset() override; + void selz80_mem(address_map &map) ATTR_COLD; + void machine_reset() override ATTR_COLD; }; @@ -87,8 +87,8 @@ class dagz80_state : public selz80_state void dagz80(machine_config &config); private: - void dagz80_mem(address_map &map); - void machine_reset() override; + void dagz80_mem(address_map &map) ATTR_COLD; + void machine_reset() override ATTR_COLD; }; void dagz80_state::dagz80_mem(address_map &map) diff --git a/src/mame/trainer/thaler.cpp b/src/mame/trainer/thaler.cpp index a5baa0566b4..029a1283e03 100644 --- a/src/mame/trainer/thaler.cpp +++ b/src/mame/trainer/thaler.cpp @@ -34,14 +34,14 @@ class mps65_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(reset_changed); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_maincpu; required_ioport_array<6> m_keypad; output_finder<6> m_digit; - void mps65_map(address_map &map); + void mps65_map(address_map &map) ATTR_COLD; uint8_t pa_r(); void pa_w(uint8_t data); diff --git a/src/mame/trainer/tk80.cpp b/src/mame/trainer/tk80.cpp index ebe70f15bbb..07c66703882 100644 --- a/src/mame/trainer/tk80.cpp +++ b/src/mame/trainer/tk80.cpp @@ -73,7 +73,7 @@ class tk80_state : public driver_device void tk85(machine_config &config); private: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; uint8_t key_matrix_r(); uint8_t nd80z_key_r(); @@ -83,12 +83,12 @@ class tk80_state : public driver_device uint8_t display_r(offs_t offset); void display_w(offs_t offset, uint8_t data); - void ics8080_mem(address_map &map); - void mikrolab_io(address_map &map); - void nd80z_io(address_map &map); - void tk80_io(address_map &map); - void tk80_mem(address_map &map); - void tk85_mem(address_map &map); + void ics8080_mem(address_map &map) ATTR_COLD; + void mikrolab_io(address_map &map) ATTR_COLD; + void nd80z_io(address_map &map) ATTR_COLD; + void tk80_io(address_map &map) ATTR_COLD; + void tk80_mem(address_map &map) ATTR_COLD; + void tk85_mem(address_map &map) ATTR_COLD; uint8_t m_term_data = 0U; uint8_t m_keyb_press = 0U; diff --git a/src/mame/trainer/zapcomputer.cpp b/src/mame/trainer/zapcomputer.cpp index d2bf1148d81..df650929840 100644 --- a/src/mame/trainer/zapcomputer.cpp +++ b/src/mame/trainer/zapcomputer.cpp @@ -53,11 +53,11 @@ class zapcomp_state : public driver_device uint8_t keyboard_r(); void display_7seg_w(offs_t offset, uint8_t data); - void zapcomp_io(address_map &map); - void zapcomp_mem(address_map &map); + void zapcomp_io(address_map &map) ATTR_COLD; + void zapcomp_mem(address_map &map) ATTR_COLD; uint8_t decode7seg(uint8_t data); - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; required_device m_maincpu; output_finder<6> m_digits; }; diff --git a/src/mame/trs/agvision.cpp b/src/mame/trs/agvision.cpp index c96052050a0..e8465beb873 100644 --- a/src/mame/trs/agvision.cpp +++ b/src/mame/trs/agvision.cpp @@ -75,7 +75,7 @@ class agvision_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(hang_up); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: static constexpr int CD_DELAY = 250; @@ -91,12 +91,12 @@ class agvision_state : public driver_device emu_timer *m_timer; // Carrier Detect Timer uint8_t sam_read(offs_t offset); - void mem_map(address_map &map); - void rom_map(address_map &map); - void static_ram_map(address_map &map); - void io0_map(address_map &map); - void io1_map(address_map &map); - void boot_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void rom_map(address_map &map) ATTR_COLD; + void static_ram_map(address_map &map) ATTR_COLD; + void io0_map(address_map &map) ATTR_COLD; + void io1_map(address_map &map) ATTR_COLD; + void boot_map(address_map &map) ATTR_COLD; void ff20_write(offs_t offset, uint8_t data); void configure_sam(); uint8_t pia0_pa_r(); diff --git a/src/mame/trs/coco.h b/src/mame/trs/coco.h index 25eb56e3517..ee3f4ecabe3 100644 --- a/src/mame/trs/coco.h +++ b/src/mame/trs/coco.h @@ -117,12 +117,12 @@ class coco_state : public driver_device, public device_cococart_host_interface void coco_sound(machine_config &config); void coco_floating(machine_config &config); - void coco_floating_map(address_map &map); + void coco_floating_map(address_map &map) ATTR_COLD; 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; // changed handlers virtual void pia1_pa_changed(uint8_t data); diff --git a/src/mame/trs/coco12.h b/src/mame/trs/coco12.h index e40be18357d..155de77d3b8 100644 --- a/src/mame/trs/coco12.h +++ b/src/mame/trs/coco12.h @@ -59,7 +59,7 @@ class coco12_state : public coco_state void ms1600(machine_config &config); protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; void configure_sam(); // PIA1 @@ -68,16 +68,16 @@ class coco12_state : public coco_state sam6883_device &sam() { return *m_sam; } required_device m_sam; - void coco_mem(address_map &map); - void coco_ram(address_map &map); - void coco_rom0(address_map &map); - void coco_rom1(address_map &map); - void coco_rom2(address_map &map); - void coco_io0(address_map &map); - void coco_io1(address_map &map); - void coco_io2(address_map &map); - void coco_ff60(address_map &map); - void ms1600_rom2(address_map &map); + void coco_mem(address_map &map) ATTR_COLD; + void coco_ram(address_map &map) ATTR_COLD; + void coco_rom0(address_map &map) ATTR_COLD; + void coco_rom1(address_map &map) ATTR_COLD; + void coco_rom2(address_map &map) ATTR_COLD; + void coco_io0(address_map &map) ATTR_COLD; + void coco_io1(address_map &map) ATTR_COLD; + void coco_io2(address_map &map) ATTR_COLD; + void coco_ff60(address_map &map) ATTR_COLD; + void ms1600_rom2(address_map &map) ATTR_COLD; protected: required_device m_vdg; @@ -100,10 +100,10 @@ class deluxecoco_state : public coco12_state void ff30_write(offs_t offset, uint8_t data); protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; void configure_sam(); - void deluxecoco_rom2(address_map &map); - void deluxecoco_io1(address_map &map); + void deluxecoco_rom2(address_map &map) ATTR_COLD; + void deluxecoco_io1(address_map &map) ATTR_COLD; required_device m_acia; required_device m_psg; diff --git a/src/mame/trs/coco3.h b/src/mame/trs/coco3.h index 93005d7ebb5..5cbcc07c50a 100644 --- a/src/mame/trs/coco3.h +++ b/src/mame/trs/coco3.h @@ -41,7 +41,7 @@ class coco3_state : public coco_state void coco3h(machine_config &config); void coco3dw1(machine_config &config); void coco3(machine_config &config); - void coco3_mem(address_map &map); + void coco3_mem(address_map &map) ATTR_COLD; protected: virtual void update_cart_base(uint8_t *cart_base) override; diff --git a/src/mame/trs/coco_vhd.h b/src/mame/trs/coco_vhd.h index 5657bc7ca21..4b0dfd74acb 100644 --- a/src/mame/trs/coco_vhd.h +++ b/src/mame/trs/coco_vhd.h @@ -50,7 +50,7 @@ class coco_vhd_image_device : public device_t, protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; void coco_vhd_readwrite(uint8_t data); diff --git a/src/mame/trs/dgn_beta.h b/src/mame/trs/dgn_beta.h index 538c5e949d6..c2e2b65e7f2 100644 --- a/src/mame/trs/dgn_beta.h +++ b/src/mame/trs/dgn_beta.h @@ -56,8 +56,8 @@ class dgn_beta_state : public driver_device void dgnbeta(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: static constexpr unsigned RamSize = 256; // 256K by default @@ -226,7 +226,7 @@ class dgn_beta_state : public driver_device offs_t dgnbeta_dasm_override(std::ostream &stream, offs_t pc, const util::disasm_interface::data_buffer &opcodes, const util::disasm_interface::data_buffer ¶ms); - void dgnbeta_map(address_map &map); + void dgnbeta_map(address_map &map) ATTR_COLD; void execute_beta_key_dump(const std::vector ¶ms); void execute_beta_dat_log(const std::vector ¶ms); diff --git a/src/mame/trs/dgnalpha.cpp b/src/mame/trs/dgnalpha.cpp index 37514c80ced..e0a7ddeb2d2 100644 --- a/src/mame/trs/dgnalpha.cpp +++ b/src/mame/trs/dgnalpha.cpp @@ -122,7 +122,7 @@ class dragon_alpha_state : public dragon64_state void fdc_intrq_w(int state); void fdc_drq_w(int state); - void dgnalpha_io1(address_map &map); + void dgnalpha_io1(address_map &map) ATTR_COLD; required_device m_pia_2; required_device m_ay8912; diff --git a/src/mame/trs/dragon.h b/src/mame/trs/dragon.h index a502f059dc6..8616d7addfd 100644 --- a/src/mame/trs/dragon.h +++ b/src/mame/trs/dragon.h @@ -47,7 +47,7 @@ class dragon_state : public coco12_state void dragon_base(machine_config &config); void dragon32(machine_config &config); - void dragon_mem(address_map &map); + void dragon_mem(address_map &map) ATTR_COLD; protected: virtual void pia1_pa_changed(uint8_t data) override; @@ -76,12 +76,12 @@ class dragon64_state : public dragon_state void dragon64h(machine_config &config); protected: - void d64_rom0(address_map &map); - void d64_rom1(address_map &map); - void d64_io0(address_map &map); + void d64_rom0(address_map &map) ATTR_COLD; + void d64_rom1(address_map &map) ATTR_COLD; + void d64_io0(address_map &map) ATTR_COLD; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; virtual void pia1_pb_changed(uint8_t data) override; void page_rom(bool romswitch); @@ -135,8 +135,8 @@ class d64plus_state : public dragon64_state void d64plus(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_crtc; diff --git a/src/mame/trs/gime.h b/src/mame/trs/gime.h index 016ea52a334..76286aa6252 100644 --- a/src/mame/trs/gime.h +++ b/src/mame/trs/gime.h @@ -64,11 +64,11 @@ class gime_device : public mc6847_friend_device, public sam6883_friend_device_in gime_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, const uint8_t *fontdata, bool pal); // 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 device_pre_save() override; virtual void device_post_load() override; - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; // other overrides virtual void new_frame() override; diff --git a/src/mame/trs/lnw80.cpp b/src/mame/trs/lnw80.cpp index 747c77fce67..78aae2322c5 100644 --- a/src/mame/trs/lnw80.cpp +++ b/src/mame/trs/lnw80.cpp @@ -97,8 +97,8 @@ class lnw80_state : public trs80_state void lnw80(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: static void floppy_formats(format_registration &fr); @@ -107,8 +107,8 @@ class lnw80_state : public trs80_state void lnw80_palette(palette_device &palette) const; u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void lnw80_io(address_map &map); - void lnw80_mem(address_map &map); + void lnw80_io(address_map &map) ATTR_COLD; + void lnw80_mem(address_map &map) ATTR_COLD; u8 m_lnw_mode = 0U; required_shared_ptr m_p_gfxram; diff --git a/src/mame/trs/max80.cpp b/src/mame/trs/max80.cpp index eb26af64978..525ec2cefea 100644 --- a/src/mame/trs/max80.cpp +++ b/src/mame/trs/max80.cpp @@ -113,8 +113,8 @@ class max80_state : public driver_device void max80(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: static void floppy_formats(format_registration &fr); @@ -132,7 +132,7 @@ class max80_state : public driver_device MC6845_UPDATE_ROW(crtc_update_row); TIMER_DEVICE_CALLBACK_MEMBER(beep_timer); - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; u8 m_size_store = 0U; bool m_fdc_drq = 0; diff --git a/src/mame/trs/mc10.cpp b/src/mame/trs/mc10.cpp index cee6a8d3a5b..4089f85c18d 100644 --- a/src/mame/trs/mc10.cpp +++ b/src/mame/trs/mc10.cpp @@ -79,7 +79,7 @@ class mc10_state : public driver_device mc10cart_slot_device &mc10cart() { return *m_mc10cart; } private: - void mc10_mem(address_map &map); + void mc10_mem(address_map &map) ATTR_COLD; optional_device m_mc6847; required_device m_dac; @@ -109,8 +109,8 @@ class alice32_state : public mc10_state required_device m_ef9345; private: - void alice32_mem(address_map &map); - void alice90_mem(address_map &map); + void alice32_mem(address_map &map) ATTR_COLD; + void alice90_mem(address_map &map) ATTR_COLD; }; /*************************************************************************** diff --git a/src/mame/trs/meritum.cpp b/src/mame/trs/meritum.cpp index b55c4725172..eaf35e08b79 100644 --- a/src/mame/trs/meritum.cpp +++ b/src/mame/trs/meritum.cpp @@ -92,10 +92,10 @@ class meritum_state : public trs80_state u32 screen_update_meritum1(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); u32 screen_update_meritum2(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void mem_map(address_map &map); - void io_map(address_map &map); - void mem_map2(address_map &map); - void io_map2(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; + void mem_map2(address_map &map) ATTR_COLD; + void io_map2(address_map &map) ATTR_COLD; void mainppi_portb_w(u8); void mainppi_portc_w(u8); diff --git a/src/mame/trs/radionic.cpp b/src/mame/trs/radionic.cpp index 83d0f38960d..c81676fac92 100644 --- a/src/mame/trs/radionic.cpp +++ b/src/mame/trs/radionic.cpp @@ -143,8 +143,8 @@ class radionic_state : public trs80_state u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); std::unique_ptr m_vram; // video ram std::unique_ptr m_cram; // colour ram - void machine_start() override; - void machine_reset() override; + void machine_start() override ATTR_COLD; + void machine_reset() override ATTR_COLD; void cctrl_w(offs_t offset, u8 data); void video_w(offs_t offset, u8 data); u8 video_r(offs_t offset); @@ -152,7 +152,7 @@ class radionic_state : public trs80_state void ppi_pb_w(offs_t offset, u8 data); void ppi_pc_w(offs_t offset, u8 data); u8 ppi_pc_r(offs_t offset); - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; static void floppy_formats(format_registration &fr); u8 m_cctrl = 2; required_device m_ppi; diff --git a/src/mame/trs/tandy2k.cpp b/src/mame/trs/tandy2k.cpp index a593452f024..d2cf2eb58a7 100644 --- a/src/mame/trs/tandy2k.cpp +++ b/src/mame/trs/tandy2k.cpp @@ -459,7 +459,7 @@ class tandy2kb_hle_device : public pc_keyboard_device tandy2kb_hle_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 0); protected: - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; }; DEFINE_DEVICE_TYPE(TANDY2K_HLE_KEYB, tandy2kb_hle_device, "tandy2kb_hle", "Tandy 2000 Keyboard HLE") diff --git a/src/mame/trs/tandy2k.h b/src/mame/trs/tandy2k.h index 63a14d6335c..59f02758687 100644 --- a/src/mame/trs/tandy2k.h +++ b/src/mame/trs/tandy2k.h @@ -116,15 +116,15 @@ class tandy2k_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(input_changed); private: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; virtual void device_reset_after_children() override; - void tandy2k_mem(address_map &map); - void tandy2k_io(address_map &map); - void tandy2k_hd_io(address_map &map); - void vpac_mem(address_map &map); - void vrambank_mem(address_map &map); + void tandy2k_mem(address_map &map) ATTR_COLD; + void tandy2k_io(address_map &map) ATTR_COLD; + void tandy2k_hd_io(address_map &map) ATTR_COLD; + void vpac_mem(address_map &map) ATTR_COLD; + void vrambank_mem(address_map &map) ATTR_COLD; TIMER_CALLBACK_MEMBER(update_mouse); TIMER_CALLBACK_MEMBER(mcu_delay_cb); diff --git a/src/mame/trs/tandy2kb.h b/src/mame/trs/tandy2kb.h index 04f7a74c376..95349b21d4f 100644 --- a/src/mame/trs/tandy2kb.h +++ b/src/mame/trs/tandy2kb.h @@ -44,12 +44,12 @@ class tandy2k_keyboard_device : public device_t 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; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; private: enum diff --git a/src/mame/trs/trs80.h b/src/mame/trs/trs80.h index 3d34b2d8901..61df42b5957 100644 --- a/src/mame/trs/trs80.h +++ b/src/mame/trs/trs80.h @@ -57,8 +57,8 @@ class trs80_state : public driver_device void init_trs80l2(); protected: - void machine_start() override; - void machine_reset() override; + void machine_start() override ATTR_COLD; + void machine_reset() override ATTR_COLD; void port_ff_w(u8 data); void sys80_fe_w(u8 data); @@ -94,7 +94,7 @@ class trs80_state : public driver_device u8 m_cols = 0xffU; bool m_7bit = false; u16 m_timeout = 600U; - void trs80_io(address_map &map); + void trs80_io(address_map &map) ATTR_COLD; floppy_image_device *m_fdd; required_device m_maincpu; required_memory_region m_region_maincpu; @@ -114,11 +114,11 @@ class trs80_state : public driver_device required_ioport_array<8> m_io_keyboard; private: - void m1_io(address_map &map); - void m1_mem(address_map &map); - void sys80_io(address_map &map); - void trs80_mem(address_map &map); - void ht1080z_io(address_map &map); + void m1_io(address_map &map) ATTR_COLD; + void m1_mem(address_map &map) ATTR_COLD; + void sys80_io(address_map &map) ATTR_COLD; + void trs80_mem(address_map &map) ATTR_COLD; + void ht1080z_io(address_map &map) ATTR_COLD; u32 screen_update_trs80(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); u32 screen_update_sys80(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); diff --git a/src/mame/trs/trs80dt1.cpp b/src/mame/trs/trs80dt1.cpp index dbb26aa5f69..d23f9413823 100644 --- a/src/mame/trs/trs80dt1.cpp +++ b/src/mame/trs/trs80dt1.cpp @@ -78,13 +78,13 @@ class trs80dt1_state : public driver_device void rx_w(int state); I8275_DRAW_CHARACTER_MEMBER(crtc_update_row); - void io_map(address_map &map); - void prg_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void prg_map(address_map &map) ATTR_COLD; bool m_bow = false; bool m_cent_busy = false; - virtual void machine_reset() override; - virtual void machine_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; required_shared_ptr m_p_videoram; required_region_ptr m_p_chargen; required_device m_maincpu; diff --git a/src/mame/trs/trs80m2.h b/src/mame/trs/trs80m2.h index f586b59d813..475f93901e3 100644 --- a/src/mame/trs/trs80m2.h +++ b/src/mame/trs/trs80m2.h @@ -94,14 +94,14 @@ class trs80m2_state : public driver_device void write_centronics_perror(int state); void trs80m2(machine_config &config); - void m68000_mem(address_map &map); - void z80_io(address_map &map); - void z80_mem(address_map &map); + void m68000_mem(address_map &map) ATTR_COLD; + void z80_io(address_map &map) ATTR_COLD; + void z80_mem(address_map &map) ATTR_COLD; protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; required_device m_maincpu; required_device m_ctc; @@ -161,9 +161,9 @@ class trs80m16_state : public trs80m2_state void tcl_w(uint8_t data); void trs80m16(machine_config &config); - void m16_z80_io(address_map &map); + void m16_z80_io(address_map &map) ATTR_COLD; protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; required_device m_subcpu; required_device m_uic; diff --git a/src/mame/trs/trs80m2kb.h b/src/mame/trs/trs80m2kb.h index a1b26fe1a92..b6dc563c6e3 100644 --- a/src/mame/trs/trs80m2kb.h +++ b/src/mame/trs/trs80m2kb.h @@ -42,12 +42,12 @@ class trs80m2_keyboard_device : public device_t 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; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; private: enum diff --git a/src/mame/trs/trs80m3.h b/src/mame/trs/trs80m3.h index 92c8c044b87..6348f2010c2 100644 --- a/src/mame/trs/trs80m3.h +++ b/src/mame/trs/trs80m3.h @@ -63,8 +63,8 @@ class trs80m3_state : public driver_device void init_trs80m4p(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: static void floppy_formats(format_registration &fr); @@ -98,15 +98,15 @@ class trs80m3_state : public driver_device void drq_w(int state); uint32_t screen_update_trs80m3(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void cp500_io(address_map &map); - void m3_io(address_map &map); - void m3_mem(address_map &map); - void m4_mem(address_map &map); - void m4p_mem(address_map &map); - void m4_io(address_map &map); - void m4p_io(address_map &map); - void m4_banked_mem(address_map &map); - void m4p_banked_mem(address_map &map); + void cp500_io(address_map &map) ATTR_COLD; + void m3_io(address_map &map) ATTR_COLD; + void m3_mem(address_map &map) ATTR_COLD; + void m4_mem(address_map &map) ATTR_COLD; + void m4p_mem(address_map &map) ATTR_COLD; + void m4_io(address_map &map) ATTR_COLD; + void m4p_io(address_map &map) ATTR_COLD; + void m4_banked_mem(address_map &map) ATTR_COLD; + void m4p_banked_mem(address_map &map) ATTR_COLD; uint8_t m_model4 = 0U; uint8_t m_mode = 0U; diff --git a/src/mame/trs/vis.cpp b/src/mame/trs/vis.cpp index 50e537145a5..08e0f4f3fcf 100644 --- a/src/mame/trs/vis.cpp +++ b/src/mame/trs/vis.cpp @@ -25,10 +25,10 @@ class vis_audio_device : public device_t, uint8_t pcm_r(offs_t offset); void pcm_w(offs_t offset, uint8_t data); protected: - 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 dack16_w(int line, uint16_t data) override; - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; TIMER_CALLBACK_MEMBER(pcm_update); @@ -241,18 +241,18 @@ class vis_vga_device : public svga_device, uint8_t visvgamem_r(offs_t offset); void visvgamem_w(offs_t offset, uint8_t data); protected: - 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; virtual void recompute_params() override; - virtual void io_3cx_map(address_map &map) override; + virtual void io_3cx_map(address_map &map) override ATTR_COLD; - virtual void crtc_map(address_map &map) override; - virtual void gc_map(address_map &map) override; - virtual void sequencer_map(address_map &map) override; + virtual void crtc_map(address_map &map) override ATTR_COLD; + virtual void gc_map(address_map &map) override ATTR_COLD; + virtual void sequencer_map(address_map &map) override ATTR_COLD; - void io_isa_map(address_map &map); + void io_isa_map(address_map &map) ATTR_COLD; private: u8 ramdac_hidden_mask_r(offs_t offset); void ramdac_hidden_mask_w(offs_t offset, u8 data); @@ -862,10 +862,10 @@ class vis_state : public driver_device void pad_w(offs_t offset, uint16_t data); uint8_t unk1_r(offs_t offset); void unk1_w(offs_t offset, uint8_t data); - void io_map(address_map &map); - void main_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; - void machine_reset() override; + void machine_reset() override ATTR_COLD; uint8_t m_sysctl; uint8_t m_unkidx; diff --git a/src/mame/tryom/chess.cpp b/src/mame/tryom/chess.cpp index a196b6a9d95..4cbebd2c62d 100644 --- a/src/mame/tryom/chess.cpp +++ b/src/mame/tryom/chess.cpp @@ -51,7 +51,7 @@ class chess_state : public driver_device void tchess(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: // devices/pointers @@ -67,8 +67,8 @@ class chess_state : public driver_device u8 m_inp_mux = 0; u8 m_digit_data = 0; - void main_map(address_map &map); - void main_io(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void main_io(address_map &map) ATTR_COLD; u8 read_inputs(); void p0_w(u8 data); diff --git a/src/mame/tryom/gammonm.cpp b/src/mame/tryom/gammonm.cpp index 532c290ecf1..52798c08226 100644 --- a/src/mame/tryom/gammonm.cpp +++ b/src/mame/tryom/gammonm.cpp @@ -57,7 +57,7 @@ class gammonm_state : public driver_device required_device m_display; required_ioport_array<6> m_inputs; - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; void led_w(offs_t offset, u8 data); void digit_w(offs_t offset, u8 data); diff --git a/src/mame/tryom/omar.cpp b/src/mame/tryom/omar.cpp index 2683409d597..243f3b7f929 100644 --- a/src/mame/tryom/omar.cpp +++ b/src/mame/tryom/omar.cpp @@ -60,7 +60,7 @@ class omar_state : public driver_device void omar1(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; protected: // devices/pointers @@ -72,8 +72,8 @@ class omar_state : public driver_device u8 m_inp_mux = 0; - void main_map(address_map &map); - void main_io(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void main_io(address_map &map) ATTR_COLD; void input1_w(u8 data); void input2_w(u8 data); @@ -103,7 +103,7 @@ class omar2_state : public omar_state void omar2(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: u8 m_lcd_com = 0; diff --git a/src/mame/tvgames/actions_atj2279b.cpp b/src/mame/tvgames/actions_atj2279b.cpp index 9d63f7d2b4b..b3de68551ac 100644 --- a/src/mame/tvgames/actions_atj2279b.cpp +++ b/src/mame/tvgames/actions_atj2279b.cpp @@ -45,13 +45,13 @@ class actions_atj2279b_state : public driver_device void actions_atj2279b(machine_config &config); private: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void atj2279b_map(address_map &map); + void atj2279b_map(address_map &map) ATTR_COLD; required_device m_maincpu; }; diff --git a/src/mame/tvgames/bl_handhelds_lcdc.h b/src/mame/tvgames/bl_handhelds_lcdc.h index 8089e0a5d3a..982dd3697e5 100644 --- a/src/mame/tvgames/bl_handhelds_lcdc.h +++ b/src/mame/tvgames/bl_handhelds_lcdc.h @@ -21,8 +21,8 @@ class bl_handhelds_lcdc_device : public device_t u32 render_to_bitmap(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: u8 m_displaybuffer[256 * 256 * 2]{}; diff --git a/src/mame/tvgames/elan_ep3a19a.cpp b/src/mame/tvgames/elan_ep3a19a.cpp index 0337f0d0dbe..4ad8aa8b973 100644 --- a/src/mame/tvgames/elan_ep3a19a.cpp +++ b/src/mame/tvgames/elan_ep3a19a.cpp @@ -46,8 +46,8 @@ class elan_ep3a19a_state : public driver_device protected: // driver_device overrides - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; required_device m_sys; required_device m_gpio; @@ -64,10 +64,10 @@ class elan_ep3a19a_state : public driver_device // for callback uint8_t read_full_space(offs_t offset); - void elan_ep3a19a_bank_map(address_map &map); - void elan_ep3a19a_map(address_map &map); + void elan_ep3a19a_bank_map(address_map &map) ATTR_COLD; + void elan_ep3a19a_map(address_map &map) ATTR_COLD; - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; required_shared_ptr m_ram; required_device m_sound; diff --git a/src/mame/tvgames/elan_ep3a19asys.h b/src/mame/tvgames/elan_ep3a19asys.h index 238ab91db65..99c9c165ec0 100644 --- a/src/mame/tvgames/elan_ep3a19asys.h +++ b/src/mame/tvgames/elan_ep3a19asys.h @@ -17,12 +17,12 @@ class elan_ep3a19asys_device : public elan_eu3a05commonsys_device, public device uint8_t dma_param_r(offs_t offset); void dma_param_w(offs_t offset, uint8_t data); - virtual void map(address_map& map) override; + virtual void map(address_map &map) override ATTR_COLD; 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 space_config_vector memory_space_config() const override; void rombank_w(offs_t offset, uint8_t data); diff --git a/src/mame/tvgames/elan_eu3a05.cpp b/src/mame/tvgames/elan_eu3a05.cpp index c8f8f0f6a40..dcff115046f 100644 --- a/src/mame/tvgames/elan_eu3a05.cpp +++ b/src/mame/tvgames/elan_eu3a05.cpp @@ -256,8 +256,8 @@ class elan_eu3a05_state : public driver_device protected: // driver_device overrides - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; required_device m_sys; required_device m_gpio; @@ -274,12 +274,12 @@ class elan_eu3a05_state : public driver_device // for callback uint8_t read_full_space(offs_t offset); - void elan_eu3a05_bank_map(address_map &map); - void elan_eu3a05_map(address_map &map); - void elan_sudoku_map(address_map &map); + void elan_eu3a05_bank_map(address_map &map) ATTR_COLD; + void elan_eu3a05_map(address_map &map) ATTR_COLD; + void elan_sudoku_map(address_map &map) ATTR_COLD; - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; required_shared_ptr m_ram; required_device m_sound; @@ -308,7 +308,7 @@ class elan_eu3a05_buzztime_state : public elan_eu3a05_state void elan_buzztime(machine_config& config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: //uint8_t random_r() { return machine().rand(); } diff --git a/src/mame/tvgames/elan_eu3a05_a.h b/src/mame/tvgames/elan_eu3a05_a.h index 4bdee96f01e..13e8bfc86ec 100644 --- a/src/mame/tvgames/elan_eu3a05_a.h +++ b/src/mame/tvgames/elan_eu3a05_a.h @@ -21,13 +21,13 @@ class elan_eu3a05_sound_device : public device_t, public device_sound_interface, template auto sound_end_cb() { return m_sound_end_cb[N].bind(); } - void map(address_map& map); + void map(address_map &map) ATTR_COLD; 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; // sound stream update overrides virtual void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; diff --git a/src/mame/tvgames/elan_eu3a05commonsys.h b/src/mame/tvgames/elan_eu3a05commonsys.h index 74702c850ae..089b77c49ff 100644 --- a/src/mame/tvgames/elan_eu3a05commonsys.h +++ b/src/mame/tvgames/elan_eu3a05commonsys.h @@ -20,7 +20,7 @@ class elan_eu3a05commonsys_device : public device_t void generate_custom_interrupt(int level); - virtual void map(address_map& map); + virtual void map(address_map &map) ATTR_COLD; uint8_t nmi_vector_r(offs_t offset); uint8_t irq_vector_r(offs_t offset); @@ -29,8 +29,8 @@ class elan_eu3a05commonsys_device : public device_t 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; TIMER_CALLBACK_MEMBER(unknown_timer_tick); diff --git a/src/mame/tvgames/elan_eu3a05commonvid.h b/src/mame/tvgames/elan_eu3a05commonvid.h index ec110ac8d9b..8e9f30d2377 100644 --- a/src/mame/tvgames/elan_eu3a05commonvid.h +++ b/src/mame/tvgames/elan_eu3a05commonvid.h @@ -20,8 +20,8 @@ class elan_eu3a05commonvid_device : public device_t 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; private: required_device m_palette; diff --git a/src/mame/tvgames/elan_eu3a05gpio.h b/src/mame/tvgames/elan_eu3a05gpio.h index bcdc62f0679..60a7e1c2734 100644 --- a/src/mame/tvgames/elan_eu3a05gpio.h +++ b/src/mame/tvgames/elan_eu3a05gpio.h @@ -24,8 +24,8 @@ class elan_eu3a05gpio_device : public device_t 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; private: devcb_write8 m_write_0_callback; diff --git a/src/mame/tvgames/elan_eu3a05sys.h b/src/mame/tvgames/elan_eu3a05sys.h index 42099cb2f96..54073bac65e 100644 --- a/src/mame/tvgames/elan_eu3a05sys.h +++ b/src/mame/tvgames/elan_eu3a05sys.h @@ -17,12 +17,12 @@ class elan_eu3a05sys_device : public elan_eu3a05commonsys_device, public device_ uint8_t dma_param_r(offs_t offset); void dma_param_w(offs_t offset, uint8_t data); - virtual void map(address_map& map) override; + virtual void map(address_map &map) override ATTR_COLD; 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 space_config_vector memory_space_config() const override; private: diff --git a/src/mame/tvgames/elan_eu3a05vid.h b/src/mame/tvgames/elan_eu3a05vid.h index 736cd8490e7..41008832093 100644 --- a/src/mame/tvgames/elan_eu3a05vid.h +++ b/src/mame/tvgames/elan_eu3a05vid.h @@ -17,7 +17,7 @@ class elan_eu3a05vid_device : public elan_eu3a05commonvid_device, public device_ template void set_cpu(T &&tag) { m_cpu.set_tag(std::forward(tag)); } template void set_addrbank(T &&tag) { m_bank.set_tag(std::forward(tag)); } - void map(address_map& map); + void map(address_map &map) ATTR_COLD; uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); @@ -28,8 +28,8 @@ class elan_eu3a05vid_device : public elan_eu3a05commonvid_device, public device_ 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 space_config_vector memory_space_config() const override; private: diff --git a/src/mame/tvgames/elan_eu3a14.cpp b/src/mame/tvgames/elan_eu3a14.cpp index fc77864a688..a5ebe068587 100644 --- a/src/mame/tvgames/elan_eu3a14.cpp +++ b/src/mame/tvgames/elan_eu3a14.cpp @@ -126,14 +126,14 @@ class elan_eu3a14_state : public driver_device // for callback uint8_t read_full_space(offs_t offset); - void bank_map(address_map &map); - void radica_eu3a14_map(address_map &map); + void bank_map(address_map &map) ATTR_COLD; + void radica_eu3a14_map(address_map &map) ATTR_COLD; // driver_device overrides - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; required_device m_maincpu; required_device m_sys; diff --git a/src/mame/tvgames/elan_eu3a14sys.h b/src/mame/tvgames/elan_eu3a14sys.h index 7cbba058557..023e064ab2b 100644 --- a/src/mame/tvgames/elan_eu3a14sys.h +++ b/src/mame/tvgames/elan_eu3a14sys.h @@ -17,12 +17,12 @@ class elan_eu3a14sys_device : public elan_eu3a05commonsys_device, public device_ uint8_t dma_param_r(offs_t offset); void dma_param_w(offs_t offset, uint8_t data); - virtual void map(address_map& map) override; + virtual void map(address_map &map) override ATTR_COLD; 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 space_config_vector memory_space_config() const override; private: diff --git a/src/mame/tvgames/elan_eu3a14vid.h b/src/mame/tvgames/elan_eu3a14vid.h index 7769df85a2d..59fd728714c 100644 --- a/src/mame/tvgames/elan_eu3a14vid.h +++ b/src/mame/tvgames/elan_eu3a14vid.h @@ -18,7 +18,7 @@ class elan_eu3a14vid_device : public elan_eu3a05commonvid_device, public device_ template void set_addrbank(T &&tag) { m_bank.set_tag(std::forward(tag)); } template void set_screen(T &&tag) { m_screen.set_tag(std::forward(tag)); } - void map(address_map& map); + void map(address_map &map) ATTR_COLD; void set_tilerambase(int tilerambase) { m_tilerambase = tilerambase; } @@ -28,8 +28,8 @@ class elan_eu3a14vid_device : public elan_eu3a05commonvid_device, public device_ 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 space_config_vector memory_space_config() const override; private: diff --git a/src/mame/tvgames/generalplus_gpl16250.h b/src/mame/tvgames/generalplus_gpl16250.h index f43c61475b5..7c7607fa5cb 100644 --- a/src/mame/tvgames/generalplus_gpl16250.h +++ b/src/mame/tvgames/generalplus_gpl16250.h @@ -30,7 +30,7 @@ class gcm394_game_state : public driver_device void base(machine_config &config); - void cs_map_base(address_map &map); + void cs_map_base(address_map &map) ATTR_COLD; virtual uint16_t cs0_r(offs_t offset); virtual void cs0_w(offs_t offset, uint16_t data); @@ -46,8 +46,8 @@ class gcm394_game_state : public driver_device void cs_callback(uint16_t cs0, uint16_t cs1, uint16_t cs2, uint16_t cs3, uint16_t cs4); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; required_device m_maincpu; @@ -86,7 +86,7 @@ class tkmag220_game_state : public gcm394_game_state protected: - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; private: int m_upperbase = 0; @@ -108,7 +108,7 @@ class gormiti_game_state : public gcm394_game_state protected: - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; private: }; @@ -125,7 +125,7 @@ class beijuehh_game_state : public gcm394_game_state protected: - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; private: int m_upperbase = 0; diff --git a/src/mame/tvgames/generalplus_gpl16250_m.h b/src/mame/tvgames/generalplus_gpl16250_m.h index 3c482f5bb9e..f9d61d0b1b7 100644 --- a/src/mame/tvgames/generalplus_gpl16250_m.h +++ b/src/mame/tvgames/generalplus_gpl16250_m.h @@ -22,7 +22,7 @@ class full_memory_device : address_space* get_program() { return m_program; } protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void device_config_complete() override; // device_memory_interface overrides diff --git a/src/mame/tvgames/generalplus_gpl16250_nand.h b/src/mame/tvgames/generalplus_gpl16250_nand.h index bd9d93ff137..262441ffb61 100644 --- a/src/mame/tvgames/generalplus_gpl16250_nand.h +++ b/src/mame/tvgames/generalplus_gpl16250_nand.h @@ -38,8 +38,8 @@ class generalplus_gpac800_game_state : public gcm394_game_state void nand_kiugames(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; uint8_t read_nand(offs_t offset); std::vector m_sdram; diff --git a/src/mame/tvgames/generalplus_gpl16250_romram.h b/src/mame/tvgames/generalplus_gpl16250_romram.h index 428275f6ee1..48df09c2dbc 100644 --- a/src/mame/tvgames/generalplus_gpl16250_romram.h +++ b/src/mame/tvgames/generalplus_gpl16250_romram.h @@ -29,8 +29,8 @@ class wrlshunt_game_state : public gcm394_game_state void init_ths(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; std::vector m_sdram; @@ -59,8 +59,8 @@ class jak_s500_game_state : public wrlshunt_game_state } protected: - //virtual void machine_start() override; - virtual void machine_reset() override; + //virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; virtual uint16_t porta_r() override; virtual uint16_t portb_r() override; @@ -77,8 +77,8 @@ class lazertag_game_state : public jak_s500_game_state } protected: - //virtual void machine_start() override; - virtual void machine_reset() override; + //virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: }; @@ -93,7 +93,7 @@ class paccon_game_state : public jak_s500_game_state } protected: - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; private: uint16_t paccon_speedup_hack_r(); @@ -108,7 +108,7 @@ class jak_pf_game_state : public jak_s500_game_state } protected: - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; private: uint16_t jak_pf_speedup_hack_r(); @@ -126,7 +126,7 @@ class jak_prft_game_state : public jak_s500_game_state protected: - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; private: }; diff --git a/src/mame/tvgames/generalplus_gpl16250_spi.cpp b/src/mame/tvgames/generalplus_gpl16250_spi.cpp index 85ad2e5beed..9c3785e7947 100644 --- a/src/mame/tvgames/generalplus_gpl16250_spi.cpp +++ b/src/mame/tvgames/generalplus_gpl16250_spi.cpp @@ -27,8 +27,8 @@ class generalplus_gpspispi_game_state : public gcm394_game_state void init_spi(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: }; diff --git a/src/mame/tvgames/generalplus_gpl16250_spi_direct.cpp b/src/mame/tvgames/generalplus_gpl16250_spi_direct.cpp index 796e294b1cb..00b8c13b12d 100644 --- a/src/mame/tvgames/generalplus_gpl16250_spi_direct.cpp +++ b/src/mame/tvgames/generalplus_gpl16250_spi_direct.cpp @@ -30,8 +30,8 @@ class generalplus_gpspi_direct_game_state : public gcm394_game_state void generalplus_gpspi_direct(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; virtual uint16_t cs0_r(offs_t offset) override; diff --git a/src/mame/tvgames/generalplus_gpl162xx_lcdtype.cpp b/src/mame/tvgames/generalplus_gpl162xx_lcdtype.cpp index 570ed7a518d..6d9cb145e5d 100644 --- a/src/mame/tvgames/generalplus_gpl162xx_lcdtype.cpp +++ b/src/mame/tvgames/generalplus_gpl162xx_lcdtype.cpp @@ -60,8 +60,8 @@ class gpl162xx_lcdtype_state : public driver_device void gpl162xx_lcdtype(machine_config &config); private: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); @@ -72,7 +72,7 @@ class gpl162xx_lcdtype_state : public driver_device required_device m_palette; required_device m_screen; - void map(address_map &map); + void map(address_map &map) ATTR_COLD; required_region_ptr m_spirom; diff --git a/src/mame/tvgames/generalplus_gpl32612.cpp b/src/mame/tvgames/generalplus_gpl32612.cpp index af190c1e141..0e2b622a735 100644 --- a/src/mame/tvgames/generalplus_gpl32612.cpp +++ b/src/mame/tvgames/generalplus_gpl32612.cpp @@ -47,10 +47,10 @@ class generalplus_gpl32612_game_state : public driver_device void nand_init840(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; - void arm_map(address_map &map); + void arm_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_screen; @@ -84,7 +84,7 @@ class generalplus_zippity_game_state : public generalplus_gpl32612_game_state void zippity(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; DECLARE_DEVICE_IMAGE_LOAD_MEMBER(cart_load); diff --git a/src/mame/tvgames/generalplus_gpl_unknown.cpp b/src/mame/tvgames/generalplus_gpl_unknown.cpp index 6b435606d64..cf5971bc536 100644 --- a/src/mame/tvgames/generalplus_gpl_unknown.cpp +++ b/src/mame/tvgames/generalplus_gpl_unknown.cpp @@ -53,8 +53,8 @@ class generalplus_gpl_unknown_state : public driver_device void generalplus_gpl_unknown(machine_config &config); private: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); @@ -119,7 +119,7 @@ class generalplus_gpl_unknown_state : public driver_device uint16_t m_3005; uint16_t m_3050; - void map(address_map &map); + void map(address_map &map) ATTR_COLD; }; uint32_t generalplus_gpl_unknown_state::screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect) diff --git a/src/mame/tvgames/gpm4530a_lexibook_jg7420.cpp b/src/mame/tvgames/gpm4530a_lexibook_jg7420.cpp index fee77505602..fc6064b82af 100644 --- a/src/mame/tvgames/gpm4530a_lexibook_jg7420.cpp +++ b/src/mame/tvgames/gpm4530a_lexibook_jg7420.cpp @@ -26,10 +26,10 @@ class gpm4530a_lexibook_state : public driver_device void gpm4530a_lexibook(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; - void arm_map(address_map &map); + void arm_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_screen; diff --git a/src/mame/tvgames/hyperscan_card.h b/src/mame/tvgames/hyperscan_card.h index 820f4bfcf43..bce21476fcc 100644 --- a/src/mame/tvgames/hyperscan_card.h +++ b/src/mame/tvgames/hyperscan_card.h @@ -19,8 +19,8 @@ class hyperscan_card_device : public device_t, void write(int state); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; // device_image_interface implementation virtual std::pair call_load() override; diff --git a/src/mame/tvgames/hyperscan_ctrl.h b/src/mame/tvgames/hyperscan_ctrl.h index 4c54c870d67..f19cbb5d167 100644 --- a/src/mame/tvgames/hyperscan_ctrl.h +++ b/src/mame/tvgames/hyperscan_ctrl.h @@ -15,11 +15,11 @@ class hyperscan_ctrl_device : public device_t uint16_t read(offs_t offset); protected: - 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 ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; private: required_ioport_array<4> m_inputs; diff --git a/src/mame/tvgames/magiceyes_pollux_vr3520f.cpp b/src/mame/tvgames/magiceyes_pollux_vr3520f.cpp index 6b6df2f1a4f..e888ecf87b5 100644 --- a/src/mame/tvgames/magiceyes_pollux_vr3520f.cpp +++ b/src/mame/tvgames/magiceyes_pollux_vr3520f.cpp @@ -44,14 +44,14 @@ class magiceyes_vr3520f_game_state : public driver_device void leapfrog_didj(machine_config &config); private: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); DECLARE_DEVICE_IMAGE_LOAD_MEMBER(cart_load); - void didj_arm9_map(address_map &map); + void didj_arm9_map(address_map &map) ATTR_COLD; required_device m_maincpu; optional_device m_cart; diff --git a/src/mame/tvgames/micom_mahjong.cpp b/src/mame/tvgames/micom_mahjong.cpp index a8956c67747..7f2268e9e2c 100644 --- a/src/mame/tvgames/micom_mahjong.cpp +++ b/src/mame/tvgames/micom_mahjong.cpp @@ -53,7 +53,7 @@ class mmahjong_state : public driver_device void mmahjong(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_maincpu; @@ -68,7 +68,7 @@ class mmahjong_state : public driver_device TILE_GET_INFO_MEMBER(get_tile_info) { tileinfo.set(0, m_vram[tile_index], 0, 0); } u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; void vram_w(offs_t offset, u8 data); void input_w(u8 data); diff --git a/src/mame/tvgames/monkey_king_3b.cpp b/src/mame/tvgames/monkey_king_3b.cpp index ca19b80f97c..05a9e238963 100644 --- a/src/mame/tvgames/monkey_king_3b.cpp +++ b/src/mame/tvgames/monkey_king_3b.cpp @@ -93,8 +93,8 @@ class mk3b_soc_state : public driver_device required_device m_maincpu; required_device m_screen; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; uint32_t io4_r(offs_t offset, uint32_t mem_mask = ~0); void io4_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0); @@ -105,7 +105,7 @@ class mk3b_soc_state : public driver_device void io10_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0); uint32_t screen_update_mk3b_soc(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void map(address_map &map); + void map(address_map &map) ATTR_COLD; std::string debug_buf; }; diff --git a/src/mame/tvgames/pubint_storyreader.cpp b/src/mame/tvgames/pubint_storyreader.cpp index 7b42e3acea7..1c55cb87a22 100644 --- a/src/mame/tvgames/pubint_storyreader.cpp +++ b/src/mame/tvgames/pubint_storyreader.cpp @@ -91,8 +91,8 @@ class pi_storyreader_state : public driver_device void pi_storyreader_v2(machine_config &config); private: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; DECLARE_DEVICE_IMAGE_LOAD_MEMBER(cart_load); diff --git a/src/mame/tvgames/spg110.cpp b/src/mame/tvgames/spg110.cpp index da72a10dc58..ee37a86f208 100644 --- a/src/mame/tvgames/spg110.cpp +++ b/src/mame/tvgames/spg110.cpp @@ -53,7 +53,7 @@ class spg110_game_state : public driver_device required_device m_maincpu; required_device m_screen; - virtual void mem_map(address_map &map); + virtual void mem_map(address_map &map) ATTR_COLD; }; class spg110_sstarkar_game_state : public spg110_game_state @@ -68,14 +68,14 @@ class spg110_sstarkar_game_state : public spg110_game_state void sstarkar(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_cart; DECLARE_DEVICE_IMAGE_LOAD_MEMBER(cart_load); optional_memory_bank m_cartrom; - void mem_map_cart(address_map &map); + void mem_map_cart(address_map &map) ATTR_COLD; }; /************************* diff --git a/src/mame/tvgames/spg29x.cpp b/src/mame/tvgames/spg29x.cpp index 494524c5ede..417b9f60dca 100644 --- a/src/mame/tvgames/spg29x.cpp +++ b/src/mame/tvgames/spg29x.cpp @@ -105,19 +105,19 @@ class spg29x_game_state : public driver_device void hyperscan(machine_config &config); protected: - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; required_device m_maincpu; private: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; uint32_t spg290_screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); DECLARE_QUICKLOAD_LOAD_MEMBER(quickload_hyper_exe); - void spg290_mem(address_map &map); - void spg290_bios_mem(address_map &map); + void spg290_mem(address_map &map) ATTR_COLD; + void spg290_bios_mem(address_map &map) ATTR_COLD; void space_byte_w(offs_t offset, uint8_t data) { return m_maincpu->space(AS_PROGRAM).write_byte(offset, data); } uint32_t space_dword_r(offs_t offset) { return m_maincpu->space(AS_PROGRAM).read_dword(offset); } @@ -156,7 +156,7 @@ class spg29x_nand_game_state : public spg29x_game_state void nand_jak_bbsf(); protected: - void machine_reset() override; + void machine_reset() override ATTR_COLD; std::vector m_strippedrom; @@ -174,7 +174,7 @@ class spg29x_zonefamf_game_state : public spg29x_nand_game_state void nand_zonefamf(); protected: - void machine_reset() override; + void machine_reset() override ATTR_COLD; private: }; diff --git a/src/mame/tvgames/spg29x_lexibook_jg7425.cpp b/src/mame/tvgames/spg29x_lexibook_jg7425.cpp index 52849aa93ae..cd35f56cdf9 100644 --- a/src/mame/tvgames/spg29x_lexibook_jg7425.cpp +++ b/src/mame/tvgames/spg29x_lexibook_jg7425.cpp @@ -42,14 +42,14 @@ class lexibook_jg7425_state : public driver_device void lexibook_jg7425(machine_config &config); - void map(address_map& map); + void map(address_map &map) ATTR_COLD; protected: uint32_t screen_update(screen_device& screen, bitmap_rgb32& bitmap, const rectangle& cliprect); private: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; required_device m_maincpu; required_device m_screen; diff --git a/src/mame/tvgames/spg2xx.h b/src/mame/tvgames/spg2xx.h index 11aaf07e874..db01d85e3b2 100644 --- a/src/mame/tvgames/spg2xx.h +++ b/src/mame/tvgames/spg2xx.h @@ -54,8 +54,8 @@ class spg2xx_game_state : public driver_device void init_itvphone(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; void decrypt_ac_ff(uint16_t* ROM, int size); @@ -79,9 +79,9 @@ class spg2xx_game_state : public driver_device optional_memory_bank m_bank; - virtual void mem_map_4m(address_map &map); - virtual void mem_map_2m(address_map &map); - virtual void mem_map_1m(address_map &map); + virtual void mem_map_4m(address_map &map) ATTR_COLD; + virtual void mem_map_2m(address_map &map) ATTR_COLD; + virtual void mem_map_1m(address_map &map) ATTR_COLD; uint32_t m_current_bank; @@ -217,8 +217,8 @@ class spg2xx_game_gssytts_state : public spg2xx_game_state void gssytts(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; virtual void portc_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0) override; @@ -226,7 +226,7 @@ class spg2xx_game_gssytts_state : public spg2xx_game_state private: - void mem_map_upperbank(address_map& map); + void mem_map_upperbank(address_map &map) ATTR_COLD; }; class spg2xx_game_senwfit_state : public spg2xx_game_gssytts_state @@ -288,14 +288,14 @@ class spg2xx_game_wfcentro_state : public spg2xx_game_state void wfcentro(machine_config &config); protected: -// virtual void machine_start() override; -// virtual void machine_reset() override; +// virtual void machine_start() override ATTR_COLD; +// virtual void machine_reset() override ATTR_COLD; // virtual void portc_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0) override; private: - void mem_map_wfcentro(address_map& map); + void mem_map_wfcentro(address_map &map) ATTR_COLD; }; @@ -312,7 +312,7 @@ class spg2xx_game_lexiart_state : public spg2xx_game_state private: - void mem_map_lexiart(address_map& map); + void mem_map_lexiart(address_map &map) ATTR_COLD; }; diff --git a/src/mame/tvgames/spg2xx_digimake.cpp b/src/mame/tvgames/spg2xx_digimake.cpp index 20e751f9a1e..9e28febe580 100644 --- a/src/mame/tvgames/spg2xx_digimake.cpp +++ b/src/mame/tvgames/spg2xx_digimake.cpp @@ -19,7 +19,7 @@ class spg2xx_game_digimake_state : public spg2xx_game_state { } void digimake(machine_config &config); - void mem_map_digi(address_map& map); + void mem_map_digi(address_map &map) ATTR_COLD; private: virtual void portc_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0) override; diff --git a/src/mame/tvgames/spg2xx_ican.cpp b/src/mame/tvgames/spg2xx_ican.cpp index 0e211e90d5c..520851f53ca 100644 --- a/src/mame/tvgames/spg2xx_ican.cpp +++ b/src/mame/tvgames/spg2xx_ican.cpp @@ -27,8 +27,8 @@ class icanguit_state : public spg2xx_game_state void icanguit(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; DECLARE_DEVICE_IMAGE_LOAD_MEMBER(cart_load_icanguit); diff --git a/src/mame/tvgames/spg2xx_jakks.cpp b/src/mame/tvgames/spg2xx_jakks.cpp index e7291c733fb..ac324b34214 100644 --- a/src/mame/tvgames/spg2xx_jakks.cpp +++ b/src/mame/tvgames/spg2xx_jakks.cpp @@ -25,7 +25,7 @@ class jakks_state : public spg2xx_game_state void jakks_mpac(machine_config& config); private: - void mem_map_2m_mkram(address_map& map); + void mem_map_2m_mkram(address_map &map) ATTR_COLD; void portc_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0) override; }; diff --git a/src/mame/tvgames/spg2xx_jakks_gkr.cpp b/src/mame/tvgames/spg2xx_jakks_gkr.cpp index 4fc85b99342..b678b0d2423 100644 --- a/src/mame/tvgames/spg2xx_jakks_gkr.cpp +++ b/src/mame/tvgames/spg2xx_jakks_gkr.cpp @@ -49,7 +49,7 @@ class jakks_gkr_state : public spg2xx_game_state void jakks_portb_w(uint16_t data); private: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; uint16_t joy_x_read(); uint16_t joy_y_read(); diff --git a/src/mame/tvgames/spg2xx_jakks_tvtouch.cpp b/src/mame/tvgames/spg2xx_jakks_tvtouch.cpp index 69707f2bd54..417aa8f5565 100644 --- a/src/mame/tvgames/spg2xx_jakks_tvtouch.cpp +++ b/src/mame/tvgames/spg2xx_jakks_tvtouch.cpp @@ -17,8 +17,8 @@ class jakks_tvtouch_state : public spg2xx_game_state void tvtouch(machine_config &config); private: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; uint16_t porta_r(offs_t offset, uint16_t mem_mask = ~0); uint16_t portb_r(offs_t offset, uint16_t mem_mask = ~0); diff --git a/src/mame/tvgames/spg2xx_lexibook.cpp b/src/mame/tvgames/spg2xx_lexibook.cpp index 497804fb6ea..22e95d05116 100644 --- a/src/mame/tvgames/spg2xx_lexibook.cpp +++ b/src/mame/tvgames/spg2xx_lexibook.cpp @@ -23,8 +23,8 @@ class spg2xx_lexizeus_game_state : public spg2xx_game_state void init_zeus(); protected: - //virtual void machine_start() override; - //virtual void machine_reset() override; + //virtual void machine_start() override ATTR_COLD; + //virtual void machine_reset() override ATTR_COLD; }; @@ -38,8 +38,8 @@ class spg2xx_lexiseal_game_state : public spg2xx_lexizeus_game_state void lexiseal(machine_config& config); protected: - //virtual void machine_start() override; - //virtual void machine_reset() override; + //virtual void machine_start() override ATTR_COLD; + //virtual void machine_reset() override ATTR_COLD; virtual void portb_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0) override; }; @@ -56,8 +56,8 @@ class spg2xx_vsplus_game_state : public spg2xx_lexizeus_game_state void init_vsplus(); protected: - //virtual void machine_start() override; - //virtual void machine_reset() override; + //virtual void machine_start() override ATTR_COLD; + //virtual void machine_reset() override ATTR_COLD; virtual void portb_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0) override; }; diff --git a/src/mame/tvgames/spg2xx_mysprtch.cpp b/src/mame/tvgames/spg2xx_mysprtch.cpp index 60089bc95f8..99d588b2b59 100644 --- a/src/mame/tvgames/spg2xx_mysprtch.cpp +++ b/src/mame/tvgames/spg2xx_mysprtch.cpp @@ -23,11 +23,11 @@ class spg2xx_game_mysprt_plus_state : public spg2xx_game_state void init_mgt20in1(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; virtual void device_post_load() override; - void mem_map_mysprtch(address_map& map); + void mem_map_mysprtch(address_map &map) ATTR_COLD; virtual void porta_w(offs_t offset, uint16_t data, uint16_t mem_mask) override; @@ -50,7 +50,7 @@ class spg2xx_game_mysprt_orig_state : public spg2xx_game_mysprt_plus_state { } protected: - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; virtual void porta_w(offs_t offset, uint16_t data, uint16_t mem_mask) override; private: diff --git a/src/mame/tvgames/spg2xx_pdc.cpp b/src/mame/tvgames/spg2xx_pdc.cpp index 86fb215c653..ed088f473bd 100644 --- a/src/mame/tvgames/spg2xx_pdc.cpp +++ b/src/mame/tvgames/spg2xx_pdc.cpp @@ -23,8 +23,8 @@ class spg2xx_pdc_game_state : public spg2xx_game_state void init_pdc200(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; virtual void porta_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0) override; diff --git a/src/mame/tvgames/spg2xx_playvision.cpp b/src/mame/tvgames/spg2xx_playvision.cpp index f15f85a156b..54426f77345 100644 --- a/src/mame/tvgames/spg2xx_playvision.cpp +++ b/src/mame/tvgames/spg2xx_playvision.cpp @@ -27,7 +27,7 @@ class pvmil_state : public spg2xx_game_state int pvmil_p4buttons_r(); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; virtual void porta_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0) override; virtual void portb_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0) override; diff --git a/src/mame/tvgames/spg2xx_senario.cpp b/src/mame/tvgames/spg2xx_senario.cpp index 9f4003efac6..b1edbdedfee 100644 --- a/src/mame/tvgames/spg2xx_senario.cpp +++ b/src/mame/tvgames/spg2xx_senario.cpp @@ -30,8 +30,8 @@ class spg2xx_senario_state : public spg2xx_game_state { } protected: - //virtual void machine_start() override; - //virtual void machine_reset() override; + //virtual void machine_start() override ATTR_COLD; + //virtual void machine_reset() override ATTR_COLD; private: }; @@ -44,11 +44,11 @@ class spg2xx_senario_bbs_state : public spg2xx_senario_state { } void senbbs(machine_config& config); - void mem_map_flash(address_map &map); + void mem_map_flash(address_map &map) ATTR_COLD; protected: - //virtual void machine_start() override; - //virtual void machine_reset() override; + //virtual void machine_start() override ATTR_COLD; + //virtual void machine_reset() override ATTR_COLD; private: }; @@ -62,11 +62,11 @@ class spg2xx_senario_cosmo_state : public spg2xx_senario_bbs_state { } void sencosmo(machine_config& config); - void mem_map_flash_bypass(address_map& map); + void mem_map_flash_bypass(address_map &map) ATTR_COLD; protected: - //virtual void machine_start() override; - //virtual void machine_reset() override; + //virtual void machine_start() override ATTR_COLD; + //virtual void machine_reset() override ATTR_COLD; uint16_t read_bypass(offs_t offset) { return m_romregion[offset]; } void write_bypass(offs_t offset, uint16_t data) { logerror("Write to ROM area %08x %04x\n", offset, data); } @@ -87,8 +87,8 @@ class spg2xx_senario_mil_state : public spg2xx_senario_bbs_state void senmil(machine_config& config); protected: - //virtual void machine_start() override; - //virtual void machine_reset() override; + //virtual void machine_start() override ATTR_COLD; + //virtual void machine_reset() override ATTR_COLD; uint16_t portc_r(); diff --git a/src/mame/tvgames/spg2xx_senario_poker.cpp b/src/mame/tvgames/spg2xx_senario_poker.cpp index 457c3740e20..15d65f51bc9 100644 --- a/src/mame/tvgames/spg2xx_senario_poker.cpp +++ b/src/mame/tvgames/spg2xx_senario_poker.cpp @@ -48,7 +48,7 @@ class sentx6p_state : public spg2xx_game_state void init_sentx6puk(); void init_sentx6pd(); - void mem_map_2m_texas(address_map &map); + void mem_map_2m_texas(address_map &map) ATTR_COLD; DECLARE_INPUT_CHANGED_MEMBER(ok_latch) { @@ -69,8 +69,8 @@ class sentx6p_state : public spg2xx_game_state } protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: uint16_t sentx_porta_r(); diff --git a/src/mame/tvgames/spg2xx_senca.cpp b/src/mame/tvgames/spg2xx_senca.cpp index a006d561477..0c2135807ce 100644 --- a/src/mame/tvgames/spg2xx_senca.cpp +++ b/src/mame/tvgames/spg2xx_senca.cpp @@ -20,11 +20,11 @@ class zon32bit_state : public spg2xx_game_state void zon32bit(machine_config& config); void zon32bit_bat(machine_config& config); - void mem_map_zon32bit(address_map &map); + void mem_map_zon32bit(address_map &map) ATTR_COLD; protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; virtual void device_post_load() override; uint16_t z32_rom_r(offs_t offset); @@ -73,7 +73,7 @@ class mywicodx_state : public zon32bit_state protected: virtual void porta_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0) override; - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; }; class oplayer_100in1_state : public mywicodx_state @@ -104,7 +104,7 @@ class denver_200in1_state : public mywicodx_state void init_m521neo(); protected: - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; virtual uint16_t porta_r() override; virtual uint16_t portb_r() override; diff --git a/src/mame/tvgames/spg2xx_smarttv.cpp b/src/mame/tvgames/spg2xx_smarttv.cpp index 2f9142d6711..2f9865173f8 100644 --- a/src/mame/tvgames/spg2xx_smarttv.cpp +++ b/src/mame/tvgames/spg2xx_smarttv.cpp @@ -28,8 +28,8 @@ class smarttv_state : public spg2xx_game_state void smarttv(machine_config &config); private: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; DECLARE_DEVICE_IMAGE_LOAD_MEMBER(cart_load_smarttv); diff --git a/src/mame/tvgames/spg2xx_telestory.cpp b/src/mame/tvgames/spg2xx_telestory.cpp index ebcd6c1206c..3e602985b4e 100644 --- a/src/mame/tvgames/spg2xx_telestory.cpp +++ b/src/mame/tvgames/spg2xx_telestory.cpp @@ -23,10 +23,10 @@ class telestory_state : public spg2xx_game_state void telestory(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; - void mem_map_4m_tsram(address_map& map); + void mem_map_4m_tsram(address_map &map) ATTR_COLD; uint16_t porta_r(); uint16_t portb_r(); diff --git a/src/mame/tvgames/spg2xx_tvgogo.cpp b/src/mame/tvgames/spg2xx_tvgogo.cpp index 8290c0d365c..6215ae22b0b 100644 --- a/src/mame/tvgames/spg2xx_tvgogo.cpp +++ b/src/mame/tvgames/spg2xx_tvgogo.cpp @@ -25,8 +25,8 @@ class tvgogo_state : public spg2xx_game_state private: uint8_t m_i2cunk = 0; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; void tvg_i2c_w(offs_t offset, uint8_t data); uint8_t tvg_i2c_r(offs_t offset); diff --git a/src/mame/tvgames/spg2xx_vii.cpp b/src/mame/tvgames/spg2xx_vii.cpp index d9bfeac7134..2bcd68d6fca 100644 --- a/src/mame/tvgames/spg2xx_vii.cpp +++ b/src/mame/tvgames/spg2xx_vii.cpp @@ -27,8 +27,8 @@ class vii_state : public spg2xx_game_state void vii(machine_config &config); private: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; void vii_portb_w(uint16_t data); diff --git a/src/mame/tvgames/spg2xx_wiwi.cpp b/src/mame/tvgames/spg2xx_wiwi.cpp index e15150261df..7edc913f731 100644 --- a/src/mame/tvgames/spg2xx_wiwi.cpp +++ b/src/mame/tvgames/spg2xx_wiwi.cpp @@ -48,8 +48,8 @@ class spg2xx_game_marc101_state : public spg2xx_game_state void marc101(machine_config &config); protected: - void machine_start() override; - void machine_reset() override; + void machine_start() override ATTR_COLD; + void machine_reset() override ATTR_COLD; virtual uint16_t porta_r(); virtual void porta_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0) override; @@ -107,8 +107,8 @@ class spg2xx_game_marc250_state : public spg2xx_game_marc101_state void init_m527(); protected: - void machine_start() override; - void machine_reset() override; + void machine_start() override ATTR_COLD; + void machine_reset() override ATTR_COLD; virtual uint16_t porta_r() override; virtual void porta_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0) override; diff --git a/src/mame/tvgames/spg2xx_zone.cpp b/src/mame/tvgames/spg2xx_zone.cpp index 5e4eb92ca31..4ed547684f0 100644 --- a/src/mame/tvgames/spg2xx_zone.cpp +++ b/src/mame/tvgames/spg2xx_zone.cpp @@ -24,8 +24,8 @@ class wireless60_state : public spg2xx_game_state void init_zone100(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; uint8_t m_w60_controller_input = 0; uint16_t m_w60_porta_data = 0; @@ -56,11 +56,11 @@ class zone40_state : public wireless60_state protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: - virtual void mem_map_z40(address_map &map); + virtual void mem_map_z40(address_map &map) ATTR_COLD; uint16_t z40_rom_r(offs_t offset); uint16_t zone40_porta_r(); void zone40_porta_w(uint16_t data); diff --git a/src/mame/tvgames/st2302u_bbl_rom.cpp b/src/mame/tvgames/st2302u_bbl_rom.cpp index 14786ec5c3c..7f0aa2be1ee 100644 --- a/src/mame/tvgames/st2302u_bbl_rom.cpp +++ b/src/mame/tvgames/st2302u_bbl_rom.cpp @@ -27,7 +27,7 @@ class st22xx_bbl338_state : public driver_device void st22xx_dphh8213(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; required_device m_maincpu; @@ -36,8 +36,8 @@ class st22xx_bbl338_state : public driver_device void portb_w(u8 data); void porta_w(u8 data); - void st22xx_bbl338_map(address_map &map); - void st22xx_dphh8213_map(address_map &map); + void st22xx_bbl338_map(address_map &map) ATTR_COLD; + void st22xx_dphh8213_map(address_map &map) ATTR_COLD; required_device m_screen; required_device m_lcdc; @@ -57,8 +57,8 @@ class st22xx_bbl338_sim_state : public st22xx_bbl338_state } protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: u8 sim152_r(); diff --git a/src/mame/tvgames/st2302u_bbl_spi.cpp b/src/mame/tvgames/st2302u_bbl_spi.cpp index fec017581b5..294d6fb8661 100644 --- a/src/mame/tvgames/st2302u_bbl_spi.cpp +++ b/src/mame/tvgames/st2302u_bbl_spi.cpp @@ -57,12 +57,12 @@ class bbl380_state : public driver_device void bbl380(machine_config &config); private: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; u32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void bbl380_map(address_map &map); + void bbl380_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_screen; diff --git a/src/mame/tvgames/titan_soc.cpp b/src/mame/tvgames/titan_soc.cpp index f6a7629c85a..1a67b5c3e42 100644 --- a/src/mame/tvgames/titan_soc.cpp +++ b/src/mame/tvgames/titan_soc.cpp @@ -85,15 +85,15 @@ class titan_soc_state : public driver_device void init_titan_soc(); protected: - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_shared_ptr m_mainram; required_device m_maincpu; uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void map(address_map &map); + void map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/tvgames/trkfldch.cpp b/src/mame/tvgames/trkfldch.cpp index f49f133a364..79454d58d6a 100644 --- a/src/mame/tvgames/trkfldch.cpp +++ b/src/mame/tvgames/trkfldch.cpp @@ -67,12 +67,12 @@ class trkfldch_state : public driver_device { } void trkfldch(machine_config &config); - void vectors_map(address_map &map); + void vectors_map(address_map &map) ATTR_COLD; protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; virtual uint8_t unkregs_r(offs_t offset); virtual void unkregs_w(offs_t offset, uint8_t data); @@ -92,7 +92,7 @@ class trkfldch_state : public driver_device void render_text_tile_layer(screen_device& screen, bitmap_ind16& bitmap, const rectangle& cliprect, uint16_t base); void render_tile_layer(screen_device& screen, bitmap_ind16& bitmap, const rectangle& cliprect, int which); uint32_t screen_update_trkfldch(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void trkfldch_map(address_map &map); + void trkfldch_map(address_map &map) ATTR_COLD; uint8_t read_vector(offs_t offset); @@ -149,8 +149,8 @@ class trkfldch_lexi_state : public trkfldch_state protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; uint8_t unkregs_r(offs_t offset) override; void unkregs_w(offs_t offset, uint8_t data) override; diff --git a/src/mame/tvgames/tvgame.cpp b/src/mame/tvgames/tvgame.cpp index 272aeba6781..40e58436b74 100644 --- a/src/mame/tvgames/tvgame.cpp +++ b/src/mame/tvgames/tvgame.cpp @@ -35,8 +35,8 @@ class tvgame_state : public driver_device private: void speaker_w(uint8_t data); uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void io_map(address_map &map); - void mem_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_speaker; diff --git a/src/mame/tvgames/xavix.h b/src/mame/tvgames/xavix.h index f838246f717..fe2fc26460d 100644 --- a/src/mame/tvgames/xavix.h +++ b/src/mame/tvgames/xavix.h @@ -44,8 +44,8 @@ class xavix_sound_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; // sound stream update overrides virtual void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; @@ -185,8 +185,8 @@ class xavix_state : public driver_device protected: // driver_device overrides - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; virtual uint8_t read_io0(uint8_t direction); virtual uint8_t read_io1(uint8_t direction); @@ -213,17 +213,17 @@ class xavix_state : public driver_device // screen updates uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void xavix_map(address_map &map); + void xavix_map(address_map &map) ATTR_COLD; - void xavix_lowbus_map(address_map &map); - void xavix_extbus_map(address_map &map); - void superxavix_lowbus_map(address_map &map); + void xavix_lowbus_map(address_map &map) ATTR_COLD; + void xavix_extbus_map(address_map &map) ATTR_COLD; + void superxavix_lowbus_map(address_map &map) ATTR_COLD; INTERRUPT_GEN_MEMBER(interrupt); TIMER_DEVICE_CALLBACK_MEMBER(scanline_cb); - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; void debug_mem_w(offs_t offset, uint8_t data) { @@ -1004,7 +1004,7 @@ class xavix_hikara_state : public xavix_ekara_state int ekara_multi3_r(); protected: - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; required_ioport m_extra2; required_ioport m_extra3; diff --git a/src/mame/tvgames/xavix2.cpp b/src/mame/tvgames/xavix2.cpp index f8c06b8c5ba..ef1d2649731 100644 --- a/src/mame/tvgames/xavix2.cpp +++ b/src/mame/tvgames/xavix2.cpp @@ -131,12 +131,12 @@ class xavix2_state : public driver_device void crtc_w(offs_t reg, u16 data); - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void mem(address_map &map); + void mem(address_map &map) ATTR_COLD; }; class naruto_state : public xavix2_state diff --git a/src/mame/tvgames/xavix2002_io.h b/src/mame/tvgames/xavix2002_io.h index 6c35b899747..9187dd04e7a 100644 --- a/src/mame/tvgames/xavix2002_io.h +++ b/src/mame/tvgames/xavix2002_io.h @@ -28,8 +28,8 @@ class xavix2002_io_device : public device_t 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; private: devcb_read8 m_in0_cb; diff --git a/src/mame/tvgames/xavix_adc.h b/src/mame/tvgames/xavix_adc.h index 817158b919b..aa9189cdd46 100644 --- a/src/mame/tvgames/xavix_adc.h +++ b/src/mame/tvgames/xavix_adc.h @@ -25,8 +25,8 @@ class xavix_adc_device : public device_t 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; private: devcb_read8 m_in0_cb; diff --git a/src/mame/tvgames/xavix_anport.h b/src/mame/tvgames/xavix_anport.h index 7864ec15b46..9f70a6cdff3 100644 --- a/src/mame/tvgames/xavix_anport.h +++ b/src/mame/tvgames/xavix_anport.h @@ -26,8 +26,8 @@ class xavix_anport_device : public device_t 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; private: devcb_read8 m_in0_cb; diff --git a/src/mame/tvgames/xavix_io.h b/src/mame/tvgames/xavix_io.h index 177c754a59f..da2dff1f986 100644 --- a/src/mame/tvgames/xavix_io.h +++ b/src/mame/tvgames/xavix_io.h @@ -23,8 +23,8 @@ class xavix_io_device : public device_t 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; private: devcb_read8 m_in0_cb; diff --git a/src/mame/tvgames/xavix_madfb_ball.h b/src/mame/tvgames/xavix_madfb_ball.h index ad7dbe4b998..b9ccc437070 100644 --- a/src/mame/tvgames/xavix_madfb_ball.h +++ b/src/mame/tvgames/xavix_madfb_ball.h @@ -23,9 +23,9 @@ class xavix_madfb_ball_device : public device_t DECLARE_INPUT_CHANGED_MEMBER( changed ); protected: - virtual void device_start() override; - virtual void device_reset() override; - virtual ioport_constructor device_input_ports() const override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; private: devcb_write_line m_event_out_cb; diff --git a/src/mame/tvgames/xavix_math.h b/src/mame/tvgames/xavix_math.h index e9fb6dedb5f..abf2335360e 100644 --- a/src/mame/tvgames/xavix_math.h +++ b/src/mame/tvgames/xavix_math.h @@ -19,8 +19,8 @@ class xavix_math_device : public device_t 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; private: diff --git a/src/mame/tvgames/xavix_mtrk_wheel.h b/src/mame/tvgames/xavix_mtrk_wheel.h index f36f1845507..5738dc0f7f0 100644 --- a/src/mame/tvgames/xavix_mtrk_wheel.h +++ b/src/mame/tvgames/xavix_mtrk_wheel.h @@ -23,9 +23,9 @@ class xavix_mtrk_wheel_device : public device_t DECLARE_INPUT_CHANGED_MEMBER( changed ); protected: - virtual void device_start() override; - virtual void device_reset() override; - virtual ioport_constructor device_input_ports() const override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; private: devcb_write_line m_event_out_cb; diff --git a/src/mame/ultimachine/rambo.cpp b/src/mame/ultimachine/rambo.cpp index 71e44a00434..776435f6ec6 100644 --- a/src/mame/ultimachine/rambo.cpp +++ b/src/mame/ultimachine/rambo.cpp @@ -41,11 +41,11 @@ class rambo_state : public driver_device void rambo(machine_config &config); private: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; - void rambo_prg_map(address_map &map); - void rambo_data_map(address_map &map); + void rambo_prg_map(address_map &map) ATTR_COLD; + void rambo_data_map(address_map &map) ATTR_COLD; uint8_t m_port_a = 0; required_device m_maincpu; diff --git a/src/mame/ultratec/minicom.cpp b/src/mame/ultratec/minicom.cpp index 3b97ce77edb..41f5396c9aa 100644 --- a/src/mame/ultratec/minicom.cpp +++ b/src/mame/ultratec/minicom.cpp @@ -75,8 +75,8 @@ class minicom_state : public driver_device uint8_t m_p[4]{}; uint16_t m_display_data = 0; int m_digit_index = 0; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; required_device m_maincpu; output_finder<20> m_digits; }; diff --git a/src/mame/unicard/bbcbc.cpp b/src/mame/unicard/bbcbc.cpp index 4b1c9136b3b..cb655d651b4 100644 --- a/src/mame/unicard/bbcbc.cpp +++ b/src/mame/unicard/bbcbc.cpp @@ -54,11 +54,11 @@ class bbcbc_state : public driver_device private: uint8_t input_r(); void input_select_w(uint8_t data); - void io_map(address_map &map); - void mem_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; uint8_t m_input_select = 0U; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; required_device m_maincpu; required_device m_z80pio; required_ioport_array<3> m_buttons; diff --git a/src/mame/unico/drgnmst.h b/src/mame/unico/drgnmst.h index daa7462f28d..6f8a8a0aced 100644 --- a/src/mame/unico/drgnmst.h +++ b/src/mame/unico/drgnmst.h @@ -33,11 +33,11 @@ class drgnmst_base_state : public driver_device void drgnmst(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; - void drgnmst_main_map(address_map &map); + void drgnmst_main_map(address_map &map) ATTR_COLD; required_device m_maincpu; /* video-related */ @@ -91,8 +91,8 @@ class drgnmst_pic_state : public drgnmst_base_state void drgnmst_with_pic(machine_config& config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: optional_device m_audiocpu; @@ -119,9 +119,9 @@ class drgnmst_pic_state : public drgnmst_base_state void oki_w(uint8_t data); void snd_control_w(uint8_t data); - void drgnmst_main_map_with_pic(address_map& map); + void drgnmst_main_map_with_pic(address_map &map) ATTR_COLD; - void drgnmst_oki1_map(address_map &map); + void drgnmst_oki1_map(address_map &map) ATTR_COLD; }; class drgnmst_ym_state : public drgnmst_base_state @@ -135,12 +135,12 @@ class drgnmst_ym_state : public drgnmst_base_state void drgnmst_ym(machine_config& config); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: required_device m_oki; - void drgnmst_main_map_with_ym(address_map& map); + void drgnmst_main_map_with_ym(address_map &map) ATTR_COLD; }; diff --git a/src/mame/unico/goori.cpp b/src/mame/unico/goori.cpp index aa308d9a9f2..ef48fb807bd 100644 --- a/src/mame/unico/goori.cpp +++ b/src/mame/unico/goori.cpp @@ -82,11 +82,11 @@ class goori_state : public driver_device void goori(machine_config& config); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: - void goori_map(address_map& map); + void goori_map(address_map &map) ATTR_COLD; void bg_videoram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); TILE_GET_INFO_MEMBER(get_bg_tile_info); diff --git a/src/mame/unico/silkroad.cpp b/src/mame/unico/silkroad.cpp index 989458a708a..df60c211757 100644 --- a/src/mame/unico/silkroad.cpp +++ b/src/mame/unico/silkroad.cpp @@ -154,8 +154,8 @@ class silkroad_state : public driver_device void silkroad(machine_config &config); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -178,8 +178,8 @@ class silkroad_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void draw_sprites(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void cpu_map(address_map &map); - void oki_map(address_map &map); + void cpu_map(address_map &map) ATTR_COLD; + void oki_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/unico/unianapc.cpp b/src/mame/unico/unianapc.cpp index 7113b95a402..9933745054e 100644 --- a/src/mame/unico/unianapc.cpp +++ b/src/mame/unico/unianapc.cpp @@ -47,7 +47,7 @@ class unianapc_state : public driver_device private: required_device m_maincpu; - void unianapc_map(address_map &map); + void unianapc_map(address_map &map) ATTR_COLD; }; void unianapc_state::unianapc_map(address_map &map) diff --git a/src/mame/unico/unico.cpp b/src/mame/unico/unico.cpp index eaeb493f601..278c7907a98 100644 --- a/src/mame/unico/unico.cpp +++ b/src/mame/unico/unico.cpp @@ -60,8 +60,8 @@ class burglarx_state : public driver_device void burglarx(machine_config &config); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; static rgb_t unico_R6G6B6X(uint32_t raw); uint16_t vram_r(offs_t offset); @@ -76,7 +76,7 @@ class burglarx_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void draw_sprites(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void program_map(address_map &map); + void program_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_palette; @@ -106,7 +106,7 @@ class zeropnt_state : public burglarx_state void zeropnt(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; required_memory_bank m_okibank; @@ -117,14 +117,14 @@ class zeropnt_state : public burglarx_state template uint16_t gunx_msb_r(); template uint16_t guny_msb_r(); - void oki_map(address_map &map); + void oki_map(address_map &map) ATTR_COLD; private: required_ioport_array<4> m_gun_axes; void okibank_leds_w(uint8_t data); - void program_map(address_map &map); + void program_map(address_map &map) ATTR_COLD; }; class zeropnt2_state : public zeropnt_state @@ -138,7 +138,7 @@ class zeropnt2_state : public zeropnt_state void zeropnt2(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_eeprom; @@ -150,7 +150,7 @@ class zeropnt2_state : public zeropnt_state void eeprom_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0); - void program_map(address_map &map); + void program_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/unisonic/gic.h b/src/mame/unisonic/gic.h index 1115e70fa9e..3be5ed2d54a 100644 --- a/src/mame/unisonic/gic.h +++ b/src/mame/unisonic/gic.h @@ -66,11 +66,11 @@ class gic_device : public device_t gic_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // 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; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; // device_sound_interface overrides virtual void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; diff --git a/src/mame/unisonic/unichamp.cpp b/src/mame/unisonic/unichamp.cpp index a491062d120..54a3b19dd98 100644 --- a/src/mame/unisonic/unichamp.cpp +++ b/src/mame/unisonic/unichamp.cpp @@ -69,7 +69,7 @@ class unichamp_state : public driver_device void unichamp(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_maincpu; @@ -96,7 +96,7 @@ class unichamp_state : public driver_device uint32_t screen_update_unichamp(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void unichamp_mem(address_map &map); + void unichamp_mem(address_map &map) ATTR_COLD; }; void unichamp_state::unichamp_palette(palette_device &palette) const diff --git a/src/mame/unisys/univac.cpp b/src/mame/unisys/univac.cpp index 55a191891d6..f1305bb85ee 100644 --- a/src/mame/unisys/univac.cpp +++ b/src/mame/unisys/univac.cpp @@ -158,7 +158,7 @@ class univac_state : public driver_device void uts20(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: u8 ram_r(offs_t offset); @@ -185,10 +185,10 @@ class univac_state : public driver_device u32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void io_map(address_map &map); - void mem_map(address_map &map); - void uts10_io_map(address_map &map); - void uts10_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; + void uts10_io_map(address_map &map) ATTR_COLD; + void uts10_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_nvram; diff --git a/src/mame/universal/cheekyms.cpp b/src/mame/universal/cheekyms.cpp index 7286f235354..4583eb8cc4b 100644 --- a/src/mame/universal/cheekyms.cpp +++ b/src/mame/universal/cheekyms.cpp @@ -42,8 +42,8 @@ class cheekyms_state : public driver_device void cheekyms(machine_config &config); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: // devices @@ -76,8 +76,8 @@ class cheekyms_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect, gfx_element *gfx, int flip); - void io_map(address_map &map); - void main_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/universal/cheekyms_a.h b/src/mame/universal/cheekyms_a.h index def50bfa3f2..1cb159de1b2 100644 --- a/src/mame/universal/cheekyms_a.h +++ b/src/mame/universal/cheekyms_a.h @@ -24,8 +24,8 @@ class cheekyms_audio_device : public device_t void coin_extra_w(int state); // 16 protected: - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; private: required_device m_mute; diff --git a/src/mame/universal/cosmic.h b/src/mame/universal/cosmic.h index d28d9ece04d..2ebc3771ae3 100644 --- a/src/mame/universal/cosmic.h +++ b/src/mame/universal/cosmic.h @@ -55,8 +55,8 @@ class cosmic_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(coin_inserted_nmi); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: /* memory pointers */ @@ -114,9 +114,9 @@ class cosmic_state : public driver_device pen_t panic_map_color(uint8_t x, uint8_t y); pen_t cosmica_map_color(uint8_t x, uint8_t y); pen_t magspot_map_color(uint8_t x, uint8_t y); - void cosmica_map(address_map &map); - void magspot_map(address_map &map); - void panic_map(address_map &map); + void cosmica_map(address_map &map) ATTR_COLD; + void magspot_map(address_map &map) ATTR_COLD; + void panic_map(address_map &map) ATTR_COLD; }; #endif // MAME_UNIVERSAL_COSMIC_H diff --git a/src/mame/universal/cosmicg.cpp b/src/mame/universal/cosmicg.cpp index 52168f3afb7..fcf65c6b005 100644 --- a/src/mame/universal/cosmicg.cpp +++ b/src/mame/universal/cosmicg.cpp @@ -46,8 +46,8 @@ class cosmicg_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(coin_inserted); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: void cosmicg_palette(palette_device &palette); @@ -58,8 +58,8 @@ class cosmicg_state : public driver_device u8 cosmicg_port_1_r(offs_t offset); void cosmic_color_register_w(offs_t offset, u8 data); - void mem_map(address_map &map); - void cru_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void cru_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_crtc; diff --git a/src/mame/universal/docastle.h b/src/mame/universal/docastle.h index 903422698a4..4b9f3ac67fd 100644 --- a/src/mame/universal/docastle.h +++ b/src/mame/universal/docastle.h @@ -39,9 +39,9 @@ class docastle_state : public driver_device void docastle(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: /* devices */ @@ -91,13 +91,13 @@ class docastle_state : public driver_device void draw_sprites( screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect ); void docastle_tint(int state); void idsoccer_adpcm_int(int state); - void docastle_io_map(address_map &map); - void docastle_map(address_map &map); - void docastle_map2(address_map &map); - void docastle_map3(address_map &map); - void dorunrun_map(address_map &map); - void dorunrun_map2(address_map &map); - void idsoccer_map(address_map &map); + void docastle_io_map(address_map &map) ATTR_COLD; + void docastle_map(address_map &map) ATTR_COLD; + void docastle_map2(address_map &map) ATTR_COLD; + void docastle_map3(address_map &map) ATTR_COLD; + void dorunrun_map(address_map &map) ATTR_COLD; + void dorunrun_map2(address_map &map) ATTR_COLD; + void idsoccer_map(address_map &map) ATTR_COLD; }; #endif // MAME_UNIVERSAL_DOCASTLE_H diff --git a/src/mame/universal/getaway.cpp b/src/mame/universal/getaway.cpp index ecf28ab3856..0b0cf6d0ce3 100644 --- a/src/mame/universal/getaway.cpp +++ b/src/mame/universal/getaway.cpp @@ -68,7 +68,7 @@ class getaway_state : public driver_device void getaway(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: // devices/pointers @@ -78,8 +78,8 @@ class getaway_state : public driver_device required_ioport_array<3> m_inputs; required_ioport m_dsw; - void main_map(address_map &map); - void io_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void vblank_irq(int state); diff --git a/src/mame/universal/ladybug.cpp b/src/mame/universal/ladybug.cpp index 13ec126373e..a8ee6b87cb2 100644 --- a/src/mame/universal/ladybug.cpp +++ b/src/mame/universal/ladybug.cpp @@ -88,7 +88,7 @@ class ladybug_state : public driver_device void ladybug_palette(palette_device &palette) const; u32 screen_update_ladybug(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void ladybug_map(address_map &map); + void ladybug_map(address_map &map) ATTR_COLD; required_device m_maincpu; @@ -113,7 +113,7 @@ class dorodon_state : public ladybug_state void dorodon(machine_config &config); protected: - void decrypted_opcodes_map(address_map &map); + void decrypted_opcodes_map(address_map &map) ATTR_COLD; private: required_shared_ptr m_decrypted_opcodes; diff --git a/src/mame/universal/ladybug_video.h b/src/mame/universal/ladybug_video.h index 4907c231c3e..15f07543702 100644 --- a/src/mame/universal/ladybug_video.h +++ b/src/mame/universal/ladybug_video.h @@ -25,7 +25,7 @@ class ladybug_video_device : public device_t void draw(screen_device &screen, bitmap_ind16 &bitmap, rectangle const &cliprect, bool flip); protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; TILE_GET_INFO_MEMBER(get_bg_tile_info); diff --git a/src/mame/universal/mrdo.h b/src/mame/universal/mrdo.h index 686ca75d9d7..b094d3a2a41 100644 --- a/src/mame/universal/mrdo.h +++ b/src/mame/universal/mrdo.h @@ -30,9 +30,9 @@ class mrdo_state : public driver_device void mrdobl(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; virtual void protection_w(uint8_t data); virtual uint8_t protection_r(); @@ -49,7 +49,7 @@ class mrdo_state : public driver_device required_device m_gfxdecode; required_device m_palette; - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; // video-related tilemap_t *m_bg_tilemap = nullptr; diff --git a/src/mame/universal/sraider.cpp b/src/mame/universal/sraider.cpp index d10b2c1fbe8..c3fd6912f43 100644 --- a/src/mame/universal/sraider.cpp +++ b/src/mame/universal/sraider.cpp @@ -60,12 +60,12 @@ class mrsdyna_state : public driver_device virtual void io_w(u8 data); void mrsdyna_palette(palette_device &palette) const; - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; virtual u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void cpu1_map(address_map &map); - void cpu2_map(address_map &map); - void cpu2_io_map(address_map &map); + void cpu1_map(address_map &map) ATTR_COLD; + void cpu2_map(address_map &map) ATTR_COLD; + void cpu2_io_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_subcpu; @@ -98,7 +98,7 @@ class sraider_state : public mrsdyna_state tilemap_t *m_grid_tilemap = nullptr; - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; virtual u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect) override; private: diff --git a/src/mame/universal/superdq.cpp b/src/mame/universal/superdq.cpp index a1be0c9bc5e..fe9d485dfd1 100644 --- a/src/mame/universal/superdq.cpp +++ b/src/mame/universal/superdq.cpp @@ -49,9 +49,9 @@ class superdq_state : public driver_device void superdq(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_laserdisc; @@ -74,8 +74,8 @@ class superdq_state : public driver_device void superdq_palette(palette_device &palette) const; uint32_t screen_update_superdq(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); INTERRUPT_GEN_MEMBER(superdq_vblank); - void superdq_io(address_map &map); - void superdq_map(address_map &map); + void superdq_io(address_map &map) ATTR_COLD; + void superdq_map(address_map &map) ATTR_COLD; }; TILE_GET_INFO_MEMBER(superdq_state::get_tile_info) diff --git a/src/mame/universal/zerohour.cpp b/src/mame/universal/zerohour.cpp index c0f22c848cd..8b4455ef18e 100644 --- a/src/mame/universal/zerohour.cpp +++ b/src/mame/universal/zerohour.cpp @@ -78,8 +78,8 @@ class zerohour_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(right_coin_inserted); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; void videoram_w(offs_t offset, u8 data); void irqack_w(u8 data) { m_maincpu->set_input_line(0, CLEAR_LINE); } @@ -94,7 +94,7 @@ class zerohour_state : public driver_device void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); void draw_bullets(bitmap_ind16 &bitmap, const rectangle &cliprect); - void zerohour_map(address_map &map); + void zerohour_map(address_map &map) ATTR_COLD; required_shared_ptr m_videoram; required_shared_ptr m_spriteram; @@ -128,7 +128,7 @@ class redclash_state : public zerohour_state void redclash(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; virtual u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect) override; private: @@ -140,7 +140,7 @@ class redclash_state : public zerohour_state TIMER_DEVICE_CALLBACK_MEMBER(beeper_off) { m_beep_clock->set_period(attotime::never); } - void redclash_map(address_map &map); + void redclash_map(address_map &map) ATTR_COLD; required_device m_beep_clock; required_device m_beep_trigger; diff --git a/src/mame/universal/zerohour_stars.h b/src/mame/universal/zerohour_stars.h index ef8e477bad2..a9912233cdc 100644 --- a/src/mame/universal/zerohour_stars.h +++ b/src/mame/universal/zerohour_stars.h @@ -22,8 +22,8 @@ class zerohour_stars_device : public device_t void draw(bitmap_ind16 &bitmap, rectangle const &cliprect); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: u8 m_enable; diff --git a/src/mame/upl/mouser.cpp b/src/mame/upl/mouser.cpp index 2035ed176f0..1db22915d1d 100644 --- a/src/mame/upl/mouser.cpp +++ b/src/mame/upl/mouser.cpp @@ -48,7 +48,7 @@ class mouser_state : public driver_device void init_mouser(); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: // memory pointers @@ -72,10 +72,10 @@ class mouser_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void nmi_interrupt(int state); INTERRUPT_GEN_MEMBER(sound_nmi_assert); - void decrypted_opcodes_map(address_map &map); - void main_map(address_map &map); - void sound_io_map(address_map &map); - void sound_map(address_map &map); + void decrypted_opcodes_map(address_map &map) ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; + void sound_io_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/upl/ninjakd2.h b/src/mame/upl/ninjakd2.h index 341316eca62..5377dcf556e 100644 --- a/src/mame/upl/ninjakd2.h +++ b/src/mame/upl/ninjakd2.h @@ -41,9 +41,9 @@ class ninjakd2_state : public driver_device void init_bootleg(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; void ninjakd2_bgvideoram_w(offs_t offset, uint8_t data); void fgvideoram_w(offs_t offset, uint8_t data); @@ -67,7 +67,7 @@ class ninjakd2_state : public driver_device void gfx_unscramble(); void update_sprites(); - void ninjakid_nopcm_sound_cpu(address_map &map); + void ninjakid_nopcm_sound_cpu(address_map &map) ATTR_COLD; void ninjakd2_core(machine_config &config); @@ -93,10 +93,10 @@ class ninjakd2_state : public driver_device void draw_sprites(bitmap_ind16 &bitmap); void erase_sprites(bitmap_ind16 &bitmap); void lineswap_gfx_roms(const char *region, const int bit); - void decrypted_opcodes_map(address_map &map); - void ninjakd2_main_cpu(address_map &map); - void ninjakd2_sound_cpu(address_map &map); - void ninjakd2_sound_io(address_map &map); + void decrypted_opcodes_map(address_map &map) ATTR_COLD; + void ninjakd2_main_cpu(address_map &map) ATTR_COLD; + void ninjakd2_sound_cpu(address_map &map) ATTR_COLD; + void ninjakd2_sound_io(address_map &map) ATTR_COLD; optional_device m_pcm; optional_memory_region m_pcm_region; @@ -121,7 +121,7 @@ class mnight_state : public ninjakd2_state void init_mnight(); private: - void mnight_main_cpu(address_map &map); + void mnight_main_cpu(address_map &map) ATTR_COLD; TILE_GET_INFO_MEMBER(mnight_get_bg_tile_info); DECLARE_VIDEO_START(mnight); @@ -150,7 +150,7 @@ class robokid_state : public mnight_state TILEMAP_MAPPER_MEMBER(robokid_bg_scan); template TILE_GET_INFO_MEMBER(robokid_get_bg_tile_info); - void robokid_main_cpu(address_map &map); + void robokid_main_cpu(address_map &map) ATTR_COLD; tilemap_t *m_robokid_tilemap[3] = { nullptr, nullptr, nullptr }; @@ -178,15 +178,15 @@ class omegaf_state : public robokid_state void omegaf(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: uint8_t unk_r(); uint8_t io_protection_r(offs_t offset); void io_protection_w(offs_t offset, uint8_t data); - void omegaf_main_cpu(address_map &map); + void omegaf_main_cpu(address_map &map) ATTR_COLD; DECLARE_VIDEO_START(omegaf); TILEMAP_MAPPER_MEMBER(omegaf_bg_scan); diff --git a/src/mame/upl/nova2001.h b/src/mame/upl/nova2001.h index 709e0f1b69d..fa2dba348a5 100644 --- a/src/mame/upl/nova2001.h +++ b/src/mame/upl/nova2001.h @@ -83,15 +83,15 @@ class nova2001_state : public driver_device void nova2001_draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect ); void pkunwar_draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect ); void lineswap_gfx_roms(const char *region, const int bit); - void ninjakun_cpu1_map(address_map &map); - void ninjakun_cpu2_map(address_map &map); - void ninjakun_shared_map(address_map &map); - void nova2001_map(address_map &map); - void pkunwar_io(address_map &map); - void pkunwar_map(address_map &map); - void raiders5_cpu1_map(address_map &map); - void raiders5_cpu2_map(address_map &map); - void raiders5_io(address_map &map); + void ninjakun_cpu1_map(address_map &map) ATTR_COLD; + void ninjakun_cpu2_map(address_map &map) ATTR_COLD; + void ninjakun_shared_map(address_map &map) ATTR_COLD; + void nova2001_map(address_map &map) ATTR_COLD; + void pkunwar_io(address_map &map) ATTR_COLD; + void pkunwar_map(address_map &map) ATTR_COLD; + void raiders5_cpu1_map(address_map &map) ATTR_COLD; + void raiders5_cpu2_map(address_map &map) ATTR_COLD; + void raiders5_io(address_map &map) ATTR_COLD; }; #endif // MAME_UPL_NOVA2001_H diff --git a/src/mame/upl/xxmissio.cpp b/src/mame/upl/xxmissio.cpp index 955adff2583..76ea4f4a693 100644 --- a/src/mame/upl/xxmissio.cpp +++ b/src/mame/upl/xxmissio.cpp @@ -43,8 +43,8 @@ class xxmissio_state : public driver_device template int status_r(); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: void bank_sel_w(uint8_t data); @@ -68,9 +68,9 @@ class xxmissio_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect, gfx_element *gfx); - void base_map(address_map &map); - void main_map(address_map &map); - void sub_map(address_map &map); + void base_map(address_map &map) ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; + void sub_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_subcpu; diff --git a/src/mame/usp/patinhofeio.h b/src/mame/usp/patinhofeio.h index c8d1894549c..8b20eeb6be5 100644 --- a/src/mame/usp/patinhofeio.h +++ b/src/mame/usp/patinhofeio.h @@ -32,7 +32,7 @@ class patinho_feio_state : public driver_device { void patinho_feio(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; void load_tape(const char* name); void load_raw_data(const char* name, unsigned int start_address, unsigned int data_length); diff --git a/src/mame/ussr/1801vp014.h b/src/mame/ussr/1801vp014.h index 03727de4245..c558f26c038 100644 --- a/src/mame/ussr/1801vp014.h +++ b/src/mame/ussr/1801vp014.h @@ -42,9 +42,9 @@ class k1801vp014_device : public device_t, protected: // device-level overrides - virtual void device_start() override; - virtual void device_reset() override; - virtual ioport_constructor device_input_ports() const override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; // device_z80daisy_interface overrides virtual int z80daisy_irq_state() override; diff --git a/src/mame/ussr/apogee.cpp b/src/mame/ussr/apogee.cpp index 4006177f300..122ec46888a 100644 --- a/src/mame/ussr/apogee.cpp +++ b/src/mame/ussr/apogee.cpp @@ -45,9 +45,9 @@ class apogee_state : public radio86_state I8275_DRAW_CHARACTER_MEMBER(display_pixels); required_device m_speaker; - void mem_map(address_map &map); - void machine_reset() override; - void machine_start() override; + void mem_map(address_map &map) ATTR_COLD; + void machine_reset() override ATTR_COLD; + void machine_start() override ATTR_COLD; }; diff --git a/src/mame/ussr/argo.cpp b/src/mame/ussr/argo.cpp index d41d6211e8f..0816d9b2ad4 100644 --- a/src/mame/ussr/argo.cpp +++ b/src/mame/ussr/argo.cpp @@ -65,8 +65,8 @@ class argo_state : public driver_device void argo(machine_config &config); private: - virtual void machine_reset() override; - virtual void machine_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; void argo_videoram_w(offs_t offset, u8 data); u8 argo_io_r(offs_t offset); void argo_io_w(offs_t offset, u8 data); @@ -77,8 +77,8 @@ class argo_state : public driver_device I8275_DRAW_CHARACTER_MEMBER(display_pixels); TIMER_DEVICE_CALLBACK_MEMBER(kansas_r); - void io_map(address_map &map); - void mem_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; memory_passthrough_handler m_rom_shadow_tap; required_device m_maincpu; diff --git a/src/mame/ussr/b2m.h b/src/mame/ussr/b2m.h index b3ec7b18e05..e1e1f19c739 100644 --- a/src/mame/ussr/b2m.h +++ b/src/mame/ussr/b2m.h @@ -60,11 +60,11 @@ class b2m_state : public driver_device void fdc_drq(int state); static void b2m_floppy_formats(format_registration &fr); - void b2m_io(address_map &map); - void b2m_mem(address_map &map); - void b2m_rom_io(address_map &map); - void machine_start() override; - void machine_reset() override; + void b2m_io(address_map &map) ATTR_COLD; + void b2m_mem(address_map &map) ATTR_COLD; + void b2m_rom_io(address_map &map) ATTR_COLD; + void machine_start() override ATTR_COLD; + void machine_reset() override ATTR_COLD; void postload(); void set_bank(int bank); diff --git a/src/mame/ussr/bk.h b/src/mame/ussr/bk.h index e5e2f70628b..7e93e2ee54c 100644 --- a/src/mame/ussr/bk.h +++ b/src/mame/ussr/bk.h @@ -34,8 +34,8 @@ class bk_state : public driver_device void bk0010fd(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: enum sel1_bits : u16 @@ -61,8 +61,8 @@ class bk_state : public driver_device void reset_w(int state); uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void bk0010_mem(address_map &map); - void bk0010fd_mem(address_map &map); + void bk0010_mem(address_map &map) ATTR_COLD; + void bk0010fd_mem(address_map &map) ATTR_COLD; required_shared_ptr m_vram; required_device m_maincpu; diff --git a/src/mame/ussr/cm1800.cpp b/src/mame/ussr/cm1800.cpp index 3e6edbdcc34..371e8dc7cad 100644 --- a/src/mame/ussr/cm1800.cpp +++ b/src/mame/ussr/cm1800.cpp @@ -54,9 +54,9 @@ class cm1800_state : public driver_device void cm1800(machine_config &config); private: - void io_map(address_map &map); - void mem_map(address_map &map); - virtual void machine_reset() override; + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; u8 uart_status_r(); required_device m_maincpu; required_device m_uart; diff --git a/src/mame/ussr/debut.cpp b/src/mame/ussr/debut.cpp index cf4f7b80c4d..b293115ac29 100644 --- a/src/mame/ussr/debut.cpp +++ b/src/mame/ussr/debut.cpp @@ -79,7 +79,7 @@ class debut_state : public driver_device void debutm(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: // devices/pointers @@ -95,8 +95,8 @@ class debut_state : public driver_device u8 m_lcd_update = 0; // address maps - void main_map(address_map &map); - void main_io(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void main_io(address_map &map) ATTR_COLD; // I/O handlers INTERRUPT_GEN_MEMBER(interrupt); diff --git a/src/mame/ussr/dvk_kcgd.cpp b/src/mame/ussr/dvk_kcgd.cpp index 19df0c2bf28..eb561957c22 100644 --- a/src/mame/ussr/dvk_kcgd.cpp +++ b/src/mame/ussr/dvk_kcgd.cpp @@ -88,8 +88,8 @@ class kcgd_state : public driver_device void kcgd(machine_config &config); private: - virtual void machine_reset() override; - virtual void machine_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; //TIMER_CALLBACK_MEMBER(vsync_tick); TIMER_CALLBACK_MEMBER(toggle_500hz); @@ -124,7 +124,7 @@ class kcgd_state : public driver_device //emu_timer *m_vsync_on_timer; emu_timer *m_500hz_timer = nullptr; - void kcgd_mem(address_map &map); + void kcgd_mem(address_map &map) ATTR_COLD; void draw_scanline(uint16_t *p, uint16_t offset); rectangle m_tmpclip; diff --git a/src/mame/ussr/dvk_ksm.cpp b/src/mame/ussr/dvk_ksm.cpp index 0ed025bee79..8fe57853da3 100644 --- a/src/mame/ussr/dvk_ksm.cpp +++ b/src/mame/ussr/dvk_ksm.cpp @@ -113,8 +113,8 @@ class ksm_state : public driver_device private: TIMER_DEVICE_CALLBACK_MEMBER(scanline_callback); - virtual void machine_reset() override; - virtual void machine_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); TIMER_CALLBACK_MEMBER(clock_brg); @@ -128,8 +128,8 @@ class ksm_state : public driver_device void ksm_ppi_porta_w(uint8_t data); void ksm_ppi_portc_w(uint8_t data); - void ksm_io(address_map &map); - void ksm_mem(address_map &map); + void ksm_io(address_map &map) ATTR_COLD; + void ksm_mem(address_map &map) ATTR_COLD; uint32_t draw_scanline(uint16_t *p, uint16_t offset, uint8_t scanline); rectangle m_tmpclip; diff --git a/src/mame/ussr/im01.cpp b/src/mame/ussr/im01.cpp index f58d642045f..07cb447afe7 100644 --- a/src/mame/ussr/im01.cpp +++ b/src/mame/ussr/im01.cpp @@ -117,7 +117,7 @@ class im01_state : public driver_device void im05(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: // devices/pointers @@ -129,9 +129,9 @@ class im01_state : public driver_device u16 m_inp_mux = 0; u16 m_digit_data = 0; - void im01_map(address_map &map); - void im01t_map(address_map &map); - void im05_map(address_map &map); + void im01_map(address_map &map) ATTR_COLD; + void im01t_map(address_map &map) ATTR_COLD; + void im05_map(address_map &map) ATTR_COLD; u8 irq_callback(offs_t offset); INTERRUPT_GEN_MEMBER(interrupt); diff --git a/src/mame/ussr/intellect02.cpp b/src/mame/ussr/intellect02.cpp index d4f321a6734..ac8b5db0b9d 100644 --- a/src/mame/ussr/intellect02.cpp +++ b/src/mame/ussr/intellect02.cpp @@ -73,7 +73,7 @@ class intel02_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(reset_button); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: // devices/pointers @@ -87,8 +87,8 @@ class intel02_state : public driver_device u8 m_led_select = 0; // address maps - void main_map(address_map &map); - void main_io(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void main_io(address_map &map) ATTR_COLD; // I/O handlers void update_display(); diff --git a/src/mame/ussr/irisha.cpp b/src/mame/ussr/irisha.cpp index 004be0a59a7..3baf0238ec8 100644 --- a/src/mame/ussr/irisha.cpp +++ b/src/mame/ussr/irisha.cpp @@ -63,8 +63,8 @@ class irisha_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); required_shared_ptr m_p_videoram; - void io_map(address_map &map); - void mem_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; bool m_sg1_line = false; bool m_keypressed = false; @@ -73,8 +73,8 @@ class irisha_state : public driver_device uint8_t m_ppi_portc = 0; emu_timer *m_key_timer = nullptr; void update_speaker(); - void machine_start() override; - void machine_reset() override; + void machine_start() override ATTR_COLD; + void machine_reset() override ATTR_COLD; required_device m_maincpu; required_device m_pit; required_device m_speaker; diff --git a/src/mame/ussr/istrebiteli.cpp b/src/mame/ussr/istrebiteli.cpp index 9022fa8d674..307633b3411 100644 --- a/src/mame/ussr/istrebiteli.cpp +++ b/src/mame/ussr/istrebiteli.cpp @@ -48,7 +48,7 @@ class istrebiteli_sound_device : public device_t, public device_sound_interface protected: // device_t overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // device_sound_interface overrides virtual void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; @@ -164,9 +164,9 @@ class istrebiteli_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(coin_inc); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: void istrebiteli_palette(palette_device &palette) const; @@ -203,10 +203,10 @@ class istrebiteli_state : public driver_device uint8_t m_tileram[16]{}; uint8_t m_road_scroll = 0; - void io_map(address_map &map); - void mem_map(address_map &map); - void moto_io_map(address_map &map); - void moto_mem_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; + void moto_io_map(address_map &map) ATTR_COLD; + void moto_mem_map(address_map &map) ATTR_COLD; }; void istrebiteli_state::machine_start() diff --git a/src/mame/ussr/km035.h b/src/mame/ussr/km035.h index c10da6f5217..ede651b1474 100644 --- a/src/mame/ussr/km035.h +++ b/src/mame/ussr/km035.h @@ -26,15 +26,15 @@ class km035_device : public device_t void write_rxd(int state); - void km035_map(address_map &map); + void km035_map(address_map &map) ATTR_COLD; protected: // device-level overrides - virtual void device_add_mconfig(machine_config &config) override; - virtual const tiny_rom_entry *device_rom_region() const override; - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: required_device m_maincpu; diff --git a/src/mame/ussr/krokha.cpp b/src/mame/ussr/krokha.cpp index d3d739ae261..bac65d1c9af 100644 --- a/src/mame/ussr/krokha.cpp +++ b/src/mame/ussr/krokha.cpp @@ -60,7 +60,7 @@ class krokha_state : public driver_device private: uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void krokha_mem(address_map &map); + void krokha_mem(address_map &map) ATTR_COLD; void status_callback(uint8_t data); void speaker_w(uint8_t data); diff --git a/src/mame/ussr/lviv.h b/src/mame/ussr/lviv.h index 5683aee099a..5f001932e10 100644 --- a/src/mame/ussr/lviv.h +++ b/src/mame/ussr/lviv.h @@ -41,8 +41,8 @@ class lviv_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(reset_button); private: - void machine_reset() override; - void machine_start() override; + void machine_reset() override ATTR_COLD; + void machine_start() override ATTR_COLD; void lviv_palette(palette_device &palette) const; uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); @@ -73,8 +73,8 @@ class lviv_state : public driver_device void dump_registers(); std::pair verify_snapshot(const uint8_t * data, uint32_t size); - void io_map(address_map &map); - void mem_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_ram; diff --git a/src/mame/ussr/mikro80.h b/src/mame/ussr/mikro80.h index 0637f027f21..753f9dd4d39 100644 --- a/src/mame/ussr/mikro80.h +++ b/src/mame/ussr/mikro80.h @@ -50,14 +50,14 @@ class mikro80_state : public driver_device void portc_w(u8 data); void tape_w(u8 data); u8 tape_r(); - virtual void machine_reset() override; - virtual void machine_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; u32 screen_update_mikro80(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void kristall_io(address_map &map); - void mikro80_io(address_map &map); - void mikro80_mem(address_map &map); - void radio99_io(address_map &map); + void kristall_io(address_map &map) ATTR_COLD; + void mikro80_io(address_map &map) ATTR_COLD; + void mikro80_mem(address_map &map) ATTR_COLD; + void radio99_io(address_map &map) ATTR_COLD; memory_passthrough_handler m_rom_shadow_tap; required_shared_ptr m_aram; diff --git a/src/mame/ussr/mikrosha.cpp b/src/mame/ussr/mikrosha.cpp index c24bd76138b..18198e39380 100644 --- a/src/mame/ussr/mikrosha.cpp +++ b/src/mame/ussr/mikrosha.cpp @@ -36,11 +36,11 @@ class mikrosha_state : public radio86_state void mikrosha_8255_font_page_w(uint8_t data); void mikrosha_pit_out2(int state); I8275_DRAW_CHARACTER_MEMBER(display_pixels); - void machine_reset() override; - void machine_start() override; + void machine_reset() override ATTR_COLD; + void machine_start() override ATTR_COLD; - void io_map(address_map &map); - void mem_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; uint8_t m_mikrosha_font_page = 0; }; diff --git a/src/mame/ussr/mk85.cpp b/src/mame/ussr/mk85.cpp index d0ee410211f..b6de3f3e91a 100644 --- a/src/mame/ussr/mk85.cpp +++ b/src/mame/ussr/mk85.cpp @@ -39,10 +39,10 @@ class mk85_state : public driver_device void mk85(machine_config &config); private: - virtual void machine_reset() override; - virtual void machine_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); diff --git a/src/mame/ussr/mk90.cpp b/src/mame/ussr/mk90.cpp index afba469a7b5..eaba140e7e3 100644 --- a/src/mame/ussr/mk90.cpp +++ b/src/mame/ussr/mk90.cpp @@ -37,10 +37,10 @@ class mk90_state : public driver_device void mk90(machine_config &config); private: - virtual void machine_reset() override; - virtual void machine_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); diff --git a/src/mame/ussr/mk98.cpp b/src/mame/ussr/mk98.cpp index 4c575d4b0ed..079006a5f3c 100644 --- a/src/mame/ussr/mk98.cpp +++ b/src/mame/ussr/mk98.cpp @@ -77,8 +77,8 @@ class mk98_state : public driver_device void mk98(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; required_device m_maincpu; required_device m_ram; @@ -100,8 +100,8 @@ class mk98_state : public driver_device uint8_t video_register_r(); void video_register_w(uint8_t data); - void mk98_io(address_map &map); - void mk98_map(address_map &map); + void mk98_io(address_map &map) ATTR_COLD; + void mk98_map(address_map &map) ATTR_COLD; required_shared_ptr m_p_videoram; diff --git a/src/mame/ussr/ms0515.cpp b/src/mame/ussr/ms0515.cpp index 0e4401b712e..faa5f636bba 100644 --- a/src/mame/ussr/ms0515.cpp +++ b/src/mame/ussr/ms0515.cpp @@ -86,8 +86,8 @@ class ms0515_state : public driver_device void ms0515(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: void ms0515_palette(palette_device &palette) const; @@ -115,7 +115,7 @@ class ms0515_state : public driver_device void irq9_w(int state); void irq11_w(int state); - void ms0515_mem(address_map &map); + void ms0515_mem(address_map &map) ATTR_COLD; void irq_encoder(int irq, int state); diff --git a/src/mame/ussr/ms6102.cpp b/src/mame/ussr/ms6102.cpp index 9e1c9aab734..4c873819ef7 100644 --- a/src/mame/ussr/ms6102.cpp +++ b/src/mame/ussr/ms6102.cpp @@ -80,12 +80,12 @@ class ms6102_state : public driver_device { } void ms6102(machine_config &config); - void ms6102_io(address_map &map); - void ms6102_mem(address_map &map); + void ms6102_io(address_map &map) ATTR_COLD; + void ms6102_mem(address_map &map) ATTR_COLD; protected: - virtual void machine_reset() override; - virtual void machine_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; private: uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); diff --git a/src/mame/ussr/okean240.cpp b/src/mame/ussr/okean240.cpp index 281c2302a7f..951b8f27c45 100644 --- a/src/mame/ussr/okean240.cpp +++ b/src/mame/ussr/okean240.cpp @@ -121,11 +121,11 @@ class okean240_state : public driver_device void kbd_put(u8 data); u32 screen_update_okean240(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void okean240_io(address_map &map); - void okean240_mem(address_map &map); + void okean240_io(address_map &map) ATTR_COLD; + void okean240_mem(address_map &map) ATTR_COLD; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; TIMER_DEVICE_CALLBACK_MEMBER(timer_k); u8 m_term_data = 0U; u8 m_j = 0U; diff --git a/src/mame/ussr/orion.h b/src/mame/ussr/orion.h index 164394fcff5..e9eb54e6127 100644 --- a/src/mame/ussr/orion.h +++ b/src/mame/ussr/orion.h @@ -86,7 +86,7 @@ class orion_state : public radio86_state void orion_romdisk_portb_w(uint8_t data); void orion_romdisk_portc_w(uint8_t data); static void orion_floppy_formats(format_registration &fr); - void machine_start() override; + void machine_start() override ATTR_COLD; uint8_t m_orion128_video_mode = 0; uint8_t m_orion128_video_page = 0; @@ -131,9 +131,9 @@ class orion_state : public radio86_state void orionpro_bank_switch(); private: - void machine_reset() override; - void io_map(address_map &map); - void mem_map(address_map &map); + void machine_reset() override ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; }; class orion_z80_state : public orion_state @@ -147,9 +147,9 @@ class orion_z80_state : public orion_state void orionz80ms(machine_config &config); private: - void machine_reset() override; - void io_map(address_map &map); - void mem_map(address_map &map); + void machine_reset() override ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; }; class orion_pro_state : public orion_state @@ -162,9 +162,9 @@ class orion_pro_state : public orion_state void orionpro(machine_config &config); private: - void machine_reset() override; - void io_map(address_map &map); - void mem_map(address_map &map); + void machine_reset() override ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; }; #endif // MAME_RADIO_ORION_H diff --git a/src/mame/ussr/partner.h b/src/mame/ussr/partner.h index 8b11b0b9017..3fdd78de4f8 100644 --- a/src/mame/ussr/partner.h +++ b/src/mame/ussr/partner.h @@ -33,8 +33,8 @@ class partner_state : public radio86_state void partner(machine_config &config); protected: - void machine_reset() override; - void machine_start() override; + void machine_reset() override ATTR_COLD; + void machine_start() override ATTR_COLD; private: u8 floppy_r(offs_t offset); @@ -46,7 +46,7 @@ class partner_state : public radio86_state static void floppy_formats(format_registration &fr); - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; void window_1(uint8_t bank_num, uint16_t offset,uint8_t *rom); void window_2(uint8_t bank_num, uint16_t offset,uint8_t *rom); diff --git a/src/mame/ussr/pk32.cpp b/src/mame/ussr/pk32.cpp index 2ded00a2d51..2471628e880 100644 --- a/src/mame/ussr/pk32.cpp +++ b/src/mame/ussr/pk32.cpp @@ -43,10 +43,10 @@ class pk32_state : public driver_device virtual void machine_reset() override ATTR_COLD; private: - void pk32_map_microcode(address_map &map); - void pk32_map_sysram(address_map &map); - void pk32_map_ram(address_map &map); - void pk32_map_io(address_map &map); + void pk32_map_microcode(address_map &map) ATTR_COLD; + void pk32_map_sysram(address_map &map) ATTR_COLD; + void pk32_map_ram(address_map &map) ATTR_COLD; + void pk32_map_io(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_ram; diff --git a/src/mame/ussr/pk8000.cpp b/src/mame/ussr/pk8000.cpp index 55721841498..387459ac36c 100644 --- a/src/mame/ussr/pk8000.cpp +++ b/src/mame/ussr/pk8000.cpp @@ -53,16 +53,16 @@ class pk8000_state : public pk8000_base_state u8 _80_portb_r(); void _80_portc_w(u8 data); - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); INTERRUPT_GEN_MEMBER(interrupt); IRQ_CALLBACK_MEMBER(irq_callback); - void pk8000_io(address_map &map); - void pk8000_mem(address_map &map); + void pk8000_io(address_map &map) ATTR_COLD; + void pk8000_mem(address_map &map) ATTR_COLD; required_device m_cassette; required_device m_ram; diff --git a/src/mame/ussr/pk8020.h b/src/mame/ussr/pk8020.h index 10cae4c27e3..9bf79cadbb7 100644 --- a/src/mame/ussr/pk8020.h +++ b/src/mame/ussr/pk8020.h @@ -48,9 +48,9 @@ class pk8020_state : public driver_device void pk8020(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: static void floppy_formats(format_registration &fr); @@ -79,9 +79,9 @@ class pk8020_state : public driver_device static const char *plm_select_name(uint8_t data); void log_bank_select(uint8_t bank, offs_t start, offs_t end, uint8_t rdecplm, uint8_t wdecplm); - void pk8020_io(address_map &map); - void pk8020_mem(address_map &map); - void devices_map(address_map &map); + void pk8020_io(address_map &map) ATTR_COLD; + void pk8020_mem(address_map &map) ATTR_COLD; + void devices_map(address_map &map) ATTR_COLD; uint8_t m_bank_select = 0; uint8_t m_color = 0; diff --git a/src/mame/ussr/pyl601.cpp b/src/mame/ussr/pyl601.cpp index 2ff30dc7b24..ee83a275c95 100644 --- a/src/mame/ussr/pyl601.cpp +++ b/src/mame/ussr/pyl601.cpp @@ -93,11 +93,11 @@ class pyl601_state : public driver_device MC6845_UPDATE_ROW(pyl601a_update_row); uint8_t selectedline(uint16_t data); - virtual void machine_reset() override; - virtual void machine_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; INTERRUPT_GEN_MEMBER(pyl601_interrupt); static void floppy_formats(format_registration &fr); - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; uint8_t m_rom_page = 0U; uint32_t m_vdisk_addr = 0U; diff --git a/src/mame/ussr/radio86.h b/src/mame/ussr/radio86.h index 9f059086c50..c8942e276f7 100644 --- a/src/mame/ussr/radio86.h +++ b/src/mame/ussr/radio86.h @@ -53,19 +53,19 @@ class radio86_state : public driver_device void init_radio86(); protected: - void machine_reset() override; - void machine_start() override; + void machine_reset() override ATTR_COLD; + void machine_start() override ATTR_COLD; void radio86_init_keyboard(); - void impuls03_mem(address_map &map); - void mikron2_mem(address_map &map); - void radio86_16_mem(address_map &map); - void radio86_io(address_map &map); - void radio86_mem(address_map &map); - void radio86ram_mem(address_map &map); - void radio86rom_mem(address_map &map); - void rk7007_io(address_map &map); + void impuls03_mem(address_map &map) ATTR_COLD; + void mikron2_mem(address_map &map) ATTR_COLD; + void radio86_16_mem(address_map &map) ATTR_COLD; + void radio86_io(address_map &map) ATTR_COLD; + void radio86_mem(address_map &map) ATTR_COLD; + void radio86ram_mem(address_map &map) ATTR_COLD; + void radio86rom_mem(address_map &map) ATTR_COLD; + void rk7007_io(address_map &map) ATTR_COLD; uint8_t m_tape_value; uint8_t radio_cpu_state_r(); diff --git a/src/mame/ussr/sm1800.cpp b/src/mame/ussr/sm1800.cpp index e461ddda5fd..e86a5ba5b46 100644 --- a/src/mame/ussr/sm1800.cpp +++ b/src/mame/ussr/sm1800.cpp @@ -51,13 +51,13 @@ class sm1800_state : public driver_device uint8_t porta_r(); uint8_t portc_r(); uint8_t m_irq_state = 0U; - void machine_start() override; + void machine_start() override ATTR_COLD; void sm1800_palette(palette_device &palette) const; INTERRUPT_GEN_MEMBER(vblank_interrupt); IRQ_CALLBACK_MEMBER(irq_callback); I8275_DRAW_CHARACTER_MEMBER( crtc_display_pixels ); - void io_map(address_map &map); - void mem_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; }; void sm1800_state::mem_map(address_map &map) diff --git a/src/mame/ussr/sm7238.cpp b/src/mame/ussr/sm7238.cpp index 3f0143668df..87e1de80b8b 100644 --- a/src/mame/ussr/sm7238.cpp +++ b/src/mame/ussr/sm7238.cpp @@ -84,9 +84,9 @@ class sm7238_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void sm7238_io(address_map &map); - void sm7238_mem(address_map &map); - void videobank_map(address_map &map); + void sm7238_io(address_map &map) ATTR_COLD; + void sm7238_mem(address_map &map) ATTR_COLD; + void videobank_map(address_map &map) ATTR_COLD; void recompute_parameters(); @@ -98,7 +98,7 @@ class sm7238_state : public driver_device bool reverse = false; } m_video; - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; required_device m_maincpu; required_device m_nvram; diff --git a/src/mame/ussr/special.h b/src/mame/ussr/special.h index fcd8fdfe972..bf392119094 100644 --- a/src/mame/ussr/special.h +++ b/src/mame/ussr/special.h @@ -101,14 +101,14 @@ class special_state : public driver_device uint32_t screen_update_specimx(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void fdc_drq(int state); static void specimx_floppy_formats(format_registration &fr); - void machine_start() override; - void machine_reset() override; + void machine_start() override ATTR_COLD; + void machine_reset() override ATTR_COLD; - void erik_io(address_map &map); - void erik_mem(address_map &map); - void specialist_mem(address_map &map); - void specialp_mem(address_map &map); - void specimx_mem(address_map &map); + void erik_io(address_map &map) ATTR_COLD; + void erik_mem(address_map &map) ATTR_COLD; + void specialist_mem(address_map &map) ATTR_COLD; + void specialp_mem(address_map &map) ATTR_COLD; + void specimx_mem(address_map &map) ATTR_COLD; std::unique_ptr m_specimx_colorram; uint8_t m_erik_color_1 = 0; diff --git a/src/mame/ussr/special_gambl.cpp b/src/mame/ussr/special_gambl.cpp index 07bc3585572..18a561756a6 100644 --- a/src/mame/ussr/special_gambl.cpp +++ b/src/mame/ussr/special_gambl.cpp @@ -63,15 +63,15 @@ class dinaris_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(ram_test) { m_maincpu->set_input_line(INPUT_LINE_NMI, newval ? ASSERT_LINE : CLEAR_LINE); } protected: - void machine_start() override; + void machine_start() override ATTR_COLD; TIMER_CALLBACK_MEMBER(update_boot_flag); void palette_init(palette_device &palette) const; u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void dice_mem(address_map &map); - void dice_io(address_map &map); + void dice_mem(address_map &map) ATTR_COLD; + void dice_io(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_ppi; diff --git a/src/mame/ussr/specialsound.h b/src/mame/ussr/specialsound.h index 77059ed66b8..d717d74bca0 100644 --- a/src/mame/ussr/specialsound.h +++ b/src/mame/ussr/specialsound.h @@ -23,7 +23,7 @@ class specimx_sound_device : public device_t, public device_sound_interface protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // sound stream update overrides virtual void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; diff --git a/src/mame/ussr/tiamc1.h b/src/mame/ussr/tiamc1.h index 228da2412c6..60104b90773 100644 --- a/src/mame/ussr/tiamc1.h +++ b/src/mame/ussr/tiamc1.h @@ -25,8 +25,8 @@ class tiamc1_state : public driver_device void tiamc1(machine_config &config); protected: - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: std::unique_ptr m_videoram; @@ -70,10 +70,10 @@ class tiamc1_state : public driver_device required_device m_gfxdecode; required_device m_palette; - void kotrybolov_io_map(address_map &map); - void kotrybolov_map(address_map &map); - void tiamc1_io_map(address_map &map); - void tiamc1_map(address_map &map); + void kotrybolov_io_map(address_map &map) ATTR_COLD; + void kotrybolov_map(address_map &map) ATTR_COLD; + void tiamc1_io_map(address_map &map) ATTR_COLD; + void tiamc1_map(address_map &map) ATTR_COLD; optional_device m_speaker; void update_bg_palette(); diff --git a/src/mame/ussr/tiamc1_a.h b/src/mame/ussr/tiamc1_a.h index d2961a7b5dd..48a7cebd90f 100644 --- a/src/mame/ussr/tiamc1_a.h +++ b/src/mame/ussr/tiamc1_a.h @@ -22,7 +22,7 @@ class tiamc1_sound_device : public device_t, public device_sound_interface protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // sound stream update overrides virtual void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; diff --git a/src/mame/ussr/uknc.cpp b/src/mame/ussr/uknc.cpp index 78b0ba8d69c..115ada27fc3 100644 --- a/src/mame/ussr/uknc.cpp +++ b/src/mame/ussr/uknc.cpp @@ -39,8 +39,8 @@ class uknc_state : public driver_device void uknc(machine_config &config); private: - virtual void machine_reset() override; - virtual void machine_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); required_device m_maincpu; required_device m_subcpu; @@ -48,8 +48,8 @@ class uknc_state : public driver_device required_device m_cart; required_device m_cassette; - void uknc_mem(address_map &map); - void uknc_sub_mem(address_map &map); + void uknc_mem(address_map &map) ATTR_COLD; + void uknc_sub_mem(address_map &map) ATTR_COLD; }; diff --git a/src/mame/ussr/unior.cpp b/src/mame/ussr/unior.cpp index 1bbcd4e5f00..1cd79559441 100644 --- a/src/mame/ussr/unior.cpp +++ b/src/mame/ussr/unior.cpp @@ -90,15 +90,15 @@ class unior_state : public driver_device I8275_DRAW_CHARACTER_MEMBER(display_pixels); TIMER_DEVICE_CALLBACK_MEMBER(kansas_r); - void io_map(address_map &map); - void mem_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; u8 m_4c = 0U; u8 m_4e = 0U; bool m_txe = false, m_txd = false, m_rts = false, m_casspol = false; u8 m_cass_data[4]{}; - virtual void machine_reset() override; - virtual void machine_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; std::unique_ptr m_vram; memory_passthrough_handler m_rom_shadow_tap; required_device m_maincpu; diff --git a/src/mame/ussr/ut88.h b/src/mame/ussr/ut88.h index 6bfc817fe9e..b35d1f5b9ef 100644 --- a/src/mame/ussr/ut88.h +++ b/src/mame/ussr/ut88.h @@ -65,8 +65,8 @@ class ut88_state : public ut88_common void ut88(machine_config &config); private: - void machine_start() override; - void machine_reset() override; + void machine_start() override ATTR_COLD; + void machine_reset() override ATTR_COLD; uint8_t keyboard_r(offs_t offset); void keyboard_w(offs_t offset, uint8_t data); void sound_w(uint8_t data); @@ -76,8 +76,8 @@ class ut88_state : public ut88_common uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void io_map(address_map &map); - void mem_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; int m_keyboard_mask = 0; @@ -109,12 +109,12 @@ class ut88mini_state : public ut88_common void ut88mini(machine_config &config); private: - void machine_start() override; - void machine_reset() override; + void machine_start() override ATTR_COLD; + void machine_reset() override ATTR_COLD; TIMER_DEVICE_CALLBACK_MEMBER(display_timer); - void io_map(address_map &map); - void mem_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; uint8_t keyboard_r(); void led_w(offs_t offset, uint8_t data); diff --git a/src/mame/ussr/vector06.h b/src/mame/ussr/vector06.h index 0cbdcf494d6..8f8a08463df 100644 --- a/src/mame/ussr/vector06.h +++ b/src/mame/ussr/vector06.h @@ -76,14 +76,14 @@ class vector06_state : public driver_device void status_callback(uint8_t data); void ramdisk_w(uint8_t data); void speaker_w(int state); - void machine_start() override; - void machine_reset() override; + void machine_start() override ATTR_COLD; + void machine_reset() override ATTR_COLD; uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); IRQ_CALLBACK_MEMBER(irq_callback); void update_mem(); - void io_map(address_map &map); - void mem_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_region_ptr m_rom; diff --git a/src/mame/ussr/vta2000.cpp b/src/mame/ussr/vta2000.cpp index b49443c57cc..6f9b1035ee6 100644 --- a/src/mame/ussr/vta2000.cpp +++ b/src/mame/ussr/vta2000.cpp @@ -61,8 +61,8 @@ class vta2000_state : public driver_device I8275_DRAW_CHARACTER_MEMBER(draw_character); - void mem_map(address_map &map); - void io_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_mainpit; diff --git a/src/mame/valadon/bagman.h b/src/mame/valadon/bagman.h index 2b7c390457a..6e98c5fbd2c 100644 --- a/src/mame/valadon/bagman.h +++ b/src/mame/valadon/bagman.h @@ -52,9 +52,9 @@ class bagman_state : public driver_device TILE_GET_INFO_MEMBER(get_bg_tile_info); - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; void bagman_palette(palette_device &palette) const; void vblank_irq(int state); @@ -63,8 +63,8 @@ class bagman_state : public driver_device void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); void update_pal(); void bagman_base(machine_config &config); - void main_map(address_map &map); - void main_portmap(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void main_portmap(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_mainlatch; @@ -108,8 +108,8 @@ class pickin_state : public bagman_state uint8_t aysnd_r(); void aysnd_w(offs_t offset, uint8_t data); - void pickin_map(address_map &map); - void pickin_portmap(address_map &map); + void pickin_map(address_map &map) ATTR_COLD; + void pickin_portmap(address_map &map) ATTR_COLD; required_device_array m_aysnd; }; @@ -128,7 +128,7 @@ class squaitsa_state : public pickin_state template ioport_value dial_input_r(); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_ioport_array<2> m_dial; diff --git a/src/mame/valadon/tankbust.cpp b/src/mame/valadon/tankbust.cpp index b91ee34e7d0..ddf9286e8c6 100644 --- a/src/mame/valadon/tankbust.cpp +++ b/src/mame/valadon/tankbust.cpp @@ -64,9 +64,9 @@ class tankbust_state : public driver_device void tankbust(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -115,9 +115,9 @@ class tankbust_state : public driver_device TIMER_CALLBACK_MEMBER(soundlatch_callback); TIMER_CALLBACK_MEMBER(soundirqline_callback); - void main_map(address_map &map); - void map_cpu2(address_map &map); - void port_map_cpu2(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void map_cpu2(address_map &map) ATTR_COLD; + void port_map_cpu2(address_map &map) ATTR_COLD; }; diff --git a/src/mame/vectorgraphic/sbcvideo.h b/src/mame/vectorgraphic/sbcvideo.h index 490ecb9fa75..8bf5cca12ac 100644 --- a/src/mame/vectorgraphic/sbcvideo.h +++ b/src/mame/vectorgraphic/sbcvideo.h @@ -22,10 +22,10 @@ class vector_sbc_video_device : public device_t void res320_mapping_ram_w(offs_t offset, uint8_t data); protected: - virtual void device_start() override; - virtual void device_reset() override; - virtual ioport_constructor device_input_ports() 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 ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; private: MC6845_UPDATE_ROW(update_row); diff --git a/src/mame/vectorgraphic/v4_kbd.h b/src/mame/vectorgraphic/v4_kbd.h index 2e389051ae4..a9f798bed66 100644 --- a/src/mame/vectorgraphic/v4_kbd.h +++ b/src/mame/vectorgraphic/v4_kbd.h @@ -30,10 +30,10 @@ class vector4_keyboard_device : public device_t protected: // device-level overrides void device_resolve_objects() override; - void device_start() override; + void device_start() override ATTR_COLD; ioport_constructor device_input_ports() const override; - void device_add_mconfig(machine_config &config) override; - const tiny_rom_entry *device_rom_region() const override; + void device_add_mconfig(machine_config &config) override ATTR_COLD; + const tiny_rom_entry *device_rom_region() const override ATTR_COLD; private: // MCU handlers @@ -42,8 +42,8 @@ class vector4_keyboard_device : public device_t void leds_w(uint8_t data); // address maps - void prog_map(address_map &map); - void ext_map(address_map &map); + void prog_map(address_map &map) ATTR_COLD; + void ext_map(address_map &map) ATTR_COLD; // object finders required_device m_mcu; diff --git a/src/mame/vectorgraphic/vector4.cpp b/src/mame/vectorgraphic/vector4.cpp index 03e9eb49635..27bd19a282f 100644 --- a/src/mame/vectorgraphic/vector4.cpp +++ b/src/mame/vectorgraphic/vector4.cpp @@ -87,9 +87,9 @@ class vector4_state : public driver_device void vector4(machine_config &config); private: - void vector4_io(address_map &map); - void vector4_z80mem(address_map &map); - void vector4_8088mem(address_map &map); + void vector4_io(address_map &map) ATTR_COLD; + void vector4_z80mem(address_map &map) ATTR_COLD; + void vector4_8088mem(address_map &map) ATTR_COLD; void spr_w(uint8_t data); uint8_t msc_r(); void msc_w(uint8_t data) { machine_reset(); } @@ -99,8 +99,8 @@ class vector4_state : public driver_device int ppi_pc_r() { return m_ppi_pc; } uint8_t s100_r(offs_t offset) { return m_s100->sinp_r(offset+0x20); } void s100_w(offs_t offset, uint8_t data) { m_s100->sout_w(offset+0x20, data); } - void machine_start() override; - void machine_reset() override; + void machine_start() override ATTR_COLD; + void machine_reset() override ATTR_COLD; required_device m_maincpu; required_device m_8088cpu; diff --git a/src/mame/venture/looping.cpp b/src/mame/venture/looping.cpp index c463e88e08f..061b53ca288 100644 --- a/src/mame/venture/looping.cpp +++ b/src/mame/venture/looping.cpp @@ -109,9 +109,9 @@ class looping_state : public driver_device void init_looping(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: void flip_screen_x_w(int state); @@ -142,10 +142,10 @@ class looping_state : public driver_device INTERRUPT_GEN_MEMBER(interrupt); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); - void io_map(address_map &map); - void map(address_map &map); - void sound_io_map(address_map &map); - void sound_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void map(address_map &map) ATTR_COLD; + void sound_io_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; // memory pointers required_shared_ptr m_videoram; diff --git a/src/mame/venture/spcforce.cpp b/src/mame/venture/spcforce.cpp index 101a5a479e1..50beb531a51 100644 --- a/src/mame/venture/spcforce.cpp +++ b/src/mame/venture/spcforce.cpp @@ -72,7 +72,7 @@ class spcforce_state : public driver_device void spcforce(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: void sn76496_latch_w(uint8_t data); @@ -88,8 +88,8 @@ class spcforce_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void main_map(address_map &map); - void sound_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_mainlatch; diff --git a/src/mame/venture/suprridr.cpp b/src/mame/venture/suprridr.cpp index e35a0396672..6ce9a98d4bc 100644 --- a/src/mame/venture/suprridr.cpp +++ b/src/mame/venture/suprridr.cpp @@ -119,9 +119,9 @@ class suprridr_state : public driver_device ioport_value control_r(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -162,10 +162,10 @@ class suprridr_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void main_map(address_map &map); - void main_portmap(address_map &map); - void sound_map(address_map &map); - void sound_portmap(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void main_portmap(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; + void sound_portmap(address_map &map) ATTR_COLD; }; diff --git a/src/mame/verifone/tranz330.h b/src/mame/verifone/tranz330.h index 911a229aec9..1adddee6020 100644 --- a/src/mame/verifone/tranz330.h +++ b/src/mame/verifone/tranz330.h @@ -45,8 +45,8 @@ class tranz330_state : public driver_device void tranz330(machine_config &config); private: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; void syncb_w(int state); void clock_w(int state); @@ -57,8 +57,8 @@ class tranz330_state : public driver_device uint8_t pio_b_r(); uint8_t card_r(); - void tranz330_mem(address_map &map); - void tranz330_io(address_map &map); + void tranz330_mem(address_map &map) ATTR_COLD; + void tranz330_io(address_map &map) ATTR_COLD; required_device m_cpu; required_device m_ctc; diff --git a/src/mame/vidbrain/uv201.h b/src/mame/vidbrain/uv201.h index 060bb6e0426..83c58bd0c32 100644 --- a/src/mame/vidbrain/uv201.h +++ b/src/mame/vidbrain/uv201.h @@ -87,8 +87,8 @@ class uv201_device : public device_t, 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; TIMER_CALLBACK_MEMBER(y_update_tick); TIMER_CALLBACK_MEMBER(hblank_on); diff --git a/src/mame/vidbrain/vidbrain.cpp b/src/mame/vidbrain/vidbrain.cpp index 8faf5be51c9..d22fdff9be7 100644 --- a/src/mame/vidbrain/vidbrain.cpp +++ b/src/mame/vidbrain/vidbrain.cpp @@ -95,12 +95,12 @@ class vidbrain_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER( trigger_reset ); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: - void vidbrain_mem(address_map &map); - void vidbrain_io(address_map &map); + void vidbrain_mem(address_map &map) ATTR_COLD; + void vidbrain_io(address_map &map) ATTR_COLD; TIMER_CALLBACK_MEMBER(joystick_tick); diff --git a/src/mame/videoton/tvc.cpp b/src/mame/videoton/tvc.cpp index 9b2c09a3e1d..f1ab9090f0a 100644 --- a/src/mame/videoton/tvc.cpp +++ b/src/mame/videoton/tvc.cpp @@ -63,8 +63,8 @@ class tvc_state : public driver_device void tvc(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; required_device m_maincpu; required_device m_bank1; @@ -114,11 +114,11 @@ class tvc_state : public driver_device void tvc_palette(palette_device &palette) const; - void tvc_mem(address_map &map); - void tvc_bank1(address_map &map); - void tvc_bank3(address_map &map); - void tvc_bank4(address_map &map); - void tvc_io(address_map &map); + void tvc_mem(address_map &map) ATTR_COLD; + void tvc_bank1(address_map &map) ATTR_COLD; + void tvc_bank3(address_map &map) ATTR_COLD; + void tvc_bank4(address_map &map) ATTR_COLD; + void tvc_io(address_map &map) ATTR_COLD; }; class tvc64p_state : public tvc_state @@ -133,15 +133,15 @@ class tvc64p_state : public tvc_state void tvc64p(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: void vram_bank_w(uint8_t data); - void bank1_64p(address_map &map); - void bank3_64p(address_map &map); - void io_64p(address_map &map); + void bank1_64p(address_map &map) ATTR_COLD; + void bank3_64p(address_map &map) ATTR_COLD; + void io_64p(address_map &map) ATTR_COLD; required_memory_bank m_vram_bank1; required_memory_bank m_vram_bank3; diff --git a/src/mame/videoton/tvc_a.h b/src/mame/videoton/tvc_a.h index 419348dbe71..36c62349281 100644 --- a/src/mame/videoton/tvc_a.h +++ b/src/mame/videoton/tvc_a.h @@ -31,8 +31,8 @@ class tvc_sound_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 const &inputs, std::vector &outputs) override; TIMER_CALLBACK_MEMBER(trigger_int); diff --git a/src/mame/virtual/ldplayer.cpp b/src/mame/virtual/ldplayer.cpp index 65d9bece4f1..2463d24d225 100644 --- a/src/mame/virtual/ldplayer.cpp +++ b/src/mame/virtual/ldplayer.cpp @@ -45,8 +45,8 @@ class ldplayer_state : public driver_device protected: // device overrides - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; // callback hook chd_file *get_disc(); @@ -115,8 +115,8 @@ class pr8210_state : public ldplayer_state void pr8210(machine_config &config); protected: // device overrides - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; // command execution hook virtual void execute_command(int command) override; diff --git a/src/mame/virtual/vgmplay.cpp b/src/mame/virtual/vgmplay.cpp index e699d03eec7..0a2af2aa754 100644 --- a/src/mame/virtual/vgmplay.cpp +++ b/src/mame/virtual/vgmplay.cpp @@ -281,8 +281,8 @@ class vgmplay_device : public cpu_device void toggle_loop() { m_loop = !m_loop; } protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: enum { ACT_LED_PERSIST_MS = 100 }; @@ -439,39 +439,39 @@ class vgmplay_state : public driver_device template void c140_c219_w(offs_t offset, uint8_t data); void vgmplay(machine_config &config); - void file_map(address_map &map); - void soundchips_map(address_map &map); - void soundchips16le_map(address_map &map); - void soundchips16be_map(address_map &map); - template void segapcm_map(address_map &map); - template void rf5c68_map(address_map &map); - template void ym2608_map(address_map &map); - template void ym2610_adpcm_a_map(address_map &map); - template void ym2610_adpcm_b_map(address_map &map); - template void y8950_map(address_map &map); - template void ymf278b_map(address_map &map); - template void ymf271_map(address_map &map); - template void ymz280b_map(address_map &map); - template void rf5c164_map(address_map &map); - template void nescpu_map(address_map &map); - template void multipcm_map(address_map &map); - template void upd7759_map(address_map &map); - template void okim6295_map(address_map &map); - template void k054539_map(address_map &map); - template void c140_map(address_map &map); - template void c219_map(address_map &map); - template void k053260_map(address_map &map); - template void qsound_map(address_map &map); - template void scsp_map(address_map &map); - template void wswan_map(address_map &map); - template void es5503_map(address_map &map); - template void es5505_map(address_map &map); - template void x1_010_map(address_map &map); - template void c352_map(address_map &map); - template void ga20_map(address_map &map); + void file_map(address_map &map) ATTR_COLD; + void soundchips_map(address_map &map) ATTR_COLD; + void soundchips16le_map(address_map &map) ATTR_COLD; + void soundchips16be_map(address_map &map) ATTR_COLD; + template void segapcm_map(address_map &map) ATTR_COLD; + template void rf5c68_map(address_map &map) ATTR_COLD; + template void ym2608_map(address_map &map) ATTR_COLD; + template void ym2610_adpcm_a_map(address_map &map) ATTR_COLD; + template void ym2610_adpcm_b_map(address_map &map) ATTR_COLD; + template void y8950_map(address_map &map) ATTR_COLD; + template void ymf278b_map(address_map &map) ATTR_COLD; + template void ymf271_map(address_map &map) ATTR_COLD; + template void ymz280b_map(address_map &map) ATTR_COLD; + template void rf5c164_map(address_map &map) ATTR_COLD; + template void nescpu_map(address_map &map) ATTR_COLD; + template void multipcm_map(address_map &map) ATTR_COLD; + template void upd7759_map(address_map &map) ATTR_COLD; + template void okim6295_map(address_map &map) ATTR_COLD; + template void k054539_map(address_map &map) ATTR_COLD; + template void c140_map(address_map &map) ATTR_COLD; + template void c219_map(address_map &map) ATTR_COLD; + template void k053260_map(address_map &map) ATTR_COLD; + template void qsound_map(address_map &map) ATTR_COLD; + template void scsp_map(address_map &map) ATTR_COLD; + template void wswan_map(address_map &map) ATTR_COLD; + template void es5503_map(address_map &map) ATTR_COLD; + template void es5505_map(address_map &map) ATTR_COLD; + template void x1_010_map(address_map &map) ATTR_COLD; + template void c352_map(address_map &map) ATTR_COLD; + template void ga20_map(address_map &map) ATTR_COLD; private: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; uint32_t m_held_clock = 0; std::vector m_file_data; diff --git a/src/mame/virtual/wavesynth.cpp b/src/mame/virtual/wavesynth.cpp index c9a9d7d5d1f..931c8d8b5c0 100644 --- a/src/mame/virtual/wavesynth.cpp +++ b/src/mame/virtual/wavesynth.cpp @@ -21,7 +21,7 @@ class wavesynth_state : public driver_device private: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; required_device m_waveblaster; }; diff --git a/src/mame/visual/v100.cpp b/src/mame/visual/v100.cpp index 11de88bad6b..459790a0a8a 100644 --- a/src/mame/visual/v100.cpp +++ b/src/mame/visual/v100.cpp @@ -61,10 +61,10 @@ class v100_state : public driver_device u32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void io_map(address_map &map); - void mem_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; required_device m_maincpu; required_device m_screen; diff --git a/src/mame/visual/v102.cpp b/src/mame/visual/v102.cpp index bcb1e528abe..b84aeb4c4e6 100644 --- a/src/mame/visual/v102.cpp +++ b/src/mame/visual/v102.cpp @@ -38,15 +38,15 @@ class v102_state : public driver_device void v102(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: u32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); void hs_w(int state); - void io_map(address_map &map); - void mem_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_mpsc; diff --git a/src/mame/visual/v102_kbd.h b/src/mame/visual/v102_kbd.h index 557087b352a..9150072a760 100644 --- a/src/mame/visual/v102_kbd.h +++ b/src/mame/visual/v102_kbd.h @@ -18,13 +18,13 @@ class visual_mcs48_keyboard_device : public device_t protected: visual_mcs48_keyboard_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner); - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; u8 p1_r(); void p2_w(u8 data); void prog_w(int state); - void prog_map(address_map &map); - void ext_map(address_map &map); + void prog_map(address_map &map) ATTR_COLD; + void ext_map(address_map &map) ATTR_COLD; devcb_write_line m_txd_callback; required_device m_kbdc; @@ -40,9 +40,9 @@ class v102_keyboard_device : public visual_mcs48_keyboard_device v102_keyboard_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock = 0); protected: - virtual ioport_constructor device_input_ports() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual const tiny_rom_entry *device_rom_region() const override; + virtual ioport_constructor device_input_ports() const 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; }; class v550_keyboard_device : public visual_mcs48_keyboard_device @@ -51,9 +51,9 @@ class v550_keyboard_device : public visual_mcs48_keyboard_device v550_keyboard_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock = 0); protected: - virtual ioport_constructor device_input_ports() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual const tiny_rom_entry *device_rom_region() const override; + virtual ioport_constructor device_input_ports() const 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; }; DECLARE_DEVICE_TYPE(V102_KEYBOARD, v102_keyboard_device) diff --git a/src/mame/visual/v1050.h b/src/mame/visual/v1050.h index 4f80274a557..45ff147ddc9 100644 --- a/src/mame/visual/v1050.h +++ b/src/mame/visual/v1050.h @@ -158,14 +158,14 @@ class v1050_state : public driver_device MC6845_UPDATE_ROW(crtc_update_row); - void v1050_crt_mem(address_map &map); - void v1050_io(address_map &map); - void v1050_mem(address_map &map); + void v1050_crt_mem(address_map &map) ATTR_COLD; + void v1050_io(address_map &map) ATTR_COLD; + void v1050_mem(address_map &map) ATTR_COLD; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; void bankswitch(); void update_fdc(); diff --git a/src/mame/visual/v1050kb.h b/src/mame/visual/v1050kb.h index c1179088247..32c1b05c567 100644 --- a/src/mame/visual/v1050kb.h +++ b/src/mame/visual/v1050kb.h @@ -36,12 +36,12 @@ class v1050_keyboard_device : public device_t 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; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; private: required_device m_maincpu; diff --git a/src/mame/visual/v50.cpp b/src/mame/visual/v50.cpp index b238900af26..ad588d5808a 100644 --- a/src/mame/visual/v50.cpp +++ b/src/mame/visual/v50.cpp @@ -77,8 +77,8 @@ class visual50_state : public driver_device void visual50(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; @@ -91,9 +91,9 @@ class visual50_state : public driver_device required_shared_ptr m_vram; required_region_ptr m_chargen; - void mem_map(address_map &map); - void io_map(address_map &map); - void char_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; + void char_map(address_map &map) ATTR_COLD; SCN2672_DRAW_CHARACTER_MEMBER(draw_character); diff --git a/src/mame/visual/v50_kbd.h b/src/mame/visual/v50_kbd.h index f5114773ad8..63416c97492 100644 --- a/src/mame/visual/v50_kbd.h +++ b/src/mame/visual/v50_kbd.h @@ -34,11 +34,11 @@ class v50_kbd_device : public device_t protected: // device_t overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; - virtual void device_reset() override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: required_device m_mcu; diff --git a/src/mame/visual/v550.cpp b/src/mame/visual/v550.cpp index 747bc7203be..443e2823d37 100644 --- a/src/mame/visual/v550.cpp +++ b/src/mame/visual/v550.cpp @@ -45,12 +45,12 @@ class v550_state : public driver_device private: u32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect) { return 0; } - void mem_map(address_map &map); - void io_map(address_map &map); - void pvtc_char_map(address_map &map); - void pvtc_attr_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; + void pvtc_char_map(address_map &map) ATTR_COLD; + void pvtc_attr_map(address_map &map) ATTR_COLD; - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; required_device m_maincpu; required_device m_screen; diff --git a/src/mame/visual/xds.cpp b/src/mame/visual/xds.cpp index 714bb667fc7..7a0efb14499 100644 --- a/src/mame/visual/xds.cpp +++ b/src/mame/visual/xds.cpp @@ -85,8 +85,8 @@ class xds_state : public driver_device void xds19p(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; @@ -104,7 +104,7 @@ class xds_state : public driver_device uint8_t m_irq_mask = 0x00; - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); diff --git a/src/mame/visual/xds_kbd.h b/src/mame/visual/xds_kbd.h index 85f61188d78..73935591ae7 100644 --- a/src/mame/visual/xds_kbd.h +++ b/src/mame/visual/xds_kbd.h @@ -37,9 +37,9 @@ class xds_kbd_hle_device : protected: // device_t overrides - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; - virtual void device_reset() override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; // device_buffered_serial_interface overrides virtual void tra_callback() override; diff --git a/src/mame/votrax/votrhv.cpp b/src/mame/votrax/votrhv.cpp index de5b7c7306d..3b9a10d39ba 100644 --- a/src/mame/votrax/votrhv.cpp +++ b/src/mame/votrax/votrhv.cpp @@ -99,8 +99,8 @@ class votrhv_state : public driver_device void pho_done(int state); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; required_device m_reset; @@ -113,7 +113,7 @@ class votrhv_state : public driver_device bool m_scanflag; private: - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_votrax; @@ -141,8 +141,8 @@ class hc120_state : public votrhv_state { } private: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; virtual void key_check() override; virtual uint8_t input_r() override; diff --git a/src/mame/votrax/votrpss.cpp b/src/mame/votrax/votrpss.cpp index 2f32e854185..0596d688850 100644 --- a/src/mame/votrax/votrpss.cpp +++ b/src/mame/votrax/votrpss.cpp @@ -395,7 +395,7 @@ class votrpss_state : public driver_device void votrpss(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: void kbd_put(u8 data); @@ -409,8 +409,8 @@ class votrpss_state : public driver_device void write_uart_clock(int state); IRQ_CALLBACK_MEMBER(irq_ack); - void io_map(address_map &map); - void mem_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; uint8_t m_term_data = 0U; uint8_t m_porta = 0U; diff --git a/src/mame/votrax/votrtnt.cpp b/src/mame/votrax/votrtnt.cpp index 9a9ef331b96..7c4d6cbdf89 100644 --- a/src/mame/votrax/votrtnt.cpp +++ b/src/mame/votrax/votrtnt.cpp @@ -52,9 +52,9 @@ class votrtnt_state : public driver_device void votrtnt(machine_config &config); private: - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_votrax; diff --git a/src/mame/vsystem/crshrace.cpp b/src/mame/vsystem/crshrace.cpp index 04031649c79..3173795ea48 100644 --- a/src/mame/vsystem/crshrace.cpp +++ b/src/mame/vsystem/crshrace.cpp @@ -185,9 +185,9 @@ class crshrace_state : public driver_device void init_crshrace(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: // memory pointers @@ -223,9 +223,9 @@ class crshrace_state : public driver_device void draw_bg(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void draw_fg(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void main_map(address_map &map); - void sound_io_map(address_map &map); - void sound_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_io_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; [[maybe_unused]] void patch_code(uint16_t offset); }; diff --git a/src/mame/vsystem/f1gp.cpp b/src/mame/vsystem/f1gp.cpp index b533ce77259..6d4d67451aa 100644 --- a/src/mame/vsystem/f1gp.cpp +++ b/src/mame/vsystem/f1gp.cpp @@ -130,13 +130,13 @@ class f1gp_state : public driver_device void gfxctrl_w(uint8_t data); TILE_GET_INFO_MEMBER(get_fg_tile_info); - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; - void f1gp_cpu2_map(address_map &map); - void sound_io_map(address_map &map); - void sound_map(address_map &map); + void f1gp_cpu2_map(address_map &map) ATTR_COLD; + void sound_io_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; private: // memory pointers @@ -152,9 +152,9 @@ class f1gp_state : public driver_device uint32_t screen_update_f1gp(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); uint32_t screen_update_f1gpbl(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void f1gpbl_draw_sprites(screen_device &screen, bitmap_ind16 &bitmap,const rectangle &cliprect); - void f1gp_cpu1_map(address_map &map); - void f1gpbl_cpu1_map(address_map &map); - void f1gpbl_cpu2_map(address_map &map); + void f1gp_cpu1_map(address_map &map) ATTR_COLD; + void f1gpbl_cpu1_map(address_map &map) ATTR_COLD; + void f1gpbl_cpu2_map(address_map &map) ATTR_COLD; }; class f1gp2_state : public f1gp_state @@ -168,8 +168,8 @@ class f1gp2_state : public f1gp_state void f1gp2(machine_config &config); protected: - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: // video-related @@ -183,7 +183,7 @@ class f1gp2_state : public f1gp_state TILE_GET_INFO_MEMBER(get_roz_tile_info); uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void f1gp2_cpu1_map(address_map &map); + void f1gp2_cpu1_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/vsystem/fromanc2.h b/src/mame/vsystem/fromanc2.h index 9649b67b13f..6caaa798595 100644 --- a/src/mame/vsystem/fromanc2.h +++ b/src/mame/vsystem/fromanc2.h @@ -31,8 +31,8 @@ class fromanc2_base_state : public driver_device , m_in_key(*this, "KEY%u", 0U) { } - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; void sndcmd_w(uint16_t data); void portselect_w(uint16_t data); @@ -43,8 +43,8 @@ class fromanc2_base_state : public driver_device uint32_t screen_update_left(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); uint32_t screen_update_right(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void sound_io_map(address_map &map); - void sound_map(address_map &map); + void sound_io_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; // devices required_device m_maincpu; @@ -92,8 +92,8 @@ class fromanc2_state : public fromanc2_base_state int subcpu_nmi_r(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: void subcpu_w(uint16_t data); @@ -129,10 +129,10 @@ class fromanc2_state : public fromanc2_base_state void fromancr_vram_w(offs_t offset, uint16_t data, uint16_t mem_mask, int layer); void fromancr_gfxbank_w(int data); - void fromanc2_main_map(address_map &map); - void fromanc2_sub_io_map(address_map &map); - void fromanc2_sub_map(address_map &map); - void fromancr_main_map(address_map &map); + void fromanc2_main_map(address_map &map) ATTR_COLD; + void fromanc2_sub_io_map(address_map &map) ATTR_COLD; + void fromanc2_sub_map(address_map &map) ATTR_COLD; + void fromancr_main_map(address_map &map) ATTR_COLD; // devices required_device m_subcpu; @@ -164,7 +164,7 @@ class fromanc4_state : public fromanc2_base_state void init_fromanc4(); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; void fromanc4_videoram_0_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); void fromanc4_videoram_1_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); @@ -175,7 +175,7 @@ class fromanc4_state : public fromanc2_base_state void fromanc4_vram_w(offs_t offset, uint16_t data, uint16_t mem_mask, int layer); - void fromanc4_main_map(address_map &map); + void fromanc4_main_map(address_map &map) ATTR_COLD; // devices required_device m_uart; diff --git a/src/mame/vsystem/fromance.h b/src/mame/vsystem/fromance.h index 8e73f7da0d4..0e60aaf3ad4 100644 --- a/src/mame/vsystem/fromance.h +++ b/src/mame/vsystem/fromance.h @@ -43,8 +43,8 @@ class fromance_state : public driver_device void init_common(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; DECLARE_VIDEO_START(fromance); required_device m_maincpu; @@ -112,13 +112,13 @@ class fromance_state : public driver_device inline void get_nekkyoku_tile_info(tile_data &tileinfo, int tile_index, int layer); void crtc_refresh(); void fromance_adpcm_int(int state); - void fromance_main_map(address_map &map); - void fromance_sub_io_map(address_map &map); - void fromance_sub_map(address_map &map); - void idolmj_sub_io_map(address_map &map); - void nekkyoku_main_map(address_map &map); - void nekkyoku_sub_io_map(address_map &map); - void nekkyoku_sub_map(address_map &map); + void fromance_main_map(address_map &map) ATTR_COLD; + void fromance_sub_io_map(address_map &map) ATTR_COLD; + void fromance_sub_map(address_map &map) ATTR_COLD; + void idolmj_sub_io_map(address_map &map) ATTR_COLD; + void nekkyoku_main_map(address_map &map) ATTR_COLD; + void nekkyoku_sub_io_map(address_map &map) ATTR_COLD; + void nekkyoku_sub_map(address_map &map) ATTR_COLD; }; #endif // MAME_VSYSTEM_FROMANCE_H diff --git a/src/mame/vsystem/gstriker.cpp b/src/mame/vsystem/gstriker.cpp index bcf5071d074..79220645abd 100644 --- a/src/mame/vsystem/gstriker.cpp +++ b/src/mame/vsystem/gstriker.cpp @@ -240,8 +240,8 @@ class gstriker_state : public driver_device void init_twcup94b(); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -287,10 +287,10 @@ class gstriker_state : public driver_device void screen_vblank(int state); void mcu_init(); - void gstriker_map(address_map &map); - void sound_io_map(address_map &map); - void sound_map(address_map &map); - void twcup94_map(address_map &map); + void gstriker_map(address_map &map) ATTR_COLD; + void sound_io_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; + void twcup94_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/vsystem/inufuku.cpp b/src/mame/vsystem/inufuku.cpp index 2bfbff637c2..9e6192ecc29 100644 --- a/src/mame/vsystem/inufuku.cpp +++ b/src/mame/vsystem/inufuku.cpp @@ -120,9 +120,9 @@ class inufuku_state : public driver_device int soundlatch_pending_r(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: // memory pointers @@ -165,9 +165,9 @@ class inufuku_state : public driver_device u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void main_map(address_map &map); - void sound_io_map(address_map &map); - void sound_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_io_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/vsystem/mb60553.h b/src/mame/vsystem/mb60553.h index b18ad1a1a4d..1546c08cb16 100644 --- a/src/mame/vsystem/mb60553.h +++ b/src/mame/vsystem/mb60553.h @@ -33,8 +33,8 @@ class mb60553_zooming_tilemap_device : public device_t uint16_t line_r(offs_t offset); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: diff --git a/src/mame/vsystem/ojankohs.h b/src/mame/vsystem/ojankohs.h index 139b64637c0..f90e8012b4b 100644 --- a/src/mame/vsystem/ojankohs.h +++ b/src/mame/vsystem/ojankohs.h @@ -44,9 +44,9 @@ class ojankohs_state : public driver_device m_dsw(*this, "dsw%u", 1U) { } - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; void common_state_saving(); @@ -107,8 +107,8 @@ class ojankohs_state : public driver_device uint8_t dipsw2_r(); void gfxreg_w(uint8_t data); - void io_map(address_map &map); - void map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void map(address_map &map) ATTR_COLD; }; class ojankoy_state : public ojankohs_state @@ -125,9 +125,9 @@ class ojankoy_state : public ojankohs_state ojankohs_state(mconfig, type, tag, vramsize, pramsize) { } - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; - void map(address_map &map); + void map(address_map &map) ATTR_COLD; void rombank_adpcm_reset_w(uint8_t data); @@ -135,7 +135,7 @@ class ojankoy_state : public ojankohs_state void coinctr_w(uint8_t data); TILE_GET_INFO_MEMBER(get_tile_info); void palette(palette_device &palette) const; - void io_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; }; class ccasino_state : public ojankoy_state @@ -158,7 +158,7 @@ class ccasino_state : public ojankoy_state uint8_t dipsw4_r(); void coinctr_w(uint8_t data); void palette_w(offs_t offset, uint8_t data); - void io_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; }; class ojankoc_state : public ojankohs_state @@ -171,8 +171,8 @@ class ojankoc_state : public ojankohs_state void ojankoc(machine_config &config); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: void ctrl_w(uint8_t data); @@ -182,8 +182,8 @@ class ojankoc_state : public ojankohs_state void videoram_w(offs_t offset, uint8_t data); uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void flipscreen(uint8_t data); - void io_map(address_map &map); - void map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void map(address_map &map) ATTR_COLD; }; #endif // MAME_VSYSTEM_OJANKOHS_H diff --git a/src/mame/vsystem/pipedrm.cpp b/src/mame/vsystem/pipedrm.cpp index 5b5fbbfadc2..00fb19de3a6 100644 --- a/src/mame/vsystem/pipedrm.cpp +++ b/src/mame/vsystem/pipedrm.cpp @@ -188,17 +188,17 @@ class hatris_state : public fromance_state void init_hatris(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; required_device m_soundlatch; required_memory_bank m_soundbank; - void sound_portmap(address_map &map); - void main_map(address_map &map); - void main_portmap(address_map &map); - void sound_map(address_map &map); + void sound_portmap(address_map &map) ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; + void main_portmap(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; private: void bankswitch_w(uint8_t data); @@ -220,7 +220,7 @@ class pipedrm_state : public hatris_state void init_pipedrm(); protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: required_device m_spr_old; @@ -230,7 +230,7 @@ class pipedrm_state : public hatris_state void sound_bankswitch_w(uint8_t data); - void sound_portmap(address_map &map); + void sound_portmap(address_map &map) ATTR_COLD; uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); }; diff --git a/src/mame/vsystem/pspikes.cpp b/src/mame/vsystem/pspikes.cpp index f4c754da162..b934c331d0f 100644 --- a/src/mame/vsystem/pspikes.cpp +++ b/src/mame/vsystem/pspikes.cpp @@ -145,7 +145,7 @@ class pspikes_base_state : public driver_device void pspikesc_map(address_map &map) ATTR_COLD; void aerfboo2_map(address_map &map) ATTR_COLD; - void oki_map(address_map &map); + void oki_map(address_map &map) ATTR_COLD; // devices referenced above required_device m_maincpu; @@ -211,12 +211,12 @@ class pspikes_sound_cpu_state : public pspikes_base_state private: void aerfboot_okim6295_banking_w(uint8_t data); - void kickball_map(address_map &map); - void aerfboot_map(address_map &map); + void kickball_map(address_map &map) ATTR_COLD; + void aerfboot_map(address_map &map) ATTR_COLD; - void aerfboot_sound_map(address_map &map); - void kickball_sound_map(address_map &map); - void kickball_sound_portmap(address_map &map); + void aerfboot_sound_map(address_map &map) ATTR_COLD; + void kickball_sound_map(address_map &map) ATTR_COLD; + void kickball_sound_portmap(address_map &map) ATTR_COLD; }; @@ -241,8 +241,8 @@ class spikes91_state : public pspikes_sound_cpu_state void spikes91_draw_sprites(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void spikes91_map(address_map &map); - void spikes91_sound_map(address_map &map); + void spikes91_map(address_map &map) ATTR_COLD; + void spikes91_sound_map(address_map &map) ATTR_COLD; optional_shared_ptr m_tx_tilemap_ram; @@ -266,10 +266,10 @@ class karatblzbl_state : public pspikes_sound_cpu_state void d7759_write_port_0_w(uint8_t data); void d7759_reset_w(uint8_t data); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; - void sound_map(address_map &map); - void sound_portmap(address_map &map); + void sound_map(address_map &map) ATTR_COLD; + void sound_portmap(address_map &map) ATTR_COLD; required_device m_upd7759; }; @@ -296,8 +296,8 @@ class wbbc97_state : public pspikes_sound_cpu_state void draw_bitmap(bitmap_rgb32 &bitmap); - void main_map(address_map &map); - void sound_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; required_shared_ptr m_bitmapram; @@ -326,7 +326,7 @@ class pspikes_banked_sound_state : public pspikes_sound_cpu_state DECLARE_VIDEO_START(spinlbrk); - void sound_map(address_map &map); + void sound_map(address_map &map) ATTR_COLD; void pspikes_sound_portmap(address_map &map) ATTR_COLD; required_memory_bank m_soundbank; @@ -341,11 +341,11 @@ class pspikes_banked_sound_state : public pspikes_sound_cpu_state uint32_t screen_update_spinlbrk(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); uint32_t screen_update_turbofrc(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void pspikes_map(address_map &map); - void karatblz_map(address_map &map); + void pspikes_map(address_map &map) ATTR_COLD; + void karatblz_map(address_map &map) ATTR_COLD; void spinlbrk_map(address_map &map) ATTR_COLD; void turbofrc_map(address_map &map) ATTR_COLD; - void aerofgtb_map(address_map &map); + void aerofgtb_map(address_map &map) ATTR_COLD; void spinlbrk_sound_portmap(address_map &map) ATTR_COLD; }; diff --git a/src/mame/vsystem/rpunch.cpp b/src/mame/vsystem/rpunch.cpp index 8d87fed6eac..09f7974e4e4 100644 --- a/src/mame/vsystem/rpunch.cpp +++ b/src/mame/vsystem/rpunch.cpp @@ -172,13 +172,13 @@ class rpunch_state : public driver_device void set_sprite_palette(int val) { m_sprite_palette = val; } void set_sprite_xoffs(int val) { m_sprite_xoffs = val; } - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; - void svolley_map(address_map &map); - void rpunch_map(address_map &map); - void svolleybl_main_map(address_map &map); - void sound_map(address_map &map); - void svolleybl_sound_map(address_map &map); + void svolley_map(address_map &map) ATTR_COLD; + void rpunch_map(address_map &map) ATTR_COLD; + void svolleybl_main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; + void svolleybl_sound_map(address_map &map) ATTR_COLD; private: // hardware configuration @@ -224,7 +224,7 @@ class svolley_state : public rpunch_state void svolley(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; }; diff --git a/src/mame/vsystem/suprslam.cpp b/src/mame/vsystem/suprslam.cpp index b30be9a041b..733b85e3f98 100644 --- a/src/mame/vsystem/suprslam.cpp +++ b/src/mame/vsystem/suprslam.cpp @@ -123,9 +123,9 @@ class suprslam_state : public driver_device void suprslam(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: // devices @@ -162,9 +162,9 @@ class suprslam_state : public driver_device TILE_GET_INFO_MEMBER(get_bg_tile_info); uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void sound_io_map(address_map &map); - void sound_map(address_map &map); - void main_map(address_map &map); + void sound_io_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; + void main_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/vsystem/tail2nos.cpp b/src/mame/vsystem/tail2nos.cpp index 71220ae5840..9cccdee20d7 100644 --- a/src/mame/vsystem/tail2nos.cpp +++ b/src/mame/vsystem/tail2nos.cpp @@ -57,8 +57,8 @@ class tail2nos_state : public driver_device template ioport_value analog_in_r(); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: // memory pointers @@ -95,9 +95,9 @@ class tail2nos_state : public driver_device void postload(); void draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect ); K051316_CB_MEMBER(zoom_callback); - void main_map(address_map &map); - void sound_map(address_map &map); - void sound_port_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; + void sound_port_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/vsystem/taotaido.cpp b/src/mame/vsystem/taotaido.cpp index b2fbb93b082..8c57e990b25 100644 --- a/src/mame/vsystem/taotaido.cpp +++ b/src/mame/vsystem/taotaido.cpp @@ -120,8 +120,8 @@ class taotaido_state : public driver_device void taotaido(machine_config &config); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -160,9 +160,9 @@ class taotaido_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void screen_vblank(int state); uint32_t tile_callback(uint32_t code); - void main_map(address_map &map); - void sound_map(address_map &map); - void sound_port_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; + void sound_port_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/vsystem/vs9209.h b/src/mame/vsystem/vs9209.h index c8dee973599..d665618afbd 100644 --- a/src/mame/vsystem/vs9209.h +++ b/src/mame/vsystem/vs9209.h @@ -49,8 +49,8 @@ class vs9209_device : public device_t 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; private: // input/output callbacks diff --git a/src/mame/vsystem/vs920a.h b/src/mame/vsystem/vs920a.h index 55d970c0605..4bc3fb6228b 100644 --- a/src/mame/vsystem/vs920a.h +++ b/src/mame/vsystem/vs920a.h @@ -24,8 +24,8 @@ class vs920a_text_tilemap_device : public device_t uint16_t vram_r(offs_t offset); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: TILE_GET_INFO_MEMBER(get_tile_info); diff --git a/src/mame/vsystem/vsystem_gga.h b/src/mame/vsystem/vsystem_gga.h index 01987643fd7..076a1ad51b4 100644 --- a/src/mame/vsystem/vsystem_gga.h +++ b/src/mame/vsystem/vsystem_gga.h @@ -70,7 +70,7 @@ class vsystem_gga_device : public device_t, public device_video_interface protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: // internal state diff --git a/src/mame/vsystem/vsystem_spr.h b/src/mame/vsystem/vsystem_spr.h index a6b768d75b5..8e5ff7686b4 100644 --- a/src/mame/vsystem/vsystem_spr.h +++ b/src/mame/vsystem/vsystem_spr.h @@ -38,8 +38,8 @@ class vsystem_spr_device : public device_t, public device_gfx_interface void draw_sprites(uint16_t const *spriteram, int spriteram_bytes, screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: struct sprite_attributes diff --git a/src/mame/vsystem/vsystem_spr2.h b/src/mame/vsystem/vsystem_spr2.h index 0f393f9a5b7..2a08cdea8d8 100644 --- a/src/mame/vsystem/vsystem_spr2.h +++ b/src/mame/vsystem/vsystem_spr2.h @@ -31,8 +31,8 @@ class vsystem_spr2_device : public device_t, public device_gfx_interface void draw_sprites(uint16_t const *spriteram3, int spriteram3_bytes, int spritepalettebank, bitmap_rgb32 &bitmap, const rectangle &cliprect, bitmap_ind8 &priority_bitmap, int pri_param, bool flip_screen = false); protected: - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; private: struct sprite_attributes diff --git a/src/mame/vsystem/welltris.cpp b/src/mame/vsystem/welltris.cpp index 6b88e26d2c4..59bb673a28a 100644 --- a/src/mame/vsystem/welltris.cpp +++ b/src/mame/vsystem/welltris.cpp @@ -354,8 +354,8 @@ class welltris_state : public driver_device void init_welltris(); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -388,9 +388,9 @@ class welltris_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void draw_background(bitmap_ind16 &bitmap, const rectangle &cliprect); void setbank(int num, int bank); - void main_map(address_map &map); - void sound_map(address_map &map); - void sound_port_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; + void sound_port_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/vtech/clickstart.cpp b/src/mame/vtech/clickstart.cpp index 9d16aaf9da5..5082cdaf81e 100644 --- a/src/mame/vtech/clickstart.cpp +++ b/src/mame/vtech/clickstart.cpp @@ -104,10 +104,10 @@ class clickstart_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(key_update); private: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; DECLARE_DEVICE_IMAGE_LOAD_MEMBER(cart_load); diff --git a/src/mame/vtech/crvision.h b/src/mame/vtech/crvision.h index b41faa75c74..015ad37a647 100644 --- a/src/mame/vtech/crvision.h +++ b/src/mame/vtech/crvision.h @@ -56,11 +56,11 @@ class crvision_state : public driver_device required_device m_ram; optional_ioport_array<8> m_io_keypad[4]; - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; uint8_t m_keylatch = 0U; private: - void crvision_map(address_map &map); + void crvision_map(address_map &map) ATTR_COLD; uint8_t read_keyboard(u8 pa); void pia_pa_w(uint8_t data); @@ -109,8 +109,8 @@ class laser2001_state : public crvision_state int pia_cb1_r(); void pia_cb2_w(int state); - void lasr2001_map(address_map &map); - virtual void machine_start() override; + void lasr2001_map(address_map &map) ATTR_COLD; + virtual void machine_start() override ATTR_COLD; }; #endif // MAME_VTECH_CRVISION_H diff --git a/src/mame/vtech/gamemachine.cpp b/src/mame/vtech/gamemachine.cpp index 0d034018ec4..38708d9650e 100644 --- a/src/mame/vtech/gamemachine.cpp +++ b/src/mame/vtech/gamemachine.cpp @@ -127,7 +127,7 @@ class gm_state : public driver_device void gamemach(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: // devices/pointers @@ -142,8 +142,8 @@ class gm_state : public driver_device u8 m_seg_data = 0; u8 m_sound_data = 0; - void main_map(address_map &map); - void main_io(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void main_io(address_map &map) ATTR_COLD; void update_display(); void mux1_w(u8 data); diff --git a/src/mame/vtech/geniusiq.cpp b/src/mame/vtech/geniusiq.cpp index 39a0b14fc03..e0fba0f15d6 100644 --- a/src/mame/vtech/geniusiq.cpp +++ b/src/mame/vtech/geniusiq.cpp @@ -187,8 +187,8 @@ class geniusiq_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(send_mouse_input); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: enum @@ -222,7 +222,7 @@ class geniusiq_state : public driver_device DECLARE_DEVICE_IMAGE_LOAD_MEMBER(cart_load); DECLARE_DEVICE_IMAGE_UNLOAD_MEMBER(cart_unload); - void geniusiq_mem(address_map &map); + void geniusiq_mem(address_map &map) ATTR_COLD; uint16_t m_gfx_y = 0; uint16_t m_gfx_x = 0; diff --git a/src/mame/vtech/geniusjr.cpp b/src/mame/vtech/geniusjr.cpp index 877b7830793..0cc63f33733 100644 --- a/src/mame/vtech/geniusjr.cpp +++ b/src/mame/vtech/geniusjr.cpp @@ -219,12 +219,12 @@ class geniusjr_state : public driver_device void gjmovie(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: - void gj4000_map(address_map &map); - void gj5000_map(address_map &map); - void gjrstar_map(address_map &map); + void gj4000_map(address_map &map) ATTR_COLD; + void gj5000_map(address_map &map) ATTR_COLD; + void gjrstar_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_memory_bank m_rombank; diff --git a/src/mame/vtech/glcx.cpp b/src/mame/vtech/glcx.cpp index 7bfb9d2e984..4b729b2b8a6 100644 --- a/src/mame/vtech/glcx.cpp +++ b/src/mame/vtech/glcx.cpp @@ -67,7 +67,7 @@ class glcx_state : public driver_device private: virtual uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; }; diff --git a/src/mame/vtech/innotv_innotabmax.cpp b/src/mame/vtech/innotv_innotabmax.cpp index 6aa0a7b0816..af9239a772d 100644 --- a/src/mame/vtech/innotv_innotabmax.cpp +++ b/src/mame/vtech/innotv_innotabmax.cpp @@ -86,10 +86,10 @@ class vtech_innotv_innotabmax_state : public driver_device void vtech_innotv_innotabmax(machine_config &config); private: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); diff --git a/src/mame/vtech/inteladv.cpp b/src/mame/vtech/inteladv.cpp index 46a83e46d6a..f3cab7bc97e 100644 --- a/src/mame/vtech/inteladv.cpp +++ b/src/mame/vtech/inteladv.cpp @@ -29,8 +29,8 @@ class inteladv_state : public driver_device void st2202_power_w(int state); private: - void inteladv_map(address_map &map); - void dyndesk_map(address_map &map); + void inteladv_map(address_map &map) ATTR_COLD; + void dyndesk_map(address_map &map) ATTR_COLD; required_device m_maincpu; }; diff --git a/src/mame/vtech/iqunlim.cpp b/src/mame/vtech/iqunlim.cpp index 858461c9c03..a6169656da1 100644 --- a/src/mame/vtech/iqunlim.cpp +++ b/src/mame/vtech/iqunlim.cpp @@ -89,10 +89,10 @@ class iqunlim_state : public driver_device void iqunlim(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); diff --git a/src/mame/vtech/kidsupstar.cpp b/src/mame/vtech/kidsupstar.cpp index f9448e78de5..69c2d1a6ebe 100644 --- a/src/mame/vtech/kidsupstar.cpp +++ b/src/mame/vtech/kidsupstar.cpp @@ -36,8 +36,8 @@ class kidsupstar_state : public driver_device void kidsupstar(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; required_device m_maincpu; required_device m_screen; diff --git a/src/mame/vtech/laser3k.cpp b/src/mame/vtech/laser3k.cpp index d96b2e04eeb..334a81a6485 100644 --- a/src/mame/vtech/laser3k.cpp +++ b/src/mame/vtech/laser3k.cpp @@ -96,8 +96,8 @@ class laser3k_state : public driver_device void laser3k(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: uint8_t ram_r(offs_t offset); @@ -116,8 +116,8 @@ class laser3k_state : public driver_device int ay3600_control_r(); void ay3600_data_ready_w(int state); - void banks_map(address_map &map); - void laser3k_map(address_map &map); + void banks_map(address_map &map) ATTR_COLD; + void laser3k_map(address_map &map) ATTR_COLD; void plot_text_character(bitmap_ind16 &bitmap, int xpos, int ypos, int xscale, uint32_t code, const uint8_t *textgfx_data, uint32_t textgfx_datalen); void do_io(int offset); diff --git a/src/mame/vtech/lcmate2.cpp b/src/mame/vtech/lcmate2.cpp index 421d0b46646..2e2a022fac4 100644 --- a/src/mame/vtech/lcmate2.cpp +++ b/src/mame/vtech/lcmate2.cpp @@ -61,7 +61,7 @@ class lcmate2_state : public driver_device void lcmate2(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_maincpu; @@ -74,8 +74,8 @@ class lcmate2_state : public driver_device void speaker_w(u8 data); void bankswitch_w(u8 data); void lcmate2_palette(palette_device &palette) const; - void io_map(address_map &map); - void mem_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; }; void lcmate2_state::speaker_w(u8 data) diff --git a/src/mame/vtech/learnwin.cpp b/src/mame/vtech/learnwin.cpp index 33a3decd1df..3c16158181c 100644 --- a/src/mame/vtech/learnwin.cpp +++ b/src/mame/vtech/learnwin.cpp @@ -73,8 +73,8 @@ class learnwin_state : public driver_device } // driver_device overrides - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; }; diff --git a/src/mame/vtech/pc1000.cpp b/src/mame/vtech/pc1000.cpp index 90fdaaf7c43..49d35bc3f67 100644 --- a/src/mame/vtech/pc1000.cpp +++ b/src/mame/vtech/pc1000.cpp @@ -39,8 +39,8 @@ class pc1000_state : public driver_device void pc1000(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; uint8_t kb_r(offs_t offset); void lcdc_data_w(uint8_t data); @@ -55,8 +55,8 @@ class pc1000_state : public driver_device void pc1000_palette(palette_device &palette) const; DECLARE_DEVICE_IMAGE_LOAD_MEMBER(cart_load); - void pc1000_mem(address_map &map); - void pc1000_io(address_map &map); + void pc1000_mem(address_map &map) ATTR_COLD; + void pc1000_io(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_lcdc; diff --git a/src/mame/vtech/pc2000.cpp b/src/mame/vtech/pc2000.cpp index fdfb8c22e8c..88a67d2c261 100644 --- a/src/mame/vtech/pc2000.cpp +++ b/src/mame/vtech/pc2000.cpp @@ -68,8 +68,8 @@ class pc2000_state : public driver_device void gl2000(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; uint8_t key_matrix_r(offs_t offset); void key_matrix_w(uint8_t data); @@ -81,8 +81,8 @@ class pc2000_state : public driver_device void pc2000_palette(palette_device &palette) const; DECLARE_DEVICE_IMAGE_LOAD_MEMBER(cart_load); - void pc2000_io(address_map &map); - void pc2000_mem(address_map &map); + void pc2000_io(address_map &map) ATTR_COLD; + void pc2000_mem(address_map &map) ATTR_COLD; required_device m_maincpu; optional_device m_lcdc; @@ -119,9 +119,9 @@ class gl3000s_state : public pc2000_state void gl3000s(machine_config &config); protected: - void machine_start() override; + void machine_start() override ATTR_COLD; uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void gl3000s_io(address_map &map); + void gl3000s_io(address_map &map) ATTR_COLD; private: int sed1520_screen_update(bitmap_ind16 &bitmap, const rectangle &cliprect, uint8_t *vram, int start_line, int adc, int start_x); @@ -147,7 +147,7 @@ class gl4004_state : public pc2000_state void gl4000(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; HD44780_PIXEL_UPDATE(gl4000_pixel_update); }; diff --git a/src/mame/vtech/pc4.h b/src/mame/vtech/pc4.h index 2905c5fcdbb..01245f538e6 100644 --- a/src/mame/vtech/pc4.h +++ b/src/mame/vtech/pc4.h @@ -28,7 +28,7 @@ class pc4_state : public driver_device void pc4(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; TIMER_CALLBACK_MEMBER(clear_busy_flag); TIMER_CALLBACK_MEMBER(blink_tick); @@ -52,8 +52,8 @@ class pc4_state : public driver_device void pc4_palette(palette_device &palette) const; - void pc4_io(address_map &map); - void pc4_mem(address_map &map); + void pc4_io(address_map &map) ATTR_COLD; + void pc4_mem(address_map &map) ATTR_COLD; emu_timer *m_blink_timer = nullptr; emu_timer *m_busy_timer = nullptr; diff --git a/src/mame/vtech/phusion.cpp b/src/mame/vtech/phusion.cpp index 7c153658233..a6a3af57f6d 100644 --- a/src/mame/vtech/phusion.cpp +++ b/src/mame/vtech/phusion.cpp @@ -40,7 +40,7 @@ class phusion_state : public driver_device private: uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void phusion_map(address_map &map); + void phusion_map(address_map &map) ATTR_COLD; required_device m_maincpu; }; diff --git a/src/mame/vtech/prestige.cpp b/src/mame/vtech/prestige.cpp index ea4ae8a7642..0245131de4f 100644 --- a/src/mame/vtech/prestige.cpp +++ b/src/mame/vtech/prestige.cpp @@ -137,7 +137,7 @@ class prestige_state : public driver_device void gl7007sl(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_maincpu; @@ -185,9 +185,9 @@ class prestige_state : public driver_device TIMER_DEVICE_CALLBACK_MEMBER(irq_timer); IRQ_CALLBACK_MEMBER(prestige_int_ack); - void glcolor_io(address_map &map); - void prestige_io(address_map &map); - void prestige_mem(address_map &map); + void glcolor_io(address_map &map) ATTR_COLD; + void prestige_io(address_map &map) ATTR_COLD; + void prestige_mem(address_map &map) ATTR_COLD; }; diff --git a/src/mame/vtech/socrates.cpp b/src/mame/vtech/socrates.cpp index 4f6e69213a3..e19425645fe 100644 --- a/src/mame/vtech/socrates.cpp +++ b/src/mame/vtech/socrates.cpp @@ -128,14 +128,14 @@ class socrates_state : public driver_device void init_vpainter(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; - void socrates_mem(address_map &map); - void socrates_io(address_map &map); - void socrates_rambank_map(address_map &map); - void socrates_rombank_map(address_map &map); + void socrates_mem(address_map &map) ATTR_COLD; + void socrates_io(address_map &map) ATTR_COLD; + void socrates_rambank_map(address_map &map) ATTR_COLD; + void socrates_rombank_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_sound; @@ -222,7 +222,7 @@ class iqunlimz_state : public socrates_state DECLARE_INPUT_CHANGED_MEMBER( send_input ); protected: - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; private: uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); @@ -231,10 +231,10 @@ class iqunlimz_state : public socrates_state void video_regs_w(offs_t offset, uint8_t data); uint8_t status_r(); - void iqunlimz_io(address_map &map); - void iqunlimz_mem(address_map &map); - void iqunlimz_rambank_map(address_map &map); - void iqunlimz_rombank_map(address_map &map); + void iqunlimz_io(address_map &map) ATTR_COLD; + void iqunlimz_mem(address_map &map) ATTR_COLD; + void iqunlimz_rambank_map(address_map &map) ATTR_COLD; + void iqunlimz_rombank_map(address_map &map) ATTR_COLD; int get_color(int index, int y); diff --git a/src/mame/vtech/socrates_a.h b/src/mame/vtech/socrates_a.h index 0fc2085519d..2c041ae3389 100644 --- a/src/mame/vtech/socrates_a.h +++ b/src/mame/vtech/socrates_a.h @@ -19,7 +19,7 @@ class socrates_snd_device : public device_t, protected: // device-level overrides - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; // sound stream update overrides virtual void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; diff --git a/src/mame/vtech/storio.cpp b/src/mame/vtech/storio.cpp index 765b98f58d3..cc7a3e4253d 100644 --- a/src/mame/vtech/storio.cpp +++ b/src/mame/vtech/storio.cpp @@ -49,8 +49,8 @@ class vtech_storio_state : public driver_device void vtech_storio(machine_config &config); private: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; void vtech_storio_base(machine_config &config); diff --git a/src/mame/vtech/vsmile.h b/src/mame/vtech/vsmile.h index 57ec39e39e7..d647543520b 100644 --- a/src/mame/vtech/vsmile.h +++ b/src/mame/vtech/vsmile.h @@ -46,9 +46,9 @@ class vsmile_base_state : public driver_device void vsmile_base(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; void chip_sel_w(uint8_t data); @@ -79,10 +79,10 @@ class vsmile_state : public vsmile_base_state void vsmilep(machine_config &config); private: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; - void banked_map(address_map &map); + void banked_map(address_map &map) ATTR_COLD; void ctrl_tx_w(uint8_t data); template void ctrl_rts_w(int state); @@ -168,10 +168,10 @@ class vsmileb_state : public vsmile_base_state template DECLARE_INPUT_CHANGED_MEMBER(sw_mode); private: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; - void banked_map(address_map &map); + void banked_map(address_map &map) ATTR_COLD; uint16_t porta_r(); uint16_t portb_r(); diff --git a/src/mame/vtech/vsmilepro.cpp b/src/mame/vtech/vsmilepro.cpp index 9d7b401a5d8..a5ccf3f80ea 100644 --- a/src/mame/vtech/vsmilepro.cpp +++ b/src/mame/vtech/vsmilepro.cpp @@ -40,7 +40,7 @@ class vsmilpro_state : public driver_device void vsmilpro(machine_config &config); private: - void vsmilpro_map(address_map &map); + void vsmilpro_map(address_map &map) ATTR_COLD; required_device m_maincpu; }; diff --git a/src/mame/vtech/vtech1.cpp b/src/mame/vtech/vtech1.cpp index 7f705c91acb..25012325fc2 100644 --- a/src/mame/vtech/vtech1.cpp +++ b/src/mame/vtech/vtech1.cpp @@ -84,10 +84,10 @@ class vtech1_base_state : public driver_device void vtech1(machine_config &config); - void laser110_mem(address_map &map); - void laser210_mem(address_map &map); - void laser310_mem(address_map &map); - void vtech1_io(address_map &map); + void laser110_mem(address_map &map) ATTR_COLD; + void laser210_mem(address_map &map) ATTR_COLD; + void laser310_mem(address_map &map) ATTR_COLD; + void vtech1_io(address_map &map) ATTR_COLD; protected: required_device m_maincpu; @@ -123,7 +123,7 @@ class vtech1_state : public vtech1_base_state void laser210(machine_config &config); protected: - void machine_start() override; + void machine_start() override ATTR_COLD; private: memory_share_creator m_vram; @@ -142,7 +142,7 @@ class laser310h_state : public vtech1_base_state void laser310h(machine_config &config); protected: - void machine_start() override; + void machine_start() override ATTR_COLD; private: memory_share_creator m_vram; @@ -151,8 +151,8 @@ class laser310h_state : public vtech1_base_state void video_bank_w(uint8_t data); uint8_t mc6847_videoram_r(offs_t offset); - void vtech1_shrg_mem(address_map &map); - void vtech1_shrg_io(address_map &map); + void vtech1_shrg_mem(address_map &map) ATTR_COLD; + void vtech1_shrg_io(address_map &map) ATTR_COLD; }; diff --git a/src/mame/vtech/vtech2.h b/src/mame/vtech/vtech2.h index 3817ac1ad3b..bb1180bb335 100644 --- a/src/mame/vtech/vtech2.h +++ b/src/mame/vtech/vtech2.h @@ -51,8 +51,8 @@ class vtech2_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(reset_button); protected: - virtual void machine_reset() override; - virtual void machine_start() override; + virtual void machine_reset() override ATTR_COLD; + virtual void machine_start() override ATTR_COLD; private: void laser_fdc_w(offs_t offset, uint8_t data); @@ -69,11 +69,11 @@ class vtech2_state : public driver_device void laser_get_track(); void laser_put_track(); - void io_map(address_map &map); - void mem_map(address_map &map); - void m_map350(address_map &map); - void m_map500(address_map &map); - void m_map700(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; + void m_map350(address_map &map) ATTR_COLD; + void m_map500(address_map &map) ATTR_COLD; + void m_map700(address_map &map) ATTR_COLD; void init_waitstates(); diff --git a/src/mame/vtech/vtech_eu3a12.cpp b/src/mame/vtech/vtech_eu3a12.cpp index 8921c871e58..66b1e290aad 100644 --- a/src/mame/vtech/vtech_eu3a12.cpp +++ b/src/mame/vtech/vtech_eu3a12.cpp @@ -29,7 +29,7 @@ class vreadere_state : public driver_device void power_off_w(int state); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: EPL43102_UPDATE_CB(lcd_update); @@ -38,7 +38,7 @@ class vreadere_state : public driver_device u8 portc_r(); void portc_w(u8 data); - void prog_map(address_map &map); + void prog_map(address_map &map) ATTR_COLD; void palette_init(palette_device &palette); diff --git a/src/mame/vtech/vtech_innotab.cpp b/src/mame/vtech/vtech_innotab.cpp index 022a681937e..c395d36fae8 100644 --- a/src/mame/vtech/vtech_innotab.cpp +++ b/src/mame/vtech/vtech_innotab.cpp @@ -40,7 +40,7 @@ class vtech_innotab_state : public driver_device void vtech_innotab(machine_config &config); private: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; DECLARE_DEVICE_IMAGE_LOAD_MEMBER(cart_load); diff --git a/src/mame/wang/wangpc.cpp b/src/mame/wang/wangpc.cpp index 288b4c83f4c..40939f1b576 100644 --- a/src/mame/wang/wangpc.cpp +++ b/src/mame/wang/wangpc.cpp @@ -113,8 +113,8 @@ class wangpc_state : public driver_device required_ioport m_sw; output_finder<> m_led_diagnostic; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; void select_drive(); void check_level1_interrupts(); @@ -191,8 +191,8 @@ class wangpc_state : public driver_device void on_disk1_load(floppy_image_device *image); void on_disk1_unload(floppy_image_device *image); - void wangpc_io(address_map &map); - void wangpc_mem(address_map &map); + void wangpc_io(address_map &map) ATTR_COLD; + void wangpc_mem(address_map &map) ATTR_COLD; uint8_t m_dma_page[4]; int m_dack; diff --git a/src/mame/wang/wangpckb.h b/src/mame/wang/wangpckb.h index 3a99b3c538c..416bbcae779 100644 --- a/src/mame/wang/wangpckb.h +++ b/src/mame/wang/wangpckb.h @@ -32,17 +32,17 @@ class wangpc_keyboard_device : public device_t void write_rxd(int state); - void wangpc_keyboard_io(address_map &map); + void wangpc_keyboard_io(address_map &map) ATTR_COLD; 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; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; private: required_device m_maincpu; diff --git a/src/mame/wavemate/bullet.h b/src/mame/wavemate/bullet.h index c13c127e9e3..f77bc18c8f5 100644 --- a/src/mame/wavemate/bullet.h +++ b/src/mame/wavemate/bullet.h @@ -85,11 +85,11 @@ class bullet_state : public driver_device void io_write_byte(offs_t offset, uint8_t data); void bullet(machine_config &config); - void bullet_io(address_map &map); - void bullet_mem(address_map &map); + void bullet_io(address_map &map) ATTR_COLD; + void bullet_mem(address_map &map) ATTR_COLD; protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; void update_dma_rdy(); @@ -166,11 +166,11 @@ class bulletf_state : public bullet_state void cstrb_w(int state); void req_w(int state); - void bulletf_io(address_map &map); - void bulletf_mem(address_map &map); + void bulletf_io(address_map &map) ATTR_COLD; + void bulletf_mem(address_map &map) ATTR_COLD; protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; void update_dma_rdy(); diff --git a/src/mame/wavemate/jupiter.cpp b/src/mame/wavemate/jupiter.cpp index d67cde256b0..b3ee291d965 100644 --- a/src/mame/wavemate/jupiter.cpp +++ b/src/mame/wavemate/jupiter.cpp @@ -63,10 +63,10 @@ class jupiter2_state : public driver_device void init_jupiter2(); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: - void jupiter2_mem(address_map &map); + void jupiter2_mem(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_acia0; @@ -89,7 +89,7 @@ class jupiter3_state : public driver_device void init_jupiter3(); protected: - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; private: uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); @@ -98,8 +98,8 @@ class jupiter3_state : public driver_device uint8_t key_r(); uint8_t ff_r(); - void jupiter3_io(address_map &map); - void jupiter3_mem(address_map &map); + void jupiter3_io(address_map &map) ATTR_COLD; + void jupiter3_mem(address_map &map) ATTR_COLD; uint8_t m_term_data = 0U; required_device m_maincpu; diff --git a/src/mame/westinghouse/testconsole.cpp b/src/mame/westinghouse/testconsole.cpp index 72965e07c0f..c794b7888e2 100644 --- a/src/mame/westinghouse/testconsole.cpp +++ b/src/mame/westinghouse/testconsole.cpp @@ -99,8 +99,8 @@ class whouse_testcons_state : public driver_device dsp->cu_w(1); } - void io_map(address_map &map); - void program_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void program_map(address_map &map) ATTR_COLD; required_device_array m_dsp; output_finder<16> m_digit; diff --git a/src/mame/wicat/t7000.cpp b/src/mame/wicat/t7000.cpp index f3d17692a0a..1d22fcc5740 100644 --- a/src/mame/wicat/t7000.cpp +++ b/src/mame/wicat/t7000.cpp @@ -52,7 +52,7 @@ class t7000_state : public driver_device void t7000(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: I8275_DRAW_CHARACTER_MEMBER(display_character); @@ -66,8 +66,8 @@ class t7000_state : public driver_device void vblint_w(int state); void crtc_combined_w(offs_t offset, u8 data); - void mem_map(address_map &map); - void io_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_mainint; diff --git a/src/mame/wicat/wicat.cpp b/src/mame/wicat/wicat.cpp index 450f616497b..00a48f2d131 100644 --- a/src/mame/wicat/wicat.cpp +++ b/src/mame/wicat/wicat.cpp @@ -69,14 +69,14 @@ class wicat_state : public driver_device void wicat(machine_config &config); private: - virtual void machine_start() override; - virtual void machine_reset() override; - - void main_mem(address_map &map); - void video_io(address_map &map); - void video_mem(address_map &map); - void wd1000_io(address_map &map); - void wd1000_mem(address_map &map); + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + + void main_mem(address_map &map) ATTR_COLD; + void video_io(address_map &map) ATTR_COLD; + void video_mem(address_map &map) ATTR_COLD; + void wd1000_io(address_map &map) ATTR_COLD; + void wd1000_mem(address_map &map) ATTR_COLD; uint16_t memmap_r(); void memmap_w(uint16_t data); diff --git a/src/mame/wing/luckgrln.cpp b/src/mame/wing/luckgrln.cpp index 91ebc1363c9..49255289d37 100644 --- a/src/mame/wing/luckgrln.cpp +++ b/src/mame/wing/luckgrln.cpp @@ -113,8 +113,8 @@ class luckgrln_state : public driver_device void luckgrln(machine_config &config); protected: - virtual void machine_start() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_shared_ptr_array m_reel_ram; @@ -147,11 +147,11 @@ class luckgrln_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); INTERRUPT_GEN_MEMBER(irq); - void _7smash_io(address_map &map); - void _7smash_map(address_map &map); - void common_portmap(address_map &map); - void luckgrln_io(address_map &map); - void mainmap(address_map &map); + void _7smash_io(address_map &map) ATTR_COLD; + void _7smash_map(address_map &map) ATTR_COLD; + void common_portmap(address_map &map) ATTR_COLD; + void luckgrln_io(address_map &map) ATTR_COLD; + void mainmap(address_map &map) ATTR_COLD; }; diff --git a/src/mame/wing/lucky37.cpp b/src/mame/wing/lucky37.cpp index 9ca1958d0e9..9295ed62a4f 100644 --- a/src/mame/wing/lucky37.cpp +++ b/src/mame/wing/lucky37.cpp @@ -74,8 +74,8 @@ class lucky37_state : public driver_device void lucky37(machine_config &config); private: - void mcu_mem_map(address_map &map); - void mcu_io_map(address_map &map); + void mcu_mem_map(address_map &map) ATTR_COLD; + void mcu_io_map(address_map &map) ATTR_COLD; }; void lucky37_state::mcu_mem_map(address_map &map) diff --git a/src/mame/wing/lucky74.h b/src/mame/wing/lucky74.h index 1a77e7caa3a..9b2939bcc4c 100644 --- a/src/mame/wing/lucky74.h +++ b/src/mame/wing/lucky74.h @@ -27,9 +27,9 @@ class lucky74_state : public driver_device void lucky74(machine_config &config); protected: - virtual void machine_start() override; - virtual void video_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; virtual void sound_start() override; private: @@ -52,8 +52,8 @@ class lucky74_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); INTERRUPT_GEN_MEMBER(nmi_interrupt); void adpcm_int(int state); - void prg_map(address_map &map); - void portmap(address_map &map); + void prg_map(address_map &map) ATTR_COLD; + void portmap(address_map &map) ATTR_COLD; uint8_t m_ym2149_portb = 0U; uint8_t m_usart_8251 = 0U; diff --git a/src/mame/wing/pinkiri8.cpp b/src/mame/wing/pinkiri8.cpp index 17e134d7c39..804b462d7e8 100644 --- a/src/mame/wing/pinkiri8.cpp +++ b/src/mame/wing/pinkiri8.cpp @@ -58,12 +58,12 @@ class janshi_vdp_device : public device_t, public device_memory_interface public: janshi_vdp_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - void map(address_map &map); + void map(address_map &map) ATTR_COLD; protected: virtual void device_validity_check(validity_checker &valid) const override; - 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 space_config_vector memory_space_config() const override; private: @@ -103,15 +103,15 @@ class pinkiri8_state : public driver_device void ronjan_prot_w(uint8_t data); uint8_t ronjan_prot_status_r(); uint8_t ronjan_patched_prot_r(); - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; uint32_t screen_update_pinkiri8(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void draw_background(bitmap_ind16 &bitmap, const rectangle &cliprect); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); - void pinkiri8_io(address_map &map); - void pinkiri8_map(address_map &map); - void ronjan_io(address_map &map); + void pinkiri8_io(address_map &map) ATTR_COLD; + void pinkiri8_map(address_map &map) ATTR_COLD; + void ronjan_io(address_map &map) ATTR_COLD; private: required_shared_ptr m_janshi_back_vram; diff --git a/src/mame/wing/slotcarn.cpp b/src/mame/wing/slotcarn.cpp index ed41892a50c..efe0e43bfd6 100644 --- a/src/mame/wing/slotcarn.cpp +++ b/src/mame/wing/slotcarn.cpp @@ -62,11 +62,11 @@ class slotcarn_state : public driver_device void hsync_changed(int state); MC6845_BEGIN_UPDATE(crtc_begin_update); MC6845_UPDATE_ROW(crtc_update_row); - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; required_device m_maincpu; required_device m_screen; - void slotcarn_map(address_map &map); - void spielbud_io_map(address_map &map); + void slotcarn_map(address_map &map) ATTR_COLD; + void spielbud_io_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/wing/superwng.cpp b/src/mame/wing/superwng.cpp index 3ea9adade43..08e0e7caf3f 100644 --- a/src/mame/wing/superwng.cpp +++ b/src/mame/wing/superwng.cpp @@ -74,9 +74,9 @@ class superwng_state : public driver_device void superwng(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: required_device m_maincpu; @@ -111,8 +111,8 @@ class superwng_state : public driver_device void main_nmi_interrupt(int state); INTERRUPT_GEN_MEMBER(sound_nmi_assert); - void main_map(address_map &map); - void sound_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; }; void superwng_state::unk_a187_w(uint8_t data) diff --git a/src/mame/wyse/wy100.cpp b/src/mame/wyse/wy100.cpp index 41f25a6b4d7..ef26b0ede5d 100644 --- a/src/mame/wyse/wy100.cpp +++ b/src/mame/wyse/wy100.cpp @@ -44,7 +44,7 @@ class wy100_state : public driver_device void wy100(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: I8275_DRAW_CHARACTER_MEMBER(draw_character); @@ -55,9 +55,9 @@ class wy100_state : public driver_device u8 memory_r(offs_t offset); void memory_w(offs_t offset, u8 data); - void prg_map(address_map &map); - void io_map(address_map &map); - void bank_map(address_map &map); + void prg_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; + void bank_map(address_map &map) ATTR_COLD; static void printer_devices(device_slot_interface &slot); @@ -203,7 +203,7 @@ class wy100_loopback_device : public device_t, public device_rs232_port_interfac wy100_loopback_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; virtual void input_txd(int state) override; }; diff --git a/src/mame/wyse/wy150.cpp b/src/mame/wyse/wy150.cpp index 16755f0156e..efabbc070a2 100644 --- a/src/mame/wyse/wy150.cpp +++ b/src/mame/wyse/wy150.cpp @@ -33,14 +33,14 @@ class wy150_state : public driver_device void wy150(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; virtual void driver_start() override; private: u32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void prog_map(address_map &map); - void ext_map(address_map &map); + void prog_map(address_map &map) ATTR_COLD; + void ext_map(address_map &map) ATTR_COLD; required_device m_screen; }; diff --git a/src/mame/wyse/wy30p.cpp b/src/mame/wyse/wy30p.cpp index 92fec4befb8..7887d0af1f0 100644 --- a/src/mame/wyse/wy30p.cpp +++ b/src/mame/wyse/wy30p.cpp @@ -32,7 +32,7 @@ class wy30p_state : public driver_device void wy30p(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; virtual void driver_start() override; private: @@ -44,8 +44,8 @@ class wy30p_state : public driver_device void keyboard_reset_w(u8 data); u8 de00_r(); - void prog_map(address_map &map); - void ext_map(address_map &map); + void prog_map(address_map &map) ATTR_COLD; + void ext_map(address_map &map) ATTR_COLD; required_device m_eeprom; required_device m_keyboard; diff --git a/src/mame/wyse/wy50.cpp b/src/mame/wyse/wy50.cpp index 875d8f613aa..6e6c8bddf12 100644 --- a/src/mame/wyse/wy50.cpp +++ b/src/mame/wyse/wy50.cpp @@ -62,8 +62,8 @@ class wy50_state : public driver_device void wy50(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: u8 pvtc_videoram_r(offs_t offset); @@ -81,9 +81,9 @@ class wy50_state : public driver_device void p1_w(u8 data); u8 p3_r(); - void prg_map(address_map &map); - void io_map(address_map &map); - void row_buffer_map(address_map &map); + void prg_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; + void row_buffer_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_keyboard; diff --git a/src/mame/wyse/wy50kb.h b/src/mame/wyse/wy50kb.h index dac00c9c0f2..fb092052763 100644 --- a/src/mame/wyse/wy50kb.h +++ b/src/mame/wyse/wy50kb.h @@ -15,7 +15,7 @@ class wyse_parallel_keyboard_device : public device_t protected: wyse_parallel_keyboard_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner); - virtual void device_start() override; + virtual void device_start() override ATTR_COLD; private: optional_ioport_array<16> m_key_matrix; @@ -29,7 +29,7 @@ class wy50_keyboard_device : public wyse_parallel_keyboard_device wy50_keyboard_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock = 0); protected: - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; }; class wy100_keyboard_device : public wyse_parallel_keyboard_device @@ -38,7 +38,7 @@ class wy100_keyboard_device : public wyse_parallel_keyboard_device wy100_keyboard_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock = 0); protected: - virtual ioport_constructor device_input_ports() const override; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; }; DECLARE_DEVICE_TYPE(WY50_KEYBOARD, wy50_keyboard_device) diff --git a/src/mame/wyse/wy55.cpp b/src/mame/wyse/wy55.cpp index ff3a2224506..9819e018a66 100644 --- a/src/mame/wyse/wy55.cpp +++ b/src/mame/wyse/wy55.cpp @@ -37,7 +37,7 @@ class wy55_state : public driver_device void wy185es(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; virtual void driver_start() override; private: @@ -47,10 +47,10 @@ class wy55_state : public driver_device u32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void prog_map(address_map &map); - void ext_map(address_map &map); - void wy65_ext_map(address_map &map); - void wy185es_ext_map(address_map &map); + void prog_map(address_map &map) ATTR_COLD; + void ext_map(address_map &map) ATTR_COLD; + void wy65_ext_map(address_map &map) ATTR_COLD; + void wy185es_ext_map(address_map &map) ATTR_COLD; required_device m_maincpu; optional_device m_epci; diff --git a/src/mame/wyse/wy60.cpp b/src/mame/wyse/wy60.cpp index 0e032490ef0..80a5770455d 100644 --- a/src/mame/wyse/wy60.cpp +++ b/src/mame/wyse/wy60.cpp @@ -44,7 +44,7 @@ class wy60_state : public driver_device void wy60(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; virtual void driver_start() override; private: @@ -63,9 +63,9 @@ class wy60_state : public driver_device u8 p3_r(); void ea_w(int state); - void prog_map(address_map &map); - void ext_map(address_map &map); - void row_buffer_map(address_map &map); + void prog_map(address_map &map) ATTR_COLD; + void ext_map(address_map &map) ATTR_COLD; + void row_buffer_map(address_map &map) ATTR_COLD; required_device m_eeprom; required_device m_keyboard; diff --git a/src/mame/wyse/wy85.cpp b/src/mame/wyse/wy85.cpp index e6f26591d28..1e81b0ac779 100644 --- a/src/mame/wyse/wy85.cpp +++ b/src/mame/wyse/wy85.cpp @@ -48,8 +48,8 @@ class wy85_state : public driver_device void wy85(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: SCN2672_DRAW_CHARACTER_MEMBER(draw_character); @@ -68,8 +68,8 @@ class wy85_state : public driver_device u8 p3_r(); void p3_w(u8 data); - void prg_map(address_map &map); - void io_map(address_map &map); + void prg_map(address_map &map) ATTR_COLD; + void io_map(address_map &map) ATTR_COLD; u8 pvtc_char_r(offs_t offset); u8 pvtc_attr_r(offs_t offset); @@ -78,8 +78,8 @@ class wy85_state : public driver_device u8 pvtc_attrbuf_r(offs_t offset); void pvtc_attrbuf_w(offs_t offset, u8 data); - void char_row_buffer_map(address_map &map); - void attr_row_buffer_map(address_map &map); + void char_row_buffer_map(address_map &map) ATTR_COLD; + void attr_row_buffer_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_earom; diff --git a/src/mame/xerox/bigbord2.cpp b/src/mame/xerox/bigbord2.cpp index 36158407193..0b9fa07bd73 100644 --- a/src/mame/xerox/bigbord2.cpp +++ b/src/mame/xerox/bigbord2.cpp @@ -140,16 +140,16 @@ class bigbord2_state : public driver_device u8 io_read_byte(offs_t offset); void io_write_byte(offs_t offset, u8 data); MC6845_UPDATE_ROW(crtc_update_row); - void io_map(address_map &map); - void mem_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; u8 crt8002(u8 ac_ra, u8 ac_chr, u8 ac_attr, uint16_t ac_cnt, bool ac_curs); u8 m_term_data = 0U; u8 m_term_status = 0U; uint16_t m_cnt = 0U; bool m_cc[8]{}; floppy_image_device *m_floppy; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; address_space *m_mem; address_space *m_io; std::unique_ptr m_vram; // video ram 2k diff --git a/src/mame/xerox/notetaker.cpp b/src/mame/xerox/notetaker.cpp index 3f09d16d661..7d7227b0442 100644 --- a/src/mame/xerox/notetaker.cpp +++ b/src/mame/xerox/notetaker.cpp @@ -147,14 +147,14 @@ class notetaker_state : public driver_device void notetakr(machine_config &config); private: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; virtual void driver_start() override; - void iop_io(address_map &map); - void iop_mem(address_map &map); - void ep_io(address_map &map); - void ep_mem(address_map &map); + void iop_io(address_map &map) ATTR_COLD; + void iop_mem(address_map &map) ATTR_COLD; + void ep_io(address_map &map) ATTR_COLD; + void ep_mem(address_map &map) ATTR_COLD; // devices required_device m_iop_cpu; diff --git a/src/mame/xerox/x820kb.h b/src/mame/xerox/x820kb.h index 8b6a1749e43..09515c29e5b 100644 --- a/src/mame/xerox/x820kb.h +++ b/src/mame/xerox/x820kb.h @@ -32,14 +32,14 @@ class xerox_820_keyboard_device : public device_t 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 device_reset_after_children() override; // optional information overrides - virtual const tiny_rom_entry *device_rom_region() const override; - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; + virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; private: required_device m_maincpu; diff --git a/src/mame/xerox/xerox820.h b/src/mame/xerox/xerox820.h index bcb897e7d5b..e1fa55d2a3e 100644 --- a/src/mame/xerox/xerox820.h +++ b/src/mame/xerox/xerox820.h @@ -93,12 +93,12 @@ class xerox820_state : public driver_device TIMER_DEVICE_CALLBACK_MEMBER(ctc_tick); - void mk83_mem(address_map &map); - void xerox820_io(address_map &map); - void xerox820_mem(address_map &map); + void mk83_mem(address_map &map) ATTR_COLD; + void xerox820_io(address_map &map) ATTR_COLD; + void xerox820_mem(address_map &map) ATTR_COLD; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; required_device m_maincpu; required_device m_kbpio; @@ -145,7 +145,7 @@ class bigboard_state : public xerox820_state void bigboard(machine_config &config); protected: - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; TIMER_DEVICE_CALLBACK_MEMBER(beep_timer); @@ -176,11 +176,11 @@ class xerox820ii_state : public xerox820_state void xerox168(machine_config &config); void xerox820ii(machine_config &config); - void xerox168_mem(address_map &map); - void xerox820ii_io(address_map &map); - void xerox820ii_mem(address_map &map); + void xerox168_mem(address_map &map) ATTR_COLD; + void xerox820ii_io(address_map &map) ATTR_COLD; + void xerox820ii_mem(address_map &map) ATTR_COLD; protected: - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; required_device m_speaker; required_device m_sasibus; diff --git a/src/mame/yamaha/fb01.cpp b/src/mame/yamaha/fb01.cpp index 6ac8b2f596b..4aad62dae3b 100644 --- a/src/mame/yamaha/fb01.cpp +++ b/src/mame/yamaha/fb01.cpp @@ -41,8 +41,8 @@ class fb01_state : public driver_device void fb01(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: void ym2164_irq_w(int state); @@ -52,8 +52,8 @@ class fb01_state : public driver_device void fb01_palette(palette_device &palette) const; HD44780_PIXEL_UPDATE(fb01_pixel_update); - void fb01_io(address_map &map); - void fb01_mem(address_map &map); + void fb01_io(address_map &map) ATTR_COLD; + void fb01_mem(address_map &map) ATTR_COLD; void update_int(); diff --git a/src/mame/yamaha/mks3.h b/src/mame/yamaha/mks3.h index f650c89c241..98954a277be 100644 --- a/src/mame/yamaha/mks3.h +++ b/src/mame/yamaha/mks3.h @@ -25,9 +25,9 @@ class mks3_device : public device_t auto write_clk() { return m_write_clk.bind(); } protected: - virtual void device_start() override; - virtual void device_reset() override; - virtual ioport_constructor device_input_ports() const override; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; private: required_ioport_array<4> m_port; diff --git a/src/mame/yamaha/mu5lcd.h b/src/mame/yamaha/mu5lcd.h index edf7bb69090..889cc9f9c42 100644 --- a/src/mame/yamaha/mu5lcd.h +++ b/src/mame/yamaha/mu5lcd.h @@ -24,10 +24,10 @@ class mu5lcd_device : public device_t void ir_w(u8 data) { m_lcd->ir_w(data); } protected: - 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; private: required_device m_lcd; diff --git a/src/mame/yamaha/mulcd.h b/src/mame/yamaha/mulcd.h index b8dc159a177..91bc5f8cde8 100644 --- a/src/mame/yamaha/mulcd.h +++ b/src/mame/yamaha/mulcd.h @@ -27,10 +27,10 @@ class mulcd_device : public device_t void control_write(u8 data) { m_lcd->control_w(data); } protected: - 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; private: required_device m_lcd; diff --git a/src/mame/yamaha/tg100.cpp b/src/mame/yamaha/tg100.cpp index 192dc77322e..582e91a1b9e 100644 --- a/src/mame/yamaha/tg100.cpp +++ b/src/mame/yamaha/tg100.cpp @@ -51,8 +51,8 @@ class tg100_state : public driver_device private: required_device m_maincpu; required_device m_ymw258; - void tg100_map(address_map &map); - void ymw258_map(address_map &map); + void tg100_map(address_map &map) ATTR_COLD; + void ymw258_map(address_map &map) ATTR_COLD; }; /* all memory accesses are decoded by the gate array... */ diff --git a/src/mame/yamaha/yman1x.cpp b/src/mame/yamaha/yman1x.cpp index d946c7b606f..bb1afbe23f2 100644 --- a/src/mame/yamaha/yman1x.cpp +++ b/src/mame/yamaha/yman1x.cpp @@ -35,7 +35,7 @@ class an1x_state : public driver_device void an1x(machine_config &config); private: - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_pks; diff --git a/src/mame/yamaha/ymdx100.cpp b/src/mame/yamaha/ymdx100.cpp index e4cfe5200dd..bcd339d3f8e 100644 --- a/src/mame/yamaha/ymdx100.cpp +++ b/src/mame/yamaha/ymdx100.cpp @@ -277,8 +277,8 @@ class yamaha_dx100_state : public driver_device protected: virtual void driver_start() override; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: HD44780_PIXEL_UPDATE(lcd_pixel_update); @@ -286,7 +286,7 @@ class yamaha_dx100_state : public driver_device void p22_w(int state); - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_adc; diff --git a/src/mame/yamaha/ymdx11.cpp b/src/mame/yamaha/ymdx11.cpp index d6d37b4e90d..d21e76a58df 100644 --- a/src/mame/yamaha/ymdx11.cpp +++ b/src/mame/yamaha/ymdx11.cpp @@ -35,7 +35,7 @@ class yamaha_dx11_state : public driver_device void dx11(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: HD44780_PIXEL_UPDATE(lcd_pixel_update); @@ -43,7 +43,7 @@ class yamaha_dx11_state : public driver_device void cartridge_bank_w(u8 data); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_subcpu; diff --git a/src/mame/yamaha/ymdx7.cpp b/src/mame/yamaha/ymdx7.cpp index f4e61d8f9e0..45589332207 100644 --- a/src/mame/yamaha/ymdx7.cpp +++ b/src/mame/yamaha/ymdx7.cpp @@ -72,7 +72,7 @@ class yamaha_dx7_state : public driver_device void dx7(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: HD44780_PIXEL_UPDATE(lcd_pixel_update); @@ -100,8 +100,8 @@ class yamaha_dx7_state : public driver_device void dx7_dac_w (offs_t offset, u8 data) {}; // TODO: DAC control - void main_map(address_map &map); - void sub_map (address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sub_map (address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_subcpu; diff --git a/src/mame/yamaha/ymdx9.cpp b/src/mame/yamaha/ymdx9.cpp index 4c6dcb930f1..bcc5b8c2928 100644 --- a/src/mame/yamaha/ymdx9.cpp +++ b/src/mame/yamaha/ymdx9.cpp @@ -47,7 +47,7 @@ class yamaha_dx9_state : public driver_device void dx9(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: required_device m_maincpu; @@ -131,7 +131,7 @@ class yamaha_dx9_state : public driver_device void palette_init(palette_device &palette); - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; void midi_r(int state) { m_rx_data = state; } diff --git a/src/mame/yamaha/ymmu10.cpp b/src/mame/yamaha/ymmu10.cpp index 736c4373ca5..ca9e52d510f 100644 --- a/src/mame/yamaha/ymmu10.cpp +++ b/src/mame/yamaha/ymmu10.cpp @@ -58,10 +58,10 @@ class mu10_state : public driver_device void pb_w(u8 data); u8 pb_r(); - void mu10_map(address_map &map); + void mu10_map(address_map &map) ATTR_COLD; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; }; void mu10_state::machine_start() diff --git a/src/mame/yamaha/ymmu100.cpp b/src/mame/yamaha/ymmu100.cpp index 8a902775cfe..c435e56f3a9 100644 --- a/src/mame/yamaha/ymmu100.cpp +++ b/src/mame/yamaha/ymmu100.cpp @@ -219,11 +219,11 @@ class mu100_state : public driver_device void e1_tx(int state); void e2_tx(int state); - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; - void mu100_map(address_map &map); - void swp30_map(address_map &map); + void mu100_map(address_map &map) ATTR_COLD; + void swp30_map(address_map &map) ATTR_COLD; }; class mu100r_state : public mu100_state { diff --git a/src/mame/yamaha/ymmu128.cpp b/src/mame/yamaha/ymmu128.cpp index 192eae9e56a..849d06e9ff2 100644 --- a/src/mame/yamaha/ymmu128.cpp +++ b/src/mame/yamaha/ymmu128.cpp @@ -57,11 +57,11 @@ class mu128_state : public driver_device u32 m_pa; u16 m_pe; - void map(address_map &map); - void swp30_map(address_map &map); + void map(address_map &map) ATTR_COLD; + void swp30_map(address_map &map) ATTR_COLD; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; u32 pa_r(); void pa_w(u32 data); diff --git a/src/mame/yamaha/ymmu15.cpp b/src/mame/yamaha/ymmu15.cpp index 5f2527c57c2..9df5655bc78 100644 --- a/src/mame/yamaha/ymmu15.cpp +++ b/src/mame/yamaha/ymmu15.cpp @@ -100,11 +100,11 @@ class mu15_state : public driver_device u16 m_pdt; u8 m_cmah; - void c_map(address_map &map); - void s_map(address_map &map); + void c_map(address_map &map) ATTR_COLD; + void s_map(address_map &map) ATTR_COLD; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; u16 pdt_r(); void pdt_w(u16 data); diff --git a/src/mame/yamaha/ymmu2000.cpp b/src/mame/yamaha/ymmu2000.cpp index b0a47c3aa52..29c7d9ee809 100644 --- a/src/mame/yamaha/ymmu2000.cpp +++ b/src/mame/yamaha/ymmu2000.cpp @@ -119,11 +119,11 @@ class mu500_state : public driver_device u16 m_pe; u8 m_ledsw1, m_ledsw2; - void map_500(address_map &map); - void swp30_map(address_map &map); + void map_500(address_map &map) ATTR_COLD; + void swp30_map(address_map &map) ATTR_COLD; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; u16 adc_ar_r(); u16 adc_al_r(); @@ -153,7 +153,7 @@ class mu1000_state : public mu500_state protected: required_device m_swp30s; - void map_1000(address_map &map); + void map_1000(address_map &map) ATTR_COLD; }; class mu2000_state : public mu1000_state @@ -166,7 +166,7 @@ class mu2000_state : public mu1000_state void mu2000(machine_config &config); protected: - void map_2000(address_map &map); + void map_2000(address_map &map) ATTR_COLD; }; diff --git a/src/mame/yamaha/ymmu5.cpp b/src/mame/yamaha/ymmu5.cpp index 7c86d67f189..7d9251ee176 100644 --- a/src/mame/yamaha/ymmu5.cpp +++ b/src/mame/yamaha/ymmu5.cpp @@ -37,8 +37,8 @@ class mu5_state : public driver_device void mu5(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; @@ -46,8 +46,8 @@ class mu5_state : public driver_device required_device m_lcd; required_ioport_array<6> m_key; - void mu5_map(address_map &map); - void ymw258_map(address_map &map); + void mu5_map(address_map &map) ATTR_COLD; + void ymw258_map(address_map &map) ATTR_COLD; u8 m_lcd_ctrl = 0U; u8 m_lcd_data = 0U; diff --git a/src/mame/yamaha/ymmu50.cpp b/src/mame/yamaha/ymmu50.cpp index 45c835c4c7c..2b4c47f7dc8 100644 --- a/src/mame/yamaha/ymmu50.cpp +++ b/src/mame/yamaha/ymmu50.cpp @@ -108,10 +108,10 @@ class mu50_state : public driver_device u8 pc_r(); void update_contrast(); - void mu50_map(address_map &map); + void mu50_map(address_map &map) ATTR_COLD; - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; }; void mu50_state::machine_start() diff --git a/src/mame/yamaha/ymmu80.cpp b/src/mame/yamaha/ymmu80.cpp index 065fcc63cb8..4ba4aa3a5ac 100644 --- a/src/mame/yamaha/ymmu80.cpp +++ b/src/mame/yamaha/ymmu80.cpp @@ -206,9 +206,9 @@ class mu80_state : public driver_device void pb_w(u8 data); u8 pb_r(); - virtual void machine_start() override; - virtual void machine_reset() override; - void mu80_map(address_map &map); + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + void mu80_map(address_map &map) ATTR_COLD; }; void mu80_state::machine_start() diff --git a/src/mame/yamaha/ymmu90.cpp b/src/mame/yamaha/ymmu90.cpp index deb649e6a86..ee4b2e7c950 100644 --- a/src/mame/yamaha/ymmu90.cpp +++ b/src/mame/yamaha/ymmu90.cpp @@ -89,10 +89,10 @@ class mu90_state : public driver_device void pb_w(u8 data); u8 pb_r(); - virtual void machine_start() override; - virtual void machine_reset() override; - void mu90_map(address_map &map); - void swp30_map(address_map &map); + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + void mu90_map(address_map &map) ATTR_COLD; + void swp30_map(address_map &map) ATTR_COLD; }; void mu90_state::machine_start() diff --git a/src/mame/yamaha/ympcs30.cpp b/src/mame/yamaha/ympcs30.cpp index 508810173e8..803d9c7d1c4 100644 --- a/src/mame/yamaha/ympcs30.cpp +++ b/src/mame/yamaha/ympcs30.cpp @@ -29,7 +29,7 @@ class pcs30_state : public driver_device void pcs30(machine_config &config); private: - void pcs30_map(address_map &map); + void pcs30_map(address_map &map) ATTR_COLD; required_device m_maincpu; }; diff --git a/src/mame/yamaha/ymps400.cpp b/src/mame/yamaha/ymps400.cpp index c8f75e70c66..c0a20b24e5e 100644 --- a/src/mame/yamaha/ymps400.cpp +++ b/src/mame/yamaha/ymps400.cpp @@ -32,7 +32,7 @@ class ps400_state : public driver_device void ps400(machine_config &config); private: - void ps400_map(address_map &map); + void ps400_map(address_map &map) ATTR_COLD; required_device m_maincpu; }; diff --git a/src/mame/yamaha/ympsr11.cpp b/src/mame/yamaha/ympsr11.cpp index 69e7148166e..1fdaa46689c 100644 --- a/src/mame/yamaha/ympsr11.cpp +++ b/src/mame/yamaha/ympsr11.cpp @@ -25,10 +25,10 @@ class yamaha_psr11_state : public driver_device void psr11(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: - void map(address_map &map); + void map(address_map &map) ATTR_COLD; u8 p2_r(); diff --git a/src/mame/yamaha/ympsr16.cpp b/src/mame/yamaha/ympsr16.cpp index a04190fcba8..e0a0bdfa64d 100644 --- a/src/mame/yamaha/ympsr16.cpp +++ b/src/mame/yamaha/ympsr16.cpp @@ -42,16 +42,16 @@ class yamaha_psr16_state : public driver_device void pss680(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: u8 busy_r(); void bank_w(u8 data); - void common_map(address_map &map); - void psr16_map(address_map &map); - void psr36_map(address_map &map); - void pss680_map(address_map &map); + void common_map(address_map &map) ATTR_COLD; + void psr16_map(address_map &map) ATTR_COLD; + void psr36_map(address_map &map) ATTR_COLD; + void pss680_map(address_map &map) ATTR_COLD; required_device m_maincpu; optional_memory_bank m_rombank; diff --git a/src/mame/yamaha/ympsr2000.cpp b/src/mame/yamaha/ympsr2000.cpp index f6e4c87d3c0..c53a7660d0b 100644 --- a/src/mame/yamaha/ympsr2000.cpp +++ b/src/mame/yamaha/ympsr2000.cpp @@ -30,10 +30,10 @@ class psr2000_state : public driver_device { required_device m_maincpu; required_device m_lcdc; // In reality a sed1335 - void map(address_map &map); - void lcdc_map(address_map &map); + void map(address_map &map) ATTR_COLD; + void lcdc_map(address_map &map) ATTR_COLD; - void machine_start() override; + void machine_start() override ATTR_COLD; }; void psr2000_state::machine_start() diff --git a/src/mame/yamaha/ympsr340.cpp b/src/mame/yamaha/ympsr340.cpp index 33ccfefb914..d24c3cd6580 100644 --- a/src/mame/yamaha/ympsr340.cpp +++ b/src/mame/yamaha/ympsr340.cpp @@ -45,8 +45,8 @@ class psr340_state : public driver_device void psr340(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; @@ -57,8 +57,8 @@ class psr340_state : public driver_device output_finder<80, 8, 5> m_outputs; required_ioport_array<8> m_key; - void c_map(address_map &map); - void s_map(address_map &map); + void c_map(address_map &map) ATTR_COLD; + void s_map(address_map &map) ATTR_COLD; void pdt_w(u16 data); u8 pad_r(); diff --git a/src/mame/yamaha/ympsr40.cpp b/src/mame/yamaha/ympsr40.cpp index 3b14fb7cbc0..a55082c602c 100644 --- a/src/mame/yamaha/ympsr40.cpp +++ b/src/mame/yamaha/ympsr40.cpp @@ -25,7 +25,7 @@ class yamaha_psr40_state : public driver_device void psr40(machine_config &config); private: - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; }; diff --git a/src/mame/yamaha/ympsr400.cpp b/src/mame/yamaha/ympsr400.cpp index ac4b1155cec..501ca143e9a 100644 --- a/src/mame/yamaha/ympsr400.cpp +++ b/src/mame/yamaha/ympsr400.cpp @@ -28,13 +28,13 @@ class psr400_state : public driver_device protected: virtual void driver_start() override; - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: TIMER_CALLBACK_MEMBER(interrupt_hack); - void program_map(address_map &map); - void data_map(address_map &map); + void program_map(address_map &map) ATTR_COLD; + void data_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_mpscpu; diff --git a/src/mame/yamaha/ympsr540.cpp b/src/mame/yamaha/ympsr540.cpp index e49fca5ef76..127e384454f 100644 --- a/src/mame/yamaha/ympsr540.cpp +++ b/src/mame/yamaha/ympsr540.cpp @@ -50,9 +50,9 @@ class psr540_state : public driver_device { u16 m_pe, m_led, m_scan; - void map(address_map &map); + void map(address_map &map) ATTR_COLD; - void machine_start() override; + void machine_start() override ATTR_COLD; u16 adc_sustain_r(); u16 adc_midisw_r(); diff --git a/src/mame/yamaha/ympsr60.cpp b/src/mame/yamaha/ympsr60.cpp index 05b01b5768c..f0ae8a07bee 100644 --- a/src/mame/yamaha/ympsr60.cpp +++ b/src/mame/yamaha/ympsr60.cpp @@ -108,8 +108,8 @@ class psr60_state : public driver_device void psr70(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu; @@ -136,8 +136,8 @@ class psr60_state : public driver_device output_finder m_ryp4_out; required_ioport m_mastervol; - void psr60_map(address_map &map); - void psr60_io_map(address_map &map); + void psr60_map(address_map &map) ATTR_COLD; + void psr60_io_map(address_map &map) ATTR_COLD; u8 ppi_pa_r(); void ppi_pb_w(u8 data); diff --git a/src/mame/yamaha/ymqs300.cpp b/src/mame/yamaha/ymqs300.cpp index b26da7a4d79..af5318aa70c 100644 --- a/src/mame/yamaha/ymqs300.cpp +++ b/src/mame/yamaha/ymqs300.cpp @@ -55,9 +55,9 @@ class qs300_state : public driver_device { u8 m_mpb; - void mainmap(address_map &map); - void submap(address_map &map); - void lcdmap(address_map &map); + void mainmap(address_map &map) ATTR_COLD; + void submap(address_map &map) ATTR_COLD; + void lcdmap(address_map &map) ATTR_COLD; u8 mlatch_r(); void mlatch_w(u8 data); @@ -76,7 +76,7 @@ class qs300_state : public driver_device { void lcd_palette(palette_device &palette) const; - void machine_start() override; + void machine_start() override ATTR_COLD; }; class eos_b900_state : public qs300_state diff --git a/src/mame/yamaha/ymqy70.cpp b/src/mame/yamaha/ymqy70.cpp index 458f5583612..85b434e0943 100644 --- a/src/mame/yamaha/ymqy70.cpp +++ b/src/mame/yamaha/ymqy70.cpp @@ -110,10 +110,10 @@ class qy70_state : public driver_device void pa_w(u8 data) { if (data) sw_sel = data; } u8 sw_in(); u16 adc_bkupbat_r() { return 0x2a0; } - void mem_map(address_map &map); - void lcd_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; + void lcd_map(address_map &map) ATTR_COLD; void lcd_palette(palette_device &palette) const; - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; }; void qy70_state::machine_start() diff --git a/src/mame/yamaha/ymrx15.cpp b/src/mame/yamaha/ymrx15.cpp index 1ea57628518..f25fb18a024 100644 --- a/src/mame/yamaha/ymrx15.cpp +++ b/src/mame/yamaha/ymrx15.cpp @@ -31,7 +31,7 @@ class rx15_state : public driver_device private: HD44780_PIXEL_UPDATE(pixel_update); - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_ryp4; diff --git a/src/mame/yamaha/ymsy35.cpp b/src/mame/yamaha/ymsy35.cpp index 72de67d05ac..0b560c182de 100644 --- a/src/mame/yamaha/ymsy35.cpp +++ b/src/mame/yamaha/ymsy35.cpp @@ -26,7 +26,7 @@ class yamaha_sy35_state : public driver_device void sy35(machine_config &config); private: - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_scancpu; diff --git a/src/mame/yamaha/ymtx81z.cpp b/src/mame/yamaha/ymtx81z.cpp index 58e8fdd2daa..a164ebada95 100644 --- a/src/mame/yamaha/ymtx81z.cpp +++ b/src/mame/yamaha/ymtx81z.cpp @@ -37,13 +37,13 @@ class ymtx81z_state : public driver_device void tx81z(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: HD44780_PIXEL_UPDATE(lcd_pixel_update); void palette_init(palette_device &palette); - void mem_map(address_map &map); + void mem_map(address_map &map) ATTR_COLD; u8 p2_r(); void midi_rx_r(int state) { m_rx_data = state; } diff --git a/src/mame/yamaha/ymvl1.cpp b/src/mame/yamaha/ymvl1.cpp index 147eb18b008..168169d71b7 100644 --- a/src/mame/yamaha/ymvl1.cpp +++ b/src/mame/yamaha/ymvl1.cpp @@ -71,8 +71,8 @@ class vl1_state : public driver_device void vl1(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_device m_maincpu, m_subcpu1, m_subcpu2; @@ -83,9 +83,9 @@ class vl1_state : public driver_device required_shared_ptr m_mem_s1, m_mem_s2; u16 m_led, m_main_ctrl, m_sub1_ctrl, m_sub2_ctrl; - void maincpu_map(address_map &map); - void subcpu1_map(address_map &map); - void subcpu2_map(address_map &map); + void maincpu_map(address_map &map) ATTR_COLD; + void subcpu1_map(address_map &map) ATTR_COLD; + void subcpu2_map(address_map &map) ATTR_COLD; u16 main_r(); void main_w(u16 data); diff --git a/src/mame/yamaha/ymvl70.cpp b/src/mame/yamaha/ymvl70.cpp index 3938f6714bb..c16717ae755 100644 --- a/src/mame/yamaha/ymvl70.cpp +++ b/src/mame/yamaha/ymvl70.cpp @@ -86,8 +86,8 @@ class vl70_state : public driver_device void pc_w(u8 data); u8 pc_r(); - virtual void machine_start() override; - void vl70_map(address_map &map); + virtual void machine_start() override ATTR_COLD; + void vl70_map(address_map &map) ATTR_COLD; }; void vl70_state::machine_start() diff --git a/src/mame/yeno/301xl.cpp b/src/mame/yeno/301xl.cpp index a858759c2fe..d0e80657961 100644 --- a/src/mame/yeno/301xl.cpp +++ b/src/mame/yeno/301xl.cpp @@ -56,8 +56,8 @@ class y301xl_state : public driver_device void y301xl(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: // devices/pointers diff --git a/src/mame/yeno/416xl.cpp b/src/mame/yeno/416xl.cpp index 8e2633da6b6..b638fbcee38 100644 --- a/src/mame/yeno/416xl.cpp +++ b/src/mame/yeno/416xl.cpp @@ -52,7 +52,7 @@ class y416xl_state : public driver_device DECLARE_INPUT_CHANGED_MEMBER(power_off) { if (newval) m_power = false; } protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; virtual void machine_reset() override { m_power = true; } private: diff --git a/src/mame/yeno/532xl.cpp b/src/mame/yeno/532xl.cpp index 569cc882c8b..b3329bcfc0e 100644 --- a/src/mame/yeno/532xl.cpp +++ b/src/mame/yeno/532xl.cpp @@ -57,7 +57,7 @@ class y532xl_state : public driver_device void y532xl(machine_config &config); protected: - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; private: // devices/pointers @@ -75,7 +75,7 @@ class y532xl_state : public driver_device u8 m_control = 0xff; // address maps - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; // I/O handlers void update_display(); diff --git a/src/mame/yunsung/nmg5.cpp b/src/mame/yunsung/nmg5.cpp index a9907494aa8..c89cb01c175 100644 --- a/src/mame/yunsung/nmg5.cpp +++ b/src/mame/yunsung/nmg5.cpp @@ -267,9 +267,9 @@ class nmg5_state : public driver_device void init_prot_val_40(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: /* memory pointers */ @@ -306,11 +306,11 @@ class nmg5_state : public driver_device void oki_banking_w(uint8_t data); template TILE_GET_INFO_MEMBER(get_tile_info); uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void nmg5_map(address_map &map); - void nmg5_sound_map(address_map &map); - void pclubys_map(address_map &map); - void pclubys_sound_map(address_map &map); - void sound_io_map(address_map &map); + void nmg5_map(address_map &map) ATTR_COLD; + void nmg5_sound_map(address_map &map) ATTR_COLD; + void pclubys_map(address_map &map) ATTR_COLD; + void pclubys_sound_map(address_map &map) ATTR_COLD; + void sound_io_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/yunsung/paradise.cpp b/src/mame/yunsung/paradise.cpp index b1cdc8e8d38..aeabaa4d296 100644 --- a/src/mame/yunsung/paradise.cpp +++ b/src/mame/yunsung/paradise.cpp @@ -144,9 +144,9 @@ class paradise_state : public driver_device void init_tgtball(); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: // devices @@ -202,12 +202,12 @@ class paradise_state : public driver_device void update_pix_palbank(); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); - void base_map(address_map &map); - void paradise_io_map(address_map &map); - void paradise_map(address_map &map); - void tgtball_map(address_map &map); - void torus_io_map(address_map &map); - void torus_map(address_map &map); + void base_map(address_map &map) ATTR_COLD; + void paradise_io_map(address_map &map) ATTR_COLD; + void paradise_map(address_map &map) ATTR_COLD; + void tgtball_map(address_map &map) ATTR_COLD; + void torus_io_map(address_map &map) ATTR_COLD; + void torus_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/yunsung/yunsun16.cpp b/src/mame/yunsung/yunsun16.cpp index fb295fcc74f..344381eb9ef 100644 --- a/src/mame/yunsung/yunsun16.cpp +++ b/src/mame/yunsung/yunsun16.cpp @@ -119,9 +119,9 @@ class yunsun16_state : public driver_device { } protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; // devices required_device m_maincpu; @@ -131,7 +131,7 @@ class yunsun16_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; private: // memory pointers @@ -171,9 +171,9 @@ class magicbub_state : public yunsun16_state void sound_command_w(uint8_t data); - void main_map(address_map &map); - void sound_map(address_map &map); - void sound_port_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; + void sound_port_map(address_map &map) ATTR_COLD; }; @@ -188,16 +188,16 @@ class shocking_state : public yunsun16_state void shocking(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: required_memory_bank m_okibank; void sound_bank_w(uint8_t data); - void main_map(address_map &map); - void oki_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void oki_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/yunsung/yunsung8.cpp b/src/mame/yunsung/yunsung8.cpp index f2a71277611..e2168cc0926 100644 --- a/src/mame/yunsung/yunsung8.cpp +++ b/src/mame/yunsung/yunsung8.cpp @@ -67,9 +67,9 @@ class yunsung8_state : public driver_device void yunsung8(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: // video-related @@ -111,9 +111,9 @@ class yunsung8_state : public driver_device uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void main_map(address_map &map); - void port_map(address_map &map); - void sound_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; + void port_map(address_map &map) ATTR_COLD; + void sound_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/zaccaria/laserbat.h b/src/mame/zaccaria/laserbat.h index 5204edc6205..6e90bf0ecc2 100644 --- a/src/mame/zaccaria/laserbat.h +++ b/src/mame/zaccaria/laserbat.h @@ -30,8 +30,8 @@ class laserbat_state_base : public driver_device { public: void laserbat_base(machine_config &config); - void laserbat_io_map(address_map &map); - void laserbat_map(address_map &map); + void laserbat_io_map(address_map &map) ATTR_COLD; + void laserbat_map(address_map &map) ATTR_COLD; protected: laserbat_state_base(const machine_config &mconfig, device_type type, const char *tag, uint8_t eff2_mask) @@ -71,7 +71,7 @@ class laserbat_state_base : public driver_device virtual void csound2_w(uint8_t data); // running the video - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; uint32_t screen_update_laserbat(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); // video functions @@ -147,7 +147,7 @@ class laserbat_state : public laserbat_state_base protected: // initialisation/startup - virtual void machine_start() override; + virtual void machine_start() override ATTR_COLD; // video initialisation void laserbat_palette(palette_device &palette) const; diff --git a/src/mame/zaccaria/seabattl.cpp b/src/mame/zaccaria/seabattl.cpp index 7db141e22f4..db117b10a82 100644 --- a/src/mame/zaccaria/seabattl.cpp +++ b/src/mame/zaccaria/seabattl.cpp @@ -69,9 +69,9 @@ class seabattl_state : public driver_device void armada(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: TILE_GET_INFO_MEMBER(get_bg_tile_info); @@ -90,9 +90,9 @@ class seabattl_state : public driver_device void seabattl_palette(palette_device &palette) const; uint32_t screen_update_seabattl(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void seabattl_data_map(address_map &map); - void seabattl_map(address_map &map); - void armada_map(address_map &map); + void seabattl_data_map(address_map &map) ATTR_COLD; + void seabattl_map(address_map &map) ATTR_COLD; + void armada_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_shared_ptr m_videoram; diff --git a/src/mame/zaccaria/zac1b1120.cpp b/src/mame/zaccaria/zac1b1120.cpp index c4dd4ceaebe..9caa9cd8797 100644 --- a/src/mame/zaccaria/zac1b1120.cpp +++ b/src/mame/zaccaria/zac1b1120.cpp @@ -61,7 +61,7 @@ class zac1b1120_state : public driver_device ioport_value bg_collision_r() { return m_collision_background; } protected: - virtual void video_start() override; + virtual void video_start() override ATTR_COLD; private: // devices @@ -91,7 +91,7 @@ class zac1b1120_state : public driver_device int sprite_collision(int first, int second); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; }; diff --git a/src/mame/zaccaria/zaccaria.h b/src/mame/zaccaria/zaccaria.h index e90e8ee1c0b..4355b6c47c5 100644 --- a/src/mame/zaccaria/zaccaria.h +++ b/src/mame/zaccaria/zaccaria.h @@ -28,9 +28,9 @@ class zaccaria_state : public driver_device void zaccaria(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; + virtual void video_start() override ATTR_COLD; private: uint8_t dsw_r(); @@ -50,7 +50,7 @@ class zaccaria_state : public driver_device void vblank_irq(int state); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect, uint8_t *spriteram, int color, int section); - void main_map(address_map &map); + void main_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_gfxdecode; diff --git a/src/mame/zaccaria/zaccaria_a.h b/src/mame/zaccaria/zaccaria_a.h index 7204322926e..39d91355f1f 100644 --- a/src/mame/zaccaria/zaccaria_a.h +++ b/src/mame/zaccaria/zaccaria_a.h @@ -38,9 +38,9 @@ class zac1b111xx_melody_base : public device_t, public device_mixer_interface void melodypia_portb_w(u8 data); u8 melodypsg1_portb_r(); - virtual void device_add_mconfig(machine_config &config) override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; required_device m_melodycpu; required_device m_melodypia; @@ -48,7 +48,7 @@ class zac1b111xx_melody_base : public device_t, public device_mixer_interface required_device m_melodypsg2; u8 m_melody_command; - void zac1b111xx_melody_base_map(address_map &map); + void zac1b111xx_melody_base_map(address_map &map) ATTR_COLD; }; @@ -61,13 +61,13 @@ class zac1b11107_audio_device : public zac1b111xx_melody_base void sound_w(u8 data); void reset_w(int state); - void zac1b11107_melody_map(address_map &map); + void zac1b11107_melody_map(address_map &map) ATTR_COLD; protected: // PSG output handlers void melodypsg1_porta_w(u8 data); void melodypsg2_porta_w(u8 data); - virtual void device_add_mconfig(machine_config &config) override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; }; @@ -88,8 +88,8 @@ class zac1b11142_audio_device : public zac1b111xx_melody_base void melody_command_w(u8 data); DECLARE_INPUT_CHANGED_MEMBER(p1_changed); - void zac1b11142_audio_map(address_map &map); - void zac1b11142_melody_map(address_map &map); + void zac1b11142_audio_map(address_map &map) ATTR_COLD; + void zac1b11142_melody_map(address_map &map) ATTR_COLD; protected: // melody section handlers void ay_4g_porta_w(u8 data); @@ -102,10 +102,10 @@ class zac1b11142_audio_device : public zac1b111xx_melody_base // input ports don't push INTERRUPT_GEN_MEMBER(input_poll); - virtual void device_add_mconfig(machine_config &config) override; - virtual ioport_constructor device_input_ports() const override; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; + virtual ioport_constructor device_input_ports() const override ATTR_COLD; + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; devcb_write_line m_acs_cb; diff --git a/src/mame/zpa/iq151.cpp b/src/mame/zpa/iq151.cpp index 728398e4ae0..1e34a62ddc1 100644 --- a/src/mame/zpa/iq151.cpp +++ b/src/mame/zpa/iq151.cpp @@ -99,14 +99,14 @@ class iq151_state : public driver_device void cartslot_w(offs_t offset, uint8_t data); uint8_t cartslot_io_r(offs_t offset); void cartslot_io_w(offs_t offset, uint8_t data); - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); INTERRUPT_GEN_MEMBER(iq151_vblank_interrupt); TIMER_DEVICE_CALLBACK_MEMBER(cassette_timer); - void iq151_io(address_map &map); - void iq151_mem(address_map &map); + void iq151_io(address_map &map) ATTR_COLD; + void iq151_mem(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_pic; diff --git a/src/mame/zvt/pp01.h b/src/mame/zvt/pp01.h index 7b77fd47d35..e2738eb4bf2 100644 --- a/src/mame/zvt/pp01.h +++ b/src/mame/zvt/pp01.h @@ -41,8 +41,8 @@ class pp01_state : public driver_device void pp01(machine_config &config); protected: - virtual void machine_start() override; - virtual void machine_reset() override; + virtual void machine_start() override ATTR_COLD; + virtual void machine_reset() override ATTR_COLD; private: uint8_t m_video_scroll = 0; @@ -73,8 +73,8 @@ class pp01_state : public driver_device uint8_t ppi1_portc_r(); void video_w(uint8_t block,uint16_t offset,uint8_t data,uint8_t part); void set_memory(uint8_t block, uint8_t data); - void io_map(address_map &map); - void mem_map(address_map &map); + void io_map(address_map &map) ATTR_COLD; + void mem_map(address_map &map) ATTR_COLD; required_device m_maincpu; required_device m_pit; diff --git a/src/version.cpp b/src/version.cpp index 608f0480d6d..b13c14a1c39 100644 --- a/src/version.cpp +++ b/src/version.cpp @@ -8,7 +8,7 @@ ***************************************************************************/ -#define BARE_BUILD_VERSION "0.270.0" +#define BARE_BUILD_VERSION "0.270.x" extern const char bare_build_version[]; extern const char build_version[]; diff --git a/src/zexall/zexall.cpp b/src/zexall/zexall.cpp index 9be82b8c745..2459c96de14 100644 --- a/src/zexall/zexall.cpp +++ b/src/zexall/zexall.cpp @@ -30,7 +30,7 @@ class zexall_state : public driver_device void output_req_w(uint8_t data); void output_data_w(uint8_t data); - void z80_mem(address_map &map); + void z80_mem(address_map &map) ATTR_COLD; void zexall(machine_config &config); private: @@ -42,7 +42,7 @@ class zexall_state : public driver_device uint8_t m_out_ack; // byte written to 0xFFFC std::string terminate_string; - virtual void machine_reset() override; + virtual void machine_reset() override ATTR_COLD; };