equal
deleted
inserted
replaced
271 if (process->waitForFinished()) |
271 if (process->waitForFinished()) |
272 kernel_line += QString(process->readAll()); |
272 kernel_line += QString(process->readAll()); |
273 delete process; |
273 delete process; |
274 #endif |
274 #endif |
275 |
275 |
|
276 #ifdef __i386__ || __x86_64__ |
276 // cpu info |
277 // cpu info |
277 quint32 registers[4]; |
278 quint32 registers[4]; |
278 quint32 i; |
279 quint32 i; |
279 |
280 |
280 i = 0x80000002; |
281 i = 0x80000002; |
299 : "a" (i), "c" (0)); |
300 : "a" (i), "c" (0)); |
300 processor_name += std::string((const char *)®isters[0], 4); |
301 processor_name += std::string((const char *)®isters[0], 4); |
301 processor_name += std::string((const char *)®isters[1], 4); |
302 processor_name += std::string((const char *)®isters[1], 4); |
302 processor_name += std::string((const char *)®isters[2], 4); |
303 processor_name += std::string((const char *)®isters[2], 4); |
303 processor_name += std::string((const char *)®isters[3], 3); |
304 processor_name += std::string((const char *)®isters[3], 3); |
|
305 #else |
|
306 processor_name += "Unknown"; |
|
307 #endif |
304 |
308 |
305 // compiler |
309 // compiler |
306 #ifdef __GNUC__ |
310 #ifdef __GNUC__ |
307 compiler_version += "GCC " + QString(__VERSION__) + "\n"; |
311 compiler_version += "GCC " + QString(__VERSION__) + "\n"; |
308 #else |
312 #else |