gem5.git
14 years agoARM: Get rid of the binary dumping function in utility.hh.
Gabe Black [Wed, 2 Jun 2010 17:58:17 +0000 (12:58 -0500)]
ARM: Get rid of the binary dumping function in utility.hh.

14 years agoARM: Get rid of the empty branch.cc.
Gabe Black [Wed, 2 Jun 2010 17:58:17 +0000 (12:58 -0500)]
ARM: Get rid of the empty branch.cc.

14 years agoARM: Mark some ARM static inst functions as inline.
Gabe Black [Wed, 2 Jun 2010 17:58:17 +0000 (12:58 -0500)]
ARM: Mark some ARM static inst functions as inline.

14 years agoARM: Move some predecoder stuff into a .cc file.
Gabe Black [Wed, 2 Jun 2010 17:58:17 +0000 (12:58 -0500)]
ARM: Move some predecoder stuff into a .cc file.

--HG--
rename : src/arch/arm/predecoder.hh => src/arch/arm/predecoder.cc

14 years agoARM: Decode to specialized conditional/unconditional versions of instructions.
Gabe Black [Wed, 2 Jun 2010 17:58:17 +0000 (12:58 -0500)]
ARM: Decode to specialized conditional/unconditional versions of instructions.

This is to avoid condition code based dependences from effectively serializing
instructions when the instruction doesn't actually use them.

14 years agoARM: Make sure undefined unconditional ARM instructions decode as such.
Gabe Black [Wed, 2 Jun 2010 17:58:17 +0000 (12:58 -0500)]
ARM: Make sure undefined unconditional ARM instructions decode as such.

14 years agoARM: Implement a version of mcr and mrc that works in user mode.
Gabe Black [Wed, 2 Jun 2010 17:58:17 +0000 (12:58 -0500)]
ARM: Implement a version of mcr and mrc that works in user mode.

14 years agoARM: Hook the misc instructions into the thumb decoder.
Gabe Black [Wed, 2 Jun 2010 17:58:17 +0000 (12:58 -0500)]
ARM: Hook the misc instructions into the thumb decoder.

14 years agoARM: Move some miscellaneous instructions out of the decoder to share with thumb.
Gabe Black [Wed, 2 Jun 2010 17:58:17 +0000 (12:58 -0500)]
ARM: Move some miscellaneous instructions out of the decoder to share with thumb.

14 years agoARM: Treat LDRD in ARM with an odd index as an undefined instruction.
Gabe Black [Wed, 2 Jun 2010 17:58:17 +0000 (12:58 -0500)]
ARM: Treat LDRD in ARM with an odd index as an undefined instruction.

14 years agoARM: fix sizes of structs for ARM Linux
Ali Saidi [Wed, 2 Jun 2010 17:58:17 +0000 (12:58 -0500)]
ARM: fix sizes of structs for ARM Linux

14 years agoARM: Updated regressions for changes in SE mode stack
Ali Saidi [Wed, 2 Jun 2010 17:58:17 +0000 (12:58 -0500)]
ARM: Updated regressions for changes in SE mode stack

14 years agoARM: Fixup native trace support and add some v7/recent stack code
Ali Saidi [Wed, 2 Jun 2010 17:58:17 +0000 (12:58 -0500)]
ARM: Fixup native trace support and add some v7/recent stack code

14 years agoARM: Detect a bad offset field for the VFP Ldm/Stm instructions in the decoder.
Gabe Black [Wed, 2 Jun 2010 17:58:17 +0000 (12:58 -0500)]
ARM: Detect a bad offset field for the VFP Ldm/Stm instructions in the decoder.

14 years agoARM: Make sure the upc is zeroed when vectoring to a fault.
Gabe Black [Wed, 2 Jun 2010 17:58:17 +0000 (12:58 -0500)]
ARM: Make sure the upc is zeroed when vectoring to a fault.

14 years agoARM: Implement the getrusage syscall.
Ali Saidi [Wed, 2 Jun 2010 17:58:17 +0000 (12:58 -0500)]
ARM: Implement the getrusage syscall.

