gem5.git
17 years agoMerge from head.
Steve Reinhardt [Sun, 22 Jul 2007 22:02:40 +0000 (18:02 -0400)]
Merge from head.

--HG--
extra : convert_revision : dd23c568b3777fed7973401b6cf035f5a14f12f3

17 years agodo proper style checks for merged files
Nathan Binkert [Sun, 22 Jul 2007 20:45:12 +0000 (13:45 -0700)]
do proper style checks for merged files

--HG--
extra : convert_revision : f9d4c61ded4b13655dbe86f0bb6a0b3beaf45151

17 years agofix the style fixing thing
Nathan Binkert [Sun, 22 Jul 2007 16:08:05 +0000 (09:08 -0700)]
fix the style fixing thing

--HG--
extra : convert_revision : 65ffc14e7b78b49df9a67ef0d3521551dd44d1cd

17 years agoMerge more changes in from head.
Steve Reinhardt [Sun, 22 Jul 2007 15:10:59 +0000 (08:10 -0700)]
Merge more changes in from head.

--HG--
extra : convert_revision : 8f170f2754eccdb424a35b5b077225abcf6eee72

17 years agoReplace DeferredSnoop flag with LowerMSHRPending flag.
Steve Reinhardt [Sun, 22 Jul 2007 15:09:24 +0000 (08:09 -0700)]
Replace DeferredSnoop flag with LowerMSHRPending flag.
Turns out DeferredSnoop isn't quite the right bit of info
we needed... see new comment in cache_impl.hh.

--HG--
extra : convert_revision : a38de8c1677a37acafb743b7074ef88b21d3b7be

17 years agoMerge Gabe's changes with mine.
Steve Reinhardt [Sun, 22 Jul 2007 14:40:45 +0000 (10:40 -0400)]
Merge Gabe's changes with mine.

--HG--
extra : convert_revision : f50ed42e7acb3f11e610fd6976eaa8df0c6ba2ab

17 years agoA few minor non-debug compilation issues.
Steve Reinhardt [Sun, 22 Jul 2007 07:07:26 +0000 (03:07 -0400)]
A few minor non-debug compilation issues.

--HG--
extra : convert_revision : d59a5cad6187a2229dddd1a48282ebd2923d1d8d

17 years agoAdd the "open" syscall.
Gabe Black [Sun, 22 Jul 2007 02:43:03 +0000 (02:43 +0000)]
Add the "open" syscall.

--HG--
extra : convert_revision : d405ed5d3738639809dd2887955db9253138ccbb

17 years agoFixed immediate byte accounting bug.
Gabe Black [Sun, 22 Jul 2007 02:34:52 +0000 (02:34 +0000)]
Fixed immediate byte accounting bug.

--HG--
extra : convert_revision : ee5275da14a2923b9a525ae5b5c582c15df4608a

17 years agoFixed displacement size bug.
Gabe Black [Sun, 22 Jul 2007 02:23:03 +0000 (02:23 +0000)]
Fixed displacement size bug.

--HG--
extra : convert_revision : c39249ef598c1bd555098d688381dc62541a07c0

17 years agoMerge with head.
Gabe Black [Sun, 22 Jul 2007 05:49:57 +0000 (22:49 -0700)]
Merge with head.

--HG--
extra : convert_revision : 9b82ba062a14032ef24b960b92d48de754463284

17 years agoAdd code to turn the style stuff into a mercurial hook.
Nathan Binkert [Sun, 22 Jul 2007 05:33:08 +0000 (22:33 -0700)]
Add code to turn the style stuff into a mercurial hook.
Nag the user during compile if they have an hg cloned copy of M5, have
mercurial installed, but don't have the style hook enabled.

--HG--
extra : convert_revision : 6bcbb67f1a3fcd36db7d3ef16a9ff19680f126f2

17 years agoImplemented and hooked in xchg, rotate with carry, and ret instructions
Gabe Black [Sun, 22 Jul 2007 02:29:39 +0000 (19:29 -0700)]
Implemented and hooked in xchg, rotate with carry, and ret instructions

--HG--
extra : convert_revision : a8e67b0ab4072308f01e0df7f7ee05b31f605a35

17 years agoImplement rotate with carry microops.
Gabe Black [Sun, 22 Jul 2007 02:27:38 +0000 (19:27 -0700)]
Implement rotate with carry microops.

