handlers.hh (4114:6f845b792a1b) | handlers.hh (4989:3e9d532cf998) |
---|---|
1/* 2 * Copyright (c) 2003-2004 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 30 unchanged lines hidden (view full) --- 39 40//We only use 19 instructions for the trap handlers, but there would be 41//space for 32 in a real SPARC trap table. 42const int numFillInsts = 32; 43const int numSpillInsts = 32; 44 45const MachInst fillHandler64[numFillInsts] = 46{ | 1/* 2 * Copyright (c) 2003-2004 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 30 unchanged lines hidden (view full) --- 39 40//We only use 19 instructions for the trap handlers, but there would be 41//space for 32 in a real SPARC trap table. 42const int numFillInsts = 32; 43const int numSpillInsts = 32; 44 45const MachInst fillHandler64[numFillInsts] = 46{ |
47 htog(0x87802018), //wr %g0, ASI_AIUP, %asi | 47 htog(0x87802016), //wr %g0, ASI_AIUP, %asi |
48 htog(0xe0dba7ff), //ldxa [%sp + BIAS + (0*8)] %asi, %l0 49 htog(0xe2dba807), //ldxa [%sp + BIAS + (1*8)] %asi, %l1 50 htog(0xe4dba80f), //ldxa [%sp + BIAS + (2*8)] %asi, %l2 51 htog(0xe6dba817), //ldxa [%sp + BIAS + (3*8)] %asi, %l3 52 htog(0xe8dba81f), //ldxa [%sp + BIAS + (4*8)] %asi, %l4 53 htog(0xeadba827), //ldxa [%sp + BIAS + (5*8)] %asi, %l5 54 htog(0xecdba82f), //ldxa [%sp + BIAS + (6*8)] %asi, %l6 55 htog(0xeedba837), //ldxa [%sp + BIAS + (7*8)] %asi, %l7 --- 19 unchanged lines hidden (view full) --- 75 htog(0x00000000), //illtrap 76 htog(0x00000000), //illtrap 77 htog(0x00000000), //illtrap 78 htog(0x00000000) //illtrap 79}; 80 81const MachInst fillHandler32[numFillInsts] = 82{ | 48 htog(0xe0dba7ff), //ldxa [%sp + BIAS + (0*8)] %asi, %l0 49 htog(0xe2dba807), //ldxa [%sp + BIAS + (1*8)] %asi, %l1 50 htog(0xe4dba80f), //ldxa [%sp + BIAS + (2*8)] %asi, %l2 51 htog(0xe6dba817), //ldxa [%sp + BIAS + (3*8)] %asi, %l3 52 htog(0xe8dba81f), //ldxa [%sp + BIAS + (4*8)] %asi, %l4 53 htog(0xeadba827), //ldxa [%sp + BIAS + (5*8)] %asi, %l5 54 htog(0xecdba82f), //ldxa [%sp + BIAS + (6*8)] %asi, %l6 55 htog(0xeedba837), //ldxa [%sp + BIAS + (7*8)] %asi, %l7 --- 19 unchanged lines hidden (view full) --- 75 htog(0x00000000), //illtrap 76 htog(0x00000000), //illtrap 77 htog(0x00000000), //illtrap 78 htog(0x00000000) //illtrap 79}; 80 81const MachInst fillHandler32[numFillInsts] = 82{ |
83 htog(0x87802018), //wr %g0, ASI_AIUP, %asi | 83 htog(0x87802016), //wr %g0, ASI_AIUP, %asi |
84 htog(0xe083a000), //lduwa [%sp + (0*4)] %asi, %l0 85 htog(0xe283a004), //lduwa [%sp + (1*4)] %asi, %l1 86 htog(0xe483a008), //lduwa [%sp + (2*4)] %asi, %l2 87 htog(0xe683a00c), //lduwa [%sp + (3*4)] %asi, %l3 88 htog(0xe883a010), //lduwa [%sp + (4*4)] %asi, %l4 89 htog(0xea83a014), //lduwa [%sp + (5*4)] %asi, %l5 90 htog(0xec83a018), //lduwa [%sp + (6*4)] %asi, %l6 91 htog(0xee83a01c), //lduwa [%sp + (7*4)] %asi, %l7 --- 19 unchanged lines hidden (view full) --- 111 htog(0x00000000), //illtrap 112 htog(0x00000000), //illtrap 113 htog(0x00000000), //illtrap 114 htog(0x00000000) //illtrap 115}; 116 117const MachInst spillHandler64[numSpillInsts] = 118{ | 84 htog(0xe083a000), //lduwa [%sp + (0*4)] %asi, %l0 85 htog(0xe283a004), //lduwa [%sp + (1*4)] %asi, %l1 86 htog(0xe483a008), //lduwa [%sp + (2*4)] %asi, %l2 87 htog(0xe683a00c), //lduwa [%sp + (3*4)] %asi, %l3 88 htog(0xe883a010), //lduwa [%sp + (4*4)] %asi, %l4 89 htog(0xea83a014), //lduwa [%sp + (5*4)] %asi, %l5 90 htog(0xec83a018), //lduwa [%sp + (6*4)] %asi, %l6 91 htog(0xee83a01c), //lduwa [%sp + (7*4)] %asi, %l7 --- 19 unchanged lines hidden (view full) --- 111 htog(0x00000000), //illtrap 112 htog(0x00000000), //illtrap 113 htog(0x00000000), //illtrap 114 htog(0x00000000) //illtrap 115}; 116 117const MachInst spillHandler64[numSpillInsts] = 118{ |
119 htog(0x87802018), //wr %g0, ASI_AIUP, %asi | 119 htog(0x87802016), //wr %g0, ASI_AIUP, %asi |
120 htog(0xe0f3a7ff), //stxa %l0, [%sp + BIAS + (0*8)] %asi 121 htog(0xe2f3a807), //stxa %l1, [%sp + BIAS + (1*8)] %asi 122 htog(0xe4f3a80f), //stxa %l2, [%sp + BIAS + (2*8)] %asi 123 htog(0xe6f3a817), //stxa %l3, [%sp + BIAS + (3*8)] %asi 124 htog(0xe8f3a81f), //stxa %l4, [%sp + BIAS + (4*8)] %asi 125 htog(0xeaf3a827), //stxa %l5, [%sp + BIAS + (5*8)] %asi 126 htog(0xecf3a82f), //stxa %l6, [%sp + BIAS + (6*8)] %asi 127 htog(0xeef3a837), //stxa %l7, [%sp + BIAS + (7*8)] %asi --- 19 unchanged lines hidden (view full) --- 147 htog(0x00000000), //illtrap 148 htog(0x00000000), //illtrap 149 htog(0x00000000), //illtrap 150 htog(0x00000000) //illtrap 151}; 152 153const MachInst spillHandler32[numSpillInsts] = 154{ | 120 htog(0xe0f3a7ff), //stxa %l0, [%sp + BIAS + (0*8)] %asi 121 htog(0xe2f3a807), //stxa %l1, [%sp + BIAS + (1*8)] %asi 122 htog(0xe4f3a80f), //stxa %l2, [%sp + BIAS + (2*8)] %asi 123 htog(0xe6f3a817), //stxa %l3, [%sp + BIAS + (3*8)] %asi 124 htog(0xe8f3a81f), //stxa %l4, [%sp + BIAS + (4*8)] %asi 125 htog(0xeaf3a827), //stxa %l5, [%sp + BIAS + (5*8)] %asi 126 htog(0xecf3a82f), //stxa %l6, [%sp + BIAS + (6*8)] %asi 127 htog(0xeef3a837), //stxa %l7, [%sp + BIAS + (7*8)] %asi --- 19 unchanged lines hidden (view full) --- 147 htog(0x00000000), //illtrap 148 htog(0x00000000), //illtrap 149 htog(0x00000000), //illtrap 150 htog(0x00000000) //illtrap 151}; 152 153const MachInst spillHandler32[numSpillInsts] = 154{ |
155 htog(0x87802018), //wr %g0, ASI_AIUP, %asi | 155 htog(0x87802016), //wr %g0, ASI_AIUP, %asi |
156 htog(0xe0a3a000), //stwa %l0, [%sp + (0*4)] %asi 157 htog(0xe2a3a004), //stwa %l1, [%sp + (1*4)] %asi 158 htog(0xe4a3a008), //stwa %l2, [%sp + (2*4)] %asi 159 htog(0xe6a3a00c), //stwa %l3, [%sp + (3*4)] %asi 160 htog(0xe8a3a010), //stwa %l4, [%sp + (4*4)] %asi 161 htog(0xeaa3a014), //stwa %l5, [%sp + (5*4)] %asi 162 htog(0xeca3a018), //stwa %l6, [%sp + (6*4)] %asi 163 htog(0xeea3a01c), //stwa %l7, [%sp + (7*4)] %asi --- 27 unchanged lines hidden --- | 156 htog(0xe0a3a000), //stwa %l0, [%sp + (0*4)] %asi 157 htog(0xe2a3a004), //stwa %l1, [%sp + (1*4)] %asi 158 htog(0xe4a3a008), //stwa %l2, [%sp + (2*4)] %asi 159 htog(0xe6a3a00c), //stwa %l3, [%sp + (3*4)] %asi 160 htog(0xe8a3a010), //stwa %l4, [%sp + (4*4)] %asi 161 htog(0xeaa3a014), //stwa %l5, [%sp + (5*4)] %asi 162 htog(0xeca3a018), //stwa %l6, [%sp + (6*4)] %asi 163 htog(0xeea3a01c), //stwa %l7, [%sp + (7*4)] %asi --- 27 unchanged lines hidden --- |