Sorry, had the idea that they already had a unit for diesel engines.
It's all to do with technology, so here's a quick summary.
Ignoring the similar things both ECUs have to monitor/control, the basics a petrol ECU has to do, is control fuel pressure using a bit PWM of the fuel pump, inject the correct amount of fuel at roughly the correct time, and fire the sparkplugs with reasonable accuracy and adjust the timing according to the knock sensor feedback.
When I say roughly, within a degree is usually good enough for a petrol engine to run smoothly.
Now take a modern diesel. It has to control fuel pressure again using PWM but via a solenoid valve on a mechanical pump, so you have the added factor of the amount of regulation varying with engine speed/load, and due to the tolerances on modern systems, this has to be a self learning function to continually adapt as things wear. Then you have to provide ~80V to open the injectors multiple times with accurate timing (latest engines are using upto 7 distinct injection pulses) and vary the fuel quantity according to required torque, aswell as monitoring and compensating for cylinder balance and knock. Then you have particulate filter monitoring/regenerating with some of the latest cars having urea injection, and not forgetting electronic turbo wastegates.
Common between petrol and diesel are things like EGR, o2 sensors, air flow, atmospheric and manifold pressure, electronic throttle bodies, electric thermostats, and engine ECUs also often handle the A/C and cooling fans.
Then on top of that, you need the fault monitoring. Petrols will usually just run rough/cut-out if something goes wrong, whereas a diesel runs the very potential risk of extensive engine damage if something goes wrong and doesn't get detected quick enough.