--HG--
extra : convert_revision : 1d7ff6611e5b4766a5257c1e73681fabbe5f6d76

17 years agoDeal with invalidations intersecting outstanding upgrades.
Steve Reinhardt [Sun, 22 Jul 2007 01:18:42 +0000 (18:18 -0700)]
Deal with invalidations intersecting outstanding upgrades.
If the invalidation beats the upgrade at a lower level
then the upgrade must be converted to a read exclusive
"in the field".
Restructure target list & deferred target list to
factor out some common code.

--HG--
extra : convert_revision : 7bab4482dd6c48efdb619610f0d3778c60ff777a

17 years agoSeveral more fixes for multi-level timing coherence.
Steve Reinhardt [Sat, 21 Jul 2007 20:45:17 +0000 (13:45 -0700)]
Several more fixes for multi-level timing coherence.
- Add "deferred snoop" flag to Packet so upper-level caches
  can distinguish whether lower-level cache request was
  in-service or not at the time of the original snoop.
- Revamp response handling to properly handle deferred snoops
  on non-cache-fill requests (i.e. upgrades).
- Make sure forwarded writebacks are kept in write buffer at
  lower-level caches so they get snooped properly.

--HG--
extra : convert_revision : 17f8a3772a1ae31a16991a53f8225ddf54d31fc9

17 years agoFixed the distinction between far and near versions of jmp, call and ret. Implemented...
Gabe Black [Sat, 21 Jul 2007 06:16:03 +0000 (23:16 -0700)]
Fixed the distinction between far and near versions of jmp, call and ret. Implemented some shifts, rotates, and pushes.

--HG--
extra : convert_revision : fcb06189ff213e82da16ac43231feb308cb3a285

17 years agoFixed line number accounting
Gabe Black [Sat, 21 Jul 2007 06:12:26 +0000 (23:12 -0700)]
Fixed line number accounting

--HG--
extra : convert_revision : 4c046493b98ce4a766c2121710d70650cb6a801e

17 years agoImplement UD2 and replace the place holder in the decoder.
Gabe Black [Sat, 21 Jul 2007 01:27:02 +0000 (18:27 -0700)]
Implement UD2 and replace the place holder in the decoder.

--HG--
extra : convert_revision : 16d0d2b2ddad8759698fa4aa668c22063307c72b

17 years agoMake the "name" function const.
Gabe Black [Sat, 21 Jul 2007 01:24:46 +0000 (18:24 -0700)]
Make the "name" function const.

--HG--
extra : convert_revision : eb71bc3edd92a544a5333786635fce550aaef233

17 years agoImplement adc and sbb instructions and microops.
Gabe Black [Sat, 21 Jul 2007 00:17:11 +0000 (17:17 -0700)]
Implement adc and sbb instructions and microops.

--HG--
extra : convert_revision : a2d3068c5b487f4fa7bf5c9cebba7753bc390bfa

17 years agoImplement the rest of the conditional jump instructions and hook them into the decoder.
Gabe Black [Sat, 21 Jul 2007 00:02:39 +0000 (17:02 -0700)]
Implement the rest of the conditional jump instructions and hook them into the decoder.

--HG--
extra : convert_revision : 8d1d6abce29371def560e1c3f31dabb4de01366f

17 years agoMake the decoder take advantage of the new "B" operand format which takes a register...
Gabe Black [Fri, 20 Jul 2007 23:48:59 +0000 (16:48 -0700)]
Make the decoder take advantage of the new "B" operand format which takes a register index from the opcode itself.

--HG--
extra : convert_revision : 35f9be6559ee9833049eda1817982efdde7082be

17 years agoDefine and fill out a lot of different instructions and instruction versions. Added...
Gabe Black [Fri, 20 Jul 2007 23:39:07 +0000 (16:39 -0700)]
Define and fill out a lot of different instructions and instruction versions. Added two of the shift microops.

--HG--
extra : convert_revision : 0b76953dbb1dc3366242d4d209cccebde86bbe4e

17 years agoHook in newly implemented instructions.
Gabe Black [Fri, 20 Jul 2007 22:05:37 +0000 (15:05 -0700)]
Hook in newly implemented instructions.

--HG--
extra : convert_revision : 53319d2363211af407dabaa2b63ad8a4df09c369

