Fix ZERO_EDX() macro from the previous commit. It was emitting

`xor %ecx, %ecx', not `xor %edx, %edx'.
This commit is contained in:
Jung-uk Kim 2005-12-06 20:11:07 +00:00
parent d1c004f7d1
commit 50c9fad9ce
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=153177
2 changed files with 2 additions and 2 deletions

View File

@ -431,7 +431,7 @@ typedef void (*emit_func)(bpf_bin_stream *stream, u_int value, u_int n);
/* xor edx,edx */
#define ZERO_EDX() do { \
emitm(&stream, 0x31, 1); \
emitm(&stream, 0xc9, 1); \
emitm(&stream, 0xd2, 1); \
} while (0)
#endif /* _BPF_JIT_MACHDEP_H_ */

View File

@ -398,7 +398,7 @@ typedef void (*emit_func)(bpf_bin_stream *stream, u_int value, u_int n);
/* xor edx,edx */
#define ZERO_EDX() do { \
emitm(&stream, 0x31, 1); \
emitm(&stream, 0xc9, 1); \
emitm(&stream, 0xd2, 1); \
} while (0)
#endif /* _BPF_JIT_MACHDEP_H_ */