blob: 00e79b93fecb593187ce65ccf5a21c87364c07c3 [file] [log] [blame]
Brad Bishop286d45c2018-10-02 15:21:57 -04001From 1b9bd76840fc1e67770a23c58bf18a24a25eb2b9 Mon Sep 17 00:00:00 2001
2From: Mahesh Bodapati <mbodapat@xilinx.com>
3Date: Sat, 26 Aug 2017 19:21:36 -0700
4Subject: [PATCH] Modified MicroBlaze trap instruction
5
6Modified trap instruction The instruction was wrongly written to brki
7r0,-1 it should be bri r0. Modified with the correct instruction
8
9Signed-off-by: Nagaraju Mekala <nagaraju.mekala@xilinx.com>
10Signed-off-by: Ajit Agarwal <ajitkum@xilinx.com>
11Signed-off-by: Mahesh Bodapati <mbodapat@xilinx.com>
12Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com>
13Upstream-Status: Pending
14---
15 gcc/config/microblaze/microblaze.md | 2 +-
16 1 file changed, 1 insertion(+), 1 deletion(-)
17
18diff --git a/gcc/config/microblaze/microblaze.md b/gcc/config/microblaze/microblaze.md
19index abbe97c15f..a3954a24b6 100644
20--- a/gcc/config/microblaze/microblaze.md
21+++ b/gcc/config/microblaze/microblaze.md
22@@ -2343,7 +2343,7 @@
23 (define_insn "trap"
24 [(trap_if (const_int 1) (const_int 0))]
25 ""
26- "brki\tr0,-1"
27+ "bri\t0"
28 [(set_attr "type" "trap")]
29 )
30
31--
322.14.2
33