17 years agoComment, implement, fix, and trim the move microassembly.
Gabe Black [Fri, 20 Jul 2007 22:04:41 +0000 (15:04 -0700)]
Comment, implement, fix, and trim the move microassembly.

--HG--
extra : convert_revision : aa5ee7270e740bfbe42e70c4dfccc4c91ecacb33

17 years agoImplement jnbe.
Gabe Black [Fri, 20 Jul 2007 22:03:36 +0000 (15:03 -0700)]
Implement jnbe.

--HG--
extra : convert_revision : cdbf1ff5ed3a63787cbd2187a8a3455a41cc5085

17 years agoAppended _NEAR to the near version of call and return.
Gabe Black [Fri, 20 Jul 2007 22:03:03 +0000 (15:03 -0700)]
Appended _NEAR to the near version of call and return.

--HG--
extra : convert_revision : 70adb38d59ff7b5d103e58a9f0773dfb911fec6d

17 years agoMake load and store ops use the appropriate sized data access.
Gabe Black [Fri, 20 Jul 2007 22:02:09 +0000 (15:02 -0700)]
Make load and store ops use the appropriate sized data access.

--HG--
extra : convert_revision : 6b808586fab10ca433ef04b062bf701b906634b9

17 years agoImplement the increment and decrement instructions, and the two operand form of signe...
Gabe Black [Fri, 20 Jul 2007 21:59:14 +0000 (14:59 -0700)]
Implement the increment and decrement instructions, and the two operand form of signed multiplication.

--HG--
extra : convert_revision : d87df4b1b5470bed1d963dfe8e2ffa1403718342

17 years agoFix code that computes displacement size.
Gabe Black [Fri, 20 Jul 2007 21:57:34 +0000 (14:57 -0700)]
Fix code that computes displacement size.

--HG--
extra : convert_revision : a9be3eb2b90b88086936aeb4dcf87ec7b58a48cb

17 years agoAdd a bitfield to decode based on what prefixes are used.
Gabe Black [Fri, 20 Jul 2007 21:57:04 +0000 (14:57 -0700)]
Add a bitfield to decode based on what prefixes are used.

--HG--
extra : convert_revision : 7ff4998b3249ccfe86ae9cbcc63fb910683707f5

17 years agoAdd a parameter type to read a register index from the opcode itself.
Gabe Black [Fri, 20 Jul 2007 21:55:16 +0000 (14:55 -0700)]
Add a parameter type to read a register index from the opcode itself.

--HG--
extra : convert_revision : d2b5468ebf5df5a6ccadb57a30c52c8d16417b9a

17 years agoFix function which calculates the carry flag.
Gabe Black [Fri, 20 Jul 2007 21:54:17 +0000 (14:54 -0700)]
Fix function which calculates the carry flag.

--HG--
extra : convert_revision : aeb4f2d4c3936089421dbe80647f28ae36178283

17 years agoFix carry flag for subtracts, and clean up code slightly.
Gabe Black [Fri, 20 Jul 2007 21:53:38 +0000 (14:53 -0700)]
Fix carry flag for subtracts, and clean up code slightly.

--HG--
extra : convert_revision : 668f5d5aeba888488b41284de6c72a0d055c4ef4

17 years agoFixed width parameter and provided a parameter to flip the carry bit on subtract.
Gabe Black [Fri, 20 Jul 2007 21:52:44 +0000 (14:52 -0700)]
Fixed width parameter and provided a parameter to flip the carry bit on subtract.

--HG--
extra : convert_revision : d01bb791b000a2fdfc8600f8fb2f8aadd52b0b63

17 years agox86 fixes
Gabe Black [Thu, 19 Jul 2007 22:15:47 +0000 (15:15 -0700)]
x86 fixes
Make the emulation environment consider the rex prefix.
Implement and hook in forms of j, jmp, cmp, syscall, movzx
Added a format for an instruction to carry a call to the SE mode syscalls system
Made memory instructions which refer to the rip do so directly
Made the operand size overridable in the microassembly
Made the "ext" field of register operations 16 bits to hold a sparse encoding of flags to set or conditions to predicate on
Added an explicit "rax" operand for the syscall format
Implemented syscall returns.

--HG--
extra : convert_revision : ae84bd8c6a1d400906e17e8b8c4185f2ebd4c5f2

