From: wolf Date: Sat, 13 Aug 2005 12:48:32 +0000 (+0000) Subject: - handle REP RET X-Git-Tag: auto/ac/valgrind-3_1_0-1~3 X-Git-Url: http://git.pld-linux.org/?p=packages%2Fvalgrind.git;a=commitdiff_plain;h=346866f222cd515c1a7b6cd5417390a7a259f926;hp=b4447ca3aeff0d50d9653974459cee2140312173 - handle REP RET Changed files: valgrind-repret.patch -> 1.1 valgrind.spec -> 1.49 --- diff --git a/valgrind-repret.patch b/valgrind-repret.patch new file mode 100644 index 0000000..4969ab5 --- /dev/null +++ b/valgrind-repret.patch @@ -0,0 +1,21 @@ +Index: priv/guest-x86/toIR.c +=================================================================== +--- VEX/priv/guest-x86/toIR.c (wersja 1331) ++++ VEX/priv/guest-x86/toIR.c (wersja 1332) +@@ -11353,11 +11353,11 @@ + dres.whatNext = Dis_StopHere; + break; + +-//-- case 0xC3: /* REP RET */ +-//-- /* AMD K7/K8-specific optimisation; faster than vanilla RET */ +-//-- dis_ret(cb, 0); +-//-- DIP("rep ret\n"); +-//-- break; ++ case 0xC3: /* REP RET -- same as normal ret? */ ++ dis_ret(0); ++ dres.whatNext = Dis_StopHere; ++ DIP("rep ret\n"); ++ break; + + default: + goto decode_failure; diff --git a/valgrind.spec b/valgrind.spec index 14b87fa..293f069 100644 --- a/valgrind.spec +++ b/valgrind.spec @@ -8,6 +8,7 @@ License: GPL Group: Development/Tools Source0: http://valgrind.org/downloads/%{name}-%{version}.tar.bz2 # Source0-md5: e976a343c61d9505162f595a8aeb09c1 +Patch0: %{name}-repret.patch URL: http://valgrind.org/ BuildRequires: autoconf BuildRequires: automake @@ -42,6 +43,7 @@ profilowanie, dzi %prep %setup -q +%patch0 -p0 %build %{__aclocal}