14 years agoARM: Implement the bkpt instruction.
Gabe Black [Wed, 2 Jun 2010 17:58:16 +0000 (12:58 -0500)]
ARM: Implement the bkpt instruction.

14 years agoARM: Make undefined instructions obey predication.
Gabe Black [Wed, 2 Jun 2010 17:58:16 +0000 (12:58 -0500)]
ARM: Make undefined instructions obey predication.

14 years agoARM: Implement support for the IT instruction and the ITSTATE bits of CPSR.
Gabe Black [Wed, 2 Jun 2010 17:58:16 +0000 (12:58 -0500)]
ARM: Implement support for the IT instruction and the ITSTATE bits of CPSR.

14 years agoARM: Get rid of some of the old FP implementation.
Gabe Black [Wed, 2 Jun 2010 17:58:16 +0000 (12:58 -0500)]
ARM: Get rid of some of the old FP implementation.

14 years agoARM: Some TLB bug fixes.
Ali Saidi [Wed, 2 Jun 2010 17:58:16 +0000 (12:58 -0500)]
ARM: Some TLB bug fixes.

14 years agoARM: Move Miscreg functions out of isa.hh
Ali Saidi [Wed, 2 Jun 2010 17:58:16 +0000 (12:58 -0500)]
ARM: Move Miscreg functions out of isa.hh

14 years agoARM: Implement the ARM TLB/Tablewalker. Needs performance improvements.
Ali Saidi [Wed, 2 Jun 2010 17:58:16 +0000 (12:58 -0500)]
ARM: Implement the ARM TLB/Tablewalker. Needs performance improvements.

14 years agoDMA: Make DmaPort generic enough to be used other places
Ali Saidi [Wed, 2 Jun 2010 17:58:16 +0000 (12:58 -0500)]
DMA: Make DmaPort generic enough to be used other places

14 years agoARM: SE needs a definition for PageTable::serialize/unserialize
Ali Saidi [Wed, 2 Jun 2010 17:58:16 +0000 (12:58 -0500)]
ARM: SE needs a definition for PageTable::serialize/unserialize

14 years agoARM: Add BKPT instruction
Ali Saidi [Wed, 2 Jun 2010 17:58:16 +0000 (12:58 -0500)]
ARM: Add BKPT instruction

--HG--
rename : src/arch/arm/isa/formats/unknown.isa => src/arch/arm/isa/formats/breakpoint.isa

14 years agoARM: Implement ARM CPU interrupts
Ali Saidi [Wed, 2 Jun 2010 17:58:16 +0000 (12:58 -0500)]
ARM: Implement ARM CPU interrupts

14 years agoARM: Start over with translation from Alpha code as opposed to something that has...
Ali Saidi [Wed, 2 Jun 2010 17:58:16 +0000 (12:58 -0500)]
ARM: Start over with translation from Alpha code as opposed to something that has cruft from 4 different ISAs.

14 years agoARM: Implement conversion to/from half precision.
Gabe Black [Wed, 2 Jun 2010 17:58:16 +0000 (12:58 -0500)]
ARM: Implement conversion to/from half precision.

14 years agoARM: Clean up VFP
Gabe Black [Wed, 2 Jun 2010 17:58:16 +0000 (12:58 -0500)]
ARM: Clean up VFP

14 years agoARM: Clean up the implementation of the VFP instructions.
Gabe Black [Wed, 2 Jun 2010 17:58:16 +0000 (12:58 -0500)]
ARM: Clean up the implementation of the VFP instructions.

14 years agoARM: Fix double precision load/store multiple decrement.
Gabe Black [Wed, 2 Jun 2010 17:58:15 +0000 (12:58 -0500)]
ARM: Fix double precision load/store multiple decrement.

When decrementing, the higher addressed half of a double word is at a 4 byte
smaller displacement.