17 years agoCheck for the two opcode prefix correctly and add in some instructions.
Gabe Black [Thu, 19 Jul 2007 00:51:05 +0000 (17:51 -0700)]
Check for the two opcode prefix correctly and add in some instructions.

--HG--
extra : convert_revision : 751e54843f5c81b81529050a1ae9d46d07c36e97

17 years agoHook near returns into the decoder.
Gabe Black [Thu, 19 Jul 2007 00:48:16 +0000 (17:48 -0700)]
Hook near returns into the decoder.

--HG--
extra : convert_revision : b38d4417552991e44f5d1de1f35d5d1ad8f32340

17 years agoImplement near returns.
Gabe Black [Thu, 19 Jul 2007 00:47:40 +0000 (17:47 -0700)]
Implement near returns.

--HG--
extra : convert_revision : 3d6e8a976d31cb016a4b78200716b0ece155137a

17 years agoMake instructions that conditionally set registers set them to their old value if...
Gabe Black [Thu, 19 Jul 2007 00:46:38 +0000 (17:46 -0700)]
Make instructions that conditionally set registers set them to their old value if they don't actually execute.

--HG--
extra : convert_revision : 36e63dd0c6ac1a3e1133c7985cf5507b83e9ee45

17 years agoFix the overload which prints ExtMachInst in X86.
Gabe Black [Thu, 19 Jul 2007 00:45:43 +0000 (17:45 -0700)]
Fix the overload which prints ExtMachInst in X86.

--HG--
extra : convert_revision : 2ef8ee71999f36b09270ba9526c2846beda65051

17 years agoMake store microops actually store instead of load.
Gabe Black [Thu, 19 Jul 2007 00:45:06 +0000 (17:45 -0700)]
Make store microops actually store instead of load.

--HG--
extra : convert_revision : fe90f8adc96dd0e680cfa45e4c510a906046ae3d

17 years agoFix a comment to refer to the right type of instruction.
Gabe Black [Thu, 19 Jul 2007 00:44:12 +0000 (17:44 -0700)]
Fix a comment to refer to the right type of instruction.

--HG--
extra : convert_revision : dd441d8fbaed1ed8b2b66e3ad0275009bd4dcef4

17 years agoFix the panic in the "error" format for x86,
Gabe Black [Thu, 19 Jul 2007 00:43:30 +0000 (17:43 -0700)]
Fix the panic in the "error" format for x86,

--HG--
extra : convert_revision : bd0715b5b63665f9160082d67c5b5d90d2405c5c

17 years agoImplement some forms of add.
Gabe Black [Wed, 18 Jul 2007 23:33:56 +0000 (16:33 -0700)]
Implement some forms of add.

--HG--
extra : convert_revision : adbff2e9b9952ec09853cc43d40243e7262410a7

17 years agoFix the operand types in a section of the decoder.
Gabe Black [Wed, 18 Jul 2007 23:26:52 +0000 (16:26 -0700)]
Fix the operand types in a section of the decoder.

--HG--
extra : convert_revision : c37600fd65b44817eed2ba653f9d4f08a9869874

17 years agoMake the data size used by regops overridable in the microassembly.
Gabe Black [Wed, 18 Jul 2007 23:26:17 +0000 (16:26 -0700)]
Make the data size used by regops overridable in the microassembly.

--HG--
extra : convert_revision : 84d850aa5340c9d02d03502704b063215f6e2140

17 years agoFill out the miscreg file and add types to miscregs.hh
Gabe Black [Wed, 18 Jul 2007 23:12:39 +0000 (16:12 -0700)]
Fill out the miscreg file and add types to miscregs.hh

--HG--
extra : convert_revision : 865432256518c4340d9f319bdd9b7d160dc656a0

17 years agoHook x86 nop into the decoder.
Gabe Black [Wed, 18 Jul 2007 23:11:52 +0000 (16:11 -0700)]
Hook x86 nop into the decoder.

--HG--
extra : convert_revision : 26f765ecf74a0bb6a1ec89816f1d630a1a8e4553

17 years agoFix a compilation error for SubBitUnions,
Gabe Black [Wed, 18 Jul 2007 23:11:16 +0000 (16:11 -0700)]
Fix a compilation error for SubBitUnions,

