aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMITSUNARI Shigeo <[email protected]>2018-08-28 18:29:23 +0900
committerMITSUNARI Shigeo <[email protected]>2018-08-28 18:29:23 +0900
commit348b270988e04c1c95adb9c5263b342de8a1cde9 (patch)
tree43143589bcc1e918e2841f3968a642e3e971ff77
parentf34f6ed5ef0cb3812bba1bcebb7782e628d42af2 (diff)
downloadxbyak-348b270988e04c1c95adb9c5263b342de8a1cde9.tar.gz
xbyak-348b270988e04c1c95adb9c5263b342de8a1cde9.zip
fix typo of doc
-rw-r--r--readme.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/readme.md b/readme.md
index bba8441..cb34add 100644
--- a/readme.md
+++ b/readme.md
@@ -347,13 +347,13 @@ c.ready(); // mode = Read/Write/Exec
### Read/Exec mode
Xbyak set Read/Write/Exec mode to memory to run jit code.
-If you want to use Read/Exec mode for security, then specify DontUseProtect for `CodeGenerator` and
+If you want to use Read/Exec mode for security, then specify `DontSetProtectRWE` for `CodeGenerator` and
call `setProtectModeRE()` after generating jit code.
```
struct Code : Xbyak::CodeGenerator {
Code()
- : Xbyak::CodeGenerator(4096, Xbyak::DontUseProtect)
+ : Xbyak::CodeGenerator(4096, Xbyak::DontSetProtectRWE)
{
mov(eax, 123);
ret();