MMIX LOGO

MMIX Bug Report printf

Table of Content

Content

MMIXware Version

mmix-20250620

Bug Reported

Initial: 20/11/2026

Author

Kawa Yww

Description

A POP instruction may dispatch a sequence of decgamma instructions to load the register stack. Doing so the X field of the POP instruction is decremented in the fetch buffer. If the instruction stalls because no execution station is available, the instruction was removed but the decrement was not undone.

The problem can be solved by postponing the decrement until the instruction is issued.

Proposed Patch

@x
@x
  if (cool->op==SAVE) @@;
@y
  if (cool->op==POP && cool->i==or) head->inst-=0x10000;  /* decrease X field of \.{POP} */
  else if (cool->op==SAVE) @@;
@z

@x
      head->inst-=0x10000; /* decrease X field of \.{POP} in fetch buffer */
@y
@z

Discussion

The patch as given above is now part of the sources.

Please help to keep this site up to date! If you want to point out important material or projects that are not listed here, if you find errors or want to suggest improvements, please send email to email