--HG--
extra : convert_revision : aad9388afe81ba6541d0b18fa9777e6ffcfd871c

17 years agoImplement the x86 nop to be a "fault" microop which returns "NoFault".
Gabe Black [Wed, 18 Jul 2007 23:10:44 +0000 (16:10 -0700)]
Implement the x86 nop to be a "fault" microop which returns "NoFault".

--HG--
extra : convert_revision : 1b446def756f1d0f80631db944d1cc41be95efbd

17 years agoAdd a generateDisassembly function to the MicroFault StaticInst.
Gabe Black [Wed, 18 Jul 2007 23:09:35 +0000 (16:09 -0700)]
Add a generateDisassembly function to the MicroFault StaticInst.

--HG--
extra : convert_revision : 73811bf99b26fad413c9b84a54f44e3763ff1835

17 years agoMake name, isMachineCheckFault, and isAlignmentFault const.
Gabe Black [Wed, 18 Jul 2007 23:09:00 +0000 (16:09 -0700)]
Make name, isMachineCheckFault, and isAlignmentFault const.

--HG--
extra : convert_revision : a27e0cbdfcb2a5fdc5979686f887cec7d106542b

17 years agoCalculate the correct address size.
Gabe Black [Wed, 18 Jul 2007 03:54:55 +0000 (20:54 -0700)]
Calculate the correct address size.

--HG--
extra : convert_revision : 6bd9d5a01ba6600781e3678e0403dca524fb2cba

17 years agoMake disassembled x86 register indices reflect their size.
Gabe Black [Wed, 18 Jul 2007 01:12:33 +0000 (18:12 -0700)]
Make disassembled x86 register indices reflect their size.
This doesn't handle high byte register accesses. It also highlights the fact that address size isn't actually being calculated, and that the size a microop uses needs to be overridable from the microassembly.

--HG--
extra : convert_revision : d495ac4f5756dc55a5f71953ff6963b3c030e6cb

17 years agoImplemented jnz.
Gabe Black [Tue, 17 Jul 2007 23:55:33 +0000 (16:55 -0700)]
Implemented jnz.

--HG--
extra : convert_revision : ea169ad68acbb3383443586b783b831b3a9eecf9

17 years agoUse limm to set up immediate value for subtract instruction.
Gabe Black [Tue, 17 Jul 2007 23:50:13 +0000 (16:50 -0700)]
Use limm to set up immediate value for subtract instruction.

--HG--
extra : convert_revision : f94e391e36a47c2f5222f30d7e28f48f7875db58

17 years agoImplement the jz instruction.
Gabe Black [Tue, 17 Jul 2007 22:36:45 +0000 (15:36 -0700)]
Implement the jz instruction.

--HG--
extra : convert_revision : 7c0bd7ce244f724ac03bbb5fdf770c7a3eba78b4

17 years agoMake "test" set some condition codes.
Gabe Black [Tue, 17 Jul 2007 22:35:34 +0000 (15:35 -0700)]
Make "test" set some condition codes.
It still needs to zero the overflow and carry flags to be correct.

--HG--
extra : convert_revision : 73cb3a55f7b4234389d9355f5ad45da6aaaa6c60

17 years agoAdd in support for condition code flags.
Gabe Black [Tue, 17 Jul 2007 22:33:18 +0000 (15:33 -0700)]
Add in support for condition code flags.
Some microops can set the condition codes, and some of them can be predicated on them. Some of the codes aren't implemented because it was unclear from the AMD patent what they actually did. They are used with string instructions, but they use variables IP, DTF, and SSTF which don't appear to be documented.

--HG--
extra : convert_revision : 2236cccd07d0091762b50148975f301bb1d2da3f

17 years agoAdd in operand which holds the condition code bits of the flag register.
Gabe Black [Tue, 17 Jul 2007 22:28:48 +0000 (15:28 -0700)]
Add in operand which holds the condition code bits of the flag register.

--HG--
extra : convert_revision : 416052f41fccc8286b3bdbe8d559512a761224f2

17 years agoAdd symbols for each of the flags a microop could set and each condition it could...
Gabe Black [Tue, 17 Jul 2007 22:27:28 +0000 (15:27 -0700)]
Add symbols for each of the flags a microop could set and each condition it could check.

--HG--
extra : convert_revision : 1f542b8aadfd5146539cadef631b49d77f578472