14 years agoARM: Even though writes to MVFR0/1 should be unpredictable, we need to make them...
Gabe Black [Wed, 2 Jun 2010 17:58:15 +0000 (12:58 -0500)]
ARM: Even though writes to MVFR0/1 should be unpredictable, we need to make them to do nothing.

14 years agoARM: Make various bits of the FP control registers read only.
Gabe Black [Wed, 2 Jun 2010 17:58:15 +0000 (12:58 -0500)]
ARM: Make various bits of the FP control registers read only.

14 years agoARM: Implement the version of VMRS that writes to the APSR.
Gabe Black [Wed, 2 Jun 2010 17:58:15 +0000 (12:58 -0500)]
ARM: Implement the version of VMRS that writes to the APSR.

14 years agoARM: Ignore reads and writes to DCIMVAC.
Gabe Black [Wed, 2 Jun 2010 17:58:15 +0000 (12:58 -0500)]
ARM: Ignore reads and writes to DCIMVAC.

14 years agoARM: Make MPIDR return 0 and ignore writes.
Gabe Black [Wed, 2 Jun 2010 17:58:15 +0000 (12:58 -0500)]
ARM: Make MPIDR return 0 and ignore writes.

14 years agoARM: Implement the VCMPE instruction.
Gabe Black [Wed, 2 Jun 2010 17:58:15 +0000 (12:58 -0500)]
ARM: Implement the VCMPE instruction.

14 years agoARM: Fix vcvtr so that it uses the rounding mode in the FPSCR.
Gabe Black [Wed, 2 Jun 2010 17:58:15 +0000 (12:58 -0500)]
ARM: Fix vcvtr so that it uses the rounding mode in the FPSCR.

14 years agoARM: Fix saturation of VCVT from fp to integer.
Gabe Black [Wed, 2 Jun 2010 17:58:15 +0000 (12:58 -0500)]
ARM: Fix saturation of VCVT from fp to integer.

14 years agoARM: Compensate for ARM's underflow coming from -before- rounding, but x86's after.
Gabe Black [Wed, 2 Jun 2010 17:58:15 +0000 (12:58 -0500)]
ARM: Compensate for ARM's underflow coming from -before- rounding, but x86's after.

14 years agoARM: Implement flush to zero for destinations as well.
Gabe Black [Wed, 2 Jun 2010 17:58:15 +0000 (12:58 -0500)]
ARM: Implement flush to zero for destinations as well.

14 years agoARM: Fix up nans to match ARM's expected behavior.
Gabe Black [Wed, 2 Jun 2010 17:58:15 +0000 (12:58 -0500)]
ARM: Fix up nans to match ARM's expected behavior.

14 years agoARM: Set the value of the MVFR0 and MVFR1 registers.
Gabe Black [Wed, 2 Jun 2010 17:58:15 +0000 (12:58 -0500)]
ARM: Set the value of the MVFR0 and MVFR1 registers.

14 years agoARM: Implement flush to zero mode for VFP, and clean up some corner cases.
Gabe Black [Wed, 2 Jun 2010 17:58:15 +0000 (12:58 -0500)]
ARM: Implement flush to zero mode for VFP, and clean up some corner cases.

14 years agoARM: Add barriers that make sure FP operations happen where they're supposed to.
Gabe Black [Wed, 2 Jun 2010 17:58:15 +0000 (12:58 -0500)]
ARM: Add barriers that make sure FP operations happen where they're supposed to.

14 years agoARM: Implement the version of VCVT float to int that rounds towards zero.
Gabe Black [Wed, 2 Jun 2010 17:58:15 +0000 (12:58 -0500)]
ARM: Implement the version of VCVT float to int that rounds towards zero.

14 years agoARM: Implement the floating/fixed point VCVT instructions.
Gabe Black [Wed, 2 Jun 2010 17:58:15 +0000 (12:58 -0500)]
ARM: Implement the floating/fixed point VCVT instructions.

14 years agoARM: Add code to extract and record VFP exceptions.
Gabe Black [Wed, 2 Jun 2010 17:58:14 +0000 (12:58 -0500)]
ARM: Add code to extract and record VFP exceptions.

