Skip to content

Commit 41a6ba0

Browse files
Isaku Yamahataaegl
authored andcommitted
ia64/pv_ops: update native/inst.h to clobber predicate.
add CLOBBER_PRED() to clobber predicate register. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: Tony Luck <tony.luck@intel.com>
1 parent ce1fc74 commit 41a6ba0

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

  • arch/ia64/include/asm/native

‎arch/ia64/include/asm/native/inst.h‎

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,13 @@
3636
;; \
3737
movl clob = PARAVIRT_POISON; \
3838
;;
39+
# define CLOBBER_PRED(pred_clob) \
40+
;; \
41+
cmp.eq pred_clob, p0 = r0, r0 \
42+
;;
3943
#else
40-
# define CLOBBER(clob) /* nothing */
44+
# define CLOBBER(clob) /* nothing */
45+
# define CLOBBER_PRED(pred_clob) /* nothing */
4146
#endif
4247

4348
#define MOV_FROM_IFA(reg) \
@@ -136,7 +141,8 @@
136141

137142
#define SSM_PSR_I(pred, pred_clob, clob) \
138143
(pred) ssm psr.i \
139-
CLOBBER(clob)
144+
CLOBBER(clob) \
145+
CLOBBER_PRED(pred_clob)
140146

141147
#define RSM_PSR_I(pred, clob0, clob1) \
142148
(pred) rsm psr.i \

0 commit comments

Comments
 (0)