Compare commits
	
		
			3 Commits
		
	
	
		
			6f08f4010c
			...
			develop
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 937253f7aa | |||
| 98df7d2a74 | |||
| f57f9f9177 | 
@@ -976,6 +976,60 @@ if(vector != null) {%>
 | 
				
			|||||||
                throw new std::runtime_error("Unsupported sew_val");
 | 
					                throw new std::runtime_error("Unsupported sew_val");
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					    void vector_vector_crypto(uint8_t* V, uint8_t funct6, uint64_t eg_len, uint64_t eg_start, softvector::vtype_t vtype, uint8_t vd, uint8_t vs2, uint8_t vs1, uint8_t egs){
 | 
				
			||||||
 | 
					        switch(egs){
 | 
				
			||||||
 | 
					            case 4:
 | 
				
			||||||
 | 
					                return softvector::vector_vector_crypto<${vlen}, 4>(V, funct6, eg_len, eg_start, vtype, vd, vs2, vs1);
 | 
				
			||||||
 | 
					            case 8:
 | 
				
			||||||
 | 
					                return softvector::vector_vector_crypto<${vlen}, 8>(V, funct6, eg_len, eg_start, vtype, vd, vs2, vs1);
 | 
				
			||||||
 | 
					            default: 
 | 
				
			||||||
 | 
					                throw new std::runtime_error("Unsupported egs");
 | 
				
			||||||
 | 
					        } 
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					    void vector_scalar_crypto(uint8_t* V, uint8_t funct6, uint64_t eg_len, uint64_t eg_start, softvector::vtype_t vtype, uint8_t vd, uint8_t vs2, uint8_t vs1, uint8_t egs){
 | 
				
			||||||
 | 
					        switch(egs){
 | 
				
			||||||
 | 
					            case 4:
 | 
				
			||||||
 | 
					                return softvector::vector_scalar_crypto<${vlen}, 4>(V, funct6, eg_len, eg_start, vtype, vd, vs2, vs1);
 | 
				
			||||||
 | 
					            case 8:
 | 
				
			||||||
 | 
					                return softvector::vector_scalar_crypto<${vlen}, 8>(V, funct6, eg_len, eg_start, vtype, vd, vs2, vs1);
 | 
				
			||||||
 | 
					            default: 
 | 
				
			||||||
 | 
					                throw new std::runtime_error("Unsupported egs");
 | 
				
			||||||
 | 
					        } 
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					    void vector_imm_crypto(uint8_t* V, uint8_t funct6, uint64_t eg_len, uint64_t eg_start, softvector::vtype_t vtype, uint8_t vd, uint8_t vs2, uint8_t imm, uint8_t egs){
 | 
				
			||||||
 | 
					        switch(egs){
 | 
				
			||||||
 | 
					            case 4:
 | 
				
			||||||
 | 
					                return softvector::vector_imm_crypto<${vlen}, 4>(V, funct6, eg_len, eg_start, vtype, vd, vs2, imm);
 | 
				
			||||||
 | 
					            case 8:
 | 
				
			||||||
 | 
					                return softvector::vector_imm_crypto<${vlen}, 8>(V, funct6, eg_len, eg_start, vtype, vd, vs2, imm);
 | 
				
			||||||
 | 
					            default: 
 | 
				
			||||||
 | 
					                throw new std::runtime_error("Unsupported egs");
 | 
				
			||||||
 | 
					        } 
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					    void vector_crypto(uint8_t* V, uint8_t funct6, uint64_t eg_len, uint64_t eg_start, softvector::vtype_t vtype, uint8_t vd, uint8_t vs2, uint8_t vs1, uint8_t egs, uint8_t sew){
 | 
				
			||||||
 | 
					        switch(egs){
 | 
				
			||||||
 | 
					            case 4:
 | 
				
			||||||
 | 
					                switch(sew){
 | 
				
			||||||
 | 
					                    case 32:
 | 
				
			||||||
 | 
					                        return softvector::vector_crypto<${vlen}, 4, uint32_t>(V, funct6, eg_len, eg_start, vtype, vd, vs2, vs1);
 | 
				
			||||||
 | 
					                    case 64:
 | 
				
			||||||
 | 
					                        return softvector::vector_crypto<${vlen}, 4, uint64_t>(V, funct6, eg_len, eg_start, vtype, vd, vs2, vs1);
 | 
				
			||||||
 | 
					                    default: 
 | 
				
			||||||
 | 
					                        throw new std::runtime_error("Unsupported sew");
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
 | 
					            case 8:
 | 
				
			||||||
 | 
					                switch(sew){
 | 
				
			||||||
 | 
					                    case 32:
 | 
				
			||||||
 | 
					                        return softvector::vector_crypto<${vlen}, 8, uint32_t>(V, funct6, eg_len, eg_start, vtype, vd, vs2, vs1);
 | 
				
			||||||
 | 
					                    case 64:
 | 
				
			||||||
 | 
					                        return softvector::vector_crypto<${vlen}, 8, uint64_t>(V, funct6, eg_len, eg_start, vtype, vd, vs2, vs1);
 | 
				
			||||||
 | 
					                    default: 
 | 
				
			||||||
 | 
					                        throw new std::runtime_error("Unsupported sew");
 | 
				
			||||||
 | 
					                }            
 | 
				
			||||||
 | 
					            default: 
 | 
				
			||||||
 | 
					                throw new std::runtime_error("Unsupported egs");
 | 
				
			||||||
 | 
					        } 
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
<%}%>
 | 
					<%}%>
 | 
				
			||||||
    uint64_t fetch_count{0};
 | 
					    uint64_t fetch_count{0};
 | 
				
			||||||
    uint64_t tval{0};
 | 
					    uint64_t tval{0};
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -99,14 +99,18 @@ int main(int argc, char* argv[]) {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    LOGGER(DEFAULT)::print_time() = false;
 | 
					    LOGGER(DEFAULT)::print_time() = false;
 | 
				
			||||||
    LOGGER(connection)::print_time() = false;
 | 
					    LOGGER(connection)::print_time() = false;
 | 
				
			||||||
 | 
					    LOGGER(dbt_rise_iss)::print_time() = false;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    auto l = logging::as_log_level(clim["verbose"].as<int>());
 | 
					    auto l = logging::as_log_level(clim["verbose"].as<int>());
 | 
				
			||||||
    LOGGER(DEFAULT)::reporting_level() = l;
 | 
					    LOGGER(DEFAULT)::reporting_level() = l;
 | 
				
			||||||
    LOGGER(connection)::reporting_level() = l;
 | 
					    LOGGER(connection)::reporting_level() = l;
 | 
				
			||||||
 | 
					    LOGGER(dbt_rise_iss)::reporting_level() = l;
 | 
				
			||||||
    if(clim.count("logfile")) {
 | 
					    if(clim.count("logfile")) {
 | 
				
			||||||
        // configure the connection logger
 | 
					        // configure the connection logger
 | 
				
			||||||
        auto f = fopen(clim["logfile"].as<std::string>().c_str(), "w");
 | 
					        auto f = fopen(clim["logfile"].as<std::string>().c_str(), "w");
 | 
				
			||||||
        LOG_OUTPUT(DEFAULT)::stream() = f;
 | 
					        LOG_OUTPUT(DEFAULT)::stream() = f;
 | 
				
			||||||
        LOG_OUTPUT(connection)::stream() = f;
 | 
					        LOG_OUTPUT(connection)::stream() = f;
 | 
				
			||||||
 | 
					        LOG_OUTPUT(dbt_rise_iss)::stream() = f;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    std::vector<iss::vm_plugin*> plugin_list;
 | 
					    std::vector<iss::vm_plugin*> plugin_list;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user