17 years agoActually include miscregs.hh
Gabe Black [Tue, 17 Jul 2007 20:30:23 +0000 (13:30 -0700)]
Actually include miscregs.hh

--HG--
extra : convert_revision : 6ebf906d2211b94f28c173f0d2da91bd446fcb2c

17 years agoCreate a file to describe misc registers.
Gabe Black [Tue, 17 Jul 2007 20:29:40 +0000 (13:29 -0700)]
Create a file to describe misc registers.
Define bitfields, indices, etc.

--HG--
extra : convert_revision : 8fffdc4cf796d304b12b317d8bddf5685bd50cf4

17 years agoCreate a file of functions for computing condition codes.
Gabe Black [Tue, 17 Jul 2007 20:28:03 +0000 (13:28 -0700)]
Create a file of functions for computing condition codes.
These haven't been very thuroughly tested, so use at your own risk.

--HG--
extra : convert_revision : 938885d36fea4a99f8228cdf195a0e0a38dd9031

17 years agoAdd a spot for the condition code portion of the flag register.
Gabe Black [Tue, 17 Jul 2007 20:26:06 +0000 (13:26 -0700)]
Add a spot for the condition code portion of the flag register.
This is stored in the integer register file so that it can be renamed, but it should be a misc reg.

--HG--
extra : convert_revision : eee48f24dd80b145f14427482047c4d8af2521ab

17 years agoAdd a conversion constructor so a bitunion can be initialized to a value.
Gabe Black [Tue, 17 Jul 2007 20:23:42 +0000 (13:23 -0700)]
Add a conversion constructor so a bitunion can be initialized to a value.
Previously, the bitunion would need to be declared and then assigned to separately.

--HG--
extra : convert_revision : d229bd83bc7baeca2259d4e7b080f359915015f3

17 years agoMake sure responses never get blocked.
Steve Reinhardt [Tue, 17 Jul 2007 15:15:23 +0000 (08:15 -0700)]
Make sure responses never get blocked.

--HG--
extra : convert_revision : 29f359d743994a94dc403aa0621ba72cd137d1a1

17 years agoForward cache-to-cache responses through other caches.
Steve Reinhardt [Tue, 17 Jul 2007 13:33:28 +0000 (06:33 -0700)]
Forward cache-to-cache responses through other caches.

--HG--
extra : convert_revision : 5b6a02255bccd98b00949703cf4ba4b221553cea

17 years agoAssert that an mshr has a target in getTarget().
Steve Reinhardt [Tue, 17 Jul 2007 13:23:11 +0000 (06:23 -0700)]
Assert that an mshr has a target in getTarget().

--HG--
extra : convert_revision : 08091670fc319876012ed139fcd2584c364a980c

17 years agoFix bug with timing snoop upcalls to MemTest object.
Steve Reinhardt [Mon, 16 Jul 2007 04:03:12 +0000 (21:03 -0700)]
Fix bug with timing snoop upcalls to MemTest object.

--HG--
extra : convert_revision : 1940a5d231b4f856cf69578f68ea98435824dbd8

17 years agoAdd valgrind-suppressions file.
Steve Reinhardt [Mon, 16 Jul 2007 03:30:22 +0000 (23:30 -0400)]
Add valgrind-suppressions file.

--HG--
extra : convert_revision : 8c912aa723f2532c728b47a0bd83c3f3f27d7dfe

17 years agoMerge from head.
Steve Reinhardt [Mon, 16 Jul 2007 03:22:04 +0000 (23:22 -0400)]
Merge from head.

--HG--
extra : convert_revision : c5d045208e521f0bc9e47484a380917e27066798

17 years agoFix up a bunch of multilevel coherence issues.
Steve Reinhardt [Mon, 16 Jul 2007 03:11:06 +0000 (20:11 -0700)]
Fix up a bunch of multilevel coherence issues.
Atomic mode seems to work.  Timing is closer but not there yet.

--HG--
extra : convert_revision : 0dea5c3d4b973d009e9d4a4c21b9cad15961d56f

17 years agoMake Bus::findPort() a little more useful.
Steve Reinhardt [Mon, 16 Jul 2007 03:09:03 +0000 (20:09 -0700)]
Make Bus::findPort() a little more useful.
Move check for loops outside, since half the call sites
end up working around it anyway.  Return integer port ID
instead of port object pointer.

