params.py (5219:e93a04703f56) params.py (5451:01b4c909afc6)
1# Copyright (c) 2004-2006 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

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

401 if isinstance(value, MemorySize):
402 self.value = value.value
403 else:
404 self.value = convert.toMemorySize(value)
405 self._check()
406
407class Addr(CheckedInt):
408 cxx_type = 'Addr'
1# Copyright (c) 2004-2006 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

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

401 if isinstance(value, MemorySize):
402 self.value = value.value
403 else:
404 self.value = convert.toMemorySize(value)
405 self._check()
406
407class Addr(CheckedInt):
408 cxx_type = 'Addr'
409 cxx_predecls = ['#include "arch/isa_traits.hh"']
410 size = 64
411 unsigned = True
412 def __init__(self, value):
413 if isinstance(value, Addr):
414 self.value = value.value
415 else:
416 try:
417 self.value = convert.toMemorySize(value)

--- 754 unchanged lines hidden ---
409 size = 64
410 unsigned = True
411 def __init__(self, value):
412 if isinstance(value, Addr):
413 self.value = value.value
414 else:
415 try:
416 self.value = convert.toMemorySize(value)

--- 754 unchanged lines hidden ---