[ オリジナルレポート ]

BugID: #09211

カテゴリ 重要度 ステータス 解決状況 登録日時 最終更新
仮承認未処理2025-07-17 02:482025-07-17 21:57
 
テスターhap担当者 ソース
バージョン0.278発生バージョン修正バージョン
修正コミットプルリク
フラグ
セット
セット詳細
 
概 要x86 CPUコアのREP命令が遅すぎる。
詳 細x86 CPU cores: REP opcodes are too slow with tight scheduler intervals.

REP opcodes are interruptable, and therefore, MAME checks for icount>0 while doing the REP loop.
However, this also means that if icount<=0 due to another reason than an interrupt, it will redo the opcode from the start, instead of continuing the internal loop. This adds a couple of extra cycles and memory accesses that don't happen on the real CPU. If for example so-called perfect quantum is used, REP opcodes will be much slower (in other words, counter-intuitively, perfect quantum will lower timing accuracy for these opcodes).

Applies to:
cpu/i86 (i86, i186, i286)
cpu/i386, probably
cpu/nec - bug: REP opcodes interruptability unemulated - fixed for 0.279 and also fixed the issue described in this report
cpu/v30mz - bug: REP opcodes interruptability unemulated
再現手順Unknown if there currently are any symptoms due to this bug.
追加情報 
 
添付ファイル