Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Side by Side Diff: src/mips/assembler-mips.cc

Issue 1481493002: (mips) adding simulator support for AUI/DAUI/DAHI/DATI instructions. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: adding disasm tests. Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/mips/disasm-mips.cc » ('j') | src/mips/simulator-mips.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 1994-2006 Sun Microsystems Inc. 1 // Copyright (c) 1994-2006 Sun Microsystems Inc.
2 // All Rights Reserved. 2 // All Rights Reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions are 5 // modification, are permitted provided that the following conditions are
6 // met: 6 // met:
7 // 7 //
8 // - Redistributions of source code must retain the above copyright notice, 8 // - Redistributions of source code must retain the above copyright notice,
9 // this list of conditions and the following disclaimer. 9 // this list of conditions and the following disclaimer.
10 // 10 //
(...skipping 1800 matching lines...) Expand 10 before | Expand all | Expand 10 after
1811 GenInstrImmediate(SWR, rs.rm(), rd, rs.offset_); 1811 GenInstrImmediate(SWR, rs.rm(), rd, rs.offset_);
1812 } 1812 }
1813 1813
1814 1814
1815 void Assembler::lui(Register rd, int32_t j) { 1815 void Assembler::lui(Register rd, int32_t j) {
1816 DCHECK(is_uint16(j)); 1816 DCHECK(is_uint16(j));
1817 GenInstrImmediate(LUI, zero_reg, rd, j); 1817 GenInstrImmediate(LUI, zero_reg, rd, j);
1818 } 1818 }
1819 1819
1820 1820
1821 void Assembler::aui(Register rs, Register rt, int32_t j) { 1821 void Assembler::aui(Register rt, Register rs, int32_t j) {
1822 // This instruction uses same opcode as 'lui'. The difference in encoding is 1822 // This instruction uses same opcode as 'lui'. The difference in encoding is
1823 // 'lui' has zero reg. for rs field. 1823 // 'lui' has zero reg. for rs field.
1824 DCHECK(!(rs.is(zero_reg))); 1824 DCHECK(!(rs.is(zero_reg)));
1825 DCHECK(is_uint16(j)); 1825 DCHECK(is_uint16(j));
1826 GenInstrImmediate(LUI, rs, rt, j); 1826 GenInstrImmediate(LUI, rs, rt, j);
1827 } 1827 }
1828 1828
1829 1829
1830 // ---------PC-Relative instructions----------- 1830 // ---------PC-Relative instructions-----------
1831 1831
(...skipping 1215 matching lines...) Expand 10 before | Expand all | Expand 10 after
3047 3047
3048 if (icache_flush_mode != SKIP_ICACHE_FLUSH) { 3048 if (icache_flush_mode != SKIP_ICACHE_FLUSH) {
3049 CpuFeatures::FlushICache(pc, 2 * sizeof(int32_t)); 3049 CpuFeatures::FlushICache(pc, 2 * sizeof(int32_t));
3050 } 3050 }
3051 } 3051 }
3052 3052
3053 } // namespace internal 3053 } // namespace internal
3054 } // namespace v8 3054 } // namespace v8
3055 3055
3056 #endif // V8_TARGET_ARCH_MIPS 3056 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « no previous file | src/mips/disasm-mips.cc » ('j') | src/mips/simulator-mips.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698