Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F178326823
D62448.1796498936.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
D62448.1796498936.diff
View Options
diff --git a/sys/cddl/contrib/opensolaris/uts/powerpc/dtrace/fasttrap_isa.c b/sys/cddl/contrib/opensolaris/uts/powerpc/dtrace/fasttrap_isa.c
--- a/sys/cddl/contrib/opensolaris/uts/powerpc/dtrace/fasttrap_isa.c
+++ b/sys/cddl/contrib/opensolaris/uts/powerpc/dtrace/fasttrap_isa.c
@@ -125,6 +125,9 @@
else if (OPX(instr) == 444 && OP_RS(instr) == OP_RA(instr) &&
OP_RS(instr) == OP_RB(instr))
tp->ftt_type = FASTTRAP_T_NOP;
+ else if (OPX(instr) == 316 && OP_RS(instr) == OP_RB(instr) &&
+ !(instr & 0x01))
+ tp->ftt_type = FASTTRAP_T_XOR;
break;
case 16:
tp->ftt_type = FASTTRAP_T_BC;
@@ -471,6 +474,11 @@
case FASTTRAP_T_NOP:
new_pc = rp->pc + 4;
break;
+ case FASTTRAP_T_XOR:
+ /* xor rA,rS,rS, as in an is-enabled site. */
+ rp->fixreg[OP_RA(tp->ftt_instr)] = 0;
+ new_pc = rp->pc + 4;
+ break;
case FASTTRAP_T_BC:
if (!fasttrap_branch_taken(tp->ftt_bo, tp->ftt_bi, rp))
break;
diff --git a/sys/cddl/contrib/opensolaris/uts/powerpc/sys/fasttrap_isa.h b/sys/cddl/contrib/opensolaris/uts/powerpc/sys/fasttrap_isa.h
--- a/sys/cddl/contrib/opensolaris/uts/powerpc/sys/fasttrap_isa.h
+++ b/sys/cddl/contrib/opensolaris/uts/powerpc/sys/fasttrap_isa.h
@@ -63,6 +63,7 @@
#define FASTTRAP_T_BLR 0x03
#define FASTTRAP_T_BCTR 0x04
#define FASTTRAP_T_NOP 0x05
+#define FASTTRAP_T_XOR 0x06
#define FASTTRAP_AFRAMES 3
#define FASTTRAP_RETURN_AFRAMES 4
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Dec 5, 7:28 PM (20 h, 57 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
42239234
Default Alt Text
D62448.1796498936.diff (1 KB)
Attached To
Mode
D62448: dtrace/powerpc: emulate the xor of USDT is-enabled sites
Attached
Detach File
Event Timeline