Changeset 110 for trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Execute_unit/Execute_unit/Load_store_unit/src/Load_store_unit_function_speculative_load_commit_transition.cpp
- Timestamp:
- Feb 19, 2009, 5:31:47 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Execute_unit/Execute_unit/Load_store_unit/src/Load_store_unit_function_speculative_load_commit_transition.cpp
r106 r110 602 602 _load_queue[index_load]._exception = EXCEPTION_MEMORY_MISS_SPECULATION; 603 603 _load_queue[index_load]._write_rd = 1; // write the good result 604 605 #ifdef STATISTICS 606 if (usage_is_set(_usage,USE_STATISTICS)) 607 (*_stat_nb_inst_load_commit_miss) ++; 608 #endif 604 609 } 605 610 … … 696 701 #ifdef DEBUG_TEST 697 702 if (is_operation_memory_store_head(operation) == true) 698 throw E rrorMorpheo(_("Transaction in memory_in's interface, actual state of store_queue is \"STORE_QUEUE_NO_VALID_NO_SPECULATIVE\", also a previous store_head have been receiveid. But this operation is a store_head."));703 throw ERRORMORPHEO(FUNCTION,_("Transaction in memory_in's interface, actual state of store_queue is \"STORE_QUEUE_NO_VALID_NO_SPECULATIVE\", also a previous store_head have been receiveid. But this operation is a store_head.")); 699 704 #endif 700 705 // Test if have a new exception (priority : miss_speculation) … … 714 719 #ifdef DEBUG_TEST 715 720 if (is_operation_memory_store_head(operation) == false) 716 throw E rrorMorpheo(_("Transaction in memory_in's interface, actual state of store_queue is \"STORE_QUEUE_VALID_SPECULATIVE\", also a previous access with register and address have been receiveid. But this operation is a not store_head."));721 throw ERRORMORPHEO(FUNCTION,_("Transaction in memory_in's interface, actual state of store_queue is \"STORE_QUEUE_VALID_SPECULATIVE\", also a previous access with register and address have been receiveid. But this operation is a not store_head.")); 717 722 #endif 718 723 if (operation == OPERATION_MEMORY_STORE_HEAD_KO) … … 729 734 case STORE_QUEUE_COMMIT : 730 735 { 731 throw E rrorMorpheo("<Load_store_unit::function_speculative_load_commit_transition> Invalid state and operation");736 throw ERRORMORPHEO(FUNCTION,"<Load_store_unit::function_speculative_load_commit_transition> Invalid state and operation"); 732 737 } 733 738 } … … 847 852 // if the speculation is a miss, write_rd is re set at 1. 848 853 _load_queue [internal_MEMORY_OUT_PTR]._write_rd = 0; 854 855 #ifdef STATISTICS 856 if (usage_is_set(_usage,USE_STATISTICS)) 857 (*_stat_nb_inst_load_commit_speculative) ++; 858 #endif 859 849 860 break; 850 861 } … … 889 900 case SELECT_LOAD_QUEUE : 890 901 { 891 throw E rrorMorpheo(_("Invalid selection"));902 throw ERRORMORPHEO(FUNCTION,_("Invalid selection")); 892 903 break; 893 904 } … … 964 975 965 976 _speculative_access_queue_control->pop(); 966 } 977 978 #ifdef STATISTICS 979 if (usage_is_set(_usage,USE_STATISTICS)) 980 (*_stat_nb_inst_load) ++; 981 #endif 982 } 967 983 968 984 //================================================================ … … 993 1009 #ifdef DEBUG_TEST 994 1010 if (not have_dcache_rsp(_load_queue [packet_id]._operation)) 995 throw E rrorMorpheo(_("Receive of respons, but the corresponding operation don't wait a respons."));1011 throw ERRORMORPHEO(FUNCTION,_("Receive of respons, but the corresponding operation don't wait a respons.")); 996 1012 #endif 997 1013 … … 1032 1048 case LOAD_QUEUE_WAIT_CHECK : _load_queue [packet_id]._state = LOAD_QUEUE_COMMIT_CHECK; break; 1033 1049 case LOAD_QUEUE_WAIT : _load_queue [packet_id]._state = LOAD_QUEUE_COMMIT ; break; 1034 default : throw E rrorMorpheo(_("Illegal state (dcache_rsp).")); break;1050 default : throw ERRORMORPHEO(FUNCTION,_("Illegal state (dcache_rsp).")); break; 1035 1051 } 1036 1052 }
Note: See TracChangeset
for help on using the changeset viewer.