14 years agoARM: Implement the VFP version of VCMP.
Gabe Black [Wed, 2 Jun 2010 17:58:14 +0000 (12:58 -0500)]
ARM: Implement the VFP version of VCMP.

14 years agoARM: Add support for VFP vector mode.
Gabe Black [Wed, 2 Jun 2010 17:58:14 +0000 (12:58 -0500)]
ARM: Add support for VFP vector mode.

14 years agoARM: Introduce new VFP base classes that are optionally microops.
Gabe Black [Wed, 2 Jun 2010 17:58:14 +0000 (12:58 -0500)]
ARM: Introduce new VFP base classes that are optionally microops.

14 years agoARM: Implement VCVT between double and single width FP.
Gabe Black [Wed, 2 Jun 2010 17:58:14 +0000 (12:58 -0500)]
ARM: Implement VCVT between double and single width FP.

14 years agoARM: Implement vcvt between int and fp. Ignore rounding.
Gabe Black [Wed, 2 Jun 2010 17:58:14 +0000 (12:58 -0500)]
ARM: Implement vcvt between int and fp. Ignore rounding.

14 years agoARM: Consolidate the VFP register index computation code.
Gabe Black [Wed, 2 Jun 2010 17:58:14 +0000 (12:58 -0500)]
ARM: Consolidate the VFP register index computation code.

14 years agoARM: Implement the VFP negated multiplies.
Gabe Black [Wed, 2 Jun 2010 17:58:14 +0000 (12:58 -0500)]
ARM: Implement the VFP negated multiplies.

14 years agoARM: Implement the VFP versions of VMLA and VMLS.
Gabe Black [Wed, 2 Jun 2010 17:58:14 +0000 (12:58 -0500)]
ARM: Implement the VFP versions of VMLA and VMLS.

14 years agoARM: Implement the VFP version of vdiv and vsqrt.
Gabe Black [Wed, 2 Jun 2010 17:58:14 +0000 (12:58 -0500)]
ARM: Implement the VFP version of vdiv and vsqrt.

14 years agoARM: Implement the VFP version of vsub.
Gabe Black [Wed, 2 Jun 2010 17:58:14 +0000 (12:58 -0500)]
ARM: Implement the VFP version of vsub.

14 years agoARM: Implement the VFP version of vadd.
Gabe Black [Wed, 2 Jun 2010 17:58:14 +0000 (12:58 -0500)]
ARM: Implement the VFP version of vadd.

14 years agoARM: Implement the VFP version of vabs.
Gabe Black [Wed, 2 Jun 2010 17:58:14 +0000 (12:58 -0500)]
ARM: Implement the VFP version of vabs.

14 years agoARM: Implement the VFP version of vneg.
Gabe Black [Wed, 2 Jun 2010 17:58:14 +0000 (12:58 -0500)]
ARM: Implement the VFP version of vneg.

14 years agoARM: Implement the VFP version of vmul.
Gabe Black [Wed, 2 Jun 2010 17:58:14 +0000 (12:58 -0500)]
ARM: Implement the VFP version of vmul.

14 years agoARM: Move the VFP data operation decode into a function.
Gabe Black [Wed, 2 Jun 2010 17:58:14 +0000 (12:58 -0500)]
ARM: Move the VFP data operation decode into a function.

14 years agoARM: Implement and update the DFSR and IFSR registers on faults.
Gabe Black [Wed, 2 Jun 2010 17:58:14 +0000 (12:58 -0500)]
ARM: Implement and update the DFSR and IFSR registers on faults.

14 years agoARM: Make integer division by zero return a fault.
Gabe Black [Wed, 2 Jun 2010 17:58:13 +0000 (12:58 -0500)]
ARM: Make integer division by zero return a fault.

14 years agoARM: Add in some missing SCTLR fields.
Gabe Black [Wed, 2 Jun 2010 17:58:13 +0000 (12:58 -0500)]
ARM: Add in some missing SCTLR fields.