--HG--
extra : convert_revision : 4c31fe9930f4d1aa4919e764efb7c50d43792ea3

17 years agoFix problem with unset max_loads in memtest.
Steve Reinhardt [Sun, 15 Jul 2007 21:32:55 +0000 (14:32 -0700)]
Fix problem with unset max_loads in memtest.
Also make default 0, and make that mean run forever.

--HG--
extra : convert_revision : 3e60a52b1c5e334a9ef3d744cf7ee1d851ba4aa9

17 years agoPunt on old -n/-c memtest args.
Steve Reinhardt [Sun, 15 Jul 2007 21:07:31 +0000 (14:07 -0700)]
Punt on old -n/-c memtest args.
Also added comments to document treespec format.

--HG--
extra : convert_revision : fa9e8f66b68b96a4efca8a7fe6e7c37367382d9d

17 years agoAdd --force-bus option to memtest.py.
Steve Reinhardt [Sun, 15 Jul 2007 20:22:49 +0000 (13:22 -0700)]
Add --force-bus option to memtest.py.

--HG--
extra : convert_revision : 101735cca426903704ff2edaff051fa7c5bfc46c

17 years agoNew tree-based algorithm for creating more complex cache hierarchies.
Steve Reinhardt [Sun, 15 Jul 2007 06:49:24 +0000 (23:49 -0700)]
New tree-based algorithm for creating more complex cache hierarchies.

--HG--
extra : convert_revision : de8dd4ef5dae0f3e084461e8ef7c549653e61d3f

17 years agoHandle broken swig version that prints version info on stderr.
Steve Reinhardt [Sun, 15 Jul 2007 01:35:26 +0000 (21:35 -0400)]
Handle broken swig version that prints version info on stderr.

--HG--
extra : convert_revision : 83021779c40972fa56893d21713c6115cd481bc4

17 years agoMove bitunion code into it's own file.
Gabe Black [Sun, 15 Jul 2007 00:28:26 +0000 (17:28 -0700)]
Move bitunion code into it's own file.

--HG--
extra : convert_revision : 8d55ca9645ee4e357b7f4595435542eb72490331

17 years agoPull some hard coded base classes out of the isa description.
Gabe Black [Sun, 15 Jul 2007 00:14:19 +0000 (17:14 -0700)]
Pull some hard coded base classes out of the isa description.

--HG--
rename : src/arch/x86/isa/base.isa => src/arch/x86/isa/outputblock.isa
extra : convert_revision : 7954e7d5eea3b5966c9e273a08bcd169a39f380c

17 years agoAdd CacheRepl trace flag and move a couple DPRINTFs to it.
Steve Reinhardt [Sat, 14 Jul 2007 20:28:52 +0000 (13:28 -0700)]
Add CacheRepl trace flag and move a couple DPRINTFs to it.

--HG--
extra : convert_revision : 31724d19ebdf2cdc2a2bafff83d17845b3a0b183

17 years agoMove a couple of DPRINTFs from Cache to CachePort.
Steve Reinhardt [Sat, 14 Jul 2007 20:16:58 +0000 (13:16 -0700)]
Move a couple of DPRINTFs from Cache to CachePort.

--HG--
extra : convert_revision : 55a0d26660aeb8f63b41897d53e6b2d1f0a163be

17 years agoFix bug in copying packet with static data pointer.
Steve Reinhardt [Sat, 14 Jul 2007 20:14:53 +0000 (13:14 -0700)]
Fix bug in copying packet with static data pointer.

--HG--
extra : convert_revision : 2fcf99f050d73e007433c1db2475f2893c5961a0

17 years agoMerge from head.
Steve Reinhardt [Sat, 14 Jul 2007 19:23:47 +0000 (12:23 -0700)]
Merge from head.

--HG--
extra : convert_revision : f7b3700762b796d44f99aef05783db1ee9c7412e

17 years agoDisable PrintThreadInfo since it causes a panic when using VPtr.
Steve Reinhardt [Sat, 14 Jul 2007 19:22:04 +0000 (12:22 -0700)]
Disable PrintThreadInfo since it causes a panic when using VPtr.
See Flyspray #281.

--HG--
extra : convert_revision : 199ef802bcabed09f6ea6922c3a3954fea161190

