Skip to content
This repository has been archived by the owner on Dec 6, 2022. It is now read-only.

Commit

Permalink
Merge pull request #13 from klauspost/master-v2-6
Browse files Browse the repository at this point in the history
Add Ryzen master v2.6.2 patch
  • Loading branch information
klauspost authored May 3, 2021
2 parents 38583ae + 52ba4f2 commit 5a940a9
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ Confirmed versions:
* v2.1.1.1472 (2020)
* v2.2.0.1543 (2020)
* v2.3.0.1591 (2020)
* v2.6.0.1692 (2020) - some versions tested.
* v2.6.0.1692 (2020)
* v2.6.2.1818 (2021)

Threadripper patch was supplied by [@neoKushan](https://github.com/neoKushan).
Ryzen 1000 series patch was supplied by [@kaelanduck](https://github.com/kaelanduck).
Expand Down
17 changes: 16 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,25 @@ var patterns = []struct {
replace: []byte{0x44, 0x39, 0x6D, 0xA8, 0x90, 0xe9, 0xf7},
},
{
desc: "Ryzen Master v2.3 -> ?",
desc: "Ryzen Master v2.3 -> 2.6.0",
search: []byte{0x44, 0x39, 0xad, 0xf8, 0, 0, 0, 0x0f, 0x84},
replace: []byte{0x44, 0x39, 0xad, 0xf8, 0, 0, 0, 0x90, 0xe9},
},
{
desc: "Ryzen Master v2.6.2 -> ?",
search: []byte{0x8D, 0x48, 0xFA, 0x83, 0xF9, 0x01, 0x0F, 0x87},
// mov edi, eax
// lea ecx, [rax-6]
// cmp ecx, 1
// ja loc_14001BF3A

replace: []byte{0x8D, 0x48, 0xFA, 0x83, 0xF9, 0x01, 0x90, 0xe9},
// mov edi, eax
// lea ecx, [rax-6]
// cmp ecx, 1
// nop
// jmp loc_14001BF3A
},
{
desc: "Ryzen Master Threadripper",
search: []byte{0x00, 0x39, 0x7D, 0x90, 0x0F, 0x84, 0xE8, 0x00},
Expand Down

0 comments on commit 5a940a9

Please sign in to comment.