14 years agoARM: Decode ARM unconditional MRC and MCR instructions.
Gabe Black [Wed, 2 Jun 2010 17:58:13 +0000 (12:58 -0500)]
ARM: Decode ARM unconditional MRC and MCR instructions.

14 years agoARM: Move the CP15 decode block into a function.
Gabe Black [Wed, 2 Jun 2010 17:58:13 +0000 (12:58 -0500)]
ARM: Move the CP15 decode block into a function.

14 years agoARM: Decode the unconditional version of ARM fp instructions.
Gabe Black [Wed, 2 Jun 2010 17:58:13 +0000 (12:58 -0500)]
ARM: Decode the unconditional version of ARM fp instructions.

14 years agoARM: Move the FP decode blocks into functions.
Gabe Black [Wed, 2 Jun 2010 17:58:13 +0000 (12:58 -0500)]
ARM: Move the FP decode blocks into functions.

14 years agoARM: Warn/ignore when TLB maintenance operations are performed.
Gabe Black [Wed, 2 Jun 2010 17:58:13 +0000 (12:58 -0500)]
ARM: Warn/ignore when TLB maintenance operations are performed.

14 years agoARM: Handle accesses to TLBTR.
Gabe Black [Wed, 2 Jun 2010 17:58:13 +0000 (12:58 -0500)]
ARM: Handle accesses to TLBTR.

14 years agoARM: Handle accesses to the DACR.
Gabe Black [Wed, 2 Jun 2010 17:58:13 +0000 (12:58 -0500)]
ARM: Handle accesses to the DACR.

14 years agoARM: Handle accesses to TTBR0 and TTBR1.
Gabe Black [Wed, 2 Jun 2010 17:58:13 +0000 (12:58 -0500)]
ARM: Handle accesses to TTBR0 and TTBR1.

14 years agoARM: Convert the CP15 registers from MPU to MMU.
Gabe Black [Wed, 2 Jun 2010 17:58:13 +0000 (12:58 -0500)]
ARM: Convert the CP15 registers from MPU to MMU.

14 years agoARM: Add some support for wfi/wfe/yield/etc
Ali Saidi [Wed, 2 Jun 2010 17:58:13 +0000 (12:58 -0500)]
ARM: Add some support for wfi/wfe/yield/etc

14 years agoARM: Move PC mode bits around so they can be used for exectrace
Ali Saidi [Wed, 2 Jun 2010 17:58:13 +0000 (12:58 -0500)]
ARM: Move PC mode bits around so they can be used for exectrace

14 years agoARM: Add a traceflag to print cpsr
Ali Saidi [Wed, 2 Jun 2010 17:58:13 +0000 (12:58 -0500)]
ARM: Add a traceflag to print cpsr

14 years agoARM: Undef instruction on invalid user CP15 access
Ali Saidi [Wed, 2 Jun 2010 17:58:13 +0000 (12:58 -0500)]
ARM: Undef instruction on invalid user CP15 access

14 years agoARM: Decode the VSTR instruction.
Gabe Black [Wed, 2 Jun 2010 17:58:12 +0000 (12:58 -0500)]
ARM: Decode the VSTR instruction.

14 years agoARM: Implement the vstr instruction.
Gabe Black [Wed, 2 Jun 2010 17:58:12 +0000 (12:58 -0500)]
ARM: Implement the vstr instruction.

14 years agoARM: BXJ should be BX when there is no J support
Ali Saidi [Wed, 2 Jun 2010 17:58:12 +0000 (12:58 -0500)]
ARM: BXJ should be BX when there is no J support

14 years agoARM: Make sure macroops aren't interrupted midinstruction.
Gabe Black [Wed, 2 Jun 2010 17:58:12 +0000 (12:58 -0500)]
ARM: Make sure macroops aren't interrupted midinstruction.

Do this by setting the delayed commit flag for all but the last microop.

