[
  {
    "name": "reject-unsupported-atapi-lun",
    "file": "src/ide.js",
    "sourceSha256": "e7cf7922b4be5b7e627329489a38ac48c6331dd9fd5a94eb9d65e8ee94dcd161",
    "from": "    this.current_atapi_command = cmd;",
    "to": "    this.current_atapi_command = cmd;\n\n    // Ready ATAPI policy (86Box): unsupported legacy LUN is an error,\n    // not another enumeratable peripheral. Preserve REQUEST SENSE.\n    if(cmd !== ATAPI_CMD_REQUEST_SENSE && (this.data[1] & 0xE0))\n    {\n        this.atapi_check_condition_response(ATAPI_SK_ILLEGAL_REQUEST, 0x25);\n        this.push_irq();\n        return;\n    }",
    "reason": "Windows2000 enumerated the standard SCSI7f response as IDE Type31. Reuse the existing v86 CHECK CONDITION/sense5/ASC25 path for absent legacy ATAPI LUNs, following ready86Box policy; leave REQUEST SENSE/LUN0/CPU/DMA unchanged.",
    "sources": [
      "https://github.com/86Box/86Box/blob/master/src/scsi/scsi_cdrom.c#L1330",
      "https://github.com/copy/v86/blob/cc37f35c43bf14865d74ad76879ecf9410f69eb1/src/ide.js#L1774"
    ]
  },
  {
    "name": "identify-string-padding-end",
    "file": "src/ide.js",
    "sourceSha256": "e7cf7922b4be5b7e627329489a38ac48c6331dd9fd5a94eb9d65e8ee94dcd161",
    "from": "out_buffer.fill(32, ofs8, len8);",
    "to": "out_buffer.fill(32, ofs8, end8);",
    "reason": "ATA IDENTIFY serial/firmware/model fields require ASCII-space padding. Uint8Array.fill takes an end offset, not a length. No DMA or capability change.",
    "sources": [
      "https://read.seas.harvard.edu/cs161/2019/pdf/ata-atapi-8.pdf",
      "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/fill"
    ]
  }
]
