- Timestamp:
- 04/05/11 20:08:31 (14 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/sim/memory.hex
r19 r30 1 9de3 2 bf50 3 0100 4 0000 5 0100 6 0000 7 0100 8 0000 9 0100 10 0000 11 0300 12 0000 13 0500 14 0100 15 8210 16 6000 17 8410 18 a0c0 19 8328 20 7020 21 8410 22 8001 23 81c0 24 8000 25 0100 26 0000 27 0100 28 0000 29 0100 30 0000 31 0100 32 0000 33 0100 34 0000 35 b580 36 2005 37 a210 38 2000 39 8210 40 20a9 41 8328 42 7020 43 e270 44 6000 45 e270 46 6040 47 e270 48 6080 49 e270 50 60c0 51 a210 52 2000 53 8210 54 2010 55 e2f0 56 4840 57 a210 58 2003 59 e2f0 60 08a0 61 a348 62 0000 63 819c 64 6820 65 8780 66 2025 67 c0f0 68 23c0 69 c0f0 70 23c8 71 c0f0 72 23d0 73 c0f0 74 23d8 75 c0f0 76 23e0 77 c0f0 78 23e8 79 c0f0 80 23f0 81 c0f0 82 23f8 83 8f90 84 2000 85 a190 86 2000 87 8d80 88 2000 89 8580 90 2000 91 8780 92 2000 93 8410 94 2000 95 8990 96 8000 97 8410 98 2000 99 b180 100 8000 101 8410 102 2001 103 8528 104 b03f 105 af80 106 8000 107 b380 108 8000 109 bf98 110 8000 111 8180 112 0000 113 9190 114 200f 115 9390 116 2000 117 9590 1 // inserisco 16 ff per partire da 10h e scrivo op4,op3,op2,op1 2 ffff 3 ffff 4 ffff 5 ffff 6 ffff 7 ffff 8 ffff 9 ffff 10 ffff 11 ffff 12 ffff 13 ffff 14 ffff 15 ffff 16 ffff 17 ffff 18 0001 // 24: 01 00 00 00 nop 19 0000 20 0001 // 28: 01 00 00 00 nop 21 0000 22 0001 // 2c: 01 00 00 00 nop 23 0000 24 0003 // 30: 03 00 00 00 sethi %hi(0), %g1 25 0000 26 0005 // 34: 05 00 01 00 sethi %hi(0x40000), %g2 27 0001 28 1082 // 38: 82 10 60 00 mov %g1, %g1 29 0060 30 1084 // 3c: 84 10 a0 c0 or %g2, 0xc0, %g2 31 c0a0 32 2883 // 40: 83 28 70 20 sllx %g1, 0x20, %g1 33 2070 34 1084 // 44: 84 10 80 01 or %g2, %g1, %g2 35 0180 36 c081 // 48: 81 c0 80 00 jmp %g2 37 0080 38 0001 // 4c: 01 00 00 00 nop 39 0000 40 0001 // 50: 01 00 00 00 nop 41 0000 42 0001 // 54: 01 00 00 00 nop 43 0000 44 0001 // 58: 01 00 00 00 nop 45 0000 46 0001 // 5c: 01 00 00 00 nop 47 0000 48 80b5 // 60: b5 80 20 05 wr %g0, 5, %asr26 49 0520 50 10a2 // 64: a2 10 20 00 clr %l1 51 0020 52 1082 // 68: 82 10 20 a9 mov 0xa9, %g1 53 a920 54 2883 // 6c: 83 28 70 20 sllx %g1, 0x20, %g1 55 2070 56 70e2 // 70: e2 70 60 00 stx %l1, [ %g1 ] 57 0060 58 70e2 // 74: e2 70 60 40 stx %l1, [ %g1 + 0x40 ] 59 4060 60 70e2 // 78: e2 70 60 80 stx %l1, [ %g1 + 0x80 ] 61 8060 62 70e2 // 7c: e2 70 60 c0 stx %l1, [ %g1 + 0xc0 ] 63 c060 64 10a2 // 80: a2 10 20 00 clr %l1 65 0020 66 1082 // 84: 82 10 20 10 mov 0x10, %g1 67 1020 68 f0e2 // 88: e2 f0 48 40 stxa %l1, [ %g1 ] #ASI_DCACHE_INVALIDATE 69 4048 70 10a2 // 8c: a2 10 20 03 mov 3, %l1 71 0320 72 f0e2 // 90: e2 f0 08 a0 stxa %l1, [ %g0 ] #ASI_LSU_CONTROL_REG 73 a008 74 48a3 // 94: a3 48 00 00 rdhpr %hpstate, %l1 75 0000 76 9c81 // 98: 81 9c 68 20 wrhpr %l1, 0x820, %hpstate 77 2068 78 8087 // 9c: 87 80 20 25 wr %g0, 0x25, %asi 79 2520 80 f0c0 // a0: c0 f0 23 c0 stxa %g0, [ 0x3c0 ] %asi 81 c023 82 f0c0 // a4: c0 f0 23 c8 stxa %g0, [ 0x3c8 ] %asi 83 c823 84 f0c0 // a8: c0 f0 23 d0 stxa %g0, [ 0x3d0 ] %asi 85 d023 86 f0c0 // ac: c0 f0 23 d8 stxa %g0, [ 0x3d8 ] %asi 87 d823 88 f0c0 // b0: c0 f0 23 e0 stxa %g0, [ 0x3e0 ] %asi 89 e023 90 f0c0 // b4: c0 f0 23 e8 stxa %g0, [ 0x3e8 ] %asi 91 e823 92 f0c0 // b8: c0 f0 23 f0 stxa %g0, [ 0x3f0 ] %asi 93 f023 94 f0c0 // bc: c0 f0 23 f8 stxa %g0, [ 0x3f8 ] %asi 95 f823 96 908f // c0: 8f 90 20 00 wrpr 0, %tl 97 0020 98 90a1 // c4: a1 90 20 00 wrpr 0, %gl 99 0020 100 808d // c8: 8d 80 20 00 wr %g0, 0, %fprs 101 0020 102 8085 // cc: 85 80 20 00 wr %g0, 0, %ccr 103 0020 104 8087 // d0: 87 80 20 00 wr %g0, 0, %asi 105 0020 106 1084 // d4: 84 10 20 00 clr %g2 107 0020 108 9089 // d8: 89 90 80 00 wrpr %g2, %tick 109 0080 110 1084 // dc: 84 10 20 00 clr %g2 111 0020 112 80b1 // e0: b1 80 80 00 mov %g2, %asr24 113 0080 114 1084 // e4: 84 10 20 01 mov 1, %g2 115 0120 116 2885 // e8: 85 28 b0 3f sllx %g2, 0x3f, %g2 117 3fb0 118 80af // ec: af 80 80 00 mov %g2, %asr23 119 0080 120 80b3 // f0: b3 80 80 00 mov %g2, %asr25 121 0080 122 98bf // f4: bf 98 80 00 wrhpr %g2, %hstick_cmpr 123 0080 124 8081 // f8: 81 80 00 00 mov %g0, %y 125 0000 126 9091 // fc: 91 90 20 0f wrpr 0xf, %pil 127 0f20 128 9093 // 100: 93 90 20 00 wrpr 0, %cwp 129 0020 130 9095 // 104: 95 90 20 06 wrpr 6, %cansave 131 0620 132 9097 // 108: 97 90 20 00 wrpr 0, %canrestore 133 0020 134 909b // 10c: 9b 90 20 00 wrpr 0, %otherwin 135 0020 136 9099 // 110: 99 90 20 07 wrpr 7, %cleanwin 137 0720 138 909d // 114: 9d 90 20 07 wrpr 7, %wstate 139 0720 140 1082 // 118: 82 10 20 18 mov 0x18, %g1 141 1820 142 f0c0 // 11c: c0 f0 0a 01 stxa %g0, [ %g0 + %g1 ] #ASI_IMMU 143 010a 144 f0c0 // 120: c0 f0 0b 01 stxa %g0, [ %g0 + %g1 ] #ASI_DMMU 145 010b 146 10a2 // 124: a2 10 20 03 mov 3, %l1 147 0320 148 f0e2 // 128: e2 f0 09 60 stxa %l1, [ %g0 ] #ASI_ESTATE_ERROR_EN 149 6009 150 10a2 // 12c: a2 10 20 03 mov 3, %l1 151 0320 152 1082 // 130: 82 10 20 aa mov 0xaa, %g1 153 aa20 154 2883 // 134: 83 28 70 20 sllx %g1, 0x20, %g1 155 2070 156 70e2 // 138: e2 70 60 00 stx %l1, [ %g1 ] 157 0060 158 70e2 // 13c: e2 70 60 40 stx %l1, [ %g1 + 0x40 ] 159 4060 160 70e2 // 140: e2 70 60 80 stx %l1, [ %g1 + 0x80 ] 161 8060 162 70e2 // 144: e2 70 60 c0 stx %l1, [ %g1 + 0xc0 ] 163 c060 164 46a3 // 148: a3 46 80 00 rd %asr26, %l1 165 0080 166 0003 // 14c: 03 00 00 07 sethi %hi(0x1c00), %g1 167 0700 168 1082 // 150: 82 10 63 00 or %g1, 0x300, %g1 ! 1f00 <main+0x1ee0> 169 0063 170 0ca2 // 154: a2 0c 40 01 and %l1, %g1, %l1 171 0140 172 34a3 // 158: a3 34 70 08 srlx %l1, 8, %l1 173 0870 174 0003 // 15c: 03 00 00 00 sethi %hi(0), %g1 175 0000 176 0005 // 160: 05 00 01 30 sethi %hi(0x4c000), %g2 177 3001 178 1082 // 164: 82 10 60 00 mov %g1, %g1 179 0060 180 1084 // 168: 84 10 a0 00 mov %g2, %g2 181 00a0 182 2883 // 16c: 83 28 70 20 sllx %g1, 0x20, %g1 183 2070 184 1084 // 170: 84 10 80 01 or %g2, %g1, %g2 185 0180 186 2ca3 // 174: a3 2c 70 03 sllx %l1, 3, %l1 187 0370 188 58c4 // 178: c4 58 80 11 ldx [ %g2 + %l1 ], %g2 189 1180 190 1082 // 17c: 82 10 20 80 mov 0x80, %g1 191 8020 192 f0c4 // 180: c4 f0 4b 00 stxa %g2, [ %g1 ] #ASI_DMMU 193 004b 194 002f // 184: 2f 00 02 00 sethi %hi(0x80000), %l7 195 0002 196 9d8b // 188: 8b 9d c0 00 wrhpr %l7, %htba 197 00c0 198 0021 // 18c: 21 00 00 00 sethi %hi(0), %l0 199 0000 200 0003 // 190: 03 00 01 30 sethi %hi(0x4c000), %g1 201 3001 202 14a0 // 194: a0 14 20 00 mov %l0, %l0 203 0020 204 1082 // 198: 82 10 61 40 or %g1, 0x140, %g1 205 4061 206 2ca1 // 19c: a1 2c 30 20 sllx %l0, 0x20, %l0 207 2030 208 1082 // 1a0: 82 10 40 10 or %g1, %l0, %g1 209 1040 210 2885 // 1a4: 85 28 b0 07 sllx %g2, 7, %g2 211 07b0 212 0082 // 1a8: 82 00 40 02 add %g1, %g2, %g1 213 0240 214 58e2 // 1ac: e2 58 40 00 ldx [ %g1 ], %l1 215 0040 216 f0e2 // 1b0: e2 f0 06 e0 stxa %l1, [ %g0 ] (55) 217 e006 218 58e2 // 1b4: e2 58 60 08 ldx [ %g1 + 8 ], %l1 219 0860 220 f0e2 // 1b8: e2 f0 07 e0 stxa %l1, [ %g0 ] (63) 221 e007 222 58e2 // 1bc: e2 58 60 10 ldx [ %g1 + 0x10 ], %l1 223 1060 224 f0e2 // 1c0: e2 f0 06 a0 stxa %l1, [ %g0 ] (53) 225 a006 226 58e2 // 1c4: e2 58 60 20 ldx [ %g1 + 0x20 ], %l1 227 2060 228 f0e2 // 1c8: e2 f0 06 c0 stxa %l1, [ %g0 ] (54) 229 c006 230 58e2 // 1cc: e2 58 60 18 ldx [ %g1 + 0x18 ], %l1 231 1860 232 f0e2 // 1d0: e2 f0 07 a0 stxa %l1, [ %g0 ] (61) 233 a007 234 58e2 // 1d4: e2 58 60 28 ldx [ %g1 + 0x28 ], %l1 235 2860 236 f0e2 // 1d8: e2 f0 07 c0 stxa %l1, [ %g0 ] (62) 237 c007 238 58e2 // 1dc: e2 58 60 40 ldx [ %g1 + 0x40 ], %l1 239 4060 240 f0e2 // 1e0: e2 f0 06 60 stxa %l1, [ %g0 ] #ASI_PCACHE_SNOOP_TAG 241 6006 242 58e2 // 1e4: e2 58 60 48 ldx [ %g1 + 0x48 ], %l1 243 4860 244 f0e2 // 1e8: e2 f0 07 60 stxa %l1, [ %g0 ] #ASI_WCACHE_SNOOP_TAG 245 6007 246 58e2 // 1ec: e2 58 60 50 ldx [ %g1 + 0x50 ], %l1 247 5060 248 f0e2 // 1f0: e2 f0 06 20 stxa %l1, [ %g0 ] #ASI_PCACHE_DATA 118 249 2006 119 9790 120 2000 121 9b90 122 2000 123 9990 250 58e2 // 1f4: e2 58 60 60 ldx [ %g1 + 0x60 ], %l1 251 6060 252 f0e2 // 1f8: e2 f0 06 40 stxa %l1, [ %g0 ] #ASI_PCACHE_TAG 253 4006 254 58e2 // 1fc: e2 58 60 58 ldx [ %g1 + 0x58 ], %l1 255 5860 256 f0e2 // 200: e2 f0 07 20 stxa %l1, [ %g0 ] #ASI_WCACHE_DATA 124 257 2007 125 9d90 126 2007 127 8210 128 2018 129 c0f0 130 0a01 131 c0f0 132 0b01 133 a210 134 2003 135 e2f0 136 0960 137 a210 138 2003 139 8210 140 20aa 141 8328 142 7020 143 e270 144 6000 145 e270 146 6040 147 e270 148 6080 149 e270 150 60c0 151 a346 152 8000 153 0300 154 0007 155 8210 156 6300 157 a20c 158 4001 159 a334 160 7008 161 0300 162 0000 163 0500 164 0130 165 8210 166 6000 167 8410 168 a000 169 8328 170 7020 171 8410 172 8001 173 a32c 174 7003 175 c458 176 8011 177 8210 178 2080 179 c4f0 180 4b00 181 2f00 182 0200 183 8b9d 184 c000 185 2100 186 0000 187 0300 188 0130 189 a014 190 2000 191 8210 192 6140 193 a12c 194 3020 195 8210 196 4010 197 8528 198 b007 199 8200 200 4002 201 e258 202 4000 203 e2f0 204 06e0 205 e258 258 58e2 // 204: e2 58 60 68 ldx [ %g1 + 0x68 ], %l1 259 6860 260 f0e2 // 208: e2 f0 07 40 stxa %l1, [ %g0 ] #ASI_WCACHE_TAG 261 4007 262 1094 // 20c: 94 10 20 80 mov 0x80, %o2 263 8020 264 f2c0 // 210: c0 f2 8a e0 stxa %g0, [ %o2 ] #ASI_IMMU_DEMAP 265 e08a 266 f2c0 // 214: c0 f2 8b e0 stxa %g0, [ %o2 ] #ASI_DMMU_DEMAP 267 e08b 268 10a2 // 218: a2 10 20 08 mov 8, %l1 269 0820 270 f4c0 // 21c: c0 f4 44 20 stxa %g0, [ %l1 ] #ASI_MMU 271 2044 272 10a2 // 220: a2 10 20 10 mov 0x10, %l1 273 1020 274 f4c0 // 224: c0 f4 44 20 stxa %g0, [ %l1 ] #ASI_MMU 275 2044 276 10a2 // 228: a2 10 20 0f mov 0xf, %l1 277 0f20 278 f0e2 // 22c: e2 f0 08 a0 stxa %l1, [ %g0 ] #ASI_LSU_CONTROL_REG 279 a008 280 0003 // 230: 03 00 00 00 sethi %hi(0), %g1 281 0000 282 0005 // 234: 05 00 05 10 sethi %hi(0x144000), %g2 283 1005 284 1082 // 238: 82 10 60 00 mov %g1, %g1 285 0060 286 1084 // 23c: 84 10 a0 00 mov %g2, %g2 287 00a0 288 2883 // 240: 83 28 70 20 sllx %g1, 0x20, %g1 289 2070 290 1084 // 244: 84 10 80 01 or %g2, %g1, %g2 291 0180 292 4887 // 248: 87 48 00 00 rdhpr %hpstate, %g3 293 0000 294 908f // 24c: 8f 90 20 01 wrpr 1, %tl 295 0120 296 1088 // 250: 88 10 20 00 clr %g4 297 0020 298 9983 // 254: 83 99 00 00 wrhpr %g4, %htstate 299 0000 300 908f // 258: 8f 90 20 00 wrpr 0, %tl 301 0020 302 1090 // 25c: 90 10 20 00 clr %o0 303 0020 304 c081 // 260: 81 c0 80 00 jmp %g2 305 0080 306 9881 // 264: 81 98 28 00 wrhpr 0x800, %hpstate 307 0028 308 0001 // 268: 01 00 00 00 nop 309 0000 310 0001 // 26c: 01 00 00 00 nop 311 0000 312 1082 // 270: 82 10 20 0f mov 0xf, %g1 ! f <main-0x11> 313 0f20 314 f0c2 // 274: c2 f0 08 a0 stxa %g1, [ %g0 ] #ASI_LSU_CONTROL_REG 315 a008 316 f0c0 // 278: c0 f0 08 60 stxa %g0, [ %g0 ] #ASI_DCACHE_UTAG 206 317 6008 207 e2f0 208 07e0 209 e258 210 6010 211 e2f0 212 06a0 213 e258 214 6020 215 e2f0 216 06c0 217 e258 218 6018 219 e2f0 220 07a0 221 e258 222 6028 223 e2f0 224 07c0 225 e258 226 6040 227 e2f0 228 0660 229 e258 230 6048 231 e2f0 232 0760 233 e258 234 6050 235 e2f0 236 0620 237 e258 238 6060 239 e2f0 240 0640 241 e258 242 6058 243 e2f0 244 0720 245 e258 246 6068 247 e2f0 248 0740 249 9410 250 2080 251 c0f2 252 8ae0 253 c0f2 254 8be0 255 a210 256 2008 257 c0f4 258 4420 259 a210 260 2010 261 c0f4 262 4420 263 a210 264 200f 265 e2f0 266 08a0 267 0300 268 0000 269 0500 270 0510 271 8210 272 6000 273 8410 274 a000 275 8328 276 7020 277 8410 278 8001 279 8748 280 0000 281 8f90 282 2001 283 8810 284 2000 285 8399 286 0000 287 8f90 288 2000 289 9010 290 2000 291 81c0 292 8000 293 8198 294 2800 295 0100 296 0000 297 0100 298 0000 299 8210 300 200f 301 c2f0 302 08a0 303 c0f0 304 0860 305 8348 306 0000 307 0100 308 0000 309 0100 310 0000 311 0100 312 0000 313 0100 314 0000 315 8210 316 2000 317 8338 318 6000 319 b010 320 0001 321 81cf 322 e008 323 0100 324 0000 318 4883 // 27c: 83 48 00 00 rdhpr %hpstate, %g1 319 0000 320 0001 // 280: 01 00 00 00 nop 321 0000 322 0001 // 284: 01 00 00 00 nop 323 0000 324 0001 // 288: 01 00 00 00 nop 325 0000 326 0001 // 28c: 01 00 00 00 nop 327 0000 328 c381 // 290: 81 c3 e0 08 retl 329 08e0 330 1090 // 294: 90 10 20 00 clr %o0 ! 0 <main-0x20> 331 0020 325 332 -
trunk/sw/test.dump
r19 r30 1 1 2 test. o: file format elf64-sparc2 test.bin: file format elf64-sparc 3 3 4 4 5 5 Disassembly of section .text: 6 6 7 0000000000000000 <main>: 8 0: 9d e3 bf 50 save %sp, -176, %sp 9 4: 01 00 00 00 nop 10 8: 01 00 00 00 nop 11 c: 01 00 00 00 nop 12 10: 01 00 00 00 nop 13 14: 03 00 00 00 sethi %hi(0), %g1 14 18: 05 00 01 00 sethi %hi(0x40000), %g2 15 1c: 82 10 60 00 mov %g1, %g1 16 20: 84 10 a0 c0 or %g2, 0xc0, %g2 17 24: 83 28 70 20 sllx %g1, 0x20, %g1 18 28: 84 10 80 01 or %g2, %g1, %g2 19 2c: 81 c0 80 00 jmp %g2 20 30: 01 00 00 00 nop 21 34: 01 00 00 00 nop 22 38: 01 00 00 00 nop 23 3c: 01 00 00 00 nop 24 40: 01 00 00 00 nop 25 44: b5 80 20 05 wr %g0, 5, %asr26 26 48: a2 10 20 00 clr %l1 27 4c: 82 10 20 a9 mov 0xa9, %g1 28 50: 83 28 70 20 sllx %g1, 0x20, %g1 29 54: e2 70 60 00 stx %l1, [ %g1 ] 30 58: e2 70 60 40 stx %l1, [ %g1 + 0x40 ] 31 5c: e2 70 60 80 stx %l1, [ %g1 + 0x80 ] 32 60: e2 70 60 c0 stx %l1, [ %g1 + 0xc0 ] 7 0000000000000020 <main>: 8 20: 01 00 00 00 nop 9 24: 01 00 00 00 nop 10 28: 01 00 00 00 nop 11 2c: 01 00 00 00 nop 12 30: 03 00 00 00 sethi %hi(0), %g1 13 34: 05 00 01 00 sethi %hi(0x40000), %g2 14 38: 82 10 60 00 mov %g1, %g1 15 3c: 84 10 a0 c0 or %g2, 0xc0, %g2 16 40: 83 28 70 20 sllx %g1, 0x20, %g1 17 44: 84 10 80 01 or %g2, %g1, %g2 18 48: 81 c0 80 00 jmp %g2 19 4c: 01 00 00 00 nop 20 50: 01 00 00 00 nop 21 54: 01 00 00 00 nop 22 58: 01 00 00 00 nop 23 5c: 01 00 00 00 nop 24 60: b5 80 20 05 wr %g0, 5, %asr26 33 25 64: a2 10 20 00 clr %l1 34 68: 82 10 20 10 mov 0x10, %g135 6c: e2 f0 48 40 stxa %l1, [ %g1 ] #ASI_DCACHE_INVALIDATE36 70: a2 10 20 03 mov 3, %l137 74: e2 f0 08 a0 stxa %l1, [ %g0 ] #ASI_LSU_CONTROL_REG38 78: a3 48 00 00 rdhpr %hpstate, %l139 7c: 81 9c 68 20 wrhpr %l1, 0x820, %hpstate40 80: 87 80 20 25 wr %g0, 0x25, %asi41 84: c0 f0 23 c0 stxa %g0, [ 0x3c0 ] %asi42 88: c0 f0 23 c8 stxa %g0, [ 0x3c8 ] %asi43 8c: c0 f0 23 d0 stxa %g0, [ 0x3d0 ] %asi44 90: c0 f0 23 d8 stxa %g0, [ 0x3d8 ] %asi45 94: c0 f0 23 e0 stxa %g0, [ 0x3e0 ] %asi46 98: c0 f0 23 e8 stxa %g0, [ 0x3e8 ] %asi47 9c: c0 f0 23 f0 stxa %g0, [ 0x3f0 ]%asi48 a0: c0 f0 23 f8 stxa %g0, [ 0x3f8] %asi49 a4: 8f 90 20 00 wrpr 0, %tl50 a8: a1 90 20 00 wrpr 0, %gl51 ac: 8d 80 20 00 wr %g0, 0, %fprs52 b0: 85 80 20 00 wr %g0, 0, %ccr53 b4: 87 80 20 00 wr %g0, 0,%asi54 b8: 84 10 20 00 clr %g255 bc: 89 90 80 00 wrpr %g2, %tick56 c0: 8 4 10 20 00 clr %g257 c4: b1 80 80 00 mov %g2, %asr2458 c8: 8 4 10 20 01 mov 1, %g259 cc: 85 28 b0 3f sllx %g2, 0x3f, %g260 d0: af 80 80 00 mov %g2, %asr2361 d4: b3 80 80 00 mov %g2, %asr2562 d8: bf 98 80 00 wrhpr %g2, %hstick_cmpr63 dc: 8 1 80 00 00 mov %g0, %y64 e0: 91 90 20 0f wrpr 0xf, %pil65 e4: 93 90 20 00 wrpr 0, %cwp66 e8: 95 90 20 06 wrpr 6, %cansave67 ec: 97 90 20 00 wrpr 0, %canrestore68 f0: 9b 90 20 00 wrpr 0, %otherwin69 f4: 99 90 20 07 wrpr 7, %cleanwin70 f8: 9d 90 20 07 wrpr 7, %wstate71 fc: 82 10 20 18 mov 0x18, %g172 100: c0 f0 0a 01 stxa %g0, [ %g0 + %g1 ] #ASI_IMMU73 104: c0 f0 0b 01 stxa %g0, [ %g0 + %g1 ] #ASI_DMMU74 108: a2 10 20 03 mov 3, %l175 10c: e2 f0 09 60 stxa %l1, [ %g0 ] #ASI_ESTATE_ERROR_EN76 110: a2 10 20 03 mov 3, %l177 114: 82 10 20 aa mov 0xaa, %g178 118: 8 3 28 70 20 sllx %g1, 0x20, %g179 11c: e2 70 60 00 stx %l1, [ %g1 ]80 120: e2 70 60 40 stx %l1, [ %g1 + 0x40 ]81 124: e2 70 60 80 stx %l1, [ %g1 + 0x80 ]82 128: e2 70 60 c0 stx %l1, [ %g1 + 0xc0 ]83 12c: a 3 46 80 00 rd %asr26, %l184 130: 03 00 00 07 sethi %hi(0x1c00), %g185 134: 8 2 10 63 00 or %g1, 0x300, %g1 ! 1f00 <main+0x1f00>86 138: a2 0c 40 01 and %l1, %g1, %l187 13c: a3 34 70 08 srlx %l1, 8, %l188 140: 03 00 00 00 sethi %hi(0), %g189 144: 05 00 01 30 sethi %hi(0x4c000), %g290 148: 82 10 60 00 mov %g1, %g191 14c: 84 10 a0 00 mov %g2, %g292 150: 8 3 28 70 20 sllx %g1, 0x20, %g193 154: 84 10 80 01 or %g2, %g1, %g294 158: a3 2c 70 03 sllx %l1, 3, %l195 15c: c4 58 80 11 ldx [ %g2 + %l1 ], %g296 160: 82 10 20 80 mov 0x80, %g197 164: c4 f0 4b 00 stxa %g2, [ %g1 ] #ASI_DMMU98 168: 2f 00 02 00 sethi %hi(0x80000), %l799 16c: 8 b 9d c0 00 wrhpr %l7, %htba100 170: 21 00 00 00 sethi %hi(0), %l0101 174: 03 00 01 30 sethi %hi(0x4c000), %g1102 178: a0 14 20 00 mov %l0, %l0103 17c: 82 10 61 40 or %g1, 0x140, %g1104 180: a1 2c 30 20 sllx %l0, 0x20, %l0105 184: 82 10 40 10 or %g1, %l0, %g1106 188: 8 5 28 b0 07 sllx %g2, 7, %g2107 18c: 82 00 40 02 add %g1, %g2, %g1108 190: e2 58 40 00 ldx [ %g1 ], %l1109 194: e2 f0 06 e0 stxa %l1, [ %g0 ] (55)110 198: e2 58 60 08 ldx [ %g1 + 8 ], %l1111 19c: e2 f0 07 e0 stxa %l1, [ %g0 ] (63)112 1a0: e2 58 60 10 ldx [ %g1 + 0x10 ], %l1113 1a4: e2 f0 06 a0 stxa %l1, [ %g0 ] (53)114 1a8: e2 58 60 20 ldx [ %g1 + 0x20 ], %l1115 1ac: e2 f0 06 c0 stxa %l1, [ %g0 ] (54)116 1b0: e2 58 60 18 ldx [ %g1 + 0x18 ], %l1117 1b4: e2 f0 07 a0 stxa %l1, [ %g0 ] (61)118 1b8: e2 58 60 28 ldx [ %g1 + 0x28 ], %l1119 1bc: e2 f0 07 c0 stxa %l1, [ %g0 ] (62)120 1c0: e2 58 60 40 ldx [ %g1 + 0x40 ], %l1121 1c4: e2 f0 06 60 stxa %l1, [ %g0 ] #ASI_PCACHE_SNOOP_TAG122 1c8: e2 58 60 48 ldx [ %g1 + 0x48 ], %l1123 1cc: e2 f0 07 60 stxa %l1, [ %g0 ] #ASI_WCACHE_SNOOP_TAG124 1d0: e2 58 60 50 ldx [ %g1 + 0x50 ], %l1125 1d4: e2 f0 06 20 stxa %l1, [ %g0 ] #ASI_PCACHE_DATA126 1d8: e2 58 60 60 ldx [ %g1 + 0x60 ], %l1127 1dc: e2 f0 06 40 stxa %l1, [ %g0 ] #ASI_PCACHE_TAG128 1e0: e2 58 60 58 ldx [ %g1 + 0x58 ], %l1129 1e4: e2 f0 07 20 stxa %l1, [ %g0 ] #ASI_WCACHE_DATA130 1e8: e2 58 60 68 ldx [ %g1 + 0x68 ], %l1131 1ec: e2 f0 07 40 stxa %l1, [ %g0 ] #ASI_WCACHE_TAG132 1f0: 94 10 20 80 mov 0x80, %o2133 1f4: c0 f2 8a e0 stxa %g0, [ %o2 ] #ASI_IMMU_DEMAP134 1f8: c0 f2 8b e0 stxa %g0, [ %o2 ] #ASI_DMMU_DEMAP135 1fc: a2 10 20 08 mov 8, %l1136 200: c0 f4 44 20 stxa %g0, [ %l1 ] #ASI_MMU137 204: a2 10 20 10 mov 0x10, %l1138 208: c0 f4 44 20 stxa %g0, [ %l1 ] #ASI_MMU139 20c: a2 10 20 0f mov 0xf, %l1140 210: e2 f0 08 a0 stxa %l1, [ %g0 ] #ASI_LSU_CONTROL_REG141 214: 03 00 00 00 sethi %hi(0), %g1142 218: 05 00 05 10 sethi %hi(0x144000), %g2143 21c: 82 10 60 00 mov %g1, %g1144 220: 84 10 a0 00 mov %g2, %g2145 224: 83 28 70 20 sllx %g1, 0x20, %g1146 228: 84 10 80 01 or %g2, %g1, %g2147 22c: 87 48 00 00 rdhpr %hpstate, %g3148 230: 8f 90 20 01 wrpr 1, %tl149 234: 88 10 20 00 clr %g4150 238: 8 3 99 00 00 wrhpr %g4, %htstate151 23c: 8 f 90 20 00 wrpr 0, %tl152 240: 90 10 20 00 clr %o0153 244: 8 1 c0 80 00 jmp%g2154 248: 8 1 98 28 00 wrhpr 0x800, %hpstate155 24c: 01 00 00 00 nop156 250: 01 00 00 00 nop157 254: 8 2 10 20 0f mov 0xf, %g1 ! f <main+0xf>158 258: c2 f0 08 a0 stxa %g1, [ %g0 ] #ASI_LSU_CONTROL_REG159 25c: c0 f0 08 60 stxa %g0, [ %g0 ] #ASI_DCACHE_UTAG160 260: 8 3 48 00 00 rdhpr %hpstate, %g1161 264: 01 00 00 00 nop26 68: 82 10 20 a9 mov 0xa9, %g1 27 6c: 83 28 70 20 sllx %g1, 0x20, %g1 28 70: e2 70 60 00 stx %l1, [ %g1 ] 29 74: e2 70 60 40 stx %l1, [ %g1 + 0x40 ] 30 78: e2 70 60 80 stx %l1, [ %g1 + 0x80 ] 31 7c: e2 70 60 c0 stx %l1, [ %g1 + 0xc0 ] 32 80: a2 10 20 00 clr %l1 33 84: 82 10 20 10 mov 0x10, %g1 34 88: e2 f0 48 40 stxa %l1, [ %g1 ] #ASI_DCACHE_INVALIDATE 35 8c: a2 10 20 03 mov 3, %l1 36 90: e2 f0 08 a0 stxa %l1, [ %g0 ] #ASI_LSU_CONTROL_REG 37 94: a3 48 00 00 rdhpr %hpstate, %l1 38 98: 81 9c 68 20 wrhpr %l1, 0x820, %hpstate 39 9c: 87 80 20 25 wr %g0, 0x25, %asi 40 a0: c0 f0 23 c0 stxa %g0, [ 0x3c0 ] %asi 41 a4: c0 f0 23 c8 stxa %g0, [ 0x3c8 ] %asi 42 a8: c0 f0 23 d0 stxa %g0, [ 0x3d0 ] %asi 43 ac: c0 f0 23 d8 stxa %g0, [ 0x3d8 ] %asi 44 b0: c0 f0 23 e0 stxa %g0, [ 0x3e0 ] %asi 45 b4: c0 f0 23 e8 stxa %g0, [ 0x3e8 ] %asi 46 b8: c0 f0 23 f0 stxa %g0, [ 0x3f0 ] %asi 47 bc: c0 f0 23 f8 stxa %g0, [ 0x3f8 ] %asi 48 c0: 8f 90 20 00 wrpr 0, %tl 49 c4: a1 90 20 00 wrpr 0, %gl 50 c8: 8d 80 20 00 wr %g0, 0, %fprs 51 cc: 85 80 20 00 wr %g0, 0, %ccr 52 d0: 87 80 20 00 wr %g0, 0, %asi 53 d4: 84 10 20 00 clr %g2 54 d8: 89 90 80 00 wrpr %g2, %tick 55 dc: 84 10 20 00 clr %g2 56 e0: b1 80 80 00 mov %g2, %asr24 57 e4: 84 10 20 01 mov 1, %g2 58 e8: 85 28 b0 3f sllx %g2, 0x3f, %g2 59 ec: af 80 80 00 mov %g2, %asr23 60 f0: b3 80 80 00 mov %g2, %asr25 61 f4: bf 98 80 00 wrhpr %g2, %hstick_cmpr 62 f8: 81 80 00 00 mov %g0, %y 63 fc: 91 90 20 0f wrpr 0xf, %pil 64 100: 93 90 20 00 wrpr 0, %cwp 65 104: 95 90 20 06 wrpr 6, %cansave 66 108: 97 90 20 00 wrpr 0, %canrestore 67 10c: 9b 90 20 00 wrpr 0, %otherwin 68 110: 99 90 20 07 wrpr 7, %cleanwin 69 114: 9d 90 20 07 wrpr 7, %wstate 70 118: 82 10 20 18 mov 0x18, %g1 71 11c: c0 f0 0a 01 stxa %g0, [ %g0 + %g1 ] #ASI_IMMU 72 120: c0 f0 0b 01 stxa %g0, [ %g0 + %g1 ] #ASI_DMMU 73 124: a2 10 20 03 mov 3, %l1 74 128: e2 f0 09 60 stxa %l1, [ %g0 ] #ASI_ESTATE_ERROR_EN 75 12c: a2 10 20 03 mov 3, %l1 76 130: 82 10 20 aa mov 0xaa, %g1 77 134: 83 28 70 20 sllx %g1, 0x20, %g1 78 138: e2 70 60 00 stx %l1, [ %g1 ] 79 13c: e2 70 60 40 stx %l1, [ %g1 + 0x40 ] 80 140: e2 70 60 80 stx %l1, [ %g1 + 0x80 ] 81 144: e2 70 60 c0 stx %l1, [ %g1 + 0xc0 ] 82 148: a3 46 80 00 rd %asr26, %l1 83 14c: 03 00 00 07 sethi %hi(0x1c00), %g1 84 150: 82 10 63 00 or %g1, 0x300, %g1 ! 1f00 <main+0x1ee0> 85 154: a2 0c 40 01 and %l1, %g1, %l1 86 158: a3 34 70 08 srlx %l1, 8, %l1 87 15c: 03 00 00 00 sethi %hi(0), %g1 88 160: 05 00 01 30 sethi %hi(0x4c000), %g2 89 164: 82 10 60 00 mov %g1, %g1 90 168: 84 10 a0 00 mov %g2, %g2 91 16c: 83 28 70 20 sllx %g1, 0x20, %g1 92 170: 84 10 80 01 or %g2, %g1, %g2 93 174: a3 2c 70 03 sllx %l1, 3, %l1 94 178: c4 58 80 11 ldx [ %g2 + %l1 ], %g2 95 17c: 82 10 20 80 mov 0x80, %g1 96 180: c4 f0 4b 00 stxa %g2, [ %g1 ] #ASI_DMMU 97 184: 2f 00 02 00 sethi %hi(0x80000), %l7 98 188: 8b 9d c0 00 wrhpr %l7, %htba 99 18c: 21 00 00 00 sethi %hi(0), %l0 100 190: 03 00 01 30 sethi %hi(0x4c000), %g1 101 194: a0 14 20 00 mov %l0, %l0 102 198: 82 10 61 40 or %g1, 0x140, %g1 103 19c: a1 2c 30 20 sllx %l0, 0x20, %l0 104 1a0: 82 10 40 10 or %g1, %l0, %g1 105 1a4: 85 28 b0 07 sllx %g2, 7, %g2 106 1a8: 82 00 40 02 add %g1, %g2, %g1 107 1ac: e2 58 40 00 ldx [ %g1 ], %l1 108 1b0: e2 f0 06 e0 stxa %l1, [ %g0 ] (55) 109 1b4: e2 58 60 08 ldx [ %g1 + 8 ], %l1 110 1b8: e2 f0 07 e0 stxa %l1, [ %g0 ] (63) 111 1bc: e2 58 60 10 ldx [ %g1 + 0x10 ], %l1 112 1c0: e2 f0 06 a0 stxa %l1, [ %g0 ] (53) 113 1c4: e2 58 60 20 ldx [ %g1 + 0x20 ], %l1 114 1c8: e2 f0 06 c0 stxa %l1, [ %g0 ] (54) 115 1cc: e2 58 60 18 ldx [ %g1 + 0x18 ], %l1 116 1d0: e2 f0 07 a0 stxa %l1, [ %g0 ] (61) 117 1d4: e2 58 60 28 ldx [ %g1 + 0x28 ], %l1 118 1d8: e2 f0 07 c0 stxa %l1, [ %g0 ] (62) 119 1dc: e2 58 60 40 ldx [ %g1 + 0x40 ], %l1 120 1e0: e2 f0 06 60 stxa %l1, [ %g0 ] #ASI_PCACHE_SNOOP_TAG 121 1e4: e2 58 60 48 ldx [ %g1 + 0x48 ], %l1 122 1e8: e2 f0 07 60 stxa %l1, [ %g0 ] #ASI_WCACHE_SNOOP_TAG 123 1ec: e2 58 60 50 ldx [ %g1 + 0x50 ], %l1 124 1f0: e2 f0 06 20 stxa %l1, [ %g0 ] #ASI_PCACHE_DATA 125 1f4: e2 58 60 60 ldx [ %g1 + 0x60 ], %l1 126 1f8: e2 f0 06 40 stxa %l1, [ %g0 ] #ASI_PCACHE_TAG 127 1fc: e2 58 60 58 ldx [ %g1 + 0x58 ], %l1 128 200: e2 f0 07 20 stxa %l1, [ %g0 ] #ASI_WCACHE_DATA 129 204: e2 58 60 68 ldx [ %g1 + 0x68 ], %l1 130 208: e2 f0 07 40 stxa %l1, [ %g0 ] #ASI_WCACHE_TAG 131 20c: 94 10 20 80 mov 0x80, %o2 132 210: c0 f2 8a e0 stxa %g0, [ %o2 ] #ASI_IMMU_DEMAP 133 214: c0 f2 8b e0 stxa %g0, [ %o2 ] #ASI_DMMU_DEMAP 134 218: a2 10 20 08 mov 8, %l1 135 21c: c0 f4 44 20 stxa %g0, [ %l1 ] #ASI_MMU 136 220: a2 10 20 10 mov 0x10, %l1 137 224: c0 f4 44 20 stxa %g0, [ %l1 ] #ASI_MMU 138 228: a2 10 20 0f mov 0xf, %l1 139 22c: e2 f0 08 a0 stxa %l1, [ %g0 ] #ASI_LSU_CONTROL_REG 140 230: 03 00 00 00 sethi %hi(0), %g1 141 234: 05 00 05 10 sethi %hi(0x144000), %g2 142 238: 82 10 60 00 mov %g1, %g1 143 23c: 84 10 a0 00 mov %g2, %g2 144 240: 83 28 70 20 sllx %g1, 0x20, %g1 145 244: 84 10 80 01 or %g2, %g1, %g2 146 248: 87 48 00 00 rdhpr %hpstate, %g3 147 24c: 8f 90 20 01 wrpr 1, %tl 148 250: 88 10 20 00 clr %g4 149 254: 83 99 00 00 wrhpr %g4, %htstate 150 258: 8f 90 20 00 wrpr 0, %tl 151 25c: 90 10 20 00 clr %o0 152 260: 81 c0 80 00 jmp %g2 153 264: 81 98 28 00 wrhpr 0x800, %hpstate 162 154 268: 01 00 00 00 nop 163 155 26c: 01 00 00 00 nop 164 270: 01 00 00 00 nop165 274: 82 10 20 00 clr %g1 ! 0 <main>166 278: 83 38 60 00 sra %g1, 0, %g1167 27c: b0 10 00 01 mov %g1, %i0168 280: 81 cf e0 08 rett %i7 + 8156 270: 82 10 20 0f mov 0xf, %g1 ! f <main-0x11> 157 274: c2 f0 08 a0 stxa %g1, [ %g0 ] #ASI_LSU_CONTROL_REG 158 278: c0 f0 08 60 stxa %g0, [ %g0 ] #ASI_DCACHE_UTAG 159 27c: 83 48 00 00 rdhpr %hpstate, %g1 160 280: 01 00 00 00 nop 169 161 284: 01 00 00 00 nop 162 288: 01 00 00 00 nop 163 28c: 01 00 00 00 nop 164 290: 81 c3 e0 08 retl 165 294: 90 10 20 00 clr %o0 ! 0 <main-0x20> -
trunk/tools/compila
r19 r30 3 3 ##bisognerebbe fare un makefile ma per ora: 4 4 5 if [ ! $# == 1 ]; then 6 echo "usage: compila nome_file (without extension)" 7 exit 0 8 fi 9 10 5 11 ## compila con ISA SPARC-V9 6 /opt/sparc64-sun-solaris2.8-toolchain/bin/sparc64-sun-solaris2.8-gcc -ffreestanding -nostdinc -c test.c 12 /opt/sparc64-sun-solaris2.8-toolchain/bin/sparc64-sun-solaris2.8-gcc -ffreestanding -nostdinc -Os -c $1.c 13 14 ## linka con ISA SPARC-V9 a 64 bits 15 echo "create $1.bin" 16 /opt/sparc64-sun-solaris2.8-toolchain/sparc64-sun-solaris2.8/bin/ld -melf64_sparc --script linker.lds $1.o -o $1.bin 17 7 18 8 19 ## fa il dump del file 9 /opt/sparc64-sun-solaris2.8-toolchain/sparc64-sun-solaris2.8/bin/objdump -d test.o >test.dump20 /opt/sparc64-sun-solaris2.8-toolchain/sparc64-sun-solaris2.8/bin/objdump -d $1.bin >$1.dump 10 21 11 22 ### crea memory.hex 12 ../tools/dump2hex.php <test.dump >../sim/memory.hex 23 echo "create memory_hello.hex for simulation" 24 25 ../tools/dump2hex.php <$1.dump >../sim/memory_hello.hex -
trunk/tools/dump2hex.php
r26 r30 6 6 7 7 // Discard first lines 8 for($i=0; $i< 8; $i++) fgets($fp);8 for($i=0; $i<7; $i++) fgets($fp); 9 9 10 10 // instruction start at address 10h 11 11 //echo "@ 10\n"; 12 12 echo "// inserisco 16 ff per partire da 10h e scrivo op4,op3,op2,op1 \n"; 13 echo "ffff\n"; 14 echo "ffff\n"; 15 echo "ffff\n"; 16 echo "ffff\n"; 17 echo "ffff\n"; 18 echo "ffff\n"; 19 echo "ffff\n"; 20 echo "ffff\n"; 21 echo "ffff\n"; 22 echo "ffff\n"; 23 echo "ffff\n"; 24 echo "ffff\n"; 25 echo "ffff\n"; 26 echo "ffff\n"; 27 echo "ffff\n"; 28 echo "ffff\n"; 13 echo "0001\n"; 14 echo "0000\n"; 15 echo "0001\n"; 16 echo "0000\n"; 17 echo "0001\n"; 18 echo "0000\n"; 19 echo "0001\n"; 20 echo "0000\n"; 21 echo "0001\n"; 22 echo "0000\n"; 23 echo "0001\n"; 24 echo "0000\n"; 25 echo "0001\n"; 26 echo "0000\n"; 27 echo "0001\n"; 28 echo "0000\n"; 29 29 30 // Print only the opcodes to stdout 30 31 while (!feof($fp)) {
Note: See TracChangeset
for help on using the changeset viewer.