14 years agoARM: Fix the implementation of the VFP ldm and stm macroops.
Gabe Black [Wed, 2 Jun 2010 17:58:12 +0000 (12:58 -0500)]
ARM: Fix the implementation of the VFP ldm and stm macroops.

There were four bugs in these instructions. First, the loaded value was being
stored into a floating point register as floating point, changing the value as
it was transfered. Second, the meaning of the "up" bit had been reversed.
Third, the statically sized microop array wasn't bit enough for all possible
inputs. It's now dynamically sized and should always be big enough. Fourth,
the offset was stored as an unsigned 8 bit value. Negative offsets would look
like moderately large positive offsets.

14 years agoSimple CPU: Make the FloatRegs trace flag do something.
Gabe Black [Wed, 2 Jun 2010 17:58:12 +0000 (12:58 -0500)]
Simple CPU: Make the FloatRegs trace flag do something.

14 years agoARM: Fix up thumb decoding of coproc instructions.
Gabe Black [Wed, 2 Jun 2010 17:58:12 +0000 (12:58 -0500)]
ARM: Fix up thumb decoding of coproc instructions.

14 years agoARM: Clean up some redundancy and fault behavior for unimplemented thumb MCR, MRC.
Gabe Black [Wed, 2 Jun 2010 17:58:12 +0000 (12:58 -0500)]
ARM: Clean up some redundancy and fault behavior for unimplemented thumb MCR, MRC.

14 years agoCPU: Reset fetch offset after a exception
Ali Saidi [Wed, 2 Jun 2010 17:58:12 +0000 (12:58 -0500)]
CPU: Reset fetch offset after a exception

14 years agoARM: Decode the VLDR instruction.
Gabe Black [Wed, 2 Jun 2010 17:58:12 +0000 (12:58 -0500)]
ARM: Decode the VLDR instruction.

14 years agoARM: Implement the VLDR instruction.
Gabe Black [Wed, 2 Jun 2010 17:58:12 +0000 (12:58 -0500)]
ARM: Implement the VLDR instruction.

14 years agoARM: Decode all the various forms of vmov.
Gabe Black [Wed, 2 Jun 2010 17:58:12 +0000 (12:58 -0500)]
ARM: Decode all the various forms of vmov.

14 years agoARM: Make VFP load/store and 64 bit move decode correspond with CP10 and CP11.
Gabe Black [Wed, 2 Jun 2010 17:58:12 +0000 (12:58 -0500)]
ARM: Make VFP load/store and 64 bit move decode correspond with CP10 and CP11.

14 years agoARM: Implement the various versions of VMOV.
Gabe Black [Wed, 2 Jun 2010 17:58:12 +0000 (12:58 -0500)]
ARM: Implement the various versions of VMOV.

14 years agoARM: Add a new RegImmOp base class.
Gabe Black [Wed, 2 Jun 2010 17:58:12 +0000 (12:58 -0500)]
ARM: Add a new RegImmOp base class.

14 years agoARM: Add a RegRegImmOp base class.
Gabe Black [Wed, 2 Jun 2010 17:58:12 +0000 (12:58 -0500)]
ARM: Add a RegRegImmOp base class.

14 years agoARM: Widen the immediate fields in the misc instruction classes.
Gabe Black [Wed, 2 Jun 2010 17:58:12 +0000 (12:58 -0500)]
ARM: Widen the immediate fields in the misc instruction classes.

14 years agoARM: Add a function to decode VFP modified immediate constants.
Gabe Black [Wed, 2 Jun 2010 17:58:12 +0000 (12:58 -0500)]
ARM: Add a function to decode VFP modified immediate constants.

14 years agoARM: Add a function to decode SIMD modified immediate constants.
Gabe Black [Wed, 2 Jun 2010 17:58:12 +0000 (12:58 -0500)]
ARM: Add a function to decode SIMD modified immediate constants.

14 years agoARM: Add fp operands to operands.isa.
Gabe Black [Wed, 2 Jun 2010 17:58:12 +0000 (12:58 -0500)]
ARM: Add fp operands to operands.isa.