isa_parser.py (8449:4be49ad47c74) isa_parser.py (8452:3f2c329e9046)
1# Copyright (c) 2003-2005 The Regents of The University of Michigan
2# All rights reserved.
3#
4# Redistribution and use in source and binary forms, with or without
5# modification, are permitted provided that the following conditions are
6# met: redistributions of source code must retain the above copyright
7# notice, this list of conditions and the following disclaimer;
8# redistributions in binary form must reproduce the above copyright

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

1952 # do this up front.
1953 isa_desc = self.read_and_flatten(isa_desc_file)
1954
1955 # Initialize filename stack with outer file.
1956 self.fileNameStack.push((isa_desc_file, 0))
1957
1958 # Parse it.
1959 (isa_name, namespace, global_code, namespace_code) = \
1# Copyright (c) 2003-2005 The Regents of The University of Michigan
2# All rights reserved.
3#
4# Redistribution and use in source and binary forms, with or without
5# modification, are permitted provided that the following conditions are
6# met: redistributions of source code must retain the above copyright
7# notice, this list of conditions and the following disclaimer;
8# redistributions in binary form must reproduce the above copyright

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

1952 # do this up front.
1953 isa_desc = self.read_and_flatten(isa_desc_file)
1954
1955 # Initialize filename stack with outer file.
1956 self.fileNameStack.push((isa_desc_file, 0))
1957
1958 # Parse it.
1959 (isa_name, namespace, global_code, namespace_code) = \
1960 self.parse(isa_desc)
1960 self.parse_string(isa_desc)
1961
1962 # grab the last three path components of isa_desc_file to put in
1963 # the output
1964 filename = '/'.join(isa_desc_file.split('/')[-3:])
1965
1966 # generate decoder.hh
1967 includes = '#include "base/bitfield.hh" // for bitfield support'
1968 global_output = global_code.header_output

--- 42 unchanged lines hidden ---
1961
1962 # grab the last three path components of isa_desc_file to put in
1963 # the output
1964 filename = '/'.join(isa_desc_file.split('/')[-3:])
1965
1966 # generate decoder.hh
1967 includes = '#include "base/bitfield.hh" // for bitfield support'
1968 global_output = global_code.header_output

--- 42 unchanged lines hidden ---