Skip to content

Commit

Permalink
Update XED to 01a6da8090af84cd52f6c1070377ae6e885b078f (v2023.08.21)
Browse files Browse the repository at this point in the history
Update mbuild to 75cb46e6536758f1a3cdb3d6bd83a4a9fd0338bb (v2022.07.28)

PiperOrigin-RevId: 559777393
  • Loading branch information
dougkwan authored and copybara-github committed Aug 24, 2023
1 parent a4a3bb1 commit 0d9a4d3
Show file tree
Hide file tree
Showing 4 changed files with 97 additions and 73 deletions.
8 changes: 4 additions & 4 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -123,24 +123,24 @@ new_git_repository(
new_git_repository(
name = "mbuild",
build_file = "@silifuzz//:third_party/BUILD.mbuild",
commit = "1cb4f44e9b249626392a275e6f59c00ea16a47ed",
commit = "75cb46e6536758f1a3cdb3d6bd83a4a9fd0338bb",
patch_cmds = [
"rm -f setup.py",
"mv mbuild/*.py .",
],
remote = "https://github.com/intelxed/mbuild",
shallow_since = "1573652175 -0500",
shallow_since = "1659030943 +0300",
)

new_git_repository(
name = "libxed",
build_file = "@silifuzz//:third_party/BUILD.libxed",
commit = "801b876fe6a6d321b1f4027b6bb4adaee7ecd0a7",
commit = "01a6da8090af84cd52f6c1070377ae6e885b078f",
patch_cmds = [
"sed -i -e 's|xed/xed-interface.h|xed-interface.h|' examples/xed-tester.c",
],
remote = "https://github.com/intelxed/xed",
shallow_since = "1522099305 -0400",
shallow_since = "1692638366 +0300",
)

http_archive(
Expand Down
5 changes: 0 additions & 5 deletions common/decoded_insn.cc
Original file line number Diff line number Diff line change
Expand Up @@ -467,11 +467,6 @@ absl::StatusOr<uint64_t> DecodedInsn::memory_operand_address(
// xed_agen() requires a non-const pointer. Make a copy of 'regs' and
// pass pointer to copy instead.
user_regs_struct writable_regs = regs;
// Older versions of XED do not add length of instruction when computing
// a RIP-relative address. This is fixed in newer versions but we need to
// keep the following workaround until the open source version is sync'ed to
// a new version of XED.
writable_regs.rip += xed_decoded_inst_get_length(&xed_insn_);
xed_error_enum_t error = xed_agen(&xed_insn_, i, &writable_regs, &address);
if (error == XED_ERROR_NONE) {
return address;
Expand Down
Loading

0 comments on commit 0d9a4d3

Please sign in to comment.