-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
genpc: use trampoline instead of tag
- Loading branch information
Showing
4 changed files
with
4 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0473bf3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
at_mb_device::set_cputag
andibm5160_mb_device::set_cputag
(or thedevice_config_complete
member functions) are the proper places to connect stuff that needs to know the actual tag of the CPU device. They haven’t been removed.0473bf3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The validation error was from the ISA bus device which has no knowledge of the cpu tag https://github.com/mamedev/mame/actions/runs/9765791924/job/26957305271. The trampolines wouldn't work if the motherboard device didn't know what the tag was.
0473bf3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Look at machine/at.h and machine/genpc.h – the correct place to configure things that need to know the actual tag of the CPU is in the
set_cputag
configuration helpers. Both of those headers haveset_cputag
configuration helpers, and e50319d is when that configuration helper was added toibm5160_mb_device
in machine/genpc.h.0473bf3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, I checked that the machine configs had set_tag in them and they do but it still doesn't work at least for genpc so I just removed it until I or someone else figures out what I'm not understanding.