mem.isa (4055:3b00870359aa) | mem.isa (4056:f8f1dffc5913) |
---|---|
1// -*- mode:c++ -*- 2 3// Copyright (c) 2006 The Regents of The University of Michigan 4// All rights reserved. 5// 6// Redistribution and use in source and binary forms, with or without 7// modification, are permitted provided that the following conditions are 8// met: redistributions of source code must retain the above copyright --- 311 unchanged lines hidden (view full) --- 320 321def template StoreMemAccExecute {{ 322 Fault 323 %(class_name)s::MemAcc::execute(%(CPU_exec_context)s *xc, 324 Trace::InstRecord *traceData) const 325 { 326 Addr EA; 327 Fault fault = NoFault; | 1// -*- mode:c++ -*- 2 3// Copyright (c) 2006 The Regents of The University of Michigan 4// All rights reserved. 5// 6// Redistribution and use in source and binary forms, with or without 7// modification, are permitted provided that the following conditions are 8// met: redistributions of source code must retain the above copyright --- 311 unchanged lines hidden (view full) --- 320 321def template StoreMemAccExecute {{ 322 Fault 323 %(class_name)s::MemAcc::execute(%(CPU_exec_context)s *xc, 324 Trace::InstRecord *traceData) const 325 { 326 Addr EA; 327 Fault fault = NoFault; |
328 329 %(fp_enable_check)s; 330 %(op_decl)s; 331 %(op_rd)s; 332 EA = xc->getEA(); 333 334 if (fault == NoFault) { 335 %(memacc_code)s; 336 } 337 338 if (fault == NoFault) { 339 fault = xc->write((uint%(mem_acc_size)d_t&)Mem, EA, 340 memAccessFlags, NULL); 341 if (traceData) { traceData->setData(Mem); } 342 } 343 344 if (fault == NoFault) { 345 %(postacc_code)s; 346 } 347 348 if (fault == NoFault) { 349 %(op_wb)s; 350 } 351 352 return fault; 353 } 354}}; 355 356def template StoreCondMemAccExecute {{ 357 Fault 358 %(class_name)s::MemAcc::execute(%(CPU_exec_context)s *xc, 359 Trace::InstRecord *traceData) const 360 { 361 Addr EA; 362 Fault fault = NoFault; |
|
328 uint64_t write_result = 0; 329 330 %(fp_enable_check)s; 331 %(op_decl)s; 332 %(op_rd)s; 333 EA = xc->getEA(); 334 335 if (fault == NoFault) { --- 20 unchanged lines hidden (view full) --- 356 357 358def template StoreExecute {{ 359 Fault %(class_name)s::execute(%(CPU_exec_context)s *xc, 360 Trace::InstRecord *traceData) const 361 { 362 Addr EA; 363 Fault fault = NoFault; | 363 uint64_t write_result = 0; 364 365 %(fp_enable_check)s; 366 %(op_decl)s; 367 %(op_rd)s; 368 EA = xc->getEA(); 369 370 if (fault == NoFault) { --- 20 unchanged lines hidden (view full) --- 391 392 393def template StoreExecute {{ 394 Fault %(class_name)s::execute(%(CPU_exec_context)s *xc, 395 Trace::InstRecord *traceData) const 396 { 397 Addr EA; 398 Fault fault = NoFault; |
399 400 %(fp_enable_check)s; 401 %(op_decl)s; 402 %(op_rd)s; 403 %(ea_code)s; 404 405 if (fault == NoFault) { 406 %(memacc_code)s; 407 } 408 409 if (fault == NoFault) { 410 fault = xc->write((uint%(mem_acc_size)d_t&)Mem, EA, 411 memAccessFlags, NULL); 412 if (traceData) { traceData->setData(Mem); } 413 } 414 415 if (fault == NoFault) { 416 %(postacc_code)s; 417 } 418 419 if (fault == NoFault) { 420 %(op_wb)s; 421 } 422 423 return fault; 424 } 425}}; 426 427def template StoreCondExecute {{ 428 Fault %(class_name)s::execute(%(CPU_exec_context)s *xc, 429 Trace::InstRecord *traceData) const 430 { 431 Addr EA; 432 Fault fault = NoFault; |
|
364 uint64_t write_result = 0; 365 366 %(fp_enable_check)s; 367 %(op_decl)s; 368 %(op_rd)s; 369 %(ea_code)s; 370 371 if (fault == NoFault) { --- 239 unchanged lines hidden --- | 433 uint64_t write_result = 0; 434 435 %(fp_enable_check)s; 436 %(op_decl)s; 437 %(op_rd)s; 438 %(ea_code)s; 439 440 if (fault == NoFault) { --- 239 unchanged lines hidden --- |