Deleted Added
sdiff udiff text old ( 4952:2d7c40dd10bd ) new ( 5125:62bd932bcb0b )
full compact
1// -*- mode:c++ -*-
2
3// Copyright (c) 2007 The Hewlett-Packard Development Company
4// All rights reserved.
5//
6// Redistribution and use of this software in source and binary forms,
7// with or without modification, are permitted provided that the
8// following conditions are met:

--- 47 unchanged lines hidden (view full) ---

56// Authors: Gabe Black
57
58//////////////////////////////////////////////////////////////////////////
59//
60// String Instructions
61//
62//////////////////////////////////////////////////////////////////////////
63
64def format StringInst(*opTypeSet) {{
65 allBlocks = OutputBlocks()
66
67 regBlocks = specializeInst(Name, list(opTypeSet), EmulEnv())
68 eBlocks = specializeInst(Name + "_E", list(opTypeSet), EmulEnv())
69 nBlocks = specializeInst(Name + "_N", list(opTypeSet), EmulEnv())
70
71 for blocks in (regBlocks, eBlocks, nBlocks):
72 allBlocks.header_output += blocks.header_output

--- 8 unchanged lines hidden (view full) ---

81 } else {
82 %s
83 }
84 ''' % (eBlocks.decode_block, nBlocks.decode_block, regBlocks.decode_block)
85
86 (header_output, decoder_output,
87 decode_block, exec_output) = allBlocks.makeList()
88}};