string.isa (5125:62bd932bcb0b) string.isa (5163:f08b480df4c3)
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:

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

98 allBlocks.decoder_output += blocks.decoder_output
99 allBlocks.exec_output += blocks.exec_output
100
101 allBlocks.decode_block = '''
102 if (LEGACY_REP) {
103 %s
104 } else if (LEGACY_REPNE) {
105 // The repne prefix is illegal
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:

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

98 allBlocks.decoder_output += blocks.decoder_output
99 allBlocks.exec_output += blocks.exec_output
100
101 allBlocks.decode_block = '''
102 if (LEGACY_REP) {
103 %s
104 } else if (LEGACY_REPNE) {
105 // The repne prefix is illegal
106 return new MicroFault(machInst, "illprefix", new InvalidOpcode);
106 return new MicroFault(machInst, "illprefix", new InvalidOpcode, 0);
107 } else {
108 %s
109 }
110 ''' % (eBlocks.decode_block, regBlocks.decode_block)
111
112 (header_output, decoder_output,
113 decode_block, exec_output) = allBlocks.makeList()
114}};
107 } else {
108 %s
109 }
110 ''' % (eBlocks.decode_block, regBlocks.decode_block)
111
112 (header_output, decoder_output,
113 decode_block, exec_output) = allBlocks.makeList()
114}};