17 years agoMake NO_FAST_ALLOC compile.
Steve Reinhardt [Sat, 14 Jul 2007 19:12:46 +0000 (12:12 -0700)]
Make NO_FAST_ALLOC compile.

--HG--
extra : convert_revision : 80579a61eb8d220e75cdee11bc09ca985c8fd85c

17 years agoMerge of DPRINTF fixes from head.
Steve Reinhardt [Sat, 14 Jul 2007 19:09:37 +0000 (12:09 -0700)]
Merge of DPRINTF fixes from head.

--HG--
extra : convert_revision : f99a33b2df6a6c5592856d17d00e73ee83267442

17 years agoFix & tweak DPRINTFs for tracediff w/new cache code.
Steve Reinhardt [Sat, 14 Jul 2007 18:48:30 +0000 (11:48 -0700)]
Fix & tweak DPRINTFs for tracediff w/new cache code.
Note that we should *not* print pointer values in DPRINTFs as
these needlessly clutter tracediff output.

--HG--
extra : convert_revision : 25a448f1b3ac8d453a717a104ad6dc0112fb30bb

17 years agoMerge in .hgignore from head.
Steve Reinhardt [Sat, 14 Jul 2007 06:04:52 +0000 (02:04 -0400)]
Merge in .hgignore from head.

--HG--
extra : convert_revision : 4f3472bdd3a1d6398e99cf9ecbafdbde3d656b13

17 years agoMerge with head
Steve Reinhardt [Sat, 14 Jul 2007 05:57:36 +0000 (22:57 -0700)]
Merge with head

--HG--
extra : convert_revision : cca352f891c6668e99e56f219ca276f950ba32cf

17 years agoignore stuff that we don't want to see in the status
Nathan Binkert [Sat, 14 Jul 2007 05:39:41 +0000 (22:39 -0700)]
ignore stuff that we don't want to see in the status

--HG--
extra : convert_revision : c4a4711cf515507d4debcacacef5799adcfe3bef

17 years agotransfer tags
Nathan Binkert [Sat, 14 Jul 2007 05:24:04 +0000 (22:24 -0700)]
transfer tags

--HG--
extra : convert_revision : 7e83aabe9926dae16d4732a6260c89b4344919e9

17 years agoDelete packets when we're done with them.
Steve Reinhardt [Tue, 3 Jul 2007 04:40:31 +0000 (00:40 -0400)]
Delete packets when we're done with them.

--HG--
extra : convert_revision : b8894d26e1ca7a6c9b736500accdaa53bfb09558

17 years agoCouple more minor bug fixes for FS timing mode.
Steve Reinhardt [Mon, 2 Jul 2007 20:57:45 +0000 (13:57 -0700)]
Couple more minor bug fixes for FS timing mode.

src/cpu/simple/timing.cc:
    Fix another SC problem.
src/mem/cache/cache_impl.hh:
    Forgot to call makeTimingResponse() on uncached timing responses.

--HG--
extra : convert_revision : 5a5a58ca2053e4e8de2133205bfd37de15eb4209

17 years agoFix a couple LL/SC bugs that only affected timing mode.
Steve Reinhardt [Mon, 2 Jul 2007 16:26:36 +0000 (09:26 -0700)]
Fix a couple LL/SC bugs that only affected timing mode.

src/cpu/simple/timing.cc:
    Fix swap/stq_c command bug.
src/mem/packet.cc:
    Fix incorrect LoadLockedReq command response field.

--HG--
extra : convert_revision : 7a4523be900bc2c9b1bdf2d372ce55f89ae58ae5

17 years agobus.cc:
Steve Reinhardt [Mon, 2 Jul 2007 08:02:35 +0000 (01:02 -0700)]
bus.cc:
Fix atomic timing issue.

src/mem/bus.cc:
    Fix atomic timing issue.

--HG--
extra : convert_revision : a22ff80cd75f83c785b0604c2a4fde2e2e9f71ef

17 years agoMake CPU models use new LoadLockedReq/StoreCondReq commands.
Steve Reinhardt [Sun, 1 Jul 2007 03:35:42 +0000 (20:35 -0700)]
Make CPU models use new LoadLockedReq/StoreCondReq commands.

--HG--
extra : convert_revision : ab78d9d1d88c3698edfd653d71c8882e1272b781